/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_SAX_FASTATTRIBS_HXX #define INCLUDED_SAX_FASTATTRIBS_HXX #include #include #include #include #include namespace com::sun::star::xml::sax { class XFastTokenHandler; } namespace com::sun::star::xml { struct Attribute; } namespace com::sun::star::xml { struct FastAttribute; } namespace sax_fastparser { struct UnknownAttribute { OUString maNamespaceURL; OString maName; OString maValue; UnknownAttribute( const OUString& rNamespaceURL, const OString& rName, const OString& value ); UnknownAttribute( const OString& rName, const OString& value ); void FillAttribute( css::xml::Attribute* pAttrib ) const; }; /// A native C++ interface to tokenisation class SAX_DLLPUBLIC FastTokenHandlerBase : public cppu::WeakImplHelper< css::xml::sax::XFastTokenHandler > { public: virtual ~FastTokenHandlerBase(); virtual sal_Int32 getTokenDirect( const char *pToken, sal_Int32 nLength ) const = 0; /** * Client method to attempt the use of this interface if possible. * @xTokenHandler - the token lookup interface * @pStr - string buffer to lookup * @nLength - optional length of chars in that buffer * * @return Tokenized form of pStr */ static sal_Int32 getTokenFromChars( const FastTokenHandlerBase *pTokenHandler, const char *pStr, size_t nLength ); }; class SAX_DLLPUBLIC FastAttributeList final : public cppu::WeakImplHelper< css::xml::sax::XFastAttributeList > { public: FastAttributeList( FastTokenHandlerBase *pTokenHandler ); virtual ~FastAttributeList() override; void clear(); void reserve( sal_Int32 nNumTokens ) { maAttributeValues.reserve(nNumTokens+1); maAttributeTokens.reserve(nNumTokens); } void add( sal_Int32 nToken, const char* pValue ); void add( sal_Int32 nToken, const char* pValue, size_t nValueLength ); void add( sal_Int32 nToken, const OString& rValue ); void addNS( sal_Int32 nNamespaceToken, sal_Int32 nToken, const OString& rValue ); // note: rQName is *namespace-prefixed* void addUnknown( const OUString& rNamespaceURL, const OString& rQName, const OString& value ); void addUnknown( const OString& rName, const OString& value ); const std::vector< sal_Int32 >& getFastAttributeTokens() const { return maAttributeTokens; } const char* getFastAttributeValue(size_t nIndex) const { return mpChunk + maAttributeValues[nIndex]; } sal_Int32 AttributeValueLength(size_t i) const { return maAttributeValues[i + 1] - maAttributeValues[i] - 1; } // performance sensitive shortcuts to avoid allocation ... bool getAsInteger( sal_Int32 nToken, sal_Int32 &rInt) const; bool getAsDouble( sal_Int32 nToken, double &rDouble) const; bool getAsChar( sal_Int32 nToken, const char*& rPos ) const; sal_Int32 getAsIntegerByIndex( sal_Int32 nTokenIndex ) const; const char* getAsCharByIndex( sal_Int32 nTokenIndex ) const; OUString getValueByIndex( sal_Int32 nTokenIndex ) const; // XFastAttributeList virtual sal_Bool SAL_CALL hasAttribute( ::sal_Int32 Token ) override; virtual ::sal_Int32 SAL_CALL getValueToken( ::sal_Int32 Token ) override; virtual ::sal_Int32 SAL_CALL getOptionalValueToken( ::sal_Int32 Token, ::sal_Int32 Default ) override; virtual OUString SAL_CALL getValue( ::sal_Int32 Token ) override; virtual OUString SAL_CALL getOptionalValue( ::sal_Int32 Token ) override; virtual css::uno::Sequence< css::xml::Attribute > SAL_CALL getUnknownAttributes( ) override; virtual css::uno::Sequence< css::xml::FastAttribute > SAL_CALL getFastAttributes() override; sal_Int32 getAttributeIndex( ::sal_Int32 Token ) { for (size_t i=0; i maAttributeValues; std::vector< sal_Int32 > maAttributeTokens; std::vector< UnknownAttribute > maUnknownAttributes; FastTokenHandlerBase * mpTokenHandler; }; inline FastAttributeList& castToFastAttributeList( const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) { assert( dynamic_cast ( xAttrList.get() ) != nullptr ); return *static_cast ( xAttrList.get() ); } } #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ue='distro/vector/vector-24.2-release'>distro/vector/vector-24.2-release LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--UnoControls/source/base/basecontainercontrol.cxx100
-rw-r--r--UnoControls/source/base/multiplexer.cxx140
-rw-r--r--UnoControls/source/controls/OConnectionPointHelper.cxx48
-rw-r--r--UnoControls/source/controls/statusindicator.cxx96
-rw-r--r--accessibility/inc/accessibility/extended/AccessibleGridControlHeaderCell.hxx6
-rw-r--r--accessibility/inc/accessibility/helper/accessiblestrings.hrc8
-rw-r--r--accessibility/source/extended/AccessibleBrowseBox.cxx40
-rw-r--r--accessibility/source/extended/AccessibleBrowseBoxBase.cxx18
-rw-r--r--accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx27
-rw-r--r--accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx18
-rw-r--r--accessibility/source/extended/AccessibleGridControl.cxx40
-rw-r--r--accessibility/source/extended/AccessibleGridControlBase.cxx10
-rw-r--r--accessibility/source/extended/AccessibleGridControlHeaderCell.cxx18
-rw-r--r--accessibility/source/extended/AccessibleGridControlTableCell.cxx10
-rw-r--r--accessibility/source/extended/AccessibleToolPanelDeck.cxx46
-rw-r--r--accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx46
-rw-r--r--accessibility/source/extended/AccessibleToolPanelDeckTabBarItem.cxx54
-rw-r--r--accessibility/source/extended/accessiblebrowseboxcell.cxx16
-rw-r--r--accessibility/source/extended/accessibleeditbrowseboxcell.cxx39
-rw-r--r--accessibility/source/extended/accessibleiconchoicectrl.cxx66
-rw-r--r--accessibility/source/extended/accessibleiconchoicectrlentry.cxx122
-rw-r--r--accessibility/source/extended/accessiblelistbox.cxx66
-rw-r--r--accessibility/source/extended/accessiblelistboxentry.cxx156
-rw-r--r--accessibility/source/extended/accessibletabbar.cxx76
-rw-r--r--accessibility/source/extended/accessibletabbarpage.cxx92
-rw-r--r--accessibility/source/extended/accessibletabbarpagelist.cxx110
-rw-r--r--accessibility/source/extended/accessibletablistbox.cxx12
-rw-r--r--accessibility/source/extended/accessibletablistboxtable.cxx34
-rw-r--r--accessibility/source/extended/listboxaccessible.cxx15
-rw-r--r--accessibility/source/helper/acc_factory.cxx52
-rw-r--r--accessibility/source/helper/accresmgr.cxx12
-rw-r--r--accessibility/source/standard/accessiblemenubasecomponent.cxx100
-rw-r--r--accessibility/source/standard/accessiblemenucomponent.cxx80
-rw-r--r--accessibility/source/standard/accessiblemenuitemcomponent.cxx76
-rw-r--r--accessibility/source/standard/floatingwindowaccessible.cxx9
-rw-r--r--accessibility/source/standard/vclxaccessiblebutton.cxx50
-rw-r--r--accessibility/source/standard/vclxaccessiblecheckbox.cxx54
-rw-r--r--accessibility/source/standard/vclxaccessibleedit.cxx102
-rw-r--r--accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx18
-rw-r--r--accessibility/source/standard/vclxaccessiblefixedtext.cxx18
-rw-r--r--accessibility/source/standard/vclxaccessiblelist.cxx78
-rw-r--r--accessibility/source/standard/vclxaccessiblelistitem.cxx134
-rw-r--r--accessibility/source/standard/vclxaccessiblemenu.cxx54
-rw-r--r--accessibility/source/standard/vclxaccessiblemenubar.cxx34
-rw-r--r--accessibility/source/standard/vclxaccessiblemenuitem.cxx100
-rw-r--r--accessibility/source/standard/vclxaccessiblemenuseparator.cxx18
-rw-r--r--accessibility/source/standard/vclxaccessiblepopupmenu.cxx26
-rw-r--r--accessibility/source/standard/vclxaccessibleradiobutton.cxx48
-rw-r--r--accessibility/source/standard/vclxaccessiblescrollbar.cxx46
-rw-r--r--accessibility/source/standard/vclxaccessiblestatusbar.cxx36
-rw-r--r--accessibility/source/standard/vclxaccessiblestatusbaritem.cxx114
-rw-r--r--accessibility/source/standard/vclxaccessibletabcontrol.cxx66
-rw-r--r--accessibility/source/standard/vclxaccessibletabpage.cxx116
-rw-r--r--accessibility/source/standard/vclxaccessibletabpagewindow.cxx18
-rw-r--r--accessibility/source/standard/vclxaccessibletextcomponent.cxx64
-rw-r--r--accessibility/source/standard/vclxaccessibletoolbox.cxx82
-rw-r--r--accessibility/source/standard/vclxaccessibletoolboxitem.cxx132
-rw-r--r--animations/source/animcore/animcore.cxx222
-rw-r--r--avmedia/source/framework/mediacontrol.cxx36
-rw-r--r--avmedia/source/framework/mediaitem.cxx58
-rw-r--r--avmedia/source/framework/mediaplayer.cxx22
-rw-r--r--avmedia/source/framework/mediatoolbox.cxx28
-rw-r--r--avmedia/source/framework/soundhandler.hxx28
-rw-r--r--avmedia/source/gstreamer/gstmanager.cxx14
-rw-r--r--avmedia/source/gstreamer/gstplayer.cxx46
-rw-r--r--avmedia/source/gstreamer/gstuno.cxx4
-rw-r--r--avmedia/source/gstreamer/gstwindow.cxx10
-rw-r--r--avmedia/source/viewer/mediaevent_impl.cxx28
-rw-r--r--avmedia/source/viewer/mediawindow.cxx60
-rw-r--r--avmedia/source/viewer/mediawindow_impl.cxx64
-rw-r--r--avmedia/source/win/framegrabber.cxx4
-rw-r--r--avmedia/source/win/manager.cxx4
-rw-r--r--avmedia/source/win/player.cxx4
-rw-r--r--avmedia/source/win/winuno.cxx4
-rw-r--r--basctl/source/accessibility/accessibledialogcontrolshape.cxx86
-rw-r--r--basctl/source/accessibility/accessibledialogwindow.cxx118
-rw-r--r--basctl/source/basicide/basidectrlr.cxx24
-rw-r--r--basctl/source/basicide/basobj2.cxx22
-rw-r--r--basctl/source/basicide/basobj3.cxx34
-rw-r--r--basctl/source/basicide/doceventnotifier.cxx31
-rw-r--r--basctl/source/basicide/docsignature.cxx20
-rw-r--r--basctl/source/basicide/documentenumeration.cxx18
-rw-r--r--basctl/source/basicide/moduldl2.cxx96
-rw-r--r--basctl/source/basicide/tbxctl.hxx3
-rw-r--r--basctl/source/basicide/unomodel.hxx1
-rw-r--r--basctl/source/dlged/dlgedclip.cxx22
-rw-r--r--basctl/source/dlged/dlgedfunc.cxx38
-rw-r--r--basctl/source/dlged/dlgedlist.cxx30
-rw-r--r--basctl/source/dlged/dlgedmod.cxx8
-rw-r--r--basctl/source/dlged/dlgedobj.cxx111
-rw-r--r--basctl/source/dlged/dlgedpage.cxx8
-rw-r--r--basctl/source/dlged/dlgedview.cxx10
-rw-r--r--basctl/source/inc/basidesh.hxx3
-rw-r--r--basebmp/source/bitmapdevice.cxx34
-rw-r--r--basebmp/test/polytest.cxx6
-rw-r--r--basegfx/source/tools/canvastools.cxx24
-rw-r--r--basegfx/source/workbench/bezierclip.cxx32
-rw-r--r--basegfx/source/workbench/convexhull.cxx2
-rw-r--r--basegfx/test/basegfx1d.cxx2
-rw-r--r--basegfx/test/basegfx2d.cxx4
-rw-r--r--basegfx/test/basegfx3d.cxx4
-rw-r--r--basegfx/test/basegfxtools.cxx2
-rw-r--r--basegfx/test/boxclipper.cxx2
-rw-r--r--basegfx/test/clipstate.cxx2
-rw-r--r--basegfx/test/genericclipper.cxx2
-rw-r--r--basic/inc/sbstdobj.hxx8
-rw-r--r--basic/source/basmgr/basicmanagerrepository.cxx46
-rw-r--r--basic/source/basmgr/basmgr.cxx10
-rw-r--r--basic/source/basmgr/vbahelper.cxx10
-rw-r--r--basic/source/classes/propacc.cxx32
-rw-r--r--basic/source/classes/sb.cxx8
-rw-r--r--basic/source/classes/sbunoobj.cxx2
-rw-r--r--basic/source/runtime/methods.cxx2
-rw-r--r--basic/source/runtime/stdobj1.cxx8
-rw-r--r--basic/source/uno/sbservices.cxx2
-rw-r--r--bridges/source/cpp_uno/gcc3_aix_powerpc/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_alpha/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_arm/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_ia64/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_intel/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_m68k/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_mips/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_s390/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_s390x/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx2
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_solaris_intel/except.cxx8
-rw-r--r--bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx2
-rw-r--r--bridges/source/cpp_uno/gcc3_solaris_sparc/except.cxx8
-rw-r--r--bridges/source/cpp_uno/mingw_intel/except.cxx8
-rw-r--r--bridges/source/cpp_uno/mingw_x86-64/except.cxx8
-rw-r--r--bridges/source/cpp_uno/msvc_win32_intel/except.cxx22
-rw-r--r--bridges/source/jni_uno/jni_bridge.cxx32
-rw-r--r--bridges/source/jni_uno/jni_data.cxx6
-rw-r--r--bridges/source/jni_uno/jni_info.cxx26
-rw-r--r--bridges/source/jni_uno/jni_java2uno.cxx10
-rw-r--r--bridges/source/jni_uno/jni_uno2java.cxx28
-rw-r--r--bridges/test/java_uno/any/transport.cxx2
-rw-r--r--bridges/test/testclient.cxx2
-rw-r--r--canvas/source/directx/dx_9rm.cxx2
-rw-r--r--canvas/source/directx/dx_canvashelper.cxx4
-rw-r--r--canvas/source/directx/dx_canvashelper_texturefill.cxx8
-rw-r--r--canvas/source/factory/cf_service.cxx14
-rw-r--r--canvas/source/vcl/canvascustomsprite.cxx6
-rw-r--r--canvas/source/vcl/canvashelper_texturefill.cxx14
-rw-r--r--canvas/source/vcl/impltools.cxx2
-rw-r--r--canvas/workben/canvasdemo.cxx4
-rw-r--r--chart2/source/controller/dialogs/tp_ChartType.cxx14
-rw-r--r--chart2/source/controller/main/ChartController.cxx8
-rw-r--r--chart2/source/controller/main/ChartController_Window.cxx6
-rw-r--r--chart2/source/glew/glew.cxx40
-rw-r--r--chart2/source/model/main/DataPointProperties.cxx2
-rw-r--r--chart2/source/model/template/ColumnLineChartTypeTemplate.cxx4
-rw-r--r--chart2/source/tools/LifeTime.cxx2
-rw-r--r--chart2/source/view/axes/Tickmarks_Equidistant.cxx4
-rw-r--r--chart2/source/view/main/ChartItemPool.cxx2
-rw-r--r--cli_ure/source/climaker/climaker_app.cxx4
-rw-r--r--cli_ure/source/climaker/climaker_emit.cxx36
-rw-r--r--cli_ure/source/native/native_bootstrap.cxx4
-rw-r--r--cli_ure/source/uno_bridge/cli_bridge.cxx18
-rw-r--r--cli_ure/source/uno_bridge/cli_proxy.cxx14
-rw-r--r--comphelper/source/container/container.cxx2
-rw-r--r--comphelper/source/container/containermultiplexer.cxx28
-rw-r--r--comphelper/source/container/embeddedobjectcontainer.cxx8
-rw-r--r--comphelper/source/container/enumerablemap.cxx68
-rw-r--r--comphelper/source/container/enumhelper.cxx38
-rw-r--r--comphelper/source/eventattachermgr/eventattachermgr.cxx28
-rw-r--r--comphelper/source/misc/SelectionMultiplex.cxx20
-rw-r--r--comphelper/source/misc/accessiblecomponenthelper.cxx42
-rw-r--r--comphelper/source/misc/accessiblecontexthelper.cxx34
-rw-r--r--comphelper/source/misc/accessibleeventnotifier.cxx14
-rw-r--r--comphelper/source/misc/accessiblekeybindinghelper.cxx16
-rw-r--r--comphelper/source/misc/accessibleselectionhelper.cxx36
-rw-r--r--comphelper/source/misc/accessibletexthelper.cxx76
-rw-r--r--comphelper/source/misc/accessiblewrapper.cxx102
-rw-r--r--comphelper/source/misc/accimplaccess.cxx20
-rw-r--r--comphelper/source/misc/anycompare.cxx2
-rw-r--r--comphelper/source/misc/anytostring.cxx2
-rw-r--r--comphelper/source/misc/asyncnotification.cxx20
-rw-r--r--comphelper/source/misc/comphelper_services.cxx2
-rw-r--r--comphelper/source/misc/componentbase.cxx6
-rw-r--r--comphelper/source/misc/componentmodule.cxx22
-rw-r--r--comphelper/source/misc/configurationhelper.cxx14
-rw-r--r--comphelper/source/misc/documentinfo.cxx2
-rw-r--r--comphelper/source/misc/documentiologring.cxx20
-rw-r--r--comphelper/source/misc/ihwrapnofilter.cxx16
-rw-r--r--comphelper/source/misc/instancelocker.cxx36
-rw-r--r--comphelper/source/misc/interaction.cxx12
-rw-r--r--comphelper/source/misc/listenernotification.cxx12
-rw-r--r--comphelper/source/misc/logging.cxx20
-rw-r--r--comphelper/source/misc/mimeconfighelper.cxx58
-rw-r--r--comphelper/source/misc/namedvaluecollection.cxx50
-rw-r--r--comphelper/source/misc/numberedcollection.cxx18
-rw-r--r--comphelper/source/misc/numbers.cxx12
-rw-r--r--comphelper/source/misc/officeresourcebundle.cxx16
-rw-r--r--comphelper/source/misc/officerestartmanager.cxx18
-rw-r--r--comphelper/source/misc/proxyaggregation.cxx42
-rw-r--r--comphelper/source/misc/sequence.cxx14
-rw-r--r--comphelper/source/misc/sequenceashashmap.cxx4
-rw-r--r--comphelper/source/misc/sharedmutex.cxx6
-rw-r--r--comphelper/source/misc/storagehelper.cxx36
-rw-r--r--comphelper/source/misc/types.cxx38
-rw-r--r--comphelper/source/misc/weakeventlistener.cxx6
-rw-r--r--comphelper/source/property/opropertybag.cxx64
-rw-r--r--comphelper/source/property/propagg.cxx88
-rw-r--r--comphelper/source/property/property.cxx10
-rw-r--r--comphelper/source/property/propertybag.cxx20
-rw-r--r--comphelper/source/property/propertycontainer.cxx14
-rw-r--r--comphelper/source/property/propertycontainerhelper.cxx36
-rw-r--r--comphelper/source/property/propertystatecontainer.cxx20
-rw-r--r--comphelper/source/property/propmultiplex.cxx24
-rw-r--r--comphelper/source/property/propstate.cxx34
-rw-r--r--comphelper/source/streaming/basicio.cxx28
-rw-r--r--comphelper/source/streaming/oslfile2streamwrap.cxx20
-rw-r--r--comphelper/source/streaming/seekableinput.cxx26
-rw-r--r--comphelper/source/streaming/seqstream.cxx26
-rw-r--r--comphelper/source/streaming/streamsection.cxx8
-rw-r--r--comphelper/source/xml/ofopxmlhelper.cxx32
-rw-r--r--connectivity/source/commontools/BlobHelper.cxx10
-rw-r--r--connectivity/source/commontools/CommonTools.cxx16
-rw-r--r--connectivity/source/commontools/ConnectionWrapper.cxx32
-rw-r--r--connectivity/source/commontools/DateConversion.cxx16
-rw-r--r--connectivity/source/commontools/DriversConfig.cxx26
-rw-r--r--connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx204
-rw-r--r--connectivity/source/commontools/FValue.cxx98
-rw-r--r--connectivity/source/commontools/ParamterSubstitution.cxx18
-rw-r--r--connectivity/source/commontools/TColumnsHelper.cxx14
-rw-r--r--connectivity/source/commontools/TConnection.cxx10
-rw-r--r--connectivity/source/commontools/TDatabaseMetaDataBase.cxx64
-rw-r--r--connectivity/source/commontools/TIndex.cxx8
-rw-r--r--connectivity/source/commontools/TIndexColumns.cxx10
-rw-r--r--connectivity/source/commontools/TIndexes.cxx14
-rw-r--r--connectivity/source/commontools/TKey.cxx8
-rw-r--r--connectivity/source/commontools/TKeyColumns.cxx10
-rw-r--r--connectivity/source/commontools/TKeys.cxx20
-rw-r--r--connectivity/source/commontools/TPrivilegesResultSet.cxx12
-rw-r--r--connectivity/source/commontools/TSkipDeletedSet.cxx18
-rw-r--r--connectivity/source/commontools/TSortIndex.cxx20
-rw-r--r--connectivity/source/commontools/TTableHelper.cxx52
-rw-r--r--connectivity/source/commontools/conncleanup.cxx24
-rw-r--r--connectivity/source/commontools/dbcharset.cxx34
-rw-r--r--connectivity/source/commontools/dbconversion.cxx48
-rw-r--r--connectivity/source/commontools/dbexception.cxx70
-rw-r--r--connectivity/source/commontools/dbmetadata.cxx42
-rw-r--r--connectivity/source/commontools/dbtools2.cxx40
-rw-r--r--connectivity/source/commontools/filtermanager.cxx18
-rw-r--r--connectivity/source/commontools/formattedcolumnvalue.cxx24
-rw-r--r--connectivity/source/commontools/parameters.cxx98
-rw-r--r--connectivity/source/commontools/paramwrapper.cxx46
-rw-r--r--connectivity/source/commontools/predicateinput.cxx12
-rw-r--r--connectivity/source/commontools/propertyids.cxx4
-rw-r--r--connectivity/source/commontools/sqlerror.cxx48
-rw-r--r--connectivity/source/commontools/statementcomposer.cxx20
-rw-r--r--connectivity/source/commontools/warningscontainer.cxx16
-rw-r--r--connectivity/source/cpool/ZConnectionPool.cxx34
-rw-r--r--connectivity/source/cpool/ZConnectionWrapper.cxx50
-rw-r--r--connectivity/source/cpool/ZDriverWrapper.cxx16
-rw-r--r--connectivity/source/cpool/ZPoolCollection.cxx64
-rw-r--r--connectivity/source/cpool/ZPooledConnection.cxx8
-rw-r--r--connectivity/source/cpool/Zregistration.cxx2
-rw-r--r--connectivity/source/drivers/ado/ACallableStatement.cxx54
-rw-r--r--connectivity/source/drivers/ado/ACatalog.cxx16
-rw-r--r--connectivity/source/drivers/ado/AColumn.cxx24
-rw-r--r--connectivity/source/drivers/ado/AColumns.cxx10
-rw-r--r--connectivity/source/drivers/ado/AConnection.cxx64
-rw-r--r--connectivity/source/drivers/ado/ADatabaseMetaData.cxx300
-rw-r--r--connectivity/source/drivers/ado/ADatabaseMetaDataImpl.cxx80
-rw-r--r--connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx160
-rw-r--r--connectivity/source/drivers/ado/ADatabaseMetaDataResultSetMetaData.cxx30
-rw-r--r--connectivity/source/drivers/ado/ADriver.cxx36
-rw-r--r--connectivity/source/drivers/ado/AGroup.cxx30
-rw-r--r--connectivity/source/drivers/ado/AGroups.cxx12
-rw-r--r--connectivity/source/drivers/ado/AIndex.cxx18
-rw-r--r--connectivity/source/drivers/ado/AIndexes.cxx10
-rw-r--r--connectivity/source/drivers/ado/AKey.cxx20
-rw-r--r--connectivity/source/drivers/ado/AKeys.cxx10
-rw-r--r--connectivity/source/drivers/ado/AResultSet.cxx202
-rw-r--r--connectivity/source/drivers/ado/AResultSetMetaData.cxx46
-rw-r--r--connectivity/source/drivers/ado/AStatement.cxx120
-rw-r--r--connectivity/source/drivers/ado/ATable.cxx32
-rw-r--r--connectivity/source/drivers/ado/ATables.cxx12
-rw-r--r--connectivity/source/drivers/ado/AUser.cxx42
-rw-r--r--connectivity/source/drivers/ado/AUsers.cxx10
-rw-r--r--connectivity/source/drivers/ado/AView.cxx16
-rw-r--r--connectivity/source/drivers/ado/AViews.cxx10
-rw-r--r--connectivity/source/drivers/ado/Aolevariant.cxx40
-rw-r--r--connectivity/source/drivers/ado/Aservices.cxx4
-rw-r--r--connectivity/source/drivers/ado/Awrapado.cxx32
-rw-r--r--connectivity/source/drivers/ado/adoimp.cxx18
-rw-r--r--connectivity/source/drivers/calc/CCatalog.cxx8
-rw-r--r--connectivity/source/drivers/calc/CColumns.cxx2
-rw-r--r--connectivity/source/drivers/calc/CConnection.cxx24
-rw-r--r--connectivity/source/drivers/calc/CDatabaseMetaData.cxx26
-rw-r--r--connectivity/source/drivers/calc/CDriver.cxx6
-rw-r--r--connectivity/source/drivers/calc/CPreparedStatement.cxx4
-rw-r--r--connectivity/source/drivers/calc/CResultSet.cxx40
-rw-r--r--connectivity/source/drivers/calc/CStatement.cxx4
-rw-r--r--connectivity/source/drivers/calc/CTable.cxx34
-rw-r--r--connectivity/source/drivers/calc/CTables.cxx2
-rw-r--r--connectivity/source/drivers/calc/Cservices.cxx4
-rw-r--r--connectivity/source/drivers/dbase/DCatalog.cxx6
-rw-r--r--connectivity/source/drivers/dbase/DCode.cxx8
-rw-r--r--connectivity/source/drivers/dbase/DColumns.cxx14
-rw-r--r--connectivity/source/drivers/dbase/DConnection.cxx20
-rw-r--r--connectivity/source/drivers/dbase/DDatabaseMetaData.cxx32
-rw-r--r--connectivity/source/drivers/dbase/DDriver.cxx14
-rw-r--r--connectivity/source/drivers/dbase/DIndex.cxx60
-rw-r--r--connectivity/source/drivers/dbase/DIndexColumns.cxx8
-rw-r--r--connectivity/source/drivers/dbase/DIndexIter.cxx20
-rw-r--r--connectivity/source/drivers/dbase/DIndexes.cxx10
-rw-r--r--connectivity/source/drivers/dbase/DPreparedStatement.cxx4
-rw-r--r--connectivity/source/drivers/dbase/DResultSet.cxx42
-rw-r--r--connectivity/source/drivers/dbase/DStatement.cxx4
-rw-r--r--connectivity/source/drivers/dbase/DTable.cxx96
-rw-r--r--connectivity/source/drivers/dbase/DTables.cxx12
-rw-r--r--connectivity/source/drivers/dbase/Dservices.cxx4
-rw-r--r--connectivity/source/drivers/dbase/dindexnode.cxx92
-rw-r--r--connectivity/source/drivers/evoab2/NCatalog.cxx4
-rw-r--r--connectivity/source/drivers/evoab2/NColumns.cxx4
-rw-r--r--connectivity/source/drivers/evoab2/NConnection.cxx28
-rw-r--r--connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx278
-rw-r--r--connectivity/source/drivers/evoab2/NDriver.cxx30
-rw-r--r--connectivity/source/drivers/evoab2/NPreparedStatement.cxx78
-rw-r--r--connectivity/source/drivers/evoab2/NResultSet.cxx114
-rw-r--r--connectivity/source/drivers/evoab2/NResultSetMetaData.cxx48
-rw-r--r--connectivity/source/drivers/evoab2/NServices.cxx4
-rw-r--r--connectivity/source/drivers/evoab2/NStatement.cxx60
-rw-r--r--connectivity/source/drivers/evoab2/NTable.cxx4
-rw-r--r--connectivity/source/drivers/evoab2/NTables.cxx6
-rw-r--r--connectivity/source/drivers/file/FCatalog.cxx16
-rw-r--r--connectivity/source/drivers/file/FColumns.cxx4
-rw-r--r--connectivity/source/drivers/file/FConnection.cxx70
-rw-r--r--connectivity/source/drivers/file/FDatabaseMetaData.cxx276
-rw-r--r--connectivity/source/drivers/file/FDateFunctions.cxx32
-rw-r--r--connectivity/source/drivers/file/FDriver.cxx32
-rw-r--r--connectivity/source/drivers/file/FNoException.cxx14
-rw-r--r--connectivity/source/drivers/file/FNumericFunctions.cxx46
-rw-r--r--connectivity/source/drivers/file/FPreparedStatement.cxx94
-rw-r--r--connectivity/source/drivers/file/FResultSet.cxx200
-rw-r--r--connectivity/source/drivers/file/FResultSetMetaData.cxx50
-rw-r--r--connectivity/source/drivers/file/FStatement.cxx76
-rw-r--r--connectivity/source/drivers/file/FStringFunctions.cxx32
-rw-r--r--connectivity/source/drivers/file/FTable.cxx40
-rw-r--r--connectivity/source/drivers/file/FTables.cxx8
-rw-r--r--connectivity/source/drivers/file/fanalyzer.cxx28
-rw-r--r--connectivity/source/drivers/file/fcode.cxx74
-rw-r--r--connectivity/source/drivers/file/fcomp.cxx26
-rw-r--r--connectivity/source/drivers/file/quotedstring.cxx4
-rw-r--r--connectivity/source/drivers/firebird/Connection.cxx10
-rw-r--r--connectivity/source/drivers/firebird/DatabaseMetaData.cxx140
-rw-r--r--connectivity/source/drivers/firebird/PreparedStatement.cxx20
-rw-r--r--connectivity/source/drivers/firebird/ResultSet.cxx24
-rw-r--r--connectivity/source/drivers/firebird/Services.cxx6
-rw-r--r--connectivity/source/drivers/firebird/StatementCommonBase.cxx12
-rw-r--r--connectivity/source/drivers/flat/ECatalog.cxx8
-rw-r--r--connectivity/source/drivers/flat/EColumns.cxx2
-rw-r--r--connectivity/source/drivers/flat/EConnection.cxx20
-rw-r--r--connectivity/source/drivers/flat/EDatabaseMetaData.cxx10
-rw-r--r--connectivity/source/drivers/flat/EDriver.cxx14
-rw-r--r--connectivity/source/drivers/flat/EPreparedStatement.cxx4
-rw-r--r--connectivity/source/drivers/flat/EResultSet.cxx34
-rw-r--r--connectivity/source/drivers/flat/EStatement.cxx4
-rw-r--r--connectivity/source/drivers/flat/ETable.cxx34
-rw-r--r--connectivity/source/drivers/flat/ETables.cxx2
-rw-r--r--connectivity/source/drivers/flat/Eservices.cxx4
-rw-r--r--connectivity/source/drivers/hsqldb/HCatalog.cxx20
-rw-r--r--connectivity/source/drivers/hsqldb/HColumns.cxx16
-rw-r--r--connectivity/source/drivers/hsqldb/HConnection.cxx32
-rw-r--r--connectivity/source/drivers/hsqldb/HDriver.cxx60
-rw-r--r--connectivity/source/drivers/hsqldb/HStorageAccess.cxx26
-rw-r--r--connectivity/source/drivers/hsqldb/HStorageMap.cxx32
-rw-r--r--connectivity/source/drivers/hsqldb/HTable.cxx38
-rw-r--r--connectivity/source/drivers/hsqldb/HTables.cxx18
-rw-r--r--connectivity/source/drivers/hsqldb/HTools.cxx2
-rw-r--r--connectivity/source/drivers/hsqldb/HUser.cxx30
-rw-r--r--connectivity/source/drivers/hsqldb/HUsers.cxx12
-rw-r--r--connectivity/source/drivers/hsqldb/HView.cxx12
-rw-r--r--connectivity/source/drivers/hsqldb/HViews.cxx20
-rw-r--r--connectivity/source/drivers/hsqldb/Hservices.cxx4
-rw-r--r--connectivity/source/drivers/hsqldb/StorageFileAccess.cxx6
-rw-r--r--connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx14
-rw-r--r--connectivity/source/drivers/hsqldb/StorageNativeOutputStream.cxx14
-rw-r--r--connectivity/source/drivers/hsqldb/accesslog.cxx8
-rw-r--r--connectivity/source/drivers/jdbc/CallableStatement.cxx16
-rw-r--r--connectivity/source/drivers/jdbc/ConnectionLog.cxx14
-rw-r--r--connectivity/source/drivers/jdbc/ContextClassLoader.cxx4
-rw-r--r--connectivity/source/drivers/jdbc/DatabaseMetaData.cxx312
-rw-r--r--connectivity/source/drivers/jdbc/Date.cxx2
-rw-r--r--connectivity/source/drivers/jdbc/DriverPropertyInfo.cxx18
-rw-r--r--connectivity/source/drivers/jdbc/InputStream.cxx2
-rw-r--r--connectivity/source/drivers/jdbc/JConnection.cxx68
-rw-r--r--connectivity/source/drivers/jdbc/JDriver.cxx26
-rw-r--r--connectivity/source/drivers/jdbc/JStatement.cxx120
-rw-r--r--connectivity/source/drivers/jdbc/Object.cxx54
-rw-r--r--connectivity/source/drivers/jdbc/PreparedStatement.cxx78
-rw-r--r--connectivity/source/drivers/jdbc/Reader.cxx2
-rw-r--r--connectivity/source/drivers/jdbc/ResultSet.cxx178
-rw-r--r--connectivity/source/drivers/jdbc/ResultSetMetaData.cxx44
-rw-r--r--connectivity/source/drivers/jdbc/String.cxx2
-rw-r--r--connectivity/source/drivers/jdbc/Throwable.cxx4
-rw-r--r--connectivity/source/drivers/jdbc/Timestamp.cxx8
-rw-r--r--connectivity/source/drivers/jdbc/jservices.cxx2
-rw-r--r--connectivity/source/drivers/jdbc/tools.cxx18
-rw-r--r--connectivity/source/drivers/kab/KCatalog.cxx12
-rw-r--r--connectivity/source/drivers/kab/KColumns.cxx6
-rw-r--r--connectivity/source/drivers/kab/KConnection.cxx58
-rw-r--r--connectivity/source/drivers/kab/KDEInit.cxx12
-rw-r--r--connectivity/source/drivers/kab/KDatabaseMetaData.cxx304
-rw-r--r--connectivity/source/drivers/kab/KDriver.cxx60
-rw-r--r--connectivity/source/drivers/kab/KPreparedStatement.cxx74
-rw-r--r--connectivity/source/drivers/kab/KResultSet.cxx182
-rw-r--r--connectivity/source/drivers/kab/KResultSetMetaData.cxx48
-rw-r--r--connectivity/source/drivers/kab/KServices.cxx4
-rw-r--r--connectivity/source/drivers/kab/KStatement.cxx60
-rw-r--r--connectivity/source/drivers/kab/KTable.cxx4
-rw-r--r--connectivity/source/drivers/kab/KTables.cxx4
-rw-r--r--connectivity/source/drivers/kab/kcondition.cxx58
-rw-r--r--connectivity/source/drivers/kab/kfields.cxx6
-rw-r--r--connectivity/source/drivers/kab/korder.cxx12
-rw-r--r--connectivity/source/drivers/macab/MacabAddressBook.cxx20
-rw-r--r--connectivity/source/drivers/macab/MacabCatalog.cxx14
-rw-r--r--connectivity/source/drivers/macab/MacabColumns.cxx6
-rw-r--r--connectivity/source/drivers/macab/MacabConnection.cxx58
-rw-r--r--connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx302
-rw-r--r--connectivity/source/drivers/macab/MacabDriver.cxx52
-rw-r--r--connectivity/source/drivers/macab/MacabGroup.cxx2
-rw-r--r--connectivity/source/drivers/macab/MacabHeader.cxx32
-rw-r--r--connectivity/source/drivers/macab/MacabPreparedStatement.cxx74
-rw-r--r--connectivity/source/drivers/macab/MacabRecord.cxx26
-rw-r--r--connectivity/source/drivers/macab/MacabRecords.cxx72
-rw-r--r--connectivity/source/drivers/macab/MacabResultSet.cxx184
-rw-r--r--connectivity/source/drivers/macab/MacabResultSetMetaData.cxx48
-rw-r--r--connectivity/source/drivers/macab/MacabServices.cxx4
-rw-r--r--connectivity/source/drivers/macab/MacabStatement.cxx60
-rw-r--r--connectivity/source/drivers/macab/MacabTable.cxx6
-rw-r--r--connectivity/source/drivers/macab/MacabTables.cxx4
-rw-r--r--connectivity/source/drivers/macab/macabcondition.cxx58
-rw-r--r--connectivity/source/drivers/macab/macaborder.cxx12
-rw-r--r--connectivity/source/drivers/mork/MCatalog.cxx14
-rw-r--r--connectivity/source/drivers/mork/MColumnAlias.cxx6
-rw-r--r--connectivity/source/drivers/mork/MColumns.cxx4
-rw-r--r--connectivity/source/drivers/mork/MConnection.cxx68
-rw-r--r--connectivity/source/drivers/mork/MDatabaseMetaData.cxx282
-rw-r--r--connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx4
-rw-r--r--connectivity/source/drivers/mork/MDriver.cxx4
-rw-r--r--connectivity/source/drivers/mork/MNSFolders.cxx8
-rw-r--r--connectivity/source/drivers/mork/MPreparedStatement.cxx100
-rw-r--r--connectivity/source/drivers/mork/MQueryHelper.cxx6
-rw-r--r--connectivity/source/drivers/mork/MResultSet.cxx198
-rw-r--r--connectivity/source/drivers/mork/MResultSetMetaData.cxx48
-rw-r--r--connectivity/source/drivers/mork/MStatement.cxx72
-rw-r--r--connectivity/source/drivers/mork/MTable.cxx10
-rw-r--r--connectivity/source/drivers/mork/MTables.cxx6
-rw-r--r--connectivity/source/drivers/mozab/MCatalog.cxx14
-rw-r--r--connectivity/source/drivers/mozab/MColumnAlias.cxx8
-rw-r--r--connectivity/source/drivers/mozab/MColumns.cxx4
-rw-r--r--connectivity/source/drivers/mozab/MConfigAccess.cxx20
-rw-r--r--connectivity/source/drivers/mozab/MConnection.cxx74
-rw-r--r--connectivity/source/drivers/mozab/MDatabaseMetaData.cxx282
-rw-r--r--connectivity/source/drivers/mozab/MDriver.cxx34
-rw-r--r--connectivity/source/drivers/mozab/MPreparedStatement.cxx100
-rw-r--r--connectivity/source/drivers/mozab/MResultSet.cxx198
-rw-r--r--connectivity/source/drivers/mozab/MResultSetMetaData.cxx48
-rw-r--r--connectivity/source/drivers/mozab/MServices.cxx6
-rw-r--r--connectivity/source/drivers/mozab/MStatement.cxx72
-rw-r--r--connectivity/source/drivers/mozab/MTable.cxx10
-rw-r--r--connectivity/source/drivers/mozab/MTables.cxx6
-rw-r--r--connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx14
-rw-r--r--connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx8
-rw-r--r--connectivity/source/drivers/mozab/mozillasrc/MDatabaseMetaDataHelper.cxx6
-rw-r--r--connectivity/source/drivers/mozab/mozillasrc/MLdapAttributeMap.cxx30
-rw-r--r--connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx4
-rw-r--r--connectivity/source/drivers/mozab/mozillasrc/MNSTerminateListener.cxx12
-rw-r--r--connectivity/source/drivers/mozab/mozillasrc/MQuery.cxx46
-rw-r--r--connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx10
-rw-r--r--connectivity/source/drivers/mozab/mozillasrc/MTypeConverter.cxx14
-rw-r--r--connectivity/source/drivers/mysql/YCatalog.cxx20
-rw-r--r--connectivity/source/drivers/mysql/YColumns.cxx16
-rw-r--r--connectivity/source/drivers/mysql/YDriver.cxx44
-rw-r--r--connectivity/source/drivers/mysql/YTable.cxx36
-rw-r--r--connectivity/source/drivers/mysql/YTables.cxx20
-rw-r--r--connectivity/source/drivers/mysql/YUser.cxx30
-rw-r--r--connectivity/source/drivers/mysql/YUsers.cxx12
-rw-r--r--connectivity/source/drivers/mysql/YViews.cxx14
-rw-r--r--connectivity/source/drivers/mysql/Yservices.cxx4
-rw-r--r--connectivity/source/drivers/odbc/OConnection.cxx68
-rw-r--r--connectivity/source/drivers/odbc/ODatabaseMetaData.cxx302
-rw-r--r--connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx168
-rw-r--r--connectivity/source/drivers/odbc/ODriver.cxx26
-rw-r--r--connectivity/source/drivers/odbc/OFunctions.cxx6
-rw-r--r--connectivity/source/drivers/odbc/OPreparedStatement.cxx126
-rw-r--r--connectivity/source/drivers/odbc/ORealDriver.cxx8
-rw-r--r--connectivity/source/drivers/odbc/OResultSet.cxx232
-rw-r--r--connectivity/source/drivers/odbc/OResultSetMetaData.cxx54
-rw-r--r--connectivity/source/drivers/odbc/OStatement.cxx152
-rw-r--r--connectivity/source/drivers/odbc/OTools.cxx26
-rw-r--r--connectivity/source/drivers/odbc/oservices.cxx4
-rw-r--r--connectivity/source/drivers/postgresql/pq_xcolumns.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_xindex.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_xindexes.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_xkey.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_xkeycolumns.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_xkeys.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_xtable.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_xuser.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_xview.cxx2
-rw-r--r--connectivity/source/manager/mdrivermanager.cxx50
-rw-r--r--connectivity/source/manager/mregistration.cxx2
-rw-r--r--connectivity/source/parse/PColumn.cxx32
-rw-r--r--connectivity/source/parse/internalnode.cxx8
-rw-r--r--connectivity/source/parse/sqliterator.cxx118
-rw-r--r--connectivity/source/parse/sqlnode.cxx142
-rw-r--r--connectivity/source/resource/sharedresources.cxx26
-rw-r--r--connectivity/source/sdbcx/VCatalog.cxx30
-rw-r--r--connectivity/source/sdbcx/VCollection.cxx116
-rw-r--r--connectivity/source/sdbcx/VColumn.cxx38
-rw-r--r--connectivity/source/sdbcx/VDescriptor.cxx20
-rw-r--r--connectivity/source/sdbcx/VGroup.cxx40
-rw-r--r--connectivity/source/sdbcx/VIndex.cxx40
-rw-r--r--connectivity/source/sdbcx/VIndexColumn.cxx16
-rw-r--r--connectivity/source/sdbcx/VKey.cxx38
-rw-r--r--connectivity/source/sdbcx/VKeyColumn.cxx18
-rw-r--r--connectivity/source/sdbcx/VTable.cxx56
-rw-r--r--connectivity/source/sdbcx/VUser.cxx42
-rw-r--r--connectivity/source/sdbcx/VView.cxx32
-rw-r--r--connectivity/source/simpledbt/charset_s.cxx6
-rw-r--r--connectivity/source/simpledbt/dbtfactory.cxx16
-rw-r--r--connectivity/source/simpledbt/parsenode_s.cxx12
-rw-r--r--connectivity/source/simpledbt/parser_s.cxx10
-rw-r--r--connectivity/source/simpledbt/refbase.cxx6
-rw-r--r--connectivity/source/simpledbt/staticdbtools_s.cxx48
-rw-r--r--cppcanvas/source/mtfrenderer/implrenderer.cxx18
-rw-r--r--cppcanvas/source/mtfrenderer/polypolyaction.cxx4
-rw-r--r--cppcanvas/source/mtfrenderer/textaction.cxx18
-rw-r--r--cppu/source/threadpool/current.cxx6
-rw-r--r--cppu/source/threadpool/thread.cxx4
-rw-r--r--cppu/source/threadpool/threadpool.cxx2
-rw-r--r--cppu/source/typelib/static_types.cxx8
-rw-r--r--cppu/source/typelib/typelib.cxx60
-rw-r--r--cppu/source/uno/data.cxx2
-rw-r--r--cppu/source/uno/lbenv.cxx58
-rw-r--r--cppu/source/uno/lbmap.cxx26
-rw-r--r--cppu/source/uno/sequence.cxx8
-rw-r--r--cppuhelper/source/access_control.cxx14
-rw-r--r--cppuhelper/source/component_context.cxx40
-rw-r--r--cppuhelper/source/exc_thrower.cxx16
-rw-r--r--cppuhelper/source/factory.cxx28
-rw-r--r--cppuhelper/source/implbase.cxx56
-rw-r--r--cppuhelper/source/implbase_ex.cxx14
-rw-r--r--cppuhelper/source/macro_expander.cxx12
-rw-r--r--cppuhelper/source/propshlp.cxx4
-rw-r--r--cppuhelper/source/tdmgr.cxx2
-rw-r--r--cppuhelper/source/typeprovider.cxx30
-rw-r--r--cppuhelper/source/weak.cxx20
-rw-r--r--cppuhelper/test/cfg_test.cxx22
-rw-r--r--cppuhelper/test/testpropshlp.cxx14
-rw-r--r--cui/source/customize/acccfg.cxx68
-rw-r--r--cui/source/customize/cfg.cxx10
-rw-r--r--cui/source/customize/cfgutil.cxx14
-rw-r--r--cui/source/customize/eventdlg.cxx12
-rw-r--r--cui/source/customize/macropg.cxx6
-rw-r--r--cui/source/customize/selector.cxx2
-rw-r--r--cui/source/dialogs/SpellAttrib.cxx36
-rw-r--r--cui/source/dialogs/SpellDialog.cxx98
-rw-r--r--cui/source/dialogs/commonlingui.cxx26
-rw-r--r--cui/source/dialogs/cuicharmap.cxx38
-rw-r--r--cui/source/dialogs/cuigaldlg.cxx126
-rw-r--r--cui/source/dialogs/cuigrfflt.cxx46
-rw-r--r--cui/source/dialogs/cuihyperdlg.cxx2
-rw-r--r--cui/source/dialogs/hangulhanjadlg.cxx76
-rw-r--r--cui/source/dialogs/iconcdlg.cxx44
-rw-r--r--cui/source/dialogs/insdlg.cxx18
-rw-r--r--cui/source/dialogs/multifil.cxx6
-rw-r--r--cui/source/dialogs/multipat.cxx20
-rw-r--r--cui/source/dialogs/postdlg.cxx16
-rw-r--r--cui/source/dialogs/scriptdlg.cxx8
-rw-r--r--cui/source/dialogs/showcols.cxx6
-rw-r--r--cui/source/dialogs/srchxtra.cxx2
-rw-r--r--cui/source/dialogs/zoom.cxx22
-rw-r--r--cui/source/factory/init.cxx2
-rw-r--r--cui/source/options/cfgchart.cxx4
-rw-r--r--cui/source/options/connpoolconfig.cxx16
-rw-r--r--cui/source/options/connpooloptions.cxx56
-rw-r--r--cui/source/options/connpoolsettings.cxx14
-rw-r--r--cui/source/options/dbregister.cxx28
-rw-r--r--cui/source/options/dbregisterednamesconfig.cxx4
-rw-r--r--cui/source/options/dbregistersettings.cxx8
-rw-r--r--cui/source/options/doclinkdialog.cxx14
-rw-r--r--cui/source/options/fontsubs.cxx2
-rw-r--r--cui/source/options/optHeaderTabListbox.cxx6
-rw-r--r--cui/source/options/optchart.cxx10
-rw-r--r--cui/source/options/optctl.cxx8
-rw-r--r--cui/source/options/optdict.cxx24
-rw-r--r--cui/source/options/optfltr.cxx2
-rw-r--r--cui/source/options/optgdlg.cxx28
-rw-r--r--cui/source/options/optgenrl.cxx26
-rw-r--r--cui/source/options/opthtml.cxx2
-rw-r--r--cui/source/options/optinet2.cxx10
-rw-r--r--cui/source/options/optjava.cxx78
-rw-r--r--cui/source/options/optlingu.cxx36
-rw-r--r--cui/source/options/optmemory.cxx12
-rw-r--r--cui/source/options/optpath.cxx28
-rw-r--r--cui/source/options/optsave.cxx14
-rw-r--r--cui/source/options/optupdt.cxx18
-rw-r--r--cui/source/options/sdbcdriverenum.cxx10
-rw-r--r--cui/source/options/treeopt.cxx30
-rw-r--r--cui/source/options/webconninfo.cxx14
-rw-r--r--cui/source/tabpages/autocdlg.cxx2
-rw-r--r--cui/source/tabpages/backgrnd.cxx68
-rw-r--r--cui/source/tabpages/border.cxx66
-rw-r--r--cui/source/tabpages/chardlg.cxx172
-rw-r--r--cui/source/tabpages/labdlg.cxx28
-rw-r--r--cui/source/tabpages/numfmt.cxx24
-rw-r--r--cui/source/tabpages/page.cxx60
-rw-r--r--cui/source/tabpages/tabarea.cxx10
-rw-r--r--cui/source/tabpages/tabline.cxx10
-rw-r--r--cui/source/tabpages/tabstpge.cxx36
-rw-r--r--cui/source/tabpages/tparea.cxx44
-rw-r--r--cui/source/tabpages/tpbitmap.cxx34
-rw-r--r--cui/source/tabpages/tpcolor.cxx54
-rw-r--r--cui/source/tabpages/tpgradnt.cxx30
-rw-r--r--cui/source/tabpages/tphatch.cxx30
-rw-r--r--cui/source/tabpages/tpline.cxx32
-rw-r--r--cui/source/tabpages/tplnedef.cxx40
-rw-r--r--cui/source/tabpages/tplneend.cxx30
-rw-r--r--cui/source/tabpages/tpshadow.cxx20
-rw-r--r--cui/source/tabpages/transfrm.cxx76
-rw-r--r--dbaccess/source/ui/browser/brwctrlr.cxx2
-rw-r--r--dbaccess/source/ui/dlg/advancedsettings.hxx8
-rw-r--r--dbaccess/source/ui/relationdesign/RTableConnection.cxx8
-rw-r--r--dbaccess/source/ui/relationdesign/RTableConnectionData.cxx18
-rw-r--r--dbaccess/source/ui/relationdesign/RelationTableView.cxx18
-rw-r--r--dbaccess/source/ui/tabledesign/FieldDescGenWin.cxx5
-rw-r--r--dbaccess/source/ui/tabledesign/FieldDescGenWin.hxx4
-rw-r--r--dbaccess/source/ui/tabledesign/TEditControl.cxx6
-rw-r--r--dbaccess/source/ui/tabledesign/TableController.cxx18
-rw-r--r--dbaccess/source/ui/tabledesign/TableDesignControl.cxx6
-rw-r--r--dbaccess/source/ui/tabledesign/TableFieldControl.hxx2
-rw-r--r--dbaccess/source/ui/tabledesign/TableFieldDescWin.cxx34
-rw-r--r--dbaccess/source/ui/uno/dbinteraction.cxx10
-rw-r--r--dbaccess/source/ui/uno/unoadmin.cxx2
-rw-r--r--desktop/source/app/app.cxx8
-rw-r--r--desktop/source/app/appinit.cxx2
-rw-r--r--desktop/source/app/check_ext_deps.cxx30
-rw-r--r--desktop/source/app/cmdlineargs.cxx2
-rw-r--r--desktop/source/app/configinit.cxx24
-rw-r--r--desktop/source/app/desktopresid.cxx2
-rw-r--r--desktop/source/app/officeipcthread.cxx2
-rw-r--r--desktop/source/deployment/dp_log.cxx14
-rw-r--r--desktop/source/deployment/dp_persmap.cxx4
-rw-r--r--desktop/source/deployment/gui/descedit.cxx4
-rw-r--r--desktop/source/deployment/gui/dp_gui_dialog2.cxx174
-rw-r--r--desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx68
-rw-r--r--desktop/source/deployment/gui/dp_gui_extlistbox.cxx94
-rw-r--r--desktop/source/deployment/gui/dp_gui_service.cxx14
-rw-r--r--desktop/source/deployment/gui/dp_gui_theextmgr.cxx48
-rw-r--r--desktop/source/deployment/gui/dp_gui_updatedialog.cxx58
-rw-r--r--desktop/source/deployment/gui/license_dialog.cxx4
-rw-r--r--desktop/source/deployment/manager/dp_commandenvironments.cxx4
-rw-r--r--desktop/source/deployment/manager/dp_extensionmanager.cxx10
-rw-r--r--desktop/source/deployment/manager/dp_informationprovider.cxx16
-rw-r--r--desktop/source/deployment/manager/dp_manager.cxx68
-rw-r--r--desktop/source/deployment/manager/dp_managerfac.cxx10
-rw-r--r--desktop/source/deployment/misc/dp_interact.cxx14
-rw-r--r--desktop/source/deployment/registry/component/dp_component.cxx40
-rw-r--r--desktop/source/deployment/registry/configuration/dp_configuration.cxx24
-rw-r--r--desktop/source/deployment/registry/dp_backend.cxx86
-rw-r--r--desktop/source/deployment/registry/dp_registry.cxx18
-rw-r--r--desktop/source/deployment/registry/help/dp_help.cxx10
-rw-r--r--desktop/source/deployment/registry/package/dp_package.cxx34
-rw-r--r--desktop/source/deployment/registry/script/dp_lib_container.cxx2
-rw-r--r--desktop/source/deployment/registry/script/dp_script.cxx10
-rw-r--r--desktop/source/deployment/registry/sfwk/dp_sfwk.cxx16
-rw-r--r--desktop/source/migration/services/basicmigration.cxx28
-rw-r--r--desktop/source/migration/services/jvmfwk.cxx24
-rw-r--r--desktop/source/migration/services/oo3extensionmigration.cxx26
-rw-r--r--desktop/source/migration/services/wordbookmigration.cxx28
-rw-r--r--desktop/source/offacc/acceptor.cxx2
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_app.cxx4
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx18
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_misc.cxx10
-rw-r--r--desktop/win32/source/guiloader/genericloader.cxx6
-rw-r--r--desktop/win32/source/officeloader/officeloader.cxx4
-rw-r--r--drawinglayer/source/dumper/EnhancedShapeDumper.cxx20
-rw-r--r--drawinglayer/source/dumper/XShapeDumper.cxx32
-rw-r--r--dtrans/source/cnttype/mcnttfactory.cxx24
-rw-r--r--dtrans/source/cnttype/mcnttype.cxx88
-rw-r--r--dtrans/source/cnttype/mctfentry.cxx20
-rw-r--r--dtrans/source/cnttype/wbench/testcnttype.cxx32
-rw-r--r--dtrans/source/generic/clipboardmanager.cxx24
-rw-r--r--dtrans/source/generic/generic_clipboard.cxx24
-rw-r--r--dtrans/source/test/test_dtrans.cxx116
-rw-r--r--dtrans/source/win32/clipb/MtaOleClipb.cxx114
-rw-r--r--dtrans/source/win32/clipb/WinClipbImpl.cxx52
-rw-r--r--dtrans/source/win32/clipb/WinClipboard.cxx48
-rw-r--r--dtrans/source/win32/clipb/wcbentry.cxx20
-rw-r--r--dtrans/source/win32/dnd/target.cxx1
-rw-r--r--dtrans/source/win32/dtobj/APNDataObject.cxx60
-rw-r--r--dtrans/source/win32/dtobj/DOTransferable.cxx84
-rw-r--r--dtrans/source/win32/dtobj/DTransHelper.cxx40
-rw-r--r--dtrans/source/win32/dtobj/DataFmtTransl.cxx52
-rw-r--r--dtrans/source/win32/dtobj/DtObjFactory.cxx8
-rw-r--r--dtrans/source/win32/dtobj/Fetc.cxx84
-rw-r--r--dtrans/source/win32/dtobj/FetcList.cxx108
-rw-r--r--dtrans/source/win32/dtobj/FmtFilter.cxx32
-rw-r--r--dtrans/source/win32/dtobj/TxtCnvtHlp.cxx16
-rw-r--r--dtrans/source/win32/dtobj/XTDataObject.cxx152
-rw-r--r--dtrans/source/win32/ftransl/ftransl.cxx68
-rw-r--r--dtrans/source/win32/ftransl/ftranslentry.cxx20
-rw-r--r--dtrans/source/win32/misc/ImplHelper.cxx48
-rw-r--r--dtrans/source/win32/workbench/XTDo.cxx88
-rw-r--r--dtrans/source/win32/workbench/test_wincb.cxx68
-rw-r--r--dtrans/source/win32/workbench/testmarshal.cxx16
-rw-r--r--dtrans/test/win32/dnd/transferable.cxx20
-rw-r--r--editeng/source/accessibility/AccessibleEditableTextPara.cxx14
-rw-r--r--editeng/source/accessibility/AccessibleHyperlink.cxx6
-rw-r--r--editeng/source/accessibility/AccessibleParaManager.cxx10
-rw-r--r--editeng/source/accessibility/AccessibleSelectionBase.cxx20
-rw-r--r--editeng/source/accessibility/AccessibleStaticTextBase.cxx26
-rw-r--r--editeng/source/accessibility/AccessibleStringWrap.cxx4
-rw-r--r--editeng/source/editeng/editeng.cxx6
-rw-r--r--editeng/source/editeng/editobj.cxx2
-rw-r--r--editeng/source/editeng/impedit.cxx2
-rw-r--r--editeng/source/editeng/impedit2.cxx8
-rw-r--r--editeng/source/editeng/impedit3.cxx40
-rw-r--r--editeng/source/items/borderline.cxx10
-rw-r--r--editeng/source/items/bulitem.cxx38
-rw-r--r--editeng/source/items/flditem.cxx108
-rw-r--r--editeng/source/items/frmitems.cxx290
-rw-r--r--editeng/source/items/itemtype.cxx8
-rw-r--r--editeng/source/items/optitems.cxx20
-rw-r--r--editeng/source/items/paperinf.cxx8
-rw-r--r--editeng/source/items/paraitem.cxx120
-rw-r--r--editeng/source/items/textitem.cxx322
-rw-r--r--editeng/source/misc/splwrap.cxx38
-rw-r--r--editeng/source/outliner/outliner.cxx4
-rw-r--r--editeng/source/rtf/rtfitem.cxx2
-rw-r--r--editeng/source/uno/unoedhlp.cxx4
-rw-r--r--editeng/source/uno/unoedprx.cxx14
-rw-r--r--editeng/source/uno/unoedsrc.cxx12
-rw-r--r--editeng/source/uno/unofored.cxx4
-rw-r--r--editeng/source/uno/unoforou.cxx6
-rw-r--r--editeng/source/uno/unoipset.cxx30
-rw-r--r--editeng/source/uno/unotext.cxx4
-rw-r--r--editeng/source/xml/xmltxtexp.cxx24
-rw-r--r--editeng/source/xml/xmltxtimp.cxx2
-rw-r--r--embeddedobj/source/commonembedding/embedobj.cxx32
-rw-r--r--embeddedobj/source/commonembedding/miscobj.cxx46
-rw-r--r--embeddedobj/source/commonembedding/persistence.cxx68
-rw-r--r--embeddedobj/source/commonembedding/specialobject.cxx4
-rw-r--r--embeddedobj/source/general/docholder.cxx64
-rw-r--r--embeddedobj/source/general/dummyobject.cxx76
-rw-r--r--embeddedobj/source/general/xcreator.cxx22
-rw-r--r--embeddedobj/source/msole/olecomponent.cxx98
-rw-r--r--embeddedobj/source/msole/oleembed.cxx36
-rw-r--r--embeddedobj/source/msole/olemisc.cxx48
-rw-r--r--embeddedobj/source/msole/olepersist.cxx88
-rw-r--r--embeddedobj/source/msole/ownview.cxx32
-rw-r--r--embeddedobj/source/msole/xdialogcreator.cxx18
-rw-r--r--embeddedobj/source/msole/xolefactory.cxx20
-rw-r--r--embeddedobj/test/MainThreadExecutor/xexecutor.cxx12
-rw-r--r--embeddedobj/test/mtexecutor/bitmapcreator.cxx14
-rw-r--r--embeddedobj/test/mtexecutor/mainthreadexecutor.cxx18
-rw-r--r--embedserv/source/embed/ed_idataobj.cxx2
-rw-r--r--embedserv/source/embed/ed_ioleobject.cxx6
-rw-r--r--embedserv/source/embed/ed_ipersiststr.cxx8
-rw-r--r--embedserv/source/inprocserv/dllentry.cxx28
-rw-r--r--embedserv/source/inprocserv/inprocembobj.cxx164
-rw-r--r--eventattacher/source/eventattacher.cxx8
-rw-r--r--extensions/source/abpilot/abpfinalpage.cxx22
-rw-r--r--extensions/source/abpilot/abpservices.cxx8
-rw-r--r--extensions/source/abpilot/abspage.cxx12
-rw-r--r--extensions/source/abpilot/abspilot.cxx32
-rw-r--r--extensions/source/abpilot/admininvokationimpl.cxx4
-rw-r--r--extensions/source/abpilot/admininvokationpage.cxx12
-rw-r--r--extensions/source/abpilot/datasourcehandling.cxx72
-rw-r--r--extensions/source/abpilot/fieldmappingimpl.cxx14
-rw-r--r--extensions/source/abpilot/fieldmappingpage.cxx12
-rw-r--r--extensions/source/abpilot/tableselectionpage.cxx16
-rw-r--r--extensions/source/abpilot/typeselectionpage.cxx20
-rw-r--r--extensions/source/abpilot/unodialogabp.cxx34
-rw-r--r--extensions/source/activex/SOActiveX.cxx2
-rw-r--r--extensions/source/bibliography/bibconfig.cxx2
-rw-r--r--extensions/source/bibliography/bibload.cxx6
-rw-r--r--extensions/source/bibliography/bibmod.cxx2
-rw-r--r--extensions/source/bibliography/bibview.cxx4
-rw-r--r--extensions/source/bibliography/datman.cxx48
-rw-r--r--extensions/source/bibliography/formcontrolcontainer.cxx2
-rw-r--r--extensions/source/bibliography/loadlisteneradapter.cxx38
-rw-r--r--extensions/source/bibliography/toolbar.cxx10
-rw-r--r--extensions/source/config/ldap/componentdef.cxx6
-rw-r--r--extensions/source/config/ldap/ldapaccess.cxx22
-rw-r--r--extensions/source/config/ldap/ldapuserprofilebe.cxx18
-rw-r--r--extensions/source/dbpilots/commonpagesdbp.cxx42
-rw-r--r--extensions/source/dbpilots/controlwizard.cxx60
-rw-r--r--extensions/source/dbpilots/dbpservices.cxx8
-rw-r--r--extensions/source/dbpilots/dbptools.cxx2
-rw-r--r--extensions/source/dbpilots/gridwizard.cxx36
-rw-r--r--extensions/source/dbpilots/groupboxwiz.cxx64
-rw-r--r--extensions/source/dbpilots/listcombowizard.cxx70
-rw-r--r--extensions/source/dbpilots/optiongrouplayouter.cxx6
-rw-r--r--extensions/source/dbpilots/wizardservices.cxx12
-rw-r--r--extensions/source/inc/componentmodule.cxx26
-rw-r--r--extensions/source/logging/consolehandler.cxx48
-rw-r--r--extensions/source/logging/filehandler.cxx46
-rw-r--r--extensions/source/logging/log_services.cxx2
-rw-r--r--extensions/source/logging/loggerconfig.cxx10
-rw-r--r--extensions/source/logging/loghandler.cxx16
-rw-r--r--extensions/source/logging/logrecord.cxx4
-rw-r--r--extensions/source/logging/plaintextformatter.cxx22
-rw-r--r--extensions/source/ole/oleobjw.cxx4
-rw-r--r--extensions/source/ole/unoobjw.cxx6
-rw-r--r--extensions/source/plugin/base/plctrl.cxx6
-rw-r--r--extensions/source/plugin/win/sysplug.cxx38
-rw-r--r--extensions/source/plugin/win/winmgr.cxx18
-rw-r--r--extensions/source/propctrlr/MasterDetailLinkDialog.cxx24
-rw-r--r--extensions/source/propctrlr/browserline.cxx62
-rw-r--r--extensions/source/propctrlr/browserlistbox.cxx124
-rw-r--r--extensions/source/propctrlr/browserpage.cxx16
-rw-r--r--extensions/source/propctrlr/browserview.cxx14
-rw-r--r--extensions/source/propctrlr/buttonnavigationhandler.cxx30
-rw-r--r--extensions/source/propctrlr/cellbindinghandler.cxx28
-rw-r--r--extensions/source/propctrlr/cellbindinghelper.cxx50
-rw-r--r--extensions/source/propctrlr/commoncontrol.cxx30
-rw-r--r--extensions/source/propctrlr/composeduiupdate.cxx72
-rw-r--r--extensions/source/propctrlr/controlfontdialog.cxx28
-rw-r--r--extensions/source/propctrlr/defaultforminspection.cxx28
-rw-r--r--extensions/source/propctrlr/defaulthelpprovider.cxx24
-rw-r--r--extensions/source/propctrlr/editpropertyhandler.cxx26
-rw-r--r--extensions/source/propctrlr/eformshelper.cxx54
-rw-r--r--extensions/source/propctrlr/eformspropertyhandler.cxx38
-rw-r--r--extensions/source/propctrlr/fontdialog.cxx32
-rw-r--r--extensions/source/propctrlr/formbrowsertools.cxx4
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx144
-rw-r--r--extensions/source/propctrlr/formcontroller.cxx40
-rw-r--r--extensions/source/propctrlr/formgeometryhandler.cxx44
-rw-r--r--extensions/source/propctrlr/formlinkdialog.cxx48
-rw-r--r--extensions/source/propctrlr/formmetadata.cxx40
-rw-r--r--extensions/source/propctrlr/handlerhelper.cxx18
-rw-r--r--extensions/source/propctrlr/inspectorhelpwindow.cxx20
-rw-r--r--extensions/source/propctrlr/inspectormodelbase.cxx36
-rw-r--r--extensions/source/propctrlr/listselectiondlg.cxx14
-rw-r--r--extensions/source/propctrlr/newdatatype.cxx4
-rw-r--r--extensions/source/propctrlr/objectinspectormodel.cxx28
-rw-r--r--extensions/source/propctrlr/pcrcommon.cxx4
-rw-r--r--extensions/source/propctrlr/pcrservices.cxx8
-rw-r--r--extensions/source/propctrlr/pcrunodialogs.cxx24
-rw-r--r--extensions/source/propctrlr/propcontroller.cxx162
-rw-r--r--extensions/source/propctrlr/propertycomposer.cxx54
-rw-r--r--extensions/source/propctrlr/propertycontrolextender.cxx10
-rw-r--r--extensions/source/propctrlr/propertyeditor.cxx86
-rw-r--r--extensions/source/propctrlr/propeventtranslation.cxx6
-rw-r--r--extensions/source/propctrlr/pushbuttonnavigation.cxx22
-rw-r--r--extensions/source/propctrlr/selectlabeldialog.cxx10
-rw-r--r--extensions/source/propctrlr/sqlcommanddesign.cxx30
-rw-r--r--extensions/source/propctrlr/standardcontrol.cxx198
-rw-r--r--extensions/source/propctrlr/stringrepresentation.cxx18
-rw-r--r--extensions/source/propctrlr/submissionhandler.cxx36
-rw-r--r--extensions/source/propctrlr/taborder.cxx26
-rw-r--r--extensions/source/propctrlr/usercontrol.cxx46
-rw-r--r--extensions/source/propctrlr/xsddatatypes.cxx28
-rw-r--r--extensions/source/propctrlr/xsdvalidationhelper.cxx30
-rw-r--r--extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx46
-rw-r--r--extensions/source/resource/oooresourceloader.cxx4
-rw-r--r--extensions/source/scanner/grid.cxx46
-rw-r--r--extensions/source/scanner/scanner.cxx20
-rw-r--r--extensions/source/scanner/scanunx.cxx34
-rw-r--r--extensions/source/update/check/download.cxx18
-rw-r--r--extensions/source/update/check/updatecheck.cxx126
-rw-r--r--extensions/source/update/check/updatecheckconfig.cxx92
-rw-r--r--extensions/source/update/check/updatecheckjob.cxx34
-rw-r--r--extensions/source/update/check/updatehdl.cxx88
-rw-r--r--extensions/source/update/check/updateprotocol.cxx10
-rw-r--r--extensions/source/update/check/updateprotocoltest.cxx2
-rw-r--r--extensions/source/update/feed/test/updatefeedtest.cxx2
-rw-r--r--extensions/source/update/feed/updatefeed.cxx50
-rw-r--r--extensions/source/update/ui/updatecheckui.cxx98
-rw-r--r--extensions/test/ole/cpnt/cpnt.cxx6
-rw-r--r--extensions/test/stm/datatest.cxx4
-rw-r--r--extensions/test/stm/marktest.cxx2
-rw-r--r--extensions/workben/testcomponent.cxx2
-rw-r--r--extensions/workben/testframecontrol.cxx16
-rw-r--r--extensions/workben/testresource.cxx2
-rw-r--r--filter/source/config/cache/cacheitem.cxx10
-rw-r--r--filter/source/config/cache/configflush.cxx10
-rw-r--r--filter/source/config/cache/filtercache.cxx28
-rw-r--r--filter/source/flash/impswfdialog.cxx8
-rw-r--r--filter/source/flash/swfdialog.cxx48
-rw-r--r--filter/source/flash/swfexporter.cxx22
-rw-r--r--filter/source/flash/swffilter.cxx12
-rw-r--r--filter/source/flash/swfwriter.cxx42
-rw-r--r--filter/source/flash/swfwriter1.cxx64
-rw-r--r--filter/source/flash/swfwriter2.cxx70
-rw-r--r--filter/source/graphicfilter/egif/egif.cxx38
-rw-r--r--filter/source/graphicfilter/egif/giflzwc.cxx30
-rw-r--r--filter/source/graphicfilter/eos2met/eos2met.cxx4
-rw-r--r--filter/source/graphicfilter/epbm/epbm.cxx18
-rw-r--r--filter/source/graphicfilter/epgm/epgm.cxx18
-rw-r--r--filter/source/graphicfilter/epict/epict.cxx34
-rw-r--r--filter/source/graphicfilter/eppm/eppm.cxx18
-rw-r--r--filter/source/graphicfilter/eps/eps.cxx100
-rw-r--r--filter/source/graphicfilter/eras/eras.cxx18
-rw-r--r--filter/source/graphicfilter/etiff/etiff.cxx32
-rw-r--r--filter/source/graphicfilter/expm/expm.cxx18
-rw-r--r--filter/source/graphicfilter/icgm/actimpr.cxx46
-rw-r--r--filter/source/graphicfilter/icgm/bitmap.cxx16
-rw-r--r--filter/source/graphicfilter/icgm/bundles.cxx18
-rw-r--r--filter/source/graphicfilter/icgm/cgm.cxx73
-rw-r--r--filter/source/graphicfilter/icgm/chart.cxx14
-rw-r--r--filter/source/graphicfilter/icgm/class0.cxx2
-rw-r--r--filter/source/graphicfilter/icgm/class1.cxx2
-rw-r--r--filter/source/graphicfilter/icgm/class2.cxx2
-rw-r--r--filter/source/graphicfilter/icgm/class3.cxx2
-rw-r--r--filter/source/graphicfilter/icgm/class4.cxx6
-rw-r--r--filter/source/graphicfilter/icgm/class5.cxx2
-rw-r--r--filter/source/graphicfilter/icgm/class7.cxx2
-rw-r--r--filter/source/graphicfilter/icgm/classx.cxx12
-rw-r--r--filter/source/graphicfilter/icgm/elements.cxx20
-rw-r--r--filter/source/graphicfilter/icgm/outact.cxx22
-rw-r--r--filter/source/graphicfilter/idxf/dxfblkrd.cxx8
-rw-r--r--filter/source/graphicfilter/idxf/dxfgrprd.cxx4
-rw-r--r--filter/source/graphicfilter/ieps/ieps.cxx4
-rw-r--r--filter/source/graphicfilter/ipcd/ipcd.cxx8
-rw-r--r--filter/source/graphicfilter/ipict/ipict.cxx4
-rw-r--r--filter/source/graphicfilter/ipsd/ipsd.cxx6
-rw-r--r--filter/source/graphicfilter/iras/iras.cxx8
-rw-r--r--filter/source/graphicfilter/itga/itga.cxx8
-rw-r--r--filter/source/graphicfilter/itiff/itiff.cxx18
-rw-r--r--filter/source/msfilter/countryid.cxx6
-rw-r--r--filter/source/msfilter/escherex.cxx57
-rw-r--r--filter/source/msfilter/msdffimp.cxx12
-rw-r--r--filter/source/msfilter/util.cxx55
-rw-r--r--filter/source/pdf/impdialog.cxx92
-rw-r--r--filter/source/pdf/pdfdialog.cxx42
-rw-r--r--filter/source/pdf/pdfexport.cxx12
-rw-r--r--filter/source/pdf/pdffilter.cxx14
-rw-r--r--filter/source/placeware/exporter.cxx8
-rw-r--r--filter/source/placeware/filter.cxx14
-rw-r--r--filter/source/svg/impsvgdialog.cxx10
-rw-r--r--filter/source/svg/svgdialog.cxx44
-rw-r--r--filter/source/svg/svgexport.cxx92
-rw-r--r--filter/source/svg/svgfilter.cxx18
-rw-r--r--filter/source/svg/svgfontexport.cxx18
-rw-r--r--filter/source/svg/svgwriter.cxx8
-rw-r--r--filter/source/svg/test/parsertest.cxx2
-rw-r--r--filter/source/xmlfilteradaptor/streamwrap.cxx6
-rw-r--r--filter/source/xsltdialog/xmlfilterdialogcomponent.cxx26
-rw-r--r--filter/source/xsltdialog/xmlfiltersettingsdialog.cxx76
-rw-r--r--filter/source/xsltdialog/xmlfiltertabdialog.cxx12
-rw-r--r--filter/source/xsltdialog/xmlfiltertestdialog.cxx2
-rw-r--r--filter/source/xsltfilter/XSLTFilter.cxx4
-rw-r--r--forms/source/component/Button.cxx100
-rw-r--r--forms/source/component/CheckBox.cxx30
-rw-r--r--forms/source/component/Columns.cxx42
-rw-r--r--forms/source/component/ComboBox.cxx68
-rw-r--r--forms/source/component/Currency.cxx38
-rw-r--r--forms/source/component/DatabaseForm.cxx348
-rw-r--r--forms/source/component/Date.cxx50
-rw-r--r--forms/source/component/Edit.cxx84
-rw-r--r--forms/source/component/EditBase.cxx26
-rw-r--r--forms/source/component/File.cxx44
-rw-r--r--forms/source/component/Filter.cxx60
-rw-r--r--forms/source/component/FixedText.cxx22
-rw-r--r--forms/source/component/FormComponent.cxx597
-rw-r--r--forms/source/component/FormattedField.cxx206
-rw-r--r--forms/source/component/FormattedField.hxx58
-rw-r--r--forms/source/component/FormsCollection.cxx24
-rw-r--r--forms/source/component/Grid.cxx204
-rw-r--r--forms/source/component/GroupBox.cxx28
-rw-r--r--forms/source/component/GroupManager.cxx65
-rw-r--r--forms/source/component/Hidden.cxx28
-rw-r--r--forms/source/component/ImageButton.cxx30
-rw-r--r--forms/source/component/ImageControl.cxx100
-rw-r--r--forms/source/component/ListBox.cxx180
-rw-r--r--forms/source/component/Numeric.cxx36
-rw-r--r--forms/source/component/Pattern.cxx40
-rw-r--r--forms/source/component/RadioButton.cxx40
-rw-r--r--forms/source/component/Time.cxx52
-rw-r--r--forms/source/component/cachedrowset.cxx18
-rw-r--r--forms/source/component/clickableimage.cxx90
-rw-r--r--forms/source/component/cloneable.cxx2
-rw-r--r--forms/source/component/entrylisthelper.cxx42
-rw-r--r--forms/source/component/errorbroadcaster.cxx14
-rw-r--r--forms/source/component/formcontrolfont.cxx24
-rw-r--r--forms/source/component/imgprod.cxx50
-rw-r--r--forms/source/component/navigationbar.cxx46
-rw-r--r--forms/source/component/propertybaghelper.cxx42
-rw-r--r--forms/source/component/refvaluecomponent.cxx26
-rw-r--r--forms/source/component/scrollbar.cxx48
-rw-r--r--forms/source/component/spinbutton.cxx44
-rw-r--r--forms/source/helper/commanddescriptionprovider.cxx6
-rw-r--r--forms/source/helper/commandimageprovider.cxx6
-rw-r--r--forms/source/helper/controlfeatureinterception.cxx14
-rw-r--r--forms/source/helper/formnavigation.cxx56
-rw-r--r--forms/source/helper/resettable.cxx10
-rw-r--r--forms/source/helper/urltransformer.cxx10
-rw-r--r--forms/source/helper/windowstateguard.cxx26
-rw-r--r--forms/source/misc/InterfaceContainer.cxx130
-rw-r--r--forms/source/misc/componenttools.cxx14
-rw-r--r--forms/source/misc/limitedformats.cxx28
-rw-r--r--forms/source/misc/listenercontainers.cxx2
-rw-r--r--forms/source/misc/property.cxx6
-rw-r--r--forms/source/misc/services.cxx20
-rw-r--r--forms/source/resource/frm_resource.cxx8
-rw-r--r--forms/source/richtext/attributedispatcher.cxx14
-rw-r--r--forms/source/richtext/clipboarddispatcher.cxx20
-rw-r--r--forms/source/richtext/featuredispatcher.cxx22
-rw-r--r--forms/source/richtext/parametrizedattributedispatcher.cxx12
-rw-r--r--forms/source/richtext/richtextcontrol.cxx58
-rw-r--r--forms/source/richtext/richtextengine.cxx14
-rw-r--r--forms/source/richtext/richtextimplcontrol.cxx66
-rw-r--r--forms/source/richtext/richtextmodel.cxx60
-rw-r--r--forms/source/richtext/richtextunowrapper.cxx14
-rw-r--r--forms/source/richtext/richtextvclcontrol.cxx52
-rw-r--r--forms/source/richtext/richtextviewport.cxx22
-rw-r--r--forms/source/richtext/rtattributehandler.cxx70
-rw-r--r--forms/source/richtext/specialdispatchers.cxx22
-rw-r--r--forms/source/runtime/formoperations.cxx112
-rw-r--r--forms/source/solar/component/navbarcontrol.cxx60
-rw-r--r--forms/source/solar/control/navtoolbar.cxx70
-rw-r--r--forms/source/xforms/convert.cxx36
-rw-r--r--forms/source/xforms/datatyperepository.cxx28
-rw-r--r--forms/source/xforms/datatypes.cxx154
-rw-r--r--formula/source/core/api/FormulaOpCodeMapperObj.cxx8
-rw-r--r--formula/source/core/api/token.cxx10
-rw-r--r--formula/source/core/resource/core_resource.cxx6
-rw-r--r--formula/source/ui/dlg/FormulaHelper.cxx10
-rw-r--r--formula/source/ui/dlg/formula.cxx74
-rw-r--r--formula/source/ui/dlg/funcpage.cxx6
-rw-r--r--formula/source/ui/dlg/structpg.cxx2
-rw-r--r--formula/source/ui/resource/ModuleHelper.cxx14
-rw-r--r--fpicker/source/office/OfficeControlAccess.cxx46
-rw-r--r--fpicker/source/office/OfficeFilePicker.cxx118
-rw-r--r--fpicker/source/office/asyncfilepicker.cxx14
-rw-r--r--fpicker/source/office/commonpicker.cxx70
-rw-r--r--fpicker/source/office/fpinteraction.cxx16
-rw-r--r--fpicker/source/office/fpsmartcontent.cxx26
-rw-r--r--fpicker/source/office/iodlg.cxx94
-rw-r--r--fpicker/source/office/iodlgimp.cxx28
-rw-r--r--fpicker/source/win32/filepicker/FPentry.cxx8
-rw-r--r--fpicker/source/win32/filepicker/FileOpenDlg.cxx152
-rw-r--r--fpicker/source/win32/filepicker/FilePicker.cxx172
-rw-r--r--fpicker/source/win32/filepicker/FilterContainer.cxx68
-rw-r--r--fpicker/source/win32/filepicker/PreviewCtrl.cxx88
-rw-r--r--fpicker/source/win32/filepicker/VistaFilePicker.cxx106
-rw-r--r--fpicker/source/win32/filepicker/VistaFilePickerEventHandler.cxx48
-rw-r--r--fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx76
-rw-r--r--fpicker/source/win32/filepicker/WinFileOpenImpl.cxx192
-rw-r--r--fpicker/source/win32/filepicker/asynceventnotifier.cxx64
-rw-r--r--fpicker/source/win32/filepicker/controlaccess.cxx44
-rw-r--r--fpicker/source/win32/filepicker/controlcommand.cxx68
-rw-r--r--fpicker/source/win32/filepicker/customcontrol.cxx16
-rw-r--r--fpicker/source/win32/filepicker/customcontrolcontainer.cxx28
-rw-r--r--fpicker/source/win32/filepicker/customcontrolfactory.cxx8
-rw-r--r--fpicker/source/win32/filepicker/dialogcustomcontrols.cxx56
-rw-r--r--fpicker/source/win32/filepicker/dibpreview.cxx64
-rw-r--r--fpicker/source/win32/filepicker/filepickereventnotification.cxx20
-rw-r--r--fpicker/source/win32/filepicker/filepickerstate.cxx120
-rw-r--r--fpicker/source/win32/filepicker/getfilenamewrapper.cxx36
-rw-r--r--fpicker/source/win32/filepicker/helppopupwindow.cxx68
-rw-r--r--fpicker/source/win32/filepicker/previewadapter.cxx144
-rw-r--r--fpicker/source/win32/filepicker/previewbase.cxx44
-rw-r--r--fpicker/source/win32/filepicker/workbench/Test_fps.cxx24
-rw-r--r--fpicker/source/win32/folderpicker/FolderPicker.cxx52
-rw-r--r--fpicker/source/win32/folderpicker/MtaFop.cxx114
-rw-r--r--fpicker/source/win32/folderpicker/WinFOPImpl.cxx32
-rw-r--r--fpicker/source/win32/folderpicker/workbench/Test_fops.cxx24
-rw-r--r--fpicker/source/win32/misc/WinImplHelper.cxx80
-rw-r--r--fpicker/source/win32/misc/resourceprovider.cxx44
-rw-r--r--fpicker/test/svdem.cxx26
-rw-r--r--framework/source/accelerators/acceleratorcache.cxx26
-rw-r--r--framework/source/accelerators/acceleratorconfiguration.cxx120
-rw-r--r--framework/source/accelerators/documentacceleratorconfiguration.cxx14
-rw-r--r--framework/source/accelerators/globalacceleratorconfiguration.cxx2
-rw-r--r--framework/source/accelerators/keymapping.cxx12
-rw-r--r--framework/source/accelerators/moduleacceleratorconfiguration.cxx2
-rw-r--r--framework/source/accelerators/presethandler.cxx54
-rw-r--r--framework/source/accelerators/storageholder.cxx40
-rw-r--r--framework/source/classes/fwktabwindow.cxx36
-rw-r--r--framework/source/classes/fwlresid.cxx2
-rw-r--r--framework/source/classes/menumanager.cxx4
-rw-r--r--framework/source/dispatch/closedispatcher.cxx30
-rw-r--r--framework/source/dispatch/dispatchinformationprovider.cxx10
-rw-r--r--framework/source/dispatch/dispatchprovider.cxx64
-rw-r--r--framework/source/dispatch/mailtodispatcher.cxx20
-rw-r--r--framework/source/dispatch/servicehandler.cxx20
-rw-r--r--framework/source/dispatch/startmoduledispatcher.cxx22
-rw-r--r--framework/source/dispatch/systemexec.cxx20
-rw-r--r--framework/source/dispatch/windowcommanddispatch.cxx10
-rw-r--r--framework/source/fwe/classes/addonmenu.cxx8
-rw-r--r--framework/source/fwe/classes/addonsoptions.cxx32
-rw-r--r--framework/source/fwe/classes/bmkmenu.cxx2
-rw-r--r--framework/source/fwe/classes/framelistanalyzer.cxx10
-rw-r--r--framework/source/fwe/classes/fwkresid.cxx2
-rw-r--r--framework/source/fwe/dispatch/interaction.cxx40
-rw-r--r--framework/source/fwe/helper/actiontriggerhelper.cxx8
-rw-r--r--framework/source/fwe/helper/documentundoguard.cxx30
-rw-r--r--framework/source/fwe/helper/titlehelper.cxx46
-rw-r--r--framework/source/fwe/helper/undomanagerhelper.cxx134
-rw-r--r--framework/source/fwe/interaction/preventduplicateinteraction.cxx16
-rw-r--r--framework/source/fwe/xml/menudocumenthandler.cxx14
-rw-r--r--framework/source/fwe/xml/statusbardocumenthandler.cxx8
-rw-r--r--framework/source/fwe/xml/toolboxdocumenthandler.cxx8
-rw-r--r--framework/source/fwi/classes/converter.cxx4
-rw-r--r--framework/source/fwi/classes/propertysethelper.cxx38
-rw-r--r--framework/source/fwi/helper/networkdomain.cxx32
-rw-r--r--framework/source/fwi/jobs/configaccess.cxx10
-rw-r--r--framework/source/fwi/uielement/rootitemcontainer.cxx2
-rw-r--r--framework/source/helper/ocomponentaccess.cxx4
-rw-r--r--framework/source/helper/ocomponentenumeration.cxx4
-rw-r--r--framework/source/helper/oframes.cxx16
-rw-r--r--framework/source/helper/statusindicator.cxx2
-rw-r--r--framework/source/helper/statusindicatorfactory.cxx34
-rw-r--r--framework/source/helper/vclstatusindicator.cxx16
-rw-r--r--framework/source/helper/wakeupthread.cxx2
-rw-r--r--framework/source/interaction/quietinteraction.cxx8
-rw-r--r--framework/source/jobs/helponstartup.cxx24
-rw-r--r--framework/source/jobs/job.cxx32
-rw-r--r--framework/source/jobs/jobdata.cxx46
-rw-r--r--framework/source/jobs/jobdispatch.cxx28
-rw-r--r--framework/source/jobs/jobexecutor.cxx8
-rw-r--r--framework/source/jobs/jobresult.cxx14
-rw-r--r--framework/source/jobs/joburl.cxx22
-rw-r--r--framework/source/jobs/shelljob.cxx20
-rw-r--r--framework/source/layoutmanager/layoutmanager.cxx28
-rw-r--r--framework/source/layoutmanager/toolbarlayoutmanager.cxx20
-rw-r--r--framework/source/loadenv/loadenv.cxx26
-rw-r--r--framework/source/recording/dispatchrecorder.cxx2
-rw-r--r--framework/source/recording/dispatchrecordersupplier.cxx10
-rw-r--r--framework/source/services/autorecovery.cxx336
-rw-r--r--framework/source/services/desktop.cxx58
-rw-r--r--framework/source/services/dispatchhelper.cxx12
-rw-r--r--framework/source/services/frame.cxx208
-rw-r--r--framework/source/services/modulemanager.cxx6
-rw-r--r--framework/source/services/pathsettings.cxx74
-rw-r--r--framework/source/services/substitutepathvars.cxx12
-rw-r--r--framework/source/services/tabwindowservice.cxx8
-rw-r--r--framework/source/services/taskcreatorsrv.cxx22
-rw-r--r--framework/source/tabwin/tabwindow.cxx40
-rw-r--r--framework/source/tabwin/tabwinfactory.cxx4
-rw-r--r--framework/source/uiconfiguration/globalsettings.cxx8
-rw-r--r--framework/source/uiconfiguration/imagemanagerimpl.cxx4
-rw-r--r--framework/source/uiconfiguration/moduleimagemanager.cxx4
-rw-r--r--framework/source/uielement/addonstoolbarmanager.cxx4
-rw-r--r--framework/source/uielement/comboboxtoolbarcontroller.cxx14
-rw-r--r--framework/source/uielement/complextoolbarcontroller.cxx24
-rw-r--r--framework/source/uielement/dropdownboxtoolbarcontroller.cxx14
-rw-r--r--framework/source/uielement/edittoolbarcontroller.cxx14
-rw-r--r--framework/source/uielement/fontmenucontroller.cxx4
-rw-r--r--framework/source/uielement/fontsizemenucontroller.cxx4
-rw-r--r--framework/source/uielement/footermenucontroller.cxx4
-rw-r--r--framework/source/uielement/headermenucontroller.cxx4
-rw-r--r--framework/source/uielement/imagebuttontoolbarcontroller.cxx10
-rw-r--r--framework/source/uielement/langselectionmenucontroller.cxx4
-rw-r--r--framework/source/uielement/menubarmanager.cxx4
-rw-r--r--framework/source/uielement/newmenucontroller.cxx4
-rw-r--r--framework/source/uielement/spinfieldtoolbarcontroller.cxx14
-rw-r--r--framework/source/uielement/togglebuttontoolbarcontroller.cxx12
-rw-r--r--framework/source/uielement/toolbarmanager.cxx4
-rw-r--r--framework/source/uielement/toolbarsmenucontroller.cxx4
-rw-r--r--framework/source/uielement/uicommanddescription.cxx4
-rw-r--r--framework/source/uifactory/factoryconfiguration.cxx8
-rw-r--r--framework/source/xml/acceleratorconfigurationreader.cxx28
-rw-r--r--framework/source/xml/acceleratorconfigurationwriter.cxx8
-rw-r--r--framework/source/xml/imagesdocumenthandler.cxx8
-rw-r--r--hwpfilter/source/cspline.cxx2
-rw-r--r--hwpfilter/source/mzstring.cxx2
-rw-r--r--hwpfilter/source/solver.cxx8
-rw-r--r--i18nlangtag/source/isolang/inunx.cxx10
-rw-r--r--i18nlangtag/source/isolang/inwnt.cxx6
-rw-r--r--i18nlangtag/source/isolang/isolang.cxx16
-rw-r--r--i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx2
-rw-r--r--i18npool/source/localedata/filewriter.cxx4
-rw-r--r--i18npool/source/localedata/localedata.cxx2
-rw-r--r--i18npool/source/localedata/saxparser.cxx8
-rw-r--r--i18npool/source/registerservices/registerservices.cxx2
-rw-r--r--i18npool/source/search/levdis.cxx68
-rw-r--r--i18npool/source/search/textsearch.cxx6
-rw-r--r--io/source/stm/odata.cxx4
-rw-r--r--io/source/stm/omark.cxx4
-rw-r--r--io/source/stm/opump.cxx22
-rw-r--r--io/test/stm/marktest.cxx2
-rw-r--r--io/test/testcomponent.cxx2
-rw-r--r--javaunohelper/source/preload.cxx2
-rw-r--r--jvmaccess/workbench/javainfo/javainfotest.cxx4
-rw-r--r--lotuswordpro/source/filter/lwpcelllayout.cxx6
-rw-r--r--lotuswordpro/source/filter/xfilter/xfliststyle.cxx4
-rw-r--r--mysqlc/source/mysqlc_connection.cxx4
-rw-r--r--mysqlc/source/mysqlc_databasemetadata.cxx2
-rw-r--r--mysqlc/source/mysqlc_general.cxx2
-rw-r--r--mysqlc/source/mysqlc_resultsetmetadata.cxx2
-rw-r--r--mysqlc/source/mysqlc_statement.cxx2
-rw-r--r--o3tl/qa/cow_wrapper_clients.cxx4
-rw-r--r--o3tl/qa/test-cow_wrapper.cxx2
-rw-r--r--o3tl/qa/test-range.cxx2
-rw-r--r--o3tl/qa/test-sorted_vector.cxx2
-rw-r--r--odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx62
-rw-r--r--odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx306
-rw-r--r--odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx16
-rw-r--r--odk/examples/DevelopersGuide/Database/DriverSkeleton/SPreparedStatement.cxx80
-rw-r--r--odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx170
-rw-r--r--odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSetMetaData.cxx48
-rw-r--r--odk/examples/DevelopersGuide/Database/DriverSkeleton/SServices.cxx6
-rw-r--r--odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx74
-rw-r--r--odk/examples/DevelopersGuide/Database/DriverSkeleton/propertyids.cxx4
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx4
-rw-r--r--odk/examples/cpp/custompanel/ctp_factory.cxx8
-rw-r--r--odk/examples/cpp/custompanel/ctp_panel.cxx28
-rw-r--r--odk/examples/cpp/custompanel/ctp_services.cxx2
-rw-r--r--oovbaapi/ooo/vba/XErrObject.idl2
-rw-r--r--oox/source/core/recordparser.cxx4
-rw-r--r--oox/source/core/xmlfilterbase.cxx2
-rw-r--r--oox/source/docprop/docprophandler.cxx40
-rw-r--r--oox/source/drawingml/chart/converterbase.cxx8
-rw-r--r--oox/source/drawingml/chart/objectformatter.cxx24
-rw-r--r--oox/source/drawingml/chart/plotareaconverter.cxx2
-rw-r--r--oox/source/drawingml/clrscheme.cxx2
-rw-r--r--oox/source/drawingml/color.cxx8
-rw-r--r--oox/source/drawingml/customshapegeometry.cxx34
-rw-r--r--oox/source/drawingml/drawingmltypes.cxx4
-rw-r--r--oox/source/drawingml/effectpropertiescontext.cxx2
-rw-r--r--oox/source/drawingml/lineproperties.cxx2
-rw-r--r--oox/source/drawingml/linepropertiescontext.cxx2
-rw-r--r--oox/source/drawingml/shapepropertiescontext.cxx2
-rw-r--r--oox/source/drawingml/shapestylecontext.cxx4
-rw-r--r--oox/source/drawingml/textbodycontext.cxx20
-rw-r--r--oox/source/drawingml/textliststylecontext.cxx4
-rw-r--r--oox/source/drawingml/textparagraphpropertiescontext.cxx2
-rw-r--r--oox/source/dump/dumperbase.cxx6
-rw-r--r--oox/source/dump/oledumper.cxx4
-rw-r--r--oox/source/export/chartexport.cxx4
-rw-r--r--oox/source/helper/attributelist.cxx2
-rw-r--r--oox/source/helper/containerhelper.cxx2
-rw-r--r--oox/source/helper/progressbar.cxx4
-rw-r--r--oox/source/helper/propertymap.cxx2
-rw-r--r--oox/source/helper/storagebase.cxx2
-rw-r--r--oox/source/helper/textinputstream.cxx2
-rw-r--r--oox/source/ole/axbinaryreader.cxx4
-rw-r--r--oox/source/ole/axbinarywriter.cxx4
-rw-r--r--oox/source/ole/axcontrol.cxx6
-rw-r--r--oox/source/ole/olehelper.cxx4
-rw-r--r--oox/source/ole/olestorage.cxx4
-rw-r--r--oox/source/ole/vbacontrol.cxx8
-rw-r--r--oox/source/ole/vbaproject.cxx2
-rw-r--r--oox/source/ppt/backgroundproperties.cxx2
-rw-r--r--oox/source/ppt/customshowlistcontext.cxx2
-rw-r--r--oox/source/ppt/timenode.cxx4
-rw-r--r--oox/source/vml/vmlformatting.cxx2
-rw-r--r--oox/source/vml/vmlinputstream.cxx2
-rw-r--r--oox/source/vml/vmlshape.cxx8
-rw-r--r--padmin/source/adddlg.cxx14
-rw-r--r--padmin/source/pamain.cxx6
-rw-r--r--padmin/source/prtsetup.cxx40
-rw-r--r--padmin/source/titlectrl.cxx12
-rw-r--r--pyuno/source/module/pyuno_util.cxx4
-rw-r--r--reportdesign/source/core/api/FixedLine.cxx136
-rw-r--r--reportdesign/source/core/api/FixedText.cxx98
-rw-r--r--reportdesign/source/core/api/FormatCondition.cxx44
-rw-r--r--reportdesign/source/core/api/FormattedField.cxx98
-rw-r--r--reportdesign/source/core/api/Function.cxx60
-rw-r--r--reportdesign/source/core/api/Functions.cxx36
-rw-r--r--reportdesign/source/core/api/Group.cxx86
-rw-r--r--reportdesign/source/core/api/Groups.cxx38
-rw-r--r--reportdesign/source/core/api/ImageControl.cxx108
-rw-r--r--reportdesign/source/core/api/ReportComponent.cxx4
-rw-r--r--reportdesign/source/core/api/ReportControlModel.cxx22
-rw-r--r--reportdesign/source/core/api/ReportEngineJFree.cxx62
-rw-r--r--reportdesign/source/core/api/ReportVisitor.cxx4
-rw-r--r--reportdesign/source/core/api/Section.cxx138
-rw-r--r--reportdesign/source/core/api/Shape.cxx124
-rw-r--r--reportdesign/source/core/api/Tools.cxx6
-rw-r--r--reportdesign/source/core/misc/conditionalexpression.cxx8
-rw-r--r--reportdesign/source/core/misc/conditionupdater.cxx10
-rw-r--r--reportdesign/source/core/misc/reportformula.cxx18
-rw-r--r--reportdesign/source/core/resource/core_resource.cxx8
-rw-r--r--reportdesign/source/core/sdr/ModuleHelper.cxx14
-rw-r--r--reportdesign/source/core/sdr/PropertyForward.cxx14
-rw-r--r--reportdesign/source/core/sdr/RptModel.cxx28
-rw-r--r--reportdesign/source/core/sdr/RptObject.cxx102
-rw-r--r--reportdesign/source/core/sdr/RptObjectListener.cxx16
-rw-r--r--reportdesign/source/core/sdr/RptPage.cxx24
-rw-r--r--reportdesign/source/core/sdr/UndoActions.cxx52
-rw-r--r--reportdesign/source/core/sdr/UndoEnv.cxx52
-rw-r--r--reportdesign/source/core/sdr/formatnormalizer.cxx20
-rw-r--r--reportdesign/source/filter/xml/dbloader2.cxx20
-rw-r--r--reportdesign/source/filter/xml/xmlAutoStyle.cxx10
-rw-r--r--reportdesign/source/filter/xml/xmlCell.cxx16
-rw-r--r--reportdesign/source/filter/xml/xmlColumn.cxx14
-rw-r--r--reportdesign/source/filter/xml/xmlComponent.cxx8
-rw-r--r--reportdesign/source/filter/xml/xmlCondPrtExpr.cxx10
-rw-r--r--reportdesign/source/filter/xml/xmlControlProperty.cxx22
-rw-r--r--reportdesign/source/filter/xml/xmlExport.cxx122
-rw-r--r--reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx20
-rw-r--r--reportdesign/source/filter/xml/xmlFixedContent.cxx22
-rw-r--r--reportdesign/source/filter/xml/xmlFormatCondition.cxx8
-rw-r--r--reportdesign/source/filter/xml/xmlFormattedField.cxx8
-rw-r--r--reportdesign/source/filter/xml/xmlFunction.cxx12
-rw-r--r--reportdesign/source/filter/xml/xmlGroup.cxx14
-rw-r--r--reportdesign/source/filter/xml/xmlHelper.cxx38
-rw-r--r--reportdesign/source/filter/xml/xmlImage.cxx10
-rw-r--r--reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx14
-rw-r--r--reportdesign/source/filter/xml/xmlMasterFields.cxx8
-rw-r--r--reportdesign/source/filter/xml/xmlPropertyHandler.cxx10
-rw-r--r--reportdesign/source/filter/xml/xmlReport.cxx14
-rw-r--r--reportdesign/source/filter/xml/xmlReportElement.cxx10
-rw-r--r--reportdesign/source/filter/xml/xmlReportElementBase.cxx12
-rw-r--r--reportdesign/source/filter/xml/xmlRow.cxx12
-rw-r--r--reportdesign/source/filter/xml/xmlSection.cxx12
-rw-r--r--reportdesign/source/filter/xml/xmlStyleImport.cxx40
-rw-r--r--reportdesign/source/filter/xml/xmlSubDocument.cxx12
-rw-r--r--reportdesign/source/filter/xml/xmlTable.cxx16
-rw-r--r--reportdesign/source/filter/xml/xmlfilter.cxx96
-rw-r--r--reportdesign/source/ui/dlg/AddField.cxx52
-rw-r--r--reportdesign/source/ui/dlg/CondFormat.cxx54
-rw-r--r--reportdesign/source/ui/dlg/Condition.cxx66
-rw-r--r--reportdesign/source/ui/dlg/DateTime.cxx12
-rw-r--r--reportdesign/source/ui/dlg/Formula.cxx20
-rw-r--r--reportdesign/source/ui/dlg/GroupExchange.cxx8
-rw-r--r--reportdesign/source/ui/dlg/GroupsSorting.cxx112
-rw-r--r--reportdesign/source/ui/dlg/Navigator.cxx100
-rw-r--r--reportdesign/source/ui/dlg/PageNumber.cxx4
-rw-r--r--reportdesign/source/ui/inspection/DataProviderHandler.cxx4
-rw-r--r--reportdesign/source/ui/inspection/DefaultInspection.cxx24
-rw-r--r--reportdesign/source/ui/inspection/GeometryHandler.cxx72
-rw-r--r--reportdesign/source/ui/inspection/metadata.cxx22
-rw-r--r--reportdesign/source/ui/misc/ColorListener.cxx10
-rw-r--r--reportdesign/source/ui/misc/FunctionHelper.cxx50
-rw-r--r--reportdesign/source/ui/misc/RptUndo.cxx52
-rw-r--r--reportdesign/source/ui/misc/UITools.cxx56
-rw-r--r--reportdesign/source/ui/misc/statusbarcontroller.cxx14
-rw-r--r--reportdesign/source/ui/misc/toolboxcontroller.cxx38
-rw-r--r--reportdesign/source/ui/report/DesignView.cxx114
-rw-r--r--reportdesign/source/ui/report/EndMarker.cxx8
-rw-r--r--reportdesign/source/ui/report/FixedTextColor.cxx14
-rw-r--r--reportdesign/source/ui/report/FormattedFieldBeautifier.cxx18
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx200
-rw-r--r--reportdesign/source/ui/report/ReportControllerObserver.cxx36
-rw-r--r--reportdesign/source/ui/report/ReportRuler.cxx8
-rw-r--r--reportdesign/source/ui/report/ReportSection.cxx58
-rw-r--r--reportdesign/source/ui/report/ReportWindow.cxx92
-rw-r--r--reportdesign/source/ui/report/ScrollHelper.cxx90
-rw-r--r--reportdesign/source/ui/report/SectionView.cxx18
-rw-r--r--reportdesign/source/ui/report/SectionWindow.cxx36
-rw-r--r--reportdesign/source/ui/report/StartMarker.cxx34
-rw-r--r--reportdesign/source/ui/report/ViewsWindow.cxx134
-rw-r--r--reportdesign/source/ui/report/dlgedclip.cxx12
-rw-r--r--reportdesign/source/ui/report/dlgedfac.cxx8
-rw-r--r--reportdesign/source/ui/report/dlgedfunc.cxx66
-rw-r--r--reportdesign/source/ui/report/propbrw.cxx42
-rw-r--r--sal/osl/w32/procimpl.cxx6
-rw-r--r--sal/qa/OStringBuffer/rtl_OStringBuffer.cxx82
-rw-r--r--sal/qa/OStringBuffer/rtl_String_Utils.cxx8
-rw-r--r--sal/qa/osl/condition/osl_Condition.cxx18
-rw-r--r--sal/qa/osl/file/osl_File.cxx282
-rw-r--r--sal/qa/osl/file/osl_old_test_file.cxx6
-rw-r--r--sal/qa/osl/module/osl_Module.cxx18
-rw-r--r--sal/qa/osl/mutex/osl_Mutex.cxx38
-rw-r--r--sal/qa/osl/pipe/osl_Pipe.cxx30
-rw-r--r--sal/qa/osl/process/osl_Thread.cxx18
-rw-r--r--sal/qa/osl/process/osl_process.cxx22
-rw-r--r--sal/qa/osl/profile/osl_old_testprofile.cxx6
-rw-r--r--sal/qa/osl/security/osl_Security.cxx16
-rw-r--r--sal/qa/osl/socket/osl_AcceptorSocket.cxx12
-rw-r--r--sal/qa/osl/socket/osl_ConnectorSocket.cxx12
-rw-r--r--sal/qa/osl/socket/osl_DatagramSocket.cxx12
-rw-r--r--sal/qa/osl/socket/osl_Socket.cxx32
-rw-r--r--sal/qa/osl/socket/osl_Socket2.cxx8
-rw-r--r--sal/qa/osl/socket/osl_SocketAddr.cxx4
-rw-r--r--sal/qa/osl/socket/osl_Socket_tests.cxx14
-rw-r--r--sal/qa/osl/socket/osl_StreamSocket.cxx24
-rw-r--r--sal/qa/osl/socket/sockethelper.cxx8
-rw-r--r--sal/qa/rtl/alloc/rtl_alloc.cxx2
-rw-r--r--sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx14
-rw-r--r--sal/qa/rtl/cipher/rtl_cipher.cxx24
-rw-r--r--sal/qa/rtl/crc32/rtl_crc32.cxx4
-rw-r--r--sal/qa/rtl/digest/rtl_digest.cxx68
-rw-r--r--sal/qa/rtl/doublelock/rtl_doublelocking.cxx14
-rw-r--r--sal/qa/rtl/locale/rtl_locale.cxx4
-rw-r--r--sal/qa/rtl/logfile/rtl_logfile.cxx6
-rw-r--r--sal/qa/rtl/ostring/rtl_OString2.cxx20
-rw-r--r--sal/qa/rtl/ostring/rtl_str.cxx28
-rw-r--r--sal/qa/rtl/ostring/rtl_string.cxx8
-rw-r--r--sal/qa/rtl/oustring/rtl_OUString2.cxx6
-rw-r--r--sal/qa/rtl/oustring/rtl_ustr.cxx34
-rw-r--r--sal/qa/rtl/random/rtl_random.cxx2
-rw-r--r--sal/qa/rtl/textenc/rtl_tencinfo.cxx2
-rw-r--r--sal/qa/rtl/uri/rtl_Uri.cxx4
-rw-r--r--sal/qa/rtl/uuid/rtl_Uuid.cxx2
-rw-r--r--sal/qa/systools/test_comtools.cxx2
-rw-r--r--sal/rtl/bootstrap.cxx36
-rw-r--r--sal/workben/clipboardwben/testcopy/XTDataObject.cxx100
-rw-r--r--sal/workben/clipboardwben/testcopy/cbcpytest.cxx28
-rw-r--r--sal/workben/clipboardwben/testpaste/cbptest.cxx12
-rw-r--r--sal/workben/clipboardwben/testviewer/cbvtest.cxx4
-rw-r--r--sal/workben/testfile.cxx428
-rw-r--r--sax/source/expatwrap/sax_expat.cxx8
-rw-r--r--sax/source/expatwrap/xml2utf.cxx8
-rw-r--r--sax/source/fastparser/fastparser.cxx30
-rw-r--r--sax/test/saxdemo.cxx30
-rw-r--r--sax/test/testcomponent.cxx2
-rw-r--r--sc/qa/unit/ucalc_formula.cxx4
-rw-r--r--sc/source/core/data/attarray.cxx12
-rw-r--r--sc/source/core/data/attrib.cxx136
-rw-r--r--sc/source/core/data/column2.cxx8
-rw-r--r--sc/source/core/data/conditio.cxx10
-rw-r--r--sc/source/core/data/dbdocutl.cxx4
-rw-r--r--sc/source/core/data/dociter.cxx22
-rw-r--r--sc/source/core/data/docpool.cxx6
-rw-r--r--sc/source/core/data/documen4.cxx8
-rw-r--r--sc/source/core/data/documen5.cxx2
-rw-r--r--sc/source/core/data/documen6.cxx2
-rw-r--r--sc/source/core/data/documen7.cxx2
-rw-r--r--sc/source/core/data/documen8.cxx36
-rw-r--r--sc/source/core/data/documen9.cxx2
-rw-r--r--sc/source/core/data/dpdimsave.cxx2
-rw-r--r--sc/source/core/data/dpfilteredcache.cxx4
-rw-r--r--sc/source/core/data/dpgroup.cxx6
-rw-r--r--sc/source/core/data/dpobject.cxx6
-rw-r--r--sc/source/core/data/dpoutput.cxx2
-rw-r--r--sc/source/core/data/dpsdbtab.cxx2
-rw-r--r--sc/source/core/data/dpshttab.cxx2
-rw-r--r--sc/source/core/data/dptabdat.cxx6
-rw-r--r--sc/source/core/data/dptabres.cxx24
-rw-r--r--sc/source/core/data/dptabsrc.cxx30
-rw-r--r--sc/source/core/data/drawpage.cxx6
-rw-r--r--sc/source/core/data/drwlayer.cxx8
-rw-r--r--sc/source/core/data/fillinfo.cxx4
-rw-r--r--sc/source/core/data/global.cxx30
-rw-r--r--sc/source/core/data/global2.cxx40
-rw-r--r--sc/source/core/data/markarr.cxx10
-rw-r--r--sc/source/core/data/markdata.cxx2
-rw-r--r--sc/source/core/data/olinetab.cxx10
-rw-r--r--sc/source/core/data/pagepar.cxx12
-rw-r--r--sc/source/core/data/patattr.cxx6
-rw-r--r--sc/source/core/data/poolhelp.cxx4
-rw-r--r--sc/source/core/data/postit.cxx8
-rw-r--r--sc/source/core/data/segmenttree.cxx8
-rw-r--r--sc/source/core/data/sheetevents.cxx4
-rw-r--r--sc/source/core/data/sortparam.cxx16
-rw-r--r--sc/source/core/data/stlpool.cxx68
-rw-r--r--sc/source/core/data/stlsheet.cxx20
-rw-r--r--sc/source/core/data/subtotalparam.cxx10
-rw-r--r--sc/source/core/data/table1.cxx2
-rw-r--r--sc/source/core/data/table5.cxx2
-rw-r--r--sc/source/core/data/table6.cxx2
-rw-r--r--sc/source/core/data/userdat.cxx8
-rw-r--r--sc/source/core/data/validat.cxx6
-rw-r--r--sc/source/core/opencl/op_math.cxx12
-rw-r--r--sc/source/core/tool/interpr4.cxx10
-rw-r--r--sc/source/core/tool/token.cxx2
-rw-r--r--sc/source/filter/excel/colrowst.cxx2
-rw-r--r--sc/source/filter/excel/excimp8.cxx2
-rw-r--r--sc/source/filter/excel/excrecds.cxx10
-rw-r--r--sc/source/filter/excel/read.cxx38
-rw-r--r--sc/source/filter/excel/tokstack.cxx2
-rw-r--r--sc/source/filter/excel/xechart.cxx64
-rw-r--r--sc/source/filter/excel/xecontent.cxx22
-rw-r--r--sc/source/filter/excel/xeescher.cxx18
-rw-r--r--sc/source/filter/excel/xeformula.cxx20
-rw-r--r--sc/source/filter/excel/xehelper.cxx10
-rw-r--r--sc/source/filter/excel/xelink.cxx26
-rw-r--r--sc/source/filter/excel/xename.cxx6
-rw-r--r--sc/source/filter/excel/xepage.cxx2
-rw-r--r--sc/source/filter/excel/xepivot.cxx12
-rw-r--r--sc/source/filter/excel/xerecord.cxx20
-rw-r--r--sc/source/filter/excel/xeroot.cxx2
-rw-r--r--sc/source/filter/excel/xestring.cxx2
-rw-r--r--sc/source/filter/excel/xestyle.cxx40
-rw-r--r--sc/source/filter/excel/xetable.cxx32
-rw-r--r--sc/source/filter/excel/xeview.cxx10
-rw-r--r--sc/source/filter/excel/xichart.cxx56
-rw-r--r--sc/source/filter/excel/xicontent.cxx10
-rw-r--r--sc/source/filter/excel/xiescher.cxx62
-rw-r--r--sc/source/filter/excel/xiformula.cxx6
-rw-r--r--sc/source/filter/excel/xihelper.cxx4
-rw-r--r--sc/source/filter/excel/xilink.cxx2
-rw-r--r--sc/source/filter/excel/xiname.cxx2
-rw-r--r--sc/source/filter/excel/xipage.cxx2
-rw-r--r--sc/source/filter/excel/xipivot.cxx4
-rw-r--r--sc/source/filter/excel/xiroot.cxx2
-rw-r--r--sc/source/filter/excel/xistream.cxx14
-rw-r--r--sc/source/filter/excel/xistring.cxx2
-rw-r--r--sc/source/filter/excel/xistyle.cxx20
-rw-r--r--sc/source/filter/excel/xiview.cxx2
-rw-r--r--sc/source/filter/excel/xladdress.cxx4
-rw-r--r--sc/source/filter/excel/xlchart.cxx54
-rw-r--r--sc/source/filter/excel/xlescher.cxx8
-rw-r--r--sc/source/filter/excel/xlformula.cxx4
-rw-r--r--sc/source/filter/excel/xlpivot.cxx4
-rw-r--r--sc/source/filter/excel/xlroot.cxx4
-rw-r--r--sc/source/filter/excel/xlstyle.cxx34
-rw-r--r--sc/source/filter/excel/xlview.cxx2
-rw-r--r--sc/source/filter/html/htmlexp.cxx6
-rw-r--r--sc/source/filter/html/htmlexp2.cxx2
-rw-r--r--sc/source/filter/html/htmlimp.cxx2
-rw-r--r--sc/source/filter/html/htmlpars.cxx12
-rw-r--r--sc/source/filter/lotus/lotform.cxx226
-rw-r--r--sc/source/filter/lotus/lotread.cxx10
-rw-r--r--sc/source/filter/lotus/lotus.cxx2
-rw-r--r--sc/source/filter/oox/addressconverter.cxx10
-rw-r--r--sc/source/filter/oox/autofilterbuffer.cxx4
-rw-r--r--sc/source/filter/oox/biffcodec.cxx4
-rw-r--r--sc/source/filter/oox/commentsbuffer.cxx2
-rw-r--r--sc/source/filter/oox/condformatbuffer.cxx4
-rw-r--r--sc/source/filter/oox/connectionsbuffer.cxx4
-rw-r--r--sc/source/filter/oox/defnamesbuffer.cxx2
-rw-r--r--sc/source/filter/oox/drawingbase.cxx2
-rw-r--r--sc/source/filter/oox/drawingfragment.cxx2
-rw-r--r--sc/source/filter/oox/excelfilter.cxx2
-rw-r--r--sc/source/filter/oox/excelhandlers.cxx4
-rw-r--r--sc/source/filter/oox/externallinkbuffer.cxx2
-rw-r--r--sc/source/filter/oox/formulabase.cxx20
-rw-r--r--sc/source/filter/oox/formulaparser.cxx12
-rw-r--r--sc/source/filter/oox/numberformatsbuffer.cxx14
-rw-r--r--sc/source/filter/oox/ooxformulaparser.cxx2
-rw-r--r--sc/source/filter/oox/pagesettings.cxx10
-rw-r--r--sc/source/filter/oox/pivotcachebuffer.cxx18
-rw-r--r--sc/source/filter/oox/pivotcachefragment.cxx2
-rw-r--r--sc/source/filter/oox/pivottablebuffer.cxx16
-rw-r--r--sc/source/filter/oox/querytablebuffer.cxx4
-rw-r--r--sc/source/filter/oox/richstring.cxx10
-rw-r--r--sc/source/filter/oox/scenariobuffer.cxx6
-rw-r--r--sc/source/filter/oox/sheetdatabuffer.cxx6
-rw-r--r--sc/source/filter/oox/stylesbuffer.cxx30
-rw-r--r--sc/source/filter/oox/unitconverter.cxx4
-rw-r--r--sc/source/filter/oox/viewsettings.cxx8
-rw-r--r--sc/source/filter/oox/workbookhelper.cxx2
-rw-r--r--sc/source/filter/oox/worksheethelper.cxx10
-rw-r--r--sc/source/filter/rtf/expbase.cxx2
-rw-r--r--sc/source/filter/starcalc/collect.cxx22
-rw-r--r--sc/source/filter/starcalc/scflt.cxx34
-rw-r--r--sc/source/filter/xcl97/XclExpChangeTrack.cxx50
-rw-r--r--sc/source/filter/xcl97/XclImpChangeTrack.cxx4
-rw-r--r--sc/source/filter/xml/XMLCalculationSettingsContext.cxx2
-rw-r--r--sc/source/filter/xml/XMLCellRangeSourceContext.cxx6
-rw-r--r--sc/source/filter/xml/XMLConsolidationContext.cxx4
-rw-r--r--sc/source/filter/xml/XMLConverter.cxx20
-rw-r--r--sc/source/filter/xml/XMLDDELinksContext.cxx2
-rw-r--r--sc/source/filter/xml/XMLDetectiveContext.cxx12
-rw-r--r--sc/source/filter/xml/XMLEmptyContext.cxx2
-rw-r--r--sc/source/filter/xml/XMLStylesImportHelper.cxx2
-rw-r--r--sc/source/filter/xml/XMLTableShapesContext.cxx2
-rw-r--r--sc/source/filter/xml/XMLTableSourceContext.cxx2
-rw-r--r--sc/source/filter/xml/XMLTrackedChangesContext.cxx38
-rw-r--r--sc/source/filter/xml/sheetdata.cxx2
-rw-r--r--sc/source/filter/xml/xmlannoi.cxx4
-rw-r--r--sc/source/filter/xml/xmlbodyi.cxx2
-rw-r--r--sc/source/filter/xml/xmlcoli.cxx2
-rw-r--r--sc/source/filter/xml/xmlconti.cxx2
-rw-r--r--sc/source/filter/xml/xmlcvali.cxx2
-rw-r--r--sc/source/filter/xml/xmldpimp.cxx2
-rw-r--r--sc/source/filter/xml/xmldrani.cxx2
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx8
-rw-r--r--sc/source/filter/xml/xmlimprt.cxx4
-rw-r--r--sc/source/filter/xml/xmllabri.cxx6
-rw-r--r--sc/source/filter/xml/xmlnexpi.cxx2
-rw-r--r--sc/source/filter/xml/xmlrowi.cxx2
-rw-r--r--sc/source/filter/xml/xmlsceni.cxx2
-rw-r--r--sc/source/filter/xml/xmlsorti.cxx2
-rw-r--r--sc/source/filter/xml/xmlstyli.cxx6
-rw-r--r--sc/source/filter/xml/xmltabi.cxx2
-rw-r--r--sc/source/filter/xml/xmlwrap.cxx4
-rw-r--r--sc/source/ui/Accessibility/AccessibilityHints.cxx24
-rw-r--r--sc/source/ui/Accessibility/AccessibleCsvControl.cxx6
-rw-r--r--sc/source/ui/Accessibility/AccessibleDataPilotControl.cxx4
-rw-r--r--sc/source/ui/Accessibility/AccessibleEditObject.cxx12
-rw-r--r--sc/source/ui/app/client.cxx2
-rw-r--r--sc/source/ui/app/drwtrans.cxx6
-rw-r--r--sc/source/ui/app/inputhdl.cxx20
-rw-r--r--sc/source/ui/app/inputwin.cxx2
-rw-r--r--sc/source/ui/app/lnktrans.cxx2
-rw-r--r--sc/source/ui/app/msgpool.cxx4
-rw-r--r--sc/source/ui/app/scdll.cxx6
-rw-r--r--sc/source/ui/app/scmod.cxx44
-rw-r--r--sc/source/ui/app/seltrans.cxx6
-rw-r--r--sc/source/ui/app/transobj.cxx6
-rw-r--r--sc/source/ui/app/uiitems.cxx134
-rw-r--r--sc/source/ui/attrdlg/attrdlg.cxx6
-rw-r--r--sc/source/ui/attrdlg/tabpages.cxx14
-rw-r--r--sc/source/ui/cctrl/cbuttonw.cxx10
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx8
-rw-r--r--sc/source/ui/cctrl/popmenu.cxx2
-rw-r--r--sc/source/ui/cctrl/tbinsert.cxx6
-rw-r--r--sc/source/ui/cctrl/tbzoomsliderctrl.cxx34
-rw-r--r--sc/source/ui/condformat/condformatdlg.cxx4
-rw-r--r--sc/source/ui/dbgui/csvsplits.cxx4
-rw-r--r--sc/source/ui/dbgui/dapidata.cxx6
-rw-r--r--sc/source/ui/dbgui/dapitype.cxx6
-rw-r--r--sc/source/ui/dbgui/dbnamdlg.cxx38
-rw-r--r--sc/source/ui/dbgui/dpgroupdlg.cxx4
-rw-r--r--sc/source/ui/dbgui/fieldwnd.cxx4
-rw-r--r--sc/source/ui/dbgui/filtdlg.cxx34
-rw-r--r--sc/source/ui/dbgui/foptmgr.cxx20
-rw-r--r--sc/source/ui/dbgui/imoptdlg.cxx6
-rw-r--r--sc/source/ui/dbgui/pfiltdlg.cxx22
-rw-r--r--sc/source/ui/dbgui/pvfundlg.cxx2
-rw-r--r--sc/source/ui/dbgui/scendlg.cxx6
-rw-r--r--sc/source/ui/dbgui/scuiasciiopt.cxx6
-rw-r--r--sc/source/ui/dbgui/scuiimoptdlg.cxx12
-rw-r--r--sc/source/ui/dbgui/sfiltdlg.cxx24
-rw-r--r--sc/source/ui/dbgui/sortkeydlg.cxx12
-rw-r--r--sc/source/ui/dbgui/subtdlg.cxx2
-rw-r--r--sc/source/ui/dbgui/textimportoptions.cxx2
-rw-r--r--sc/source/ui/dbgui/tpsort.cxx50
-rw-r--r--sc/source/ui/dbgui/tpsubt.cxx50
-rw-r--r--sc/source/ui/dbgui/validate.cxx32
-rw-r--r--sc/source/ui/docshell/arealink.cxx2
-rw-r--r--sc/source/ui/docshell/dbdocfun.cxx10
-rw-r--r--sc/source/ui/docshell/dbdocimp.cxx4
-rw-r--r--sc/source/ui/docshell/docfunc.cxx46
-rw-r--r--sc/source/ui/docshell/docsh.cxx14
-rw-r--r--sc/source/ui/docshell/docsh2.cxx12
-rw-r--r--sc/source/ui/docshell/docsh3.cxx18
-rw-r--r--sc/source/ui/docshell/docsh4.cxx24
-rw-r--r--sc/source/ui/docshell/docsh5.cxx2
-rw-r--r--sc/source/ui/docshell/docsh6.cxx2
-rw-r--r--sc/source/ui/docshell/docsh7.cxx2
-rw-r--r--sc/source/ui/docshell/docsh8.cxx6
-rw-r--r--sc/source/ui/docshell/editable.cxx4
-rw-r--r--sc/source/ui/docshell/externalrefmgr.cxx10
-rw-r--r--sc/source/ui/docshell/olinefun.cxx12
-rw-r--r--sc/source/ui/docshell/pntlock.cxx2
-rw-r--r--sc/source/ui/docshell/servobj.cxx2
-rw-r--r--sc/source/ui/docshell/sizedev.cxx2
-rw-r--r--sc/source/ui/docshell/tablink.cxx2
-rw-r--r--sc/source/ui/docshell/tpstat.cxx8
-rw-r--r--sc/source/ui/drawfunc/drawsh.cxx2
-rw-r--r--sc/source/ui/drawfunc/drawsh2.cxx2
-rw-r--r--sc/source/ui/drawfunc/drawsh4.cxx2
-rw-r--r--sc/source/ui/drawfunc/drawsh5.cxx8
-rw-r--r--sc/source/ui/drawfunc/drtxtob1.cxx2
-rw-r--r--sc/source/ui/drawfunc/drtxtob2.cxx2
-rw-r--r--sc/source/ui/drawfunc/fuconcustomshape.cxx2
-rw-r--r--sc/source/ui/drawfunc/fuconrec.cxx2
-rw-r--r--sc/source/ui/drawfunc/fuconstr.cxx2
-rw-r--r--sc/source/ui/drawfunc/fuins1.cxx6
-rw-r--r--sc/source/ui/drawfunc/fuins2.cxx6
-rw-r--r--sc/source/ui/drawfunc/fumark.cxx2
-rw-r--r--sc/source/ui/drawfunc/fusel.cxx4
-rw-r--r--sc/source/ui/drawfunc/fusel2.cxx2
-rw-r--r--sc/source/ui/drawfunc/futext.cxx2
-rw-r--r--sc/source/ui/drawfunc/futext2.cxx2
-rw-r--r--sc/source/ui/drawfunc/futext3.cxx4
-rw-r--r--sc/source/ui/formdlg/dwfunctr.cxx6
-rw-r--r--sc/source/ui/formdlg/formdata.cxx2
-rw-r--r--sc/source/ui/formdlg/formula.cxx2
-rw-r--r--sc/source/ui/formdlg/privsplt.cxx4
-rw-r--r--sc/source/ui/miscdlgs/acredlin.cxx6
-rw-r--r--sc/source/ui/miscdlgs/anyrefdg.cxx66
-rw-r--r--sc/source/ui/miscdlgs/autofmt.cxx50
-rw-r--r--sc/source/ui/miscdlgs/crnrdlg.cxx6
-rw-r--r--sc/source/ui/miscdlgs/datafdlg.cxx2
-rw-r--r--sc/source/ui/miscdlgs/delcldlg.cxx4
-rw-r--r--sc/source/ui/miscdlgs/delcodlg.cxx12
-rw-r--r--sc/source/ui/miscdlgs/filldlg.cxx22
-rw-r--r--sc/source/ui/miscdlgs/groupdlg.cxx6
-rw-r--r--sc/source/ui/miscdlgs/highred.cxx6
-rw-r--r--sc/source/ui/miscdlgs/inscldlg.cxx4
-rw-r--r--sc/source/ui/miscdlgs/inscodlg.cxx12
-rw-r--r--sc/source/ui/miscdlgs/instbdlg.cxx30
-rw-r--r--sc/source/ui/miscdlgs/lbseldlg.cxx6
-rw-r--r--sc/source/ui/miscdlgs/mtrindlg.cxx8
-rw-r--r--sc/source/ui/miscdlgs/mvtabdlg.cxx12
-rw-r--r--sc/source/ui/miscdlgs/optsolver.cxx38
-rw-r--r--sc/source/ui/miscdlgs/redcom.cxx2
-rw-r--r--sc/source/ui/miscdlgs/scuiautofmt.cxx24
-rw-r--r--sc/source/ui/miscdlgs/shtabdlg.cxx8
-rw-r--r--sc/source/ui/miscdlgs/simpref.cxx22
-rw-r--r--sc/source/ui/miscdlgs/solveroptions.cxx8
-rw-r--r--sc/source/ui/miscdlgs/solverutil.cxx2
-rw-r--r--sc/source/ui/miscdlgs/solvrdlg.cxx22
-rw-r--r--sc/source/ui/miscdlgs/tabbgcolordlg.cxx4
-rw-r--r--sc/source/ui/miscdlgs/tabopdlg.cxx22
-rw-r--r--sc/source/ui/miscdlgs/textdlgs.cxx8
-rw-r--r--sc/source/ui/miscdlgs/warnbox.cxx2
-rw-r--r--sc/source/ui/namedlg/namepast.cxx6
-rw-r--r--sc/source/ui/navipi/navcitem.cxx4
-rw-r--r--sc/source/ui/navipi/navipi.cxx114
-rw-r--r--sc/source/ui/navipi/scenwnd.cxx6
-rw-r--r--sc/source/ui/optdlg/opredlin.cxx4
-rw-r--r--sc/source/ui/optdlg/tpcalc.cxx18
-rw-r--r--sc/source/ui/optdlg/tpformula.cxx2
-rw-r--r--sc/source/ui/optdlg/tpprint.cxx6
-rw-r--r--sc/source/ui/optdlg/tpusrlst.cxx52
-rw-r--r--sc/source/ui/optdlg/tpview.cxx4
-rw-r--r--sc/source/ui/pagedlg/areasdlg.cxx70
-rw-r--r--sc/source/ui/pagedlg/hfedtdlg.cxx6
-rw-r--r--sc/source/ui/pagedlg/scuitphfedit.cxx20
-rw-r--r--sc/source/ui/pagedlg/tphf.cxx28
-rw-r--r--sc/source/ui/pagedlg/tphfedit.cxx30
-rw-r--r--sc/source/ui/styleui/styledlg.cxx6
-rw-r--r--sc/source/ui/undo/areasave.cxx2
-rw-r--r--sc/source/ui/undo/undodat.cxx2
-rw-r--r--sc/source/ui/undo/undostyl.cxx8
-rw-r--r--sc/source/ui/unoobj/addruno.cxx2
-rw-r--r--sc/source/ui/unoobj/afmtuno.cxx16
-rw-r--r--sc/source/ui/unoobj/appluno.cxx18
-rw-r--r--sc/source/ui/unoobj/celllistsource.cxx42
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx42
-rw-r--r--sc/source/ui/unoobj/cellvaluebinding.cxx46
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx8
-rw-r--r--sc/source/ui/unoobj/chartuno.cxx10
-rw-r--r--sc/source/ui/unoobj/confuno.cxx2
-rw-r--r--sc/source/ui/unoobj/convuno.cxx2
-rw-r--r--sc/source/ui/unoobj/cursuno.cxx4
-rw-r--r--sc/source/ui/unoobj/dapiuno.cxx30
-rw-r--r--sc/source/ui/unoobj/datauno.cxx32
-rw-r--r--sc/source/ui/unoobj/defltuno.cxx6
-rw-r--r--sc/source/ui/unoobj/dispuno.cxx8
-rw-r--r--sc/source/ui/unoobj/docuno.cxx18
-rw-r--r--sc/source/ui/unoobj/drdefuno.cxx2
-rw-r--r--sc/source/ui/unoobj/editsrc.cxx8
-rw-r--r--sc/source/ui/unoobj/eventuno.cxx4
-rw-r--r--sc/source/ui/unoobj/fielduno.cxx4
-rw-r--r--sc/source/ui/unoobj/filtuno.cxx6
-rw-r--r--sc/source/ui/unoobj/fmtuno.cxx16
-rw-r--r--sc/source/ui/unoobj/forbiuno.cxx2
-rw-r--r--sc/source/ui/unoobj/funcuno.cxx12
-rw-r--r--sc/source/ui/unoobj/linkuno.cxx16
-rw-r--r--sc/source/ui/unoobj/listenercalls.cxx2
-rw-r--r--sc/source/ui/unoobj/miscuno.cxx12
-rw-r--r--sc/source/ui/unoobj/nameuno.cxx16
-rw-r--r--sc/source/ui/unoobj/notesuno.cxx6
-rw-r--r--sc/source/ui/unoobj/optuno.cxx4
-rw-r--r--sc/source/ui/unoobj/pageuno.cxx2
-rw-r--r--sc/source/ui/unoobj/servuno.cxx4
-rw-r--r--sc/source/ui/unoobj/shapeuno.cxx6
-rw-r--r--sc/source/ui/unoobj/srchuno.cxx8
-rw-r--r--sc/source/ui/unoobj/styleuno.cxx20
-rw-r--r--sc/source/ui/unoobj/targuno.cxx10
-rw-r--r--sc/source/ui/unoobj/textuno.cxx20
-rw-r--r--sc/source/ui/unoobj/unoreflist.cxx4
-rw-r--r--sc/source/ui/unoobj/viewuno.cxx10
-rw-r--r--sc/source/ui/vba/vbaapplication.cxx4
-rw-r--r--sc/source/ui/vba/vbaeventshelper.cxx2
-rw-r--r--sc/source/ui/vba/vbahyperlinks.cxx4
-rw-r--r--sc/source/ui/vba/vbarange.cxx4
-rw-r--r--sc/source/ui/vba/vbasheetobjects.cxx8
-rw-r--r--sc/source/ui/view/auditsh.cxx12
-rw-r--r--sc/source/ui/view/cellsh.cxx6
-rw-r--r--sc/source/ui/view/cellsh1.cxx2
-rw-r--r--sc/source/ui/view/cellsh3.cxx10
-rw-r--r--sc/source/ui/view/dbfunc4.cxx2
-rw-r--r--sc/source/ui/view/drawattr.cxx8
-rw-r--r--sc/source/ui/view/drawvie2.cxx2
-rw-r--r--sc/source/ui/view/drawvie4.cxx2
-rw-r--r--sc/source/ui/view/drawview.cxx4
-rw-r--r--sc/source/ui/view/formatsh.cxx30
-rw-r--r--sc/source/ui/view/gridmerg.cxx2
-rw-r--r--sc/source/ui/view/gridwin.cxx20
-rw-r--r--sc/source/ui/view/gridwin2.cxx8
-rw-r--r--sc/source/ui/view/gridwin3.cxx2
-rw-r--r--sc/source/ui/view/gridwin4.cxx14
-rw-r--r--sc/source/ui/view/gridwin5.cxx4
-rw-r--r--sc/source/ui/view/hdrcont.cxx4
-rw-r--r--sc/source/ui/view/invmerge.cxx2
-rw-r--r--sc/source/ui/view/notemark.cxx2
-rw-r--r--sc/source/ui/view/olkact.cxx2
-rw-r--r--sc/source/ui/view/output2.cxx2
-rw-r--r--sc/source/ui/view/pfuncache.cxx2
-rw-r--r--sc/source/ui/view/pgbrksh.cxx8
-rw-r--r--sc/source/ui/view/prevwsh.cxx8
-rw-r--r--sc/source/ui/view/prevwsh2.cxx2
-rw-r--r--sc/source/ui/view/printfun.cxx20
-rw-r--r--sc/source/ui/view/reffact.cxx14
-rw-r--r--sc/source/ui/view/scextopt.cxx4
-rw-r--r--sc/source/ui/view/select.cxx2
-rw-r--r--sc/source/ui/view/spelleng.cxx2
-rw-r--r--sc/source/ui/view/tabview3.cxx6
-rw-r--r--sc/source/ui/view/tabview5.cxx4
-rw-r--r--sc/source/ui/view/tabvwsh2.cxx2
-rw-r--r--sc/source/ui/view/tabvwsh3.cxx4
-rw-r--r--sc/source/ui/view/tabvwsh4.cxx38
-rw-r--r--sc/source/ui/view/tabvwsh5.cxx8
-rw-r--r--sc/source/ui/view/tabvwsh8.cxx6
-rw-r--r--sc/source/ui/view/tabvwsh9.cxx8
-rw-r--r--sc/source/ui/view/tabvwsha.cxx10
-rw-r--r--sc/source/ui/view/tabvwshb.cxx2
-rw-r--r--sc/source/ui/view/tabvwshc.cxx2
-rw-r--r--sc/source/ui/view/tabvwshe.cxx6
-rw-r--r--sc/source/ui/view/tabvwshf.cxx2
-rw-r--r--sc/source/ui/view/tabvwshg.cxx2
-rw-r--r--sc/source/ui/view/tabvwshh.cxx4
-rw-r--r--sc/source/ui/view/viewfun2.cxx106
-rw-r--r--sc/source/ui/view/viewfun3.cxx10
-rw-r--r--sc/source/ui/view/viewfun5.cxx4
-rw-r--r--sc/source/ui/view/viewfunc.cxx10
-rw-r--r--sc/source/ui/view/waitoff.cxx2
-rw-r--r--sc/workben/addin.cxx2
-rw-r--r--sc/workben/result.cxx6
-rw-r--r--sc/workben/test.cxx24
-rw-r--r--scaddins/source/analysis/analysishelper.cxx28
-rw-r--r--scaddins/source/analysis/bessel.cxx4
-rw-r--r--scaddins/source/analysis/financial.cxx2
-rw-r--r--scaddins/source/pricing/black_scholes.cxx6
-rw-r--r--sccomp/source/solver/solver.cxx10
-rw-r--r--scripting/source/basprov/baslibnode.cxx14
-rw-r--r--scripting/source/basprov/basmethnode.cxx48
-rw-r--r--scripting/source/basprov/basmodnode.cxx14
-rw-r--r--scripting/source/basprov/basprov.cxx28
-rw-r--r--scripting/source/basprov/basscript.cxx36
-rw-r--r--scripting/source/dlgprov/dlgevtatt.cxx40
-rw-r--r--scripting/source/dlgprov/dlgprov.cxx26
-rw-r--r--scripting/source/provider/BrowseNodeFactoryImpl.cxx4
-rw-r--r--scripting/source/provider/ScriptingContext.cxx14
-rw-r--r--scripting/source/stringresource/stringresource.cxx54
-rw-r--r--scripting/source/vbaevents/service.cxx4
-rw-r--r--sd/source/core/CustomAnimationEffect.cxx234
-rw-r--r--sd/source/core/EffectMigration.cxx42
-rw-r--r--sd/source/core/sdpage.cxx2
-rw-r--r--sd/source/core/stlfamily.cxx76
-rw-r--r--sd/source/core/stlpool.cxx50
-rw-r--r--sd/source/core/stlsheet.cxx72
-rw-r--r--sd/source/core/undo/undoobjects.cxx46
-rw-r--r--sd/source/filter/eppt/eppt.cxx34
-rw-r--r--sd/source/filter/eppt/epptso.cxx36
-rw-r--r--sd/source/filter/eppt/escherex.cxx24
-rw-r--r--sd/source/filter/eppt/pptexanimations.cxx2
-rw-r--r--sd/source/filter/eppt/pptx-epptbase.cxx22
-rw-r--r--sd/source/filter/eppt/pptx-grouptable.cxx16
-rw-r--r--sd/source/filter/grf/sdgrffilter.cxx18
-rw-r--r--sd/source/filter/html/HtmlOptionsDialog.cxx8
-rw-r--r--sd/source/filter/html/htmlex.cxx6
-rw-r--r--sd/source/filter/html/sdhtmlfilter.cxx8
-rw-r--r--sd/source/filter/ppt/ppt97animations.cxx4
-rw-r--r--sd/source/filter/ppt/pptin.cxx4
-rw-r--r--sd/source/filter/ppt/pptinanimations.cxx68
-rw-r--r--sd/source/filter/sdfilter.cxx16
-rw-r--r--sd/source/filter/sdpptwrp.cxx14
-rw-r--r--sd/source/filter/xml/sdxmlwrp.cxx26
-rw-r--r--sd/source/ui/animations/CustomAnimationCreateDialog.cxx10
-rw-r--r--sd/source/ui/animations/CustomAnimationDialog.cxx126
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx70
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx4
-rw-r--r--sd/source/ui/animations/motionpathtag.cxx54
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx50
-rw-r--r--sd/source/ui/annotations/annotationtag.cxx48
-rw-r--r--sd/source/ui/annotations/annotationwindow.cxx4
-rw-r--r--sd/source/ui/app/optsitem.cxx134
-rw-r--r--sd/source/ui/app/tmplctrl.cxx12
-rw-r--r--sd/source/ui/controller/slidelayoutcontroller.cxx30
-rw-r--r--sd/source/ui/dlg/RemoteDialogClientBox.cxx54
-rw-r--r--sd/source/ui/dlg/animobjs.cxx50
-rw-r--r--sd/source/ui/dlg/diactrl.cxx6
-rw-r--r--sd/source/ui/dlg/dlgchar.cxx2
-rw-r--r--sd/source/ui/dlg/dlgctrls.cxx2
-rw-r--r--sd/source/ui/dlg/filedlg.cxx28
-rw-r--r--sd/source/ui/dlg/headerfooterdlg.cxx50
-rw-r--r--sd/source/ui/dlg/morphdlg.cxx2
-rw-r--r--sd/source/ui/dlg/navigatr.cxx26
-rw-r--r--sd/source/ui/dlg/prltempl.cxx8
-rw-r--r--sd/source/ui/dlg/prntopts.cxx12
-rw-r--r--sd/source/ui/dlg/sdtreelb.cxx18
-rw-r--r--sd/source/ui/dlg/tabtempl.cxx4
-rw-r--r--sd/source/ui/dlg/tpaction.cxx38
-rw-r--r--sd/source/ui/dlg/tpoption.cxx34
-rw-r--r--sd/source/ui/framework/configuration/Configuration.cxx2
-rw-r--r--sd/source/ui/framework/configuration/ConfigurationController.cxx2
-rw-r--r--sd/source/ui/framework/configuration/ResourceId.cxx2
-rw-r--r--sd/source/ui/framework/factories/BasicPaneFactory.cxx2
-rw-r--r--sd/source/ui/framework/factories/FullScreenPane.cxx2
-rw-r--r--sd/source/ui/framework/factories/Pane.cxx2
-rw-r--r--sd/source/ui/framework/factories/PresentationFactory.cxx2
-rw-r--r--sd/source/ui/framework/module/ToolBarModule.cxx2
-rw-r--r--sd/source/ui/func/fuinsfil.cxx10
-rw-r--r--sd/source/ui/func/smarttag.cxx72
-rw-r--r--sd/source/ui/func/undoback.cxx12
-rw-r--r--sd/source/ui/presenter/PresenterCanvas.cxx4
-rw-r--r--sd/source/ui/presenter/PresenterPreviewCache.cxx4
-rw-r--r--sd/source/ui/presenter/PresenterTextView.cxx2
-rw-r--r--sd/source/ui/presenter/SlideRenderer.cxx2
-rw-r--r--sd/source/ui/slideshow/showwin.cxx28
-rw-r--r--sd/source/ui/slideshow/slideshow.cxx114
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx224
-rw-r--r--sd/source/ui/slideshow/slideshowviewimpl.cxx2
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSlotManager.cxx2
-rw-r--r--sd/source/ui/slidesorter/shell/SlideSorterService.cxx2
-rw-r--r--sd/source/ui/table/TableDesignPane.cxx38
-rw-r--r--sd/source/ui/table/tablefunction.cxx4
-rw-r--r--sd/source/ui/table/tableobjectbar.cxx16
-rw-r--r--sd/source/ui/tools/PropertySet.cxx2
-rw-r--r--sd/source/ui/unoidl/DrawController.cxx2
-rw-r--r--sd/source/ui/unoidl/SdUnoDrawView.cxx4
-rw-r--r--sd/source/ui/unoidl/facreg.cxx2
-rw-r--r--sd/source/ui/unoidl/randomnode.cxx94
-rw-r--r--sd/source/ui/unoidl/unocpres.cxx4
-rw-r--r--sd/source/ui/unoidl/unopage.cxx20
-rw-r--r--sd/source/ui/view/GraphicObjectBar.cxx18
-rw-r--r--sd/source/ui/view/MediaObjectBar.cxx14
-rw-r--r--sd/source/ui/view/ViewTabBar.cxx2
-rw-r--r--sd/source/ui/view/drviewsa.cxx10
-rw-r--r--sd/source/ui/view/drviewsc.cxx2
-rw-r--r--sd/source/ui/view/presvish.cxx4
-rw-r--r--sd/source/ui/view/sdview.cxx2
-rw-r--r--sd/source/ui/view/sdview2.cxx28
-rw-r--r--sd/source/ui/view/sdview3.cxx4
-rw-r--r--sd/source/ui/view/sdview4.cxx2
-rw-r--r--sd/source/ui/view/tabcontr.cxx10
-rw-r--r--sd/source/ui/view/viewoverlaymanager.cxx50
-rw-r--r--sd/source/ui/view/viewshel.cxx8
-rw-r--r--sd/workben/custompanel/ctp_panel.cxx18
-rw-r--r--sdext/source/minimizer/informationdialog.cxx14
-rw-r--r--sdext/source/minimizer/optimizationstats.cxx12
-rw-r--r--sdext/source/minimizer/optimizerdialog.cxx38
-rw-r--r--sdext/source/minimizer/optimizerdialogcontrols.cxx36
-rw-r--r--sdext/source/minimizer/pppoptimizer.cxx2
-rw-r--r--sdext/source/minimizer/unodialog.cxx40
-rw-r--r--sdext/source/pdfimport/pdfiadaptor.cxx2
-rw-r--r--sdext/source/pdfimport/wrapper/wrapper.cxx2
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx4
-rw-r--r--sdext/source/presenter/PresenterButton.cxx2
-rw-r--r--sdext/source/presenter/PresenterController.cxx2
-rw-r--r--sdext/source/presenter/PresenterHelpView.cxx2
-rw-r--r--sdext/source/presenter/PresenterNotesView.cxx2
-rw-r--r--sdext/source/presenter/PresenterPane.cxx2
-rw-r--r--sdext/source/presenter/PresenterPaneBase.cxx2
-rw-r--r--sdext/source/presenter/PresenterPaneBorderManager.cxx2
-rw-r--r--sdext/source/presenter/PresenterPaneBorderPainter.cxx2
-rw-r--r--sdext/source/presenter/PresenterPaneFactory.cxx2
-rw-r--r--sdext/source/presenter/PresenterProtocolHandler.cxx2
-rw-r--r--sdext/source/presenter/PresenterScreen.cxx2
-rw-r--r--sdext/source/presenter/PresenterScrollBar.cxx2
-rw-r--r--sdext/source/presenter/PresenterSlidePreview.cxx2
-rw-r--r--sdext/source/presenter/PresenterSlideShowView.cxx2
-rw-r--r--sdext/source/presenter/PresenterSlideSorter.cxx2
-rw-r--r--sdext/source/presenter/PresenterSpritePane.cxx2
-rw-r--r--sdext/source/presenter/PresenterToolBar.cxx2
-rw-r--r--sdext/source/presenter/PresenterViewFactory.cxx2
-rw-r--r--sdext/source/presenter/PresenterWindowManager.cxx2
-rw-r--r--setup_native/source/win32/customactions/regactivex/regactivex.cxx20
-rw-r--r--setup_native/source/win32/customactions/regpatchactivex/regpatchactivex.cxx8
-rw-r--r--setup_native/source/win32/customactions/shellextensions/checkpatches.cxx2
-rw-r--r--setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx2
-rw-r--r--setup_native/source/win32/customactions/tools/checkversion.cxx6
-rw-r--r--setup_native/source/win32/customactions/tools/seterror.cxx4
-rw-r--r--sfx2/source/appl/app.cxx20
-rw-r--r--sfx2/source/appl/appbas.cxx14
-rw-r--r--sfx2/source/appl/appcfg.cxx16
-rw-r--r--sfx2/source/appl/appchild.cxx6
-rw-r--r--sfx2/source/appl/appdde.cxx10
-rw-r--r--sfx2/source/appl/appmain.cxx6
-rw-r--r--sfx2/source/appl/appmisc.cxx8
-rw-r--r--sfx2/source/appl/appopen.cxx14
-rw-r--r--sfx2/source/appl/appquit.cxx2
-rw-r--r--sfx2/source/appl/appreg.cxx6
-rw-r--r--sfx2/source/appl/appserv.cxx2
-rw-r--r--sfx2/source/appl/childwin.cxx18
-rw-r--r--sfx2/source/appl/fileobj.cxx2
-rw-r--r--sfx2/source/appl/helpdispatch.cxx8
-rw-r--r--sfx2/source/appl/helpinterceptor.cxx32
-rw-r--r--sfx2/source/appl/linkmgr2.cxx8
-rw-r--r--sfx2/source/appl/lnkbase2.cxx20
-rw-r--r--sfx2/source/appl/macroloader.cxx8
-rw-r--r--sfx2/source/appl/module.cxx18
-rw-r--r--sfx2/source/appl/newhelp.cxx248
-rw-r--r--sfx2/source/appl/opengrf.cxx4
-rw-r--r--sfx2/source/appl/sfxpicklist.cxx6
-rw-r--r--sfx2/source/appl/shutdownicon.cxx38
-rw-r--r--sfx2/source/appl/shutdowniconw32.cxx26
-rw-r--r--sfx2/source/appl/workwin.cxx68
-rw-r--r--sfx2/source/appl/xpackcreator.cxx2
-rw-r--r--sfx2/source/bastyp/bitset.cxx28
-rw-r--r--sfx2/source/bastyp/fltfnc.cxx26
-rw-r--r--sfx2/source/bastyp/frmhtmlw.cxx2
-rw-r--r--sfx2/source/bastyp/helper.cxx8
-rw-r--r--sfx2/source/bastyp/progress.cxx32
-rw-r--r--sfx2/source/bastyp/sfxresid.cxx2
-rw-r--r--sfx2/source/config/evntconf.cxx10
-rw-r--r--sfx2/source/control/bindings.cxx66
-rw-r--r--sfx2/source/control/ctrlitem.cxx30
-rw-r--r--sfx2/source/control/dispatch.cxx72
-rw-r--r--sfx2/source/control/minfitem.cxx10
-rw-r--r--sfx2/source/control/msg.cxx2
-rw-r--r--sfx2/source/control/msgpool.cxx14
-rw-r--r--sfx2/source/control/objface.cxx20
-rw-r--r--sfx2/source/control/request.cxx58
-rw-r--r--sfx2/source/control/shell.cxx70
-rw-r--r--sfx2/source/control/sorgitm.cxx10
-rw-r--r--sfx2/source/control/statcach.cxx20
-rw-r--r--sfx2/source/control/unoctitm.cxx2
-rw-r--r--sfx2/source/dialog/backingcomp.cxx40
-rw-r--r--sfx2/source/dialog/basedlgs.cxx42
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx46
-rw-r--r--sfx2/source/dialog/dockwin.cxx42
-rw-r--r--sfx2/source/dialog/filtergrouping.cxx50
-rw-r--r--sfx2/source/dialog/itemconnect.cxx8
-rw-r--r--sfx2/source/dialog/mailmodel.cxx2
-rw-r--r--sfx2/source/dialog/mgetempl.cxx20
-rw-r--r--sfx2/source/dialog/newstyle.cxx4
-rw-r--r--sfx2/source/dialog/passwd.cxx10
-rw-r--r--sfx2/source/dialog/splitwin.cxx50
-rw-r--r--sfx2/source/dialog/styfitem.cxx12
-rw-r--r--sfx2/source/dialog/styledlg.cxx8
-rw-r--r--sfx2/source/dialog/tabdlg.cxx78
-rw-r--r--sfx2/source/dialog/taskpane.cxx130
-rw-r--r--sfx2/source/dialog/templdlg.cxx172
-rw-r--r--sfx2/source/dialog/titledockwin.cxx36
-rw-r--r--sfx2/source/dialog/tplcitem.cxx4
-rw-r--r--sfx2/source/dialog/tplpitem.cxx12
-rw-r--r--sfx2/source/dialog/versdlg.cxx2
-rw-r--r--sfx2/source/doc/Metadatable.cxx12
-rw-r--r--sfx2/source/doc/docfac.cxx12
-rw-r--r--sfx2/source/doc/docfile.cxx150
-rw-r--r--sfx2/source/doc/docmacromode.cxx20
-rw-r--r--sfx2/source/doc/docstoragemodifylistener.cxx10
-rw-r--r--sfx2/source/doc/doctempl.cxx110
-rw-r--r--sfx2/source/doc/doctemplates.cxx152
-rw-r--r--sfx2/source/doc/doctemplateslocal.cxx28
-rw-r--r--sfx2/source/doc/docundomanager.cxx62
-rw-r--r--sfx2/source/doc/frmdescr.cxx4
-rw-r--r--sfx2/source/doc/graphhelp.cxx10
-rw-r--r--sfx2/source/doc/guisaveas.cxx72
-rw-r--r--sfx2/source/doc/new.cxx44
-rw-r--r--sfx2/source/doc/objcont.cxx8
-rw-r--r--sfx2/source/doc/objembed.cxx28
-rw-r--r--sfx2/source/doc/objitem.cxx12
-rw-r--r--sfx2/source/doc/objmisc.cxx104
-rw-r--r--sfx2/source/doc/objserv.cxx16
-rw-r--r--sfx2/source/doc/objstor.cxx66
-rw-r--r--sfx2/source/doc/objxtor.cxx56
-rw-r--r--sfx2/source/doc/oleprops.cxx30
-rw-r--r--sfx2/source/doc/printhelper.cxx18
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx262
-rw-r--r--sfx2/source/doc/sfxmodelfactory.cxx12
-rw-r--r--sfx2/source/doc/zoomitem.cxx16
-rw-r--r--sfx2/source/explorer/nochaos.cxx20
-rw-r--r--sfx2/source/inet/inettbc.cxx2
-rw-r--r--sfx2/source/menu/mnuitem.cxx18
-rw-r--r--sfx2/source/menu/mnumgr.cxx14
-rw-r--r--sfx2/source/menu/virtmenu.cxx36
-rw-r--r--sfx2/source/notify/eventsupplier.cxx36
-rw-r--r--sfx2/source/notify/globalevents.cxx42
-rw-r--r--sfx2/source/notify/hintpost.cxx12
-rw-r--r--sfx2/source/statbar/stbitem.cxx58
-rw-r--r--sfx2/source/toolbox/imgmgr.cxx30
-rw-r--r--sfx2/source/toolbox/tbxitem.cxx72
-rw-r--r--sfx2/source/view/frame.cxx14
-rw-r--r--sfx2/source/view/frame2.cxx2
-rw-r--r--sfx2/source/view/frmload.cxx34
-rw-r--r--sfx2/source/view/ipclient.cxx70
-rw-r--r--sfx2/source/view/printer.cxx26
-rw-r--r--sfx2/source/view/sfxbasecontroller.cxx84
-rw-r--r--sfx2/source/view/userinputinterception.cxx18
-rw-r--r--sfx2/source/view/viewfrm.cxx142
-rw-r--r--sfx2/source/view/viewfrm2.cxx4
-rw-r--r--sfx2/source/view/viewsh.cxx116
-rw-r--r--shell/source/backends/gconfbe/gconfaccess.cxx8
-rw-r--r--shell/source/backends/localebe/localebackend.cxx16
-rw-r--r--shell/source/backends/localebe/localebecdef.cxx8
-rw-r--r--shell/source/backends/macbe/macbecdef.cxx8
-rw-r--r--shell/source/backends/wininetbe/wininetbackend.cxx20
-rw-r--r--shell/source/backends/wininetbe/wininetbecdef.cxx8
-rw-r--r--shell/source/cmdmail/cmdmailentry.cxx10
-rw-r--r--shell/source/cmdmail/cmdmailsuppl.cxx22
-rw-r--r--shell/source/tools/lngconvex/cmdline.cxx2
-rw-r--r--shell/source/unix/exec/shellexec.cxx12
-rw-r--r--shell/source/unix/exec/shellexecentry.cxx10
-rw-r--r--shell/source/unix/exec/urltest.cxx2
-rw-r--r--shell/source/unix/sysshell/recently_used_file.cxx14
-rw-r--r--shell/source/unix/sysshell/recently_used_file_handler.cxx26
-rw-r--r--shell/source/win32/SysShExec.cxx24
-rw-r--r--shell/source/win32/SysShentry.cxx10
-rw-r--r--shell/source/win32/ooofilereader/basereader.cxx8
-rw-r--r--shell/source/win32/ooofilereader/contentreader.cxx12
-rw-r--r--shell/source/win32/ooofilereader/metainforeader.cxx16
-rw-r--r--shell/source/win32/shlxthandler/classfactory.cxx22
-rw-r--r--shell/source/win32/shlxthandler/columninfo/columninfo.cxx26
-rw-r--r--shell/source/win32/shlxthandler/infotips/infotips.cxx34
-rw-r--r--shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx102
-rw-r--r--shell/source/win32/shlxthandler/ooofilt/propspec.cxx12
-rw-r--r--shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx70
-rw-r--r--shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx24
-rw-r--r--shell/source/win32/shlxthandler/propsheets/propsheets.cxx30
-rw-r--r--shell/source/win32/shlxthandler/shlxthdl.cxx12
-rw-r--r--shell/source/win32/shlxthandler/util/fileextensions.cxx6
-rw-r--r--shell/source/win32/shlxthandler/util/iso8601_converter.cxx4
-rw-r--r--shell/source/win32/shlxthandler/util/registry.cxx8
-rw-r--r--shell/source/win32/shlxthandler/util/utilities.cxx18
-rw-r--r--shell/source/win32/simplemail/smplmailentry.cxx10
-rw-r--r--shell/source/win32/simplemail/smplmailmsg.cxx32
-rw-r--r--shell/source/win32/workbench/TestSmplMail.cxx24
-rw-r--r--shell/source/win32/workbench/TestSysShExec.cxx24
-rw-r--r--shell/source/win32/zipfile/zipexcptn.cxx22
-rw-r--r--slideshow/source/engine/animationfactory.cxx12
-rw-r--r--slideshow/source/engine/animationnodes/animationnodefactory.cxx4
-rw-r--r--slideshow/source/engine/shapes/appletshape.cxx26
-rw-r--r--slideshow/source/engine/shapes/backgroundshape.cxx8
-rw-r--r--slideshow/source/engine/shapes/drawshape.cxx4
-rw-r--r--slideshow/source/engine/shapes/externalshapebase.cxx36
-rw-r--r--slideshow/source/engine/shapes/mediashape.cxx28
-rw-r--r--slideshow/source/engine/shapes/shapeimporter.cxx4
-rw-r--r--slideshow/source/engine/shapes/viewappletshape.cxx10
-rw-r--r--slideshow/source/engine/shapes/viewmediashape.cxx24
-rw-r--r--slideshow/source/engine/shapes/viewshape.cxx8
-rw-r--r--slideshow/source/engine/slide/layermanager.cxx2
-rw-r--r--slideshow/source/engine/slide/slideimpl.cxx36
-rw-r--r--slideshow/source/engine/slideshowimpl.cxx2
-rw-r--r--slideshow/source/engine/slideview.cxx8
-rw-r--r--slideshow/source/engine/transitions/clippingfunctor.cxx2
-rw-r--r--slideshow/source/engine/transitions/shapetransitionfactory.cxx4
-rw-r--r--slideshow/source/engine/unoviewcontainer.cxx2
-rw-r--r--slideshow/test/slidetest.cxx2
-rw-r--r--slideshow/test/views.cxx2
-rw-r--r--sot/source/base/exchange.cxx4
-rw-r--r--sot/source/base/formats.cxx12
-rw-r--r--sot/source/sdstor/ucbstorage.cxx24
-rw-r--r--sot/source/unoolestorage/xolesimplestorage.cxx62
-rw-r--r--starmath/source/accessibility.cxx10
-rw-r--r--starmath/source/document.cxx2
-rw-r--r--stoc/source/corereflection/crarray.cxx24
-rw-r--r--stoc/source/corereflection/crbase.cxx46
-rw-r--r--stoc/source/corereflection/crcomp.cxx34
-rw-r--r--stoc/source/corereflection/crefl.cxx42
-rw-r--r--stoc/source/corereflection/crenum.cxx34
-rw-r--r--stoc/source/corereflection/criface.cxx72
-rw-r--r--stoc/source/implementationregistration/implreg.cxx4
-rw-r--r--stoc/source/inspect/introspection.cxx6
-rw-r--r--stoc/source/invocation/invocation.cxx26
-rw-r--r--stoc/source/invocation_adapterfactory/iafactory.cxx46
-rw-r--r--stoc/source/proxy_factory/proxyfac.cxx26
-rw-r--r--stoc/source/security/access_controller.cxx62
-rw-r--r--stoc/source/security/file_policy.cxx38
-rw-r--r--stoc/source/security/permissions.cxx42
-rw-r--r--stoc/source/servicemanager/servicemanager.cxx20
-rw-r--r--stoc/source/typeconv/convert.cxx12
-rw-r--r--stoc/test/testiadapter.cxx22
-rw-r--r--stoc/test/testproxyfac.cxx2
-rw-r--r--svl/source/config/cjkoptions.cxx16
-rw-r--r--svl/source/config/ctloptions.cxx36
-rw-r--r--svl/source/config/languageoptions.cxx2
-rw-r--r--svl/source/filepicker/pickerhistory.cxx6
-rw-r--r--svl/source/items/aeitem.cxx34
-rw-r--r--svl/source/items/cntwall.cxx16
-rw-r--r--svl/source/items/flagitem.cxx18
-rw-r--r--svl/source/items/globalnameitem.cxx12
-rw-r--r--svl/source/items/itemiter.cxx6
-rw-r--r--svl/source/items/itempool.cxx50
-rw-r--r--svl/source/items/itemset.cxx84
-rw-r--r--svl/source/items/lckbitem.cxx18
-rw-r--r--svl/source/items/macitem.cxx18
-rw-r--r--svl/source/items/poolio.cxx16
-rw-r--r--svl/source/items/poolitem.cxx40
-rw-r--r--svl/source/items/ptitem.cxx22
-rw-r--r--svl/source/items/rectitem.cxx22
-rw-r--r--svl/source/items/rngitem.cxx18
-rw-r--r--svl/source/items/sitem.cxx14
-rw-r--r--svl/source/items/slstitm.cxx2
-rw-r--r--svl/source/items/srchitem.cxx14
-rw-r--r--svl/source/items/szitem.cxx22
-rw-r--r--svl/source/items/whiter.cxx8
-rw-r--r--svl/source/misc/documentlockfile.cxx16
-rw-r--r--svl/source/misc/lockfilecommon.cxx20
-rw-r--r--svl/source/misc/sharecontrolfile.cxx20
-rw-r--r--svl/source/uno/pathservice.cxx6
-rw-r--r--svl/source/uno/registerservices.cxx4
-rw-r--r--svtools/source/brwbox/brwbox1.cxx138
-rw-r--r--svtools/source/brwbox/brwbox2.cxx92
-rw-r--r--svtools/source/brwbox/brwbox3.cxx88
-rw-r--r--svtools/source/brwbox/brwhead.cxx8
-rw-r--r--svtools/source/brwbox/datwin.cxx62
-rw-r--r--svtools/source/brwbox/ebbcontrols.cxx98
-rw-r--r--svtools/source/brwbox/editbrowsebox.cxx144
-rw-r--r--svtools/source/brwbox/editbrowsebox2.cxx28
-rw-r--r--svtools/source/config/accessibilityoptions.cxx18
-rw-r--r--svtools/source/config/colorcfg.cxx12
-rw-r--r--svtools/source/config/extcolorcfg.cxx50
-rw-r--r--svtools/source/config/helpopt.cxx12
-rw-r--r--svtools/source/config/htmlcfg.cxx26
-rw-r--r--svtools/source/config/itemholder2.cxx16
-rw-r--r--svtools/source/config/menuoptions.cxx32
-rw-r--r--svtools/source/config/miscopt.cxx8
-rw-r--r--svtools/source/config/optionsdrawinglayer.cxx24
-rw-r--r--svtools/source/config/printoptions.cxx8
-rw-r--r--svtools/source/config/test/test.cxx12
-rw-r--r--svtools/source/contnr/contentenumeration.cxx18
-rw-r--r--svtools/source/contnr/fileview.cxx168
-rw-r--r--svtools/source/contnr/ivctrl.cxx2
-rw-r--r--svtools/source/contnr/svimpbox.cxx12
-rw-r--r--svtools/source/contnr/svtabbx.cxx128
-rw-r--r--svtools/source/contnr/templwin.cxx84
-rw-r--r--svtools/source/control/asynclink.cxx2
-rw-r--r--svtools/source/control/calendar.cxx142
-rw-r--r--svtools/source/control/collatorres.cxx8
-rw-r--r--svtools/source/control/ctrlbox.cxx114
-rw-r--r--svtools/source/control/ctrltool.cxx54
-rw-r--r--svtools/source/control/filectrl.cxx18
-rw-r--r--svtools/source/control/fileurlbox.cxx8
-rw-r--r--svtools/source/control/headbar.cxx96
-rw-r--r--svtools/source/control/hyperlabel.cxx4
-rw-r--r--svtools/source/control/indexentryres.cxx8
-rw-r--r--svtools/source/control/inettbc.cxx34
-rw-r--r--svtools/source/control/roadmap.cxx114
-rw-r--r--svtools/source/control/scriptedtext.cxx6
-rw-r--r--svtools/source/control/scrwin.cxx26
-rw-r--r--svtools/source/control/stdctrl.cxx2
-rw-r--r--svtools/source/control/stdmenu.cxx20
-rw-r--r--svtools/source/control/tabbar.cxx170
-rw-r--r--svtools/source/control/toolbarmenu.cxx150
-rw-r--r--svtools/source/control/toolbarmenuacc.cxx128
-rw-r--r--svtools/source/control/urlcontrol.cxx6
-rw-r--r--svtools/source/control/valueacc.cxx144
-rw-r--r--svtools/source/control/valueset.cxx166
-rw-r--r--svtools/source/control/vclxaccessibleheaderbar.cxx12
-rw-r--r--svtools/source/control/vclxaccessibleheaderbaritem.cxx60
-rw-r--r--svtools/source/dialogs/addresstemplate.cxx96
-rw-r--r--svtools/source/dialogs/colrdlg.cxx10
-rw-r--r--svtools/source/dialogs/insdlg.cxx10
-rw-r--r--svtools/source/dialogs/mcvmath.cxx2
-rw-r--r--svtools/source/dialogs/prnsetup.cxx30
-rw-r--r--svtools/source/dialogs/roadmapwizard.cxx60
-rw-r--r--svtools/source/dialogs/wizardmachine.cxx84
-rw-r--r--svtools/source/dialogs/wizdlg.cxx50
-rw-r--r--svtools/source/filter/SvFilterOptionsDialog.cxx6
-rw-r--r--svtools/source/graphic/descriptor.cxx38
-rw-r--r--svtools/source/graphic/graphic.cxx34
-rw-r--r--svtools/source/graphic/grfattr.cxx12
-rw-r--r--svtools/source/graphic/grfmgr2.cxx8
-rw-r--r--svtools/source/graphic/provider.cxx16
-rw-r--r--svtools/source/graphic/renderer.cxx24
-rw-r--r--svtools/source/graphic/transformer.cxx8
-rw-r--r--svtools/source/hatchwindow/documentcloser.cxx12
-rw-r--r--svtools/source/misc/acceleratorexecute.cxx44
-rw-r--r--svtools/source/misc/cliplistener.cxx2
-rw-r--r--svtools/source/misc/dialogclosedlistener.cxx2
-rw-r--r--svtools/source/misc/dialogcontrolling.cxx42
-rw-r--r--svtools/source/misc/ehdl.cxx22
-rw-r--r--svtools/source/misc/embedtransfer.cxx8
-rw-r--r--svtools/source/misc/imageresourceaccess.cxx18
-rw-r--r--svtools/source/misc/itemdel.cxx8
-rw-r--r--svtools/source/misc/langtab.cxx16
-rw-r--r--svtools/source/misc/openfiledroptargetlistener.cxx14
-rw-r--r--svtools/source/misc/stringtransfer.cxx12
-rw-r--r--svtools/source/misc/svtaccessiblefactory.cxx16
-rw-r--r--svtools/source/misc/templatefoldercache.cxx70
-rw-r--r--svtools/source/misc/transfer.cxx212
-rw-r--r--svtools/source/misc/transfer2.cxx102
-rw-r--r--svtools/source/misc/unitconv.cxx82
-rw-r--r--svtools/source/table/cellvalueconversion.cxx14
-rw-r--r--svtools/source/table/defaultinputhandler.cxx26
-rw-r--r--svtools/source/table/gridtablerenderer.cxx38
-rw-r--r--svtools/source/table/mousefunction.cxx22
-rw-r--r--svtools/source/table/tablecontrol.cxx112
-rw-r--r--svtools/source/table/tablecontrol_impl.cxx186
-rw-r--r--svtools/source/table/tabledatawindow.cxx24
-rw-r--r--svtools/source/table/tablegeometry.cxx16
-rw-r--r--svtools/source/toolpanel/drawerlayouter.cxx34
-rw-r--r--svtools/source/toolpanel/dummypanel.cxx24
-rw-r--r--svtools/source/toolpanel/paneldecklisteners.cxx18
-rw-r--r--svtools/source/toolpanel/paneltabbar.cxx110
-rw-r--r--svtools/source/toolpanel/paneltabbarpeer.cxx8
-rw-r--r--svtools/source/toolpanel/refbase.cxx4
-rw-r--r--svtools/source/toolpanel/tabbargeometry.cxx28
-rw-r--r--svtools/source/toolpanel/tablayouter.cxx22
-rw-r--r--svtools/source/toolpanel/toolpanel.cxx6
-rw-r--r--svtools/source/toolpanel/toolpanelcollection.cxx20
-rw-r--r--svtools/source/toolpanel/toolpaneldeck.cxx72
-rw-r--r--svtools/source/toolpanel/toolpaneldeckpeer.cxx8
-rw-r--r--svtools/source/toolpanel/toolpaneldrawer.cxx38
-rw-r--r--svtools/source/toolpanel/toolpaneldrawerpeer.cxx10
-rw-r--r--svtools/source/uno/addrtempuno.cxx22
-rw-r--r--svtools/source/uno/genericunodialog.cxx28
-rw-r--r--svtools/source/uno/popupwindowcontroller.cxx2
-rw-r--r--svtools/source/uno/svtxgridcontrol.cxx68
-rw-r--r--svtools/source/uno/toolboxcontroller.cxx8
-rw-r--r--svtools/source/uno/treecontrolpeer.cxx164
-rw-r--r--svtools/source/uno/unocontroltablemodel.cxx146
-rw-r--r--svtools/source/uno/unogridcolumnfacade.cxx60
-rw-r--r--svtools/source/uno/unoiface.cxx50
-rw-r--r--svtools/source/uno/unoimap.cxx4
-rw-r--r--svtools/source/uno/wizard/unowizard.cxx54
-rw-r--r--svtools/source/uno/wizard/wizardpagecontroller.cxx12
-rw-r--r--svtools/source/uno/wizard/wizardshell.cxx30
-rw-r--r--svx/source/accessibility/AccessibleEmptyEditSource.cxx18
-rw-r--r--svx/source/accessibility/AccessibleFrameSelector.cxx70
-rw-r--r--svx/source/accessibility/AccessibleShape.cxx18
-rw-r--r--svx/source/accessibility/AccessibleSvxFindReplaceDialog.cxx6
-rw-r--r--svx/source/accessibility/AccessibleTextEventQueue.cxx6
-rw-r--r--svx/source/accessibility/AccessibleTextHelper.cxx22
-rw-r--r--svx/source/accessibility/ChildrenManagerImpl.cxx4
-rw-r--r--svx/source/accessibility/GraphCtlAccessibleContext.cxx78
-rw-r--r--svx/source/accessibility/charmapacc.cxx176
-rw-r--r--svx/source/accessibility/svxpixelctlaccessiblecontext.cxx16
-rw-r--r--svx/source/accessibility/svxrectctaccessiblecontext.cxx12
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeHandle.cxx8
-rw-r--r--svx/source/customshapes/tbxcustomshapes.cxx2
-rw-r--r--svx/source/dialog/_bmpmask.cxx74
-rw-r--r--svx/source/dialog/checklbx.cxx36
-rw-r--r--svx/source/dialog/ctredlin.cxx12
-rw-r--r--svx/source/dialog/dlgutil.cxx2
-rw-r--r--svx/source/dialog/framelinkarray.cxx14
-rw-r--r--svx/source/dialog/grfflt.cxx6
-rw-r--r--svx/source/dialog/hdft.cxx24
-rw-r--r--svx/source/dialog/langbox.cxx26
-rw-r--r--svx/source/dialog/optgrid.cxx14
-rw-r--r--svx/source/dialog/orienthelper.cxx2
-rw-r--r--svx/source/dialog/pagectrl.cxx14
-rw-r--r--svx/source/dialog/paraprev.cxx4
-rw-r--r--svx/source/dialog/passwd.cxx8
-rw-r--r--svx/source/dialog/relfld.cxx8
-rw-r--r--svx/source/dialog/rubydialog.cxx20
-rw-r--r--svx/source/dialog/srchctrl.cxx2
-rw-r--r--svx/source/dialog/srchdlg.cxx70
-rw-r--r--svx/source/dialog/stddlg.cxx4
-rw-r--r--svx/source/dialog/strarray.cxx8
-rw-r--r--svx/source/dialog/txencbox.cxx18
-rw-r--r--svx/source/dialog/txenctab.cxx8
-rw-r--r--svx/source/engine3d/float3d.cxx46
-rw-r--r--svx/source/fmcomp/dbaexchange.cxx54
-rw-r--r--svx/source/fmcomp/dbaobjectex.cxx12
-rw-r--r--svx/source/fmcomp/fmgridif.cxx314
-rw-r--r--svx/source/fmcomp/gridcell.cxx590
-rw-r--r--svx/source/fmcomp/gridcols.cxx8
-rw-r--r--svx/source/fmcomp/xmlexchg.cxx8
-rw-r--r--svx/source/form/ParseContext.cxx28
-rw-r--r--svx/source/form/dataaccessdescriptor.cxx50
-rw-r--r--svx/source/form/databaselocationinput.cxx30
-rw-r--r--svx/source/form/datanavi.cxx138
-rw-r--r--svx/source/form/dbcharsethelper.cxx4
-rw-r--r--svx/source/form/dbtoolsclient.cxx48
-rw-r--r--svx/source/form/delayedevent.cxx6
-rw-r--r--svx/source/form/filtnav.cxx148
-rw-r--r--svx/source/form/fmPropBrw.cxx32
-rw-r--r--svx/source/form/fmcontrolbordermanager.cxx44
-rw-r--r--svx/source/form/fmcontrollayout.cxx12
-rw-r--r--svx/source/form/fmdmod.cxx6
-rw-r--r--svx/source/form/fmdocumentclassification.cxx12
-rw-r--r--svx/source/form/fmexch.cxx60
-rw-r--r--svx/source/form/fmexpl.cxx90
-rw-r--r--svx/source/form/fmitems.cxx8
-rw-r--r--svx/source/form/fmmodel.cxx16
-rw-r--r--svx/source/form/fmobj.cxx46
-rw-r--r--svx/source/form/fmpage.cxx18
-rw-r--r--svx/source/form/fmpgeimp.cxx34
-rw-r--r--svx/source/form/fmscriptingenv.cxx42
-rw-r--r--svx/source/form/fmservs.cxx14
-rw-r--r--svx/source/form/fmshell.cxx60
-rw-r--r--svx/source/form/fmshimp.cxx216
-rw-r--r--svx/source/form/fmsrcimp.cxx102
-rw-r--r--svx/source/form/fmtextcontroldialogs.cxx2
-rw-r--r--svx/source/form/fmtextcontrolfeature.cxx14
-rw-r--r--svx/source/form/fmtextcontrolshell.cxx88
-rw-r--r--svx/source/form/fmtools.cxx28
-rw-r--r--svx/source/form/fmundo.cxx88
-rw-r--r--svx/source/form/fmview.cxx58
-rw-r--r--svx/source/form/fmvwimp.cxx122
-rw-r--r--svx/source/form/formcontrolfactory.cxx22
-rw-r--r--svx/source/form/formcontroller.cxx328
-rw-r--r--svx/source/form/formcontrolling.cxx54
-rw-r--r--svx/source/form/formdispatchinterceptor.cxx22
-rw-r--r--svx/source/form/formfeaturedispatcher.cxx16
-rw-r--r--svx/source/form/formtoolbars.cxx8
-rw-r--r--svx/source/form/legacyformcontroller.cxx26
-rw-r--r--svx/source/form/navigatortree.cxx100
-rw-r--r--svx/source/form/navigatortreemodel.cxx64
-rw-r--r--svx/source/form/sqlparserclient.cxx4
-rw-r--r--svx/source/form/stringlistresource.cxx4
-rw-r--r--svx/source/form/tabwin.cxx44
-rw-r--r--svx/source/form/tbxform.cxx52
-rw-r--r--svx/source/form/typeconversionclient.cxx4
-rw-r--r--svx/source/form/xfm_addcondition.cxx26
-rw-r--r--svx/source/items/SmartTagItem.cxx14
-rw-r--r--svx/source/items/algitem.cxx40
-rw-r--r--svx/source/items/chrtitem.cxx74
-rw-r--r--svx/source/items/drawitem.cxx4
-rw-r--r--svx/source/items/e3ditem.cxx22
-rw-r--r--svx/source/items/hlnkitem.cxx2
-rw-r--r--svx/source/items/numfmtsh.cxx54
-rw-r--r--svx/source/items/numinf.cxx26
-rw-r--r--svx/source/items/pageitem.cxx12
-rw-r--r--svx/source/items/postattr.cxx20
-rw-r--r--svx/source/items/rotmodit.cxx4
-rw-r--r--svx/source/items/viewlayoutitem.cxx16
-rw-r--r--svx/source/items/zoomslideritem.cxx16
-rw-r--r--svx/source/mnuctrls/SmartTagCtl.cxx12
-rw-r--r--svx/source/mnuctrls/fntctl.cxx14
-rw-r--r--svx/source/mnuctrls/fntszctl.cxx10
-rw-r--r--svx/source/sdr/contact/sdrmediawindow.cxx24
-rw-r--r--svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx16
-rw-r--r--svx/source/sdr/contact/viewcontactofunocontrol.cxx14
-rw-r--r--svx/source/sdr/contact/viewobjectcontactofsdrmediaobj.cxx16
-rw-r--r--svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx140
-rw-r--r--svx/source/stbctrls/insctrl.cxx10
-rw-r--r--svx/source/stbctrls/modctrl.cxx8
-rw-r--r--svx/source/stbctrls/pszctrl.cxx16
-rw-r--r--svx/source/stbctrls/selctrl.cxx6
-rw-r--r--svx/source/stbctrls/zoomctrl.cxx10
-rw-r--r--svx/source/stbctrls/zoomsliderctrl.cxx20
-rw-r--r--svx/source/svdraw/svdattr.cxx16
-rw-r--r--svx/source/svdraw/svdoole2.cxx150
-rw-r--r--svx/source/svdraw/svdouno.cxx8
-rw-r--r--svx/source/table/accessiblecell.cxx80
-rw-r--r--svx/source/table/accessibletableshape.cxx122
-rw-r--r--svx/source/table/cell.cxx190
-rw-r--r--svx/source/table/cellcursor.cxx52
-rw-r--r--svx/source/table/cellrange.cxx24
-rw-r--r--svx/source/table/propertyset.cxx54
-rw-r--r--svx/source/table/svdotable.cxx268
-rw-r--r--svx/source/table/tablecolumn.cxx40
-rw-r--r--svx/source/table/tablecolumns.cxx34
-rw-r--r--svx/source/table/tablecontroller.cxx122
-rw-r--r--svx/source/table/tabledesign.cxx122
-rw-r--r--svx/source/table/tablehandles.cxx4
-rw-r--r--svx/source/table/tablelayouter.cxx60
-rw-r--r--svx/source/table/tablemodel.cxx140
-rw-r--r--svx/source/table/tablerow.cxx44
-rw-r--r--svx/source/table/tablerows.cxx34
-rw-r--r--svx/source/table/tableundo.cxx84
-rw-r--r--svx/source/tbxctrls/colrctrl.cxx10
-rw-r--r--svx/source/tbxctrls/extrusioncontrols.cxx100
-rw-r--r--svx/source/tbxctrls/fillctrl.cxx10
-rw-r--r--svx/source/tbxctrls/fontworkgallery.cxx66
-rw-r--r--svx/source/tbxctrls/formatpaintbrushctrl.cxx14
-rw-r--r--svx/source/tbxctrls/itemwin.cxx62
-rw-r--r--svx/source/tbxctrls/layctrl.cxx56
-rw-r--r--svx/source/tbxctrls/linectrl.cxx28
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx148
-rw-r--r--svx/source/tbxctrls/tbunocontroller.cxx12
-rw-r--r--svx/source/tbxctrls/tbunosearchcontrollers.cxx16
-rw-r--r--svx/source/tbxctrls/tbxcolor.cxx4
-rw-r--r--svx/source/tbxctrls/tbxcolorupdate.cxx4
-rw-r--r--svx/source/tbxctrls/tbxdrctl.cxx10
-rw-r--r--svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx6
-rw-r--r--svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx8
-rw-r--r--svx/source/unodraw/UnoNamespaceMap.cxx4
-rw-r--r--svx/source/unodraw/recoveryui.cxx18
-rw-r--r--svx/source/unodraw/shapepropertynotifier.cxx18
-rw-r--r--svx/source/unodraw/tableshape.cxx4
-rw-r--r--svx/source/unodraw/unoprov.cxx6
-rw-r--r--svx/source/unodraw/unoshap2.cxx136
-rw-r--r--svx/source/unodraw/unoshap3.cxx64
-rw-r--r--svx/source/unodraw/unoshap4.cxx6
-rw-r--r--svx/source/unodraw/unoshape.cxx184
-rw-r--r--svx/source/unodraw/unoshcol.cxx10
-rw-r--r--svx/source/unodraw/unoshtxt.cxx58
-rw-r--r--svx/source/unogallery/unogalitem.cxx40
-rw-r--r--svx/source/unogallery/unogaltheme.cxx40
-rw-r--r--svx/source/unogallery/unogalthemeprovider.cxx14
-rw-r--r--svx/source/xml/xmleohlp.cxx2
-rw-r--r--svx/source/xml/xmlexport.cxx4
-rw-r--r--svx/workben/msview/msview.cxx14
-rw-r--r--sw/source/core/access/acctextframe.cxx14
-rw-r--r--sw/source/core/attr/calbck.cxx16
-rw-r--r--sw/source/core/attr/cellatr.cxx12
-rw-r--r--sw/source/core/attr/swatrset.cxx8
-rw-r--r--sw/source/core/bastyp/index.cxx12
-rw-r--r--sw/source/core/crsr/crsrsh.cxx4
-rw-r--r--sw/source/core/edit/autofmt.cxx2
-rw-r--r--sw/source/core/frmedt/tblsel.cxx2
-rw-r--r--sw/source/core/layout/laycache.cxx2
-rw-r--r--sw/source/core/layout/paintfrm.cxx2
-rw-r--r--sw/source/core/ole/ndole.cxx16
-rw-r--r--sw/source/core/table/swnewtable.cxx2
-rw-r--r--sw/source/core/table/swtable.cxx2
-rw-r--r--sw/source/core/tox/tox.cxx2
-rw-r--r--sw/source/core/txtnode/fntcache.cxx6
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx4
-rw-r--r--sw/source/core/txtnode/thints.cxx2
-rw-r--r--sw/source/core/txtnode/txatritr.cxx2
-rw-r--r--sw/source/core/undo/unbkmk.cxx2
-rw-r--r--sw/source/core/undo/undraw.cxx6
-rw-r--r--sw/source/core/undo/unfmco.cxx2
-rw-r--r--sw/source/core/undo/unins.cxx2
-rw-r--r--sw/source/core/undo/unspnd.cxx2
-rw-r--r--sw/source/core/unocore/XMLRangeHelper.cxx4
-rw-r--r--sw/source/filter/ascii/ascatr.cxx4
-rw-r--r--sw/source/filter/ascii/wrtasc.cxx2
-rw-r--r--sw/source/filter/basflt/fltini.cxx4
-rw-r--r--sw/source/filter/basflt/shellio.cxx6
-rw-r--r--sw/source/filter/html/css1atr.cxx8
-rw-r--r--sw/source/filter/html/htmlfly.cxx8
-rw-r--r--sw/source/filter/ww8/wrtw8sty.cxx18
-rw-r--r--sw/source/filter/ww8/wrtww8.cxx12
-rw-r--r--sw/source/filter/ww8/ww8atr.cxx10
-rw-r--r--sw/source/filter/ww8/ww8graf.cxx186
-rw-r--r--sw/source/filter/ww8/ww8par2.cxx16
-rw-r--r--sw/source/filter/ww8/ww8par3.cxx14
-rw-r--r--sw/source/filter/ww8/ww8par5.cxx24
-rw-r--r--sw/source/filter/ww8/ww8par6.cxx20
-rw-r--r--sw/source/filter/xml/xmltble.cxx4
-rw-r--r--sw/source/ui/config/optpage.cxx2
-rw-r--r--sw/source/ui/dbui/dbmgr.cxx4
-rw-r--r--sw/source/ui/dbui/swdbtoolsclient.cxx12
-rw-r--r--sw/source/ui/dialog/uiregionsw.cxx2
-rw-r--r--sw/source/ui/docvw/edtwin.cxx4
-rw-r--r--sw/source/ui/fldui/xfldui.cxx4
-rw-r--r--sw/source/ui/lingu/hyp.cxx12
-rw-r--r--sw/source/ui/misc/docfnote.cxx2
-rw-r--r--testtools/source/bridgetest/bridgetest.cxx20
-rw-r--r--testtools/source/bridgetest/cppobj.cxx30
-rw-r--r--testtools/source/performance/pseudo.cxx22
-rw-r--r--testtools/source/performance/ubobject.cxx8
-rw-r--r--testtools/source/performance/ubtest.cxx52
-rw-r--r--toolkit/source/awt/animatedimagespeer.cxx42
-rw-r--r--toolkit/source/awt/stylesettings.cxx230
-rw-r--r--toolkit/source/awt/vclxdevice.cxx4
-rw-r--r--toolkit/source/awt/vclxspinbutton.cxx44
-rw-r--r--toolkit/source/awt/vclxtopwindow.cxx12
-rw-r--r--toolkit/source/awt/vclxwindow.cxx18
-rw-r--r--toolkit/source/awt/vclxwindows.cxx2
-rw-r--r--toolkit/source/controls/accessiblecontrolcontext.cxx48
-rw-r--r--toolkit/source/controls/animatedimages.cxx72
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase.cxx54
-rw-r--r--toolkit/source/controls/dialogcontrol.cxx4
-rw-r--r--toolkit/source/controls/formattedcontrol.cxx38
-rw-r--r--toolkit/source/controls/geometrycontrolmodel.cxx66
-rw-r--r--toolkit/source/controls/grid/defaultgridcolumnmodel.cxx26
-rw-r--r--toolkit/source/controls/grid/defaultgriddatamodel.cxx58
-rw-r--r--toolkit/source/controls/grid/gridcolumn.cxx68
-rw-r--r--toolkit/source/controls/grid/gridcontrol.cxx60
-rw-r--r--toolkit/source/controls/grid/grideventforwarder.cxx24
-rw-r--r--toolkit/source/controls/grid/sortablegriddatamodel.cxx104
-rw-r--r--toolkit/source/controls/roadmapcontrol.cxx16
-rw-r--r--toolkit/source/controls/roadmapentry.cxx8
-rw-r--r--toolkit/source/controls/spinningprogress.cxx14
-rw-r--r--toolkit/source/controls/tabpagecontainer.cxx12
-rw-r--r--toolkit/source/controls/tkscrollbar.cxx10
-rw-r--r--toolkit/source/controls/tkspinbutton.cxx58
-rw-r--r--toolkit/source/controls/tree/treecontrol.cxx72
-rw-r--r--toolkit/source/controls/unocontrol.cxx12
-rw-r--r--toolkit/source/controls/unocontrolcontainer.cxx26
-rw-r--r--toolkit/source/controls/unocontrolmodel.cxx2
-rw-r--r--toolkit/source/controls/unocontrols.cxx66
-rw-r--r--toolkit/source/helper/accessibilityclient.cxx16
-rw-r--r--toolkit/source/helper/externallock.cxx6
-rw-r--r--toolkit/source/helper/formpdfexport.cxx36
-rw-r--r--toolkit/source/helper/unowrapper.cxx2
-rw-r--r--toolkit/source/helper/vclunohelper.cxx4
-rw-r--r--tools/qa/cppunit/test_urlobj.cxx2
-rw-r--r--tools/test/tests.cxx2
-rw-r--r--ucb/source/cacher/cachedcontentresultset.cxx130
-rw-r--r--ucb/source/cacher/cachedcontentresultsetstub.cxx52
-rw-r--r--ucb/source/cacher/cacheddynamicresultset.cxx44
-rw-r--r--ucb/source/cacher/cacheddynamicresultsetstub.cxx40
-rw-r--r--ucb/source/cacher/contentresultsetwrapper.cxx88
-rw-r--r--ucb/source/cacher/dynamicresultsetwrapper.cxx52
-rw-r--r--ucb/source/sorter/sortdynres.cxx88
-rw-r--r--ucb/source/sorter/sortresult.cxx222
-rw-r--r--ucb/source/ucp/expand/ucpexpand.cxx14
-rw-r--r--ucb/source/ucp/ext/ucpext_content.cxx42
-rw-r--r--ucb/source/ucp/ext/ucpext_datasupplier.cxx30
-rw-r--r--ucb/source/ucp/ext/ucpext_provider.cxx22
-rw-r--r--ucb/source/ucp/ext/ucpext_resultset.cxx6
-rw-r--r--ucb/source/ucp/ext/ucpext_services.cxx2
-rw-r--r--ucb/source/ucp/gvfs/gvfs_stream.cxx24
-rw-r--r--ucb/source/ucp/webdav/DAVProperties.cxx6
-rw-r--r--ucb/source/ucp/webdav/SerfInputStream.cxx48
-rw-r--r--ucb/source/ucp/webdav/SerfLockStore.cxx22
-rw-r--r--ucb/source/ucp/webdav/SerfSession.cxx120
-rw-r--r--ucb/source/ucp/webdav/SerfUri.cxx4
-rw-r--r--ucb/workben/ucb/ucbdemo.cxx110
-rw-r--r--unodevtools/source/unodevtools/options.cxx6
-rw-r--r--unotools/source/config/bootstrap.cxx92
-rw-r--r--unotools/source/config/cmdoptions.cxx4
-rw-r--r--unotools/source/config/compatibility.cxx30
-rw-r--r--unotools/source/config/configitem.cxx6
-rw-r--r--unotools/source/config/confignode.cxx54
-rw-r--r--unotools/source/config/configpaths.cxx24
-rw-r--r--unotools/source/config/defaultoptions.cxx6
-rw-r--r--unotools/source/config/dynamicmenuoptions.cxx4
-rw-r--r--unotools/source/config/fltrcfg.cxx30
-rw-r--r--unotools/source/config/fontcfg.cxx20
-rw-r--r--unotools/source/config/itemholder1.cxx16
-rw-r--r--unotools/source/config/misccfg.cxx2
-rw-r--r--unotools/source/config/moduleoptions.cxx46
-rw-r--r--unotools/source/config/optionsdlg.cxx20
-rw-r--r--unotools/source/config/pathoptions.cxx112
-rw-r--r--unotools/source/config/printwarningoptions.cxx28
-rw-r--r--unotools/source/config/saveopt.cxx18
-rw-r--r--unotools/source/config/securityoptions.cxx16
-rw-r--r--unotools/source/config/syslocaleoptions.cxx2
-rw-r--r--unotools/source/config/viewoptions.cxx24
-rw-r--r--unotools/source/misc/atom.cxx2
-rw-r--r--unotools/source/misc/closeveto.cxx14
-rw-r--r--unotools/source/misc/componentresmodule.cxx14
-rw-r--r--unotools/source/misc/datetime.cxx8
-rw-r--r--unotools/source/misc/desktopterminationobserver.cxx16
-rw-r--r--unotools/source/misc/eventlisteneradapter.cxx16
-rw-r--r--unotools/source/misc/fontdefs.cxx8
-rw-r--r--unotools/source/misc/mediadescriptor.cxx2
-rw-r--r--unotools/source/misc/sharedunocomponent.cxx22
-rw-r--r--unotools/source/misc/syslocale.cxx4
-rw-r--r--unotools/source/streaming/streamhelper.cxx14
-rw-r--r--unotools/source/streaming/streamwrap.cxx64
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx22
-rw-r--r--uui/source/iahndl.cxx4
-rw-r--r--uui/source/masterpasscrtdlg.cxx6
-rw-r--r--uui/source/masterpassworddlg.cxx4
-rw-r--r--uui/source/nameclashdlg.cxx2
-rw-r--r--uui/source/passworddlg.cxx4
-rw-r--r--uui/source/sslwarndlg.cxx2
-rw-r--r--uui/source/unknownauthdlg.cxx6
-rw-r--r--vbahelper/source/msforms/vbasystemaxcontrol.cxx18
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarcontrols.cxx2
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx4
-rw-r--r--vcl/generic/app/geninst.cxx4
-rw-r--r--vcl/generic/fontmanager/fontmanager.cxx76
-rw-r--r--vcl/generic/fontmanager/fontsubst.cxx6
-rw-r--r--vcl/generic/glyphs/gcach_ftyp.cxx82
-rw-r--r--vcl/generic/glyphs/gcach_layout.cxx4
-rw-r--r--vcl/generic/print/genprnpsp.cxx2
-rw-r--r--vcl/generic/print/genpspgraphics.cxx24
-rw-r--r--vcl/headless/svpinst.cxx4
-rw-r--r--vcl/osx/HtmlFmtFlt.cxx4
-rw-r--r--vcl/osx/a11yfocuslistener.cxx12
-rw-r--r--vcl/osx/a11yfocustracker.cxx22
-rw-r--r--vcl/osx/a11ylistener.cxx8
-rw-r--r--vcl/osx/documentfocuslistener.cxx20
-rw-r--r--vcl/osx/salframe.cxx74
-rw-r--r--vcl/osx/salinst.cxx88
-rw-r--r--vcl/osx/salmenu.cxx2
-rw-r--r--vcl/osx/salobj.cxx20
-rw-r--r--vcl/osx/salprn.cxx50
-rw-r--r--vcl/qa/cppunit/dndtest.cxx64
-rw-r--r--vcl/quartz/ctfonts.cxx26
-rw-r--r--vcl/quartz/salbmp.cxx40
-rw-r--r--vcl/quartz/salgdi.cxx44
-rw-r--r--vcl/quartz/salgdicommon.cxx2
-rw-r--r--vcl/quartz/salgdiutils.cxx12
-rw-r--r--vcl/quartz/salvd.cxx16
-rw-r--r--vcl/source/app/help.cxx72
-rw-r--r--vcl/source/app/salvtables.cxx6
-rw-r--r--vcl/source/app/svdata.cxx10
-rw-r--r--vcl/source/components/dtranscomp.cxx10
-rw-r--r--vcl/source/components/fontident.cxx4
-rw-r--r--vcl/source/control/button.cxx294
-rw-r--r--vcl/source/control/combobox.cxx160
-rw-r--r--vcl/source/control/ctrl.cxx74
-rw-r--r--vcl/source/control/edit.cxx174
-rw-r--r--vcl/source/control/fixed.cxx122
-rw-r--r--vcl/source/control/group.cxx26
-rw-r--r--vcl/source/control/ilstbox.cxx220
-rw-r--r--vcl/source/control/imgctrl.cxx20
-rw-r--r--vcl/source/control/lstbox.cxx4
-rw-r--r--vcl/source/control/slider.cxx56
-rw-r--r--vcl/source/control/spinbtn.cxx44
-rw-r--r--vcl/source/control/spinfld.cxx52
-rw-r--r--vcl/source/control/tabctrl.cxx126
-rw-r--r--vcl/source/edit/textview.cxx4
-rw-r--r--vcl/source/edit/xtextedt.cxx4
-rw-r--r--vcl/source/filter/FilterConfigCache.cxx6
-rw-r--r--vcl/source/filter/FilterConfigItem.cxx4
-rw-r--r--vcl/source/filter/graphicfilter.cxx6
-rw-r--r--vcl/source/filter/igif/decode.cxx12
-rw-r--r--vcl/source/filter/ixbm/xbmread.cxx20
-rw-r--r--vcl/source/filter/ixpm/xpmread.cxx30
-rw-r--r--vcl/source/filter/wmf/winwmf.cxx12
-rw-r--r--vcl/source/filter/wmf/wmf.cxx10
-rw-r--r--vcl/source/filter/wmf/wmfwr.cxx12
-rw-r--r--vcl/source/fontsubset/cff.cxx106
-rw-r--r--vcl/source/fontsubset/fontsubset.cxx12
-rw-r--r--vcl/source/fontsubset/xlat.cxx8
-rw-r--r--vcl/source/gdi/bitmap3.cxx10
-rw-r--r--vcl/source/gdi/lineinfo.cxx52
-rw-r--r--vcl/source/gdi/metaact.cxx826
-rw-r--r--vcl/source/gdi/octree.cxx36
-rw-r--r--vcl/source/gdi/outdev2.cxx2
-rw-r--r--vcl/source/gdi/outdev5.cxx8
-rw-r--r--vcl/source/gdi/outdev6.cxx22
-rw-r--r--vcl/source/gdi/outdevnative.cxx14
-rw-r--r--vcl/source/gdi/pdfwriter_impl2.cxx6
-rw-r--r--vcl/source/gdi/regband.cxx38
-rw-r--r--vcl/source/gdi/region.cxx2
-rw-r--r--vcl/source/gdi/sallayout.cxx94
-rw-r--r--vcl/source/gdi/virdev.cxx22
-rw-r--r--vcl/source/gdi/wall.cxx68
-rw-r--r--vcl/source/window/accel.cxx42
-rw-r--r--vcl/source/window/accmgr.cxx8
-rw-r--r--vcl/source/window/brdwin.cxx140
-rw-r--r--vcl/source/window/cmdevt.cxx4
-rw-r--r--vcl/source/window/cursor.cxx32
-rw-r--r--vcl/source/window/decoview.cxx4
-rw-r--r--vcl/source/window/dialog.cxx54
-rw-r--r--vcl/source/window/dlgctrl.cxx36
-rw-r--r--vcl/source/window/dockingarea.cxx10
-rw-r--r--vcl/source/window/dockmgr.cxx70
-rw-r--r--vcl/source/window/dockwin.cxx84
-rw-r--r--vcl/source/window/floatwin.cxx42
-rw-r--r--vcl/source/window/introwin.cxx4
-rw-r--r--vcl/source/window/keycod.cxx8
-rw-r--r--vcl/source/window/keyevent.cxx2
-rw-r--r--vcl/source/window/menu.cxx20
-rw-r--r--vcl/source/window/mnemonic.cxx12
-rw-r--r--vcl/source/window/msgbox.cxx50
-rw-r--r--vcl/source/window/printdlg.cxx4
-rw-r--r--vcl/source/window/split.cxx58
-rw-r--r--vcl/source/window/status.cxx114
-rw-r--r--vcl/source/window/syschild.cxx14
-rw-r--r--vcl/source/window/syswin.cxx58
-rw-r--r--vcl/source/window/tabdlg.cxx12
-rw-r--r--vcl/source/window/tabpage.cxx18
-rw-r--r--vcl/source/window/taskpanelist.cxx18
-rw-r--r--vcl/source/window/toolbox.cxx166
-rw-r--r--vcl/source/window/toolbox2.cxx194
-rw-r--r--vcl/source/window/window.cxx478
-rw-r--r--vcl/source/window/window2.cxx74
-rw-r--r--vcl/source/window/window3.cxx6
-rw-r--r--vcl/source/window/winproc.cxx82
-rw-r--r--vcl/source/window/wrkwin.cxx22
-rw-r--r--vcl/unx/generic/app/i18n_cb.cxx28
-rw-r--r--vcl/unx/generic/app/i18n_ic.cxx44
-rw-r--r--vcl/unx/generic/app/i18n_im.cxx16
-rw-r--r--vcl/unx/generic/app/i18n_status.cxx24
-rw-r--r--vcl/unx/generic/app/saldisp.cxx2
-rw-r--r--vcl/unx/generic/app/salinst.cxx2
-rw-r--r--vcl/unx/generic/dtrans/X11_clipboard.cxx28
-rw-r--r--vcl/unx/generic/dtrans/X11_droptarget.cxx22
-rw-r--r--vcl/unx/generic/dtrans/X11_selection.cxx110
-rw-r--r--vcl/unx/generic/dtrans/X11_service.cxx6
-rw-r--r--vcl/unx/generic/gdi/gcach_xpeer.cxx6
-rw-r--r--vcl/unx/generic/gdi/salbmp.cxx76
-rw-r--r--vcl/unx/generic/gdi/salgdi2.cxx2
-rw-r--r--vcl/unx/generic/gdi/salgdi3.cxx40
-rw-r--r--vcl/unx/generic/gdi/xrender_peer.cxx6
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx40
-rw-r--r--vcl/unx/generic/printer/printerinfomanager.cxx36
-rw-r--r--vcl/unx/generic/window/salframe.cxx8
-rw-r--r--vcl/unx/generic/window/salobj.cxx4
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx76
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx16
-rw-r--r--vcl/unx/gtk/fpicker/resourceprovider.cxx4
-rw-r--r--vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx68
-rw-r--r--vcl/unx/gtk/window/gtksalframe.cxx4
-rw-r--r--vcl/unx/kde/salnativewidgets-kde.cxx12
-rw-r--r--vcl/win/source/app/saldata.cxx10
-rw-r--r--vcl/win/source/app/salinfo.cxx4
-rw-r--r--vcl/win/source/app/salinst.cxx78
-rw-r--r--vcl/win/source/app/salshl.cxx4
-rw-r--r--vcl/win/source/app/saltimer.cxx4
-rw-r--r--vcl/win/source/gdi/salbmp.cxx40
-rw-r--r--vcl/win/source/gdi/salgdi.cxx82
-rw-r--r--vcl/win/source/gdi/salgdi2.cxx24
-rw-r--r--vcl/win/source/gdi/salgdi3.cxx82
-rw-r--r--vcl/win/source/gdi/salgdi_gdiplus.cxx8
-rw-r--r--vcl/win/source/gdi/salnativewidgets-luna.cxx2
-rw-r--r--vcl/win/source/gdi/salvd.cxx10
-rw-r--r--vcl/win/source/gdi/winlayout.cxx84
-rw-r--r--vcl/win/source/gdi/wntgdi.cxx6
-rw-r--r--vcl/win/source/window/salframe.cxx200
-rw-r--r--vcl/win/source/window/salmenu.cxx2
-rw-r--r--vcl/win/source/window/salobj.cxx32
-rw-r--r--winaccessibility/source/service/AccResource.cxx6
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx12
-rw-r--r--xmloff/source/style/kernihdl.cxx2
-rw-r--r--xmloff/source/style/shadwhdl.cxx2
-rw-r--r--xmloff/source/style/shdwdhdl.cxx2
-rw-r--r--xmloff/source/style/xmltabi.cxx4
-rw-r--r--xmloff/source/text/txtparae.cxx2
-rw-r--r--xmlscript/test/imexp.cxx2
2756 files changed, 42504 insertions, 44116 deletions
diff --git a/UnoControls/source/base/basecontainercontrol.cxx b/UnoControls/source/base/basecontainercontrol.cxx
index 93f7cc209b0c..ae63f0b57730 100644
--- a/UnoControls/source/base/basecontainercontrol.cxx
+++ b/UnoControls/source/base/basecontainercontrol.cxx
@@ -21,9 +21,9 @@
#include <cppuhelper/typeprovider.hxx>
-//____________________________________________________________________________________________________________
+
// namespaces
-//____________________________________________________________________________________________________________
+
using namespace ::cppu ;
using namespace ::osl ;
@@ -35,9 +35,9 @@ using namespace ::com::sun::star::container ;
namespace unocontrols{
-//____________________________________________________________________________________________________________
+
// construct/destruct
-//____________________________________________________________________________________________________________
+
BaseContainerControl::BaseContainerControl( const Reference< XComponentContext >& rxContext )
: BaseControl ( rxContext )
@@ -50,9 +50,9 @@ BaseContainerControl::~BaseContainerControl()
impl_cleanMemory();
}
-//____________________________________________________________________________________________________________
+
// XInterface
-//____________________________________________________________________________________________________________
+
Any SAL_CALL BaseContainerControl::queryInterface( const Type& rType ) throw( RuntimeException )
{
@@ -75,9 +75,9 @@ Any SAL_CALL BaseContainerControl::queryInterface( const Type& rType ) throw( Ru
return aReturn ;
}
-//____________________________________________________________________________________________________________
+
// XTypeProvider
-//____________________________________________________________________________________________________________
+
Sequence< Type > SAL_CALL BaseContainerControl::getTypes() throw( RuntimeException )
{
@@ -107,9 +107,9 @@ Sequence< Type > SAL_CALL BaseContainerControl::getTypes() throw( RuntimeExcepti
return pTypeCollection->getTypes();
}
-//____________________________________________________________________________________________________________
+
// XAggregation
-//____________________________________________________________________________________________________________
+
Any SAL_CALL BaseContainerControl::queryAggregation( const Type& aType ) throw( RuntimeException )
{
@@ -134,9 +134,9 @@ Any SAL_CALL BaseContainerControl::queryAggregation( const Type& aType ) throw(
}
}
-//____________________________________________________________________________________________________________
+
// XControl
-//____________________________________________________________________________________________________________
+
void SAL_CALL BaseContainerControl::createPeer( const Reference< XToolkit >& xToolkit ,
const Reference< XWindowPeer >& xParent ) throw( RuntimeException )
@@ -161,9 +161,9 @@ void SAL_CALL BaseContainerControl::createPeer( const Reference< XToolkit >&
}
}
-//____________________________________________________________________________________________________________
+
// XControl
-//____________________________________________________________________________________________________________
+
sal_Bool SAL_CALL BaseContainerControl::setModel( const Reference< XControlModel >& ) throw( RuntimeException )
{
@@ -171,9 +171,9 @@ sal_Bool SAL_CALL BaseContainerControl::setModel( const Reference< XControlModel
return sal_False ;
}
-//____________________________________________________________________________________________________________
+
// XControl
-//____________________________________________________________________________________________________________
+
Reference< XControlModel > SAL_CALL BaseContainerControl::getModel() throw( RuntimeException )
{
@@ -182,9 +182,9 @@ Reference< XControlModel > SAL_CALL BaseContainerControl::getModel() throw( Runt
return Reference< XControlModel >();
}
-//____________________________________________________________________________________________________________
+
// XComponent
-//____________________________________________________________________________________________________________
+
void SAL_CALL BaseContainerControl::dispose() throw( RuntimeException )
{
@@ -223,9 +223,9 @@ void SAL_CALL BaseContainerControl::dispose() throw( RuntimeException )
BaseControl::dispose();
}
-//____________________________________________________________________________________________________________
+
// XEventListener
-//____________________________________________________________________________________________________________
+
void SAL_CALL BaseContainerControl::disposing( const EventObject& rEvent ) throw( RuntimeException )
{
@@ -235,9 +235,9 @@ void SAL_CALL BaseContainerControl::disposing( const EventObject& rEvent ) throw
removeControl( xControl );
}
-//____________________________________________________________________________________________________________
+
// XControlContainer
-//____________________________________________________________________________________________________________
+
void SAL_CALL BaseContainerControl::addControl ( const OUString& rName, const Reference< XControl > & rControl ) throw( RuntimeException )
{
@@ -294,9 +294,9 @@ void SAL_CALL BaseContainerControl::addControl ( const OUString& rName, const Re
}
}
-//____________________________________________________________________________________________________________
+
// XControlContainer
-//____________________________________________________________________________________________________________
+
void SAL_CALL BaseContainerControl::addContainerListener ( const Reference< XContainerListener > & rListener ) throw( RuntimeException )
{
@@ -306,9 +306,9 @@ void SAL_CALL BaseContainerControl::addContainerListener ( const Reference< XCon
m_aListeners.addInterface ( ::getCppuType((const Reference< XContainerListener >*)0), rListener ) ;
}
-//____________________________________________________________________________________________________________
+
// XControlContainer
-//____________________________________________________________________________________________________________
+
void SAL_CALL BaseContainerControl::removeControl ( const Reference< XControl > & rControl ) throw( RuntimeException )
{
@@ -359,9 +359,9 @@ void SAL_CALL BaseContainerControl::removeControl ( const Reference< XControl >
}
}
-//____________________________________________________________________________________________________________
+
// XControlContainer
-//____________________________________________________________________________________________________________
+
void SAL_CALL BaseContainerControl::removeContainerListener ( const Reference< XContainerListener > & rListener ) throw( RuntimeException )
{
@@ -371,9 +371,9 @@ void SAL_CALL BaseContainerControl::removeContainerListener ( const Reference< X
m_aListeners.removeInterface ( ::getCppuType((const Reference< XContainerListener >*)0), rListener ) ;
}
-//____________________________________________________________________________________________________________
+
// XControlContainer
-//____________________________________________________________________________________________________________
+
void SAL_CALL BaseContainerControl::setStatusText ( const OUString& rStatusText ) throw( RuntimeException )
{
@@ -386,9 +386,9 @@ void SAL_CALL BaseContainerControl::setStatusText ( const OUString& rStatusText
}
}
-//____________________________________________________________________________________________________________
+
// XControlContainer
-//____________________________________________________________________________________________________________
+
Reference< XControl > SAL_CALL BaseContainerControl::getControl ( const OUString& rName ) throw( RuntimeException )
{
@@ -414,9 +414,9 @@ Reference< XControl > SAL_CALL BaseContainerControl::getControl ( const OUString
return Reference< XControl > () ;
}
-//____________________________________________________________________________________________________________
+
// XControlContainer
-//____________________________________________________________________________________________________________
+
Sequence< Reference< XControl > > SAL_CALL BaseContainerControl::getControls () throw( RuntimeException )
{
@@ -439,9 +439,9 @@ Sequence< Reference< XControl > > SAL_CALL BaseContainerControl::getControls ()
return aDescriptor ;
}
-//____________________________________________________________________________________________________________
+
// XUnoControlContainer
-//____________________________________________________________________________________________________________
+
void SAL_CALL BaseContainerControl::addTabController ( const Reference< XTabController > & rTabController ) throw( RuntimeException )
{
@@ -465,9 +465,9 @@ void SAL_CALL BaseContainerControl::addTabController ( const Reference< XTabCont
m_xTabControllerList = aNewList ;
}
-//____________________________________________________________________________________________________________
+
// XUnoControlContainer
-//____________________________________________________________________________________________________________
+
void SAL_CALL BaseContainerControl::removeTabController ( const Reference< XTabController > & rTabController ) throw( RuntimeException )
{
@@ -489,9 +489,9 @@ void SAL_CALL BaseContainerControl::removeTabController ( const Reference< XTabC
}
}
-//____________________________________________________________________________________________________________
+
// XUnoControlContainer
-//____________________________________________________________________________________________________________
+
void SAL_CALL BaseContainerControl::setTabControllers ( const Sequence< Reference< XTabController > >& rTabControllers ) throw( RuntimeException )
{
@@ -509,9 +509,9 @@ Sequence<Reference< XTabController > > SAL_CALL BaseContainerControl::getTabCont
return m_xTabControllerList ;
}
-//____________________________________________________________________________________________________________
+
// XWindow
-//____________________________________________________________________________________________________________
+
void SAL_CALL BaseContainerControl::setVisible ( sal_Bool bVisible ) throw( RuntimeException )
{
@@ -526,9 +526,9 @@ void SAL_CALL BaseContainerControl::setVisible ( sal_Bool bVisible ) throw( Runt
}
}
-//____________________________________________________________________________________________________________
+
// protected method
-//____________________________________________________________________________________________________________
+
WindowDescriptor* BaseContainerControl::impl_getWindowDescriptor ( const Reference< XWindowPeer > & rParentPeer )
{
@@ -548,17 +548,17 @@ WindowDescriptor* BaseContainerControl::impl_getWindowDescriptor ( const Referen
return aDescriptor ;
}
-//____________________________________________________________________________________________________________
+
// protected method
-//____________________________________________________________________________________________________________
+
void BaseContainerControl::impl_paint ( sal_Int32 /*nX*/, sal_Int32 /*nY*/, const Reference< XGraphics > & /*rGraphics*/ )
{
}
-//____________________________________________________________________________________________________________
+
// private method
-//____________________________________________________________________________________________________________
+
void BaseContainerControl::impl_activateTabControllers ()
{
@@ -575,9 +575,9 @@ void BaseContainerControl::impl_activateTabControllers ()
}
}
-//____________________________________________________________________________________________________________
+
// private method
-//____________________________________________________________________________________________________________
+
void BaseContainerControl::impl_cleanMemory ()
{
diff --git a/UnoControls/source/base/multiplexer.cxx b/UnoControls/source/base/multiplexer.cxx
index 416042bd970c..0dd2bc41cfe5 100644
--- a/UnoControls/source/base/multiplexer.cxx
+++ b/UnoControls/source/base/multiplexer.cxx
@@ -29,9 +29,9 @@ using namespace ::com::sun::star::lang ;
namespace unocontrols{
-//____________________________________________________________________________________________________________
+
// macros
-//____________________________________________________________________________________________________________
+
#define MULTIPLEX( INTERFACE, METHOD, EVENTTYP, EVENT ) \
\
@@ -63,9 +63,9 @@ namespace unocontrols{
} \
}
-//____________________________________________________________________________________________________________
+
// construct/destruct
-//____________________________________________________________________________________________________________
+
OMRCListenerMultiplexerHelper::OMRCListenerMultiplexerHelper( const Reference< XWindow >& xControl ,
const Reference< XWindow >& xPeer )
@@ -92,9 +92,9 @@ OMRCListenerMultiplexerHelper::~OMRCListenerMultiplexerHelper()
{
}
-//____________________________________________________________________________________________________________
+
// XInterface
-//____________________________________________________________________________________________________________
+
Any SAL_CALL OMRCListenerMultiplexerHelper::queryInterface( const Type& rType ) throw( RuntimeException )
{
@@ -128,9 +128,9 @@ Any SAL_CALL OMRCListenerMultiplexerHelper::queryInterface( const Type& rType )
}
}
-//____________________________________________________________________________________________________________
+
// XInterface
-//____________________________________________________________________________________________________________
+
void SAL_CALL OMRCListenerMultiplexerHelper::acquire() throw()
{
@@ -141,9 +141,9 @@ void SAL_CALL OMRCListenerMultiplexerHelper::acquire() throw()
OWeakObject::acquire();
}
-//____________________________________________________________________________________________________________
+
// XInterface
-//____________________________________________________________________________________________________________
+
void SAL_CALL OMRCListenerMultiplexerHelper::release() throw()
{
@@ -154,18 +154,18 @@ void SAL_CALL OMRCListenerMultiplexerHelper::release() throw()
OWeakObject::release();
}
-//____________________________________________________________________________________________________________
+
// operator
-//____________________________________________________________________________________________________________
+
OMRCListenerMultiplexerHelper::operator Reference< XInterface >() const
{
return ((OWeakObject*)this) ;
}
-//____________________________________________________________________________________________________________
+
// container method
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::setPeer( const Reference< XWindow >& xPeer )
{
@@ -196,9 +196,9 @@ void OMRCListenerMultiplexerHelper::setPeer( const Reference< XWindow >& xPeer )
}
}
-//____________________________________________________________________________________________________________
+
// container method
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::disposeAndClear()
{
@@ -207,9 +207,9 @@ void OMRCListenerMultiplexerHelper::disposeAndClear()
m_aListenerHolder.disposeAndClear( aEvent );
}
-//____________________________________________________________________________________________________________
+
// container method
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::advise( const Type& aType ,
const Reference< XInterface >& xListener )
@@ -225,9 +225,9 @@ void OMRCListenerMultiplexerHelper::advise( const Type&
}
}
-//____________________________________________________________________________________________________________
+
// container method
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::unadvise( const Type& aType ,
const Reference< XInterface >& xListener )
@@ -243,9 +243,9 @@ void OMRCListenerMultiplexerHelper::unadvise( const Type&
}
}
-//____________________________________________________________________________________________________________
+
// XEventListener
-//____________________________________________________________________________________________________________
+
void SAL_CALL OMRCListenerMultiplexerHelper::disposing( const EventObject& /*aSource*/ ) throw( RuntimeException )
{
@@ -254,207 +254,207 @@ void SAL_CALL OMRCListenerMultiplexerHelper::disposing( const EventObject& /*aSo
m_xPeer.clear();
}
-//____________________________________________________________________________________________________________
+
// XFcousListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::focusGained(const FocusEvent& aEvent ) throw( RuntimeException )
{
MULTIPLEX( XFocusListener, focusGained, FocusEvent, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XFcousListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::focusLost(const FocusEvent& aEvent ) throw( RuntimeException )
{
MULTIPLEX( XFocusListener, focusLost, FocusEvent, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XWindowListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::windowResized(const WindowEvent& aEvent ) throw( RuntimeException )
{
MULTIPLEX( XWindowListener, windowResized, WindowEvent, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XWindowListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::windowMoved(const WindowEvent& aEvent ) throw( RuntimeException )
{
MULTIPLEX( XWindowListener, windowMoved, WindowEvent, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XWindowListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::windowShown(const EventObject& aEvent ) throw( RuntimeException )
{
MULTIPLEX( XWindowListener, windowShown, EventObject, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XWindowListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::windowHidden(const EventObject& aEvent ) throw( RuntimeException )
{
MULTIPLEX( XWindowListener, windowHidden, EventObject, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XKeyListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::keyPressed(const KeyEvent& aEvent) throw( RuntimeException )
{
MULTIPLEX( XKeyListener, keyPressed, KeyEvent, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XKeyListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::keyReleased(const KeyEvent& aEvent) throw( RuntimeException )
{
MULTIPLEX( XKeyListener, keyReleased, KeyEvent, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XMouseListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::mousePressed(const MouseEvent& aEvent) throw( RuntimeException )
{
MULTIPLEX( XMouseListener, mousePressed, MouseEvent, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XMouseListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::mouseReleased(const MouseEvent& aEvent) throw( RuntimeException )
{
MULTIPLEX( XMouseListener, mouseReleased, MouseEvent, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XMouseListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::mouseEntered(const MouseEvent& aEvent) throw( RuntimeException )
{
MULTIPLEX( XMouseListener, mouseEntered, MouseEvent, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XMouseListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::mouseExited(const MouseEvent& aEvent) throw( RuntimeException )
{
MULTIPLEX( XMouseListener, mouseExited, MouseEvent, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XMouseMotionListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::mouseDragged(const MouseEvent& aEvent) throw( RuntimeException )
{
MULTIPLEX( XMouseMotionListener, mouseDragged, MouseEvent, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XMouseMotionListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::mouseMoved(const MouseEvent& aEvent) throw( RuntimeException )
{
MULTIPLEX( XMouseMotionListener, mouseMoved, MouseEvent, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XPaintListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::windowPaint(const PaintEvent& aEvent) throw( RuntimeException )
{
MULTIPLEX( XPaintListener, windowPaint, PaintEvent, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XTopWindowListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::windowOpened(const EventObject& aEvent) throw( RuntimeException )
{
MULTIPLEX( XTopWindowListener, windowOpened, EventObject, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XTopWindowListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::windowClosing( const EventObject& aEvent ) throw( RuntimeException )
{
MULTIPLEX( XTopWindowListener, windowClosing, EventObject, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XTopWindowListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::windowClosed( const EventObject& aEvent ) throw( RuntimeException )
{
MULTIPLEX( XTopWindowListener, windowClosed, EventObject, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XTopWindowListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::windowMinimized( const EventObject& aEvent ) throw( RuntimeException )
{
MULTIPLEX( XTopWindowListener, windowMinimized, EventObject, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XTopWindowListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::windowNormalized( const EventObject& aEvent ) throw( RuntimeException )
{
MULTIPLEX( XTopWindowListener, windowNormalized, EventObject, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XTopWindowListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::windowActivated( const EventObject& aEvent ) throw( RuntimeException )
{
MULTIPLEX( XTopWindowListener, windowActivated, EventObject, aEvent )
}
-//____________________________________________________________________________________________________________
+
// XTopWindowListener
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::windowDeactivated( const EventObject& aEvent ) throw( RuntimeException )
{
MULTIPLEX( XTopWindowListener, windowDeactivated, EventObject, aEvent )
}
-//____________________________________________________________________________________________________________
+
// protected method
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::impl_adviseToPeer( const Reference< XWindow >& xPeer ,
const Type& aType )
@@ -484,9 +484,9 @@ void OMRCListenerMultiplexerHelper::impl_adviseToPeer( const Reference< XWind
}
}
-//____________________________________________________________________________________________________________
+
// protected method
-//____________________________________________________________________________________________________________
+
void OMRCListenerMultiplexerHelper::impl_unadviseFromPeer( const Reference< XWindow >& xPeer ,
const Type& aType )
diff --git a/UnoControls/source/controls/OConnectionPointHelper.cxx b/UnoControls/source/controls/OConnectionPointHelper.cxx
index 9759347fa067..c0d82b585b57 100644
--- a/UnoControls/source/controls/OConnectionPointHelper.cxx
+++ b/UnoControls/source/controls/OConnectionPointHelper.cxx
@@ -21,9 +21,9 @@
#include "OConnectionPointContainerHelper.hxx"
-//______________________________________________________________________________________________________________
+
// namespaces
-//______________________________________________________________________________________________________________
+
using namespace ::rtl ;
using namespace ::osl ;
@@ -33,9 +33,9 @@ using namespace ::com::sun::star::lang ;
namespace unocontrols{
-//______________________________________________________________________________________________________________
+
// construct/destruct
-//______________________________________________________________________________________________________________
+
OConnectionPointHelper::OConnectionPointHelper(
Mutex& aMutex ,
@@ -52,9 +52,9 @@ OConnectionPointHelper::~OConnectionPointHelper()
{
}
-//____________________________________________________________________________________________________________
+
// XInterface
-//____________________________________________________________________________________________________________
+
Any SAL_CALL OConnectionPointHelper::queryInterface( const Type& aType ) throw( RuntimeException )
{
@@ -77,9 +77,9 @@ Any SAL_CALL OConnectionPointHelper::queryInterface( const Type& aType ) throw(
return aReturn ;
}
-//____________________________________________________________________________________________________________
+
// XInterface
-//____________________________________________________________________________________________________________
+
void SAL_CALL OConnectionPointHelper::acquire() throw()
{
@@ -90,9 +90,9 @@ void SAL_CALL OConnectionPointHelper::acquire() throw()
OWeakObject::acquire();
}
-//____________________________________________________________________________________________________________
+
// XInterface
-//____________________________________________________________________________________________________________
+
void SAL_CALL OConnectionPointHelper::release() throw()
{
@@ -103,9 +103,9 @@ void SAL_CALL OConnectionPointHelper::release() throw()
OWeakObject::release();
}
-//______________________________________________________________________________________________________________
+
// XConnectionPoint
-//______________________________________________________________________________________________________________
+
Type SAL_CALL OConnectionPointHelper::getConnectionType() throw( RuntimeException )
{
@@ -127,9 +127,9 @@ Type SAL_CALL OConnectionPointHelper::getConnectionType() throw( RuntimeExceptio
return aReturnType;
}
-//______________________________________________________________________________________________________________
+
// XConnectionPoint
-//______________________________________________________________________________________________________________
+
Reference< XConnectionPointContainer > SAL_CALL OConnectionPointHelper::getConnectionPointContainer() throw( RuntimeException )
{
@@ -139,9 +139,9 @@ Reference< XConnectionPointContainer > SAL_CALL OConnectionPointHelper::getConne
return Reference< XConnectionPointContainer >( m_oContainerWeakReference.get(), UNO_QUERY );
}
-//______________________________________________________________________________________________________________
+
// XConnectionPoint
-//______________________________________________________________________________________________________________
+
void SAL_CALL OConnectionPointHelper::advise( const Reference< XInterface >& xListener ) throw( ListenerExistException ,
InvalidListenerException ,
@@ -174,9 +174,9 @@ void SAL_CALL OConnectionPointHelper::advise( const Reference< XInterface >& xLi
impl_UnlockContainer();
}
-//______________________________________________________________________________________________________________
+
// XConnectionPoint
-//______________________________________________________________________________________________________________
+
void SAL_CALL OConnectionPointHelper::unadvise( const Reference< XInterface >& xListener ) throw( RuntimeException )
{
@@ -195,9 +195,9 @@ void SAL_CALL OConnectionPointHelper::unadvise( const Reference< XInterface >& x
impl_UnlockContainer();
}
-//______________________________________________________________________________________________________________
+
// XConnectionPoint
-//______________________________________________________________________________________________________________
+
Sequence< Reference< XInterface > > SAL_CALL OConnectionPointHelper::getConnections() throw( RuntimeException )
{
@@ -226,9 +226,9 @@ Sequence< Reference< XInterface > > SAL_CALL OConnectionPointHelper::getConnecti
return seqReturnConnections;
}
-//______________________________________________________________________________________________________________
+
// private method
-//______________________________________________________________________________________________________________
+
bool OConnectionPointHelper::impl_LockContainer()
{
@@ -239,9 +239,9 @@ bool OConnectionPointHelper::impl_LockContainer()
return m_xLock.is();
}
-//______________________________________________________________________________________________________________
+
// private method
-//______________________________________________________________________________________________________________
+
void OConnectionPointHelper::impl_UnlockContainer()
{
diff --git a/UnoControls/source/controls/statusindicator.cxx b/UnoControls/source/controls/statusindicator.cxx
index 49f76053e63b..91d1b286d76f 100644
--- a/UnoControls/source/controls/statusindicator.cxx
+++ b/UnoControls/source/controls/statusindicator.cxx
@@ -36,9 +36,9 @@ using namespace ::com::sun::star::task ;
namespace unocontrols{
-//____________________________________________________________________________________________________________
+
// construct/destruct
-//____________________________________________________________________________________________________________
+
StatusIndicator::StatusIndicator( const css::uno::Reference< XComponentContext >& rxContext )
: BaseContainerControl ( rxContext )
@@ -69,9 +69,9 @@ StatusIndicator::StatusIndicator( const css::uno::Reference< XComponentContext >
StatusIndicator::~StatusIndicator() {}
-//____________________________________________________________________________________________________________
+
// XInterface
-//____________________________________________________________________________________________________________
+
Any SAL_CALL StatusIndicator::queryInterface( const Type& rType ) throw( RuntimeException )
{
@@ -94,9 +94,9 @@ Any SAL_CALL StatusIndicator::queryInterface( const Type& rType ) throw( Runtime
return aReturn ;
}
-//____________________________________________________________________________________________________________
+
// XInterface
-//____________________________________________________________________________________________________________
+
void SAL_CALL StatusIndicator::acquire() throw()
{
@@ -107,9 +107,9 @@ void SAL_CALL StatusIndicator::acquire() throw()
BaseControl::acquire();
}
-//____________________________________________________________________________________________________________
+
// XInterface
-//____________________________________________________________________________________________________________
+
void SAL_CALL StatusIndicator::release() throw()
{
@@ -120,9 +120,9 @@ void SAL_CALL StatusIndicator::release() throw()
BaseControl::release();
}
-//____________________________________________________________________________________________________________
+
// XTypeProvider
-//____________________________________________________________________________________________________________
+
Sequence< Type > SAL_CALL StatusIndicator::getTypes() throw( RuntimeException )
{
@@ -152,9 +152,9 @@ Sequence< Type > SAL_CALL StatusIndicator::getTypes() throw( RuntimeException )
return pTypeCollection->getTypes();
}
-//____________________________________________________________________________________________________________
+
// XAggregation
-//____________________________________________________________________________________________________________
+
Any SAL_CALL StatusIndicator::queryAggregation( const Type& aType ) throw( RuntimeException )
{
@@ -176,9 +176,9 @@ Any SAL_CALL StatusIndicator::queryAggregation( const Type& aType ) throw( Runti
return aReturn ;
}
-//____________________________________________________________________________________________________________
+
// XStatusIndicator
-//____________________________________________________________________________________________________________
+
void SAL_CALL StatusIndicator::start( const OUString& sText, sal_Int32 nRange ) throw( RuntimeException )
{
@@ -192,9 +192,9 @@ void SAL_CALL StatusIndicator::start( const OUString& sText, sal_Int32 nRange )
impl_recalcLayout ( WindowEvent(static_cast< OWeakObject* >(this),0,0,impl_getWidth(),impl_getHeight(),0,0,0,0) ) ;
}
-//____________________________________________________________________________________________________________
+
// XStatusIndicator
-//____________________________________________________________________________________________________________
+
void SAL_CALL StatusIndicator::end() throw( RuntimeException )
{
@@ -207,9 +207,9 @@ void SAL_CALL StatusIndicator::end() throw( RuntimeException )
setVisible( sal_False );
}
-//____________________________________________________________________________________________________________
+
// XStatusIndicator
-//____________________________________________________________________________________________________________
+
void SAL_CALL StatusIndicator::setText( const OUString& sText ) throw( RuntimeException )
{
@@ -220,9 +220,9 @@ void SAL_CALL StatusIndicator::setText( const OUString& sText ) throw( RuntimeEx
m_xText->setText( sText );
}
-//____________________________________________________________________________________________________________
+
// XStatusIndicator
-//____________________________________________________________________________________________________________
+
void SAL_CALL StatusIndicator::setValue( sal_Int32 nValue ) throw( RuntimeException )
{
@@ -233,9 +233,9 @@ void SAL_CALL StatusIndicator::setValue( sal_Int32 nValue ) throw( RuntimeExcept
m_xProgressBar->setValue( nValue );
}
-//____________________________________________________________________________________________________________
+
// XStatusIndicator
-//____________________________________________________________________________________________________________
+
void SAL_CALL StatusIndicator::reset() throw( RuntimeException )
{
@@ -248,18 +248,18 @@ void SAL_CALL StatusIndicator::reset() throw( RuntimeException )
m_xProgressBar->setValue( 0 );
}
-//____________________________________________________________________________________________________________
+
// XLayoutConstrains
-//____________________________________________________________________________________________________________
+
Size SAL_CALL StatusIndicator::getMinimumSize () throw( RuntimeException )
{
return Size (STATUSINDICATOR_DEFAULT_WIDTH, STATUSINDICATOR_DEFAULT_HEIGHT) ;
}
-//____________________________________________________________________________________________________________
+
// XLayoutConstrains
-//____________________________________________________________________________________________________________
+
Size SAL_CALL StatusIndicator::getPreferredSize () throw( RuntimeException )
{
@@ -290,18 +290,18 @@ Size SAL_CALL StatusIndicator::getPreferredSize () throw( RuntimeException )
return Size ( nWidth, nHeight ) ;
}
-//____________________________________________________________________________________________________________
+
// XLayoutConstrains
-//____________________________________________________________________________________________________________
+
Size SAL_CALL StatusIndicator::calcAdjustedSize ( const Size& /*rNewSize*/ ) throw( RuntimeException )
{
return getPreferredSize () ;
}
-//____________________________________________________________________________________________________________
+
// XControl
-//____________________________________________________________________________________________________________
+
void SAL_CALL StatusIndicator::createPeer (
const css::uno::Reference< XToolkit > & rToolkit,
@@ -320,9 +320,9 @@ void SAL_CALL StatusIndicator::createPeer (
}
}
-//____________________________________________________________________________________________________________
+
// XControl
-//____________________________________________________________________________________________________________
+
sal_Bool SAL_CALL StatusIndicator::setModel ( const css::uno::Reference< XControlModel > & /*rModel*/ ) throw( RuntimeException )
{
@@ -330,9 +330,9 @@ sal_Bool SAL_CALL StatusIndicator::setModel ( const css::uno::Reference< XContro
return sal_False ;
}
-//____________________________________________________________________________________________________________
+
// XControl
-//____________________________________________________________________________________________________________
+
css::uno::Reference< XControlModel > SAL_CALL StatusIndicator::getModel () throw( RuntimeException )
{
@@ -341,9 +341,9 @@ css::uno::Reference< XControlModel > SAL_CALL StatusIndicator::getModel () throw
return css::uno::Reference< XControlModel > () ;
}
-//____________________________________________________________________________________________________________
+
// XComponent
-//____________________________________________________________________________________________________________
+
void SAL_CALL StatusIndicator::dispose () throw( RuntimeException )
{
@@ -363,9 +363,9 @@ void SAL_CALL StatusIndicator::dispose () throw( RuntimeException )
BaseContainerControl::dispose();
}
-//____________________________________________________________________________________________________________
+
// XWindow
-//____________________________________________________________________________________________________________
+
void SAL_CALL StatusIndicator::setPosSize (
sal_Int32 nX,
@@ -394,27 +394,27 @@ void SAL_CALL StatusIndicator::setPosSize (
}
}
-//____________________________________________________________________________________________________________
+
// impl but public method to register service
-//____________________________________________________________________________________________________________
+
const Sequence< OUString > StatusIndicator::impl_getStaticSupportedServiceNames()
{
return css::uno::Sequence<OUString>();
}
-//____________________________________________________________________________________________________________
+
// impl but public method to register service
-//____________________________________________________________________________________________________________
+
const OUString StatusIndicator::impl_getStaticImplementationName()
{
return OUString("stardiv.UnoControls.StatusIndicator");
}
-//____________________________________________________________________________________________________________
+
// protected method
-//____________________________________________________________________________________________________________
+
WindowDescriptor* StatusIndicator::impl_getWindowDescriptor( const css::uno::Reference< XWindowPeer >& xParentPeer )
{
@@ -433,9 +433,9 @@ WindowDescriptor* StatusIndicator::impl_getWindowDescriptor( const css::uno::Ref
return pDescriptor ;
}
-//____________________________________________________________________________________________________________
+
// protected method
-//____________________________________________________________________________________________________________
+
void StatusIndicator::impl_paint ( sal_Int32 nX, sal_Int32 nY, const css::uno::Reference< XGraphics > & rGraphics )
{
@@ -472,9 +472,9 @@ void StatusIndicator::impl_paint ( sal_Int32 nX, sal_Int32 nY, const css::uno::R
}
}
-//____________________________________________________________________________________________________________
+
// protected method
-//____________________________________________________________________________________________________________
+
void StatusIndicator::impl_recalcLayout ( const WindowEvent& aEvent )
{
diff --git a/accessibility/inc/accessibility/extended/AccessibleGridControlHeaderCell.hxx b/accessibility/inc/accessibility/extended/AccessibleGridControlHeaderCell.hxx
index b79b89cf378e..14ca94741d6f 100644
--- a/accessibility/inc/accessibility/extended/AccessibleGridControlHeaderCell.hxx
+++ b/accessibility/inc/accessibility/extended/AccessibleGridControlHeaderCell.hxx
@@ -44,7 +44,7 @@ namespace accessibility
/** Grabs the focus to the GridControl. */
virtual void SAL_CALL grabFocus() throw ( ::com::sun::star::uno::RuntimeException );
- // XInterface -------------------------------------------------------------
+ // XInterface
/** Queries for a new interface. */
::com::sun::star::uno::Any SAL_CALL queryInterface(
@@ -56,14 +56,14 @@ namespace accessibility
/** Releases the object (calls release() on base class). */
virtual void SAL_CALL release() throw ();
- // XAccessible ------------------------------------------------------------
+ // XAccessible
/** @return The XAccessibleContext interface of this object. */
virtual ::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessibleContext > SAL_CALL
getAccessibleContext()
throw ( ::com::sun::star::uno::RuntimeException );
- //-------------------------------------------------------------------------
+
inline sal_Bool isRowBarCell() const
{
return getType() == ::svt::table::TCTYPE_ROWHEADERCELL;
diff --git a/accessibility/inc/accessibility/helper/accessiblestrings.hrc b/accessibility/inc/accessibility/helper/accessiblestrings.hrc
index 03815d8dd3c0..12454d4c3696 100644
--- a/accessibility/inc/accessibility/helper/accessiblestrings.hrc
+++ b/accessibility/inc/accessibility/helper/accessiblestrings.hrc
@@ -20,14 +20,10 @@
#ifndef ACCESSIBILITY_HELPER_ACCESSIBLESTRINGS_HRC_
#define ACCESSIBILITY_HELPER_ACCESSIBLESTRINGS_HRC_
-
-//------------------------------------------------------------------------------
-
#define RID_TK_ACC_START 1000
-// Accessible Action Id's ------------------------------------------------------
-
+// Accessible Action Id's
#define RID_STR_ACC_ACTION_CLICK ( RID_TK_ACC_START + 0 )
#define RID_STR_ACC_ACTION_TOGGLEPOPUP ( RID_TK_ACC_START + 1 )
#define RID_STR_ACC_ACTION_SELECT ( RID_TK_ACC_START + 2 )
@@ -51,8 +47,6 @@
#define RID_STR_ACC_NAME_BROWSEBUTTON ( RID_TK_ACC_START + 100 )
#define RID_STR_ACC_DESC_PANELDECL_TABBAR ( RID_TK_ACC_START + 101 )
-// -----------------------------------------------------------------------------
-
#endif // ACCESSIBILITY_HELPER_ACCESSIBLESTRINGS_HRC_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/extended/AccessibleBrowseBox.cxx b/accessibility/source/extended/AccessibleBrowseBox.cxx
index ad850610ebb6..0432aa9868e1 100644
--- a/accessibility/source/extended/AccessibleBrowseBox.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBox.cxx
@@ -72,7 +72,7 @@ AccessibleBrowseBox::AccessibleBrowseBox(
m_xFocusWindow = VCLUnoHelper::GetInterface(mpBrowseBox->GetWindowInstance());
}
-// -----------------------------------------------------------------------------
+
void AccessibleBrowseBox::setCreator( const Reference< XAccessible >& _rxCreator )
{
#if OSL_DEBUG_LEVEL > 0
@@ -82,11 +82,11 @@ void AccessibleBrowseBox::setCreator( const Reference< XAccessible >& _rxCreator
m_pImpl->m_aCreator = _rxCreator;
}
-// -----------------------------------------------------------------------------
+
AccessibleBrowseBox::~AccessibleBrowseBox()
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleBrowseBox::disposing()
{
@@ -111,7 +111,7 @@ void SAL_CALL AccessibleBrowseBox::disposing()
AccessibleBrowseBoxBase::disposing();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext ---------------------------------------------------------
@@ -123,7 +123,7 @@ sal_Int32 SAL_CALL AccessibleBrowseBox::getAccessibleChildCount()
ensureIsAlive();
return BBINDEX_FIRSTCONTROL + mpBrowseBox->GetAccessibleControlCount();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL
AccessibleBrowseBox::getAccessibleChild( sal_Int32 nChildIndex )
@@ -184,7 +184,7 @@ AccessibleBrowseBox::getAccessibleAtPoint( const awt::Point& rPoint )
}
return xChild;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleBrowseBox::grabFocus()
throw ( uno::RuntimeException )
@@ -194,7 +194,7 @@ void SAL_CALL AccessibleBrowseBox::grabFocus()
ensureIsAlive();
mpBrowseBox->GrabFocus();
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL AccessibleBrowseBox::getAccessibleKeyBinding()
throw ( uno::RuntimeException )
@@ -202,7 +202,7 @@ Any SAL_CALL AccessibleBrowseBox::getAccessibleKeyBinding()
ensureIsAlive();
return Any();
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo ---------------------------------------------------------------
@@ -211,7 +211,7 @@ OUString SAL_CALL AccessibleBrowseBox::getImplementationName()
{
return OUString( "com.sun.star.comp.svtools.AccessibleBrowseBox" );
}
-// -----------------------------------------------------------------------------
+
// internal virtual methods ---------------------------------------------------
@@ -221,13 +221,13 @@ Rectangle AccessibleBrowseBox::implGetBoundingBox()
OSL_ENSURE( pParent, "implGetBoundingBox - missing parent window" );
return mpBrowseBox->GetWindowExtentsRelative( pParent );
}
-// -----------------------------------------------------------------------------
+
Rectangle AccessibleBrowseBox::implGetBoundingBoxOnScreen()
{
return mpBrowseBox->GetWindowExtentsRelative( NULL );
}
-// -----------------------------------------------------------------------------
+
// internal helper methods ----------------------------------------------------
@@ -241,7 +241,7 @@ Reference< XAccessible > AccessibleBrowseBox::implGetTable()
}
return m_pImpl->mxTable;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible >
AccessibleBrowseBox::implGetHeaderBar( AccessibleBrowseBoxObjType eObjType )
@@ -272,7 +272,7 @@ AccessibleBrowseBox::implGetHeaderBar( AccessibleBrowseBoxObjType eObjType )
}
return xRet;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible >
AccessibleBrowseBox::implGetFixedChild( sal_Int32 nChildIndex )
@@ -292,14 +292,14 @@ AccessibleBrowseBox::implGetFixedChild( sal_Int32 nChildIndex )
}
return xRet;
}
-// -----------------------------------------------------------------------------
+
AccessibleBrowseBoxTable* AccessibleBrowseBox::createAccessibleTable()
{
Reference< XAccessible > xCreator = (Reference< XAccessible >)m_pImpl->m_aCreator;
OSL_ENSURE( xCreator.is(), "accessibility/extended/AccessibleBrowseBox::createAccessibleTable: my creator died - how this?" );
return new AccessibleBrowseBoxTable( xCreator, *mpBrowseBox );
}
-// -----------------------------------------------------------------------------
+
void AccessibleBrowseBox::commitTableEvent(sal_Int16 _nEventId,const Any& _rNewValue,const Any& _rOldValue)
{
if ( m_pImpl->mxTable.is() )
@@ -307,7 +307,7 @@ void AccessibleBrowseBox::commitTableEvent(sal_Int16 _nEventId,const Any& _rNewV
m_pImpl->m_pTable->commitEvent(_nEventId,_rNewValue,_rOldValue);
}
}
-// -----------------------------------------------------------------------------
+
void AccessibleBrowseBox::commitHeaderBarEvent( sal_Int16 _nEventId,
const Any& _rNewValue,
const Any& _rOldValue,sal_Bool _bColumnHeaderBar)
@@ -328,12 +328,12 @@ AccessibleBrowseBoxAccess::AccessibleBrowseBoxAccess( const Reference< XAccessib
{
}
-// -----------------------------------------------------------------------------
+
AccessibleBrowseBoxAccess::~AccessibleBrowseBoxAccess()
{
}
-// -----------------------------------------------------------------------------
+
void AccessibleBrowseBoxAccess::dispose()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -342,7 +342,7 @@ void AccessibleBrowseBoxAccess::dispose()
::comphelper::disposeComponent( m_xContext );
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > SAL_CALL AccessibleBrowseBoxAccess::getAccessibleContext() throw ( RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -361,7 +361,7 @@ Reference< XAccessibleContext > SAL_CALL AccessibleBrowseBoxAccess::getAccessibl
return m_xContext;
}
-// -----------------------------------------------------------------------------
+
bool AccessibleBrowseBoxAccess::isContextAlive() const
{
return ( NULL != m_pContext ) && m_pContext->isAlive();
diff --git a/accessibility/source/extended/AccessibleBrowseBoxBase.cxx b/accessibility/source/extended/AccessibleBrowseBoxBase.cxx
index ab6f9acb4351..b707f8dd0877 100644
--- a/accessibility/source/extended/AccessibleBrowseBoxBase.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBoxBase.cxx
@@ -276,7 +276,7 @@ void SAL_CALL AccessibleBrowseBoxBase::focusGained( const ::com::sun::star::awt:
commitEvent(AccessibleEventId::STATE_CHANGED,aFocused,aEmpty);
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleBrowseBoxBase::focusLost( const ::com::sun::star::awt::FocusEvent& ) throw (::com::sun::star::uno::RuntimeException)
{
@@ -513,24 +513,24 @@ sal_Int16 SAL_CALL AccessibleBrowseBoxBase::getAccessibleRole()
}
return nRole;
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL AccessibleBrowseBoxBase::getAccessibleKeyBinding()
throw ( uno::RuntimeException )
{
return Any();
}
-// -----------------------------------------------------------------------------
+
Reference<XAccessible > SAL_CALL AccessibleBrowseBoxBase::getAccessibleAtPoint( const ::com::sun::star::awt::Point& )
throw ( uno::RuntimeException )
{
return NULL;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleBrowseBoxBase::disposing( const ::com::sun::star::lang::EventObject& ) throw (::com::sun::star::uno::RuntimeException)
{
m_xFocusWindow = NULL;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleBrowseBoxBase::getForeground( ) throw (::com::sun::star::uno::RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -556,7 +556,7 @@ sal_Int32 SAL_CALL AccessibleBrowseBoxBase::getForeground( ) throw (::com::sun:
return nColor;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleBrowseBoxBase::getBackground( ) throw (::com::sun::star::uno::RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -590,14 +590,14 @@ Reference< XAccessibleContext > SAL_CALL BrowseBoxAccessibleElement::getAccessib
return this;
}
-// ----------------------------------------------------------------------------
+
BrowseBoxAccessibleElement::BrowseBoxAccessibleElement( const Reference< XAccessible >& rxParent, IAccessibleTableProvider& rBrowseBox,
const Reference< awt::XWindow >& _xFocusWindow, AccessibleBrowseBoxObjType eObjType )
:AccessibleBrowseBoxBase( rxParent, rBrowseBox, _xFocusWindow, eObjType )
{
}
-// ----------------------------------------------------------------------------
+
BrowseBoxAccessibleElement::BrowseBoxAccessibleElement( const Reference< XAccessible >& rxParent, IAccessibleTableProvider& rBrowseBox,
const Reference< awt::XWindow >& _xFocusWindow, AccessibleBrowseBoxObjType eObjType,
const OUString& rName, const OUString& rDescription )
@@ -605,7 +605,7 @@ BrowseBoxAccessibleElement::BrowseBoxAccessibleElement( const Reference< XAccess
{
}
-// ----------------------------------------------------------------------------
+
BrowseBoxAccessibleElement::~BrowseBoxAccessibleElement( )
{
}
diff --git a/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx
index 7e35230abeae..f23f472e1e53 100644
--- a/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx
@@ -40,17 +40,16 @@ namespace accessibility
,m_bIsTriState(_bIsTriState)
{
}
- // -----------------------------------------------------------------------------
IMPLEMENT_FORWARD_XINTERFACE2( AccessibleCheckBoxCell, AccessibleBrowseBoxCell, AccessibleCheckBoxCell_BASE )
- // -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( AccessibleCheckBoxCell, AccessibleBrowseBoxCell, AccessibleCheckBoxCell_BASE )
- //--------------------------------------------------------------------
+
Reference< XAccessibleContext > SAL_CALL AccessibleCheckBoxCell::getAccessibleContext( ) throw (RuntimeException)
{
ensureIsAlive();
return this;
}
- // -----------------------------------------------------------------------------
+
::utl::AccessibleStateSetHelper* AccessibleCheckBoxCell::implCreateStateSetHelper()
{
::utl::AccessibleStateSetHelper* pStateSetHelper =
@@ -64,10 +63,8 @@ namespace accessibility
}
return pStateSetHelper;
}
- // -----------------------------------------------------------------------------
- // -----------------------------------------------------------------------------
+
// XAccessibleValue
- // -----------------------------------------------------------------------------
Any SAL_CALL AccessibleCheckBoxCell::getCurrentValue( ) throw (RuntimeException)
{
@@ -89,15 +86,11 @@ namespace accessibility
return makeAny(nValue);
}
- // -----------------------------------------------------------------------------
-
sal_Bool SAL_CALL AccessibleCheckBoxCell::setCurrentValue( const Any& ) throw (RuntimeException)
{
return sal_False;
}
- // -----------------------------------------------------------------------------
-
Any SAL_CALL AccessibleCheckBoxCell::getMaximumValue( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( getOslMutex() );
@@ -112,8 +105,6 @@ namespace accessibility
return aValue;
}
- // -----------------------------------------------------------------------------
-
Any SAL_CALL AccessibleCheckBoxCell::getMinimumValue( ) throw (RuntimeException)
{
Any aValue;
@@ -121,23 +112,23 @@ namespace accessibility
return aValue;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleContext
sal_Int32 SAL_CALL AccessibleCheckBoxCell::getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException)
{
return 0;
}
- // -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL AccessibleCheckBoxCell::getAccessibleChild( sal_Int32 ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
throw ::com::sun::star::lang::IndexOutOfBoundsException();
}
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleCheckBoxCell::getImplementationName() throw ( ::com::sun::star::uno::RuntimeException )
{
return OUString( "com.sun.star.comp.svtools.TableCheckBoxCell" );
}
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleCheckBoxCell::getAccessibleIndexInParent()
throw ( ::com::sun::star::uno::RuntimeException )
{
@@ -145,7 +136,7 @@ namespace accessibility
return ( getRowPos() * mpBrowseBox->GetColumnCount() ) + getColumnPos();
}
- // -----------------------------------------------------------------------------
+
void AccessibleCheckBoxCell::SetChecked( sal_Bool _bChecked )
{
m_eState = _bChecked ? STATE_CHECK : STATE_NOCHECK;
diff --git a/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx
index 270f05704c9f..2a11f6b069ed 100644
--- a/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx
@@ -76,7 +76,7 @@ AccessibleBrowseBoxHeaderCell::AccessibleBrowseBoxHeaderCell(sal_Int32 _nColumnR
return pStateSetHelper;
}
-// -----------------------------------------------------------------------------
+
/** @return
The count of visible children.
*/
@@ -85,7 +85,7 @@ sal_Int32 SAL_CALL AccessibleBrowseBoxHeaderCell::getAccessibleChildCount()
{
return 0;
}
-// -----------------------------------------------------------------------------
+
/** @return
The XAccessible interface of the specified child.
@@ -95,7 +95,7 @@ Reference<XAccessible > SAL_CALL AccessibleBrowseBoxHeaderCell::getAccessibleChi
{
throw IndexOutOfBoundsException();
}
-// -----------------------------------------------------------------------------
+
/** Grabs the focus to the column header. */
void SAL_CALL AccessibleBrowseBoxHeaderCell::grabFocus()
@@ -109,7 +109,7 @@ void SAL_CALL AccessibleBrowseBoxHeaderCell::grabFocus()
else
mpBrowseBox->SelectColumn(static_cast<sal_uInt16>(m_nColumnRowId)); //!!!
}
-// -----------------------------------------------------------------------------
+
/** @return
The name of this class.
*/
@@ -118,7 +118,7 @@ OUString SAL_CALL AccessibleBrowseBoxHeaderCell::getImplementationName()
{
return OUString( "com.sun.star.comp.svtools.AccessibleBrowseBoxHeaderCell" );
}
-// -----------------------------------------------------------------------------
+
namespace
{
Rectangle getRectangle(IAccessibleTableProvider* _pBrowseBox,sal_Int32 _nRowColIndex, sal_Bool _bOnScreen,sal_Bool _bRowBar)
@@ -140,13 +140,13 @@ Rectangle AccessibleBrowseBoxHeaderCell::implGetBoundingBox()
{
return getRectangle(mpBrowseBox,m_nColumnRowId,sal_False,isRowBarCell());
}
-// -----------------------------------------------------------------------------
+
Rectangle AccessibleBrowseBoxHeaderCell::implGetBoundingBoxOnScreen()
{
return getRectangle(mpBrowseBox,m_nColumnRowId,sal_True,isRowBarCell());
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleBrowseBoxHeaderCell::getAccessibleIndexInParent()
throw ( RuntimeException )
{
@@ -157,9 +157,9 @@ sal_Int32 SAL_CALL AccessibleBrowseBoxHeaderCell::getAccessibleIndexInParent()
--nIndex;
return nIndex;
}
-// -----------------------------------------------------------------------------
+
} // namespace accessibility
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/extended/AccessibleGridControl.cxx b/accessibility/source/extended/AccessibleGridControl.cxx
index 5ee23f662eb6..5538833441a1 100644
--- a/accessibility/source/extended/AccessibleGridControl.cxx
+++ b/accessibility/source/extended/AccessibleGridControl.cxx
@@ -79,11 +79,11 @@ AccessibleGridControl::AccessibleGridControl(
m_pImpl->m_aCreator = _rxCreator;
}
-// -----------------------------------------------------------------------------
+
AccessibleGridControl::~AccessibleGridControl()
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleGridControl::disposing()
{
@@ -114,7 +114,7 @@ void SAL_CALL AccessibleGridControl::disposing()
::comphelper::disposeComponent(m_pImpl->m_xColumnHeaderBar);
AccessibleGridControlBase::disposing();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext ---------------------------------------------------------
@@ -125,7 +125,7 @@ sal_Int32 SAL_CALL AccessibleGridControl::getAccessibleChildCount()
ensureIsAlive();
return m_aTable.GetAccessibleControlCount();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL
AccessibleGridControl::getAccessibleChild( sal_Int32 nChildIndex )
@@ -170,7 +170,7 @@ AccessibleGridControl::getAccessibleChild( sal_Int32 nChildIndex )
}
return xChild;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 SAL_CALL AccessibleGridControl::getAccessibleRole()
throw ( uno::RuntimeException )
@@ -180,7 +180,7 @@ sal_Int16 SAL_CALL AccessibleGridControl::getAccessibleRole()
ensureIsAlive();
return AccessibleRole::PANEL;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleComponent -------------------------------------------------------
@@ -213,7 +213,7 @@ AccessibleGridControl::getAccessibleAtPoint( const awt::Point& rPoint )
}
return xChild;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleGridControl::grabFocus()
throw ( uno::RuntimeException )
@@ -222,7 +222,7 @@ void SAL_CALL AccessibleGridControl::grabFocus()
ensureIsAlive();
m_aTable.GrabFocus();
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL AccessibleGridControl::getAccessibleKeyBinding()
throw ( uno::RuntimeException )
@@ -232,7 +232,7 @@ Any SAL_CALL AccessibleGridControl::getAccessibleKeyBinding()
ensureIsAlive();
return Any();
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo ---------------------------------------------------------------
@@ -241,7 +241,7 @@ OUString SAL_CALL AccessibleGridControl::getImplementationName()
{
return OUString( "com.sun.star.accessibility.AccessibleGridControl" );
}
-// -----------------------------------------------------------------------------
+
// internal virtual methods ---------------------------------------------------
@@ -251,7 +251,7 @@ Rectangle AccessibleGridControl::implGetBoundingBox()
OSL_ENSURE( pParent, "implGetBoundingBox - missing parent window" );
return m_aTable.GetWindowExtentsRelative( pParent );
}
-// -----------------------------------------------------------------------------
+
Rectangle AccessibleGridControl::implGetBoundingBoxOnScreen()
{
@@ -268,7 +268,7 @@ Reference< XAccessible > AccessibleGridControl::implGetTable()
}
return m_pImpl->m_xTable;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible >
AccessibleGridControl::implGetHeaderBar( AccessibleTableControlObjType eObjType )
@@ -299,7 +299,7 @@ AccessibleGridControl::implGetHeaderBar( AccessibleTableControlObjType eObjType
}
return xRet;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible >
AccessibleGridControl::implGetFixedChild( sal_Int32 nChildIndex )
{
@@ -318,14 +318,14 @@ AccessibleGridControl::implGetFixedChild( sal_Int32 nChildIndex )
}
return xRet;
}
-// -----------------------------------------------------------------------------
+
AccessibleGridControlTable* AccessibleGridControl::createAccessibleTable()
{
Reference< XAccessible > xCreator = (Reference< XAccessible >)m_pImpl->m_aCreator;
OSL_ENSURE( xCreator.is(), "accessibility/extended/AccessibleGirdControl::createAccessibleTable: my creator died - how this?" );
return new AccessibleGridControlTable( xCreator, m_aTable, TCTYPE_TABLE );
}
-// -----------------------------------------------------------------------------
+
void AccessibleGridControl::commitCellEvent(sal_Int16 _nEventId,const Any& _rNewValue,const Any& _rOldValue)
{
sal_Int32 nChildCount = getAccessibleChildCount();
@@ -406,7 +406,7 @@ void AccessibleGridControl::commitTableEvent(sal_Int16 _nEventId,const Any& _rNe
// = AccessibleGridControlAccess
// ============================================================================
-// -----------------------------------------------------------------------------
+
AccessibleGridControlAccess::AccessibleGridControlAccess(
const Reference< XAccessible >& rxParent, IAccessibleTable& rTable )
: m_xParent( rxParent )
@@ -415,12 +415,12 @@ AccessibleGridControlAccess::AccessibleGridControlAccess(
{
}
-// -----------------------------------------------------------------------------
+
AccessibleGridControlAccess::~AccessibleGridControlAccess()
{
}
-// -----------------------------------------------------------------------------
+
void AccessibleGridControlAccess::DisposeAccessImpl()
{
SolarMutexGuard g;
@@ -430,7 +430,7 @@ void AccessibleGridControlAccess::DisposeAccessImpl()
::comphelper::disposeComponent( m_xContext );
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > SAL_CALL AccessibleGridControlAccess::getAccessibleContext() throw ( RuntimeException )
{
SolarMutexGuard g;
@@ -450,7 +450,7 @@ Reference< XAccessibleContext > SAL_CALL AccessibleGridControlAccess::getAccessi
return m_xContext;
}
-// -----------------------------------------------------------------------------
+
bool AccessibleGridControlAccess::isContextAlive() const
{
return ( NULL != m_pContext ) && m_pContext->isAlive();
diff --git a/accessibility/source/extended/AccessibleGridControlBase.cxx b/accessibility/source/extended/AccessibleGridControlBase.cxx
index 8df5cf657956..ebe621522e2d 100644
--- a/accessibility/source/extended/AccessibleGridControlBase.cxx
+++ b/accessibility/source/extended/AccessibleGridControlBase.cxx
@@ -434,19 +434,19 @@ sal_Int16 SAL_CALL AccessibleGridControlBase::getAccessibleRole()
}
return nRole;
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL AccessibleGridControlBase::getAccessibleKeyBinding()
throw ( uno::RuntimeException )
{
return Any();
}
-// -----------------------------------------------------------------------------
+
Reference<XAccessible > SAL_CALL AccessibleGridControlBase::getAccessibleAtPoint( const ::com::sun::star::awt::Point& )
throw ( uno::RuntimeException )
{
return NULL;
}
-//// -----------------------------------------------------------------------------
+//
sal_Int32 SAL_CALL AccessibleGridControlBase::getForeground( ) throw (::com::sun::star::uno::RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -471,7 +471,7 @@ sal_Int32 SAL_CALL AccessibleGridControlBase::getForeground( ) throw (::com::su
}
return nColor;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleGridControlBase::getBackground( ) throw (::com::sun::star::uno::RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -512,7 +512,7 @@ Reference< XAccessibleContext > SAL_CALL GridControlAccessibleElement::getAccess
ensureIsAlive();
return this;
}
-// ----------------------------------------------------------------------------
+
GridControlAccessibleElement::~GridControlAccessibleElement( )
{
}
diff --git a/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx b/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx
index f716a8aade25..8965d9d13346 100644
--- a/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx
+++ b/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx
@@ -67,7 +67,7 @@ AccessibleGridControlHeaderCell::AccessibleGridControlHeaderCell(sal_Int32 _nCol
return pStateSetHelper;
}
-// -----------------------------------------------------------------------------
+
/** @return
The count of visible children.
*/
@@ -76,7 +76,7 @@ sal_Int32 SAL_CALL AccessibleGridControlHeaderCell::getAccessibleChildCount()
{
return 0;
}
-// -----------------------------------------------------------------------------
+
/** @return
The XAccessible interface of the specified child.
@@ -115,14 +115,14 @@ Reference<XAccessible > SAL_CALL AccessibleGridControlHeaderCell::getAccessibleC
return this;
}
-// -----------------------------------------------------------------------------
+
/** Grabs the focus to the column header. */
void SAL_CALL AccessibleGridControlHeaderCell::grabFocus()
throw ( ::com::sun::star::uno::RuntimeException )
{
}
-// -----------------------------------------------------------------------------
+
/** @return
The name of this class.
*/
@@ -131,7 +131,7 @@ OUString SAL_CALL AccessibleGridControlHeaderCell::getImplementationName()
{
return OUString( "com.sun.star.accessibility.AccessibleGridControlHeaderCell" );
}
-// -----------------------------------------------------------------------------
+
Rectangle AccessibleGridControlHeaderCell::implGetBoundingBox()
{
Window* pParent = m_aTable.GetAccessibleParentWindow();
@@ -144,7 +144,7 @@ Rectangle AccessibleGridControlHeaderCell::implGetBoundingBox()
aCellRect = m_aTable.calcHeaderCellRect(false, nIndex);
return Rectangle(Point(aGridRect.Left()+aCellRect.Left(),aGridRect.Top()+aCellRect.Top()), aCellRect.GetSize());
}
-// -----------------------------------------------------------------------------
+
Rectangle AccessibleGridControlHeaderCell::implGetBoundingBoxOnScreen()
{
@@ -157,7 +157,7 @@ Rectangle AccessibleGridControlHeaderCell::implGetBoundingBoxOnScreen()
aCellRect = m_aTable.calcHeaderCellRect(false, nIndex);
return Rectangle(Point(aGridRect.Left()+aCellRect.Left(),aGridRect.Top()+aCellRect.Top()), aCellRect.GetSize());
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleGridControlHeaderCell::getAccessibleIndexInParent()
throw ( RuntimeException )
{
@@ -167,9 +167,9 @@ sal_Int32 SAL_CALL AccessibleGridControlHeaderCell::getAccessibleIndexInParent()
sal_Int32 nIndex = m_nColumnRowId;
return nIndex;
}
-// -----------------------------------------------------------------------------
+
} // namespace accessibility
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/extended/AccessibleGridControlTableCell.cxx b/accessibility/source/extended/AccessibleGridControlTableCell.cxx
index 84fdb1aaf146..ffbba4a6e4ea 100644
--- a/accessibility/source/extended/AccessibleGridControlTableCell.cxx
+++ b/accessibility/source/extended/AccessibleGridControlTableCell.cxx
@@ -51,7 +51,7 @@ namespace accessibility
// =============================================================================
// = AccessibleGridControlCell
// =============================================================================
- // -----------------------------------------------------------------------------
+
AccessibleGridControlCell::AccessibleGridControlCell(
const Reference< XAccessible >& _rxParent, IAccessibleTable& _rTable,
sal_Int32 _nRowPos, sal_uInt16 _nColPos, AccessibleTableControlObjType _eType )
@@ -71,19 +71,19 @@ namespace accessibility
implSetName( aAccName );
}
- // -----------------------------------------------------------------------------
+
AccessibleGridControlCell::~AccessibleGridControlCell()
{
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleGridControlCell::grabFocus() throw ( RuntimeException )
{
SolarMutexGuard aSolarGuard;
m_aTable.GoToCell( m_nColPos, m_nRowPos );
}
- //// -----------------------------------------------------------------------------
+ //
// implementation of a table cell
OUString AccessibleGridControlTableCell::implGetText()
{
@@ -352,7 +352,7 @@ namespace accessibility
Rectangle aCell( Point( nX, nY ), aCellRect.GetSize());
return aCell;
}
- // -----------------------------------------------------------------------------
+
Rectangle AccessibleGridControlTableCell::implGetBoundingBoxOnScreen()
{
Rectangle aGridRect = m_aTable.GetWindowExtentsRelative( NULL );
diff --git a/accessibility/source/extended/AccessibleToolPanelDeck.cxx b/accessibility/source/extended/AccessibleToolPanelDeck.cxx
index e5279f3c0481..7014211050fc 100644
--- a/accessibility/source/extended/AccessibleToolPanelDeck.cxx
+++ b/accessibility/source/extended/AccessibleToolPanelDeck.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include "accessibility/extended/AccessibleToolPanelDeck.hxx"
#include <com/sun/star/accessibility/AccessibleRole.hpp>
@@ -35,11 +34,9 @@
#include <boost/noncopyable.hpp>
-//......................................................................................................................
+
namespace accessibility
{
-//......................................................................................................................
-
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::XInterface;
using ::com::sun::star::uno::UNO_QUERY;
@@ -67,9 +64,7 @@ namespace accessibility
typedef ::com::sun::star::awt::Point UnoPoint;
- //==================================================================================================================
- //= AccessibleToolPanelDeck_Impl - declaration
- //==================================================================================================================
+ // AccessibleToolPanelDeck_Impl - declaration
class AccessibleToolPanelDeck_Impl :public ::boost::noncopyable
,public ::svt::IToolPanelDeckListener
{
@@ -105,9 +100,7 @@ namespace accessibility
Reference< XAccessible > m_xActivePanelAccessible;
};
- //==================================================================================================================
- //= MethodGuard
- //==================================================================================================================
+ // MethodGuard
namespace
{
class MethodGuard
@@ -127,10 +120,7 @@ namespace accessibility
};
}
- //==================================================================================================================
- //= AccessibleToolPanelDeck_Impl - implementation
- //==================================================================================================================
- //------------------------------------------------------------------------------------------------------------------
+ // AccessibleToolPanelDeck_Impl - implementation
AccessibleToolPanelDeck_Impl::AccessibleToolPanelDeck_Impl( AccessibleToolPanelDeck& i_rAntiImpl, const Reference< XAccessible >& i_rAccessibleParent,
::svt::ToolPanelDeck& i_rPanelDeck )
:m_rAntiImpl( i_rAntiImpl )
@@ -141,14 +131,12 @@ namespace accessibility
m_pPanelDeck->AddListener( *this );
}
- //------------------------------------------------------------------------------------------------------------------
AccessibleToolPanelDeck_Impl::~AccessibleToolPanelDeck_Impl()
{
if ( !isDisposed() )
dispose();
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeck_Impl::dispose()
{
ENSURE_OR_RETURN_VOID( !isDisposed(), "disposed twice" );
@@ -157,14 +145,12 @@ namespace accessibility
m_xAccessibleParent.clear();
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeck_Impl::checkDisposed()
{
if ( isDisposed() )
throw DisposedException( OUString(), *&m_rAntiImpl );
}
- //------------------------------------------------------------------------------------------------------------------
Reference< XAccessible > AccessibleToolPanelDeck_Impl::getOwnAccessible() const
{
Reference< XAccessible > xOwnAccessible( static_cast< XAccessible* >( m_rAntiImpl.GetVCLXWindow() ) );
@@ -173,7 +159,6 @@ namespace accessibility
return xOwnAccessible;
}
- //------------------------------------------------------------------------------------------------------------------
Reference< XAccessible > AccessibleToolPanelDeck_Impl::getActivePanelAccessible()
{
ENSURE_OR_RETURN( !isDisposed(), "AccessibleToolPanelDeck_Impl::getActivePanelAccessible: already disposed!", NULL );
@@ -191,20 +176,17 @@ namespace accessibility
return m_xActivePanelAccessible;
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeck_Impl::PanelInserted( const ::svt::PToolPanel& i_pPanel, const size_t i_nPosition )
{
(void)i_pPanel;
(void)i_nPosition;
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeck_Impl::PanelRemoved( const size_t i_nPosition )
{
(void)i_nPosition;
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeck_Impl::ActivePanelChanged( const ::boost::optional< size_t >& i_rOldActive, const ::boost::optional< size_t >& i_rNewActive )
{
if ( !!i_rOldActive )
@@ -229,7 +211,6 @@ namespace accessibility
}
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeck_Impl::LayouterChanged( const ::svt::PDeckLayouter& i_rNewLayouter )
{
MethodGuard aGuard( *this );
@@ -238,17 +219,13 @@ namespace accessibility
m_rAntiImpl.NotifyAccessibleEvent( AccessibleEventId::INVALIDATE_ALL_CHILDREN, Any(), Any() );
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeck_Impl::Dying()
{
// the tool panel deck is dying, so dispose ourself
m_rAntiImpl.dispose();
}
- //==================================================================================================================
- //= AccessibleToolPanelDeck
- //==================================================================================================================
- //------------------------------------------------------------------------------------------------------------------
+ // AccessibleToolPanelDeck
AccessibleToolPanelDeck::AccessibleToolPanelDeck( const Reference< XAccessible >& i_rAccessibleParent,
::svt::ToolPanelDeck& i_rPanelDeck )
:AccessibleToolPanelDeck_Base( i_rPanelDeck.GetWindowPeer() )
@@ -256,12 +233,10 @@ namespace accessibility
{
}
- //------------------------------------------------------------------------------------------------------------------
AccessibleToolPanelDeck::~AccessibleToolPanelDeck()
{
}
- //------------------------------------------------------------------------------------------------------------------
sal_Int32 SAL_CALL AccessibleToolPanelDeck::getAccessibleChildCount( ) throw (RuntimeException)
{
MethodGuard aGuard( *m_pImpl );
@@ -275,7 +250,6 @@ namespace accessibility
return nChildCount;
}
- //------------------------------------------------------------------------------------------------------------------
Reference< XAccessible > SAL_CALL AccessibleToolPanelDeck::getAccessibleChild( sal_Int32 i_nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
MethodGuard aGuard( *m_pImpl );
@@ -296,7 +270,6 @@ namespace accessibility
return m_pImpl->getActivePanelAccessible();
}
- //------------------------------------------------------------------------------------------------------------------
Reference< XAccessible > SAL_CALL AccessibleToolPanelDeck::getAccessibleParent( ) throw (RuntimeException)
{
MethodGuard aGuard( *m_pImpl );
@@ -306,14 +279,12 @@ namespace accessibility
return m_pImpl->m_xAccessibleParent;
}
- //------------------------------------------------------------------------------------------------------------------
sal_Int16 SAL_CALL AccessibleToolPanelDeck::getAccessibleRole( ) throw (RuntimeException)
{
MethodGuard aGuard( *m_pImpl );
return AccessibleRole::PANEL;
}
- //------------------------------------------------------------------------------------------------------------------
Reference< XAccessible > SAL_CALL AccessibleToolPanelDeck::getAccessibleAtPoint( const UnoPoint& i_rPoint ) throw (RuntimeException)
{
MethodGuard aGuard( *m_pImpl );
@@ -351,21 +322,18 @@ namespace accessibility
return NULL;
}
- //------------------------------------------------------------------------------------------------------------------
void SAL_CALL AccessibleToolPanelDeck::grabFocus( ) throw (RuntimeException)
{
MethodGuard aGuard( *m_pImpl );
m_pImpl->m_pPanelDeck->GrabFocus();
}
- //------------------------------------------------------------------------------------------------------------------
void SAL_CALL AccessibleToolPanelDeck::disposing()
{
AccessibleToolPanelDeck_Base::disposing();
m_pImpl->dispose();
}
- //------------------------------------------------------------------------------------------------------------------
Reference< XAccessible > AccessibleToolPanelDeck::GetChildAccessible( const VclWindowEvent& i_rVclWindowEvent )
{
// don't let the base class generate any A11Y events from VclWindowEvent, we completely manage those
@@ -374,7 +342,6 @@ namespace accessibility
return NULL;
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeck::FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& i_rStateSet )
{
AccessibleToolPanelDeck_Base::FillAccessibleStateSet( i_rStateSet );
@@ -387,9 +354,6 @@ namespace accessibility
i_rStateSet.AddState( AccessibleStateType::FOCUSABLE );
}
}
-
-//......................................................................................................................
} // namespace accessibility
-//......................................................................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx b/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx
index fc83bd59a865..0253b577d6c8 100644
--- a/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx
+++ b/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include "accessibility/extended/AccessibleToolPanelDeckTabBar.hxx"
#include "accessibility/extended/AccessibleToolPanelDeckTabBarItem.hxx"
#include "accessibility/helper/accresmgr.hxx"
@@ -40,11 +39,8 @@
#include <vector>
-//......................................................................................................................
namespace accessibility
{
-//......................................................................................................................
-
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::XInterface;
using ::com::sun::star::uno::UNO_QUERY;
@@ -67,9 +63,7 @@ namespace accessibility
typedef ::com::sun::star::awt::Point UnoPoint;
- //==================================================================================================================
- //= AccessibleWrapper
- //==================================================================================================================
+ // AccessibleWrapper
typedef ::cppu::WeakImplHelper1< XAccessible > AccessibleWrapper_Base;
class AccessibleWrapper : public AccessibleWrapper_Base
{
@@ -89,9 +83,7 @@ namespace accessibility
const Reference< XAccessibleContext > m_xContext;
};
- //==================================================================================================================
- //= AccessibleToolPanelTabBar_Impl
- //==================================================================================================================
+ // AccessibleToolPanelTabBar_Impl
class AccessibleToolPanelTabBar_Impl :public ::boost::noncopyable
,public ::svt::IToolPanelDeckListener
{
@@ -132,7 +124,6 @@ namespace accessibility
::std::vector< Reference< XAccessible > > m_aChildren;
};
- //------------------------------------------------------------------------------------------------------------------
AccessibleToolPanelTabBar_Impl::AccessibleToolPanelTabBar_Impl( AccessibleToolPanelTabBar& i_rAntiImpl,
const Reference< XAccessible >& i_rAccessibleParent, ::svt::IToolPanelDeck& i_rPanelDeck, ::svt::PanelTabBar& i_rTabBar )
:m_rAntiImpl( i_rAntiImpl )
@@ -152,21 +143,18 @@ namespace accessibility
i_rTabBar.GetScrollButton( false ).AddEventListener( LINK( this, AccessibleToolPanelTabBar_Impl, OnWindowEvent ) );
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelTabBar_Impl::checkDisposed()
{
if ( isDisposed() )
throw DisposedException( OUString(), *&m_rAntiImpl );
}
- //------------------------------------------------------------------------------------------------------------------
AccessibleToolPanelTabBar_Impl::~AccessibleToolPanelTabBar_Impl()
{
if ( !isDisposed() )
dispose();
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelTabBar_Impl::dispose()
{
ENSURE_OR_RETURN_VOID( !isDisposed(), "disposed twice" );
@@ -180,7 +168,6 @@ namespace accessibility
m_xAccessibleParent.clear();
}
- //------------------------------------------------------------------------------------------------------------------
Reference< XAccessible > AccessibleToolPanelTabBar_Impl::getAccessiblePanelItem( size_t i_nPosition )
{
ENSURE_OR_RETURN( !isDisposed(), "AccessibleToolPanelTabBar_Impl::getAccessiblePanelItem: already disposed!", NULL );
@@ -197,7 +184,6 @@ namespace accessibility
return rAccessibleChild;
}
- //------------------------------------------------------------------------------------------------------------------
Reference< XAccessible > AccessibleToolPanelTabBar_Impl::getOwnAccessible() const
{
Reference< XAccessible > xOwnAccessible( static_cast< XAccessible* >( m_rAntiImpl.GetVCLXWindow() ) );
@@ -206,7 +192,6 @@ namespace accessibility
return xOwnAccessible;
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelTabBar_Impl::PanelInserted( const ::svt::PToolPanel& i_pPanel, const size_t i_nPosition )
{
ENSURE_OR_RETURN_VOID( i_nPosition <= m_aChildren.size(), "AccessibleToolPanelTabBar_Impl::PanelInserted: illegal position (or invalid cache!)" );
@@ -215,7 +200,6 @@ namespace accessibility
m_rAntiImpl.NotifyAccessibleEvent( AccessibleEventId::CHILD, Any(), makeAny( getAccessiblePanelItem( i_nPosition ) ) );
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelTabBar_Impl::PanelRemoved( const size_t i_nPosition )
{
ENSURE_OR_RETURN_VOID( i_nPosition < m_aChildren.size(), "AccessibleToolPanelTabBar_Impl::PanelInserted: illegal position (or invalid cache!)" );
@@ -225,27 +209,23 @@ namespace accessibility
m_rAntiImpl.NotifyAccessibleEvent( AccessibleEventId::CHILD, makeAny( xOldChild ), Any() );
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelTabBar_Impl::ActivePanelChanged( const ::boost::optional< size_t >& i_rOldActive, const ::boost::optional< size_t >& i_rNewActive )
{
(void)i_rOldActive;
(void)i_rNewActive;
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelTabBar_Impl::LayouterChanged( const ::svt::PDeckLayouter& i_rNewLayouter )
{
(void)i_rNewLayouter;
m_rAntiImpl.dispose();
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelTabBar_Impl::Dying()
{
m_rAntiImpl.dispose();
}
- //------------------------------------------------------------------------------------------------------------------
IMPL_LINK( AccessibleToolPanelTabBar_Impl, OnWindowEvent, const VclSimpleEvent*, i_pEvent )
{
ENSURE_OR_RETURN( !isDisposed(), "AccessibleToolPanelTabBar_Impl::OnWindowEvent: already disposed!", 0L );
@@ -272,9 +252,7 @@ namespace accessibility
return 1L;
}
- //==================================================================================================================
- //= MethodGuard
- //==================================================================================================================
+ // MethodGuard
namespace
{
class MethodGuard
@@ -294,10 +272,7 @@ namespace accessibility
};
}
- //==================================================================================================================
- //= AccessibleToolPanelTabBar
- //==================================================================================================================
- //------------------------------------------------------------------------------------------------------------------
+ // AccessibleToolPanelTabBar
AccessibleToolPanelTabBar::AccessibleToolPanelTabBar( const Reference< XAccessible >& i_rAccessibleParent,
::svt::IToolPanelDeck& i_rPanelDeck, ::svt::PanelTabBar& i_rTabBar )
:AccessibleToolPanelTabBar_Base( i_rTabBar.GetWindowPeer() )
@@ -305,12 +280,10 @@ namespace accessibility
{
}
- //------------------------------------------------------------------------------------------------------------------
AccessibleToolPanelTabBar::~AccessibleToolPanelTabBar()
{
}
- //------------------------------------------------------------------------------------------------------------------
sal_Int32 SAL_CALL AccessibleToolPanelTabBar::getAccessibleChildCount( ) throw (RuntimeException)
{
MethodGuard aGuard( *m_pImpl );
@@ -323,7 +296,6 @@ namespace accessibility
+ ( bHasScrollForward ? 1 : 0 );
}
- //------------------------------------------------------------------------------------------------------------------
Reference< XAccessible > SAL_CALL AccessibleToolPanelTabBar::getAccessibleChild( sal_Int32 i_nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
MethodGuard aGuard( *m_pImpl );
@@ -351,21 +323,18 @@ namespace accessibility
return m_pImpl->getAccessiblePanelItem( i_nIndex - ( bHasScrollBack ? 1 : 0 ) );
}
- //------------------------------------------------------------------------------------------------------------------
Reference< XAccessible > SAL_CALL AccessibleToolPanelTabBar::getAccessibleParent( ) throw (RuntimeException)
{
MethodGuard aGuard( *m_pImpl );
return m_pImpl->getAccessibleParent();
}
- //------------------------------------------------------------------------------------------------------------------
sal_Int16 SAL_CALL AccessibleToolPanelTabBar::getAccessibleRole( ) throw (RuntimeException)
{
MethodGuard aGuard( *m_pImpl );
return AccessibleRole::PAGE_TAB_LIST;
}
- //------------------------------------------------------------------------------------------------------------------
namespace
{
bool lcl_covers( const ::Window& i_rWindow, const ::Point& i_rPoint )
@@ -375,7 +344,6 @@ namespace accessibility
}
}
- //------------------------------------------------------------------------------------------------------------------
Reference< XAccessible > SAL_CALL AccessibleToolPanelTabBar::getAccessibleAtPoint( const UnoPoint& i_rPoint ) throw (RuntimeException)
{
MethodGuard aGuard( *m_pImpl );
@@ -406,14 +374,12 @@ namespace accessibility
return NULL;
}
- //------------------------------------------------------------------------------------------------------------------
void SAL_CALL AccessibleToolPanelTabBar::disposing()
{
AccessibleToolPanelTabBar_Base::disposing();
m_pImpl->dispose();
}
- //------------------------------------------------------------------------------------------------------------------
Reference< XAccessible > AccessibleToolPanelTabBar::GetChildAccessible( const VclWindowEvent& i_rVclWindowEvent )
{
// don't let the base class generate any A11Y events from VclWindowEvent, we completely manage those
@@ -422,7 +388,6 @@ namespace accessibility
return NULL;
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelTabBar::FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& i_rStateSet )
{
AccessibleToolPanelTabBar_Base::FillAccessibleStateSet( i_rStateSet );
@@ -434,9 +399,6 @@ namespace accessibility
else
i_rStateSet.AddState( AccessibleStateType::HORIZONTAL );
}
-
-//......................................................................................................................
} // namespace accessibility
-//......................................................................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/extended/AccessibleToolPanelDeckTabBarItem.cxx b/accessibility/source/extended/AccessibleToolPanelDeckTabBarItem.cxx
index 8b7a2fdb0bdf..f5ef6d74ddcb 100644
--- a/accessibility/source/extended/AccessibleToolPanelDeckTabBarItem.cxx
+++ b/accessibility/source/extended/AccessibleToolPanelDeckTabBarItem.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include "accessibility/extended/AccessibleToolPanelDeckTabBarItem.hxx"
#include <com/sun/star/accessibility/AccessibleRole.hpp>
@@ -34,11 +33,8 @@
#include <vcl/svapp.hxx>
#include <osl/mutex.hxx>
-//......................................................................................................................
namespace accessibility
{
-//......................................................................................................................
-
typedef ::com::sun::star::awt::Rectangle UnoRectangle;
typedef ::com::sun::star::awt::Point UnoPoint;
@@ -66,9 +62,7 @@ namespace accessibility
namespace AccessibleStateType = ::com::sun::star::accessibility::AccessibleStateType;
namespace AccessibleEventId = ::com::sun::star::accessibility::AccessibleEventId;
- //==================================================================================================================
- //= AccessibleToolPanelDeckTabBarItem_Impl
- //==================================================================================================================
+ // AccessibleToolPanelDeckTabBarItem_Impl
class AccessibleToolPanelDeckTabBarItem_Impl : public ::svt::IToolPanelDeckListener
{
public:
@@ -115,10 +109,7 @@ namespace accessibility
size_t m_nItemPos;
};
- //==================================================================================================================
- //= AccessibleToolPanelDeckTabBarItem_Impl
- //==================================================================================================================
- //------------------------------------------------------------------------------------------------------------------
+ // AccessibleToolPanelDeckTabBarItem_Impl
AccessibleToolPanelDeckTabBarItem_Impl::AccessibleToolPanelDeckTabBarItem_Impl( AccessibleToolPanelDeckTabBarItem& i_rAntiImpl,
const Reference< XAccessible >& i_rAccessibleParent, ::svt::IToolPanelDeck& i_rPanelDeck, ::svt::PanelTabBar& i_rTabBar,
const size_t i_nItemPos )
@@ -131,19 +122,16 @@ namespace accessibility
m_pPanelDeck->AddListener( *this );
}
- //------------------------------------------------------------------------------------------------------------------
AccessibleToolPanelDeckTabBarItem_Impl::~AccessibleToolPanelDeckTabBarItem_Impl()
{
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeckTabBarItem_Impl::checkDisposed() const
{
if ( isDisposed() )
throw DisposedException( OUString(), *&m_rAntiImpl );
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeckTabBarItem_Impl::dispose()
{
ENSURE_OR_RETURN_VOID( !isDisposed(), "AccessibleToolPanelDeckTabBarItem_Impl::dispose: disposed twice!" );
@@ -154,14 +142,12 @@ namespace accessibility
m_pTabBar = NULL;
}
- //------------------------------------------------------------------------------------------------------------------
Reference< XAccessibleComponent > AccessibleToolPanelDeckTabBarItem_Impl::getParentAccessibleComponent() const
{
Reference< XAccessible > xAccessibleParent( m_rAntiImpl.getAccessibleParent(), UNO_QUERY_THROW );
return Reference< XAccessibleComponent >( xAccessibleParent->getAccessibleContext(), UNO_QUERY );
}
- //------------------------------------------------------------------------------------------------------------------
OUString AccessibleToolPanelDeckTabBarItem_Impl::getPanelDisplayName()
{
const ::svt::PToolPanel pPanel( m_pPanelDeck->GetPanel( getItemPos() ) );
@@ -170,13 +156,11 @@ namespace accessibility
return pPanel->GetDisplayName();
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeckTabBarItem_Impl::impl_notifyBoundRectChanges()
{
m_rAntiImpl.NotifyAccessibleEvent( AccessibleEventId::BOUNDRECT_CHANGED, Any(), Any() );
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeckTabBarItem_Impl::impl_notifyStateChange( const sal_Int16 i_nLostState, const sal_Int16 i_nGainedState )
{
m_rAntiImpl.NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED,
@@ -185,7 +169,6 @@ namespace accessibility
);
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeckTabBarItem_Impl::PanelInserted( const ::svt::PToolPanel& i_pPanel, const size_t i_nPosition )
{
(void)i_pPanel;
@@ -194,7 +177,6 @@ namespace accessibility
impl_notifyBoundRectChanges();
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeckTabBarItem_Impl::PanelRemoved( const size_t i_nPosition )
{
if ( i_nPosition == m_nItemPos )
@@ -208,7 +190,6 @@ namespace accessibility
}
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeckTabBarItem_Impl::ActivePanelChanged( const ::boost::optional< size_t >& i_rOldActive, const ::boost::optional< size_t >& i_rNewActive )
{
if ( m_nItemPos == i_rOldActive )
@@ -223,7 +204,6 @@ namespace accessibility
}
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeckTabBarItem_Impl::LayouterChanged( const ::svt::PDeckLayouter& i_rNewLayouter )
{
(void)i_rNewLayouter;
@@ -232,16 +212,12 @@ namespace accessibility
dispose();
}
- //------------------------------------------------------------------------------------------------------------------
void AccessibleToolPanelDeckTabBarItem_Impl::Dying()
{
// if the tool panel deck is dying, then its layouter dies, so should we.
dispose();
}
- //==================================================================================================================
- //= ItemMethodGuard
- //==================================================================================================================
class ItemMethodGuard
{
public:
@@ -258,10 +234,6 @@ namespace accessibility
SolarMutexGuard m_aGuard;
};
- //==================================================================================================================
- //= AccessibleToolPanelDeckTabBarItem
- //==================================================================================================================
- //------------------------------------------------------------------------------------------------------------------
AccessibleToolPanelDeckTabBarItem::AccessibleToolPanelDeckTabBarItem( const Reference< XAccessible >& i_rAccessibleParent,
::svt::IToolPanelDeck& i_rPanelDeck, ::svt::PanelTabBar& i_rTabBar, const size_t i_nItemPos )
: ::comphelper::OAccessibleExtendedComponentHelper(
@@ -271,52 +243,44 @@ namespace accessibility
{
}
- //------------------------------------------------------------------------------------------------------------------
AccessibleToolPanelDeckTabBarItem::~AccessibleToolPanelDeckTabBarItem()
{
}
- //--------------------------------------------------------------------
sal_Int32 SAL_CALL AccessibleToolPanelDeckTabBarItem::getAccessibleChildCount( ) throw (RuntimeException)
{
return 0;
}
- //--------------------------------------------------------------------
Reference< XAccessible > SAL_CALL AccessibleToolPanelDeckTabBarItem::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
(void)i;
throw IndexOutOfBoundsException( OUString(), *this );
}
- //--------------------------------------------------------------------
Reference< XAccessible > SAL_CALL AccessibleToolPanelDeckTabBarItem::getAccessibleParent( ) throw (RuntimeException)
{
ItemMethodGuard aGuard( *m_pImpl );
return m_pImpl->getAccessibleParent();
}
- //--------------------------------------------------------------------
sal_Int16 SAL_CALL AccessibleToolPanelDeckTabBarItem::getAccessibleRole( ) throw (RuntimeException)
{
return AccessibleRole::PAGE_TAB;
}
- //--------------------------------------------------------------------
OUString SAL_CALL AccessibleToolPanelDeckTabBarItem::getAccessibleDescription( ) throw (RuntimeException)
{
ItemMethodGuard aGuard( *m_pImpl );
return m_pImpl->getPanelDisplayName();
}
- //--------------------------------------------------------------------
OUString SAL_CALL AccessibleToolPanelDeckTabBarItem::getAccessibleName( ) throw (RuntimeException)
{
ItemMethodGuard aGuard( *m_pImpl );
return m_pImpl->getPanelDisplayName();
}
- //--------------------------------------------------------------------
Reference< XAccessibleRelationSet > SAL_CALL AccessibleToolPanelDeckTabBarItem::getAccessibleRelationSet( ) throw (RuntimeException)
{
ItemMethodGuard aGuard( *m_pImpl );
@@ -324,7 +288,6 @@ namespace accessibility
return pRelationSet;
}
- //--------------------------------------------------------------------
Reference< XAccessibleStateSet > SAL_CALL AccessibleToolPanelDeckTabBarItem::getAccessibleStateSet( ) throw (RuntimeException)
{
ItemMethodGuard aGuard( *m_pImpl );
@@ -355,8 +318,6 @@ namespace accessibility
return pStateSet;
}
-
- //--------------------------------------------------------------------
Reference< XAccessible > SAL_CALL AccessibleToolPanelDeckTabBarItem::getAccessibleAtPoint( const UnoPoint& i_rLocation ) throw (RuntimeException)
{
ItemMethodGuard aGuard( *m_pImpl );
@@ -365,14 +326,12 @@ namespace accessibility
return NULL;
}
- //--------------------------------------------------------------------
void SAL_CALL AccessibleToolPanelDeckTabBarItem::grabFocus( ) throw (RuntimeException)
{
ItemMethodGuard aGuard( *m_pImpl );
m_pImpl->getTabBar()->FocusPanelItem( m_pImpl->getItemPos() );
}
- //--------------------------------------------------------------------
::sal_Int32 SAL_CALL AccessibleToolPanelDeckTabBarItem::getForeground( ) throw (RuntimeException)
{
ItemMethodGuard aGuard( *m_pImpl );
@@ -380,7 +339,6 @@ namespace accessibility
return xParentComponent->getForeground();
}
- //--------------------------------------------------------------------
::sal_Int32 SAL_CALL AccessibleToolPanelDeckTabBarItem::getBackground( ) throw (RuntimeException)
{
ItemMethodGuard aGuard( *m_pImpl );
@@ -388,7 +346,6 @@ namespace accessibility
return xParentComponent->getBackground();
}
- //--------------------------------------------------------------------
Reference< XFont > SAL_CALL AccessibleToolPanelDeckTabBarItem::getFont( ) throw (RuntimeException)
{
ItemMethodGuard aGuard( *m_pImpl );
@@ -398,7 +355,6 @@ namespace accessibility
return xParentComponent->getFont();
}
- //--------------------------------------------------------------------
OUString SAL_CALL AccessibleToolPanelDeckTabBarItem::getTitledBorderText( ) throw (RuntimeException)
{
ItemMethodGuard aGuard( *m_pImpl );
@@ -406,14 +362,12 @@ namespace accessibility
return OUString();
}
- //--------------------------------------------------------------------
OUString SAL_CALL AccessibleToolPanelDeckTabBarItem::getToolTipText( ) throw (RuntimeException)
{
ItemMethodGuard aGuard( *m_pImpl );
return m_pImpl->getPanelDisplayName();
}
- //--------------------------------------------------------------------
UnoRectangle SAL_CALL AccessibleToolPanelDeckTabBarItem::implGetBounds() throw (RuntimeException)
{
ItemMethodGuard aGuard( *m_pImpl );
@@ -430,15 +384,11 @@ namespace accessibility
);
}
- //--------------------------------------------------------------------
void SAL_CALL AccessibleToolPanelDeckTabBarItem::disposing()
{
ItemMethodGuard aGuard( *m_pImpl );
m_pImpl->dispose();
}
-
-//......................................................................................................................
} // namespace accessibility
-//......................................................................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/extended/accessiblebrowseboxcell.cxx b/accessibility/source/extended/accessiblebrowseboxcell.cxx
index f0c49de44251..1056de2e988b 100644
--- a/accessibility/source/extended/accessiblebrowseboxcell.cxx
+++ b/accessibility/source/extended/accessiblebrowseboxcell.cxx
@@ -20,19 +20,14 @@
#include "accessibility/extended/accessiblebrowseboxcell.hxx"
#include <svtools/accessibletableprovider.hxx>
-// .................................................................................
namespace accessibility
{
-// .................................................................................
-
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::accessibility;
using namespace ::svt;
- // =============================================================================
- // = AccessibleBrowseBoxCell
- // =============================================================================
+ // AccessibleBrowseBoxCell
AccessibleBrowseBoxCell::AccessibleBrowseBoxCell(
const Reference< XAccessible >& _rxParent, IAccessibleTableProvider& _rBrowseBox,
const Reference< XWindow >& _xFocusWindow,
@@ -48,32 +43,25 @@ namespace accessibility
implSetName( aAccName );
}
- // -----------------------------------------------------------------------------
AccessibleBrowseBoxCell::~AccessibleBrowseBoxCell()
{
}
- // -----------------------------------------------------------------------------
void SAL_CALL AccessibleBrowseBoxCell::grabFocus() throw ( RuntimeException )
{
SolarMethodGuard aGuard( *this );
mpBrowseBox->GoToCell( m_nRowPos, m_nColPos );
}
- // -----------------------------------------------------------------------------
+
::Rectangle AccessibleBrowseBoxCell::implGetBoundingBox()
{
return mpBrowseBox->GetFieldRectPixelAbs( m_nRowPos, m_nColPos, sal_False, sal_False );
}
- // -----------------------------------------------------------------------------
::Rectangle AccessibleBrowseBoxCell::implGetBoundingBoxOnScreen()
{
return mpBrowseBox->GetFieldRectPixelAbs( m_nRowPos, m_nColPos, sal_False );
}
-
-// .................................................................................
} // namespace accessibility
-// .................................................................................
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/extended/accessibleeditbrowseboxcell.cxx b/accessibility/source/extended/accessibleeditbrowseboxcell.cxx
index de61a4a059d5..c58ef312544c 100644
--- a/accessibility/source/extended/accessibleeditbrowseboxcell.cxx
+++ b/accessibility/source/extended/accessibleeditbrowseboxcell.cxx
@@ -23,12 +23,8 @@
#include <com/sun/star/accessibility/XAccessibleText.hpp>
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
-
-// .................................................................................
namespace accessibility
{
-// .................................................................................
-
using namespace com::sun::star::accessibility;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
@@ -36,7 +32,6 @@ namespace accessibility
using namespace ::comphelper;
using namespace ::svt;
- // -----------------------------------------------------------------------------
EditBrowseBoxTableCell::EditBrowseBoxTableCell(
const com::sun::star::uno::Reference< XAccessible >& _rxParent,
const com::sun::star::uno::Reference< XAccessible >& _rxOwningAccessible,
@@ -51,7 +46,6 @@ namespace accessibility
aggregateProxy( m_refCount, *this );
}
- // -----------------------------------------------------------------------------
EditBrowseBoxTableCell::~EditBrowseBoxTableCell()
{
if ( !rBHelper.bDisposed )
@@ -61,26 +55,21 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
OUString SAL_CALL EditBrowseBoxTableCell::getImplementationName() throw ( ::com::sun::star::uno::RuntimeException )
{
return OUString( "com.sun.star.comp.svtools.TableCellProxy" );
}
- // -----------------------------------------------------------------------------
IMPLEMENT_FORWARD_XINTERFACE2( EditBrowseBoxTableCell, AccessibleBrowseBoxCell, OAccessibleContextWrapperHelper )
- // -----------------------------------------------------------------------------
IMPLEMENT_FORWARD_XTYPEPROVIDER2( EditBrowseBoxTableCell, AccessibleBrowseBoxCell, OAccessibleContextWrapperHelper )
- // -----------------------------------------------------------------------------
void EditBrowseBoxTableCell::notifyTranslatedEvent( const AccessibleEventObject& _rEvent ) throw (RuntimeException)
{
commitEvent( _rEvent.EventId, _rEvent.NewValue, _rEvent.OldValue );
}
// XAccessibleComponent
- // -----------------------------------------------------------------------------
sal_Int32 SAL_CALL EditBrowseBoxTableCell::getForeground( ) throw (RuntimeException)
{
SolarMethodGuard aGuard( *this );
@@ -90,7 +79,6 @@ namespace accessibility
return 0;
}
- // -----------------------------------------------------------------------------
sal_Int32 SAL_CALL EditBrowseBoxTableCell::getBackground( ) throw (RuntimeException)
{
SolarMethodGuard aGuard( *this );
@@ -100,20 +88,17 @@ namespace accessibility
return 0;
}
- // -----------------------------------------------------------------------------
Reference< XAccessible > SAL_CALL EditBrowseBoxTableCell::getAccessibleParent( ) throw (RuntimeException)
{
return m_xParentAccessible;
}
- // -----------------------------------------------------------------------------
OUString SAL_CALL EditBrowseBoxTableCell::getAccessibleDescription() throw ( RuntimeException )
{
SolarMethodGuard aGuard( *this );
return m_xInnerContext->getAccessibleDescription();
}
- // -----------------------------------------------------------------------------
OUString SAL_CALL EditBrowseBoxTableCell::getAccessibleName() throw ( RuntimeException )
{
SolarMethodGuard aGuard( *this );
@@ -122,14 +107,12 @@ namespace accessibility
return "Column " + OUString::number(getColumnPos()-1) + ", Row " + OUString::number(getRowPos());
}
- // -----------------------------------------------------------------------------
Reference< XAccessibleRelationSet > SAL_CALL EditBrowseBoxTableCell::getAccessibleRelationSet() throw ( RuntimeException )
{
SolarMethodGuard aGuard( *this );
return OAccessibleContextWrapperHelper::getAccessibleRelationSet( );
}
- // -----------------------------------------------------------------------------
Reference<XAccessibleStateSet > SAL_CALL EditBrowseBoxTableCell::getAccessibleStateSet() throw ( RuntimeException )
{
SolarMethodGuard aGuard( *this );
@@ -137,27 +120,24 @@ namespace accessibility
// TODO: shouldn't we add an ACTIVE here? Isn't the EditBrowseBoxTableCell always ACTIVE?
}
- // -----------------------------------------------------------------------------
sal_Int32 SAL_CALL EditBrowseBoxTableCell::getAccessibleChildCount( ) throw (RuntimeException)
{
SolarMethodGuard aGuard( *this );
return OAccessibleContextWrapperHelper::getAccessibleChildCount();
}
- // -----------------------------------------------------------------------------
Reference< XAccessible > SAL_CALL EditBrowseBoxTableCell::getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, RuntimeException)
{
SolarMethodGuard aGuard( *this );
return OAccessibleContextWrapperHelper::getAccessibleChild( i );
}
- // -----------------------------------------------------------------------------
sal_Int16 SAL_CALL EditBrowseBoxTableCell::getAccessibleRole() throw ( RuntimeException )
{
SolarMethodGuard aGuard( *this );
return m_xInnerContext->getAccessibleRole( );
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL EditBrowseBoxTableCell::dispose() throw( RuntimeException )
{
// simply disambiguate. Note that the OComponentHelper base in AccessibleBrowseBoxCell
@@ -165,13 +145,13 @@ namespace accessibility
// so there is no need to do this here.
AccessibleBrowseBoxCell::dispose();
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL EditBrowseBoxTableCell::disposing( const EventObject& _rSource ) throw (RuntimeException)
{
AccessibleBrowseBoxCell::disposing( _rSource );
OAccessibleContextWrapperHelper::disposing( _rSource );
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL EditBrowseBoxTableCell::disposing()
{
SolarMethodGuard aGuard( *this, false );
@@ -179,9 +159,8 @@ namespace accessibility
// TODO: do we need to dispose our inner object? The base class does this, but is it a good idea?
AccessibleBrowseBoxCell::disposing();
}
- // =============================================================================
- // = EditBrowseBoxTableCell
- // =============================================================================
+
+ // EditBrowseBoxTableCell
EditBrowseBoxTableCellAccess::EditBrowseBoxTableCellAccess(
const Reference< XAccessible >& _rxParent, const Reference< XAccessible > _rxControlAccessible,
const Reference< XWindow >& _rxFocusWindow,
@@ -195,11 +174,11 @@ namespace accessibility
,m_nColPos( _nColPos )
{
}
- // -----------------------------------------------------------------------------
+
EditBrowseBoxTableCellAccess::~EditBrowseBoxTableCellAccess( )
{
}
- //--------------------------------------------------------------------
+
Reference< XAccessibleContext > SAL_CALL EditBrowseBoxTableCellAccess::getAccessibleContext( ) throw (RuntimeException)
{
if ( !m_pBrowseBox || !m_xControlAccessible.is() )
@@ -215,7 +194,7 @@ namespace accessibility
}
return xMyContext;
}
- //--------------------------------------------------------------------
+
void SAL_CALL EditBrowseBoxTableCellAccess::disposing()
{
// dispose our context, if it still alive
@@ -239,8 +218,6 @@ namespace accessibility
// NO dispose of the inner object there: it is the XAccessible of an window, and disposing
// it would delete the respective VCL window
}
-// .................................................................................
} // namespace accessibility
-// .................................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/extended/accessibleiconchoicectrl.cxx b/accessibility/source/extended/accessibleiconchoicectrl.cxx
index 460ee4dafa75..8b2fd453c3bf 100644
--- a/accessibility/source/extended/accessibleiconchoicectrl.cxx
+++ b/accessibility/source/extended/accessibleiconchoicectrl.cxx
@@ -40,23 +40,23 @@ namespace accessibility
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star;
- // -----------------------------------------------------------------------------
+
// Ctor() and Dtor()
- // -----------------------------------------------------------------------------
+
AccessibleIconChoiceCtrl::AccessibleIconChoiceCtrl( SvtIconChoiceCtrl& _rIconCtrl, const Reference< XAccessible >& _xParent ) :
VCLXAccessibleComponent( _rIconCtrl.GetWindowPeer() ),
m_xParent ( _xParent )
{
}
- // -----------------------------------------------------------------------------
+
AccessibleIconChoiceCtrl::~AccessibleIconChoiceCtrl()
{
}
- // -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2(AccessibleIconChoiceCtrl, VCLXAccessibleComponent, AccessibleIconChoiceCtrl_BASE)
IMPLEMENT_FORWARD_XTYPEPROVIDER2(AccessibleIconChoiceCtrl, VCLXAccessibleComponent, AccessibleIconChoiceCtrl_BASE)
- // -----------------------------------------------------------------------------
+
void AccessibleIconChoiceCtrl::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
if ( isAlive() )
@@ -116,35 +116,35 @@ namespace accessibility
}
}
}
- // -----------------------------------------------------------------------------
+
// XComponent
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleIconChoiceCtrl::disposing()
{
::osl::MutexGuard aGuard( m_aMutex );
m_xParent = NULL;
}
- // -----------------------------------------------------------------------------
+
// XServiceInfo
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleIconChoiceCtrl::getImplementationName() throw (RuntimeException)
{
return getImplementationName_Static();
}
- // -----------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL AccessibleIconChoiceCtrl::getSupportedServiceNames() throw (RuntimeException)
{
return getSupportedServiceNames_Static();
}
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleIconChoiceCtrl::supportsService( const OUString& _rServiceName ) throw (RuntimeException)
{
return cppu::supportsService(this, _rServiceName);
}
- // -----------------------------------------------------------------------------
+
// XServiceInfo - static methods
- // -----------------------------------------------------------------------------
+
Sequence< OUString > AccessibleIconChoiceCtrl::getSupportedServiceNames_Static(void) throw (RuntimeException)
{
Sequence< OUString > aSupported(3);
@@ -153,22 +153,22 @@ namespace accessibility
aSupported[2] = "com.sun.star.awt.AccessibleIconChoiceControl";
return aSupported;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleIconChoiceCtrl::getImplementationName_Static(void) throw (RuntimeException)
{
return OUString( "com.sun.star.comp.svtools.AccessibleIconChoiceControl" );
}
- // -----------------------------------------------------------------------------
+
// XAccessible
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > SAL_CALL AccessibleIconChoiceCtrl::getAccessibleContext( ) throw (RuntimeException)
{
ensureAlive();
return this;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleContext
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleIconChoiceCtrl::getAccessibleChildCount( ) throw (RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -176,7 +176,7 @@ namespace accessibility
ensureAlive();
return getCtrl()->GetEntryCount();
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleIconChoiceCtrl::getAccessibleChild( sal_Int32 i ) throw (RuntimeException, IndexOutOfBoundsException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -189,7 +189,7 @@ namespace accessibility
return new AccessibleIconChoiceCtrlEntry( *pCtrl, i, this );
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleIconChoiceCtrl::getAccessibleParent( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -197,13 +197,13 @@ namespace accessibility
ensureAlive();
return m_xParent;
}
- // -----------------------------------------------------------------------------
+
sal_Int16 SAL_CALL AccessibleIconChoiceCtrl::getAccessibleRole( ) throw (RuntimeException)
{
//return AccessibleRole::TREE;
return AccessibleRole::LIST;
}
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleIconChoiceCtrl::getAccessibleDescription( ) throw (RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -211,7 +211,7 @@ namespace accessibility
ensureAlive();
return getCtrl()->GetAccessibleDescription();
}
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleIconChoiceCtrl::getAccessibleName( ) throw (RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -223,9 +223,9 @@ namespace accessibility
sName = "IconChoiceControl";
return sName;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleSelection
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleIconChoiceCtrl::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -239,7 +239,7 @@ namespace accessibility
pCtrl->SetCursor( pEntry );
}
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleIconChoiceCtrl::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -253,7 +253,7 @@ namespace accessibility
return ( pCtrl->GetCursor() == pEntry );
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleIconChoiceCtrl::clearAccessibleSelection( ) throw (RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -261,7 +261,7 @@ namespace accessibility
ensureAlive();
getCtrl()->SetNoSelection();
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleIconChoiceCtrl::selectAllAccessibleChildren( ) throw (RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -277,7 +277,7 @@ namespace accessibility
pCtrl->SetCursor( pEntry );
}
}
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleIconChoiceCtrl::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -296,7 +296,7 @@ namespace accessibility
return nSelCount;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleIconChoiceCtrl::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -325,7 +325,7 @@ namespace accessibility
return xChild;
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleIconChoiceCtrl::deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -355,7 +355,7 @@ namespace accessibility
if ( 1 == nSelCount && bFound )
pCtrl->SetNoSelection();
}
- // -----------------------------------------------------------------------------
+
void AccessibleIconChoiceCtrl::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
VCLXAccessibleComponent::FillAccessibleStateSet( rStateSet );
@@ -366,7 +366,7 @@ namespace accessibility
rStateSet.AddState( AccessibleStateType::SELECTABLE );
}
}
- // -----------------------------------------------------------------------------
+
SvtIconChoiceCtrl* AccessibleIconChoiceCtrl::getCtrl()
{
return static_cast<SvtIconChoiceCtrl*>(GetWindow());
diff --git a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
index acbda971a2a9..6fc8a1e183e8 100644
--- a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
+++ b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
@@ -61,9 +61,9 @@ namespace accessibility
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star;
- // -----------------------------------------------------------------------------
+
// Ctor() and Dtor()
- // -----------------------------------------------------------------------------
+
AccessibleIconChoiceCtrlEntry::AccessibleIconChoiceCtrlEntry( SvtIconChoiceCtrl& _rIconCtrl,
sal_uLong _nPos,
const Reference< XAccessible >& _xParent ) :
@@ -84,7 +84,7 @@ namespace accessibility
}
osl_atomic_decrement( &m_refCount );
}
- // -----------------------------------------------------------------------------
+
void AccessibleIconChoiceCtrlEntry::disposing( const EventObject& _rSource )
throw(RuntimeException)
{
@@ -94,7 +94,7 @@ throw(RuntimeException)
OSL_ENSURE( !m_xParent.is() && ( NULL == m_pIconCtrl ), "" );
}
}
- // -----------------------------------------------------------------------------
+
AccessibleIconChoiceCtrlEntry::~AccessibleIconChoiceCtrlEntry()
{
if ( IsAlive_Impl() )
@@ -104,7 +104,7 @@ throw(RuntimeException)
dispose();
}
}
- // -----------------------------------------------------------------------------
+
Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBox_Impl() const
{
Rectangle aRect;
@@ -114,7 +114,7 @@ throw(RuntimeException)
return aRect;
}
- // -----------------------------------------------------------------------------
+
Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBoxOnScreen_Impl() const
{
Rectangle aRect;
@@ -129,12 +129,12 @@ throw(RuntimeException)
return aRect;
}
- // -----------------------------------------------------------------------------
+
sal_Bool AccessibleIconChoiceCtrlEntry::IsAlive_Impl() const
{
return ( !rBHelper.bDisposed && !rBHelper.bInDispose && m_pIconCtrl );
}
- // -----------------------------------------------------------------------------
+
sal_Bool AccessibleIconChoiceCtrlEntry::IsShowing_Impl() const
{
sal_Bool bShowing = sal_False;
@@ -149,7 +149,7 @@ throw(RuntimeException)
return bShowing;
}
- // -----------------------------------------------------------------------------
+
Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBox()
throw (lang::DisposedException, uno::RuntimeException)
{
@@ -159,7 +159,7 @@ throw(RuntimeException)
EnsureIsAlive();
return GetBoundingBox_Impl();
}
- // -----------------------------------------------------------------------------
+
Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBoxOnScreen()
throw (lang::DisposedException, uno::RuntimeException)
{
@@ -169,13 +169,13 @@ throw(RuntimeException)
EnsureIsAlive();
return GetBoundingBoxOnScreen_Impl();
}
- // -----------------------------------------------------------------------------
+
void AccessibleIconChoiceCtrlEntry::EnsureIsAlive() const throw ( lang::DisposedException )
{
if ( !IsAlive_Impl() )
throw lang::DisposedException();
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleIconChoiceCtrlEntry::implGetText()
{
OUString sRet;
@@ -184,7 +184,7 @@ throw(RuntimeException)
sRet = pEntry->GetDisplayText();
return sRet;
}
- // -----------------------------------------------------------------------------
+
Locale AccessibleIconChoiceCtrlEntry::implGetLocale()
{
Locale aLocale;
@@ -197,10 +197,10 @@ throw(RuntimeException)
nStartIndex = 0;
nEndIndex = 0;
}
- // -----------------------------------------------------------------------------
+
// XTypeProvider
- // -----------------------------------------------------------------------------
- // -----------------------------------------------------------------------------
+
+
Sequence< sal_Int8 > AccessibleIconChoiceCtrlEntry::getImplementationId() throw (RuntimeException)
{
static ::cppu::OImplementationId* pId = NULL;
@@ -217,9 +217,9 @@ throw(RuntimeException)
}
return pId->getImplementationId();
}
- // -----------------------------------------------------------------------------
+
// XComponent
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleIconChoiceCtrlEntry::disposing()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -239,26 +239,26 @@ throw(RuntimeException)
m_pIconCtrl = NULL;
m_xParent = NULL;
}
- // -----------------------------------------------------------------------------
+
// XServiceInfo
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleIconChoiceCtrlEntry::getImplementationName() throw(RuntimeException)
{
return getImplementationName_Static();
}
- // -----------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL AccessibleIconChoiceCtrlEntry::getSupportedServiceNames() throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::supportsService( const OUString& _rServiceName ) throw (RuntimeException)
{
return cppu::supportsService(this, _rServiceName);
}
- // -----------------------------------------------------------------------------
+
// XServiceInfo - static methods
- // -----------------------------------------------------------------------------
+
Sequence< OUString > AccessibleIconChoiceCtrlEntry::getSupportedServiceNames_Static(void) throw( RuntimeException )
{
Sequence< OUString > aSupported(3);
@@ -267,32 +267,32 @@ throw(RuntimeException)
aSupported[2] = "com.sun.star.awt.AccessibleIconChoiceControlEntry";
return aSupported;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleIconChoiceCtrlEntry::getImplementationName_Static(void) throw( RuntimeException )
{
return OUString( "com.sun.star.comp.svtools.AccessibleIconChoiceControlEntry" );
}
- // -----------------------------------------------------------------------------
+
// XAccessible
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleContext( ) throw (RuntimeException)
{
EnsureIsAlive();
return this;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleContext
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleChildCount( ) throw (RuntimeException)
{
return 0; // no children
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleChild( sal_Int32 ) throw (IndexOutOfBoundsException,RuntimeException)
{
throw IndexOutOfBoundsException();
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleParent( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -300,26 +300,26 @@ throw(RuntimeException)
EnsureIsAlive();
return m_xParent;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleIndexInParent( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
return m_nIndex;
}
- // -----------------------------------------------------------------------------
+
sal_Int16 SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleRole( ) throw (RuntimeException)
{
//return AccessibleRole::LABEL;
return AccessibleRole::LIST_ITEM;
}
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleDescription( ) throw (RuntimeException)
{
// no description for every item
return OUString();
}
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleName( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -327,12 +327,12 @@ throw(RuntimeException)
EnsureIsAlive();
return implGetText();
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleRelationSet( ) throw (RuntimeException)
{
return new utl::AccessibleRelationSetHelper;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleStateSet > SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleStateSet( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -361,7 +361,7 @@ throw(RuntimeException)
return xStateSet;
}
- // -----------------------------------------------------------------------------
+
Locale SAL_CALL AccessibleIconChoiceCtrlEntry::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -369,44 +369,44 @@ throw(RuntimeException)
return implGetLocale();
}
- // -----------------------------------------------------------------------------
+
// XAccessibleComponent
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::containsPoint( const awt::Point& rPoint ) throw (RuntimeException)
{
return Rectangle( Point(), GetBoundingBox().GetSize() ).IsInside( VCLPoint( rPoint ) );
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleAtPoint( const awt::Point& ) throw (RuntimeException)
{
return Reference< XAccessible >();
}
- // -----------------------------------------------------------------------------
+
awt::Rectangle SAL_CALL AccessibleIconChoiceCtrlEntry::getBounds( ) throw (RuntimeException)
{
return AWTRectangle( GetBoundingBox() );
}
- // -----------------------------------------------------------------------------
+
awt::Point SAL_CALL AccessibleIconChoiceCtrlEntry::getLocation( ) throw (RuntimeException)
{
return AWTPoint( GetBoundingBox().TopLeft() );
}
- // -----------------------------------------------------------------------------
+
awt::Point SAL_CALL AccessibleIconChoiceCtrlEntry::getLocationOnScreen( ) throw (RuntimeException)
{
return AWTPoint( GetBoundingBoxOnScreen().TopLeft() );
}
- // -----------------------------------------------------------------------------
+
awt::Size SAL_CALL AccessibleIconChoiceCtrlEntry::getSize( ) throw (RuntimeException)
{
return AWTSize( GetBoundingBox().GetSize() );
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleIconChoiceCtrlEntry::grabFocus( ) throw (RuntimeException)
{
// do nothing, because no focus for each item
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleIconChoiceCtrlEntry::getForeground( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -423,7 +423,7 @@ throw(RuntimeException)
return nColor;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleIconChoiceCtrlEntry::getBackground( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -440,10 +440,10 @@ throw(RuntimeException)
return nColor;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleText
- // -----------------------------------------------------------------------------
- // -----------------------------------------------------------------------------
+
+
awt::Rectangle SAL_CALL AccessibleIconChoiceCtrlEntry::getCharacterBounds( sal_Int32 _nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -463,7 +463,7 @@ throw(RuntimeException)
return aBounds;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleIconChoiceCtrlEntry::getIndexAtPoint( const awt::Point& aPoint ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -492,7 +492,7 @@ throw(RuntimeException)
return nIndex;
}
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -508,9 +508,9 @@ throw(RuntimeException)
return sal_True;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleEventBroadcaster
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleIconChoiceCtrlEntry::addAccessibleEventListener( const Reference< XAccessibleEventListener >& xListener ) throw (RuntimeException)
{
if (xListener.is())
@@ -521,7 +521,7 @@ throw(RuntimeException)
comphelper::AccessibleEventNotifier::addEventListener( m_nClientId, xListener );
}
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleIconChoiceCtrlEntry::removeAccessibleEventListener( const Reference< XAccessibleEventListener >& xListener ) throw (RuntimeException)
{
if (xListener.is())
@@ -654,9 +654,9 @@ throw(RuntimeException)
return OCommonAccessibleText::getTextBehindIndex( nIndex ,aTextType);
}
- // -----------------------------------------------------------------------------
+
// XAccessibleAction
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleActionCount( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -664,7 +664,7 @@ throw(RuntimeException)
// three actions supported
return ACCESSIBLE_ACTION_COUNT;
}
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::doAccessibleAction( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -684,7 +684,7 @@ throw(RuntimeException)
return bRet;
}
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleActionDescription( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -696,7 +696,7 @@ throw(RuntimeException)
static const OUString sActionDesc( "Select" );
return sActionDesc;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleKeyBinding > AccessibleIconChoiceCtrlEntry::getAccessibleActionKeyBinding( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx
index 795e66a610b0..df275ccf46c2 100644
--- a/accessibility/source/extended/accessiblelistbox.cxx
+++ b/accessibility/source/extended/accessiblelistbox.cxx
@@ -45,16 +45,16 @@ namespace accessibility
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star;
- // -----------------------------------------------------------------------------
+
// Ctor() and Dtor()
- // -----------------------------------------------------------------------------
+
AccessibleListBox::AccessibleListBox( SvTreeListBox& _rListBox, const Reference< XAccessible >& _xParent ) :
VCLXAccessibleComponent( _rListBox.GetWindowPeer() ),
m_xParent( _xParent )
{
}
- // -----------------------------------------------------------------------------
+
AccessibleListBox::~AccessibleListBox()
{
if ( isAlive() )
@@ -66,12 +66,12 @@ namespace accessibility
}
IMPLEMENT_FORWARD_XINTERFACE2(AccessibleListBox, VCLXAccessibleComponent, AccessibleListBox_BASE)
IMPLEMENT_FORWARD_XTYPEPROVIDER2(AccessibleListBox, VCLXAccessibleComponent, AccessibleListBox_BASE)
- // -----------------------------------------------------------------------------
+
SvTreeListBox* AccessibleListBox::getListBox() const
{
return static_cast< SvTreeListBox* >( const_cast<AccessibleListBox*>(this)->GetWindow() );
}
- // -----------------------------------------------------------------------------
+
void AccessibleListBox::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
if ( isAlive() )
@@ -291,7 +291,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleListBox::ProcessWindowChildEvent( const VclWindowEvent& rVclWindowEvent )
{
switch ( rVclWindowEvent.GetId() )
@@ -309,9 +309,9 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
// XComponent
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBox::disposing()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -320,26 +320,26 @@ namespace accessibility
VCLXAccessibleComponent::disposing();
m_xParent = NULL;
}
- // -----------------------------------------------------------------------------
+
// XServiceInfo
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleListBox::getImplementationName() throw(RuntimeException)
{
return getImplementationName_Static();
}
- // -----------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL AccessibleListBox::getSupportedServiceNames() throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleListBox::supportsService( const OUString& _rServiceName ) throw (RuntimeException)
{
return cppu::supportsService(this, _rServiceName);
}
- // -----------------------------------------------------------------------------
+
// XServiceInfo - static methods
- // -----------------------------------------------------------------------------
+
Sequence< OUString > AccessibleListBox::getSupportedServiceNames_Static(void) throw( RuntimeException )
{
Sequence< OUString > aSupported(3);
@@ -348,22 +348,22 @@ namespace accessibility
aSupported[2] = "com.sun.star.awt.AccessibleTreeListBox";
return aSupported;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleListBox::getImplementationName_Static(void) throw( RuntimeException )
{
return OUString( "com.sun.star.comp.svtools.AccessibleTreeListBox" );
}
- // -----------------------------------------------------------------------------
+
// XAccessible
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > SAL_CALL AccessibleListBox::getAccessibleContext( ) throw (RuntimeException)
{
ensureAlive();
return this;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleContext
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleListBox::getAccessibleChildCount( ) throw (RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -377,7 +377,7 @@ namespace accessibility
return nCount;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleListBox::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException,RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -391,7 +391,7 @@ namespace accessibility
//return new AccessibleListBoxEntry( *getListBox(), pEntry, this );
return new AccessibleListBoxEntry( *getListBox(), pEntry, NULL );
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleListBox::getAccessibleParent( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -399,7 +399,7 @@ namespace accessibility
ensureAlive();
return m_xParent;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleListBox::GetRoleType()
{
sal_Int32 nCase = 0;
@@ -453,7 +453,7 @@ namespace accessibility
else
return AccessibleRole::TREE;
}
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleListBox::getAccessibleDescription( ) throw (RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -461,7 +461,7 @@ namespace accessibility
ensureAlive();
return getListBox()->GetAccessibleDescription();
}
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleListBox::getAccessibleName( ) throw (RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -469,9 +469,9 @@ namespace accessibility
ensureAlive();
return getListBox()->GetAccessibleName();
}
- // -----------------------------------------------------------------------------
+
// XAccessibleSelection
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBox::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -484,7 +484,7 @@ namespace accessibility
getListBox()->Select( pEntry, sal_True );
}
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleListBox::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -497,7 +497,7 @@ namespace accessibility
return getListBox()->IsSelected( pEntry );
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBox::clearAccessibleSelection( ) throw (RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -512,7 +512,7 @@ namespace accessibility
getListBox()->Select( pEntry, sal_False );
}
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBox::selectAllAccessibleChildren( ) throw (RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -527,7 +527,7 @@ namespace accessibility
getListBox()->Select( pEntry, sal_True );
}
}
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleListBox::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -536,7 +536,7 @@ namespace accessibility
return getListBox()->GetSelectionCount();
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleListBox::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -566,7 +566,7 @@ namespace accessibility
return xChild;
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBox::deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
::comphelper::OExternalLockGuard aGuard( this );
@@ -579,7 +579,7 @@ namespace accessibility
getListBox()->Select( pEntry, sal_False );
}
- // -----------------------------------------------------------------------------
+
void AccessibleListBox::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
VCLXAccessibleComponent::FillAccessibleStateSet( rStateSet );
diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx
index eb6b9f23b232..1dcdb0fc04bd 100644
--- a/accessibility/source/extended/accessiblelistboxentry.cxx
+++ b/accessibility/source/extended/accessiblelistboxentry.cxx
@@ -66,9 +66,9 @@ namespace accessibility
using namespace ::com::sun::star;
using namespace ::comphelper;
- // -----------------------------------------------------------------------------
+
// Ctor() and Dtor()
- // -----------------------------------------------------------------------------
+
AccessibleListBoxEntry::AccessibleListBoxEntry( SvTreeListBox& _rListBox,
SvTreeListEntry* _pEntry,
const Reference< XAccessible >& _xParent ) :
@@ -83,7 +83,7 @@ namespace accessibility
{
_rListBox.FillEntryPath( _pEntry, m_aEntryPath );
}
- // -----------------------------------------------------------------------------
+
AccessibleListBoxEntry::~AccessibleListBoxEntry()
{
if ( IsAlive_Impl() )
@@ -106,7 +106,7 @@ namespace accessibility
}
- // -----------------------------------------------------------------------------
+
Rectangle AccessibleListBoxEntry::GetBoundingBox_Impl() const
{
Rectangle aRect;
@@ -126,7 +126,7 @@ namespace accessibility
return aRect;
}
- // -----------------------------------------------------------------------------
+
Rectangle AccessibleListBoxEntry::GetBoundingBoxOnScreen_Impl() const
{
Rectangle aRect;
@@ -141,12 +141,12 @@ namespace accessibility
return aRect;
}
- // -----------------------------------------------------------------------------
+
sal_Bool AccessibleListBoxEntry::IsAlive_Impl() const
{
return ( !rBHelper.bDisposed && !rBHelper.bInDispose && isAlive() );
}
- // -----------------------------------------------------------------------------
+
sal_Bool AccessibleListBoxEntry::IsShowing_Impl() const
{
Reference< XAccessible > xParent = implGetParentAccessible( );
@@ -163,7 +163,7 @@ namespace accessibility
return bShowing;
}
- // -----------------------------------------------------------------------------
+
Rectangle AccessibleListBoxEntry::GetBoundingBox()
throw (lang::DisposedException, uno::RuntimeException)
{
@@ -173,7 +173,7 @@ namespace accessibility
EnsureIsAlive();
return GetBoundingBox_Impl();
}
- // -----------------------------------------------------------------------------
+
Rectangle AccessibleListBoxEntry::GetBoundingBoxOnScreen()
throw (lang::DisposedException, uno::RuntimeException)
{
@@ -183,13 +183,13 @@ namespace accessibility
EnsureIsAlive();
return GetBoundingBoxOnScreen_Impl();
}
- // -----------------------------------------------------------------------------
+
void AccessibleListBoxEntry::EnsureIsAlive() const throw ( lang::DisposedException )
{
if ( !IsAlive_Impl() )
throw lang::DisposedException();
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleListBoxEntry::implGetText()
{
OUString sRet;
@@ -198,7 +198,7 @@ namespace accessibility
sRet = getListBox()->SearchEntryTextWithHeadTitle( pEntry );
return sRet;
}
- // -----------------------------------------------------------------------------
+
Locale AccessibleListBoxEntry::implGetLocale()
{
Locale aLocale;
@@ -211,10 +211,10 @@ namespace accessibility
nStartIndex = 0;
nEndIndex = 0;
}
- // -----------------------------------------------------------------------------
+
// XTypeProvider
- // -----------------------------------------------------------------------------
- // -----------------------------------------------------------------------------
+
+
Sequence< sal_Int8 > AccessibleListBoxEntry::getImplementationId() throw (RuntimeException)
{
static ::cppu::OImplementationId* pId = NULL;
@@ -232,17 +232,17 @@ namespace accessibility
return pId->getImplementationId();
}
- // -----------------------------------------------------------------------------
+
// XComponent/ListBoxAccessibleBase
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBoxEntry::dispose() throw ( uno::RuntimeException )
{
AccessibleListBoxEntry_BASE::dispose();
}
- // -----------------------------------------------------------------------------
+
// XComponent
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBoxEntry::disposing()
{
SolarMutexGuard();
@@ -265,26 +265,26 @@ namespace accessibility
}
m_aParent = WeakReference< XAccessible >();
}
- // -----------------------------------------------------------------------------
+
// XServiceInfo
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleListBoxEntry::getImplementationName() throw(RuntimeException)
{
return getImplementationName_Static();
}
- // -----------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL AccessibleListBoxEntry::getSupportedServiceNames() throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleListBoxEntry::supportsService( const OUString& _rServiceName ) throw (RuntimeException)
{
return cppu::supportsService(this, _rServiceName);
}
- // -----------------------------------------------------------------------------
+
// XServiceInfo - static methods
- // -----------------------------------------------------------------------------
+
Sequence< OUString > AccessibleListBoxEntry::getSupportedServiceNames_Static(void) throw( RuntimeException )
{
Sequence< OUString > aSupported(3);
@@ -293,22 +293,22 @@ namespace accessibility
aSupported[2] = "com.sun.star.awt.AccessibleTreeListBoxEntry";
return aSupported;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleListBoxEntry::getImplementationName_Static(void) throw( RuntimeException )
{
return OUString( "com.sun.star.comp.svtools.AccessibleTreeListBoxEntry" );
}
- // -----------------------------------------------------------------------------
+
// XAccessible
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > SAL_CALL AccessibleListBoxEntry::getAccessibleContext( ) throw (RuntimeException)
{
EnsureIsAlive();
return this;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleContext
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleListBoxEntry::getAccessibleChildCount( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -322,7 +322,7 @@ namespace accessibility
return nCount;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleListBoxEntry::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException,RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -336,7 +336,7 @@ namespace accessibility
return new AccessibleListBoxEntry( *getListBox(), pEntry, this );
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleListBoxEntry::implGetParentAccessible( ) const
{
Reference< XAccessible > xParent = (Reference< XAccessible >)m_aParent;
@@ -373,7 +373,7 @@ namespace accessibility
return xParent;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleListBoxEntry::getAccessibleParent( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -382,7 +382,7 @@ namespace accessibility
return implGetParentAccessible( );
}
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleListBoxEntry::getAccessibleIndexInParent( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -390,7 +390,7 @@ namespace accessibility
OSL_ENSURE( !m_aEntryPath.empty(), "empty path" );
return m_aEntryPath.empty() ? -1 : m_aEntryPath.back();
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleListBoxEntry::GetRoleType()
{
sal_Int32 nCase = 0;
@@ -419,7 +419,7 @@ namespace accessibility
}
return nCase;
}
- // -----------------------------------------------------------------------------
+
sal_Int16 SAL_CALL AccessibleListBoxEntry::getAccessibleRole( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -457,7 +457,7 @@ namespace accessibility
}
return AccessibleRole::UNKNOWN;
}
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleListBoxEntry::getAccessibleDescription( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -492,7 +492,7 @@ namespace accessibility
return getListBox()->SearchEntryTextWithHeadTitle( pEntry );
}
}
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleListBoxEntry::getAccessibleName( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -512,7 +512,7 @@ namespace accessibility
return sRet;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > SAL_CALL AccessibleListBoxEntry::getAccessibleRelationSet( ) throw (RuntimeException)
{
Reference< XAccessibleRelationSet > xRelSet;
@@ -530,7 +530,7 @@ namespace accessibility
}
return xRelSet;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleStateSet > SAL_CALL AccessibleListBoxEntry::getAccessibleStateSet( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -567,7 +567,7 @@ namespace accessibility
return xStateSet;
}
- // -----------------------------------------------------------------------------
+
Locale SAL_CALL AccessibleListBoxEntry::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -575,14 +575,14 @@ namespace accessibility
return implGetLocale();
}
- // -----------------------------------------------------------------------------
+
// XAccessibleComponent
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleListBoxEntry::containsPoint( const awt::Point& rPoint ) throw (RuntimeException)
{
return Rectangle( Point(), GetBoundingBox().GetSize() ).IsInside( VCLPoint( rPoint ) );
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleListBoxEntry::getAccessibleAtPoint( const awt::Point& _aPoint ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -600,32 +600,32 @@ namespace accessibility
xAcc = pAccEntry;
return xAcc;
}
- // -----------------------------------------------------------------------------
+
awt::Rectangle SAL_CALL AccessibleListBoxEntry::getBounds( ) throw (RuntimeException)
{
return AWTRectangle( GetBoundingBox() );
}
- // -----------------------------------------------------------------------------
+
awt::Point SAL_CALL AccessibleListBoxEntry::getLocation( ) throw (RuntimeException)
{
return AWTPoint( GetBoundingBox().TopLeft() );
}
- // -----------------------------------------------------------------------------
+
awt::Point SAL_CALL AccessibleListBoxEntry::getLocationOnScreen( ) throw (RuntimeException)
{
return AWTPoint( GetBoundingBoxOnScreen().TopLeft() );
}
- // -----------------------------------------------------------------------------
+
awt::Size SAL_CALL AccessibleListBoxEntry::getSize( ) throw (RuntimeException)
{
return AWTSize( GetBoundingBox().GetSize() );
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBoxEntry::grabFocus( ) throw (RuntimeException)
{
// do nothing, because no focus for each item
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleListBoxEntry::getForeground( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -642,7 +642,7 @@ namespace accessibility
return nColor;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleListBoxEntry::getBackground( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -659,10 +659,10 @@ namespace accessibility
return nColor;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleText
- // -----------------------------------------------------------------------------
- // -----------------------------------------------------------------------------
+
+
awt::Rectangle SAL_CALL AccessibleListBoxEntry::getCharacterBounds( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -687,7 +687,7 @@ namespace accessibility
return aBounds;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleListBoxEntry::getIndexAtPoint( const awt::Point& aPoint ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -709,7 +709,7 @@ namespace accessibility
return nIndex;
}
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleListBoxEntry::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -726,9 +726,9 @@ namespace accessibility
return sal_True;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleEventBroadcaster
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBoxEntry::addAccessibleEventListener( const Reference< XAccessibleEventListener >& xListener ) throw (RuntimeException)
{
if (xListener.is())
@@ -739,7 +739,7 @@ namespace accessibility
comphelper::AccessibleEventNotifier::addEventListener( m_nClientId, xListener );
}
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBoxEntry::removeAccessibleEventListener( const Reference< XAccessibleEventListener >& xListener ) throw (RuntimeException)
{
if (xListener.is())
@@ -760,9 +760,9 @@ namespace accessibility
}
}
}
- // -----------------------------------------------------------------------------
+
// XAccessibleAction
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleListBoxEntry::getAccessibleActionCount( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -783,7 +783,7 @@ namespace accessibility
return ACCESSIBLE_ACTION_COUNT;
return 0;
}
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleListBoxEntry::doAccessibleAction( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -821,7 +821,7 @@ namespace accessibility
return bRet;
}
- // -----------------------------------------------------------------------------
+
OUString SAL_CALL AccessibleListBoxEntry::getAccessibleActionDescription( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -861,7 +861,7 @@ namespace accessibility
}
throw IndexOutOfBoundsException();
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleKeyBinding > AccessibleListBoxEntry::getAccessibleActionKeyBinding( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -871,9 +871,9 @@ namespace accessibility
// ... which key?
return xRet;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleSelection
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBoxEntry::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -887,7 +887,7 @@ namespace accessibility
getListBox()->Select( pEntry, sal_True );
}
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleListBoxEntry::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -902,7 +902,7 @@ namespace accessibility
return getListBox()->IsSelected( pEntry );
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBoxEntry::clearAccessibleSelection( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -921,7 +921,7 @@ namespace accessibility
getListBox()->Select( pEntry, sal_False );
}
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBoxEntry::selectAllAccessibleChildren( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -940,7 +940,7 @@ namespace accessibility
getListBox()->Select( pEntry, sal_True );
}
}
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleListBoxEntry::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -963,7 +963,7 @@ namespace accessibility
return nSelCount;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleListBoxEntry::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -996,7 +996,7 @@ namespace accessibility
return xChild;
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleListBoxEntry::deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -1122,9 +1122,9 @@ namespace accessibility
return OCommonAccessibleText::getTextBehindIndex( nIndex ,aTextType);
}
- // -----------------------------------------------------------------------------
+
// XAccessibleValue
- // -----------------------------------------------------------------------------
+
Any AccessibleListBoxEntry::getCurrentValue( ) throw (RuntimeException)
{
@@ -1136,7 +1136,7 @@ namespace accessibility
return aValue;
}
- // -----------------------------------------------------------------------------
+
sal_Bool AccessibleListBoxEntry::setCurrentValue( const Any& aNumber ) throw (RuntimeException)
{
@@ -1168,7 +1168,7 @@ namespace accessibility
return bReturn;
}
- // -----------------------------------------------------------------------------
+
Any AccessibleListBoxEntry::getMaximumValue( ) throw (RuntimeException)
{
@@ -1189,7 +1189,7 @@ namespace accessibility
return aValue;
}
- // -----------------------------------------------------------------------------
+
Any AccessibleListBoxEntry::getMinimumValue( ) throw (RuntimeException)
{
@@ -1210,7 +1210,7 @@ namespace accessibility
return aValue;
}
- // -----------------------------------------------------------------------------
+
SvTreeListEntry* AccessibleListBoxEntry::GetRealChild(sal_Int32 nIndex)
{
diff --git a/accessibility/source/extended/accessibletabbar.cxx b/accessibility/source/extended/accessibletabbar.cxx
index 96812ccfc22c..d80ffc5b1b63 100644
--- a/accessibility/source/extended/accessibletabbar.cxx
+++ b/accessibility/source/extended/accessibletabbar.cxx
@@ -56,13 +56,13 @@ namespace accessibility
m_aAccessibleChildren.assign( m_pTabBar->GetAccessibleChildWindowCount() + 1, Reference< XAccessible >() );
}
- // -----------------------------------------------------------------------------
+
AccessibleTabBar::~AccessibleTabBar()
{
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBar::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
@@ -118,7 +118,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBar::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -145,9 +145,9 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
// OCommonAccessibleComponent
- // -----------------------------------------------------------------------------
+
awt::Rectangle AccessibleTabBar::implGetBounds() throw (RuntimeException)
{
@@ -158,21 +158,21 @@ namespace accessibility
return aBounds;
}
- // -----------------------------------------------------------------------------
+
// XInterface
- // -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( AccessibleTabBar, AccessibleExtendedComponentHelper_BASE, AccessibleTabBar_BASE )
- // -----------------------------------------------------------------------------
+
// XTypeProvider
- // -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( AccessibleTabBar, AccessibleExtendedComponentHelper_BASE, AccessibleTabBar_BASE )
- // -----------------------------------------------------------------------------
+
// XComponent
- // -----------------------------------------------------------------------------
+
void AccessibleTabBar::disposing()
{
@@ -188,23 +188,23 @@ namespace accessibility
m_aAccessibleChildren.clear();
}
- // -----------------------------------------------------------------------------
+
// XServiceInfo
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBar::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.svtools.AccessibleTabBar" );
}
- // -----------------------------------------------------------------------------
+
sal_Bool AccessibleTabBar::supportsService( const OUString& rServiceName ) throw (RuntimeException)
{
return cppu::supportsService(this, rServiceName);
}
- // -----------------------------------------------------------------------------
+
Sequence< OUString > AccessibleTabBar::getSupportedServiceNames() throw (RuntimeException)
{
@@ -213,9 +213,9 @@ namespace accessibility
return aNames;
}
- // -----------------------------------------------------------------------------
+
// XAccessible
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > AccessibleTabBar::getAccessibleContext( ) throw (RuntimeException)
{
@@ -224,9 +224,9 @@ namespace accessibility
return this;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleContext
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleTabBar::getAccessibleChildCount() throw (RuntimeException)
{
@@ -235,7 +235,7 @@ namespace accessibility
return m_aAccessibleChildren.size();
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleTabBar::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -270,7 +270,7 @@ namespace accessibility
return xChild;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleTabBar::getAccessibleParent( ) throw (RuntimeException)
{
@@ -287,7 +287,7 @@ namespace accessibility
return xParent;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleTabBar::getAccessibleIndexInParent( ) throw (RuntimeException)
{
@@ -314,7 +314,7 @@ namespace accessibility
return nIndexInParent;
}
- // -----------------------------------------------------------------------------
+
sal_Int16 AccessibleTabBar::getAccessibleRole( ) throw (RuntimeException)
{
@@ -323,7 +323,7 @@ namespace accessibility
return AccessibleRole::PANEL;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBar::getAccessibleDescription( ) throw (RuntimeException)
{
@@ -336,7 +336,7 @@ namespace accessibility
return sDescription;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBar::getAccessibleName( ) throw (RuntimeException)
{
@@ -349,7 +349,7 @@ namespace accessibility
return sName;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > AccessibleTabBar::getAccessibleRelationSet( ) throw (RuntimeException)
{
@@ -360,7 +360,7 @@ namespace accessibility
return xSet;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleStateSet > AccessibleTabBar::getAccessibleStateSet( ) throw (RuntimeException)
{
@@ -381,7 +381,7 @@ namespace accessibility
return xSet;
}
- // -----------------------------------------------------------------------------
+
Locale AccessibleTabBar::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
@@ -390,9 +390,9 @@ namespace accessibility
return Application::GetSettings().GetLanguageTag().getLocale();
}
- // -----------------------------------------------------------------------------
+
// XAccessibleComponent
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleTabBar::getAccessibleAtPoint( const awt::Point& rPoint ) throw (RuntimeException)
{
@@ -421,7 +421,7 @@ namespace accessibility
return xChild;
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBar::grabFocus( ) throw (RuntimeException)
{
@@ -431,7 +431,7 @@ namespace accessibility
m_pTabBar->GrabFocus();
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleTabBar::getForeground( ) throw (RuntimeException)
{
@@ -456,7 +456,7 @@ namespace accessibility
return nColor;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleTabBar::getBackground( ) throw (RuntimeException)
{
@@ -474,9 +474,9 @@ namespace accessibility
return nColor;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleExtendedComponent
- // -----------------------------------------------------------------------------
+
Reference< awt::XFont > AccessibleTabBar::getFont( ) throw (RuntimeException)
{
@@ -502,7 +502,7 @@ namespace accessibility
return xFont;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBar::getTitledBorderText( ) throw (RuntimeException)
{
@@ -515,7 +515,7 @@ namespace accessibility
return sText;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBar::getToolTipText( ) throw (RuntimeException)
{
@@ -528,7 +528,7 @@ namespace accessibility
return sText;
}
- // -----------------------------------------------------------------------------
+
//.........................................................................
} // namespace accessibility
diff --git a/accessibility/source/extended/accessibletabbarpage.cxx b/accessibility/source/extended/accessibletabbarpage.cxx
index 090e0bf5f49d..34a687bf1554 100644
--- a/accessibility/source/extended/accessibletabbarpage.cxx
+++ b/accessibility/source/extended/accessibletabbarpage.cxx
@@ -41,9 +41,9 @@ namespace accessibility
using namespace ::com::sun::star;
using namespace ::comphelper;
- // -----------------------------------------------------------------------------
+
// class AccessibleTabBarPage
- // -----------------------------------------------------------------------------
+
AccessibleTabBarPage::AccessibleTabBarPage( TabBar* pTabBar, sal_uInt16 nPageId, const Reference< XAccessible >& rxParent )
:AccessibleTabBarBase( pTabBar )
@@ -58,13 +58,13 @@ namespace accessibility
m_sPageText = m_pTabBar->GetPageText( m_nPageId );
}
- // -----------------------------------------------------------------------------
+
AccessibleTabBarPage::~AccessibleTabBarPage()
{
}
- // -----------------------------------------------------------------------------
+
sal_Bool AccessibleTabBarPage::IsEnabled()
{
@@ -77,7 +77,7 @@ namespace accessibility
return bEnabled;
}
- // -----------------------------------------------------------------------------
+
sal_Bool AccessibleTabBarPage::IsShowing()
{
@@ -89,7 +89,7 @@ namespace accessibility
return bShowing;
}
- // -----------------------------------------------------------------------------
+
sal_Bool AccessibleTabBarPage::IsSelected()
{
@@ -101,7 +101,7 @@ namespace accessibility
return bSelected;
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPage::SetEnabled( sal_Bool bEnabled )
{
@@ -125,7 +125,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPage::SetShowing( sal_Bool bShowing )
{
@@ -141,7 +141,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPage::SetSelected( sal_Bool bSelected )
{
@@ -157,7 +157,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPage::SetPageText( const OUString& sPageText )
{
@@ -171,7 +171,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPage::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -192,9 +192,9 @@ namespace accessibility
rStateSet.AddState( AccessibleStateType::SELECTED );
}
- // -----------------------------------------------------------------------------
+
// OCommonAccessibleComponent
- // -----------------------------------------------------------------------------
+
awt::Rectangle AccessibleTabBarPage::implGetBounds() throw (RuntimeException)
{
@@ -223,21 +223,21 @@ namespace accessibility
return aBounds;
}
- // -----------------------------------------------------------------------------
+
// XInterface
- // -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( AccessibleTabBarPage, AccessibleExtendedComponentHelper_BASE, AccessibleTabBarPage_BASE )
- // -----------------------------------------------------------------------------
+
// XTypeProvider
- // -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( AccessibleTabBarPage, AccessibleExtendedComponentHelper_BASE, AccessibleTabBarPage_BASE )
- // -----------------------------------------------------------------------------
+
// XComponent
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPage::disposing()
{
@@ -245,23 +245,23 @@ namespace accessibility
m_sPageText = OUString();
}
- // -----------------------------------------------------------------------------
+
// XServiceInfo
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBarPage::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.svtools.AccessibleTabBarPage" );
}
- // -----------------------------------------------------------------------------
+
sal_Bool AccessibleTabBarPage::supportsService( const OUString& rServiceName ) throw (RuntimeException)
{
return cppu::supportsService(this, rServiceName);
}
- // -----------------------------------------------------------------------------
+
Sequence< OUString > AccessibleTabBarPage::getSupportedServiceNames() throw (RuntimeException)
{
@@ -270,9 +270,9 @@ namespace accessibility
return aNames;
}
- // -----------------------------------------------------------------------------
+
// XAccessible
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > AccessibleTabBarPage::getAccessibleContext( ) throw (RuntimeException)
{
@@ -281,9 +281,9 @@ namespace accessibility
return this;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleContext
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleTabBarPage::getAccessibleChildCount() throw (RuntimeException)
{
@@ -292,7 +292,7 @@ namespace accessibility
return 0;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleTabBarPage::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -304,7 +304,7 @@ namespace accessibility
return Reference< XAccessible >();
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleTabBarPage::getAccessibleParent( ) throw (RuntimeException)
{
@@ -313,7 +313,7 @@ namespace accessibility
return m_xParent;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleTabBarPage::getAccessibleIndexInParent( ) throw (RuntimeException)
{
@@ -326,7 +326,7 @@ namespace accessibility
return nIndexInParent;
}
- // -----------------------------------------------------------------------------
+
sal_Int16 AccessibleTabBarPage::getAccessibleRole( ) throw (RuntimeException)
{
@@ -335,7 +335,7 @@ namespace accessibility
return AccessibleRole::PAGE_TAB;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBarPage::getAccessibleDescription( ) throw (RuntimeException)
{
@@ -348,7 +348,7 @@ namespace accessibility
return sDescription;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBarPage::getAccessibleName( ) throw (RuntimeException)
{
@@ -357,7 +357,7 @@ namespace accessibility
return m_sPageText;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > AccessibleTabBarPage::getAccessibleRelationSet( ) throw (RuntimeException)
{
@@ -368,7 +368,7 @@ namespace accessibility
return xSet;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleStateSet > AccessibleTabBarPage::getAccessibleStateSet( ) throw (RuntimeException)
{
@@ -389,7 +389,7 @@ namespace accessibility
return xSet;
}
- // -----------------------------------------------------------------------------
+
Locale AccessibleTabBarPage::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
@@ -398,9 +398,9 @@ namespace accessibility
return Application::GetSettings().GetLanguageTag().getLocale();
}
- // -----------------------------------------------------------------------------
+
// XAccessibleComponent
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleTabBarPage::getAccessibleAtPoint( const awt::Point& ) throw (RuntimeException)
{
@@ -409,14 +409,14 @@ namespace accessibility
return Reference< XAccessible >();
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPage::grabFocus( ) throw (RuntimeException)
{
// no focus
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleTabBarPage::getForeground( ) throw (RuntimeException)
{
@@ -434,7 +434,7 @@ namespace accessibility
return nColor;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleTabBarPage::getBackground( ) throw (RuntimeException)
{
@@ -452,9 +452,9 @@ namespace accessibility
return nColor;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleExtendedComponent
- // -----------------------------------------------------------------------------
+
Reference< awt::XFont > AccessibleTabBarPage::getFont( ) throw (RuntimeException)
{
@@ -472,7 +472,7 @@ namespace accessibility
return xFont;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBarPage::getTitledBorderText( ) throw (RuntimeException)
{
@@ -481,7 +481,7 @@ namespace accessibility
return m_sPageText;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBarPage::getToolTipText( ) throw (RuntimeException)
{
@@ -490,7 +490,7 @@ namespace accessibility
return OUString();
}
- // -----------------------------------------------------------------------------
+
//.........................................................................
} // namespace accessibility
diff --git a/accessibility/source/extended/accessibletabbarpagelist.cxx b/accessibility/source/extended/accessibletabbarpagelist.cxx
index 57c054db528d..b7a87b073161 100644
--- a/accessibility/source/extended/accessibletabbarpagelist.cxx
+++ b/accessibility/source/extended/accessibletabbarpagelist.cxx
@@ -42,9 +42,9 @@ namespace accessibility
using namespace ::com::sun::star;
using namespace ::comphelper;
- // -----------------------------------------------------------------------------
+
// class AccessibleTabBarPageList
- // -----------------------------------------------------------------------------
+
AccessibleTabBarPageList::AccessibleTabBarPageList( TabBar* pTabBar, sal_Int32 nIndexInParent )
:AccessibleTabBarBase( pTabBar )
@@ -54,13 +54,13 @@ namespace accessibility
m_aAccessibleChildren.assign( m_pTabBar->GetPageCount(), Reference< XAccessible >() );
}
- // -----------------------------------------------------------------------------
+
AccessibleTabBarPageList::~AccessibleTabBarPageList()
{
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::UpdateEnabled( sal_Int32 i, sal_Bool bEnabled )
{
@@ -76,7 +76,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::UpdateShowing( sal_Bool bShowing )
{
@@ -92,7 +92,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::UpdateSelected( sal_Int32 i, sal_Bool bSelected )
{
@@ -110,7 +110,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::UpdatePageText( sal_Int32 i )
{
@@ -132,7 +132,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::InsertChild( sal_Int32 i )
{
@@ -152,7 +152,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::RemoveChild( sal_Int32 i )
{
@@ -178,7 +178,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::MoveChild( sal_Int32 i, sal_Int32 j )
{
@@ -199,7 +199,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
@@ -346,7 +346,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -365,9 +365,9 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
// OCommonAccessibleComponent
- // -----------------------------------------------------------------------------
+
awt::Rectangle AccessibleTabBarPageList::implGetBounds() throw (RuntimeException)
{
@@ -378,21 +378,21 @@ namespace accessibility
return aBounds;
}
- // -----------------------------------------------------------------------------
+
// XInterface
- // -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( AccessibleTabBarPageList, AccessibleExtendedComponentHelper_BASE, AccessibleTabBarPageList_BASE )
- // -----------------------------------------------------------------------------
+
// XTypeProvider
- // -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( AccessibleTabBarPageList, AccessibleExtendedComponentHelper_BASE, AccessibleTabBarPageList_BASE )
- // -----------------------------------------------------------------------------
+
// XComponent
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::disposing()
{
@@ -408,23 +408,23 @@ namespace accessibility
m_aAccessibleChildren.clear();
}
- // -----------------------------------------------------------------------------
+
// XServiceInfo
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBarPageList::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.svtools.AccessibleTabBarPageList" );
}
- // -----------------------------------------------------------------------------
+
sal_Bool AccessibleTabBarPageList::supportsService( const OUString& rServiceName ) throw (RuntimeException)
{
return cppu::supportsService(this, rServiceName);
}
- // -----------------------------------------------------------------------------
+
Sequence< OUString > AccessibleTabBarPageList::getSupportedServiceNames() throw (RuntimeException)
{
@@ -433,9 +433,9 @@ namespace accessibility
return aNames;
}
- // -----------------------------------------------------------------------------
+
// XAccessible
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > AccessibleTabBarPageList::getAccessibleContext( ) throw (RuntimeException)
{
@@ -444,9 +444,9 @@ namespace accessibility
return this;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleContext
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleTabBarPageList::getAccessibleChildCount() throw (RuntimeException)
{
@@ -455,7 +455,7 @@ namespace accessibility
return m_aAccessibleChildren.size();
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleTabBarPageList::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -481,7 +481,7 @@ namespace accessibility
return xChild;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleTabBarPageList::getAccessibleParent( ) throw (RuntimeException)
{
@@ -494,7 +494,7 @@ namespace accessibility
return xParent;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleTabBarPageList::getAccessibleIndexInParent( ) throw (RuntimeException)
{
@@ -503,7 +503,7 @@ namespace accessibility
return m_nIndexInParent;
}
- // -----------------------------------------------------------------------------
+
sal_Int16 AccessibleTabBarPageList::getAccessibleRole( ) throw (RuntimeException)
{
@@ -512,7 +512,7 @@ namespace accessibility
return AccessibleRole::PAGE_TAB_LIST;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBarPageList::getAccessibleDescription( ) throw (RuntimeException)
{
@@ -521,7 +521,7 @@ namespace accessibility
return OUString();
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBarPageList::getAccessibleName( ) throw (RuntimeException)
{
@@ -530,7 +530,7 @@ namespace accessibility
return OUString();
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > AccessibleTabBarPageList::getAccessibleRelationSet( ) throw (RuntimeException)
{
@@ -541,7 +541,7 @@ namespace accessibility
return xSet;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleStateSet > AccessibleTabBarPageList::getAccessibleStateSet( ) throw (RuntimeException)
{
@@ -562,7 +562,7 @@ namespace accessibility
return xSet;
}
- // -----------------------------------------------------------------------------
+
Locale AccessibleTabBarPageList::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
@@ -571,9 +571,9 @@ namespace accessibility
return Application::GetSettings().GetLanguageTag().getLocale();
}
- // -----------------------------------------------------------------------------
+
// XAccessibleComponent
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleTabBarPageList::getAccessibleAtPoint( const awt::Point& rPoint ) throw (RuntimeException)
{
@@ -602,14 +602,14 @@ namespace accessibility
return xChild;
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::grabFocus( ) throw (RuntimeException)
{
// no focus
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleTabBarPageList::getForeground( ) throw (RuntimeException)
{
@@ -627,7 +627,7 @@ namespace accessibility
return nColor;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleTabBarPageList::getBackground( ) throw (RuntimeException)
{
@@ -645,9 +645,9 @@ namespace accessibility
return nColor;
}
- // -----------------------------------------------------------------------------
+
// XAccessibleExtendedComponent
- // -----------------------------------------------------------------------------
+
Reference< awt::XFont > AccessibleTabBarPageList::getFont( ) throw (RuntimeException)
{
@@ -665,7 +665,7 @@ namespace accessibility
return xFont;
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBarPageList::getTitledBorderText( ) throw (RuntimeException)
{
@@ -674,7 +674,7 @@ namespace accessibility
return OUString();
}
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabBarPageList::getToolTipText( ) throw (RuntimeException)
{
@@ -683,9 +683,9 @@ namespace accessibility
return OUString();
}
- // -----------------------------------------------------------------------------
+
// XAccessibleSelection
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -703,7 +703,7 @@ namespace accessibility
}
}
- // -----------------------------------------------------------------------------
+
sal_Bool AccessibleTabBarPageList::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -719,14 +719,14 @@ namespace accessibility
return bSelected;
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::clearAccessibleSelection( ) throw (RuntimeException)
{
// This method makes no sense in a TabBar, and so does nothing.
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::selectAllAccessibleChildren( ) throw (RuntimeException)
{
@@ -735,7 +735,7 @@ namespace accessibility
selectAccessibleChild( 0 );
}
- // -----------------------------------------------------------------------------
+
sal_Int32 AccessibleTabBarPageList::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
@@ -744,7 +744,7 @@ namespace accessibility
return 1;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleTabBarPageList::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -767,7 +767,7 @@ namespace accessibility
return xChild;
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabBarPageList::deselectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -779,7 +779,7 @@ namespace accessibility
// This method makes no sense in a TabBar, and so does nothing.
}
- // -----------------------------------------------------------------------------
+
//.........................................................................
} // namespace accessibility
diff --git a/accessibility/source/extended/accessibletablistbox.cxx b/accessibility/source/extended/accessibletablistbox.cxx
index a277a447f1aa..82d71cf3b5c6 100644
--- a/accessibility/source/extended/accessibletablistbox.cxx
+++ b/accessibility/source/extended/accessibletablistbox.cxx
@@ -35,9 +35,9 @@ namespace accessibility
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star;
- // -----------------------------------------------------------------------------
+
// Ctor() and Dtor()
- // -----------------------------------------------------------------------------
+
AccessibleTabListBox::AccessibleTabListBox( const Reference< XAccessible >& rxParent, SvHeaderTabListBox& rBox )
:AccessibleBrowseBox( rxParent, NULL, rBox )
,m_pTabListBox( &rBox )
@@ -50,7 +50,7 @@ namespace accessibility
osl_atomic_decrement( &m_refCount );
}
- // -----------------------------------------------------------------------------
+
AccessibleTabListBox::~AccessibleTabListBox()
{
if ( isAlive() )
@@ -60,7 +60,7 @@ namespace accessibility
dispose();
}
}
- // -----------------------------------------------------------------------------
+
AccessibleBrowseBoxTable* AccessibleTabListBox::createAccessibleTable()
{
return new AccessibleTabListBoxTable( this, *m_pTabListBox );
@@ -80,13 +80,13 @@ namespace accessibility
return 2; // header and table
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > SAL_CALL AccessibleTabListBox::getAccessibleContext() throw ( RuntimeException )
{
return this;
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL
AccessibleTabListBox::getAccessibleChild( sal_Int32 nChildIndex )
throw ( IndexOutOfBoundsException, RuntimeException )
diff --git a/accessibility/source/extended/accessibletablistboxtable.cxx b/accessibility/source/extended/accessibletablistboxtable.cxx
index a61e37a01fe4..b316a4a39d17 100644
--- a/accessibility/source/extended/accessibletablistboxtable.cxx
+++ b/accessibility/source/extended/accessibletablistboxtable.cxx
@@ -36,9 +36,9 @@ namespace accessibility
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star;
- // -----------------------------------------------------------------------------
+
// Ctor() and Dtor()
- // -----------------------------------------------------------------------------
+
AccessibleTabListBoxTable::AccessibleTabListBoxTable( const Reference< XAccessible >& rxParent, SvHeaderTabListBox& rBox ) :
AccessibleBrowseBoxTable( rxParent, rBox ),
@@ -48,7 +48,7 @@ namespace accessibility
{
m_pTabListBox->AddEventListener( LINK( this, AccessibleTabListBoxTable, WindowEventListener ) );
}
- // -----------------------------------------------------------------------------
+
AccessibleTabListBoxTable::~AccessibleTabListBoxTable()
{
if ( isAlive() )
@@ -60,7 +60,7 @@ namespace accessibility
dispose();
}
}
- // -----------------------------------------------------------------------------
+
void AccessibleTabListBoxTable::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
if ( isAlive() )
@@ -250,7 +250,7 @@ namespace accessibility
}
}
}
- // -----------------------------------------------------------------------------
+
IMPL_LINK( AccessibleTabListBoxTable, WindowEventListener, VclSimpleEvent*, pEvent )
{
OSL_ENSURE( pEvent && pEvent->ISA( VclWindowEvent ), "Unknown WindowEvent!" );
@@ -313,21 +313,21 @@ namespace accessibility
return 0;
}
- // -----------------------------------------------------------------------------
+
// XInterface & XTypeProvider
- // -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2(AccessibleTabListBoxTable, AccessibleBrowseBoxTable, AccessibleTabListBoxTableImplHelper)
IMPLEMENT_FORWARD_XTYPEPROVIDER2(AccessibleTabListBoxTable, AccessibleBrowseBoxTable, AccessibleTabListBoxTableImplHelper)
- // -----------------------------------------------------------------------------
+
// XServiceInfo
- // -----------------------------------------------------------------------------
+
OUString AccessibleTabListBoxTable::getImplementationName (void) throw (RuntimeException)
{
return OUString( "com.sun.star.comp.svtools.AccessibleTabListBoxTable" );
}
- // -----------------------------------------------------------------------------
+
// XAccessibleSelection
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleTabListBoxTable::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -338,7 +338,7 @@ namespace accessibility
implSelectRow( implGetRow( nChildIndex ), sal_True );
}
- // -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL AccessibleTabListBoxTable::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -349,7 +349,7 @@ namespace accessibility
return implIsRowSelected( implGetRow( nChildIndex ) );
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleTabListBoxTable::clearAccessibleSelection( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -359,7 +359,7 @@ namespace accessibility
m_pTabListBox->SetNoSelection();
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleTabListBoxTable::selectAllAccessibleChildren( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -369,7 +369,7 @@ namespace accessibility
m_pTabListBox->SelectAll();
}
- // -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL AccessibleTabListBoxTable::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -379,7 +379,7 @@ namespace accessibility
return implGetColumnCount() * implGetSelRowCount();
}
- // -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL AccessibleTabListBoxTable::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -395,7 +395,7 @@ namespace accessibility
sal_Int32 nColumn = nSelectedChildIndex / nRows;
return getAccessibleCellAt( nRow, nColumn );
}
- // -----------------------------------------------------------------------------
+
void SAL_CALL AccessibleTabListBoxTable::deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
diff --git a/accessibility/source/extended/listboxaccessible.cxx b/accessibility/source/extended/listboxaccessible.cxx
index d5ea35feebb6..e02a1d638225 100644
--- a/accessibility/source/extended/listboxaccessible.cxx
+++ b/accessibility/source/extended/listboxaccessible.cxx
@@ -20,22 +20,15 @@
#include <accessibility/extended/listboxaccessible.hxx>
#include <svtools/treelistbox.hxx>
-//........................................................................
namespace accessibility
{
-//........................................................................
-
- //====================================================================
- //= ListBoxAccessibleBase
- //====================================================================
- //--------------------------------------------------------------------
+ // ListBoxAccessibleBase
ListBoxAccessibleBase::ListBoxAccessibleBase( SvTreeListBox& _rWindow )
:m_pWindow( &_rWindow )
{
m_pWindow->AddEventListener( LINK( this, ListBoxAccessibleBase, WindowEventListener ) );
}
- //--------------------------------------------------------------------
ListBoxAccessibleBase::~ListBoxAccessibleBase( )
{
if ( m_pWindow )
@@ -47,7 +40,6 @@ namespace accessibility
}
}
- //--------------------------------------------------------------------
IMPL_LINK( ListBoxAccessibleBase, WindowEventListener, VclSimpleEvent*, pEvent )
{
OSL_ENSURE( pEvent && pEvent->ISA( VclWindowEvent ), "ListBoxAccessibleBase::WindowEventListener: unexpected WindowEvent!" );
@@ -61,7 +53,6 @@ namespace accessibility
return 0;
}
- // -----------------------------------------------------------------------------
void ListBoxAccessibleBase::disposing()
{
if ( m_pWindow )
@@ -69,7 +60,6 @@ namespace accessibility
m_pWindow = NULL;
}
- // -----------------------------------------------------------------------------
void ListBoxAccessibleBase::ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent )
{
if ( isAlive() )
@@ -87,9 +77,6 @@ namespace accessibility
}
}
}
-
-//........................................................................
} // namespace accessibility
-//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/helper/acc_factory.cxx b/accessibility/source/helper/acc_factory.cxx
index 640c2d58be79..f59ffe627643 100644
--- a/accessibility/source/helper/acc_factory.cxx
+++ b/accessibility/source/helper/acc_factory.cxx
@@ -63,7 +63,6 @@
#include "floatingwindowaccessible.hxx"
-//........................................................................
namespace accessibility
{
@@ -76,7 +75,6 @@ inline bool hasFloatingChild(Window *pWindow)
return false;
}
-//........................................................................
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::awt;
@@ -84,9 +82,7 @@ inline bool hasFloatingChild(Window *pWindow)
using namespace ::svt;
using namespace ::svt::table;
- //================================================================
- //= IAccessibleFactory
- //================================================================
+ // IAccessibleFactory
class AccessibleFactory :public ::toolkit::IAccessibleFactory
,public ::svt::IAccessibleFactory
{
@@ -230,25 +226,20 @@ inline bool hasFloatingChild(Window *pWindow)
virtual ~AccessibleFactory();
};
-
- //--------------------------------------------------------------------
AccessibleFactory::AccessibleFactory()
:m_refCount( 0 )
{
}
- //--------------------------------------------------------------------
AccessibleFactory::~AccessibleFactory()
{
}
- //--------------------------------------------------------------------
oslInterlockedCount SAL_CALL AccessibleFactory::acquire()
{
return osl_atomic_increment( &m_refCount );
}
- //--------------------------------------------------------------------
oslInterlockedCount SAL_CALL AccessibleFactory::release()
{
if ( 0 == osl_atomic_decrement( &m_refCount ) )
@@ -256,10 +247,10 @@ inline bool hasFloatingChild(Window *pWindow)
delete this;
return 0;
}
+
return m_refCount;
}
- //--------------------------------------------------------------------
Reference< XAccessible > AccessibleFactory::createAccessible( Menu* _pMenu, sal_Bool _bIsMenuBar )
{
OAccessibleMenuBaseComponent* pAccessible;
@@ -271,25 +262,21 @@ inline bool hasFloatingChild(Window *pWindow)
return pAccessible;
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLXButton* _pXWindow )
{
return new VCLXAccessibleButton( _pXWindow );
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLXCheckBox* _pXWindow )
{
return new VCLXAccessibleCheckBox( _pXWindow );
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLXRadioButton* _pXWindow )
{
return new VCLXAccessibleRadioButton( _pXWindow );
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLXListBox* _pXWindow )
{
sal_Bool bIsDropDownBox = sal_False;
@@ -303,31 +290,26 @@ inline bool hasFloatingChild(Window *pWindow)
return new VCLXAccessibleListBox( _pXWindow );
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLXFixedText* _pXWindow )
{
return new VCLXAccessibleFixedText( _pXWindow );
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLXFixedHyperlink* _pXWindow )
{
return new VCLXAccessibleFixedHyperlink( _pXWindow );
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLXScrollBar* _pXWindow )
{
return new VCLXAccessibleScrollBar( _pXWindow );
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLXEdit* _pXWindow )
{
return new VCLXAccessibleEdit( _pXWindow );
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLXComboBox* _pXWindow )
{
sal_Bool bIsDropDownBox = sal_False;
@@ -341,7 +323,6 @@ inline bool hasFloatingChild(Window *pWindow)
return new VCLXAccessibleComboBox( _pXWindow );
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLXWindow* _pXWindow )
{
Reference< XAccessibleContext > xContext;
@@ -364,22 +345,27 @@ inline bool hasFloatingChild(Window *pWindow)
}
}
}
+
else if ( nType == WINDOW_STATUSBAR )
{
xContext = (XAccessibleContext*) new VCLXAccessibleStatusBar( _pXWindow );
}
+
else if ( nType == WINDOW_TABCONTROL )
{
xContext = (XAccessibleContext*) new VCLXAccessibleTabControl( _pXWindow );
}
+
else if ( nType == WINDOW_TABPAGE && pWindow->GetAccessibleParentWindow() && pWindow->GetAccessibleParentWindow()->GetType() == WINDOW_TABCONTROL )
{
xContext = new VCLXAccessibleTabPageWindow( _pXWindow );
}
+
else if ( nType == WINDOW_FLOATINGWINDOW )
{
xContext = new FloatingWindowAccessible( _pXWindow );
}
+
else if ( nType == WINDOW_BORDERWINDOW && hasFloatingChild( pWindow ) )
{
// The logic here has to match that of Window::GetAccessibleParentWindow in
@@ -396,6 +382,7 @@ inline bool hasFloatingChild(Window *pWindow)
else
xContext = new FloatingWindowAccessible( _pXWindow );
}
+
else if ( ( nType == WINDOW_HELPTEXTWINDOW ) || ( nType == WINDOW_FIXEDLINE ) )
{
xContext = (accessibility::XAccessibleContext*) new VCLXAccessibleFixedText( _pXWindow );
@@ -405,65 +392,55 @@ inline bool hasFloatingChild(Window *pWindow)
xContext = (accessibility::XAccessibleContext*) new VCLXAccessibleComponent( _pXWindow );
}
}
-
return xContext;
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLXToolBox* _pXWindow )
{
return new VCLXAccessibleToolBox( _pXWindow );
}
- //--------------------------------------------------------------------
IAccessibleTabListBox* AccessibleFactory::createAccessibleTabListBox(
const Reference< XAccessible >& rxParent, SvHeaderTabListBox& rBox ) const
{
return new AccessibleTabListBox( rxParent, rBox );
}
- //--------------------------------------------------------------------
IAccessibleBrowseBox* AccessibleFactory::createAccessibleBrowseBox(
const Reference< XAccessible >& _rxParent, IAccessibleTableProvider& _rBrowseBox ) const
{
return new AccessibleBrowseBoxAccess( _rxParent, _rBrowseBox );
}
- //--------------------------------------------------------------------
IAccessibleTableControl* AccessibleFactory::createAccessibleTableControl(
const Reference< XAccessible >& _rxParent, IAccessibleTable& _rTable ) const
{
return new AccessibleGridControlAccess( _rxParent, _rTable );
}
- //--------------------------------------------------------------------
Reference< XAccessible > AccessibleFactory::createAccessibleIconChoiceCtrl(
SvtIconChoiceCtrl& _rIconCtrl, const Reference< XAccessible >& _xParent ) const
{
return new AccessibleIconChoiceCtrl( _rIconCtrl, _xParent );
}
- //--------------------------------------------------------------------
Reference< XAccessible > AccessibleFactory::createAccessibleTabBar( TabBar& _rTabBar ) const
{
return new AccessibleTabBar( &_rTabBar );
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleTextWindowContext(
VCLXWindow* pVclXWindow, TextEngine& rEngine, TextView& rView ) const
{
return new Document( pVclXWindow, rEngine, rView );
}
- //--------------------------------------------------------------------
Reference< XAccessible > AccessibleFactory::createAccessibleTreeListBox(
SvTreeListBox& _rListBox, const Reference< XAccessible >& _xParent ) const
{
return new AccessibleListBox( _rListBox, _xParent );
}
- //--------------------------------------------------------------------
Reference< XAccessible > AccessibleFactory::createAccessibleBrowseBoxHeaderBar(
const Reference< XAccessible >& rxParent, IAccessibleTableProvider& _rOwningTable,
AccessibleBrowseBoxObjType _eObjType ) const
@@ -471,7 +448,6 @@ inline bool hasFloatingChild(Window *pWindow)
return new AccessibleBrowseBoxHeaderBar( rxParent, _rOwningTable, _eObjType );
}
- //--------------------------------------------------------------------
Reference< XAccessible > AccessibleFactory::createAccessibleBrowseBoxTableCell(
const Reference< XAccessible >& _rxParent, IAccessibleTableProvider& _rBrowseBox,
const Reference< XWindow >& _xFocusWindow, sal_Int32 _nRowId, sal_uInt16 _nColId, sal_Int32 _nOffset ) const
@@ -480,7 +456,6 @@ inline bool hasFloatingChild(Window *pWindow)
_nRowId, _nColId, _nOffset );
}
- //--------------------------------------------------------------------
Reference< XAccessible > AccessibleFactory::createAccessibleBrowseBoxHeaderCell(
sal_Int32 _nColumnRowId, const Reference< XAccessible >& rxParent, IAccessibleTableProvider& _rBrowseBox,
const Reference< XWindow >& _xFocusWindow, AccessibleBrowseBoxObjType _eObjType ) const
@@ -489,7 +464,6 @@ inline bool hasFloatingChild(Window *pWindow)
_xFocusWindow, _eObjType );
}
- //--------------------------------------------------------------------
Reference< XAccessible > AccessibleFactory::createAccessibleCheckBoxCell(
const Reference< XAccessible >& _rxParent, IAccessibleTableProvider& _rBrowseBox,
const Reference< XWindow >& _xFocusWindow, sal_Int32 _nRowPos, sal_uInt16 _nColPos,
@@ -499,7 +473,6 @@ inline bool hasFloatingChild(Window *pWindow)
_nRowPos, _nColPos, _eState, _bIsTriState );
}
- //--------------------------------------------------------------------
Reference< XAccessible > AccessibleFactory::createEditBrowseBoxTableCellAccess(
const Reference< XAccessible >& _rxParent, const Reference< XAccessible >& _rxControlAccessible,
const Reference< XWindow >& _rxFocusWindow, IAccessibleTableProvider& _rBrowseBox,
@@ -509,27 +482,21 @@ inline bool hasFloatingChild(Window *pWindow)
_rxFocusWindow, _rBrowseBox, _nRowPos, _nColPos );
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleToolPanelDeck(
const Reference< XAccessible >& i_rAccessibleParent, ::svt::ToolPanelDeck& i_rPanelDeck )
{
return new AccessibleToolPanelDeck( i_rAccessibleParent, i_rPanelDeck );
}
- //--------------------------------------------------------------------
Reference< XAccessibleContext > AccessibleFactory::createAccessibleToolPanelTabBar(
const Reference< XAccessible >& i_rAccessibleParent, ::svt::IToolPanelDeck& i_rPanelDeck, ::svt::PanelTabBar& i_rTabBar )
{
return new AccessibleToolPanelTabBar( i_rAccessibleParent, i_rPanelDeck, i_rTabBar );
}
-//........................................................................
} // namespace accessibility
-//........................................................................
-//========================================================================
-
-/** this is the entry point to retrieve a factory for the toolkit-level Accessible/Contexts supplied
+/* this is the entry point to retrieve a factory for the toolkit-level Accessible/Contexts supplied
by this library
This function implements the factory function needed in toolkit
@@ -545,6 +512,7 @@ extern "C"
}
}
+
/** this is the entry point to retrieve a factory for the svtools-level Accessible/Contexts supplied
by this library
diff --git a/accessibility/source/helper/accresmgr.cxx b/accessibility/source/helper/accresmgr.cxx
index 2251266df119..e05cea6c38ad 100644
--- a/accessibility/source/helper/accresmgr.cxx
+++ b/accessibility/source/helper/accresmgr.cxx
@@ -24,20 +24,20 @@
#include <vcl/settings.hxx>
using namespace accessibility;
-// -----------------------------------------------------------------------------
+
// TkResMgr
-// -----------------------------------------------------------------------------
+
SimpleResMgr* TkResMgr::m_pImpl = NULL;
-// -----------------------------------------------------------------------------
+
TkResMgr::EnsureDelete::~EnsureDelete()
{
delete TkResMgr::m_pImpl;
}
-// -----------------------------------------------------------------------------
+
void TkResMgr::ensureImplExists()
{
@@ -53,7 +53,7 @@ void TkResMgr::ensureImplExists()
}
}
-// -----------------------------------------------------------------------------
+
OUString TkResMgr::loadString( sal_uInt16 nResId )
{
@@ -66,6 +66,6 @@ OUString TkResMgr::loadString( sal_uInt16 nResId )
return sReturn;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/accessiblemenubasecomponent.cxx b/accessibility/source/standard/accessiblemenubasecomponent.cxx
index b4d4dd953cf7..20783a889125 100644
--- a/accessibility/source/standard/accessiblemenubasecomponent.cxx
+++ b/accessibility/source/standard/accessiblemenubasecomponent.cxx
@@ -40,9 +40,9 @@ using namespace ::com::sun::star::accessibility;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// OAccessibleMenuBaseComponent
-// -----------------------------------------------------------------------------
+
OAccessibleMenuBaseComponent::OAccessibleMenuBaseComponent( Menu* pMenu )
:AccessibleExtendedComponentHelper_BASE( new VCLExternalSolarLock() )
@@ -62,7 +62,7 @@ OAccessibleMenuBaseComponent::OAccessibleMenuBaseComponent( Menu* pMenu )
}
}
-// -----------------------------------------------------------------------------
+
OAccessibleMenuBaseComponent::~OAccessibleMenuBaseComponent()
{
@@ -73,42 +73,42 @@ OAccessibleMenuBaseComponent::~OAccessibleMenuBaseComponent()
m_pExternalLock = NULL;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuBaseComponent::IsEnabled()
{
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuBaseComponent::IsFocused()
{
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuBaseComponent::IsVisible()
{
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuBaseComponent::IsSelected()
{
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuBaseComponent::IsChecked()
{
return sal_False;
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::SetStates()
{
@@ -119,7 +119,7 @@ void OAccessibleMenuBaseComponent::SetStates()
m_bChecked = IsChecked();
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::SetEnabled( sal_Bool bEnabled )
{
@@ -147,7 +147,7 @@ void OAccessibleMenuBaseComponent::SetEnabled( sal_Bool bEnabled )
}
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::SetFocused( sal_Bool bFocused )
{
@@ -163,7 +163,7 @@ void OAccessibleMenuBaseComponent::SetFocused( sal_Bool bFocused )
}
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::SetVisible( sal_Bool bVisible )
{
@@ -179,7 +179,7 @@ void OAccessibleMenuBaseComponent::SetVisible( sal_Bool bVisible )
}
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::SetSelected( sal_Bool bSelected )
{
@@ -195,7 +195,7 @@ void OAccessibleMenuBaseComponent::SetSelected( sal_Bool bSelected )
}
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::SetChecked( sal_Bool bChecked )
{
@@ -211,7 +211,7 @@ void OAccessibleMenuBaseComponent::SetChecked( sal_Bool bChecked )
}
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::UpdateEnabled( sal_Int32 i, sal_Bool bEnabled )
{
@@ -227,7 +227,7 @@ void OAccessibleMenuBaseComponent::UpdateEnabled( sal_Int32 i, sal_Bool bEnabled
}
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::UpdateFocused( sal_Int32 i, sal_Bool bFocused )
{
@@ -243,7 +243,7 @@ void OAccessibleMenuBaseComponent::UpdateFocused( sal_Int32 i, sal_Bool bFocused
}
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::UpdateVisible()
{
@@ -260,7 +260,7 @@ void OAccessibleMenuBaseComponent::UpdateVisible()
}
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::UpdateSelected( sal_Int32 i, sal_Bool bSelected )
{
@@ -278,7 +278,7 @@ void OAccessibleMenuBaseComponent::UpdateSelected( sal_Int32 i, sal_Bool bSelect
}
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::UpdateChecked( sal_Int32 i, sal_Bool bChecked )
{
@@ -294,7 +294,7 @@ void OAccessibleMenuBaseComponent::UpdateChecked( sal_Int32 i, sal_Bool bChecked
}
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::UpdateAccessibleName( sal_Int32 i )
{
@@ -310,7 +310,7 @@ void OAccessibleMenuBaseComponent::UpdateAccessibleName( sal_Int32 i )
}
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::UpdateItemText( sal_Int32 i )
{
@@ -326,14 +326,14 @@ void OAccessibleMenuBaseComponent::UpdateItemText( sal_Int32 i )
}
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OAccessibleMenuBaseComponent::GetChildCount()
{
return m_aAccessibleChildren.size();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > OAccessibleMenuBaseComponent::GetChild( sal_Int32 i )
{
@@ -376,7 +376,7 @@ Reference< XAccessible > OAccessibleMenuBaseComponent::GetChild( sal_Int32 i )
return xChild;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > OAccessibleMenuBaseComponent::GetChildAt( const awt::Point& rPoint )
{
@@ -403,7 +403,7 @@ Reference< XAccessible > OAccessibleMenuBaseComponent::GetChildAt( const awt::Po
return xChild;
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::InsertChild( sal_Int32 i )
{
@@ -438,7 +438,7 @@ void OAccessibleMenuBaseComponent::InsertChild( sal_Int32 i )
}
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::RemoveChild( sal_Int32 i )
{
@@ -476,14 +476,14 @@ void OAccessibleMenuBaseComponent::RemoveChild( sal_Int32 i )
}
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuBaseComponent::IsHighlighted()
{
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuBaseComponent::IsChildHighlighted()
{
@@ -506,7 +506,7 @@ sal_Bool OAccessibleMenuBaseComponent::IsChildHighlighted()
return bChildHighlighted;
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::SelectChild( sal_Int32 i )
{
@@ -519,7 +519,7 @@ void OAccessibleMenuBaseComponent::SelectChild( sal_Int32 i )
m_pMenu->HighlightItem( (sal_uInt16)i );
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::DeSelectAll()
{
@@ -527,7 +527,7 @@ void OAccessibleMenuBaseComponent::DeSelectAll()
m_pMenu->DeHighlight();
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuBaseComponent::IsChildSelected( sal_Int32 i )
{
@@ -539,32 +539,32 @@ sal_Bool OAccessibleMenuBaseComponent::IsChildSelected( sal_Int32 i )
return bSelected;
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::Select()
{
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::DeSelect()
{
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::Click()
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuBaseComponent::IsPopupMenuOpen()
{
return sal_False;
}
-// -----------------------------------------------------------------------------
+
IMPL_LINK( OAccessibleMenuBaseComponent, MenuEventListener, VclSimpleEvent*, pEvent )
{
@@ -577,7 +577,7 @@ IMPL_LINK( OAccessibleMenuBaseComponent, MenuEventListener, VclSimpleEvent*, pEv
return 0;
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::ProcessMenuEvent( const VclMenuEvent& rVclMenuEvent )
{
@@ -686,21 +686,21 @@ void OAccessibleMenuBaseComponent::ProcessMenuEvent( const VclMenuEvent& rVclMen
}
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( OAccessibleMenuBaseComponent, AccessibleExtendedComponentHelper_BASE, OAccessibleMenuBaseComponent_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OAccessibleMenuBaseComponent, AccessibleExtendedComponentHelper_BASE, OAccessibleMenuBaseComponent_BASE )
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuBaseComponent::disposing()
{
@@ -723,18 +723,18 @@ void OAccessibleMenuBaseComponent::disposing()
}
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuBaseComponent::supportsService( const OUString& rServiceName ) throw (RuntimeException)
{
return cppu::supportsService(this, rServiceName);
}
-// -----------------------------------------------------------------------------
+
// XAccessible
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > OAccessibleMenuBaseComponent::getAccessibleContext( ) throw (RuntimeException)
{
@@ -743,9 +743,9 @@ Reference< XAccessibleContext > OAccessibleMenuBaseComponent::getAccessibleConte
return this;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleStateSet > OAccessibleMenuBaseComponent::getAccessibleStateSet( ) throw (RuntimeException)
{
@@ -766,7 +766,7 @@ Reference< XAccessibleStateSet > OAccessibleMenuBaseComponent::getAccessibleStat
return xSet;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuBaseComponent::IsMenuHideDisabledEntries()
{
diff --git a/accessibility/source/standard/accessiblemenucomponent.cxx b/accessibility/source/standard/accessiblemenucomponent.cxx
index 1db0ff737867..2edd76c018fb 100644
--- a/accessibility/source/standard/accessiblemenucomponent.cxx
+++ b/accessibility/source/standard/accessiblemenucomponent.cxx
@@ -43,29 +43,29 @@ using namespace ::com::sun::star;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// class OAccessibleMenuComponent
-// -----------------------------------------------------------------------------
+
OAccessibleMenuComponent::OAccessibleMenuComponent( Menu* pMenu )
:OAccessibleMenuBaseComponent( pMenu )
{
}
-// -----------------------------------------------------------------------------
+
OAccessibleMenuComponent::~OAccessibleMenuComponent()
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuComponent::IsEnabled()
{
return sal_True;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuComponent::IsVisible()
{
@@ -77,7 +77,7 @@ sal_Bool OAccessibleMenuComponent::IsVisible()
return bVisible;
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuComponent::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -101,9 +101,9 @@ void OAccessibleMenuComponent::FillAccessibleStateSet( utl::AccessibleStateSetHe
rStateSet.AddState( AccessibleStateType::OPAQUE );
}
-// -----------------------------------------------------------------------------
+
// OCommonAccessibleComponent
-// -----------------------------------------------------------------------------
+
awt::Rectangle OAccessibleMenuComponent::implGetBounds() throw (RuntimeException)
{
@@ -138,21 +138,21 @@ awt::Rectangle OAccessibleMenuComponent::implGetBounds() throw (RuntimeException
return aBounds;
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( OAccessibleMenuComponent, OAccessibleMenuBaseComponent, OAccessibleMenuComponent_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OAccessibleMenuComponent, OAccessibleMenuBaseComponent, OAccessibleMenuComponent_BASE )
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int32 OAccessibleMenuComponent::getAccessibleChildCount() throw (RuntimeException)
{
@@ -161,7 +161,7 @@ sal_Int32 OAccessibleMenuComponent::getAccessibleChildCount() throw (RuntimeExce
return GetChildCount();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > OAccessibleMenuComponent::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -173,7 +173,7 @@ Reference< XAccessible > OAccessibleMenuComponent::getAccessibleChild( sal_Int32
return GetChild( i );
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > OAccessibleMenuComponent::getAccessibleParent( ) throw (RuntimeException)
{
@@ -195,7 +195,7 @@ Reference< XAccessible > OAccessibleMenuComponent::getAccessibleParent( ) throw
return xParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 OAccessibleMenuComponent::getAccessibleRole( ) throw (RuntimeException)
{
@@ -204,7 +204,7 @@ sal_Int16 OAccessibleMenuComponent::getAccessibleRole( ) throw (RuntimeExceptio
return AccessibleRole::UNKNOWN;
}
-// -----------------------------------------------------------------------------
+
OUString OAccessibleMenuComponent::getAccessibleDescription( ) throw (RuntimeException)
{
@@ -221,7 +221,7 @@ OUString OAccessibleMenuComponent::getAccessibleDescription( ) throw (RuntimeExc
return sDescription;
}
-// -----------------------------------------------------------------------------
+
OUString OAccessibleMenuComponent::getAccessibleName( ) throw (RuntimeException)
{
@@ -230,7 +230,7 @@ OUString OAccessibleMenuComponent::getAccessibleName( ) throw (RuntimeException
return OUString();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > OAccessibleMenuComponent::getAccessibleRelationSet( ) throw (RuntimeException)
{
@@ -241,7 +241,7 @@ Reference< XAccessibleRelationSet > OAccessibleMenuComponent::getAccessibleRelat
return xSet;
}
-// -----------------------------------------------------------------------------
+
Locale OAccessibleMenuComponent::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
@@ -250,9 +250,9 @@ Locale OAccessibleMenuComponent::getLocale( ) throw (IllegalAccessibleComponent
return Application::GetSettings().GetLanguageTag().getLocale();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleComponent
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > OAccessibleMenuComponent::getAccessibleAtPoint( const awt::Point& rPoint ) throw (RuntimeException)
{
@@ -261,7 +261,7 @@ Reference< XAccessible > OAccessibleMenuComponent::getAccessibleAtPoint( const a
return GetChildAt( rPoint );
}
-// -----------------------------------------------------------------------------
+
awt::Point OAccessibleMenuComponent::getLocationOnScreen( ) throw (RuntimeException)
{
@@ -282,7 +282,7 @@ awt::Point OAccessibleMenuComponent::getLocationOnScreen( ) throw (RuntimeExcep
return aPos;
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuComponent::grabFocus( ) throw (RuntimeException)
{
@@ -296,7 +296,7 @@ void OAccessibleMenuComponent::grabFocus( ) throw (RuntimeException)
}
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OAccessibleMenuComponent::getForeground( ) throw (RuntimeException)
{
@@ -308,7 +308,7 @@ sal_Int32 OAccessibleMenuComponent::getForeground( ) throw (RuntimeException)
return nColor;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OAccessibleMenuComponent::getBackground( ) throw (RuntimeException)
{
@@ -317,9 +317,9 @@ sal_Int32 OAccessibleMenuComponent::getBackground( ) throw (RuntimeException)
return 0;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleExtendedComponent
-// -----------------------------------------------------------------------------
+
Reference< awt::XFont > OAccessibleMenuComponent::getFont( ) throw (RuntimeException)
{
@@ -346,7 +346,7 @@ Reference< awt::XFont > OAccessibleMenuComponent::getFont( ) throw (RuntimeExce
return xFont;
}
-// -----------------------------------------------------------------------------
+
OUString OAccessibleMenuComponent::getTitledBorderText( ) throw (RuntimeException)
{
@@ -355,7 +355,7 @@ OUString OAccessibleMenuComponent::getTitledBorderText( ) throw (RuntimeExcepti
return OUString();
}
-// -----------------------------------------------------------------------------
+
OUString OAccessibleMenuComponent::getToolTipText( ) throw (RuntimeException)
{
@@ -364,9 +364,9 @@ OUString OAccessibleMenuComponent::getToolTipText( ) throw (RuntimeException)
return OUString();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleSelection
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuComponent::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -378,7 +378,7 @@ void OAccessibleMenuComponent::selectAccessibleChild( sal_Int32 nChildIndex ) th
SelectChild( nChildIndex );
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuComponent::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -390,7 +390,7 @@ sal_Bool OAccessibleMenuComponent::isAccessibleChildSelected( sal_Int32 nChildIn
return IsChildSelected( nChildIndex );
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuComponent::clearAccessibleSelection( ) throw (RuntimeException)
{
@@ -399,14 +399,14 @@ void OAccessibleMenuComponent::clearAccessibleSelection( ) throw (RuntimeExcept
DeSelectAll();
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuComponent::selectAllAccessibleChildren( ) throw (RuntimeException)
{
// This method makes no sense in a menu, and so does nothing.
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OAccessibleMenuComponent::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
@@ -423,7 +423,7 @@ sal_Int32 OAccessibleMenuComponent::getSelectedAccessibleChildCount( ) throw (R
return nRet;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > OAccessibleMenuComponent::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -446,7 +446,7 @@ Reference< XAccessible > OAccessibleMenuComponent::getSelectedAccessibleChild( s
return xChild;
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuComponent::deselectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -458,6 +458,6 @@ void OAccessibleMenuComponent::deselectAccessibleChild( sal_Int32 nChildIndex )
DeSelectAll();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/accessiblemenuitemcomponent.cxx b/accessibility/source/standard/accessiblemenuitemcomponent.cxx
index 1e0cdbca8f8c..6a3fea7ad38e 100644
--- a/accessibility/source/standard/accessiblemenuitemcomponent.cxx
+++ b/accessibility/source/standard/accessiblemenuitemcomponent.cxx
@@ -51,9 +51,9 @@ using namespace ::com::sun::star;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// class OAccessibleMenuItemComponent
-// -----------------------------------------------------------------------------
+
OAccessibleMenuItemComponent::OAccessibleMenuItemComponent( Menu* pParent, sal_uInt16 nItemPos, Menu* pMenu )
:OAccessibleMenuBaseComponent( pMenu )
@@ -64,13 +64,13 @@ OAccessibleMenuItemComponent::OAccessibleMenuItemComponent( Menu* pParent, sal_u
m_sItemText = GetItemText();
}
-// -----------------------------------------------------------------------------
+
OAccessibleMenuItemComponent::~OAccessibleMenuItemComponent()
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuItemComponent::IsEnabled()
{
@@ -83,7 +83,7 @@ sal_Bool OAccessibleMenuItemComponent::IsEnabled()
return bEnabled;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuItemComponent::IsVisible()
{
@@ -95,7 +95,7 @@ sal_Bool OAccessibleMenuItemComponent::IsVisible()
return bVisible;
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuItemComponent::Select()
{
@@ -113,7 +113,7 @@ void OAccessibleMenuItemComponent::Select()
m_pParent->HighlightItem( m_nItemPos );
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuItemComponent::DeSelect()
{
@@ -121,7 +121,7 @@ void OAccessibleMenuItemComponent::DeSelect()
m_pParent->DeHighlight();
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuItemComponent::Click()
{
@@ -169,14 +169,14 @@ void OAccessibleMenuItemComponent::Click()
}
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuItemComponent::SetItemPos( sal_uInt16 nItemPos )
{
m_nItemPos = nItemPos;
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuItemComponent::SetAccessibleName( const OUString& sAccessibleName )
{
@@ -190,7 +190,7 @@ void OAccessibleMenuItemComponent::SetAccessibleName( const OUString& sAccessibl
}
}
-// -----------------------------------------------------------------------------
+
OUString OAccessibleMenuItemComponent::GetAccessibleName()
{
@@ -207,7 +207,7 @@ OUString OAccessibleMenuItemComponent::GetAccessibleName()
return sName;
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuItemComponent::SetItemText( const OUString& sItemText )
{
@@ -219,7 +219,7 @@ void OAccessibleMenuItemComponent::SetItemText( const OUString& sItemText )
}
}
-// -----------------------------------------------------------------------------
+
OUString OAccessibleMenuItemComponent::GetItemText()
{
@@ -230,7 +230,7 @@ OUString OAccessibleMenuItemComponent::GetItemText()
return sText;
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuItemComponent::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -250,9 +250,9 @@ void OAccessibleMenuItemComponent::FillAccessibleStateSet( utl::AccessibleStateS
rStateSet.AddState( AccessibleStateType::OPAQUE );
}
-// -----------------------------------------------------------------------------
+
// OCommonAccessibleComponent
-// -----------------------------------------------------------------------------
+
awt::Rectangle OAccessibleMenuItemComponent::implGetBounds() throw (RuntimeException)
{
@@ -290,9 +290,9 @@ awt::Rectangle OAccessibleMenuItemComponent::implGetBounds() throw (RuntimeExcep
return aBounds;
}
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAccessibleMenuItemComponent::disposing()
{
@@ -303,9 +303,9 @@ void SAL_CALL OAccessibleMenuItemComponent::disposing()
m_sItemText = OUString();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int32 OAccessibleMenuItemComponent::getAccessibleChildCount() throw (RuntimeException)
{
@@ -314,7 +314,7 @@ sal_Int32 OAccessibleMenuItemComponent::getAccessibleChildCount() throw (Runtime
return 0;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > OAccessibleMenuItemComponent::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -326,7 +326,7 @@ Reference< XAccessible > OAccessibleMenuItemComponent::getAccessibleChild( sal_I
return Reference< XAccessible >();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > OAccessibleMenuItemComponent::getAccessibleParent( ) throw (RuntimeException)
{
@@ -335,7 +335,7 @@ Reference< XAccessible > OAccessibleMenuItemComponent::getAccessibleParent( ) t
return m_pParent->GetAccessible();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OAccessibleMenuItemComponent::getAccessibleIndexInParent( ) throw (RuntimeException)
{
@@ -344,7 +344,7 @@ sal_Int32 OAccessibleMenuItemComponent::getAccessibleIndexInParent( ) throw (Ru
return m_nItemPos;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 OAccessibleMenuItemComponent::getAccessibleRole( ) throw (RuntimeException)
{
@@ -353,7 +353,7 @@ sal_Int16 OAccessibleMenuItemComponent::getAccessibleRole( ) throw (RuntimeExce
return AccessibleRole::UNKNOWN;
}
-// -----------------------------------------------------------------------------
+
OUString OAccessibleMenuItemComponent::getAccessibleDescription( ) throw (RuntimeException)
{
@@ -366,7 +366,7 @@ OUString OAccessibleMenuItemComponent::getAccessibleDescription( ) throw (Runtim
return sDescription;
}
-// -----------------------------------------------------------------------------
+
OUString OAccessibleMenuItemComponent::getAccessibleName( ) throw (RuntimeException)
{
@@ -375,7 +375,7 @@ OUString OAccessibleMenuItemComponent::getAccessibleName( ) throw (RuntimeExcep
return m_sAccessibleName;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > OAccessibleMenuItemComponent::getAccessibleRelationSet( ) throw (RuntimeException)
{
@@ -386,7 +386,7 @@ Reference< XAccessibleRelationSet > OAccessibleMenuItemComponent::getAccessibleR
return xSet;
}
-// -----------------------------------------------------------------------------
+
Locale OAccessibleMenuItemComponent::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
@@ -395,9 +395,9 @@ Locale OAccessibleMenuItemComponent::getLocale( ) throw (IllegalAccessibleCompo
return Application::GetSettings().GetLanguageTag().getLocale();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleComponent
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > OAccessibleMenuItemComponent::getAccessibleAtPoint( const awt::Point& ) throw (RuntimeException)
{
@@ -406,14 +406,14 @@ Reference< XAccessible > OAccessibleMenuItemComponent::getAccessibleAtPoint( con
return Reference< XAccessible >();
}
-// -----------------------------------------------------------------------------
+
void OAccessibleMenuItemComponent::grabFocus( ) throw (RuntimeException)
{
// no focus for items
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OAccessibleMenuItemComponent::getForeground( ) throw (RuntimeException)
{
@@ -431,7 +431,7 @@ sal_Int32 OAccessibleMenuItemComponent::getForeground( ) throw (RuntimeExceptio
return nColor;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OAccessibleMenuItemComponent::getBackground( ) throw (RuntimeException)
{
@@ -449,9 +449,9 @@ sal_Int32 OAccessibleMenuItemComponent::getBackground( ) throw (RuntimeExceptio
return nColor;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleExtendedComponent
-// -----------------------------------------------------------------------------
+
Reference< awt::XFont > OAccessibleMenuItemComponent::getFont( ) throw (RuntimeException)
{
@@ -469,7 +469,7 @@ Reference< awt::XFont > OAccessibleMenuItemComponent::getFont( ) throw (Runtime
return xFont;
}
-// -----------------------------------------------------------------------------
+
OUString OAccessibleMenuItemComponent::getTitledBorderText( ) throw (RuntimeException)
{
@@ -478,7 +478,7 @@ OUString OAccessibleMenuItemComponent::getTitledBorderText( ) throw (RuntimeExc
return OUString();
}
-// -----------------------------------------------------------------------------
+
OUString OAccessibleMenuItemComponent::getToolTipText( ) throw (RuntimeException)
{
@@ -491,7 +491,7 @@ OUString OAccessibleMenuItemComponent::getToolTipText( ) throw (RuntimeExceptio
return sRet;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OAccessibleMenuItemComponent::IsMenuHideDisabledEntries()
{
diff --git a/accessibility/source/standard/floatingwindowaccessible.cxx b/accessibility/source/standard/floatingwindowaccessible.cxx
index be71fab38334..f75e7ce5b15a 100644
--- a/accessibility/source/standard/floatingwindowaccessible.cxx
+++ b/accessibility/source/standard/floatingwindowaccessible.cxx
@@ -19,7 +19,6 @@
#include <floatingwindowaccessible.hxx>
-
#include <com/sun/star/accessibility/AccessibleRelationType.hpp>
#include <unotools/accessiblerelationsethelper.hxx>
#include <vcl/window.hxx>
@@ -28,22 +27,14 @@ namespace uno = ::com::sun::star::uno;
using ::com::sun::star::accessibility::AccessibleRelation;
namespace AccessibleRelationType = ::com::sun::star::accessibility::AccessibleRelationType;
-
-//-------------------------------------------------------------------
-
FloatingWindowAccessible::FloatingWindowAccessible(VCLXWindow* pWindow) :
VCLXAccessibleComponent(pWindow)
{
}
-
-//-------------------------------------------------------------------
-
FloatingWindowAccessible::~FloatingWindowAccessible()
{
}
-//-------------------------------------------------------------------
-
void FloatingWindowAccessible::FillAccessibleRelationSet(utl::AccessibleRelationSetHelper& rRelationSet)
{
Window* pWindow = GetWindow();
diff --git a/accessibility/source/standard/vclxaccessiblebutton.cxx b/accessibility/source/standard/vclxaccessiblebutton.cxx
index d3509018a901..9bf3b8169647 100644
--- a/accessibility/source/standard/vclxaccessiblebutton.cxx
+++ b/accessibility/source/standard/vclxaccessiblebutton.cxx
@@ -39,22 +39,22 @@ using namespace ::com::sun::star::accessibility;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// VCLXAccessibleButton
-// -----------------------------------------------------------------------------
+
VCLXAccessibleButton::VCLXAccessibleButton( VCLXWindow* pVCLWindow )
:VCLXAccessibleTextComponent( pVCLWindow )
{
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleButton::~VCLXAccessibleButton()
{
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleButton::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
@@ -79,7 +79,7 @@ void VCLXAccessibleButton::ProcessWindowEvent( const VclWindowEvent& rVclWindowE
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleButton::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -108,28 +108,28 @@ void VCLXAccessibleButton::FillAccessibleStateSet( utl::AccessibleStateSetHelper
}
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleButton, VCLXAccessibleTextComponent, VCLXAccessibleButton_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleButton, VCLXAccessibleTextComponent, VCLXAccessibleButton_BASE )
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleButton::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleButton" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleButton::getSupportedServiceNames() throw (RuntimeException)
{
@@ -138,9 +138,9 @@ Sequence< OUString > VCLXAccessibleButton::getSupportedServiceNames() throw (Run
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleButton::getAccessibleName( ) throw (RuntimeException)
{
@@ -176,9 +176,9 @@ OUString VCLXAccessibleButton::getAccessibleName( ) throw (RuntimeException)
return aName;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleAction
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleButton::getAccessibleActionCount( ) throw (RuntimeException)
{
@@ -187,7 +187,7 @@ sal_Int32 VCLXAccessibleButton::getAccessibleActionCount( ) throw (RuntimeExcept
return 1;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleButton::doAccessibleAction ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -203,7 +203,7 @@ sal_Bool VCLXAccessibleButton::doAccessibleAction ( sal_Int32 nIndex ) throw (In
return sal_True;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleButton::getAccessibleActionDescription ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -215,7 +215,7 @@ OUString VCLXAccessibleButton::getAccessibleActionDescription ( sal_Int32 nIndex
return OUString( TK_RES_STRING( RID_STR_ACC_ACTION_CLICK ) );
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleKeyBinding > VCLXAccessibleButton::getAccessibleActionKeyBinding( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -254,9 +254,9 @@ Reference< XAccessibleKeyBinding > VCLXAccessibleButton::getAccessibleActionKeyB
return xKeyBinding;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleValue
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleButton::getCurrentValue( ) throw (RuntimeException)
{
@@ -271,7 +271,7 @@ Any VCLXAccessibleButton::getCurrentValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleButton::setCurrentValue( const Any& aNumber ) throw (RuntimeException)
{
@@ -297,7 +297,7 @@ sal_Bool VCLXAccessibleButton::setCurrentValue( const Any& aNumber ) throw (Runt
return bReturn;
}
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleButton::getMaximumValue( ) throw (RuntimeException)
{
@@ -309,7 +309,7 @@ Any VCLXAccessibleButton::getMaximumValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleButton::getMinimumValue( ) throw (RuntimeException)
{
@@ -321,6 +321,6 @@ Any VCLXAccessibleButton::getMinimumValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessiblecheckbox.cxx b/accessibility/source/standard/vclxaccessiblecheckbox.cxx
index fa59bcd4cf62..eaa7cc6e8f5c 100644
--- a/accessibility/source/standard/vclxaccessiblecheckbox.cxx
+++ b/accessibility/source/standard/vclxaccessiblecheckbox.cxx
@@ -41,9 +41,9 @@ using namespace ::com::sun::star::accessibility;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// VCLXAccessibleCheckBox
-// -----------------------------------------------------------------------------
+
VCLXAccessibleCheckBox::VCLXAccessibleCheckBox( VCLXWindow* pVCLWindow )
:VCLXAccessibleTextComponent( pVCLWindow )
@@ -52,13 +52,13 @@ VCLXAccessibleCheckBox::VCLXAccessibleCheckBox( VCLXWindow* pVCLWindow )
m_bIndeterminate = IsIndeterminate();
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleCheckBox::~VCLXAccessibleCheckBox()
{
}
-// -----------------------------------------------------------------------------
+
bool VCLXAccessibleCheckBox::IsChecked()
{
@@ -71,7 +71,7 @@ bool VCLXAccessibleCheckBox::IsChecked()
return bChecked;
}
-// -----------------------------------------------------------------------------
+
bool VCLXAccessibleCheckBox::IsIndeterminate()
{
@@ -84,7 +84,7 @@ bool VCLXAccessibleCheckBox::IsIndeterminate()
return bIndeterminate;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleCheckBox::SetChecked( bool bChecked )
{
@@ -100,7 +100,7 @@ void VCLXAccessibleCheckBox::SetChecked( bool bChecked )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleCheckBox::SetIndeterminate( bool bIndeterminate )
{
@@ -116,7 +116,7 @@ void VCLXAccessibleCheckBox::SetIndeterminate( bool bIndeterminate )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleCheckBox::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
@@ -133,7 +133,7 @@ void VCLXAccessibleCheckBox::ProcessWindowEvent( const VclWindowEvent& rVclWindo
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleCheckBox::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -148,28 +148,28 @@ void VCLXAccessibleCheckBox::FillAccessibleStateSet( utl::AccessibleStateSetHelp
rStateSet.AddState( AccessibleStateType::INDETERMINATE );
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleCheckBox, VCLXAccessibleTextComponent, VCLXAccessibleCheckBox_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleCheckBox, VCLXAccessibleTextComponent, VCLXAccessibleCheckBox_BASE )
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleCheckBox::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleCheckBox" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleCheckBox::getSupportedServiceNames() throw (RuntimeException)
{
@@ -178,9 +178,9 @@ Sequence< OUString > VCLXAccessibleCheckBox::getSupportedServiceNames() throw (R
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleAction
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleCheckBox::getAccessibleActionCount( ) throw (RuntimeException)
{
@@ -189,7 +189,7 @@ sal_Int32 VCLXAccessibleCheckBox::getAccessibleActionCount( ) throw (RuntimeExce
return 1;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleCheckBox::doAccessibleAction ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -221,7 +221,7 @@ sal_Bool VCLXAccessibleCheckBox::doAccessibleAction ( sal_Int32 nIndex ) throw (
return sal_True;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleCheckBox::getAccessibleActionDescription ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -236,7 +236,7 @@ OUString VCLXAccessibleCheckBox::getAccessibleActionDescription ( sal_Int32 nInd
return TK_RES_STRING( RID_STR_ACC_ACTION_CHECK );
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleKeyBinding > VCLXAccessibleCheckBox::getAccessibleActionKeyBinding( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -275,9 +275,9 @@ Reference< XAccessibleKeyBinding > VCLXAccessibleCheckBox::getAccessibleActionKe
return xKeyBinding;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleValue
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleCheckBox::getCurrentValue( ) throw (RuntimeException)
{
@@ -292,7 +292,7 @@ Any VCLXAccessibleCheckBox::getCurrentValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleCheckBox::setCurrentValue( const Any& aNumber ) throw (RuntimeException)
{
@@ -320,7 +320,7 @@ sal_Bool VCLXAccessibleCheckBox::setCurrentValue( const Any& aNumber ) throw (Ru
return bReturn;
}
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleCheckBox::getMaximumValue( ) throw (RuntimeException)
{
@@ -337,7 +337,7 @@ Any VCLXAccessibleCheckBox::getMaximumValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleCheckBox::getMinimumValue( ) throw (RuntimeException)
{
@@ -349,6 +349,6 @@ Any VCLXAccessibleCheckBox::getMinimumValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessibleedit.cxx b/accessibility/source/standard/vclxaccessibleedit.cxx
index b7e53761aa85..be40d5c43d1d 100644
--- a/accessibility/source/standard/vclxaccessibleedit.cxx
+++ b/accessibility/source/standard/vclxaccessibleedit.cxx
@@ -49,9 +49,9 @@ using namespace ::com::sun::star::accessibility;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// VCLXAccessibleEdit
-// -----------------------------------------------------------------------------
+
VCLXAccessibleEdit::VCLXAccessibleEdit( VCLXWindow* pVCLWindow )
:VCLXAccessibleTextComponent( pVCLWindow )
@@ -60,13 +60,13 @@ VCLXAccessibleEdit::VCLXAccessibleEdit( VCLXWindow* pVCLWindow )
m_nCaretPosition = getCaretPosition();
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleEdit::~VCLXAccessibleEdit()
{
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleEdit::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
@@ -109,7 +109,7 @@ void VCLXAccessibleEdit::ProcessWindowEvent( const VclWindowEvent& rVclWindowEve
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleEdit::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -125,9 +125,9 @@ void VCLXAccessibleEdit::FillAccessibleStateSet( utl::AccessibleStateSetHelper&
}
}
-// -----------------------------------------------------------------------------
+
// OCommonAccessibleText
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleEdit::implGetText()
{
@@ -152,7 +152,7 @@ OUString VCLXAccessibleEdit::implGetText()
return aText;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleEdit::implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex )
{
@@ -165,28 +165,28 @@ void VCLXAccessibleEdit::implGetSelection( sal_Int32& nStartIndex, sal_Int32& nE
nEndIndex = aSelection.Max;
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleEdit, VCLXAccessibleTextComponent, VCLXAccessibleEdit_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleEdit, VCLXAccessibleTextComponent, VCLXAccessibleEdit_BASE )
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleEdit::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleEdit" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleEdit::getSupportedServiceNames() throw (RuntimeException)
{
@@ -195,9 +195,9 @@ Sequence< OUString > VCLXAccessibleEdit::getSupportedServiceNames() throw (Runti
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleEdit::getAccessibleChildCount() throw (RuntimeException)
{
@@ -206,7 +206,7 @@ sal_Int32 VCLXAccessibleEdit::getAccessibleChildCount() throw (RuntimeException)
return 0;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleEdit::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -218,7 +218,7 @@ Reference< XAccessible > VCLXAccessibleEdit::getAccessibleChild( sal_Int32 i ) t
return Reference< XAccessible >();
}
-// -----------------------------------------------------------------------------
+
sal_Int16 VCLXAccessibleEdit::getAccessibleRole( ) throw (RuntimeException)
{
@@ -234,9 +234,9 @@ sal_Int16 VCLXAccessibleEdit::getAccessibleRole( ) throw (RuntimeException)
return nRole;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleAction
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleEdit::getAccessibleActionCount( ) throw (RuntimeException)
{
@@ -246,7 +246,7 @@ sal_Int32 VCLXAccessibleEdit::getAccessibleActionCount( ) throw (RuntimeExceptio
return 1;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleEdit::doAccessibleAction ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -266,7 +266,7 @@ sal_Bool VCLXAccessibleEdit::doAccessibleAction ( sal_Int32 nIndex ) throw (Inde
return bDoAction;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleEdit::getAccessibleActionDescription ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -279,7 +279,7 @@ OUString VCLXAccessibleEdit::getAccessibleActionDescription ( sal_Int32 nIndex )
return sAction;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleKeyBinding > VCLXAccessibleEdit::getAccessibleActionKeyBinding( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -291,23 +291,23 @@ Reference< XAccessibleKeyBinding > VCLXAccessibleEdit::getAccessibleActionKeyBin
return Reference< XAccessibleKeyBinding >();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleText
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleEdit::getCaretPosition( ) throw (RuntimeException)
{
return getSelectionEnd();
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleEdit::setCaretPosition( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
return setSelection( nIndex, nIndex );
}
-// -----------------------------------------------------------------------------
+
sal_Unicode VCLXAccessibleEdit::getCharacter( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -316,7 +316,7 @@ sal_Unicode VCLXAccessibleEdit::getCharacter( sal_Int32 nIndex ) throw (IndexOut
return VCLXAccessibleTextComponent::getCharacter( nIndex );
}
-// -----------------------------------------------------------------------------
+
Sequence< PropertyValue > VCLXAccessibleEdit::getCharacterAttributes( sal_Int32 nIndex, const Sequence< OUString >& aRequestedAttributes ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -325,7 +325,7 @@ Sequence< PropertyValue > VCLXAccessibleEdit::getCharacterAttributes( sal_Int32
return VCLXAccessibleTextComponent::getCharacterAttributes( nIndex, aRequestedAttributes );
}
-// -----------------------------------------------------------------------------
+
awt::Rectangle VCLXAccessibleEdit::getCharacterBounds( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -368,7 +368,7 @@ awt::Rectangle VCLXAccessibleEdit::getCharacterBounds( sal_Int32 nIndex ) throw
return aBounds;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleEdit::getCharacterCount( ) throw (RuntimeException)
{
@@ -377,7 +377,7 @@ sal_Int32 VCLXAccessibleEdit::getCharacterCount( ) throw (RuntimeException)
return VCLXAccessibleTextComponent::getCharacterCount();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleEdit::getIndexAtPoint( const awt::Point& aPoint ) throw (RuntimeException)
{
@@ -386,7 +386,7 @@ sal_Int32 VCLXAccessibleEdit::getIndexAtPoint( const awt::Point& aPoint ) throw
return VCLXAccessibleTextComponent::getIndexAtPoint( aPoint );
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleEdit::getSelectedText( ) throw (RuntimeException)
{
@@ -395,7 +395,7 @@ OUString VCLXAccessibleEdit::getSelectedText( ) throw (RuntimeException)
return VCLXAccessibleTextComponent::getSelectedText();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleEdit::getSelectionStart( ) throw (RuntimeException)
{
@@ -404,7 +404,7 @@ sal_Int32 VCLXAccessibleEdit::getSelectionStart( ) throw (RuntimeException)
return VCLXAccessibleTextComponent::getSelectionStart();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleEdit::getSelectionEnd( ) throw (RuntimeException)
{
@@ -413,7 +413,7 @@ sal_Int32 VCLXAccessibleEdit::getSelectionEnd( ) throw (RuntimeException)
return VCLXAccessibleTextComponent::getSelectionEnd();
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleEdit::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -436,7 +436,7 @@ sal_Bool VCLXAccessibleEdit::setSelection( sal_Int32 nStartIndex, sal_Int32 nEnd
return bReturn;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleEdit::getText( ) throw (RuntimeException)
{
@@ -445,7 +445,7 @@ OUString VCLXAccessibleEdit::getText( ) throw (RuntimeException)
return VCLXAccessibleTextComponent::getText();
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleEdit::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -454,7 +454,7 @@ OUString VCLXAccessibleEdit::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEnd
return VCLXAccessibleTextComponent::getTextRange( nStartIndex, nEndIndex );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::accessibility::TextSegment VCLXAccessibleEdit::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -463,7 +463,7 @@ OUString VCLXAccessibleEdit::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEnd
return VCLXAccessibleTextComponent::getTextAtIndex( nIndex, aTextType );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::accessibility::TextSegment VCLXAccessibleEdit::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -472,7 +472,7 @@ OUString VCLXAccessibleEdit::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEnd
return VCLXAccessibleTextComponent::getTextBeforeIndex( nIndex, aTextType );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::accessibility::TextSegment VCLXAccessibleEdit::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -481,7 +481,7 @@ OUString VCLXAccessibleEdit::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEnd
return VCLXAccessibleTextComponent::getTextBehindIndex( nIndex, aTextType );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleEdit::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -490,9 +490,9 @@ sal_Bool VCLXAccessibleEdit::copyText( sal_Int32 nStartIndex, sal_Int32 nEndInde
return VCLXAccessibleTextComponent::copyText( nStartIndex, nEndIndex );
}
-// -----------------------------------------------------------------------------
+
// XAccessibleEditableText
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleEdit::cutText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -501,7 +501,7 @@ sal_Bool VCLXAccessibleEdit::cutText( sal_Int32 nStartIndex, sal_Int32 nEndIndex
return copyText( nStartIndex, nEndIndex ) && deleteText( nStartIndex, nEndIndex );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleEdit::pasteText( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -535,7 +535,7 @@ sal_Bool VCLXAccessibleEdit::pasteText( sal_Int32 nIndex ) throw (IndexOutOfBoun
return bReturn;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleEdit::deleteText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -544,7 +544,7 @@ sal_Bool VCLXAccessibleEdit::deleteText( sal_Int32 nStartIndex, sal_Int32 nEndIn
return replaceText( nStartIndex, nEndIndex, OUString() );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleEdit::insertText( const OUString& sText, sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -553,7 +553,7 @@ sal_Bool VCLXAccessibleEdit::insertText( const OUString& sText, sal_Int32 nIndex
return replaceText( nIndex, nIndex, sText );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleEdit::replaceText( sal_Int32 nStartIndex, sal_Int32 nEndIndex, const OUString& sReplacement ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -580,7 +580,7 @@ sal_Bool VCLXAccessibleEdit::replaceText( sal_Int32 nStartIndex, sal_Int32 nEndI
return bReturn;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleEdit::setAttributes( sal_Int32 nStartIndex, sal_Int32 nEndIndex, const Sequence<PropertyValue>& ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -592,7 +592,7 @@ sal_Bool VCLXAccessibleEdit::setAttributes( sal_Int32 nStartIndex, sal_Int32 nEn
return sal_False; // attributes cannot be set for an edit
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleEdit::setText( const OUString& sText ) throw (RuntimeException)
{
@@ -610,6 +610,6 @@ sal_Bool VCLXAccessibleEdit::setText( const OUString& sText ) throw (RuntimeExce
return bSuccess;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx b/accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx
index 827ef624f97b..05035338b9cf 100644
--- a/accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx
+++ b/accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx
@@ -21,29 +21,29 @@
using namespace ::com::sun::star;
-// -----------------------------------------------------------------------------
+
// VCLXAccessibleFixedHyperlink
-// -----------------------------------------------------------------------------
+
VCLXAccessibleFixedHyperlink::VCLXAccessibleFixedHyperlink( VCLXWindow* pVCLWindow )
:VCLXAccessibleTextComponent( pVCLWindow )
{
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleFixedHyperlink::~VCLXAccessibleFixedHyperlink()
{
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleFixedHyperlink::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
VCLXAccessibleTextComponent::FillAccessibleStateSet( rStateSet );
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleFixedHyperlink::implGetLineBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex )
{
@@ -51,16 +51,16 @@ void VCLXAccessibleFixedHyperlink::implGetLineBoundary( i18n::Boundary& rBoundar
OCommonAccessibleText::implGetLineBoundary( rBoundary, nIndex );
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleFixedHyperlink::getImplementationName() throw (uno::RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleFixedHyperlink" );
}
-// -----------------------------------------------------------------------------
+
uno::Sequence< OUString > VCLXAccessibleFixedHyperlink::getSupportedServiceNames() throw (uno::RuntimeException)
{
@@ -69,6 +69,6 @@ uno::Sequence< OUString > VCLXAccessibleFixedHyperlink::getSupportedServiceNames
return aNames;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessiblefixedtext.cxx b/accessibility/source/standard/vclxaccessiblefixedtext.cxx
index 786ca60b48fc..e5c64f31596b 100644
--- a/accessibility/source/standard/vclxaccessiblefixedtext.cxx
+++ b/accessibility/source/standard/vclxaccessiblefixedtext.cxx
@@ -30,22 +30,22 @@ using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::accessibility;
-// -----------------------------------------------------------------------------
+
// VCLXAccessibleFixedText
-// -----------------------------------------------------------------------------
+
VCLXAccessibleFixedText::VCLXAccessibleFixedText( VCLXWindow* pVCLWindow )
:VCLXAccessibleTextComponent( pVCLWindow )
{
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleFixedText::~VCLXAccessibleFixedText()
{
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleFixedText::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -55,7 +55,7 @@ void VCLXAccessibleFixedText::FillAccessibleStateSet( utl::AccessibleStateSetHel
rStateSet.AddState( AccessibleStateType::MULTI_LINE );
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleFixedText::implGetLineBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex )
{
@@ -63,16 +63,16 @@ void VCLXAccessibleFixedText::implGetLineBoundary( i18n::Boundary& rBoundary, sa
OCommonAccessibleText::implGetLineBoundary( rBoundary, nIndex );
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleFixedText::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleFixedText" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleFixedText::getSupportedServiceNames() throw (RuntimeException)
{
@@ -81,6 +81,6 @@ Sequence< OUString > VCLXAccessibleFixedText::getSupportedServiceNames() throw (
return aNames;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx
index 44fb488b5698..91a44409be9e 100644
--- a/accessibility/source/standard/vclxaccessiblelist.cxx
+++ b/accessibility/source/standard/vclxaccessiblelist.cxx
@@ -94,19 +94,19 @@ VCLXAccessibleList::VCLXAccessibleList (VCLXWindow* pVCLWindow, BoxType aBoxType
sal_uInt16 nCount = static_cast<sal_uInt16>(getAccessibleChildCount());
m_aAccessibleChildren.reserve(nCount);
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleList::~VCLXAccessibleList (void)
{
delete m_pListBoxHelper;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleList::SetIndexInParent (sal_Int32 nIndex)
{
m_nIndexInParent = nIndex;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL VCLXAccessibleList::disposing (void)
{
@@ -118,14 +118,14 @@ void SAL_CALL VCLXAccessibleList::disposing (void)
delete m_pListBoxHelper;
m_pListBoxHelper = NULL;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleList::clearItems()
{
// Clear the list itself and delete all the rest.
ListItems().swap(m_aAccessibleChildren); // clear and minimize
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleList::FillAccessibleStateSet (utl::AccessibleStateSetHelper& rStateSet)
{
@@ -154,7 +154,7 @@ void VCLXAccessibleList::FillAccessibleStateSet (utl::AccessibleStateSetHelper&
rStateSet.AddState (AccessibleStateType::MANAGES_DESCENDANTS);
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleList::notifyVisibleStates(sal_Bool _bSetNew )
{
m_bVisible = _bSetNew ? true : false;
@@ -184,7 +184,7 @@ void VCLXAccessibleList::notifyVisibleStates(sal_Bool _bSetNew )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleList::UpdateSelection_Acc (::rtl::OUString sTextOfSelectedItem, bool b_IsDropDownList)
{
if ( m_aBoxType == COMBOBOX )
@@ -202,7 +202,7 @@ void VCLXAccessibleList::UpdateSelection_Acc (::rtl::OUString sTextOfSelectedIte
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleList::UpdateSelection_Impl_Acc(bool b_IsDropDownList)
{
uno::Any aOldValue, aNewValue;
@@ -340,7 +340,7 @@ void VCLXAccessibleList::UpdateFocus_Impl_Acc (sal_uInt16 nPos ,bool b_IsDropDow
aNewValue );
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleList::ProcessWindowEvent (const VclWindowEvent& rVclWindowEvent, bool b_IsDropDownList)
{
switch ( rVclWindowEvent.GetId() )
@@ -390,7 +390,7 @@ void VCLXAccessibleList::ProcessWindowEvent (const VclWindowEvent& rVclWindowEve
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleList::ProcessWindowEvent (const VclWindowEvent& rVclWindowEvent)
{
// Create a reference to this object to prevent an early release of the
@@ -483,7 +483,7 @@ void VCLXAccessibleList::ProcessWindowEvent (const VclWindowEvent& rVclWindowEve
VCLXAccessibleComponent::FillAccessibleRelationSet(rRelationSet);
}
}
-// -----------------------------------------------------------------------------
+
/** To find out which item is currently selected and to update the SELECTED
state of the associated accessibility objects accordingly we exploit the
@@ -506,7 +506,7 @@ void VCLXAccessibleList::UpdateSelection (OUString sTextOfSelectedItem)
}
}
-// -----------------------------------------------------------------------------
+
Reference<XAccessible> VCLXAccessibleList::CreateChild (sal_Int32 i)
{
@@ -554,7 +554,7 @@ Reference<XAccessible> VCLXAccessibleList::CreateChild (sal_Int32 i)
return xChild;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleList::HandleChangedItemList (bool /*bItemInserted*/, sal_Int32 /*nIndex*/)
{
@@ -563,7 +563,7 @@ void VCLXAccessibleList::HandleChangedItemList (bool /*bItemInserted*/, sal_Int3
AccessibleEventId::INVALIDATE_ALL_CHILDREN,
Any(), Any());
}
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2(VCLXAccessibleList, VCLXAccessibleComponent, VCLXAccessibleList_BASE)
IMPLEMENT_FORWARD_XTYPEPROVIDER2(VCLXAccessibleList, VCLXAccessibleComponent, VCLXAccessibleList_BASE)
@@ -576,7 +576,7 @@ Reference<XAccessibleContext> SAL_CALL
{
return this;
}
-// -----------------------------------------------------------------------------
+
//===== XAccessibleContext ==================================================
@@ -592,7 +592,7 @@ sal_Int32 SAL_CALL VCLXAccessibleList::getAccessibleChildCount (void)
return nCount;
}
-// -----------------------------------------------------------------------------
+
Reference<XAccessible> SAL_CALL VCLXAccessibleList::getAccessibleChild (sal_Int32 i)
throw (IndexOutOfBoundsException, RuntimeException)
@@ -616,7 +616,7 @@ Reference<XAccessible> SAL_CALL VCLXAccessibleList::getAccessibleChild (sal_Int3
OSL_ENSURE( xChild.is(), "VCLXAccessibleList::getAccessibleChild: returning empty child!" );
return xChild;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL VCLXAccessibleList::getAccessibleParent( )
throw (RuntimeException)
@@ -625,7 +625,7 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleList::getAccessibleParent( )
return m_xParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleList::getAccessibleIndexInParent (void)
throw (::com::sun::star::uno::RuntimeException)
@@ -635,14 +635,14 @@ sal_Int32 SAL_CALL VCLXAccessibleList::getAccessibleIndexInParent (void)
else
return VCLXAccessibleComponent::getAccessibleIndexInParent();
}
-// -----------------------------------------------------------------------------
+
sal_Int16 SAL_CALL VCLXAccessibleList::getAccessibleRole (void)
throw (RuntimeException)
{
return AccessibleRole::LIST;
}
-// -----------------------------------------------------------------------------
+
//===== XAccessibleComponent ================================================
@@ -662,7 +662,7 @@ sal_Bool SAL_CALL VCLXAccessibleList::contains( const awt::Point& rPoint ) throw
return bInside;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL VCLXAccessibleList::getAccessibleAt( const awt::Point& rPoint )
throw (RuntimeException)
@@ -691,7 +691,7 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleList::getAccessibleAt( const awt
return xChild;
}
-// -----------------------------------------------------------------------------
+
//===== XServiceInfo ==========================================================
@@ -700,7 +700,7 @@ OUString VCLXAccessibleList::getImplementationName (void)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleList" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleList::getSupportedServiceNames (void)
throw (RuntimeException)
@@ -711,7 +711,7 @@ Sequence< OUString > VCLXAccessibleList::getSupportedServiceNames (void)
aNames[nLength] = "com.sun.star.accessibility.AccessibleList";
return aNames;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleList::UpdateVisibleLineCount()
{
@@ -729,7 +729,7 @@ void VCLXAccessibleList::UpdateVisibleLineCount()
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleList::UpdateEntryRange_Impl()
{
SolarMutexGuard aSolarGuard;
@@ -760,7 +760,7 @@ void VCLXAccessibleList::UpdateEntryRange_Impl()
m_nLastTopEntry = nTop;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleList::checkEntrySelected(sal_uInt16 _nPos,Any& _rNewValue,Reference< XAccessible >& _rxNewAcc)
{
OSL_ENSURE(m_pListBoxHelper,"Helper is not valid!");
@@ -776,7 +776,7 @@ sal_Bool VCLXAccessibleList::checkEntrySelected(sal_uInt16 _nPos,Any& _rNewValue
}
return bNowSelected;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleList::UpdateSelection_Impl(sal_uInt16)
{
@@ -844,9 +844,9 @@ void VCLXAccessibleList::UpdateSelection_Impl(sal_uInt16)
}
}
-// -----------------------------------------------------------------------------
+
// XAccessibleSelection
-// -----------------------------------------------------------------------------
+
void SAL_CALL VCLXAccessibleList::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
sal_Bool bNotify = sal_False;
@@ -871,7 +871,7 @@ void SAL_CALL VCLXAccessibleList::selectAccessibleChild( sal_Int32 nChildIndex )
if ( bNotify )
UpdateSelection_Impl();
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL VCLXAccessibleList::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -886,7 +886,7 @@ sal_Bool SAL_CALL VCLXAccessibleList::isAccessibleChildSelected( sal_Int32 nChil
}
return bRet;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL VCLXAccessibleList::clearAccessibleSelection( ) throw (RuntimeException)
{
sal_Bool bNotify = sal_False;
@@ -905,7 +905,7 @@ void SAL_CALL VCLXAccessibleList::clearAccessibleSelection( ) throw (RuntimeExc
if ( bNotify )
UpdateSelection_Impl();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL VCLXAccessibleList::selectAllAccessibleChildren( ) throw (RuntimeException)
{
sal_Bool bNotify = sal_False;
@@ -930,7 +930,7 @@ void SAL_CALL VCLXAccessibleList::selectAllAccessibleChildren( ) throw (Runtime
if ( bNotify )
UpdateSelection_Impl();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleList::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -941,7 +941,7 @@ sal_Int32 SAL_CALL VCLXAccessibleList::getSelectedAccessibleChildCount( ) throw
nCount = m_pListBoxHelper->GetSelectEntryCount();
return nCount;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL VCLXAccessibleList::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -955,7 +955,7 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleList::getSelectedAccessibleChild
return NULL;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL VCLXAccessibleList::deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
sal_Bool bNotify = sal_False;
@@ -980,7 +980,7 @@ void SAL_CALL VCLXAccessibleList::deselectAccessibleChild( sal_Int32 nSelectedCh
if ( bNotify )
UpdateSelection_Impl();
}
-// -----------------------------------------------------------------------------
+
awt::Rectangle VCLXAccessibleList::implGetBounds() throw (uno::RuntimeException)
{
awt::Rectangle aBounds ( 0, 0, 0, 0 );
@@ -1009,7 +1009,7 @@ awt::Rectangle VCLXAccessibleList::implGetBounds() throw (uno::RuntimeException)
}
return aBounds;
}
-// -----------------------------------------------------------------------------
+
awt::Point VCLXAccessibleList::getLocationOnScreen( ) throw (uno::RuntimeException)
{
@@ -1038,14 +1038,14 @@ awt::Point VCLXAccessibleList::getLocationOnScreen( ) throw (uno::RuntimeExcept
return aPos;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleList::IsInDropDown()
{
return m_pListBoxHelper->IsInDropDown();
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleList::HandleDropOpen()
{
diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx
index 21e1d45da04e..b1e4c6dce484 100644
--- a/accessibility/source/standard/vclxaccessiblelistitem.cxx
+++ b/accessibility/source/standard/vclxaccessiblelistitem.cxx
@@ -58,9 +58,9 @@ using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star;
-// -----------------------------------------------------------------------------
+
// Ctor() and Dtor()
-// -----------------------------------------------------------------------------
+
VCLXAccessibleListItem::VCLXAccessibleListItem( ::accessibility::IComboListBoxHelper* _pListBoxHelper, sal_Int32 _nIndexInParent, const Reference< XAccessible >& _xParent ) :
VCLXAccessibleListItem_BASE ( m_aMutex ),
@@ -79,11 +79,11 @@ VCLXAccessibleListItem::VCLXAccessibleListItem( ::accessibility::IComboListBoxHe
if ( m_pListBoxHelper )
m_sEntryText = m_pListBoxHelper->GetEntry( (sal_uInt16)_nIndexInParent );
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleListItem::~VCLXAccessibleListItem()
{
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleListItem::SetSelected( sal_Bool _bSelected )
{
if ( m_bSelected != _bSelected )
@@ -98,7 +98,7 @@ void VCLXAccessibleListItem::SetSelected( sal_Bool _bSelected )
NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleListItem::SetVisible( sal_Bool _bVisible )
{
if ( m_bVisible != _bVisible )
@@ -111,7 +111,7 @@ void VCLXAccessibleListItem::SetVisible( sal_Bool _bVisible )
NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleListItem::NotifyAccessibleEvent( sal_Int16 _nEventId,
const ::com::sun::star::uno::Any& _aOldValue,
const ::com::sun::star::uno::Any& _aNewValue )
@@ -125,49 +125,49 @@ void VCLXAccessibleListItem::NotifyAccessibleEvent( sal_Int16 _nEventId,
if (m_nClientId)
comphelper::AccessibleEventNotifier::addEvent( m_nClientId, aEvt );
}
-// -----------------------------------------------------------------------------
+
// OCommonAccessibleText
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleListItem::implGetText()
{
return m_sEntryText;
}
-// -----------------------------------------------------------------------------
+
Locale VCLXAccessibleListItem::implGetLocale()
{
return Application::GetSettings().GetLanguageTag().getLocale();
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleListItem::implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex )
{
nStartIndex = 0;
nEndIndex = 0;
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
Any SAL_CALL VCLXAccessibleListItem::queryInterface( Type const & rType ) throw (RuntimeException)
{
return VCLXAccessibleListItem_BASE::queryInterface( rType );
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL VCLXAccessibleListItem::acquire() throw ()
{
VCLXAccessibleListItem_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL VCLXAccessibleListItem::release() throw ()
{
VCLXAccessibleListItem_BASE::release();
}
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL VCLXAccessibleListItem::getTypes( ) throw (RuntimeException)
{
return VCLXAccessibleListItem_BASE::getTypes();
}
-// -----------------------------------------------------------------------------
+
Sequence< sal_Int8 > VCLXAccessibleListItem::getImplementationId() throw (RuntimeException)
{
static ::cppu::OImplementationId* pId = NULL;
@@ -184,9 +184,9 @@ Sequence< sal_Int8 > VCLXAccessibleListItem::getImplementationId() throw (Runtim
}
return pId->getImplementationId();
}
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
+
void SAL_CALL VCLXAccessibleListItem::disposing()
{
comphelper::AccessibleEventNotifier::TClientId nId( 0 );
@@ -210,19 +210,19 @@ void SAL_CALL VCLXAccessibleListItem::disposing()
if ( nId )
comphelper::AccessibleEventNotifier::revokeClientNotifyDisposing( nId, *this );
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleListItem::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleListItem" );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleListItem::supportsService( const OUString& rServiceName ) throw (RuntimeException)
{
return cppu::supportsService(this, rServiceName);
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleListItem::getSupportedServiceNames() throw (RuntimeException)
{
Sequence< OUString > aNames(3);
@@ -231,51 +231,51 @@ Sequence< OUString > VCLXAccessibleListItem::getSupportedServiceNames() throw (R
aNames[2] = "com.sun.star.accessibility.AccessibleListItem";
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessible
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > SAL_CALL VCLXAccessibleListItem::getAccessibleContext( ) throw (RuntimeException)
{
return this;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleListItem::getAccessibleChildCount( ) throw (RuntimeException)
{
return 0;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL VCLXAccessibleListItem::getAccessibleChild( sal_Int32 ) throw (RuntimeException)
{
return Reference< XAccessible >();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL VCLXAccessibleListItem::getAccessibleParent( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
return m_xParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleListItem::getAccessibleIndexInParent( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
return m_nIndexInParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 SAL_CALL VCLXAccessibleListItem::getAccessibleRole( ) throw (RuntimeException)
{
return AccessibleRole::LIST_ITEM;
// return AccessibleRole::LABEL;
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL VCLXAccessibleListItem::getAccessibleDescription( ) throw (RuntimeException)
{
// no description for every item
return OUString();
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL VCLXAccessibleListItem::getAccessibleName( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -283,14 +283,14 @@ OUString SAL_CALL VCLXAccessibleListItem::getAccessibleName( ) throw (RuntimeEx
// entry text == accessible name
return implGetText();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > SAL_CALL VCLXAccessibleListItem::getAccessibleRelationSet( ) throw (RuntimeException)
{
utl::AccessibleRelationSetHelper* pRelationSetHelper = new utl::AccessibleRelationSetHelper;
Reference< XAccessibleRelationSet > xSet = pRelationSetHelper;
return xSet;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleStateSet > SAL_CALL VCLXAccessibleListItem::getAccessibleStateSet( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -322,7 +322,7 @@ Reference< XAccessibleStateSet > SAL_CALL VCLXAccessibleListItem::getAccessibleS
return xStateSet;
}
-// -----------------------------------------------------------------------------
+
Locale SAL_CALL VCLXAccessibleListItem::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -330,9 +330,9 @@ Locale SAL_CALL VCLXAccessibleListItem::getLocale( ) throw (IllegalAccessibleCo
return implGetLocale();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleComponent
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL VCLXAccessibleListItem::containsPoint( const awt::Point& _aPoint ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -347,12 +347,12 @@ sal_Bool SAL_CALL VCLXAccessibleListItem::containsPoint( const awt::Point& _aPoi
}
return bInside;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL VCLXAccessibleListItem::getAccessibleAtPoint( const awt::Point& ) throw (RuntimeException)
{
return Reference< XAccessible >();
}
-// -----------------------------------------------------------------------------
+
awt::Rectangle SAL_CALL VCLXAccessibleListItem::getBounds( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -364,7 +364,7 @@ awt::Rectangle SAL_CALL VCLXAccessibleListItem::getBounds( ) throw (RuntimeExce
return aRect;
}
-// -----------------------------------------------------------------------------
+
awt::Point SAL_CALL VCLXAccessibleListItem::getLocation( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -378,7 +378,7 @@ awt::Point SAL_CALL VCLXAccessibleListItem::getLocation( ) throw (RuntimeExcept
}
return AWTPoint( aPoint );
}
-// -----------------------------------------------------------------------------
+
awt::Point SAL_CALL VCLXAccessibleListItem::getLocationOnScreen( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -393,7 +393,7 @@ awt::Point SAL_CALL VCLXAccessibleListItem::getLocationOnScreen( ) throw (Runti
}
return AWTPoint( aPoint );
}
-// -----------------------------------------------------------------------------
+
awt::Size SAL_CALL VCLXAccessibleListItem::getSize( ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -405,19 +405,19 @@ awt::Size SAL_CALL VCLXAccessibleListItem::getSize( ) throw (RuntimeException)
return AWTSize( aSize );
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL VCLXAccessibleListItem::grabFocus( ) throw (RuntimeException)
{
// no focus for each item
}
-// -----------------------------------------------------------------------------
+
// XAccessibleText
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleListItem::getCaretPosition() throw (RuntimeException)
{
return -1;
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL VCLXAccessibleListItem::setCaretPosition( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -428,7 +428,7 @@ sal_Bool SAL_CALL VCLXAccessibleListItem::setCaretPosition( sal_Int32 nIndex ) t
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Unicode SAL_CALL VCLXAccessibleListItem::getCharacter( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -436,7 +436,7 @@ sal_Unicode SAL_CALL VCLXAccessibleListItem::getCharacter( sal_Int32 nIndex ) th
return OCommonAccessibleText::getCharacter( nIndex );
}
-// -----------------------------------------------------------------------------
+
Sequence< PropertyValue > SAL_CALL VCLXAccessibleListItem::getCharacterAttributes( sal_Int32 nIndex, const Sequence< OUString >& ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -448,7 +448,7 @@ Sequence< PropertyValue > SAL_CALL VCLXAccessibleListItem::getCharacterAttribute
return Sequence< PropertyValue >();
}
-// -----------------------------------------------------------------------------
+
awt::Rectangle SAL_CALL VCLXAccessibleListItem::getCharacterBounds( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -469,7 +469,7 @@ awt::Rectangle SAL_CALL VCLXAccessibleListItem::getCharacterBounds( sal_Int32 nI
return aBounds;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleListItem::getCharacterCount() throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -477,7 +477,7 @@ sal_Int32 SAL_CALL VCLXAccessibleListItem::getCharacterCount() throw (RuntimeExc
return OCommonAccessibleText::getCharacterCount();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleListItem::getIndexAtPoint( const awt::Point& aPoint ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -496,7 +496,7 @@ sal_Int32 SAL_CALL VCLXAccessibleListItem::getIndexAtPoint( const awt::Point& aP
}
return nIndex;
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL VCLXAccessibleListItem::getSelectedText() throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -504,7 +504,7 @@ OUString SAL_CALL VCLXAccessibleListItem::getSelectedText() throw (RuntimeExcept
return OCommonAccessibleText::getSelectedText();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleListItem::getSelectionStart() throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -512,7 +512,7 @@ sal_Int32 SAL_CALL VCLXAccessibleListItem::getSelectionStart() throw (RuntimeExc
return OCommonAccessibleText::getSelectionStart();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleListItem::getSelectionEnd() throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -520,7 +520,7 @@ sal_Int32 SAL_CALL VCLXAccessibleListItem::getSelectionEnd() throw (RuntimeExcep
return OCommonAccessibleText::getSelectionEnd();
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL VCLXAccessibleListItem::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -531,7 +531,7 @@ sal_Bool SAL_CALL VCLXAccessibleListItem::setSelection( sal_Int32 nStartIndex, s
return sal_False;
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL VCLXAccessibleListItem::getText() throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -539,7 +539,7 @@ OUString SAL_CALL VCLXAccessibleListItem::getText() throw (RuntimeException)
return OCommonAccessibleText::getText();
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL VCLXAccessibleListItem::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -547,7 +547,7 @@ OUString SAL_CALL VCLXAccessibleListItem::getTextRange( sal_Int32 nStartIndex, s
return OCommonAccessibleText::getTextRange( nStartIndex, nEndIndex );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::accessibility::TextSegment SAL_CALL VCLXAccessibleListItem::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -555,7 +555,7 @@ OUString SAL_CALL VCLXAccessibleListItem::getTextRange( sal_Int32 nStartIndex, s
return OCommonAccessibleText::getTextAtIndex( nIndex, aTextType );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::accessibility::TextSegment SAL_CALL VCLXAccessibleListItem::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -563,7 +563,7 @@ OUString SAL_CALL VCLXAccessibleListItem::getTextRange( sal_Int32 nStartIndex, s
return OCommonAccessibleText::getTextBeforeIndex( nIndex, aTextType );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::accessibility::TextSegment SAL_CALL VCLXAccessibleListItem::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -571,7 +571,7 @@ OUString SAL_CALL VCLXAccessibleListItem::getTextRange( sal_Int32 nStartIndex, s
return OCommonAccessibleText::getTextBehindIndex( nIndex, aTextType );
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL VCLXAccessibleListItem::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -602,9 +602,9 @@ sal_Bool SAL_CALL VCLXAccessibleListItem::copyText( sal_Int32 nStartIndex, sal_I
return bRet;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleEventBroadcaster
-// -----------------------------------------------------------------------------
+
void SAL_CALL VCLXAccessibleListItem::addAccessibleEventListener( const Reference< XAccessibleEventListener >& xListener ) throw (RuntimeException)
{
if (xListener.is())
@@ -614,7 +614,7 @@ void SAL_CALL VCLXAccessibleListItem::addAccessibleEventListener( const Referenc
comphelper::AccessibleEventNotifier::addEventListener( m_nClientId, xListener );
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL VCLXAccessibleListItem::removeAccessibleEventListener( const Reference< XAccessibleEventListener >& xListener ) throw (RuntimeException)
{
if ( xListener.is() && m_nClientId )
@@ -635,7 +635,7 @@ void SAL_CALL VCLXAccessibleListItem::removeAccessibleEventListener( const Refer
}
}
}
-// -----------------------------------------------------------------------------
+
@@ -656,6 +656,6 @@ sal_Int32 SAL_CALL VCLXAccessibleListItem::getBackground (void)
{
return COL_WHITE;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessiblemenu.cxx b/accessibility/source/standard/vclxaccessiblemenu.cxx
index 3ccbf7c2cfe1..8dba21b894f4 100644
--- a/accessibility/source/standard/vclxaccessiblemenu.cxx
+++ b/accessibility/source/standard/vclxaccessiblemenu.cxx
@@ -30,22 +30,22 @@ using namespace ::com::sun::star::accessibility;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// VCLXAccessibleMenu
-// -----------------------------------------------------------------------------
+
VCLXAccessibleMenu::VCLXAccessibleMenu( Menu* pParent, sal_uInt16 nItemPos, Menu* pMenu )
:VCLXAccessibleMenuItem( pParent, nItemPos, pMenu )
{
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleMenu::~VCLXAccessibleMenu()
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleMenu::IsFocused()
{
@@ -57,7 +57,7 @@ sal_Bool VCLXAccessibleMenu::IsFocused()
return bFocused;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleMenu::IsPopupMenuOpen()
{
@@ -73,28 +73,28 @@ sal_Bool VCLXAccessibleMenu::IsPopupMenuOpen()
return bPopupMenuOpen;
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleMenu, VCLXAccessibleMenuItem, VCLXAccessibleMenu_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleMenu, VCLXAccessibleMenuItem, VCLXAccessibleMenu_BASE )
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleMenu::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleMenu" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleMenu::getSupportedServiceNames() throw (RuntimeException)
{
@@ -103,9 +103,9 @@ Sequence< OUString > VCLXAccessibleMenu::getSupportedServiceNames() throw (Runti
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleMenu::getAccessibleChildCount( ) throw (RuntimeException)
{
@@ -114,7 +114,7 @@ sal_Int32 VCLXAccessibleMenu::getAccessibleChildCount( ) throw (RuntimeExceptio
return GetChildCount();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleMenu::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -126,7 +126,7 @@ Reference< XAccessible > VCLXAccessibleMenu::getAccessibleChild( sal_Int32 i ) t
return GetChild( i );
}
-// -----------------------------------------------------------------------------
+
sal_Int16 VCLXAccessibleMenu::getAccessibleRole( ) throw (RuntimeException)
{
@@ -135,9 +135,9 @@ sal_Int16 VCLXAccessibleMenu::getAccessibleRole( ) throw (RuntimeException)
return AccessibleRole::MENU;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleComponent
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleMenu::getAccessibleAtPoint( const awt::Point& rPoint ) throw (RuntimeException)
{
@@ -146,9 +146,9 @@ Reference< XAccessible > VCLXAccessibleMenu::getAccessibleAtPoint( const awt::Po
return GetChildAt( rPoint );
}
-// -----------------------------------------------------------------------------
+
// XAccessibleSelection
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleMenu::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -160,7 +160,7 @@ void VCLXAccessibleMenu::selectAccessibleChild( sal_Int32 nChildIndex ) throw (I
SelectChild( nChildIndex );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleMenu::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -172,7 +172,7 @@ sal_Bool VCLXAccessibleMenu::isAccessibleChildSelected( sal_Int32 nChildIndex )
return IsChildSelected( nChildIndex );
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleMenu::clearAccessibleSelection( ) throw (RuntimeException)
{
@@ -181,14 +181,14 @@ void VCLXAccessibleMenu::clearAccessibleSelection( ) throw (RuntimeException)
DeSelectAll();
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleMenu::selectAllAccessibleChildren( ) throw (RuntimeException)
{
// This method makes no sense in a menu, and so does nothing.
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleMenu::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
@@ -205,7 +205,7 @@ sal_Int32 VCLXAccessibleMenu::getSelectedAccessibleChildCount( ) throw (Runtime
return nRet;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleMenu::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -228,7 +228,7 @@ Reference< XAccessible > VCLXAccessibleMenu::getSelectedAccessibleChild( sal_Int
return xChild;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleMenu::deselectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -240,7 +240,7 @@ void VCLXAccessibleMenu::deselectAccessibleChild( sal_Int32 nChildIndex ) throw
DeSelectAll();
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleMenu::getAccessibleActionDescription ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
diff --git a/accessibility/source/standard/vclxaccessiblemenubar.cxx b/accessibility/source/standard/vclxaccessiblemenubar.cxx
index 740ce1a5804e..3ba4c19eb30c 100644
--- a/accessibility/source/standard/vclxaccessiblemenubar.cxx
+++ b/accessibility/source/standard/vclxaccessiblemenubar.cxx
@@ -31,9 +31,9 @@ using namespace ::com::sun::star;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// class VCLXAccessibleMenuBar
-// -----------------------------------------------------------------------------
+
VCLXAccessibleMenuBar::VCLXAccessibleMenuBar( Menu* pMenu )
:OAccessibleMenuComponent( pMenu )
@@ -51,7 +51,7 @@ VCLXAccessibleMenuBar::VCLXAccessibleMenuBar( Menu* pMenu )
}
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleMenuBar::~VCLXAccessibleMenuBar()
{
@@ -59,7 +59,7 @@ VCLXAccessibleMenuBar::~VCLXAccessibleMenuBar()
m_pWindow->RemoveEventListener( LINK( this, VCLXAccessibleMenuBar, WindowEventListener ) );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleMenuBar::IsFocused()
{
@@ -71,7 +71,7 @@ sal_Bool VCLXAccessibleMenuBar::IsFocused()
return bFocused;
}
-// -----------------------------------------------------------------------------
+
IMPL_LINK( VCLXAccessibleMenuBar, WindowEventListener, VclSimpleEvent*, pEvent )
{
@@ -87,7 +87,7 @@ IMPL_LINK( VCLXAccessibleMenuBar, WindowEventListener, VclSimpleEvent*, pEvent )
return 0;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleMenuBar::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
@@ -115,9 +115,9 @@ void VCLXAccessibleMenuBar::ProcessWindowEvent( const VclWindowEvent& rVclWindow
}
}
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleMenuBar::disposing()
{
@@ -130,16 +130,16 @@ void VCLXAccessibleMenuBar::disposing()
}
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleMenuBar::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleMenuBar" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleMenuBar::getSupportedServiceNames() throw (RuntimeException)
{
@@ -148,9 +148,9 @@ Sequence< OUString > VCLXAccessibleMenuBar::getSupportedServiceNames() throw (Ru
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleMenuBar::getAccessibleIndexInParent( ) throw (RuntimeException)
{
@@ -182,7 +182,7 @@ sal_Int32 VCLXAccessibleMenuBar::getAccessibleIndexInParent( ) throw (RuntimeEx
return nIndexInParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 VCLXAccessibleMenuBar::getAccessibleRole( ) throw (RuntimeException)
{
@@ -191,9 +191,9 @@ sal_Int16 VCLXAccessibleMenuBar::getAccessibleRole( ) throw (RuntimeException)
return AccessibleRole::MENU_BAR;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleExtendedComponent
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleMenuBar::getBackground( ) throw (RuntimeException)
{
@@ -202,6 +202,6 @@ sal_Int32 VCLXAccessibleMenuBar::getBackground( ) throw (RuntimeException)
return Application::GetSettings().GetStyleSettings().GetMenuBarColor().GetColor();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessiblemenuitem.cxx b/accessibility/source/standard/vclxaccessiblemenuitem.cxx
index c72ae8e1e041..488befd799e4 100644
--- a/accessibility/source/standard/vclxaccessiblemenuitem.cxx
+++ b/accessibility/source/standard/vclxaccessiblemenuitem.cxx
@@ -45,36 +45,36 @@ using namespace ::com::sun::star;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// class VCLXAccessibleMenuItem
-// -----------------------------------------------------------------------------
+
VCLXAccessibleMenuItem::VCLXAccessibleMenuItem( Menu* pParent, sal_uInt16 nItemPos, Menu* pMenu )
:OAccessibleMenuItemComponent( pParent, nItemPos, pMenu )
{
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleMenuItem::~VCLXAccessibleMenuItem()
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleMenuItem::IsFocused()
{
return IsHighlighted();
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleMenuItem::IsSelected()
{
return IsHighlighted();
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleMenuItem::IsChecked()
{
@@ -90,7 +90,7 @@ sal_Bool VCLXAccessibleMenuItem::IsChecked()
return bChecked;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleMenuItem::IsHighlighted()
{
@@ -102,7 +102,7 @@ sal_Bool VCLXAccessibleMenuItem::IsHighlighted()
return bHighlighted;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleMenuItem::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -122,23 +122,23 @@ void VCLXAccessibleMenuItem::FillAccessibleStateSet( utl::AccessibleStateSetHelp
rStateSet.AddState( AccessibleStateType::CHECKED );
}
-// -----------------------------------------------------------------------------
+
// OCommonAccessibleText
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleMenuItem::implGetText()
{
return m_sItemText;
}
-// -----------------------------------------------------------------------------
+
Locale VCLXAccessibleMenuItem::implGetLocale()
{
return Application::GetSettings().GetLanguageTag().getLocale();
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleMenuItem::implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex )
{
@@ -146,28 +146,28 @@ void VCLXAccessibleMenuItem::implGetSelection( sal_Int32& nStartIndex, sal_Int32
nEndIndex = 0;
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleMenuItem, OAccessibleMenuItemComponent, VCLXAccessibleMenuItem_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleMenuItem, OAccessibleMenuItemComponent, VCLXAccessibleMenuItem_BASE )
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleMenuItem::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleMenuItem" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleMenuItem::getSupportedServiceNames() throw (RuntimeException)
{
@@ -176,9 +176,9 @@ Sequence< OUString > VCLXAccessibleMenuItem::getSupportedServiceNames() throw (R
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int16 VCLXAccessibleMenuItem::getAccessibleRole( ) throw (RuntimeException)
{
@@ -198,9 +198,9 @@ sal_Int16 VCLXAccessibleMenuItem::getAccessibleRole( ) throw (RuntimeException)
return nRole;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleText
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleMenuItem::getCaretPosition() throw (RuntimeException)
{
@@ -209,7 +209,7 @@ sal_Int32 VCLXAccessibleMenuItem::getCaretPosition() throw (RuntimeException)
return -1;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleMenuItem::setCaretPosition( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -222,7 +222,7 @@ sal_Bool VCLXAccessibleMenuItem::setCaretPosition( sal_Int32 nIndex ) throw (Ind
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Unicode VCLXAccessibleMenuItem::getCharacter( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -231,7 +231,7 @@ sal_Unicode VCLXAccessibleMenuItem::getCharacter( sal_Int32 nIndex ) throw (Inde
return OCommonAccessibleText::getCharacter( nIndex );
}
-// -----------------------------------------------------------------------------
+
Sequence< PropertyValue > VCLXAccessibleMenuItem::getCharacterAttributes( sal_Int32 nIndex, const Sequence< OUString >& aRequestedAttributes ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -249,7 +249,7 @@ Sequence< PropertyValue > VCLXAccessibleMenuItem::getCharacterAttributes( sal_In
.GetCharacterAttributes( aRequestedAttributes );
}
-// -----------------------------------------------------------------------------
+
awt::Rectangle VCLXAccessibleMenuItem::getCharacterBounds( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -271,7 +271,7 @@ awt::Rectangle VCLXAccessibleMenuItem::getCharacterBounds( sal_Int32 nIndex ) th
return aBounds;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleMenuItem::getCharacterCount() throw (RuntimeException)
{
@@ -280,7 +280,7 @@ sal_Int32 VCLXAccessibleMenuItem::getCharacterCount() throw (RuntimeException)
return OCommonAccessibleText::getCharacterCount();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleMenuItem::getIndexAtPoint( const awt::Point& aPoint ) throw (RuntimeException)
{
@@ -301,7 +301,7 @@ sal_Int32 VCLXAccessibleMenuItem::getIndexAtPoint( const awt::Point& aPoint ) th
return nIndex;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleMenuItem::getSelectedText() throw (RuntimeException)
{
@@ -310,7 +310,7 @@ OUString VCLXAccessibleMenuItem::getSelectedText() throw (RuntimeException)
return OCommonAccessibleText::getSelectedText();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleMenuItem::getSelectionStart() throw (RuntimeException)
{
@@ -319,7 +319,7 @@ sal_Int32 VCLXAccessibleMenuItem::getSelectionStart() throw (RuntimeException)
return OCommonAccessibleText::getSelectionStart();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleMenuItem::getSelectionEnd() throw (RuntimeException)
{
@@ -328,7 +328,7 @@ sal_Int32 VCLXAccessibleMenuItem::getSelectionEnd() throw (RuntimeException)
return OCommonAccessibleText::getSelectionEnd();
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleMenuItem::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -340,7 +340,7 @@ sal_Bool VCLXAccessibleMenuItem::setSelection( sal_Int32 nStartIndex, sal_Int32
return sal_False;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleMenuItem::getText() throw (RuntimeException)
{
@@ -349,7 +349,7 @@ OUString VCLXAccessibleMenuItem::getText() throw (RuntimeException)
return OCommonAccessibleText::getText();
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleMenuItem::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -358,7 +358,7 @@ OUString VCLXAccessibleMenuItem::getTextRange( sal_Int32 nStartIndex, sal_Int32
return OCommonAccessibleText::getTextRange( nStartIndex, nEndIndex );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::accessibility::TextSegment VCLXAccessibleMenuItem::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -367,7 +367,7 @@ OUString VCLXAccessibleMenuItem::getTextRange( sal_Int32 nStartIndex, sal_Int32
return OCommonAccessibleText::getTextAtIndex( nIndex, aTextType );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::accessibility::TextSegment VCLXAccessibleMenuItem::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -376,7 +376,7 @@ OUString VCLXAccessibleMenuItem::getTextRange( sal_Int32 nStartIndex, sal_Int32
return OCommonAccessibleText::getTextBeforeIndex( nIndex, aTextType );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::accessibility::TextSegment VCLXAccessibleMenuItem::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -385,7 +385,7 @@ OUString VCLXAccessibleMenuItem::getTextRange( sal_Int32 nStartIndex, sal_Int32
return OCommonAccessibleText::getTextBehindIndex( nIndex, aTextType );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleMenuItem::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -421,9 +421,9 @@ sal_Bool VCLXAccessibleMenuItem::copyText( sal_Int32 nStartIndex, sal_Int32 nEnd
return bReturn;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleAction
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleMenuItem::getAccessibleActionCount( ) throw (RuntimeException)
{
@@ -432,7 +432,7 @@ sal_Int32 VCLXAccessibleMenuItem::getAccessibleActionCount( ) throw (RuntimeExce
return 1;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleMenuItem::doAccessibleAction ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -446,7 +446,7 @@ sal_Bool VCLXAccessibleMenuItem::doAccessibleAction ( sal_Int32 nIndex ) throw (
return sal_True;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleMenuItem::getAccessibleActionDescription ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -458,7 +458,7 @@ OUString VCLXAccessibleMenuItem::getAccessibleActionDescription ( sal_Int32 nInd
return TK_RES_STRING( RID_STR_ACC_ACTION_SELECT );
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleKeyBinding > VCLXAccessibleMenuItem::getAccessibleActionKeyBinding( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -535,9 +535,9 @@ Reference< XAccessibleKeyBinding > VCLXAccessibleMenuItem::getAccessibleActionKe
return xKeyBinding;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleValue
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleMenuItem::getCurrentValue( ) throw (RuntimeException)
{
@@ -552,7 +552,7 @@ Any VCLXAccessibleMenuItem::getCurrentValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleMenuItem::setCurrentValue( const Any& aNumber ) throw (RuntimeException)
{
@@ -576,7 +576,7 @@ sal_Bool VCLXAccessibleMenuItem::setCurrentValue( const Any& aNumber ) throw (Ru
return bReturn;
}
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleMenuItem::getMaximumValue( ) throw (RuntimeException)
{
@@ -588,7 +588,7 @@ Any VCLXAccessibleMenuItem::getMaximumValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleMenuItem::getMinimumValue( ) throw (RuntimeException)
{
@@ -600,6 +600,6 @@ Any VCLXAccessibleMenuItem::getMinimumValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessiblemenuseparator.cxx b/accessibility/source/standard/vclxaccessiblemenuseparator.cxx
index 633bdf1e5fac..52c8fb440894 100644
--- a/accessibility/source/standard/vclxaccessiblemenuseparator.cxx
+++ b/accessibility/source/standard/vclxaccessiblemenuseparator.cxx
@@ -28,31 +28,31 @@ using namespace ::com::sun::star;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// class VCLXAccessibleMenuSeparator
-// -----------------------------------------------------------------------------
+
VCLXAccessibleMenuSeparator::VCLXAccessibleMenuSeparator( Menu* pParent, sal_uInt16 nItemPos, Menu* pMenu )
:OAccessibleMenuItemComponent( pParent, nItemPos, pMenu )
{
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleMenuSeparator::~VCLXAccessibleMenuSeparator()
{
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleMenuSeparator::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleMenuSeparator" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleMenuSeparator::getSupportedServiceNames() throw (RuntimeException)
{
@@ -61,9 +61,9 @@ Sequence< OUString > VCLXAccessibleMenuSeparator::getSupportedServiceNames() thr
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int16 VCLXAccessibleMenuSeparator::getAccessibleRole( ) throw (RuntimeException)
{
@@ -72,6 +72,6 @@ sal_Int16 VCLXAccessibleMenuSeparator::getAccessibleRole( ) throw (RuntimeExcep
return AccessibleRole::SEPARATOR;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessiblepopupmenu.cxx b/accessibility/source/standard/vclxaccessiblepopupmenu.cxx
index 3db137b25e4b..e12ece7b6990 100644
--- a/accessibility/source/standard/vclxaccessiblepopupmenu.cxx
+++ b/accessibility/source/standard/vclxaccessiblepopupmenu.cxx
@@ -28,38 +28,38 @@ using namespace ::com::sun::star::uno;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// class VCLXAccessiblePopupMenu
-// -----------------------------------------------------------------------------
+
VCLXAccessiblePopupMenu::VCLXAccessiblePopupMenu( Menu* pMenu )
:OAccessibleMenuComponent( pMenu )
{
}
-// -----------------------------------------------------------------------------
+
VCLXAccessiblePopupMenu::~VCLXAccessiblePopupMenu()
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessiblePopupMenu::IsFocused()
{
return !IsChildHighlighted();
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessiblePopupMenu::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessiblePopupMenu" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessiblePopupMenu::getSupportedServiceNames() throw (RuntimeException)
{
@@ -68,9 +68,9 @@ Sequence< OUString > VCLXAccessiblePopupMenu::getSupportedServiceNames() throw (
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessiblePopupMenu::getAccessibleIndexInParent( ) throw (RuntimeException)
{
@@ -79,7 +79,7 @@ sal_Int32 VCLXAccessiblePopupMenu::getAccessibleIndexInParent( ) throw (Runtime
return 0;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 VCLXAccessiblePopupMenu::getAccessibleRole( ) throw (RuntimeException)
{
@@ -88,9 +88,9 @@ sal_Int16 VCLXAccessiblePopupMenu::getAccessibleRole( ) throw (RuntimeException
return AccessibleRole::POPUP_MENU;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleExtendedComponent
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessiblePopupMenu::getBackground( ) throw (RuntimeException)
{
@@ -99,6 +99,6 @@ sal_Int32 VCLXAccessiblePopupMenu::getBackground( ) throw (RuntimeException)
return Application::GetSettings().GetStyleSettings().GetMenuColor().GetColor();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessibleradiobutton.cxx b/accessibility/source/standard/vclxaccessibleradiobutton.cxx
index 7e8b948ad3c9..0b272cb3d0a9 100644
--- a/accessibility/source/standard/vclxaccessibleradiobutton.cxx
+++ b/accessibility/source/standard/vclxaccessibleradiobutton.cxx
@@ -44,22 +44,22 @@ using namespace ::com::sun::star::accessibility;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// VCLXAccessibleRadioButton
-// -----------------------------------------------------------------------------
+
VCLXAccessibleRadioButton::VCLXAccessibleRadioButton( VCLXWindow* pVCLWindow )
:VCLXAccessibleTextComponent( pVCLWindow )
{
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleRadioButton::~VCLXAccessibleRadioButton()
{
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleRadioButton::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
@@ -84,7 +84,7 @@ void VCLXAccessibleRadioButton::ProcessWindowEvent( const VclWindowEvent& rVclWi
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleRadioButton::FillAccessibleRelationSet( utl::AccessibleRelationSetHelper& rRelationSet )
{
@@ -108,7 +108,7 @@ void VCLXAccessibleRadioButton::FillAccessibleRelationSet( utl::AccessibleRelati
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleRadioButton::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -123,28 +123,28 @@ void VCLXAccessibleRadioButton::FillAccessibleStateSet( utl::AccessibleStateSetH
}
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleRadioButton, VCLXAccessibleTextComponent, VCLXAccessibleRadioButton_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleRadioButton, VCLXAccessibleTextComponent, VCLXAccessibleRadioButton_BASE )
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleRadioButton::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleRadioButton" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleRadioButton::getSupportedServiceNames() throw (RuntimeException)
{
@@ -153,9 +153,9 @@ Sequence< OUString > VCLXAccessibleRadioButton::getSupportedServiceNames() throw
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleAction
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleRadioButton::getAccessibleActionCount( ) throw (RuntimeException)
{
@@ -164,7 +164,7 @@ sal_Int32 VCLXAccessibleRadioButton::getAccessibleActionCount( ) throw (RuntimeE
return 1;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleRadioButton::doAccessibleAction ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -180,7 +180,7 @@ sal_Bool VCLXAccessibleRadioButton::doAccessibleAction ( sal_Int32 nIndex ) thro
return sal_True;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleRadioButton::getAccessibleActionDescription ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -192,7 +192,7 @@ OUString VCLXAccessibleRadioButton::getAccessibleActionDescription ( sal_Int32 n
return TK_RES_STRING( RID_STR_ACC_ACTION_SELECT );
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleKeyBinding > VCLXAccessibleRadioButton::getAccessibleActionKeyBinding( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -231,9 +231,9 @@ Reference< XAccessibleKeyBinding > VCLXAccessibleRadioButton::getAccessibleActio
return xKeyBinding;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleValue
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleRadioButton::getCurrentValue( ) throw (RuntimeException)
{
@@ -248,7 +248,7 @@ Any VCLXAccessibleRadioButton::getCurrentValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleRadioButton::setCurrentValue( const Any& aNumber ) throw (RuntimeException)
{
@@ -274,7 +274,7 @@ sal_Bool VCLXAccessibleRadioButton::setCurrentValue( const Any& aNumber ) throw
return bReturn;
}
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleRadioButton::getMaximumValue( ) throw (RuntimeException)
{
@@ -286,7 +286,7 @@ Any VCLXAccessibleRadioButton::getMaximumValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleRadioButton::getMinimumValue( ) throw (RuntimeException)
{
@@ -298,6 +298,6 @@ Any VCLXAccessibleRadioButton::getMinimumValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessiblescrollbar.cxx b/accessibility/source/standard/vclxaccessiblescrollbar.cxx
index 3ef392199f41..6148824809a9 100644
--- a/accessibility/source/standard/vclxaccessiblescrollbar.cxx
+++ b/accessibility/source/standard/vclxaccessiblescrollbar.cxx
@@ -39,22 +39,22 @@ using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::accessibility;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// VCLXAccessibleScrollBar
-// -----------------------------------------------------------------------------
+
VCLXAccessibleScrollBar::VCLXAccessibleScrollBar( VCLXWindow* pVCLWindow )
:VCLXAccessibleComponent( pVCLWindow )
{
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleScrollBar::~VCLXAccessibleScrollBar()
{
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleScrollBar::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
@@ -70,7 +70,7 @@ void VCLXAccessibleScrollBar::ProcessWindowEvent( const VclWindowEvent& rVclWind
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleScrollBar::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -88,28 +88,28 @@ void VCLXAccessibleScrollBar::FillAccessibleStateSet( utl::AccessibleStateSetHel
}
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleScrollBar, VCLXAccessibleComponent, VCLXAccessibleScrollBar_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleScrollBar, VCLXAccessibleComponent, VCLXAccessibleScrollBar_BASE )
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleScrollBar::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleScrollBar" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleScrollBar::getSupportedServiceNames() throw (RuntimeException)
{
@@ -118,9 +118,9 @@ Sequence< OUString > VCLXAccessibleScrollBar::getSupportedServiceNames() throw (
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleAction
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleScrollBar::getAccessibleActionCount( ) throw (RuntimeException)
{
@@ -129,7 +129,7 @@ sal_Int32 VCLXAccessibleScrollBar::getAccessibleActionCount( ) throw (RuntimeExc
return 4;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleScrollBar::doAccessibleAction ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -158,7 +158,7 @@ sal_Bool VCLXAccessibleScrollBar::doAccessibleAction ( sal_Int32 nIndex ) throw
return bReturn;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleScrollBar::getAccessibleActionDescription ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -181,7 +181,7 @@ OUString VCLXAccessibleScrollBar::getAccessibleActionDescription ( sal_Int32 nIn
return sDescription;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleKeyBinding > VCLXAccessibleScrollBar::getAccessibleActionKeyBinding( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -193,9 +193,9 @@ Reference< XAccessibleKeyBinding > VCLXAccessibleScrollBar::getAccessibleActionK
return Reference< XAccessibleKeyBinding >();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleValue
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleScrollBar::getCurrentValue( ) throw (RuntimeException)
{
@@ -210,7 +210,7 @@ Any VCLXAccessibleScrollBar::getCurrentValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleScrollBar::setCurrentValue( const Any& aNumber ) throw (RuntimeException)
{
@@ -238,7 +238,7 @@ sal_Bool VCLXAccessibleScrollBar::setCurrentValue( const Any& aNumber ) throw (R
return bReturn;
}
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleScrollBar::getMaximumValue( ) throw (RuntimeException)
{
@@ -253,7 +253,7 @@ Any VCLXAccessibleScrollBar::getMaximumValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleScrollBar::getMinimumValue( ) throw (RuntimeException)
{
@@ -265,7 +265,7 @@ Any VCLXAccessibleScrollBar::getMinimumValue( ) throw (RuntimeException)
return aValue;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleScrollBar::getAccessibleName( ) throw (uno::RuntimeException)
{
diff --git a/accessibility/source/standard/vclxaccessiblestatusbar.cxx b/accessibility/source/standard/vclxaccessiblestatusbar.cxx
index e120fc00b60c..c05c3c6257e6 100644
--- a/accessibility/source/standard/vclxaccessiblestatusbar.cxx
+++ b/accessibility/source/standard/vclxaccessiblestatusbar.cxx
@@ -44,13 +44,13 @@ VCLXAccessibleStatusBar::VCLXAccessibleStatusBar( VCLXWindow* pVCLXWindow )
m_aAccessibleChildren.assign( m_pStatusBar->GetItemCount(), Reference< XAccessible >() );
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleStatusBar::~VCLXAccessibleStatusBar()
{
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBar::UpdateShowing( sal_Int32 i, sal_Bool bShowing )
{
@@ -66,7 +66,7 @@ void VCLXAccessibleStatusBar::UpdateShowing( sal_Int32 i, sal_Bool bShowing )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBar::UpdateItemName( sal_Int32 i )
{
@@ -85,7 +85,7 @@ void VCLXAccessibleStatusBar::UpdateItemName( sal_Int32 i )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBar::UpdateItemText( sal_Int32 i )
{
@@ -104,7 +104,7 @@ void VCLXAccessibleStatusBar::UpdateItemText( sal_Int32 i )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBar::InsertChild( sal_Int32 i )
{
@@ -124,7 +124,7 @@ void VCLXAccessibleStatusBar::InsertChild( sal_Int32 i )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBar::RemoveChild( sal_Int32 i )
{
@@ -150,7 +150,7 @@ void VCLXAccessibleStatusBar::RemoveChild( sal_Int32 i )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBar::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
@@ -255,9 +255,9 @@ void VCLXAccessibleStatusBar::ProcessWindowEvent( const VclWindowEvent& rVclWind
}
}
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBar::disposing()
{
@@ -278,16 +278,16 @@ void VCLXAccessibleStatusBar::disposing()
}
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleStatusBar::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleStatusBar" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleStatusBar::getSupportedServiceNames() throw (RuntimeException)
{
@@ -296,9 +296,9 @@ Sequence< OUString > VCLXAccessibleStatusBar::getSupportedServiceNames() throw (
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleStatusBar::getAccessibleChildCount() throw (RuntimeException)
{
@@ -307,7 +307,7 @@ sal_Int32 VCLXAccessibleStatusBar::getAccessibleChildCount() throw (RuntimeExcep
return m_aAccessibleChildren.size();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleStatusBar::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -333,9 +333,9 @@ Reference< XAccessible > VCLXAccessibleStatusBar::getAccessibleChild( sal_Int32
return xChild;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleComponent
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleStatusBar::getAccessibleAtPoint( const awt::Point& rPoint ) throw (RuntimeException)
{
@@ -353,6 +353,6 @@ Reference< XAccessible > VCLXAccessibleStatusBar::getAccessibleAtPoint( const aw
return xChild;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
index 7659f31b4e85..66d9f7838c73 100644
--- a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
+++ b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
@@ -44,9 +44,9 @@ using namespace ::com::sun::star;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// class VCLXAccessibleStatusBarItem
-// -----------------------------------------------------------------------------
+
VCLXAccessibleStatusBarItem::VCLXAccessibleStatusBarItem( StatusBar* pStatusBar, sal_uInt16 nItemId )
:AccessibleTextHelper_BASE( new VCLExternalSolarLock() )
@@ -60,7 +60,7 @@ VCLXAccessibleStatusBarItem::VCLXAccessibleStatusBarItem( StatusBar* pStatusBar,
m_bShowing = IsShowing();
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleStatusBarItem::~VCLXAccessibleStatusBarItem()
{
@@ -68,7 +68,7 @@ VCLXAccessibleStatusBarItem::~VCLXAccessibleStatusBarItem()
m_pExternalLock = NULL;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleStatusBarItem::IsShowing()
{
@@ -80,7 +80,7 @@ sal_Bool VCLXAccessibleStatusBarItem::IsShowing()
return bShowing;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBarItem::SetShowing( sal_Bool bShowing )
{
@@ -96,7 +96,7 @@ void VCLXAccessibleStatusBarItem::SetShowing( sal_Bool bShowing )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBarItem::SetItemName( const OUString& sItemName )
{
@@ -110,7 +110,7 @@ void VCLXAccessibleStatusBarItem::SetItemName( const OUString& sItemName )
}
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleStatusBarItem::GetItemName()
{
@@ -121,7 +121,7 @@ OUString VCLXAccessibleStatusBarItem::GetItemName()
return sName;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBarItem::SetItemText( const OUString& sItemText )
{
@@ -133,7 +133,7 @@ void VCLXAccessibleStatusBarItem::SetItemText( const OUString& sItemText )
}
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleStatusBarItem::GetItemText()
{
@@ -149,7 +149,7 @@ OUString VCLXAccessibleStatusBarItem::GetItemText()
return sText;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBarItem::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -162,9 +162,9 @@ void VCLXAccessibleStatusBarItem::FillAccessibleStateSet( utl::AccessibleStateSe
rStateSet.AddState( AccessibleStateType::SHOWING );
}
-// -----------------------------------------------------------------------------
+
// OCommonAccessibleComponent
-// -----------------------------------------------------------------------------
+
awt::Rectangle VCLXAccessibleStatusBarItem::implGetBounds() throw (RuntimeException)
{
@@ -176,23 +176,23 @@ awt::Rectangle VCLXAccessibleStatusBarItem::implGetBounds() throw (RuntimeExcept
return aBounds;
}
-// -----------------------------------------------------------------------------
+
// OCommonAccessibleText
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleStatusBarItem::implGetText()
{
return GetItemText();
}
-// -----------------------------------------------------------------------------
+
lang::Locale VCLXAccessibleStatusBarItem::implGetLocale()
{
return Application::GetSettings().GetLanguageTag().getLocale();
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBarItem::implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex )
{
@@ -200,21 +200,21 @@ void VCLXAccessibleStatusBarItem::implGetSelection( sal_Int32& nStartIndex, sal_
nEndIndex = 0;
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleStatusBarItem, AccessibleTextHelper_BASE, VCLXAccessibleStatusBarItem_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleStatusBarItem, AccessibleTextHelper_BASE, VCLXAccessibleStatusBarItem_BASE )
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBarItem::disposing()
{
@@ -225,23 +225,23 @@ void VCLXAccessibleStatusBarItem::disposing()
m_sItemText = OUString();
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleStatusBarItem::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleStatusBarItem" );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleStatusBarItem::supportsService( const OUString& rServiceName ) throw (RuntimeException)
{
return cppu::supportsService(this, rServiceName);
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleStatusBarItem::getSupportedServiceNames() throw (RuntimeException)
{
@@ -250,9 +250,9 @@ Sequence< OUString > VCLXAccessibleStatusBarItem::getSupportedServiceNames() thr
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessible
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > VCLXAccessibleStatusBarItem::getAccessibleContext( ) throw (RuntimeException)
{
@@ -261,9 +261,9 @@ Reference< XAccessibleContext > VCLXAccessibleStatusBarItem::getAccessibleContex
return this;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleStatusBarItem::getAccessibleChildCount() throw (RuntimeException)
{
@@ -272,7 +272,7 @@ sal_Int32 VCLXAccessibleStatusBarItem::getAccessibleChildCount() throw (RuntimeE
return 0;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleStatusBarItem::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -284,7 +284,7 @@ Reference< XAccessible > VCLXAccessibleStatusBarItem::getAccessibleChild( sal_In
return Reference< XAccessible >();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleStatusBarItem::getAccessibleParent( ) throw (RuntimeException)
{
@@ -297,7 +297,7 @@ Reference< XAccessible > VCLXAccessibleStatusBarItem::getAccessibleParent( ) th
return xParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleStatusBarItem::getAccessibleIndexInParent( ) throw (RuntimeException)
{
@@ -310,7 +310,7 @@ sal_Int32 VCLXAccessibleStatusBarItem::getAccessibleIndexInParent( ) throw (Run
return nIndexInParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 VCLXAccessibleStatusBarItem::getAccessibleRole( ) throw (RuntimeException)
{
@@ -319,7 +319,7 @@ sal_Int16 VCLXAccessibleStatusBarItem::getAccessibleRole( ) throw (RuntimeExcep
return AccessibleRole::LABEL;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleStatusBarItem::getAccessibleDescription( ) throw (RuntimeException)
{
@@ -332,7 +332,7 @@ OUString VCLXAccessibleStatusBarItem::getAccessibleDescription( ) throw (Runtim
return sDescription;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleStatusBarItem::getAccessibleName( ) throw (RuntimeException)
{
@@ -341,7 +341,7 @@ OUString VCLXAccessibleStatusBarItem::getAccessibleName( ) throw (RuntimeExcept
return GetItemName();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > VCLXAccessibleStatusBarItem::getAccessibleRelationSet( ) throw (RuntimeException)
{
@@ -352,7 +352,7 @@ Reference< XAccessibleRelationSet > VCLXAccessibleStatusBarItem::getAccessibleRe
return xSet;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleStateSet > VCLXAccessibleStatusBarItem::getAccessibleStateSet( ) throw (RuntimeException)
{
@@ -373,7 +373,7 @@ Reference< XAccessibleStateSet > VCLXAccessibleStatusBarItem::getAccessibleState
return xSet;
}
-// -----------------------------------------------------------------------------
+
Locale VCLXAccessibleStatusBarItem::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
@@ -382,9 +382,9 @@ Locale VCLXAccessibleStatusBarItem::getLocale( ) throw (IllegalAccessibleCompon
return Application::GetSettings().GetLanguageTag().getLocale();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleComponent
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleStatusBarItem::getAccessibleAtPoint( const awt::Point& ) throw (RuntimeException)
{
@@ -393,14 +393,14 @@ Reference< XAccessible > VCLXAccessibleStatusBarItem::getAccessibleAtPoint( cons
return Reference< XAccessible >();
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleStatusBarItem::grabFocus( ) throw (RuntimeException)
{
// no focus for status bar items
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleStatusBarItem::getForeground( ) throw (RuntimeException)
{
@@ -418,7 +418,7 @@ sal_Int32 VCLXAccessibleStatusBarItem::getForeground( ) throw (RuntimeExceptio
return nColor;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleStatusBarItem::getBackground( ) throw (RuntimeException)
{
@@ -436,9 +436,9 @@ sal_Int32 VCLXAccessibleStatusBarItem::getBackground( ) throw (RuntimeException
return nColor;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleExtendedComponent
-// -----------------------------------------------------------------------------
+
Reference< awt::XFont > VCLXAccessibleStatusBarItem::getFont( ) throw (RuntimeException)
{
@@ -456,7 +456,7 @@ Reference< awt::XFont > VCLXAccessibleStatusBarItem::getFont( ) throw (RuntimeE
return xFont;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleStatusBarItem::getTitledBorderText( ) throw (RuntimeException)
{
@@ -465,7 +465,7 @@ OUString VCLXAccessibleStatusBarItem::getTitledBorderText( ) throw (RuntimeExce
return GetItemText();
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleStatusBarItem::getToolTipText( ) throw (RuntimeException)
{
@@ -474,9 +474,9 @@ OUString VCLXAccessibleStatusBarItem::getToolTipText( ) throw (RuntimeException
return OUString();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleText
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleStatusBarItem::getCaretPosition() throw (RuntimeException)
{
@@ -485,7 +485,7 @@ sal_Int32 VCLXAccessibleStatusBarItem::getCaretPosition() throw (RuntimeExceptio
return -1;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleStatusBarItem::setCaretPosition( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -497,7 +497,7 @@ sal_Bool VCLXAccessibleStatusBarItem::setCaretPosition( sal_Int32 nIndex ) throw
return sal_False;
}
-// -----------------------------------------------------------------------------
+
Sequence< PropertyValue > VCLXAccessibleStatusBarItem::getCharacterAttributes( sal_Int32 nIndex, const Sequence< OUString >& aRequestedAttributes ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -521,7 +521,7 @@ Sequence< PropertyValue > VCLXAccessibleStatusBarItem::getCharacterAttributes( s
return aValues;
}
-// -----------------------------------------------------------------------------
+
awt::Rectangle VCLXAccessibleStatusBarItem::getCharacterBounds( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -544,7 +544,7 @@ awt::Rectangle VCLXAccessibleStatusBarItem::getCharacterBounds( sal_Int32 nIndex
return aBounds;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleStatusBarItem::getIndexAtPoint( const awt::Point& aPoint ) throw (RuntimeException)
{
@@ -564,7 +564,7 @@ sal_Int32 VCLXAccessibleStatusBarItem::getIndexAtPoint( const awt::Point& aPoint
return nIndex;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleStatusBarItem::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -576,7 +576,7 @@ sal_Bool VCLXAccessibleStatusBarItem::setSelection( sal_Int32 nStartIndex, sal_I
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleStatusBarItem::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -608,6 +608,6 @@ sal_Bool VCLXAccessibleStatusBarItem::copyText( sal_Int32 nStartIndex, sal_Int32
return bReturn;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessibletabcontrol.cxx b/accessibility/source/standard/vclxaccessibletabcontrol.cxx
index ecd6a9df48d1..0ee4bb4be010 100644
--- a/accessibility/source/standard/vclxaccessibletabcontrol.cxx
+++ b/accessibility/source/standard/vclxaccessibletabcontrol.cxx
@@ -49,13 +49,13 @@ VCLXAccessibleTabControl::VCLXAccessibleTabControl( VCLXWindow* pVCLXWindow )
m_aAccessibleChildren.assign( m_pTabControl->GetPageCount(), Reference< XAccessible >() );
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleTabControl::~VCLXAccessibleTabControl()
{
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::UpdateFocused()
{
@@ -71,7 +71,7 @@ void VCLXAccessibleTabControl::UpdateFocused()
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::UpdateSelected( sal_Int32 i, bool bSelected )
{
@@ -87,7 +87,7 @@ void VCLXAccessibleTabControl::UpdateSelected( sal_Int32 i, bool bSelected )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::UpdatePageText( sal_Int32 i )
{
@@ -103,7 +103,7 @@ void VCLXAccessibleTabControl::UpdatePageText( sal_Int32 i )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::UpdateTabPage( sal_Int32 i, bool bNew )
{
@@ -119,7 +119,7 @@ void VCLXAccessibleTabControl::UpdateTabPage( sal_Int32 i, bool bNew )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::InsertChild( sal_Int32 i )
{
@@ -139,7 +139,7 @@ void VCLXAccessibleTabControl::InsertChild( sal_Int32 i )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::RemoveChild( sal_Int32 i )
{
@@ -165,7 +165,7 @@ void VCLXAccessibleTabControl::RemoveChild( sal_Int32 i )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
@@ -260,7 +260,7 @@ void VCLXAccessibleTabControl::ProcessWindowEvent( const VclWindowEvent& rVclWin
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::ProcessWindowChildEvent( const VclWindowEvent& rVclWindowEvent )
{
@@ -291,7 +291,7 @@ void VCLXAccessibleTabControl::ProcessWindowChildEvent( const VclWindowEvent& rV
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -301,21 +301,21 @@ void VCLXAccessibleTabControl::FillAccessibleStateSet( utl::AccessibleStateSetHe
rStateSet.AddState( AccessibleStateType::FOCUSABLE );
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleTabControl, VCLXAccessibleComponent, VCLXAccessibleTabControl_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleTabControl, VCLXAccessibleComponent, VCLXAccessibleTabControl_BASE )
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::disposing()
{
@@ -336,16 +336,16 @@ void VCLXAccessibleTabControl::disposing()
}
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleTabControl::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleTabControl" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleTabControl::getSupportedServiceNames() throw (RuntimeException)
{
@@ -354,9 +354,9 @@ Sequence< OUString > VCLXAccessibleTabControl::getSupportedServiceNames() throw
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTabControl::getAccessibleChildCount() throw (RuntimeException)
{
@@ -365,7 +365,7 @@ sal_Int32 VCLXAccessibleTabControl::getAccessibleChildCount() throw (RuntimeExce
return m_aAccessibleChildren.size();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleTabControl::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -391,7 +391,7 @@ Reference< XAccessible > VCLXAccessibleTabControl::getAccessibleChild( sal_Int32
return xChild;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 VCLXAccessibleTabControl::getAccessibleRole( ) throw (RuntimeException)
{
@@ -400,7 +400,7 @@ sal_Int16 VCLXAccessibleTabControl::getAccessibleRole( ) throw (RuntimeExceptio
return AccessibleRole::PAGE_TAB_LIST;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleTabControl::getAccessibleName( ) throw (RuntimeException)
{
@@ -409,9 +409,9 @@ OUString VCLXAccessibleTabControl::getAccessibleName( ) throw (RuntimeException
return OUString();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleSelection
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -424,7 +424,7 @@ void VCLXAccessibleTabControl::selectAccessibleChild( sal_Int32 nChildIndex ) th
m_pTabControl->SelectTabPage( m_pTabControl->GetPageId( (sal_uInt16)nChildIndex ) );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleTabControl::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -440,14 +440,14 @@ sal_Bool VCLXAccessibleTabControl::isAccessibleChildSelected( sal_Int32 nChildIn
return bSelected;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::clearAccessibleSelection( ) throw (RuntimeException)
{
// This method makes no sense in a tab control, and so does nothing.
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::selectAllAccessibleChildren( ) throw (RuntimeException)
{
@@ -456,7 +456,7 @@ void VCLXAccessibleTabControl::selectAllAccessibleChildren( ) throw (RuntimeExc
selectAccessibleChild( 0 );
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTabControl::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
@@ -465,7 +465,7 @@ sal_Int32 VCLXAccessibleTabControl::getSelectedAccessibleChildCount( ) throw (R
return 1;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleTabControl::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -488,7 +488,7 @@ Reference< XAccessible > VCLXAccessibleTabControl::getSelectedAccessibleChild( s
return xChild;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabControl::deselectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -500,6 +500,6 @@ void VCLXAccessibleTabControl::deselectAccessibleChild( sal_Int32 nChildIndex )
// This method makes no sense in a tab control, and so does nothing.
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessibletabpage.cxx b/accessibility/source/standard/vclxaccessibletabpage.cxx
index a1b2646fbbb8..147747de1741 100644
--- a/accessibility/source/standard/vclxaccessibletabpage.cxx
+++ b/accessibility/source/standard/vclxaccessibletabpage.cxx
@@ -44,9 +44,9 @@ using namespace ::com::sun::star;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// class VCLXAccessibleTabPage
-// -----------------------------------------------------------------------------
+
VCLXAccessibleTabPage::VCLXAccessibleTabPage( TabControl* pTabControl, sal_uInt16 nPageId )
:AccessibleTextHelper_BASE( new VCLExternalSolarLock() )
@@ -59,7 +59,7 @@ VCLXAccessibleTabPage::VCLXAccessibleTabPage( TabControl* pTabControl, sal_uInt1
m_sPageText = GetPageText();
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleTabPage::~VCLXAccessibleTabPage()
{
@@ -67,7 +67,7 @@ VCLXAccessibleTabPage::~VCLXAccessibleTabPage()
m_pExternalLock = NULL;
}
-// -----------------------------------------------------------------------------
+
bool VCLXAccessibleTabPage::IsFocused()
{
@@ -79,7 +79,7 @@ bool VCLXAccessibleTabPage::IsFocused()
return bFocused;
}
-// -----------------------------------------------------------------------------
+
bool VCLXAccessibleTabPage::IsSelected()
{
@@ -91,7 +91,7 @@ bool VCLXAccessibleTabPage::IsSelected()
return bSelected;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabPage::SetFocused( bool bFocused )
{
@@ -107,7 +107,7 @@ void VCLXAccessibleTabPage::SetFocused( bool bFocused )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabPage::SetSelected( bool bSelected )
{
@@ -123,7 +123,7 @@ void VCLXAccessibleTabPage::SetSelected( bool bSelected )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabPage::SetPageText( const OUString& sPageText )
{
@@ -139,7 +139,7 @@ void VCLXAccessibleTabPage::SetPageText( const OUString& sPageText )
}
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleTabPage::GetPageText()
{
@@ -150,7 +150,7 @@ OUString VCLXAccessibleTabPage::GetPageText()
return sText;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabPage::Update( bool bNew )
{
@@ -173,7 +173,7 @@ void VCLXAccessibleTabPage::Update( bool bNew )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabPage::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -195,9 +195,9 @@ void VCLXAccessibleTabPage::FillAccessibleStateSet( utl::AccessibleStateSetHelpe
rStateSet.AddState( AccessibleStateType::SELECTED );
}
-// -----------------------------------------------------------------------------
+
// OCommonAccessibleComponent
-// -----------------------------------------------------------------------------
+
awt::Rectangle VCLXAccessibleTabPage::implGetBounds() throw (RuntimeException)
{
@@ -209,23 +209,23 @@ awt::Rectangle VCLXAccessibleTabPage::implGetBounds() throw (RuntimeException)
return aBounds;
}
-// -----------------------------------------------------------------------------
+
// OCommonAccessibleText
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleTabPage::implGetText()
{
return GetPageText();
}
-// -----------------------------------------------------------------------------
+
lang::Locale VCLXAccessibleTabPage::implGetLocale()
{
return Application::GetSettings().GetLanguageTag().getLocale();
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabPage::implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex )
{
@@ -233,21 +233,21 @@ void VCLXAccessibleTabPage::implGetSelection( sal_Int32& nStartIndex, sal_Int32&
nEndIndex = 0;
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleTabPage, AccessibleTextHelper_BASE, VCLXAccessibleTabPage_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleTabPage, AccessibleTextHelper_BASE, VCLXAccessibleTabPage_BASE )
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabPage::disposing()
{
@@ -257,23 +257,23 @@ void VCLXAccessibleTabPage::disposing()
m_sPageText = OUString();
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleTabPage::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleTabPage" );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleTabPage::supportsService( const OUString& rServiceName ) throw (RuntimeException)
{
return cppu::supportsService(this, rServiceName);
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleTabPage::getSupportedServiceNames() throw (RuntimeException)
{
@@ -282,9 +282,9 @@ Sequence< OUString > VCLXAccessibleTabPage::getSupportedServiceNames() throw (Ru
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessible
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > VCLXAccessibleTabPage::getAccessibleContext( ) throw (RuntimeException)
{
@@ -293,9 +293,9 @@ Reference< XAccessibleContext > VCLXAccessibleTabPage::getAccessibleContext( )
return this;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTabPage::getAccessibleChildCount() throw (RuntimeException)
{
@@ -312,7 +312,7 @@ sal_Int32 VCLXAccessibleTabPage::getAccessibleChildCount() throw (RuntimeExcepti
return nCount;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleTabPage::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -332,7 +332,7 @@ Reference< XAccessible > VCLXAccessibleTabPage::getAccessibleChild( sal_Int32 i
return xChild;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleTabPage::getAccessibleParent( ) throw (RuntimeException)
{
@@ -345,7 +345,7 @@ Reference< XAccessible > VCLXAccessibleTabPage::getAccessibleParent( ) throw (R
return xParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTabPage::getAccessibleIndexInParent( ) throw (RuntimeException)
{
@@ -358,7 +358,7 @@ sal_Int32 VCLXAccessibleTabPage::getAccessibleIndexInParent( ) throw (RuntimeEx
return nIndexInParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 VCLXAccessibleTabPage::getAccessibleRole( ) throw (RuntimeException)
{
@@ -367,7 +367,7 @@ sal_Int16 VCLXAccessibleTabPage::getAccessibleRole( ) throw (RuntimeException)
return AccessibleRole::PAGE_TAB;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleTabPage::getAccessibleDescription( ) throw (RuntimeException)
{
@@ -380,7 +380,7 @@ OUString VCLXAccessibleTabPage::getAccessibleDescription( ) throw (RuntimeExc
return sDescription;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleTabPage::getAccessibleName( ) throw (RuntimeException)
{
@@ -389,7 +389,7 @@ OUString VCLXAccessibleTabPage::getAccessibleName( ) throw (RuntimeException)
return GetPageText();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > VCLXAccessibleTabPage::getAccessibleRelationSet( ) throw (RuntimeException)
{
@@ -400,7 +400,7 @@ Reference< XAccessibleRelationSet > VCLXAccessibleTabPage::getAccessibleRelation
return xSet;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleStateSet > VCLXAccessibleTabPage::getAccessibleStateSet( ) throw (RuntimeException)
{
@@ -421,7 +421,7 @@ Reference< XAccessibleStateSet > VCLXAccessibleTabPage::getAccessibleStateSet(
return xSet;
}
-// -----------------------------------------------------------------------------
+
Locale VCLXAccessibleTabPage::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
@@ -430,9 +430,9 @@ Locale VCLXAccessibleTabPage::getLocale( ) throw (IllegalAccessibleComponentSta
return Application::GetSettings().GetLanguageTag().getLocale();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleComponent
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleTabPage::getAccessibleAtPoint( const awt::Point& rPoint ) throw (RuntimeException)
{
@@ -461,7 +461,7 @@ Reference< XAccessible > VCLXAccessibleTabPage::getAccessibleAtPoint( const awt:
return xChild;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabPage::grabFocus( ) throw (RuntimeException)
{
@@ -474,7 +474,7 @@ void VCLXAccessibleTabPage::grabFocus( ) throw (RuntimeException)
}
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTabPage::getForeground( ) throw (RuntimeException)
{
@@ -492,7 +492,7 @@ sal_Int32 VCLXAccessibleTabPage::getForeground( ) throw (RuntimeException)
return nColor;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTabPage::getBackground( ) throw (RuntimeException)
{
@@ -510,9 +510,9 @@ sal_Int32 VCLXAccessibleTabPage::getBackground( ) throw (RuntimeException)
return nColor;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleExtendedComponent
-// -----------------------------------------------------------------------------
+
Reference< awt::XFont > VCLXAccessibleTabPage::getFont( ) throw (RuntimeException)
{
@@ -530,7 +530,7 @@ Reference< awt::XFont > VCLXAccessibleTabPage::getFont( ) throw (RuntimeExcepti
return xFont;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleTabPage::getTitledBorderText( ) throw (RuntimeException)
{
@@ -539,7 +539,7 @@ OUString VCLXAccessibleTabPage::getTitledBorderText( ) throw (RuntimeException)
return OUString();
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleTabPage::getToolTipText( ) throw (RuntimeException)
{
@@ -548,9 +548,9 @@ OUString VCLXAccessibleTabPage::getToolTipText( ) throw (RuntimeException)
return OUString();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleText
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTabPage::getCaretPosition() throw (RuntimeException)
{
@@ -559,7 +559,7 @@ sal_Int32 VCLXAccessibleTabPage::getCaretPosition() throw (RuntimeException)
return -1;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleTabPage::setCaretPosition( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -571,7 +571,7 @@ sal_Bool VCLXAccessibleTabPage::setCaretPosition( sal_Int32 nIndex ) throw (Inde
return sal_False;
}
-// -----------------------------------------------------------------------------
+
Sequence< PropertyValue > VCLXAccessibleTabPage::getCharacterAttributes( sal_Int32 nIndex, const Sequence< OUString >& aRequestedAttributes ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -595,7 +595,7 @@ Sequence< PropertyValue > VCLXAccessibleTabPage::getCharacterAttributes( sal_Int
return aValues;
}
-// -----------------------------------------------------------------------------
+
awt::Rectangle VCLXAccessibleTabPage::getCharacterBounds( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -616,7 +616,7 @@ awt::Rectangle VCLXAccessibleTabPage::getCharacterBounds( sal_Int32 nIndex ) thr
return aBounds;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTabPage::getIndexAtPoint( const awt::Point& aPoint ) throw (RuntimeException)
{
@@ -637,7 +637,7 @@ sal_Int32 VCLXAccessibleTabPage::getIndexAtPoint( const awt::Point& aPoint ) thr
return nIndex;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleTabPage::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -649,7 +649,7 @@ sal_Bool VCLXAccessibleTabPage::setSelection( sal_Int32 nStartIndex, sal_Int32 n
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleTabPage::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -681,6 +681,6 @@ sal_Bool VCLXAccessibleTabPage::copyText( sal_Int32 nStartIndex, sal_Int32 nEndI
return bReturn;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessibletabpagewindow.cxx b/accessibility/source/standard/vclxaccessibletabpagewindow.cxx
index f63e266da231..5ba6d5b8c6f3 100644
--- a/accessibility/source/standard/vclxaccessibletabpagewindow.cxx
+++ b/accessibility/source/standard/vclxaccessibletabpagewindow.cxx
@@ -58,15 +58,15 @@ VCLXAccessibleTabPageWindow::VCLXAccessibleTabPageWindow( VCLXWindow* pVCLXWindo
}
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleTabPageWindow::~VCLXAccessibleTabPageWindow()
{
}
-// -----------------------------------------------------------------------------
+
// OCommonAccessibleComponent
-// -----------------------------------------------------------------------------
+
awt::Rectangle VCLXAccessibleTabPageWindow::implGetBounds() throw (RuntimeException)
{
@@ -86,9 +86,9 @@ awt::Rectangle VCLXAccessibleTabPageWindow::implGetBounds() throw (RuntimeExcept
return aBounds;
}
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTabPageWindow::disposing()
{
@@ -98,9 +98,9 @@ void VCLXAccessibleTabPageWindow::disposing()
m_pTabPage = NULL;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleTabPageWindow::getAccessibleParent( ) throw (RuntimeException)
{
@@ -129,7 +129,7 @@ Reference< XAccessible > VCLXAccessibleTabPageWindow::getAccessibleParent( ) th
return xParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTabPageWindow::getAccessibleIndexInParent( ) throw (RuntimeException)
{
@@ -138,6 +138,6 @@ sal_Int32 VCLXAccessibleTabPageWindow::getAccessibleIndexInParent( ) throw (Run
return 0;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessibletextcomponent.cxx b/accessibility/source/standard/vclxaccessibletextcomponent.cxx
index 598ac7e1dde5..ea2070aa3ec5 100644
--- a/accessibility/source/standard/vclxaccessibletextcomponent.cxx
+++ b/accessibility/source/standard/vclxaccessibletextcomponent.cxx
@@ -54,13 +54,13 @@ VCLXAccessibleTextComponent::VCLXAccessibleTextComponent( VCLXWindow* pVCLXWindo
m_sText = OutputDevice::GetNonMnemonicString( GetWindow()->GetText() );
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleTextComponent::~VCLXAccessibleTextComponent()
{
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTextComponent::SetText( const OUString& sText )
{
@@ -72,7 +72,7 @@ void VCLXAccessibleTextComponent::SetText( const OUString& sText )
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTextComponent::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
@@ -89,9 +89,9 @@ void VCLXAccessibleTextComponent::ProcessWindowEvent( const VclWindowEvent& rVcl
}
}
-// -----------------------------------------------------------------------------
+
// OCommonAccessibleText
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleTextComponent::implGetText()
{
@@ -102,14 +102,14 @@ OUString VCLXAccessibleTextComponent::implGetText()
return aText;
}
-// -----------------------------------------------------------------------------
+
lang::Locale VCLXAccessibleTextComponent::implGetLocale()
{
return Application::GetSettings().GetLanguageTag().getLocale();
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTextComponent::implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex )
{
@@ -117,9 +117,9 @@ void VCLXAccessibleTextComponent::implGetSelection( sal_Int32& nStartIndex, sal_
nEndIndex = 0;
}
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleTextComponent::disposing()
{
@@ -128,21 +128,21 @@ void VCLXAccessibleTextComponent::disposing()
m_sText = OUString();
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleTextComponent, VCLXAccessibleComponent, VCLXAccessibleTextComponent_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleTextComponent, VCLXAccessibleComponent, VCLXAccessibleTextComponent_BASE )
-// -----------------------------------------------------------------------------
+
// XAccessibleText
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTextComponent::getCaretPosition() throw (RuntimeException)
{
@@ -151,7 +151,7 @@ sal_Int32 VCLXAccessibleTextComponent::getCaretPosition() throw (RuntimeExceptio
return -1;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleTextComponent::setCaretPosition( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -160,7 +160,7 @@ sal_Bool VCLXAccessibleTextComponent::setCaretPosition( sal_Int32 nIndex ) throw
return setSelection( nIndex, nIndex );
}
-// -----------------------------------------------------------------------------
+
sal_Unicode VCLXAccessibleTextComponent::getCharacter( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -169,7 +169,7 @@ sal_Unicode VCLXAccessibleTextComponent::getCharacter( sal_Int32 nIndex ) throw
return OCommonAccessibleText::getCharacter( nIndex );
}
-// -----------------------------------------------------------------------------
+
Sequence< PropertyValue > VCLXAccessibleTextComponent::getCharacterAttributes( sal_Int32 nIndex, const Sequence< OUString >& aRequestedAttributes ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -244,7 +244,7 @@ Sequence< PropertyValue > VCLXAccessibleTextComponent::getCharacterAttributes( s
return aValues;
}
-// -----------------------------------------------------------------------------
+
awt::Rectangle VCLXAccessibleTextComponent::getCharacterBounds( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -261,7 +261,7 @@ awt::Rectangle VCLXAccessibleTextComponent::getCharacterBounds( sal_Int32 nIndex
return aRect;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTextComponent::getCharacterCount() throw (RuntimeException)
{
@@ -270,7 +270,7 @@ sal_Int32 VCLXAccessibleTextComponent::getCharacterCount() throw (RuntimeExcepti
return OCommonAccessibleText::getCharacterCount();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTextComponent::getIndexAtPoint( const awt::Point& aPoint ) throw (RuntimeException)
{
@@ -284,7 +284,7 @@ sal_Int32 VCLXAccessibleTextComponent::getIndexAtPoint( const awt::Point& aPoint
return nIndex;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleTextComponent::getSelectedText() throw (RuntimeException)
{
@@ -293,7 +293,7 @@ OUString VCLXAccessibleTextComponent::getSelectedText() throw (RuntimeException)
return OCommonAccessibleText::getSelectedText();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTextComponent::getSelectionStart() throw (RuntimeException)
{
@@ -302,7 +302,7 @@ sal_Int32 VCLXAccessibleTextComponent::getSelectionStart() throw (RuntimeExcepti
return OCommonAccessibleText::getSelectionStart();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleTextComponent::getSelectionEnd() throw (RuntimeException)
{
@@ -311,7 +311,7 @@ sal_Int32 VCLXAccessibleTextComponent::getSelectionEnd() throw (RuntimeException
return OCommonAccessibleText::getSelectionEnd();
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleTextComponent::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -323,7 +323,7 @@ sal_Bool VCLXAccessibleTextComponent::setSelection( sal_Int32 nStartIndex, sal_I
return sal_False;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleTextComponent::getText() throw (RuntimeException)
{
@@ -332,7 +332,7 @@ OUString VCLXAccessibleTextComponent::getText() throw (RuntimeException)
return OCommonAccessibleText::getText();
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleTextComponent::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -341,7 +341,7 @@ OUString VCLXAccessibleTextComponent::getTextRange( sal_Int32 nStartIndex, sal_I
return OCommonAccessibleText::getTextRange( nStartIndex, nEndIndex );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::accessibility::TextSegment VCLXAccessibleTextComponent::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -350,7 +350,7 @@ OUString VCLXAccessibleTextComponent::getTextRange( sal_Int32 nStartIndex, sal_I
return OCommonAccessibleText::getTextAtIndex( nIndex, aTextType );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::accessibility::TextSegment VCLXAccessibleTextComponent::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -359,7 +359,7 @@ OUString VCLXAccessibleTextComponent::getTextRange( sal_Int32 nStartIndex, sal_I
return OCommonAccessibleText::getTextBeforeIndex( nIndex, aTextType );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::accessibility::TextSegment VCLXAccessibleTextComponent::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -368,7 +368,7 @@ OUString VCLXAccessibleTextComponent::getTextRange( sal_Int32 nStartIndex, sal_I
return OCommonAccessibleText::getTextBehindIndex( nIndex, aTextType );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleTextComponent::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -400,6 +400,6 @@ sal_Bool VCLXAccessibleTextComponent::copyText( sal_Int32 nStartIndex, sal_Int32
return bReturn;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessibletoolbox.cxx b/accessibility/source/standard/vclxaccessibletoolbox.cxx
index 4492fde91d86..a748f7319093 100644
--- a/accessibility/source/standard/vclxaccessibletoolbox.cxx
+++ b/accessibility/source/standard/vclxaccessibletoolbox.cxx
@@ -63,7 +63,7 @@ namespace
virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException);
};
- // -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OToolBoxWindowItemContext::getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -119,18 +119,15 @@ namespace
static Sequence< sal_Int8 > getUnoTunnelImplementationId();
};
- // -------------------------------------------------------------------------
IMPLEMENT_FORWARD_XINTERFACE2( OToolBoxWindowItem, OAccessibleWrapper, OToolBoxWindowItem_Base )
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OToolBoxWindowItem, OAccessibleWrapper, OToolBoxWindowItem_Base )
- // -------------------------------------------------------------------------
OAccessibleContextWrapper* OToolBoxWindowItem::createAccessibleContext(
const Reference< XAccessibleContext >& _rxInnerContext )
{
return new OToolBoxWindowItemContext( m_nIndexInParent, getComponentContext(), _rxInnerContext, this, getParent() );
}
- //--------------------------------------------------------------------
sal_Bool OToolBoxWindowItem::isWindowItem( const Reference< XAccessible >& _rxAcc, OToolBoxWindowItem** /* [out] */ _ppImplementation )
{
OToolBoxWindowItem* pImplementation = NULL;
@@ -145,7 +142,6 @@ namespace
return NULL != pImplementation;
}
- //--------------------------------------------------------------------
Sequence< sal_Int8 > OToolBoxWindowItem::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -161,7 +157,6 @@ namespace
return pId->getImplementationId();
}
- //--------------------------------------------------------------------
sal_Int64 SAL_CALL OToolBoxWindowItem::getSomething( const Sequence< sal_Int8 >& _rId ) throw (RuntimeException)
{
if ( ( 16 == _rId.getLength() )
@@ -173,20 +168,19 @@ namespace
}
}
-// -----------------------------------------------------------------------------
// VCLXAccessibleToolBox
-// -----------------------------------------------------------------------------
+
VCLXAccessibleToolBox::VCLXAccessibleToolBox( VCLXWindow* pVCLXWindow ) :
VCLXAccessibleComponent( pVCLXWindow )
{
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleToolBox::~VCLXAccessibleToolBox()
{
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleToolBoxItem* VCLXAccessibleToolBox::GetItem_Impl( sal_Int32 _nPos, bool _bMustHaveFocus )
{
VCLXAccessibleToolBoxItem* pItem = NULL;
@@ -201,7 +195,6 @@ VCLXAccessibleToolBoxItem* VCLXAccessibleToolBox::GetItem_Impl( sal_Int32 _nPos,
return pItem;
}
-// -----------------------------------------------------------------------------
void VCLXAccessibleToolBox::UpdateFocus_Impl()
{
@@ -254,7 +247,7 @@ void VCLXAccessibleToolBox::UpdateFocus_Impl()
}
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::ReleaseFocus_Impl( sal_Int32 _nPos )
{
ToolBox* pToolBox = static_cast< ToolBox* >( GetWindow() );
@@ -270,7 +263,7 @@ void VCLXAccessibleToolBox::ReleaseFocus_Impl( sal_Int32 _nPos )
}
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::UpdateChecked_Impl( sal_Int32 _nPos )
{
ToolBox* pToolBox = static_cast< ToolBox* >( GetWindow() );
@@ -295,7 +288,7 @@ void VCLXAccessibleToolBox::UpdateChecked_Impl( sal_Int32 _nPos )
pFocusItem->SetFocus( sal_True );
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::UpdateIndeterminate_Impl( sal_Int32 _nPos )
{
ToolBox* pToolBox = static_cast< ToolBox* >( GetWindow() );
@@ -313,7 +306,7 @@ void VCLXAccessibleToolBox::UpdateIndeterminate_Impl( sal_Int32 _nPos )
}
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::implReleaseToolboxItem( ToolBoxItemsMap::iterator& _rMapPos,
bool _bNotifyRemoval, bool _bDispose )
{
@@ -346,7 +339,6 @@ void VCLXAccessibleToolBox::implReleaseToolboxItem( ToolBoxItemsMap::iterator& _
}
}
-// -----------------------------------------------------------------------------
void VCLXAccessibleToolBox::UpdateItem_Impl( sal_Int32 _nPos, sal_Bool _bItemAdded )
{
if ( _nPos < sal_Int32( m_aAccessibleChildren.size() ) )
@@ -408,7 +400,7 @@ void VCLXAccessibleToolBox::UpdateItem_Impl( sal_Int32 _nPos, sal_Bool _bItemAdd
}
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::UpdateAllItems_Impl()
{
ToolBox* pToolBox = static_cast< ToolBox* >( GetWindow() );
@@ -433,8 +425,6 @@ void VCLXAccessibleToolBox::UpdateAllItems_Impl()
}
}
-// -----------------------------------------------------------------------------
-
void VCLXAccessibleToolBox::UpdateCustomPopupItemp_Impl( Window* pWindow, bool bOpen )
{
ToolBox* pToolBox = static_cast< ToolBox* >( GetWindow() );
@@ -452,21 +442,20 @@ void VCLXAccessibleToolBox::UpdateCustomPopupItemp_Impl( Window* pWindow, bool b
}
}
-// -----------------------------------------------------------------------------
void VCLXAccessibleToolBox::UpdateItemName_Impl( sal_Int32 _nPos )
{
VCLXAccessibleToolBoxItem* pItem = GetItem_Impl( _nPos, false );
if ( pItem )
pItem->NameChanged();
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::UpdateItemEnabled_Impl( sal_Int32 _nPos )
{
VCLXAccessibleToolBoxItem* pItem = GetItem_Impl( _nPos, false );
if ( pItem )
pItem->ToggleEnableState();
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::HandleSubToolBarEvent( const VclWindowEvent& rVclWindowEvent, bool _bShow )
{
Window* pChildWindow = (Window *) rVclWindowEvent.GetData();
@@ -488,7 +477,7 @@ void VCLXAccessibleToolBox::HandleSubToolBarEvent( const VclWindowEvent& rVclWin
}
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::ReleaseSubToolBox( ToolBox* _pSubToolBox )
{
ToolBox* pToolBox = static_cast< ToolBox* >( GetWindow() );
@@ -512,7 +501,7 @@ void VCLXAccessibleToolBox::ReleaseSubToolBox( ToolBox* _pSubToolBox )
pItem->NotifyChildEvent( xChild, false );
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
VCLXAccessibleComponent::FillAccessibleStateSet( rStateSet );
@@ -527,7 +516,7 @@ void VCLXAccessibleToolBox::FillAccessibleStateSet( utl::AccessibleStateSetHelpe
rStateSet.AddState( AccessibleStateType::VERTICAL );
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
// to prevent an early release of the toolbox (VCLEVENT_OBJECT_DYING)
@@ -648,7 +637,7 @@ void VCLXAccessibleToolBox::ProcessWindowEvent( const VclWindowEvent& rVclWindow
VCLXAccessibleComponent::ProcessWindowEvent( rVclWindowEvent );
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::ProcessWindowChildEvent( const VclWindowEvent& rVclWindowEvent )
{
switch ( rVclWindowEvent.GetId() )
@@ -668,17 +657,14 @@ void VCLXAccessibleToolBox::ProcessWindowChildEvent( const VclWindowEvent& rVclW
}
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleToolBox, VCLXAccessibleComponent, VCLXAccessibleToolBox_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleToolBox, VCLXAccessibleComponent, VCLXAccessibleToolBox_BASE )
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
void SAL_CALL VCLXAccessibleToolBox::disposing()
{
VCLXAccessibleComponent::disposing();
@@ -691,14 +677,13 @@ void SAL_CALL VCLXAccessibleToolBox::disposing()
}
m_aAccessibleChildren.clear();
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
OUString VCLXAccessibleToolBox::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleToolBox" );
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleToolBox::getSupportedServiceNames() throw (RuntimeException)
{
Sequence< OUString > aNames = VCLXAccessibleComponent::getSupportedServiceNames();
@@ -707,9 +692,8 @@ Sequence< OUString > VCLXAccessibleToolBox::getSupportedServiceNames() throw (Ru
aNames[nLength] = "com.sun.star.accessibility.AccessibleToolBox";
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
sal_Int32 SAL_CALL VCLXAccessibleToolBox::getAccessibleChildCount( ) throw (RuntimeException)
{
comphelper::OExternalLockGuard aGuard( this );
@@ -721,7 +705,7 @@ sal_Int32 SAL_CALL VCLXAccessibleToolBox::getAccessibleChildCount( ) throw (Run
return nCount;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL VCLXAccessibleToolBox::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
if ( i < 0 || i >= getAccessibleChildCount() )
@@ -768,7 +752,7 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleToolBox::getAccessibleChild( sal
return NULL;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL VCLXAccessibleToolBox::getAccessibleAtPoint( const awt::Point& _rPoint ) throw (RuntimeException)
{
comphelper::OExternalLockGuard aGuard( this );
@@ -784,7 +768,7 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleToolBox::getAccessibleAtPoint( c
return xAccessible;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleToolBox::GetItemWindowAccessible( const VclWindowEvent& rVclWindowEvent )
{
Reference< XAccessible > xReturn;
@@ -803,7 +787,7 @@ Reference< XAccessible > VCLXAccessibleToolBox::GetItemWindowAccessible( const V
}
return xReturn;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleToolBox::GetChildAccessible( const VclWindowEvent& rVclWindowEvent )
{
Reference< XAccessible > xReturn = GetItemWindowAccessible(rVclWindowEvent);
@@ -812,9 +796,8 @@ Reference< XAccessible > VCLXAccessibleToolBox::GetChildAccessible( const VclWin
xReturn = VCLXAccessibleComponent::GetChildAccessible(rVclWindowEvent);
return xReturn;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleSelection
-// -----------------------------------------------------------------------------
void VCLXAccessibleToolBox::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -824,7 +807,7 @@ void VCLXAccessibleToolBox::selectAccessibleChild( sal_Int32 nChildIndex ) throw
sal_uInt16 nPos = static_cast < sal_uInt16 > (nChildIndex);
pToolBox->ChangeHighlight( nPos );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleToolBox::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -837,20 +820,20 @@ sal_Bool VCLXAccessibleToolBox::isAccessibleChildSelected( sal_Int32 nChildIndex
else
return sal_False;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::clearAccessibleSelection( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
ToolBox * pToolBox = static_cast < ToolBox * > ( GetWindow() );
pToolBox -> LoseFocus();
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::selectAllAccessibleChildren( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
// intentionally empty. makes no sense for a toolbox
}
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleToolBox::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -865,7 +848,7 @@ sal_Int32 VCLXAccessibleToolBox::getSelectedAccessibleChildCount( ) throw (Runt
}
return nRet;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > VCLXAccessibleToolBox::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -882,7 +865,7 @@ Reference< XAccessible > VCLXAccessibleToolBox::getSelectedAccessibleChild( sal_
}
return xChild;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBox::deselectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -890,6 +873,5 @@ void VCLXAccessibleToolBox::deselectAccessibleChild( sal_Int32 nChildIndex ) thr
throw IndexOutOfBoundsException();
clearAccessibleSelection(); // a toolbox can only have (n)one selected child
}
-// -----------------------------------------------------------------------------
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
index f32aab008385..2ec93928f258 100644
--- a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
+++ b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
@@ -54,9 +54,9 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// Ctor() and Dtor()
-// -----------------------------------------------------------------------------
+
VCLXAccessibleToolBoxItem::VCLXAccessibleToolBoxItem( ToolBox* _pToolBox, sal_Int32 _nPos ) :
AccessibleTextHelper_BASE( new VCLExternalSolarLock() ),
@@ -112,13 +112,13 @@ VCLXAccessibleToolBoxItem::VCLXAccessibleToolBoxItem( ToolBox* _pToolBox, sal_In
}
}
}
-// -----------------------------------------------------------------------------
+
VCLXAccessibleToolBoxItem::~VCLXAccessibleToolBoxItem()
{
delete m_pExternalLock;
m_pExternalLock = NULL;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleToolBoxItem::GetText( bool _bAsName )
{
OUString sRet;
@@ -141,7 +141,7 @@ OUString VCLXAccessibleToolBoxItem::GetText( bool _bAsName )
}
return sRet;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBoxItem::SetFocus( sal_Bool _bFocus )
{
if ( m_bHasFocus != _bFocus )
@@ -156,7 +156,7 @@ void VCLXAccessibleToolBoxItem::SetFocus( sal_Bool _bFocus )
NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBoxItem::SetChecked( sal_Bool _bCheck )
{
if( m_nRole == AccessibleRole::PANEL)
@@ -173,7 +173,7 @@ void VCLXAccessibleToolBoxItem::SetChecked( sal_Bool _bCheck )
NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBoxItem::SetIndeterminate( bool _bIndeterminate )
{
if ( m_bIndeterminate != _bIndeterminate )
@@ -187,7 +187,7 @@ void VCLXAccessibleToolBoxItem::SetIndeterminate( bool _bIndeterminate )
NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBoxItem::NameChanged()
{
OUString sNewName = implGetText();
@@ -201,19 +201,19 @@ void VCLXAccessibleToolBoxItem::NameChanged()
NotifyAccessibleEvent( AccessibleEventId::NAME_CHANGED, aOldValue, aNewValue );
}
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBoxItem::SetChild( const Reference< XAccessible >& _xChild )
{
m_xChild = _xChild;
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBoxItem::NotifyChildEvent( const Reference< XAccessible >& _xChild, bool _bShow )
{
Any aOld = _bShow ? Any() : makeAny( _xChild );
Any aNew = _bShow ? makeAny( _xChild ) : Any();
NotifyAccessibleEvent( AccessibleEventId::CHILD, aOld, aNew );
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBoxItem::ToggleEnableState()
{
Any aOldValue[2], aNewValue[2];
@@ -231,7 +231,7 @@ void VCLXAccessibleToolBoxItem::ToggleEnableState()
NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue[0], aNewValue[0] );
NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue[1], aNewValue[1] );
}
-// -----------------------------------------------------------------------------
+
awt::Rectangle SAL_CALL VCLXAccessibleToolBoxItem::implGetBounds( ) throw (RuntimeException)
{
awt::Rectangle aRect;
@@ -240,25 +240,25 @@ awt::Rectangle SAL_CALL VCLXAccessibleToolBoxItem::implGetBounds( ) throw (Runt
return aRect;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleToolBoxItem::implGetText()
{
return GetText (true);
}
-// -----------------------------------------------------------------------------
+
Locale VCLXAccessibleToolBoxItem::implGetLocale()
{
return Application::GetSettings().GetUILanguageTag().getLocale();
}
-// -----------------------------------------------------------------------------
+
void VCLXAccessibleToolBoxItem::implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex )
{
nStartIndex = 0;
nEndIndex = 0;
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_REFCOUNT( VCLXAccessibleToolBoxItem, AccessibleTextHelper_BASE )
Any SAL_CALL VCLXAccessibleToolBoxItem::queryInterface( const Type& _rType ) throw (RuntimeException)
{
@@ -272,31 +272,31 @@ Any SAL_CALL VCLXAccessibleToolBoxItem::queryInterface( const Type& _rType ) thr
aReturn = VCLXAccessibleToolBoxItem_BASE::queryInterface( _rType );
return aReturn;
}
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleToolBoxItem, AccessibleTextHelper_BASE, VCLXAccessibleToolBoxItem_BASE )
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
+
void SAL_CALL VCLXAccessibleToolBoxItem::disposing()
{
AccessibleTextHelper_BASE::disposing();
m_pToolBox = NULL;
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleToolBoxItem::getImplementationName() throw (RuntimeException)
{
return OUString( "com.sun.star.comp.toolkit.AccessibleToolBoxItem" );
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleToolBoxItem::supportsService( const OUString& rServiceName ) throw (RuntimeException)
{
return cppu::supportsService(this, rServiceName);
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > VCLXAccessibleToolBoxItem::getSupportedServiceNames() throw (RuntimeException)
{
Sequence< OUString > aNames(4);
@@ -306,23 +306,23 @@ Sequence< OUString > VCLXAccessibleToolBoxItem::getSupportedServiceNames() throw
aNames[3] = "com.sun.star.accessibility.AccessibleToolBoxItem";
return aNames;
}
-// -----------------------------------------------------------------------------
+
// XAccessible
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleContext > SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleContext( ) throw (RuntimeException)
{
return this;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleContext
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleChildCount( ) throw (RuntimeException)
{
OContextEntryGuard aGuard( this );
return m_xChild.is() ? 1 : 0;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleChild( sal_Int32 i ) throw (RuntimeException, com::sun::star::lang::IndexOutOfBoundsException)
{
OContextEntryGuard aGuard( this );
@@ -333,28 +333,28 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleChild(
return m_xChild;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleParent( ) throw (RuntimeException)
{
OContextEntryGuard aGuard( this );
return m_pToolBox->GetAccessible();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleIndexInParent( ) throw (RuntimeException)
{
OContextEntryGuard aGuard( this );
return m_nIndexInParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleRole( ) throw (RuntimeException)
{
OContextEntryGuard aGuard( this );
return m_nRole;
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleDescription( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -371,7 +371,7 @@ OUString SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleDescription( ) throw
return sDescription;
}
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleName( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -379,7 +379,7 @@ OUString SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleName( ) throw (Runtim
// entry text == accessible name
return GetText( true );
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleRelationSet( ) throw (RuntimeException)
{
OContextEntryGuard aGuard( this );
@@ -388,7 +388,7 @@ Reference< XAccessibleRelationSet > SAL_CALL VCLXAccessibleToolBoxItem::getAcces
Reference< XAccessibleRelationSet > xSet = pRelationSetHelper;
return xSet;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleStateSet > SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleStateSet( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -420,14 +420,14 @@ Reference< XAccessibleStateSet > SAL_CALL VCLXAccessibleToolBoxItem::getAccessib
return xStateSet;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleText
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleToolBoxItem::getCaretPosition() throw (RuntimeException)
{
return -1;
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL VCLXAccessibleToolBoxItem::setCaretPosition( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -437,7 +437,7 @@ sal_Bool SAL_CALL VCLXAccessibleToolBoxItem::setCaretPosition( sal_Int32 nIndex
return sal_False;
}
-// -----------------------------------------------------------------------------
+
Sequence< PropertyValue > SAL_CALL VCLXAccessibleToolBoxItem::getCharacterAttributes( sal_Int32 nIndex, const Sequence< OUString >& ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -449,7 +449,7 @@ Sequence< PropertyValue > SAL_CALL VCLXAccessibleToolBoxItem::getCharacterAttrib
return Sequence< PropertyValue >();
}
-// -----------------------------------------------------------------------------
+
awt::Rectangle SAL_CALL VCLXAccessibleToolBoxItem::getCharacterBounds( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -470,7 +470,7 @@ awt::Rectangle SAL_CALL VCLXAccessibleToolBoxItem::getCharacterBounds( sal_Int32
return aBounds;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleToolBoxItem::getIndexAtPoint( const awt::Point& aPoint ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -489,7 +489,7 @@ sal_Int32 SAL_CALL VCLXAccessibleToolBoxItem::getIndexAtPoint( const awt::Point&
return nIndex;
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL VCLXAccessibleToolBoxItem::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -499,7 +499,7 @@ sal_Bool SAL_CALL VCLXAccessibleToolBoxItem::setSelection( sal_Int32 nStartIndex
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL VCLXAccessibleToolBoxItem::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -532,14 +532,14 @@ sal_Bool SAL_CALL VCLXAccessibleToolBoxItem::copyText( sal_Int32 nStartIndex, sa
return bReturn;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleComponent
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleAtPoint( const awt::Point& ) throw (RuntimeException)
{
return Reference< XAccessible >();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL VCLXAccessibleToolBoxItem::grabFocus( ) throw (RuntimeException)
{
Reference< XAccessible > xParent(getAccessibleParent());
@@ -554,7 +554,7 @@ void SAL_CALL VCLXAccessibleToolBoxItem::grabFocus( ) throw (RuntimeException)
}
}
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleToolBoxItem::getForeground( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -565,7 +565,7 @@ sal_Int32 SAL_CALL VCLXAccessibleToolBoxItem::getForeground( ) throw (RuntimeEx
return nColor;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL VCLXAccessibleToolBoxItem::getBackground( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -576,19 +576,19 @@ sal_Int32 SAL_CALL VCLXAccessibleToolBoxItem::getBackground( ) throw (RuntimeEx
return nColor;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleExtendedComponent
-// -----------------------------------------------------------------------------
+
Reference< awt::XFont > SAL_CALL VCLXAccessibleToolBoxItem::getFont( ) throw (RuntimeException)
{
return uno::Reference< awt::XFont >();
}
-// -----------------------------------------------------------------------------
+
awt::FontDescriptor SAL_CALL VCLXAccessibleToolBoxItem::getFontMetrics( const Reference< awt::XFont >& xFont ) throw (RuntimeException)
{
return xFont->getFontDescriptor();
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL VCLXAccessibleToolBoxItem::getTitledBorderText( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -599,7 +599,7 @@ OUString SAL_CALL VCLXAccessibleToolBoxItem::getTitledBorderText( ) throw (Runt
return sRet;
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL VCLXAccessibleToolBoxItem::getToolTipText( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -617,15 +617,15 @@ OUString SAL_CALL VCLXAccessibleToolBoxItem::getToolTipText( ) throw (RuntimeEx
}
return sRet;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleAction
-// -----------------------------------------------------------------------------
+
sal_Int32 VCLXAccessibleToolBoxItem::getAccessibleActionCount( ) throw (RuntimeException)
{
// only one action -> "Click"
return 1;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleToolBoxItem::doAccessibleAction ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -638,7 +638,7 @@ sal_Bool VCLXAccessibleToolBoxItem::doAccessibleAction ( sal_Int32 nIndex ) thro
return sal_True;
}
-// -----------------------------------------------------------------------------
+
OUString VCLXAccessibleToolBoxItem::getAccessibleActionDescription ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -648,7 +648,7 @@ OUString VCLXAccessibleToolBoxItem::getAccessibleActionDescription ( sal_Int32 n
return OUString( TK_RES_STRING( RID_STR_ACC_ACTION_CLICK ) );
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleKeyBinding > VCLXAccessibleToolBoxItem::getAccessibleActionKeyBinding( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OContextEntryGuard aGuard( this );
@@ -658,9 +658,9 @@ Reference< XAccessibleKeyBinding > VCLXAccessibleToolBoxItem::getAccessibleActio
return Reference< XAccessibleKeyBinding >();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleValue
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleToolBoxItem::getCurrentValue( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -673,7 +673,7 @@ Any VCLXAccessibleToolBoxItem::getCurrentValue( ) throw (RuntimeException)
aValue <<= (sal_Int32)0;
return aValue;
}
-// -----------------------------------------------------------------------------
+
sal_Bool VCLXAccessibleToolBoxItem::setCurrentValue( const Any& aNumber ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -696,17 +696,17 @@ sal_Bool VCLXAccessibleToolBoxItem::setCurrentValue( const Any& aNumber ) throw
return bReturn;
}
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleToolBoxItem::getMaximumValue( ) throw (RuntimeException)
{
return makeAny((sal_Int32)1);
}
-// -----------------------------------------------------------------------------
+
Any VCLXAccessibleToolBoxItem::getMinimumValue( ) throw (RuntimeException)
{
return makeAny((sal_Int32)0);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx
index b5e3cd5a18e5..b199af33103f 100644
--- a/animations/source/animcore/animcore.cxx
+++ b/animations/source/animcore/animcore.cxx
@@ -510,7 +510,7 @@ AnimationNode::~AnimationNode()
{
}
-// --------------------------------------------------------------------
+
#define IMPL_NODE_FACTORY(N,IN,SN)\
Reference< XInterface > SAL_CALL createInstance_##N( const Reference< XComponentContext > & ) throw (Exception)\
@@ -540,7 +540,7 @@ IMPL_NODE_FACTORY( TRANSITIONFILTER, "animcore::TransitionFilter", "com.sun.star
IMPL_NODE_FACTORY( AUDIO, "animcore::Audio", "com.sun.star.animations.Audio" );
IMPL_NODE_FACTORY( COMMAND, "animcore::Command", "com.sun.star.animations.Command" );
-// --------------------------------------------------------------------
+
// XInterface
Any SAL_CALL AnimationNode::queryInterface( const Type& aType ) throw (RuntimeException)
@@ -635,7 +635,7 @@ Any SAL_CALL AnimationNode::queryInterface( const Type& aType ) throw (RuntimeEx
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( aType );
}
-// --------------------------------------------------------------------
+
void AnimationNode::initTypeProvider( sal_Int16 nNodeType ) throw()
{
@@ -716,7 +716,7 @@ void AnimationNode::initTypeProvider( sal_Int16 nNodeType ) throw()
}
}
-// --------------------------------------------------------------------
+
Sequence< Type > AnimationNode::getTypes() throw (RuntimeException)
{
@@ -724,7 +724,7 @@ Sequence< Type > AnimationNode::getTypes() throw (RuntimeException)
initTypeProvider(mnNodeType);
return *mpTypes[mnNodeType];
}
-// --------------------------------------------------------------------
+
Sequence< sal_Int8 > AnimationNode::getImplementationId() throw (RuntimeException)
{
@@ -733,7 +733,7 @@ Sequence< sal_Int8 > AnimationNode::getImplementationId() throw (RuntimeExceptio
return *mpId[mnNodeType];
}
-// --------------------------------------------------------------------
+
// XInterface
void SAL_CALL AnimationNode::acquire( ) throw ()
@@ -741,7 +741,7 @@ void SAL_CALL AnimationNode::acquire( ) throw ()
OWeakObject::acquire();
}
-// --------------------------------------------------------------------
+
// XInterface
void SAL_CALL AnimationNode::release( ) throw ()
@@ -749,7 +749,7 @@ void SAL_CALL AnimationNode::release( ) throw ()
OWeakObject::release();
}
-// --------------------------------------------------------------------
+
// XServiceInfo
OUString AnimationNode::getImplementationName() throw()
@@ -817,7 +817,7 @@ Sequence< OUString > AnimationNode::getSupportedServiceNames(void) throw()
}
}
-// --------------------------------------------------------------------
+
// XAnimationNode
sal_Int16 SAL_CALL AnimationNode::getType() throw (RuntimeException)
@@ -826,7 +826,7 @@ sal_Int16 SAL_CALL AnimationNode::getType() throw (RuntimeException)
return mnNodeType;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
Any SAL_CALL AnimationNode::getBegin() throw (RuntimeException)
@@ -835,7 +835,7 @@ Any SAL_CALL AnimationNode::getBegin() throw (RuntimeException)
return maBegin;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
void SAL_CALL AnimationNode::setBegin( const Any& _begin ) throw (RuntimeException)
@@ -848,7 +848,7 @@ void SAL_CALL AnimationNode::setBegin( const Any& _begin ) throw (RuntimeExcepti
}
}
-// --------------------------------------------------------------------
+
// XAnimationNode
Any SAL_CALL AnimationNode::getDuration() throw (RuntimeException)
@@ -857,7 +857,7 @@ Any SAL_CALL AnimationNode::getDuration() throw (RuntimeException)
return maDuration;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
void SAL_CALL AnimationNode::setDuration( const Any& _duration ) throw (RuntimeException)
@@ -870,7 +870,7 @@ void SAL_CALL AnimationNode::setDuration( const Any& _duration ) throw (RuntimeE
}
}
-// --------------------------------------------------------------------
+
// XAnimationNode
Any SAL_CALL AnimationNode::getEnd() throw (RuntimeException)
@@ -879,7 +879,7 @@ Any SAL_CALL AnimationNode::getEnd() throw (RuntimeException)
return maEnd;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
void SAL_CALL AnimationNode::setEnd( const Any& _end ) throw (RuntimeException)
@@ -892,7 +892,7 @@ void SAL_CALL AnimationNode::setEnd( const Any& _end ) throw (RuntimeException)
}
}
-// --------------------------------------------------------------------
+
// XAnimationNode
Any SAL_CALL AnimationNode::getEndSync() throw (RuntimeException)
@@ -901,7 +901,7 @@ Any SAL_CALL AnimationNode::getEndSync() throw (RuntimeException)
return maEndSync;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
void SAL_CALL AnimationNode::setEndSync( const Any& _endsync ) throw (RuntimeException)
@@ -914,7 +914,7 @@ void SAL_CALL AnimationNode::setEndSync( const Any& _endsync ) throw (RuntimeExc
}
}
-// --------------------------------------------------------------------
+
// XAnimationNode
Any SAL_CALL AnimationNode::getRepeatCount() throw (RuntimeException)
@@ -923,7 +923,7 @@ Any SAL_CALL AnimationNode::getRepeatCount() throw (RuntimeException)
return maRepeatCount;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
void SAL_CALL AnimationNode::setRepeatCount( const Any& _repeatcount ) throw (RuntimeException)
@@ -936,7 +936,7 @@ void SAL_CALL AnimationNode::setRepeatCount( const Any& _repeatcount ) throw (Ru
}
}
-// --------------------------------------------------------------------
+
// XAnimationNode
Any SAL_CALL AnimationNode::getRepeatDuration() throw (RuntimeException)
@@ -945,7 +945,7 @@ Any SAL_CALL AnimationNode::getRepeatDuration() throw (RuntimeException)
return maRepeatDuration;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
void SAL_CALL AnimationNode::setRepeatDuration( const Any& _repeatduration ) throw (RuntimeException)
@@ -958,7 +958,7 @@ void SAL_CALL AnimationNode::setRepeatDuration( const Any& _repeatduration ) thr
}
}
-// --------------------------------------------------------------------
+
// XAnimationNode
sal_Int16 SAL_CALL AnimationNode::getFill() throw (RuntimeException)
@@ -967,7 +967,7 @@ sal_Int16 SAL_CALL AnimationNode::getFill() throw (RuntimeException)
return mnFill;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
void SAL_CALL AnimationNode::setFill( sal_Int16 _fill ) throw (RuntimeException)
@@ -980,7 +980,7 @@ void SAL_CALL AnimationNode::setFill( sal_Int16 _fill ) throw (RuntimeException)
}
}
-// --------------------------------------------------------------------
+
// XAnimationNode
sal_Int16 SAL_CALL AnimationNode::getFillDefault() throw (RuntimeException)
@@ -989,7 +989,7 @@ sal_Int16 SAL_CALL AnimationNode::getFillDefault() throw (RuntimeException)
return mnFillDefault;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
void SAL_CALL AnimationNode::setFillDefault( sal_Int16 _filldefault ) throw (RuntimeException)
@@ -1002,7 +1002,7 @@ void SAL_CALL AnimationNode::setFillDefault( sal_Int16 _filldefault ) throw (Run
}
}
-// --------------------------------------------------------------------
+
// XAnimationNode
sal_Int16 SAL_CALL AnimationNode::getRestart() throw (RuntimeException)
@@ -1011,7 +1011,7 @@ sal_Int16 SAL_CALL AnimationNode::getRestart() throw (RuntimeException)
return mnRestart;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
void SAL_CALL AnimationNode::setRestart( sal_Int16 _restart ) throw (RuntimeException)
@@ -1024,7 +1024,7 @@ void SAL_CALL AnimationNode::setRestart( sal_Int16 _restart ) throw (RuntimeExce
}
}
-// --------------------------------------------------------------------
+
// XAnimationNode
sal_Int16 SAL_CALL AnimationNode::getRestartDefault() throw (RuntimeException)
@@ -1033,7 +1033,7 @@ sal_Int16 SAL_CALL AnimationNode::getRestartDefault() throw (RuntimeException)
return mnRestartDefault;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
void SAL_CALL AnimationNode::setRestartDefault( sal_Int16 _restartdefault ) throw (RuntimeException)
@@ -1046,7 +1046,7 @@ void SAL_CALL AnimationNode::setRestartDefault( sal_Int16 _restartdefault ) thro
}
}
-// --------------------------------------------------------------------
+
// XAnimationNode
double SAL_CALL AnimationNode::getAcceleration() throw (RuntimeException)
@@ -1055,7 +1055,7 @@ double SAL_CALL AnimationNode::getAcceleration() throw (RuntimeException)
return mfAcceleration;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
void SAL_CALL AnimationNode::setAcceleration( double _acceleration ) throw (RuntimeException)
@@ -1068,7 +1068,7 @@ void SAL_CALL AnimationNode::setAcceleration( double _acceleration ) throw (Runt
}
}
-// --------------------------------------------------------------------
+
// XAnimationNode
double SAL_CALL AnimationNode::getDecelerate() throw (RuntimeException)
@@ -1077,7 +1077,7 @@ double SAL_CALL AnimationNode::getDecelerate() throw (RuntimeException)
return mfDecelerate;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
void SAL_CALL AnimationNode::setDecelerate( double _decelerate ) throw (RuntimeException)
@@ -1090,7 +1090,7 @@ void SAL_CALL AnimationNode::setDecelerate( double _decelerate ) throw (RuntimeE
}
}
-// --------------------------------------------------------------------
+
// XAnimationNode
sal_Bool SAL_CALL AnimationNode::getAutoReverse() throw (RuntimeException)
@@ -1099,7 +1099,7 @@ sal_Bool SAL_CALL AnimationNode::getAutoReverse() throw (RuntimeException)
return mbAutoReverse;
}
-// --------------------------------------------------------------------
+
// XAnimationNode
void SAL_CALL AnimationNode::setAutoReverse( sal_Bool _autoreverse ) throw (RuntimeException)
@@ -1112,7 +1112,7 @@ void SAL_CALL AnimationNode::setAutoReverse( sal_Bool _autoreverse ) throw (Runt
}
}
-// --------------------------------------------------------------------
+
Sequence< NamedValue > SAL_CALL AnimationNode::getUserData() throw (RuntimeException)
{
@@ -1120,7 +1120,7 @@ Sequence< NamedValue > SAL_CALL AnimationNode::getUserData() throw (RuntimeExcep
return maUserData;
}
-// --------------------------------------------------------------------
+
void SAL_CALL AnimationNode::setUserData( const Sequence< NamedValue >& _userdata ) throw (RuntimeException)
{
@@ -1129,7 +1129,7 @@ void SAL_CALL AnimationNode::setUserData( const Sequence< NamedValue >& _userdat
fireChangeListener();
}
-// --------------------------------------------------------------------
+
// XChild
Reference< XInterface > SAL_CALL AnimationNode::getParent() throw (RuntimeException)
@@ -1138,7 +1138,7 @@ Reference< XInterface > SAL_CALL AnimationNode::getParent() throw (RuntimeExcept
return mxParent.get();
}
-// --------------------------------------------------------------------
+
// XChild
void SAL_CALL AnimationNode::setParent( const Reference< XInterface >& Parent ) throw (NoSupportException, RuntimeException)
@@ -1157,7 +1157,7 @@ void SAL_CALL AnimationNode::setParent( const Reference< XInterface >& Parent )
}
}
-// --------------------------------------------------------------------
+
// XCloneable
Reference< XCloneable > SAL_CALL AnimationNode::createClone() throw (RuntimeException)
@@ -1201,7 +1201,7 @@ Reference< XCloneable > SAL_CALL AnimationNode::createClone() throw (RuntimeExce
return xNewNode;
}
-// --------------------------------------------------------------------
+
// XAnimate
Any SAL_CALL AnimationNode::getTarget()
@@ -1211,7 +1211,7 @@ Any SAL_CALL AnimationNode::getTarget()
return maTarget;
}
-// --------------------------------------------------------------------
+
// XAnimate
void SAL_CALL AnimationNode::setTarget( const Any& _target )
@@ -1225,7 +1225,7 @@ void SAL_CALL AnimationNode::setTarget( const Any& _target )
}
}
-// --------------------------------------------------------------------
+
// XAnimate
OUString SAL_CALL AnimationNode::getAttributeName() throw (RuntimeException)
@@ -1234,7 +1234,7 @@ OUString SAL_CALL AnimationNode::getAttributeName() throw (RuntimeException)
return maAttributeName;
}
-// --------------------------------------------------------------------
+
// XAnimate
void SAL_CALL AnimationNode::setAttributeName( const OUString& _attribute )
@@ -1248,7 +1248,7 @@ void SAL_CALL AnimationNode::setAttributeName( const OUString& _attribute )
}
}
-// --------------------------------------------------------------------
+
// XAnimate
Sequence< Any > SAL_CALL AnimationNode::getValues()
@@ -1258,7 +1258,7 @@ Sequence< Any > SAL_CALL AnimationNode::getValues()
return maValues;
}
-// --------------------------------------------------------------------
+
// XAnimate
void SAL_CALL AnimationNode::setValues( const Sequence< Any >& _values )
@@ -1269,7 +1269,7 @@ void SAL_CALL AnimationNode::setValues( const Sequence< Any >& _values )
fireChangeListener();
}
-// --------------------------------------------------------------------
+
// XAnimate
sal_Int16 SAL_CALL AnimationNode::getSubItem() throw (RuntimeException)
@@ -1278,7 +1278,7 @@ sal_Int16 SAL_CALL AnimationNode::getSubItem() throw (RuntimeException)
return mnSubItem;
}
-// --------------------------------------------------------------------
+
// XAnimate
void SAL_CALL AnimationNode::setSubItem( sal_Int16 _subitem ) throw (RuntimeException)
@@ -1291,7 +1291,7 @@ void SAL_CALL AnimationNode::setSubItem( sal_Int16 _subitem ) throw (RuntimeExce
}
}
-// --------------------------------------------------------------------
+
// XAnimate
Sequence< double > SAL_CALL AnimationNode::getKeyTimes() throw (RuntimeException)
@@ -1300,7 +1300,7 @@ Sequence< double > SAL_CALL AnimationNode::getKeyTimes() throw (RuntimeException
return maKeyTimes;
}
-// --------------------------------------------------------------------
+
// XAnimate
void SAL_CALL AnimationNode::setKeyTimes( const Sequence< double >& _keytimes ) throw (RuntimeException)
@@ -1310,7 +1310,7 @@ void SAL_CALL AnimationNode::setKeyTimes( const Sequence< double >& _keytimes )
fireChangeListener();
}
-// --------------------------------------------------------------------
+
// XAnimate
sal_Int16 SAL_CALL AnimationNode::getValueType() throw (RuntimeException)
@@ -1319,7 +1319,7 @@ sal_Int16 SAL_CALL AnimationNode::getValueType() throw (RuntimeException)
return mnValueType;
}
-// --------------------------------------------------------------------
+
void SAL_CALL AnimationNode::setValueType( sal_Int16 _valuetype ) throw (RuntimeException)
{
@@ -1331,7 +1331,7 @@ void SAL_CALL AnimationNode::setValueType( sal_Int16 _valuetype ) throw (Runtime
}
}
-// --------------------------------------------------------------------
+
// XAnimate
sal_Int16 SAL_CALL AnimationNode::getCalcMode()
@@ -1341,7 +1341,7 @@ sal_Int16 SAL_CALL AnimationNode::getCalcMode()
return mnCalcMode;
}
-// --------------------------------------------------------------------
+
// XAnimate
void SAL_CALL AnimationNode::setCalcMode( sal_Int16 _calcmode )
@@ -1355,7 +1355,7 @@ void SAL_CALL AnimationNode::setCalcMode( sal_Int16 _calcmode )
}
}
-// --------------------------------------------------------------------
+
// XAnimate
sal_Bool SAL_CALL AnimationNode::getAccumulate()
@@ -1365,7 +1365,7 @@ sal_Bool SAL_CALL AnimationNode::getAccumulate()
return mbAccumulate;
}
-// --------------------------------------------------------------------
+
// XAnimate
void SAL_CALL AnimationNode::setAccumulate( sal_Bool _accumulate )
@@ -1379,7 +1379,7 @@ void SAL_CALL AnimationNode::setAccumulate( sal_Bool _accumulate )
}
}
-// --------------------------------------------------------------------
+
// XAnimate
sal_Int16 SAL_CALL AnimationNode::getAdditive()
@@ -1389,7 +1389,7 @@ sal_Int16 SAL_CALL AnimationNode::getAdditive()
return mnAdditive;
}
-// --------------------------------------------------------------------
+
// XAnimate
void SAL_CALL AnimationNode::setAdditive( sal_Int16 _additive )
@@ -1403,7 +1403,7 @@ void SAL_CALL AnimationNode::setAdditive( sal_Int16 _additive )
}
}
-// --------------------------------------------------------------------
+
// XAnimate
Any SAL_CALL AnimationNode::getFrom()
@@ -1413,7 +1413,7 @@ Any SAL_CALL AnimationNode::getFrom()
return maFrom;
}
-// --------------------------------------------------------------------
+
// XAnimate
void SAL_CALL AnimationNode::setFrom( const Any& _from )
@@ -1427,7 +1427,7 @@ void SAL_CALL AnimationNode::setFrom( const Any& _from )
}
}
-// --------------------------------------------------------------------
+
// XAnimate
Any SAL_CALL AnimationNode::getTo()
@@ -1437,7 +1437,7 @@ Any SAL_CALL AnimationNode::getTo()
return maTo;
}
-// --------------------------------------------------------------------
+
// XAnimate
void SAL_CALL AnimationNode::setTo( const Any& _to )
@@ -1451,7 +1451,7 @@ void SAL_CALL AnimationNode::setTo( const Any& _to )
}
}
-// --------------------------------------------------------------------
+
// XAnimate
Any SAL_CALL AnimationNode::getBy()
@@ -1461,7 +1461,7 @@ Any SAL_CALL AnimationNode::getBy()
return maBy;
}
-// --------------------------------------------------------------------
+
// XAnimate
void SAL_CALL AnimationNode::setBy( const Any& _by )
@@ -1475,7 +1475,7 @@ void SAL_CALL AnimationNode::setBy( const Any& _by )
}
}
-// --------------------------------------------------------------------
+
// XAnimate
Sequence< TimeFilterPair > SAL_CALL AnimationNode::getTimeFilter()
@@ -1485,7 +1485,7 @@ Sequence< TimeFilterPair > SAL_CALL AnimationNode::getTimeFilter()
return maTimeFilter;
}
-// --------------------------------------------------------------------
+
// XAnimate
void SAL_CALL AnimationNode::setTimeFilter( const Sequence< TimeFilterPair >& _timefilter )
@@ -1496,7 +1496,7 @@ void SAL_CALL AnimationNode::setTimeFilter( const Sequence< TimeFilterPair >& _t
fireChangeListener();
}
-// --------------------------------------------------------------------
+
OUString SAL_CALL AnimationNode::getFormula() throw (RuntimeException)
{
@@ -1504,7 +1504,7 @@ OUString SAL_CALL AnimationNode::getFormula() throw (RuntimeException)
return maFormula;
}
-// --------------------------------------------------------------------
+
void SAL_CALL AnimationNode::setFormula( const OUString& _formula ) throw (RuntimeException)
{
@@ -1516,7 +1516,7 @@ void SAL_CALL AnimationNode::setFormula( const OUString& _formula ) throw (Runti
}
}
-// --------------------------------------------------------------------
+
// XAnimateColor
sal_Int16 SAL_CALL AnimationNode::getColorInterpolation() throw (RuntimeException)
@@ -1525,7 +1525,7 @@ sal_Int16 SAL_CALL AnimationNode::getColorInterpolation() throw (RuntimeExceptio
return mnColorSpace;
}
-// --------------------------------------------------------------------
+
// XAnimateColor
void SAL_CALL AnimationNode::setColorInterpolation( sal_Int16 _colorspace ) throw (RuntimeException)
@@ -1538,7 +1538,7 @@ void SAL_CALL AnimationNode::setColorInterpolation( sal_Int16 _colorspace ) thro
}
}
-// --------------------------------------------------------------------
+
// XAnimateColor
sal_Bool SAL_CALL AnimationNode::getDirection() throw (RuntimeException)
@@ -1547,7 +1547,7 @@ sal_Bool SAL_CALL AnimationNode::getDirection() throw (RuntimeException)
return mbDirection;
}
-// --------------------------------------------------------------------
+
// XAnimateColor
void SAL_CALL AnimationNode::setDirection( sal_Bool _direction ) throw (RuntimeException)
@@ -1560,7 +1560,7 @@ void SAL_CALL AnimationNode::setDirection( sal_Bool _direction ) throw (RuntimeE
}
}
-// --------------------------------------------------------------------
+
// XAnimateMotion
Any SAL_CALL AnimationNode::getPath() throw (RuntimeException)
@@ -1569,7 +1569,7 @@ Any SAL_CALL AnimationNode::getPath() throw (RuntimeException)
return maPath;
}
-// --------------------------------------------------------------------
+
// XAnimateMotion
void SAL_CALL AnimationNode::setPath( const Any& _path ) throw (RuntimeException)
@@ -1579,7 +1579,7 @@ void SAL_CALL AnimationNode::setPath( const Any& _path ) throw (RuntimeException
fireChangeListener();
}
-// --------------------------------------------------------------------
+
// XAnimateMotion
Any SAL_CALL AnimationNode::getOrigin() throw (RuntimeException)
@@ -1588,7 +1588,7 @@ Any SAL_CALL AnimationNode::getOrigin() throw (RuntimeException)
return maOrigin;
}
-// --------------------------------------------------------------------
+
// XAnimateMotion
void SAL_CALL AnimationNode::setOrigin( const Any& _origin ) throw (RuntimeException)
@@ -1598,7 +1598,7 @@ void SAL_CALL AnimationNode::setOrigin( const Any& _origin ) throw (RuntimeExcep
fireChangeListener();
}
-// --------------------------------------------------------------------
+
// XAnimateTransform
sal_Int16 SAL_CALL AnimationNode::getTransformType() throw (RuntimeException)
@@ -1607,7 +1607,7 @@ sal_Int16 SAL_CALL AnimationNode::getTransformType() throw (RuntimeException)
return mnTransformType;
}
-// --------------------------------------------------------------------
+
// XAnimateTransform
void SAL_CALL AnimationNode::setTransformType( sal_Int16 _transformtype ) throw (RuntimeException)
@@ -1620,7 +1620,7 @@ void SAL_CALL AnimationNode::setTransformType( sal_Int16 _transformtype ) throw
}
}
-// --------------------------------------------------------------------
+
// XTransitionFilter
sal_Int16 SAL_CALL AnimationNode::getTransition() throw (RuntimeException)
@@ -1629,7 +1629,7 @@ sal_Int16 SAL_CALL AnimationNode::getTransition() throw (RuntimeException)
return mnTransition;
}
-// --------------------------------------------------------------------
+
// XTransitionFilter
void SAL_CALL AnimationNode::setTransition( sal_Int16 _transition ) throw (RuntimeException)
@@ -1642,7 +1642,7 @@ void SAL_CALL AnimationNode::setTransition( sal_Int16 _transition ) throw (Runti
}
}
-// --------------------------------------------------------------------
+
// XTransitionFilter
sal_Int16 SAL_CALL AnimationNode::getSubtype() throw (RuntimeException)
@@ -1651,7 +1651,7 @@ sal_Int16 SAL_CALL AnimationNode::getSubtype() throw (RuntimeException)
return mnSubtype;
}
-// --------------------------------------------------------------------
+
// XTransitionFilter
void SAL_CALL AnimationNode::setSubtype( sal_Int16 _subtype ) throw (RuntimeException)
@@ -1664,7 +1664,7 @@ void SAL_CALL AnimationNode::setSubtype( sal_Int16 _subtype ) throw (RuntimeExce
}
}
-// --------------------------------------------------------------------
+
// XTransitionFilter
sal_Bool SAL_CALL AnimationNode::getMode() throw (RuntimeException)
@@ -1673,7 +1673,7 @@ sal_Bool SAL_CALL AnimationNode::getMode() throw (RuntimeException)
return mbMode;
}
-// --------------------------------------------------------------------
+
// XTransitionFilter
void SAL_CALL AnimationNode::setMode( sal_Bool _mode ) throw (RuntimeException)
@@ -1686,7 +1686,7 @@ void SAL_CALL AnimationNode::setMode( sal_Bool _mode ) throw (RuntimeException)
}
}
-// --------------------------------------------------------------------
+
// XTransitionFilter
sal_Int32 SAL_CALL AnimationNode::getFadeColor() throw (RuntimeException)
@@ -1695,7 +1695,7 @@ sal_Int32 SAL_CALL AnimationNode::getFadeColor() throw (RuntimeException)
return mnFadeColor;
}
-// --------------------------------------------------------------------
+
// XTransitionFilter
void SAL_CALL AnimationNode::setFadeColor( sal_Int32 _fadecolor ) throw (RuntimeException)
@@ -1708,7 +1708,7 @@ void SAL_CALL AnimationNode::setFadeColor( sal_Int32 _fadecolor ) throw (Runtime
}
}
-// --------------------------------------------------------------------
+
// XAudio
Any SAL_CALL AnimationNode::getSource() throw (RuntimeException)
@@ -1717,7 +1717,7 @@ Any SAL_CALL AnimationNode::getSource() throw (RuntimeException)
return maTarget;
}
-// --------------------------------------------------------------------
+
// XAudio
void SAL_CALL AnimationNode::setSource( const Any& _source ) throw (RuntimeException)
@@ -1727,7 +1727,7 @@ void SAL_CALL AnimationNode::setSource( const Any& _source ) throw (RuntimeExcep
fireChangeListener();
}
-// --------------------------------------------------------------------
+
// XAudio
double SAL_CALL AnimationNode::getVolume() throw (RuntimeException)
@@ -1736,7 +1736,7 @@ double SAL_CALL AnimationNode::getVolume() throw (RuntimeException)
return mfVolume;
}
-// --------------------------------------------------------------------
+
// XAudio
void SAL_CALL AnimationNode::setVolume( double _volume ) throw (RuntimeException)
@@ -1749,7 +1749,7 @@ void SAL_CALL AnimationNode::setVolume( double _volume ) throw (RuntimeException
}
}
-// --------------------------------------------------------------------
+
// XCommand
sal_Int16 SAL_CALL AnimationNode::getCommand() throw (RuntimeException)
@@ -1758,7 +1758,7 @@ sal_Int16 SAL_CALL AnimationNode::getCommand() throw (RuntimeException)
return mnCommand;
}
-// --------------------------------------------------------------------
+
// XCommand
void SAL_CALL AnimationNode::setCommand( sal_Int16 _command ) throw (RuntimeException)
@@ -1771,7 +1771,7 @@ void SAL_CALL AnimationNode::setCommand( sal_Int16 _command ) throw (RuntimeExce
}
}
-// --------------------------------------------------------------------
+
// XCommand
Any SAL_CALL AnimationNode::getParameter() throw (RuntimeException)
@@ -1780,7 +1780,7 @@ Any SAL_CALL AnimationNode::getParameter() throw (RuntimeException)
return maParameter;
}
-// --------------------------------------------------------------------
+
// XCommand
void SAL_CALL AnimationNode::setParameter( const Any& _parameter ) throw (RuntimeException)
@@ -1790,7 +1790,7 @@ void SAL_CALL AnimationNode::setParameter( const Any& _parameter ) throw (Runtim
fireChangeListener();
}
-// --------------------------------------------------------------------
+
// XElementAccess
Type SAL_CALL AnimationNode::getElementType() throw (RuntimeException)
@@ -1798,7 +1798,7 @@ Type SAL_CALL AnimationNode::getElementType() throw (RuntimeException)
return ::getCppuType((const Reference< XAnimationNode >*)0);
}
-// --------------------------------------------------------------------
+
// XElementAccess
sal_Bool SAL_CALL AnimationNode::hasElements() throw (RuntimeException)
@@ -1807,7 +1807,7 @@ sal_Bool SAL_CALL AnimationNode::hasElements() throw (RuntimeException)
return !maChildren.empty();
}
-// --------------------------------------------------------------------
+
// XEnumerationAccess
Reference< XEnumeration > SAL_CALL AnimationNode::createEnumeration()
@@ -1818,7 +1818,7 @@ Reference< XEnumeration > SAL_CALL AnimationNode::createEnumeration()
return new TimeContainerEnumeration( maChildren);
}
-// --------------------------------------------------------------------
+
// XTimeContainer
@@ -1845,7 +1845,7 @@ Reference< XAnimationNode > SAL_CALL AnimationNode::insertBefore( const Referenc
return newChild;
}
-// --------------------------------------------------------------------
+
// XTimeContainer
Reference< XAnimationNode > SAL_CALL AnimationNode::insertAfter( const Reference< XAnimationNode >& newChild, const Reference< XAnimationNode >& refChild )
@@ -1875,7 +1875,7 @@ Reference< XAnimationNode > SAL_CALL AnimationNode::insertAfter( const Reference
return newChild;
}
-// --------------------------------------------------------------------
+
// XTimeContainer
Reference< XAnimationNode > SAL_CALL AnimationNode::replaceChild( const Reference< XAnimationNode >& newChild, const Reference< XAnimationNode >& oldChild )
@@ -1904,7 +1904,7 @@ Reference< XAnimationNode > SAL_CALL AnimationNode::replaceChild( const Referenc
return newChild;
}
-// --------------------------------------------------------------------
+
// XTimeContainer
Reference< XAnimationNode > SAL_CALL AnimationNode::removeChild( const Reference< XAnimationNode >& oldChild )
@@ -1927,7 +1927,7 @@ Reference< XAnimationNode > SAL_CALL AnimationNode::removeChild( const Reference
return oldChild;
}
-// --------------------------------------------------------------------
+
// XTimeContainer
Reference< XAnimationNode > SAL_CALL AnimationNode::appendChild( const Reference< XAnimationNode >& newChild )
@@ -1954,7 +1954,7 @@ Reference< XAnimationNode > SAL_CALL AnimationNode::appendChild( const Reference
return newChild;
}
-// --------------------------------------------------------------------
+
// XIterateContainer
sal_Int16 SAL_CALL AnimationNode::getIterateType() throw (RuntimeException)
@@ -1963,7 +1963,7 @@ sal_Int16 SAL_CALL AnimationNode::getIterateType() throw (RuntimeException)
return mnIterateType;
}
-// --------------------------------------------------------------------
+
// XIterateContainer
void SAL_CALL AnimationNode::setIterateType( sal_Int16 _iteratetype ) throw (RuntimeException)
@@ -1976,7 +1976,7 @@ void SAL_CALL AnimationNode::setIterateType( sal_Int16 _iteratetype ) throw (Run
}
}
-// --------------------------------------------------------------------
+
// XIterateContainer
double SAL_CALL AnimationNode::getIterateInterval() throw (RuntimeException)
@@ -1985,7 +1985,7 @@ double SAL_CALL AnimationNode::getIterateInterval() throw (RuntimeException)
return mfIterateInterval;
}
-// --------------------------------------------------------------------
+
// XIterateContainer
void SAL_CALL AnimationNode::setIterateInterval( double _iterateinterval ) throw (RuntimeException)
@@ -1998,7 +1998,7 @@ void SAL_CALL AnimationNode::setIterateInterval( double _iterateinterval ) throw
}
}
-// --------------------------------------------------------------------
+
// XChangesNotifier
void SAL_CALL AnimationNode::addChangesListener( const Reference< XChangesListener >& aListener ) throw (RuntimeException)
@@ -2006,7 +2006,7 @@ void SAL_CALL AnimationNode::addChangesListener( const Reference< XChangesListen
maChangeListener.addInterface( aListener );
}
-// --------------------------------------------------------------------
+
// XChangesNotifier
void SAL_CALL AnimationNode::removeChangesListener( const Reference< XChangesListener >& aListener ) throw (RuntimeException)
@@ -2014,7 +2014,7 @@ void SAL_CALL AnimationNode::removeChangesListener( const Reference< XChangesLis
maChangeListener.removeInterface(aListener);
}
-// --------------------------------------------------------------------
+
// XUnoTunnel
::sal_Int64 SAL_CALL AnimationNode::getSomething( const Sequence< ::sal_Int8 >& rId ) throw (RuntimeException)
@@ -2040,7 +2040,7 @@ const ::com::sun::star::uno::Sequence< sal_Int8 > & AnimationNode::getUnoTunnelI
return theAnimationNodeUnoTunnelId::get().getSeq();
}
-// --------------------------------------------------------------------
+
void AnimationNode::fireChangeListener()
{
@@ -2069,7 +2069,7 @@ void AnimationNode::fireChangeListener()
}
}
-// --------------------------------------------------------------------
+
} // namespace animcore
diff --git a/avmedia/source/framework/mediacontrol.cxx b/avmedia/source/framework/mediacontrol.cxx
index d0525d2a6eba..2a6e66d0167a 100644
--- a/avmedia/source/framework/mediacontrol.cxx
+++ b/avmedia/source/framework/mediacontrol.cxx
@@ -59,9 +59,9 @@
namespace avmedia
{
-// ----------------
+
// - MediaControl -
-// ---------------
+
MediaControl::MediaControl( Window* pParent, MediaControlStyle eControlStyle ) :
Control( pParent ),
@@ -194,7 +194,7 @@ MediaControl::MediaControl( Window* pParent, MediaControlStyle eControlStyle ) :
maTimer.Start();
}
-// ------------------------------------------------------------------------------
+
MediaControl::~MediaControl()
{
@@ -202,14 +202,14 @@ MediaControl::~MediaControl()
delete mpZoomListBox;
}
-// ------------------------------------------------------------------------------
+
const Size& MediaControl::getMinSizePixel() const
{
return maMinSize;
}
-// ------------------------------------------------------------------------------
+
void MediaControl::Resize()
{
@@ -267,7 +267,7 @@ void MediaControl::Resize()
}
}
-// ------------------------------------------------------------------------------
+
void MediaControl::setState( const MediaItem& rItem )
{
@@ -282,7 +282,7 @@ void MediaControl::setState( const MediaItem& rItem )
}
}
-// ------------------------------------------------------------------------------
+
void MediaControl::implUpdateToolboxes()
{
@@ -361,7 +361,7 @@ void MediaControl::implUpdateToolboxes()
}
}
-// ------------------------------------------------------------------------------
+
void MediaControl::implUpdateTimeSlider()
{
@@ -388,7 +388,7 @@ void MediaControl::implUpdateTimeSlider()
}
}
-// ------------------------------------------------------------------------------
+
void MediaControl::implUpdateVolumeSlider()
{
@@ -405,7 +405,7 @@ void MediaControl::implUpdateVolumeSlider()
}
}
-// ------------------------------------------------------------------------------
+
void MediaControl::implUpdateTimeField( double fCurTime )
{
@@ -425,14 +425,14 @@ void MediaControl::implUpdateTimeField( double fCurTime )
}
}
-// ------------------------------------------------------------------------------
+
Image MediaControl::implGetImage( sal_Int32 nImageId ) const
{
return maImageList.GetImage( static_cast< sal_uInt16 >( nImageId ) );
}
-// ------------------------------------------------------------------------------
+
IMPL_LINK( MediaControl, implTimeHdl, Slider*, p )
{
@@ -443,7 +443,7 @@ IMPL_LINK( MediaControl, implTimeHdl, Slider*, p )
return 0;
}
-// ------------------------------------------------------------------------------
+
IMPL_LINK( MediaControl, implTimeEndHdl, Slider*, p )
{
@@ -458,7 +458,7 @@ IMPL_LINK( MediaControl, implTimeEndHdl, Slider*, p )
return 0;
}
-// ------------------------------------------------------------------------------
+
IMPL_LINK( MediaControl, implVolumeHdl, Slider*, p )
{
@@ -471,14 +471,14 @@ IMPL_LINK( MediaControl, implVolumeHdl, Slider*, p )
return 0;
}
-// ------------------------------------------------------------------------------
+
IMPL_LINK_NOARG(MediaControl, implVolumeEndHdl)
{
return 0;
}
-// ------------------------------------------------------------------------------
+
IMPL_LINK( MediaControl, implSelectHdl, ToolBox*, p )
{
@@ -569,7 +569,7 @@ IMPL_LINK( MediaControl, implSelectHdl, ToolBox*, p )
return 0;
}
-// ------------------------------------------------------------------------------
+
IMPL_LINK( MediaControl, implZoomSelectHdl, ListBox*, p )
{
@@ -597,7 +597,7 @@ IMPL_LINK( MediaControl, implZoomSelectHdl, ListBox*, p )
return 0;
}
-// ------------------------------------------------------------------------------
+
IMPL_LINK_NOARG(MediaControl, implTimeoutHdl)
{
diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx
index f8e0f434e7f0..b9ab635cdc72 100644
--- a/avmedia/source/framework/mediaitem.cxx
+++ b/avmedia/source/framework/mediaitem.cxx
@@ -43,10 +43,7 @@ using namespace ::com::sun::star;
namespace avmedia
{
-// -------------
// - MediaItem -
-// -------------
-
TYPEINIT1_AUTOFACTORY( MediaItem, ::SfxPoolItem );
struct MediaItem::Impl
@@ -90,30 +87,22 @@ struct MediaItem::Impl
}
};
-// ------------------------------------------------------------------------------
-
MediaItem::MediaItem( sal_uInt16 const i_nWhich, sal_uInt32 const nMaskSet )
: SfxPoolItem( i_nWhich )
, m_pImpl( new Impl(nMaskSet) )
{
}
-// ------------------------------------------------------------------------------
-
MediaItem::MediaItem( const MediaItem& rItem )
: SfxPoolItem( rItem )
, m_pImpl( new Impl(*rItem.m_pImpl) )
{
}
-// ------------------------------------------------------------------------------
-
MediaItem::~MediaItem()
{
}
-// ------------------------------------------------------------------------------
-
bool MediaItem::operator==( const SfxPoolItem& rItem ) const
{
assert( SfxPoolItem::operator==(rItem));
@@ -130,15 +119,11 @@ bool MediaItem::operator==( const SfxPoolItem& rItem ) const
&& m_pImpl->m_eZoom == rOther.m_pImpl->m_eZoom;
}
-// ------------------------------------------------------------------------------
-
SfxPoolItem* MediaItem::Clone( SfxItemPool* ) const
{
return new MediaItem( *this );
}
-//------------------------------------------------------------------------
-
SfxItemPresentation MediaItem::GetPresentation( SfxItemPresentation,
SfxMapUnit,
SfxMapUnit,
@@ -149,8 +134,6 @@ SfxItemPresentation MediaItem::GetPresentation( SfxItemPresentation,
return SFX_ITEM_PRESENTATION_NONE;
}
-//------------------------------------------------------------------------
-
bool MediaItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 ) const
{
uno::Sequence< uno::Any > aSeq( 9 );
@@ -170,8 +153,6 @@ bool MediaItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 ) const
return true;
}
-//------------------------------------------------------------------------
-
bool MediaItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 )
{
uno::Sequence< uno::Any > aSeq;
@@ -198,8 +179,6 @@ bool MediaItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 )
return bRet;
}
-//------------------------------------------------------------------------
-
void MediaItem::merge( const MediaItem& rMediaItem )
{
const sal_uInt32 nMaskSet = rMediaItem.getMaskSet();
@@ -229,15 +208,11 @@ void MediaItem::merge( const MediaItem& rMediaItem )
setZoom( rMediaItem.getZoom() );
}
-//------------------------------------------------------------------------
-
sal_uInt32 MediaItem::getMaskSet() const
{
return m_pImpl->m_nMaskSet;
}
-//------------------------------------------------------------------------
-
void MediaItem::setURL( const OUString& rURL, const OUString& rTempURL, const OUString& rReferer )
{
m_pImpl->m_nMaskSet |= AVMEDIA_SETMASK_URL;
@@ -246,8 +221,6 @@ void MediaItem::setURL( const OUString& rURL, const OUString& rTempURL, const OU
m_pImpl->m_Referer = rReferer;
}
-//------------------------------------------------------------------------
-
const OUString& MediaItem::getURL() const
{
return m_pImpl->m_URL;
@@ -263,113 +236,83 @@ const OUString& MediaItem::getReferer() const
return m_pImpl->m_Referer;
}
-//------------------------------------------------------------------------
-
void MediaItem::setState( MediaState eState )
{
m_pImpl->m_eState = eState;
m_pImpl->m_nMaskSet |= AVMEDIA_SETMASK_STATE;
}
-//------------------------------------------------------------------------
-
MediaState MediaItem::getState() const
{
return m_pImpl->m_eState;
}
-//------------------------------------------------------------------------
-
void MediaItem::setDuration( double fDuration )
{
m_pImpl->m_fDuration = fDuration;
m_pImpl->m_nMaskSet |= AVMEDIA_SETMASK_DURATION;
}
-//------------------------------------------------------------------------
-
double MediaItem::getDuration() const
{
return m_pImpl->m_fDuration;
}
-//------------------------------------------------------------------------
-
void MediaItem::setTime( double fTime )
{
m_pImpl->m_fTime = fTime;
m_pImpl->m_nMaskSet |= AVMEDIA_SETMASK_TIME;
}
-//------------------------------------------------------------------------
-
double MediaItem::getTime() const
{
return m_pImpl->m_fTime;
}
-//------------------------------------------------------------------------
-
void MediaItem::setLoop( bool bLoop )
{
m_pImpl->m_bLoop = bLoop;
m_pImpl->m_nMaskSet |= AVMEDIA_SETMASK_LOOP;
}
-//------------------------------------------------------------------------
-
bool MediaItem::isLoop() const
{
return m_pImpl->m_bLoop;
}
-//------------------------------------------------------------------------
-
void MediaItem::setMute( bool bMute )
{
m_pImpl->m_bMute = bMute;
m_pImpl->m_nMaskSet |= AVMEDIA_SETMASK_MUTE;
}
-//------------------------------------------------------------------------
-
bool MediaItem::isMute() const
{
return m_pImpl->m_bMute;
}
-//------------------------------------------------------------------------
-
void MediaItem::setVolumeDB( sal_Int16 nDB )
{
m_pImpl->m_nVolumeDB = nDB;
m_pImpl->m_nMaskSet |= AVMEDIA_SETMASK_VOLUMEDB;
}
-//------------------------------------------------------------------------
-
sal_Int16 MediaItem::getVolumeDB() const
{
return m_pImpl->m_nVolumeDB;
}
-//------------------------------------------------------------------------
-
void MediaItem::setZoom( ::com::sun::star::media::ZoomLevel eZoom )
{
m_pImpl->m_eZoom = eZoom;
m_pImpl->m_nMaskSet |= AVMEDIA_SETMASK_ZOOM;
}
-//------------------------------------------------------------------------
-
::com::sun::star::media::ZoomLevel MediaItem::getZoom() const
{
return m_pImpl->m_eZoom;
}
-//------------------------------------------------------------------------
-
static OUString lcl_GetFilename(OUString const& rSourceURL)
{
uno::Reference<uri::XUriReferenceFactory> const xUriFactory(
@@ -488,7 +431,6 @@ bool EmbedMedia(uno::Reference<frame::XModel> const& xModel,
}
return false;
}
-
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/avmedia/source/framework/mediaplayer.cxx b/avmedia/source/framework/mediaplayer.cxx
index bef6fc6cdef7..cc592c2caf8d 100644
--- a/avmedia/source/framework/mediaplayer.cxx
+++ b/avmedia/source/framework/mediaplayer.cxx
@@ -33,9 +33,9 @@
namespace avmedia
{
-// ---------------
+
// - MediaPlayer -
-// ---------------
+
MediaPlayer::MediaPlayer( Window* _pParent, sal_uInt16 nId, SfxBindings* _pBindings, SfxChildWinInfo* pInfo ) :
SfxChildWindow( _pParent, nId )
@@ -45,19 +45,19 @@ MediaPlayer::MediaPlayer( Window* _pParent, sal_uInt16 nId, SfxBindings* _pBindi
static_cast< MediaFloater* >( pWindow )->Initialize( pInfo );
};
-// -----------------------------------------------------------------------------
+
MediaPlayer::~MediaPlayer()
{
}
-// -----------------------------------------------------------------------------
+
SFX_IMPL_DOCKINGWINDOW_WITHID( MediaPlayer, SID_AVMEDIA_PLAYER )
-// ----------------
+
// - MediaFloater -
-// ----------------
+
MediaFloater::MediaFloater( SfxBindings* _pBindings, SfxChildWindow* pCW, Window* pParent ) :
SfxDockingWindow( _pBindings, pCW, pParent, WB_CLOSEABLE | WB_MOVEABLE | WB_SIZEABLE | WB_DOCKABLE ),
@@ -71,7 +71,7 @@ MediaFloater::MediaFloater( SfxBindings* _pBindings, SfxChildWindow* pCW, Window
mpMediaWindow->show();
}
-// -----------------------------------------------------------------------------
+
MediaFloater::~MediaFloater()
{
@@ -79,7 +79,7 @@ MediaFloater::~MediaFloater()
mpMediaWindow = NULL;
}
-// -------------------------------------------------------------------------
+
void MediaFloater::Resize()
{
@@ -89,7 +89,7 @@ void MediaFloater::Resize()
mpMediaWindow->setPosSize( Rectangle( Point(), GetOutputSizePixel() ) );
}
-// -----------------------------------------------------------------------------
+
void MediaFloater::ToggleFloatingMode()
{
@@ -114,7 +114,7 @@ void MediaFloater::ToggleFloatingMode()
mpMediaWindow->show();
}
-// -----------------------------------------------------------------------------
+
void MediaFloater::setURL( const OUString& rURL, const OUString& rReferer, bool bPlayImmediately )
{
@@ -127,7 +127,7 @@ void MediaFloater::setURL( const OUString& rURL, const OUString& rReferer, bool
}
}
-// -----------------------------------------------------------------------------
+
void MediaFloater::dispatchCurrentURL()
{
diff --git a/avmedia/source/framework/mediatoolbox.cxx b/avmedia/source/framework/mediatoolbox.cxx
index b0d859a4033b..c90eb5919e29 100644
--- a/avmedia/source/framework/mediatoolbox.cxx
+++ b/avmedia/source/framework/mediatoolbox.cxx
@@ -31,9 +31,9 @@ using namespace ::com::sun::star;
namespace avmedia
{
-// -----------------------
+
// - MediaToolboxControl -
-// -----------------------
+
class MediaToolBoxControl_Impl : public MediaControl
{
@@ -50,7 +50,7 @@ private:
MediaToolBoxControl* mpToolBoxControl;
};
-// ---------------------------------------------------------------------
+
MediaToolBoxControl_Impl::MediaToolBoxControl_Impl( Window& rParent, MediaToolBoxControl& rControl ) :
MediaControl( &rParent, MEDIACONTROLSTYLE_SINGLELINE ),
@@ -59,33 +59,33 @@ MediaToolBoxControl_Impl::MediaToolBoxControl_Impl( Window& rParent, MediaToolBo
SetSizePixel( getMinSizePixel() );
}
-// ---------------------------------------------------------------------
+
MediaToolBoxControl_Impl::~MediaToolBoxControl_Impl()
{
}
-// ---------------------------------------------------------------------
+
void MediaToolBoxControl_Impl::update()
{
mpToolBoxControl->implUpdateMediaControl();
}
-// ---------------------------------------------------------------------
+
void MediaToolBoxControl_Impl::execute( const MediaItem& rItem )
{
mpToolBoxControl->implExecuteMediaControl( rItem );
}
-// -----------------------
+
// - MediaToolBoxControl -
-// -----------------------
+
SFX_IMPL_TOOLBOX_CONTROL( ::avmedia::MediaToolBoxControl, ::avmedia::MediaItem );
-// -----------------------------------------------------------------------------
+
MediaToolBoxControl::MediaToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ) :
SfxToolBoxControl( nSlotId, nId, rTbx )
@@ -93,13 +93,13 @@ MediaToolBoxControl::MediaToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, To
rTbx.Invalidate();
}
-// -----------------------------------------------------------------------------
+
MediaToolBoxControl::~MediaToolBoxControl()
{
}
-// -----------------------------------------------------------------------------
+
void MediaToolBoxControl::StateChanged( sal_uInt16 /* nSID */, SfxItemState eState, const SfxPoolItem* pState )
@@ -127,21 +127,21 @@ void MediaToolBoxControl::StateChanged( sal_uInt16 /* nSID */, SfxItemState eSta
}
}
-// -----------------------------------------------------------------------------
+
Window* MediaToolBoxControl::CreateItemWindow( Window *pParent )
{
return( pParent ? new MediaToolBoxControl_Impl( *pParent, *this ) : NULL );
}
-// -----------------------------------------------------------------------------
+
void MediaToolBoxControl::implUpdateMediaControl()
{
updateStatus( ".uno:AVMediaToolBox" );
}
-// -----------------------------------------------------------------------------
+
void MediaToolBoxControl::implExecuteMediaControl( const MediaItem& rItem )
{
diff --git a/avmedia/source/framework/soundhandler.hxx b/avmedia/source/framework/soundhandler.hxx
index 6673674fe5fa..2d0772029184 100644
--- a/avmedia/source/framework/soundhandler.hxx
+++ b/avmedia/source/framework/soundhandler.hxx
@@ -69,20 +69,14 @@ class SoundHandler : // interfaces
, private ThreadHelpBase
, public ::cppu::OWeakObject
{
- //-------------------------------------------------------------------------------------------------------------
- // public methods
- //-------------------------------------------------------------------------------------------------------------
+ // public methods
public:
- //---------------------------------------------------------------------------------------------------------
- // constructor / destructor
- //---------------------------------------------------------------------------------------------------------
+ // constructor / destructor
SoundHandler( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory );
virtual ~SoundHandler( );
- //---------------------------------------------------------------------------------------------------------
// XInterface, XTypeProvider, XServiceInfo
- //---------------------------------------------------------------------------------------------------------
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) throw( css::uno::RuntimeException );
virtual void SAL_CALL acquire() throw();
virtual void SAL_CALL release() throw();
@@ -102,16 +96,12 @@ class SoundHandler : // interfaces
/* Helper for initialization of service by using own reference! */
virtual void SAL_CALL impl_initService ( );
- //---------------------------------------------------------------------------------------------------------
// XNotifyingDispatch
- //---------------------------------------------------------------------------------------------------------
virtual void SAL_CALL dispatchWithNotification(const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) throw(css::uno::RuntimeException);
- //---------------------------------------------------------------------------------------------------------
// XDispatch
- //---------------------------------------------------------------------------------------------------------
virtual void SAL_CALL dispatch ( const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException );
// not supported !
@@ -120,32 +110,24 @@ class SoundHandler : // interfaces
virtual void SAL_CALL removeStatusListener ( const css::uno::Reference< css::frame::XStatusListener >& /*xListener*/ ,
const css::util::URL& /*aURL*/ ) throw( css::uno::RuntimeException ) {};
- //---------------------------------------------------------------------------------------------------------
// XExtendedFilterDetection
- //---------------------------------------------------------------------------------------------------------
virtual OUString SAL_CALL detect ( css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ) throw( css::uno::RuntimeException );
- //-------------------------------------------------------------------------------------------------------------
// protected methods
- //-------------------------------------------------------------------------------------------------------------
protected:
- //-------------------------------------------------------------------------------------------------------------
// private methods
- //-------------------------------------------------------------------------------------------------------------
private:
DECL_LINK( implts_PlayerNotify, void* );
- //-------------------------------------------------------------------------------------------------------------
// variables
// (should be private everyway!)
- //-------------------------------------------------------------------------------------------------------------
private:
bool m_bError;
- css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory ; /// global uno service factory to create new services
- css::uno::Reference< css::uno::XInterface > m_xSelfHold ; /// we must protect us against dieing during async(!) dispatch() call!
- css::uno::Reference< css::media::XPlayer > m_xPlayer ; /// uses avmedia player to play sounds ...
+ css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory ; // global uno service factory to create new services
+ css::uno::Reference< css::uno::XInterface > m_xSelfHold ; // we must protect us against dieing during async(!) dispatch() call!
+ css::uno::Reference< css::media::XPlayer > m_xPlayer ; // uses avmedia player to play sounds...
css::uno::Reference< css::frame::XDispatchResultListener > m_xListener ;
Timer m_aUpdateTimer;
diff --git a/avmedia/source/gstreamer/gstmanager.cxx b/avmedia/source/gstreamer/gstmanager.cxx
index a9aafca288e4..96ecc4c1831c 100644
--- a/avmedia/source/gstreamer/gstmanager.cxx
+++ b/avmedia/source/gstreamer/gstmanager.cxx
@@ -38,9 +38,9 @@
using namespace ::com::sun::star;
namespace avmedia { namespace gstreamer {
-// ----------------
+
// - Manager -
-// ----------------
+
Manager::Manager( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) :
mxMgr( rxMgr )
@@ -48,13 +48,13 @@ Manager::Manager( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) :
DBG( "avmediagst: Manager::Manager" );
}
-// ------------------------------------------------------------------------------
+
Manager::~Manager()
{
}
-// ------------------------------------------------------------------------------
+
uno::Reference< media::XPlayer > SAL_CALL Manager::createPlayer( const OUString& rURL )
throw (uno::RuntimeException)
@@ -71,7 +71,7 @@ uno::Reference< media::XPlayer > SAL_CALL Manager::createPlayer( const OUString&
return xRet;
}
-// ------------------------------------------------------------------------------
+
OUString SAL_CALL Manager::getImplementationName( )
throw (uno::RuntimeException)
@@ -79,7 +79,7 @@ OUString SAL_CALL Manager::getImplementationName( )
return OUString( AVMEDIA_GST_MANAGER_IMPLEMENTATIONNAME );
}
-// ------------------------------------------------------------------------------
+
sal_Bool SAL_CALL Manager::supportsService( const OUString& ServiceName )
throw (uno::RuntimeException)
@@ -87,7 +87,7 @@ sal_Bool SAL_CALL Manager::supportsService( const OUString& ServiceName )
return cppu::supportsService(this, ServiceName);
}
-// ------------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL Manager::getSupportedServiceNames( )
throw (uno::RuntimeException)
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx
index 17fffe0ec595..f5e34e9ad95b 100644
--- a/avmedia/source/gstreamer/gstplayer.cxx
+++ b/avmedia/source/gstreamer/gstplayer.cxx
@@ -56,9 +56,9 @@ using namespace ::com::sun::star;
namespace avmedia { namespace gstreamer {
-// ----------------
+
// - Player -
-// ----------------
+
Player::Player( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) :
GstPlayer_BASE( m_aMutex ),
@@ -95,7 +95,7 @@ Player::Player( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) :
}
}
-// ------------------------------------------------------------------------------
+
Player::~Player()
{
@@ -130,7 +130,7 @@ void SAL_CALL Player::disposing()
}
}
-// ------------------------------------------------------------------------------
+
static gboolean pipeline_bus_callback( GstBus *, GstMessage *message, gpointer data )
{
@@ -394,7 +394,7 @@ bool Player::create( const OUString& rURL )
return bRet;
}
-// ------------------------------------------------------------------------------
+
void SAL_CALL Player::start()
throw (uno::RuntimeException)
@@ -409,7 +409,7 @@ void SAL_CALL Player::start()
}
}
-// ------------------------------------------------------------------------------
+
void SAL_CALL Player::stop()
throw (uno::RuntimeException)
@@ -424,7 +424,7 @@ void SAL_CALL Player::stop()
DBG( "stop %p", mpPlaybin );
}
-// ------------------------------------------------------------------------------
+
sal_Bool SAL_CALL Player::isPlaying()
throw (uno::RuntimeException)
@@ -444,7 +444,7 @@ sal_Bool SAL_CALL Player::isPlaying()
return bRet;
}
-// ------------------------------------------------------------------------------
+
double SAL_CALL Player::getDuration()
throw (uno::RuntimeException)
@@ -461,7 +461,7 @@ double SAL_CALL Player::getDuration()
return duration;
}
-// ------------------------------------------------------------------------------
+
void SAL_CALL Player::setMediaTime( double fTime )
throw (uno::RuntimeException)
@@ -483,7 +483,7 @@ void SAL_CALL Player::setMediaTime( double fTime )
}
}
-// ------------------------------------------------------------------------------
+
double SAL_CALL Player::getMediaTime()
throw (uno::RuntimeException)
@@ -502,7 +502,7 @@ double SAL_CALL Player::getMediaTime()
return position;
}
-// ------------------------------------------------------------------------------
+
double SAL_CALL Player::getRate()
throw (uno::RuntimeException)
@@ -517,7 +517,7 @@ double SAL_CALL Player::getRate()
return rate;
}
-// ------------------------------------------------------------------------------
+
void SAL_CALL Player::setPlaybackLoop( sal_Bool bSet )
throw (uno::RuntimeException)
@@ -527,7 +527,7 @@ void SAL_CALL Player::setPlaybackLoop( sal_Bool bSet )
mbLooping = bSet;
}
-// ------------------------------------------------------------------------------
+
sal_Bool SAL_CALL Player::isPlaybackLoop()
throw (uno::RuntimeException)
@@ -537,7 +537,7 @@ sal_Bool SAL_CALL Player::isPlaybackLoop()
return mbLooping;
}
-// ------------------------------------------------------------------------------
+
void SAL_CALL Player::setMute( sal_Bool bSet )
throw (uno::RuntimeException)
@@ -561,7 +561,7 @@ void SAL_CALL Player::setMute( sal_Bool bSet )
}
}
-// ------------------------------------------------------------------------------
+
sal_Bool SAL_CALL Player::isMute()
throw (uno::RuntimeException)
@@ -571,7 +571,7 @@ sal_Bool SAL_CALL Player::isMute()
return mbMuted;
}
-// ------------------------------------------------------------------------------
+
void SAL_CALL Player::setVolumeDB( sal_Int16 nVolumeDB )
throw (uno::RuntimeException)
@@ -589,7 +589,7 @@ void SAL_CALL Player::setVolumeDB( sal_Int16 nVolumeDB )
}
}
-// ------------------------------------------------------------------------------
+
sal_Int16 SAL_CALL Player::getVolumeDB()
throw (uno::RuntimeException)
@@ -609,7 +609,7 @@ sal_Int16 SAL_CALL Player::getVolumeDB()
return nVolumeDB;
}
-// ------------------------------------------------------------------------------
+
awt::Size SAL_CALL Player::getPreferredPlayerWindowSize()
throw (uno::RuntimeException)
@@ -642,7 +642,7 @@ awt::Size SAL_CALL Player::getPreferredPlayerWindowSize()
return aSize;
}
-// ------------------------------------------------------------------------------
+
uno::Reference< ::media::XPlayerWindow > SAL_CALL Player::createPlayerWindow( const uno::Sequence< uno::Any >& rArguments )
throw (uno::RuntimeException)
@@ -684,7 +684,7 @@ uno::Reference< ::media::XPlayerWindow > SAL_CALL Player::createPlayerWindow( co
return xRet;
}
-// ------------------------------------------------------------------------------
+
uno::Reference< media::XFrameGrabber > SAL_CALL Player::createFrameGrabber()
throw (uno::RuntimeException)
@@ -700,7 +700,7 @@ uno::Reference< media::XFrameGrabber > SAL_CALL Player::createFrameGrabber()
return pFrameGrabber;
}
-// ------------------------------------------------------------------------------
+
OUString SAL_CALL Player::getImplementationName()
throw (uno::RuntimeException)
@@ -708,7 +708,7 @@ OUString SAL_CALL Player::getImplementationName()
return OUString( AVMEDIA_GST_PLAYER_IMPLEMENTATIONNAME );
}
-// ------------------------------------------------------------------------------
+
sal_Bool SAL_CALL Player::supportsService( const OUString& ServiceName )
throw (uno::RuntimeException)
@@ -716,7 +716,7 @@ sal_Bool SAL_CALL Player::supportsService( const OUString& ServiceName )
return cppu::supportsService(this, ServiceName);
}
-// ------------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL Player::getSupportedServiceNames()
throw (uno::RuntimeException)
diff --git a/avmedia/source/gstreamer/gstuno.cxx b/avmedia/source/gstreamer/gstuno.cxx
index 9357a5d6db7f..e3b0bebcf13f 100644
--- a/avmedia/source/gstreamer/gstuno.cxx
+++ b/avmedia/source/gstreamer/gstuno.cxx
@@ -22,9 +22,9 @@
using namespace ::com::sun::star;
-// -------------------
+
// - factory methods -
-// -------------------
+
#ifdef AVMEDIA_GST_0_10
# define IMPL_NAME "com.sun.star.comp.media.Manager_GStreamer_0_10"
diff --git a/avmedia/source/gstreamer/gstwindow.cxx b/avmedia/source/gstreamer/gstwindow.cxx
index 39da016e26c5..fee4626f071d 100644
--- a/avmedia/source/gstreamer/gstwindow.cxx
+++ b/avmedia/source/gstreamer/gstwindow.cxx
@@ -50,7 +50,7 @@ static ::osl::Mutex& ImplGetOwnStaticMutex()
}
// Window
-// ------------------------------------------------------------------------------
+
Window::Window( const uno::Reference< lang::XMultiServiceFactory >& rxMgr, Player& rPlayer ) :
mxMgr( rxMgr ),
@@ -67,7 +67,7 @@ Window::~Window()
}
// XPlayerWindow
-// ------------------------------------------------------------------------------
+
void SAL_CALL Window::update( )
throw (uno::RuntimeException)
@@ -106,7 +106,7 @@ void SAL_CALL Window::setPointerType( sal_Int32 nPointerType )
}
// XWindow
-// ------------------------------------------------------------------------------
+
void SAL_CALL Window::setPosSize( sal_Int32 /*X*/, sal_Int32 /*Y*/, sal_Int32 /*Width*/, sal_Int32 /*Height*/, sal_Int16 /*Flags*/ )
throw (uno::RuntimeException)
@@ -201,7 +201,7 @@ void SAL_CALL Window::removePaintListener( const uno::Reference< awt::XPaintList
}
// XComponent
-// ------------------------------------------------------------------------------
+
void SAL_CALL Window::dispose( )
throw (uno::RuntimeException)
@@ -219,7 +219,7 @@ void SAL_CALL Window::removeEventListener( const uno::Reference< lang::XEventLis
}
// XServiceInfo
-// ------------------------------------------------------------------------------
+
OUString SAL_CALL Window::getImplementationName( )
throw (uno::RuntimeException)
diff --git a/avmedia/source/viewer/mediaevent_impl.cxx b/avmedia/source/viewer/mediaevent_impl.cxx
index cfe96099c422..966d83a026d0 100644
--- a/avmedia/source/viewer/mediaevent_impl.cxx
+++ b/avmedia/source/viewer/mediaevent_impl.cxx
@@ -26,22 +26,22 @@
using namespace ::com::sun::star;
namespace avmedia { namespace priv {
-// ---------------------------
+
// - MediaEventListenersImpl -
-// ---------------------------
+
MediaEventListenersImpl::MediaEventListenersImpl( Window& rEventWindow ) :
mpNotifyWindow( &rEventWindow )
{
}
-// ---------------------------------------------------------------------
+
MediaEventListenersImpl::~MediaEventListenersImpl()
{
}
-// ---------------------------------------------------------------------
+
void MediaEventListenersImpl::cleanUp()
{
@@ -49,14 +49,14 @@ void MediaEventListenersImpl::cleanUp()
mpNotifyWindow = NULL;
}
-// ---------------------------------------------------------------------
+
void SAL_CALL MediaEventListenersImpl::disposing( const ::com::sun::star::lang::EventObject& /* Source */ )
throw (::com::sun::star::uno::RuntimeException)
{
}
-// ---------------------------------------------------------------------
+
void SAL_CALL MediaEventListenersImpl::keyPressed( const ::com::sun::star::awt::KeyEvent& e )
throw (::com::sun::star::uno::RuntimeException)
@@ -76,7 +76,7 @@ void SAL_CALL MediaEventListenersImpl::keyPressed( const ::com::sun::star::awt::
}
}
-// ---------------------------------------------------------------------
+
void SAL_CALL MediaEventListenersImpl::keyReleased( const ::com::sun::star::awt::KeyEvent& e )
throw (::com::sun::star::uno::RuntimeException)
@@ -95,7 +95,7 @@ void SAL_CALL MediaEventListenersImpl::keyReleased( const ::com::sun::star::awt:
}
}
-// ---------------------------------------------------------------------
+
void SAL_CALL MediaEventListenersImpl::mousePressed( const ::com::sun::star::awt::MouseEvent& e )
throw (::com::sun::star::uno::RuntimeException)
@@ -137,7 +137,7 @@ void SAL_CALL MediaEventListenersImpl::mouseReleased( const ::com::sun::star::aw
}
}
-// ---------------------------------------------------------------------
+
void SAL_CALL MediaEventListenersImpl::mouseEntered( const ::com::sun::star::awt::MouseEvent& /* e */ )
throw (::com::sun::star::uno::RuntimeException)
@@ -150,7 +150,7 @@ void SAL_CALL MediaEventListenersImpl::mouseEntered( const ::com::sun::star::awt
}
}
-// ---------------------------------------------------------------------
+
void SAL_CALL MediaEventListenersImpl::mouseExited( const ::com::sun::star::awt::MouseEvent& /* e */ )
throw (::com::sun::star::uno::RuntimeException)
@@ -163,7 +163,7 @@ void SAL_CALL MediaEventListenersImpl::mouseExited( const ::com::sun::star::awt:
}
}
-// ---------------------------------------------------------------------
+
void SAL_CALL MediaEventListenersImpl::mouseDragged( const ::com::sun::star::awt::MouseEvent& e )
throw (::com::sun::star::uno::RuntimeException)
@@ -178,7 +178,7 @@ void SAL_CALL MediaEventListenersImpl::mouseDragged( const ::com::sun::star::awt
}
}
-// ---------------------------------------------------------------------
+
void SAL_CALL MediaEventListenersImpl::mouseMoved( const ::com::sun::star::awt::MouseEvent& e )
throw (::com::sun::star::uno::RuntimeException)
@@ -193,14 +193,14 @@ void SAL_CALL MediaEventListenersImpl::mouseMoved( const ::com::sun::star::awt::
}
}
-// ---------------------------------------------------------------------
+
void SAL_CALL MediaEventListenersImpl::focusGained( const ::com::sun::star::awt::FocusEvent& /* e */ )
throw (::com::sun::star::uno::RuntimeException)
{
}
-// ---------------------------------------------------------------------
+
void SAL_CALL MediaEventListenersImpl::focusLost( const ::com::sun::star::awt::FocusEvent& /* e */ )
throw (::com::sun::star::uno::RuntimeException)
diff --git a/avmedia/source/viewer/mediawindow.cxx b/avmedia/source/viewer/mediawindow.cxx
index 3835bc1e13ba..992bb40a3460 100644
--- a/avmedia/source/viewer/mediawindow.cxx
+++ b/avmedia/source/viewer/mediawindow.cxx
@@ -41,9 +41,9 @@ using namespace ::com::sun::star;
namespace avmedia {
-// ---------------
+
// - MediaWindow -
-// ---------------
+
MediaWindow::MediaWindow( Window* parent, bool bInternalMediaControl ) :
mpImpl( new priv::MediaWindowImpl( parent, this, bInternalMediaControl ) )
@@ -51,151 +51,151 @@ MediaWindow::MediaWindow( Window* parent, bool bInternalMediaControl ) :
mpImpl->Show();
}
-// -------------------------------------------------------------------------
+
MediaWindow::~MediaWindow() {}
-// -------------------------------------------------------------------------
+
void MediaWindow::setURL( const OUString& rURL, const OUString& rReferer )
{
mpImpl->setURL( rURL, OUString(), rReferer );
}
-// -------------------------------------------------------------------------
+
const OUString& MediaWindow::getURL() const
{
return mpImpl->getURL();
}
-// -------------------------------------------------------------------------
+
bool MediaWindow::isValid() const
{
return mpImpl->isValid();
}
-// -------------------------------------------------------------------------
+
void MediaWindow::MouseMove( const MouseEvent& /* rMEvt */ )
{
}
-// ---------------------------------------------------------------------
+
void MediaWindow::MouseButtonDown( const MouseEvent& /* rMEvt */ )
{
}
-// ---------------------------------------------------------------------
+
void MediaWindow::MouseButtonUp( const MouseEvent& /* rMEvt */ )
{
}
-// -------------------------------------------------------------------------
+
void MediaWindow::KeyInput( const KeyEvent& /* rKEvt */ )
{
}
-// -------------------------------------------------------------------------
+
void MediaWindow::KeyUp( const KeyEvent& /* rKEvt */ )
{
}
-// -------------------------------------------------------------------------
+
void MediaWindow::Command( const CommandEvent& /* rCEvt */ )
{
}
-// -------------------------------------------------------------------------
+
sal_Int8 MediaWindow::AcceptDrop( const AcceptDropEvent& /* rEvt */ )
{
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int8 MediaWindow::ExecuteDrop( const ExecuteDropEvent& /* rEvt */ )
{
return 0;
}
-// -------------------------------------------------------------------------
+
void MediaWindow::StartDrag( sal_Int8 /* nAction */, const Point& /* rPosPixel */ )
{
}
-// -------------------------------------------------------------------------
+
Size MediaWindow::getPreferredSize() const
{
return mpImpl->getPreferredSize();
}
-// -------------------------------------------------------------------------
+
void MediaWindow::setPosSize( const Rectangle& rNewRect )
{
mpImpl->setPosSize( rNewRect );
}
-// -------------------------------------------------------------------------
+
void MediaWindow::setPointer( const Pointer& rPointer )
{
mpImpl->setPointer( rPointer );
}
-// -------------------------------------------------------------------------
+
bool MediaWindow::start()
{
return mpImpl->start();
}
-// -------------------------------------------------------------------------
+
void MediaWindow::updateMediaItem( MediaItem& rItem ) const
{
mpImpl->updateMediaItem( rItem );
}
-// -------------------------------------------------------------------------
+
void MediaWindow::executeMediaItem( const MediaItem& rItem )
{
mpImpl->executeMediaItem( rItem );
}
-// -------------------------------------------------------------------------
+
void MediaWindow::show()
{
mpImpl->Show();
}
-// -------------------------------------------------------------------------
+
void MediaWindow::hide()
{
mpImpl->Hide();
}
-// -------------------------------------------------------------------------
+
Window* MediaWindow::getWindow() const
{
return mpImpl.get();
}
-// -------------------------------------------------------------------------
+
void MediaWindow::getMediaFilters( FilterNameVector& rFilterNameVector )
{
@@ -229,7 +229,7 @@ void MediaWindow::getMediaFilters( FilterNameVector& rFilterNameVector )
}
}
-// -------------------------------------------------------------------------
+
bool MediaWindow::executeMediaURLDialog(Window* /* pParent */,
OUString& rURL, bool *const o_pbLink)
@@ -318,7 +318,7 @@ bool MediaWindow::executeMediaURLDialog(Window* /* pParent */,
return !rURL.isEmpty();
}
-// -------------------------------------------------------------------------
+
void MediaWindow::executeFormatErrorBox( Window* pParent )
{
@@ -327,7 +327,7 @@ void MediaWindow::executeFormatErrorBox( Window* pParent )
aErrBox.Execute();
}
-// -------------------------------------------------------------------------
+
bool MediaWindow::isMediaURL( const OUString& rURL, const OUString& rReferer, bool bDeep, Size* pPreferredSizePixel )
{
@@ -383,14 +383,14 @@ bool MediaWindow::isMediaURL( const OUString& rURL, const OUString& rReferer, bo
return bRet;
}
-// -------------------------------------------------------------------------
+
uno::Reference< media::XPlayer > MediaWindow::createPlayer( const OUString& rURL, const OUString& rReferer )
{
return priv::MediaWindowImpl::createPlayer( rURL, rReferer );
}
-// -------------------------------------------------------------------------
+
uno::Reference< graphic::XGraphic > MediaWindow::grabFrame( const OUString& rURL,
const OUString& rReferer,
diff --git a/avmedia/source/viewer/mediawindow_impl.cxx b/avmedia/source/viewer/mediawindow_impl.cxx
index 73b4bf4fd80f..43416d3e760a 100644
--- a/avmedia/source/viewer/mediawindow_impl.cxx
+++ b/avmedia/source/viewer/mediawindow_impl.cxx
@@ -40,22 +40,22 @@ using namespace ::com::sun::star;
namespace avmedia { namespace priv {
-// ----------------------
+
// - MediaWindowControl -
-// ----------------------
+
MediaWindowControl::MediaWindowControl( Window* pParent ) :
MediaControl( pParent, MEDIACONTROLSTYLE_MULTILINE )
{
}
-// ---------------------------------------------------------------------
+
MediaWindowControl::~MediaWindowControl()
{
}
-// ---------------------------------------------------------------------
+
void MediaWindowControl::update()
{
@@ -65,29 +65,29 @@ void MediaWindowControl::update()
setState( aItem );
}
-// ---------------------------------------------------------------------
+
void MediaWindowControl::execute( const MediaItem& rItem )
{
static_cast< MediaWindowImpl* >( GetParent() )->executeMediaItem( rItem );
}
-// --------------------
+
// - MediaChildWindow -
-// --------------------
+
MediaChildWindow::MediaChildWindow( Window* pParent ) :
SystemChildWindow( pParent, WB_CLIPCHILDREN )
{
}
-// ---------------------------------------------------------------------
+
MediaChildWindow::~MediaChildWindow()
{
}
-// ---------------------------------------------------------------------
+
void MediaChildWindow::MouseMove( const MouseEvent& rMEvt )
{
@@ -98,7 +98,7 @@ void MediaChildWindow::MouseMove( const MouseEvent& rMEvt )
GetParent()->MouseMove( aTransformedEvent );
}
-// ---------------------------------------------------------------------
+
void MediaChildWindow::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -109,7 +109,7 @@ void MediaChildWindow::MouseButtonDown( const MouseEvent& rMEvt )
GetParent()->MouseButtonDown( aTransformedEvent );
}
-// ---------------------------------------------------------------------
+
void MediaChildWindow::MouseButtonUp( const MouseEvent& rMEvt )
{
@@ -120,7 +120,7 @@ void MediaChildWindow::MouseButtonUp( const MouseEvent& rMEvt )
GetParent()->MouseButtonUp( aTransformedEvent );
}
-// ---------------------------------------------------------------------
+
void MediaChildWindow::KeyInput( const KeyEvent& rKEvt )
{
@@ -128,7 +128,7 @@ void MediaChildWindow::KeyInput( const KeyEvent& rKEvt )
GetParent()->KeyInput( rKEvt );
}
-// ---------------------------------------------------------------------
+
void MediaChildWindow::KeyUp( const KeyEvent& rKEvt )
{
@@ -136,7 +136,7 @@ void MediaChildWindow::KeyUp( const KeyEvent& rKEvt )
GetParent()->KeyUp( rKEvt );
}
-// ---------------------------------------------------------------------
+
void MediaChildWindow::Command( const CommandEvent& rCEvt )
{
@@ -147,9 +147,9 @@ void MediaChildWindow::Command( const CommandEvent& rCEvt )
GetParent()->Command( aTransformedEvent );
}
-// ----------------------
+
// - MediaWindowImpl -
-// ----------------------
+
MediaWindowImpl::MediaWindowImpl( Window* pParent, MediaWindow* pMediaWindow, bool bInternalMediaControl ) :
Control( pParent ),
@@ -173,7 +173,7 @@ MediaWindowImpl::MediaWindowImpl( Window* pParent, MediaWindow* pMediaWindow, bo
}
}
-// ---------------------------------------------------------------------
+
MediaWindowImpl::~MediaWindowImpl()
{
@@ -527,14 +527,14 @@ void MediaWindowImpl::onURLChanged()
}
}
-// ---------------------------------------------------------------------
+
void MediaWindowImpl::setPosSize( const Rectangle& rRect )
{
SetPosSizePixel( rRect.TopLeft(), rRect.GetSize() );
}
-// ---------------------------------------------------------------------
+
void MediaWindowImpl::setPointer( const Pointer& rPointer )
{
@@ -559,7 +559,7 @@ void MediaWindowImpl::setPointer( const Pointer& rPointer )
}
}
-// ---------------------------------------------------------------------
+
void MediaWindowImpl::Resize()
{
@@ -583,7 +583,7 @@ void MediaWindowImpl::Resize()
maChildWindow.SetPosSizePixel( Point( 0, 0 ), aPlayerWindowSize );
}
-// ---------------------------------------------------------------------
+
void MediaWindowImpl::StateChanged( StateChangedType eType )
{
@@ -612,7 +612,7 @@ void MediaWindowImpl::StateChanged( StateChangedType eType )
}
}
-// ---------------------------------------------------------------------
+
void MediaWindowImpl::Paint( const Rectangle& )
{
@@ -668,13 +668,13 @@ void MediaWindowImpl::Paint( const Rectangle& )
}
}
-// ---------------------------------------------------------------------
+
void MediaWindowImpl::GetFocus()
{
}
-// ---------------------------------------------------------------------
+
void MediaWindowImpl::MouseMove( const MouseEvent& rMEvt )
{
@@ -682,7 +682,7 @@ void MediaWindowImpl::MouseMove( const MouseEvent& rMEvt )
mpMediaWindow->MouseMove( rMEvt );
}
-// ---------------------------------------------------------------------
+
void MediaWindowImpl::MouseButtonDown( const MouseEvent& rMEvt )
{
@@ -690,7 +690,7 @@ void MediaWindowImpl::MouseButtonDown( const MouseEvent& rMEvt )
mpMediaWindow->MouseButtonDown( rMEvt );
}
-// ---------------------------------------------------------------------
+
void MediaWindowImpl::MouseButtonUp( const MouseEvent& rMEvt )
{
@@ -698,7 +698,7 @@ void MediaWindowImpl::MouseButtonUp( const MouseEvent& rMEvt )
mpMediaWindow->MouseButtonUp( rMEvt );
}
-// ---------------------------------------------------------------------
+
void MediaWindowImpl::KeyInput( const KeyEvent& rKEvt )
{
@@ -706,7 +706,7 @@ void MediaWindowImpl::KeyInput( const KeyEvent& rKEvt )
mpMediaWindow->KeyInput( rKEvt );
}
-// ---------------------------------------------------------------------
+
void MediaWindowImpl::KeyUp( const KeyEvent& rKEvt )
{
@@ -714,7 +714,7 @@ void MediaWindowImpl::KeyUp( const KeyEvent& rKEvt )
mpMediaWindow->KeyUp( rKEvt );
}
-// ---------------------------------------------------------------------
+
void MediaWindowImpl::Command( const CommandEvent& rCEvt )
{
@@ -722,21 +722,21 @@ void MediaWindowImpl::Command( const CommandEvent& rCEvt )
mpMediaWindow->Command( rCEvt );
}
-// ---------------------------------------------------------------------
+
sal_Int8 MediaWindowImpl::AcceptDrop( const AcceptDropEvent& rEvt )
{
return( mpMediaWindow ? mpMediaWindow->AcceptDrop( rEvt ) : 0 );
}
-// ---------------------------------------------------------------------
+
sal_Int8 MediaWindowImpl::ExecuteDrop( const ExecuteDropEvent& rEvt )
{
return( mpMediaWindow ? mpMediaWindow->ExecuteDrop( rEvt ) : 0 );
}
-// ---------------------------------------------------------------------
+
void MediaWindowImpl::StartDrag( sal_Int8 nAction, const Point& rPosPixel )
{
diff --git a/avmedia/source/win/framegrabber.cxx b/avmedia/source/win/framegrabber.cxx
index b93720ffcd39..aef5be256316 100644
--- a/avmedia/source/win/framegrabber.cxx
+++ b/avmedia/source/win/framegrabber.cxx
@@ -48,9 +48,9 @@ using namespace ::com::sun::star;
namespace avmedia { namespace win {
-// ----------------
+
// - FrameGrabber -
-// ----------------
+
FrameGrabber::FrameGrabber( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) :
mxMgr( rxMgr )
diff --git a/avmedia/source/win/manager.cxx b/avmedia/source/win/manager.cxx
index 19419aee8c23..94e45af48950 100644
--- a/avmedia/source/win/manager.cxx
+++ b/avmedia/source/win/manager.cxx
@@ -29,9 +29,9 @@
using namespace ::com::sun::star;
namespace avmedia { namespace win {
-// ----------------
+
// - Manager -
-// ----------------
+
Manager::Manager( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) :
mxMgr( rxMgr )
diff --git a/avmedia/source/win/player.cxx b/avmedia/source/win/player.cxx
index b76d0914a0aa..7b396815fc20 100644
--- a/avmedia/source/win/player.cxx
+++ b/avmedia/source/win/player.cxx
@@ -76,9 +76,9 @@ bool isWindowsVistaOrHigher()
return osvi.dwMajorVersion >= 6;
}
-// ----------------
+
// - Player -
-// ----------------
+
Player::Player( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) :
Player_BASE(m_aMutex),
diff --git a/avmedia/source/win/winuno.cxx b/avmedia/source/win/winuno.cxx
index b42427e2172e..c39c00af671e 100644
--- a/avmedia/source/win/winuno.cxx
+++ b/avmedia/source/win/winuno.cxx
@@ -22,9 +22,9 @@
using namespace ::com::sun::star;
-// -------------------
+
// - factory methods -
-// -------------------
+
static uno::Reference< uno::XInterface > SAL_CALL create_MediaPlayer( const uno::Reference< lang::XMultiServiceFactory >& rxFact )
{
diff --git a/basctl/source/accessibility/accessibledialogcontrolshape.cxx b/basctl/source/accessibility/accessibledialogcontrolshape.cxx
index 4078efe153bd..691295074564 100644
--- a/basctl/source/accessibility/accessibledialogcontrolshape.cxx
+++ b/basctl/source/accessibility/accessibledialogcontrolshape.cxx
@@ -46,9 +46,9 @@ using namespace ::com::sun::star::accessibility;
using namespace ::comphelper;
-// -----------------------------------------------------------------------------
+
// class AccessibleDialogControlShape
-// -----------------------------------------------------------------------------
+
AccessibleDialogControlShape::AccessibleDialogControlShape (DialogWindow* pDialogWindow, DlgEdObj* pDlgEdObj)
:AccessibleExtendedComponentHelper_BASE( new VCLExternalSolarLock() )
@@ -68,7 +68,7 @@ AccessibleDialogControlShape::AccessibleDialogControlShape (DialogWindow* pDialo
m_aBounds = GetBounds();
}
-// -----------------------------------------------------------------------------
+
AccessibleDialogControlShape::~AccessibleDialogControlShape()
{
@@ -79,7 +79,7 @@ AccessibleDialogControlShape::~AccessibleDialogControlShape()
m_pExternalLock = NULL;
}
-// -----------------------------------------------------------------------------
+
bool AccessibleDialogControlShape::IsFocused()
{
@@ -94,7 +94,7 @@ bool AccessibleDialogControlShape::IsFocused()
return bFocused;
}
-// -----------------------------------------------------------------------------
+
bool AccessibleDialogControlShape::IsSelected()
{
@@ -103,7 +103,7 @@ bool AccessibleDialogControlShape::IsSelected()
return false;
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogControlShape::SetFocused( bool bFocused )
{
@@ -119,7 +119,7 @@ void AccessibleDialogControlShape::SetFocused( bool bFocused )
}
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogControlShape::SetSelected( bool bSelected )
{
@@ -135,7 +135,7 @@ void AccessibleDialogControlShape::SetSelected( bool bSelected )
}
}
-// -----------------------------------------------------------------------------
+
awt::Rectangle AccessibleDialogControlShape::GetBounds()
{
@@ -165,7 +165,7 @@ awt::Rectangle AccessibleDialogControlShape::GetBounds()
return aBounds;
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogControlShape::SetBounds( const awt::Rectangle& aBounds )
{
@@ -176,7 +176,7 @@ void AccessibleDialogControlShape::SetBounds( const awt::Rectangle& aBounds )
}
}
-// -----------------------------------------------------------------------------
+
Window* AccessibleDialogControlShape::GetWindow() const
{
@@ -191,7 +191,7 @@ Window* AccessibleDialogControlShape::GetWindow() const
return pWindow;
}
-// -----------------------------------------------------------------------------
+
OUString AccessibleDialogControlShape::GetModelStringProperty( const sal_Char* pPropertyName )
{
@@ -215,7 +215,7 @@ OUString AccessibleDialogControlShape::GetModelStringProperty( const sal_Char* p
return sReturn;
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogControlShape::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -238,30 +238,30 @@ void AccessibleDialogControlShape::FillAccessibleStateSet( utl::AccessibleStateS
rStateSet.AddState( AccessibleStateType::RESIZABLE );
}
-// -----------------------------------------------------------------------------
+
// OCommonAccessibleComponent
-// -----------------------------------------------------------------------------
+
awt::Rectangle AccessibleDialogControlShape::implGetBounds() throw (RuntimeException)
{
return GetBounds();
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( AccessibleDialogControlShape, AccessibleExtendedComponentHelper_BASE, AccessibleDialogControlShape_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( AccessibleDialogControlShape, AccessibleExtendedComponentHelper_BASE, AccessibleDialogControlShape_BASE )
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
+
void AccessibleDialogControlShape::disposing()
{
@@ -275,9 +275,9 @@ void AccessibleDialogControlShape::disposing()
m_xControlModel.clear();
}
-// -----------------------------------------------------------------------------
+
// XEventListener
-// -----------------------------------------------------------------------------
+
void AccessibleDialogControlShape::disposing( const lang::EventObject& ) throw (RuntimeException)
{
@@ -286,9 +286,9 @@ void AccessibleDialogControlShape::disposing( const lang::EventObject& ) throw (
m_xControlModel.clear();
}
-// -----------------------------------------------------------------------------
+
// XPropertyChangeListener
-// -----------------------------------------------------------------------------
+
void AccessibleDialogControlShape::propertyChange( const beans::PropertyChangeEvent& rEvent ) throw (RuntimeException)
{
@@ -345,7 +345,7 @@ sal_Int32 AccessibleDialogControlShape::getAccessibleChildCount() throw (Runtime
return 0;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleDialogControlShape::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -357,7 +357,7 @@ Reference< XAccessible > AccessibleDialogControlShape::getAccessibleChild( sal_I
return Reference< XAccessible >();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleDialogControlShape::getAccessibleParent( ) throw (RuntimeException)
{
@@ -370,7 +370,7 @@ Reference< XAccessible > AccessibleDialogControlShape::getAccessibleParent( ) t
return xParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 AccessibleDialogControlShape::getAccessibleIndexInParent( ) throw (RuntimeException)
{
@@ -402,7 +402,7 @@ sal_Int32 AccessibleDialogControlShape::getAccessibleIndexInParent( ) throw (Ru
return nIndexInParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 AccessibleDialogControlShape::getAccessibleRole( ) throw (RuntimeException)
{
@@ -411,7 +411,7 @@ sal_Int16 AccessibleDialogControlShape::getAccessibleRole( ) throw (RuntimeExce
return AccessibleRole::SHAPE;
}
-// -----------------------------------------------------------------------------
+
OUString AccessibleDialogControlShape::getAccessibleDescription( ) throw (RuntimeException)
{
@@ -420,7 +420,7 @@ OUString AccessibleDialogControlShape::getAccessibleDescription( ) throw (Runti
return GetModelStringProperty( "HelpText" );
}
-// -----------------------------------------------------------------------------
+
OUString AccessibleDialogControlShape::getAccessibleName( ) throw (RuntimeException)
{
@@ -429,7 +429,7 @@ OUString AccessibleDialogControlShape::getAccessibleName( ) throw (RuntimeExcep
return GetModelStringProperty( "Name" );
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > AccessibleDialogControlShape::getAccessibleRelationSet( ) throw (RuntimeException)
{
@@ -440,7 +440,7 @@ Reference< XAccessibleRelationSet > AccessibleDialogControlShape::getAccessibleR
return xSet;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleStateSet > AccessibleDialogControlShape::getAccessibleStateSet( ) throw (RuntimeException)
{
@@ -461,7 +461,7 @@ Reference< XAccessibleStateSet > AccessibleDialogControlShape::getAccessibleStat
return xSet;
}
-// -----------------------------------------------------------------------------
+
Locale AccessibleDialogControlShape::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
@@ -470,9 +470,9 @@ Locale AccessibleDialogControlShape::getLocale( ) throw (IllegalAccessibleCompo
return Application::GetSettings().GetLanguageTag().getLocale();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleComponent
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleDialogControlShape::getAccessibleAtPoint( const awt::Point& ) throw (RuntimeException)
{
@@ -481,14 +481,14 @@ Reference< XAccessible > AccessibleDialogControlShape::getAccessibleAtPoint( con
return Reference< XAccessible >();
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogControlShape::grabFocus( ) throw (RuntimeException)
{
// no focus for shapes
}
-// -----------------------------------------------------------------------------
+
sal_Int32 AccessibleDialogControlShape::getForeground( ) throw (RuntimeException)
{
@@ -514,7 +514,7 @@ sal_Int32 AccessibleDialogControlShape::getForeground( ) throw (RuntimeExceptio
return nColor;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 AccessibleDialogControlShape::getBackground( ) throw (RuntimeException)
{
@@ -533,9 +533,9 @@ sal_Int32 AccessibleDialogControlShape::getBackground( ) throw (RuntimeExceptio
return nColor;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleExtendedComponent
-// -----------------------------------------------------------------------------
+
Reference< awt::XFont > AccessibleDialogControlShape::getFont( ) throw (RuntimeException)
{
@@ -562,7 +562,7 @@ Reference< awt::XFont > AccessibleDialogControlShape::getFont( ) throw (Runtime
return xFont;
}
-// -----------------------------------------------------------------------------
+
OUString AccessibleDialogControlShape::getTitledBorderText( ) throw (RuntimeException)
{
@@ -571,7 +571,7 @@ OUString AccessibleDialogControlShape::getTitledBorderText( ) throw (RuntimeExc
return OUString();
}
-// -----------------------------------------------------------------------------
+
OUString AccessibleDialogControlShape::getToolTipText( ) throw (RuntimeException)
{
@@ -585,7 +585,7 @@ OUString AccessibleDialogControlShape::getToolTipText( ) throw (RuntimeExceptio
return sText;
}
-// -----------------------------------------------------------------------------
+
} // namespace basctl
diff --git a/basctl/source/accessibility/accessibledialogwindow.cxx b/basctl/source/accessibility/accessibledialogwindow.cxx
index dc482853cbce..19240ee72602 100644
--- a/basctl/source/accessibility/accessibledialogwindow.cxx
+++ b/basctl/source/accessibility/accessibledialogwindow.cxx
@@ -50,9 +50,9 @@ using namespace ::comphelper;
DBG_NAME( AccessibleDialogWindow )
-// -----------------------------------------------------------------------------
+
// class ChildDescriptor
-// -----------------------------------------------------------------------------
+
AccessibleDialogWindow::ChildDescriptor::ChildDescriptor( DlgEdObj* _pDlgEdObj )
:pDlgEdObj( _pDlgEdObj )
@@ -60,13 +60,13 @@ AccessibleDialogWindow::ChildDescriptor::ChildDescriptor( DlgEdObj* _pDlgEdObj )
{
}
-// -----------------------------------------------------------------------------
+
AccessibleDialogWindow::ChildDescriptor::~ChildDescriptor()
{
}
-// -----------------------------------------------------------------------------
+
AccessibleDialogWindow::ChildDescriptor::ChildDescriptor( const ChildDescriptor& rDesc )
:pDlgEdObj( rDesc.pDlgEdObj )
@@ -74,7 +74,7 @@ AccessibleDialogWindow::ChildDescriptor::ChildDescriptor( const ChildDescriptor&
{
}
-// -----------------------------------------------------------------------------
+
AccessibleDialogWindow::ChildDescriptor& AccessibleDialogWindow::ChildDescriptor::operator=( const ChildDescriptor& rDesc )
{
@@ -84,7 +84,7 @@ AccessibleDialogWindow::ChildDescriptor& AccessibleDialogWindow::ChildDescriptor
return *this;
}
-// -----------------------------------------------------------------------------
+
bool AccessibleDialogWindow::ChildDescriptor::operator==( const ChildDescriptor& rDesc )
{
@@ -95,7 +95,7 @@ bool AccessibleDialogWindow::ChildDescriptor::operator==( const ChildDescriptor&
return bRet;
}
-// -----------------------------------------------------------------------------
+
bool AccessibleDialogWindow::ChildDescriptor::operator<( const ChildDescriptor& rDesc ) const
{
@@ -106,9 +106,9 @@ bool AccessibleDialogWindow::ChildDescriptor::operator<( const ChildDescriptor&
return bRet;
}
-// -----------------------------------------------------------------------------
+
// class AccessibleDialogWindow
-// -----------------------------------------------------------------------------
+
AccessibleDialogWindow::AccessibleDialogWindow (basctl::DialogWindow* pDialogWindow)
: AccessibleExtendedComponentHelper_BASE( new VCLExternalSolarLock() )
@@ -143,7 +143,7 @@ AccessibleDialogWindow::AccessibleDialogWindow (basctl::DialogWindow* pDialogWin
}
}
-// -----------------------------------------------------------------------------
+
AccessibleDialogWindow::~AccessibleDialogWindow()
{
@@ -161,7 +161,7 @@ AccessibleDialogWindow::~AccessibleDialogWindow()
m_pExternalLock = NULL;
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::UpdateFocused()
{
@@ -177,7 +177,7 @@ void AccessibleDialogWindow::UpdateFocused()
}
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::UpdateSelected()
{
@@ -195,7 +195,7 @@ void AccessibleDialogWindow::UpdateSelected()
}
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::UpdateBounds()
{
@@ -211,7 +211,7 @@ void AccessibleDialogWindow::UpdateBounds()
}
}
-// -----------------------------------------------------------------------------
+
bool AccessibleDialogWindow::IsChildVisible( const ChildDescriptor& rDesc )
{
@@ -255,7 +255,7 @@ bool AccessibleDialogWindow::IsChildVisible( const ChildDescriptor& rDesc )
return bVisible;
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::InsertChild( const ChildDescriptor& rDesc )
{
@@ -284,7 +284,7 @@ void AccessibleDialogWindow::InsertChild( const ChildDescriptor& rDesc )
}
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::RemoveChild( const ChildDescriptor& rDesc )
{
@@ -314,7 +314,7 @@ void AccessibleDialogWindow::RemoveChild( const ChildDescriptor& rDesc )
}
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::UpdateChild( const ChildDescriptor& rDesc )
{
@@ -330,7 +330,7 @@ void AccessibleDialogWindow::UpdateChild( const ChildDescriptor& rDesc )
}
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::UpdateChildren()
{
@@ -343,7 +343,7 @@ void AccessibleDialogWindow::UpdateChildren()
}
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::SortChildren()
{
@@ -351,7 +351,7 @@ void AccessibleDialogWindow::SortChildren()
::std::sort( m_aAccessibleChildren.begin(), m_aAccessibleChildren.end() );
}
-// -----------------------------------------------------------------------------
+
IMPL_LINK( AccessibleDialogWindow, WindowEventListener, VclSimpleEvent*, pEvent )
{
@@ -368,7 +368,7 @@ IMPL_LINK( AccessibleDialogWindow, WindowEventListener, VclSimpleEvent*, pEvent
return 0;
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
@@ -464,7 +464,7 @@ void AccessibleDialogWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindo
}
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
{
@@ -489,9 +489,9 @@ void AccessibleDialogWindow::FillAccessibleStateSet( utl::AccessibleStateSetHelp
}
}
-// -----------------------------------------------------------------------------
+
// OCommonAccessibleComponent
-// -----------------------------------------------------------------------------
+
awt::Rectangle AccessibleDialogWindow::implGetBounds() throw (RuntimeException)
{
@@ -502,9 +502,9 @@ awt::Rectangle AccessibleDialogWindow::implGetBounds() throw (RuntimeException)
return aBounds;
}
-// -----------------------------------------------------------------------------
+
// SfxListener
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::Notify( SfxBroadcaster&, const SfxHint& rHint )
{
@@ -563,21 +563,21 @@ void AccessibleDialogWindow::Notify( SfxBroadcaster&, const SfxHint& rHint )
}
}
-// -----------------------------------------------------------------------------
+
// XInterface
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( AccessibleDialogWindow, AccessibleExtendedComponentHelper_BASE, AccessibleDialogWindow_BASE )
-// -----------------------------------------------------------------------------
+
// XTypeProvider
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( AccessibleDialogWindow, AccessibleExtendedComponentHelper_BASE, AccessibleDialogWindow_BASE )
-// -----------------------------------------------------------------------------
+
// XComponent
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::disposing()
{
@@ -641,7 +641,7 @@ sal_Int32 AccessibleDialogWindow::getAccessibleChildCount() throw (RuntimeExcept
return m_aAccessibleChildren.size();
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleDialogWindow::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -669,7 +669,7 @@ Reference< XAccessible > AccessibleDialogWindow::getAccessibleChild( sal_Int32 i
return xChild;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleDialogWindow::getAccessibleParent( ) throw (RuntimeException)
{
@@ -686,7 +686,7 @@ Reference< XAccessible > AccessibleDialogWindow::getAccessibleParent( ) throw (
return xParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 AccessibleDialogWindow::getAccessibleIndexInParent( ) throw (RuntimeException)
{
@@ -713,7 +713,7 @@ sal_Int32 AccessibleDialogWindow::getAccessibleIndexInParent( ) throw (RuntimeE
return nIndexInParent;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 AccessibleDialogWindow::getAccessibleRole( ) throw (RuntimeException)
{
@@ -722,7 +722,7 @@ sal_Int16 AccessibleDialogWindow::getAccessibleRole( ) throw (RuntimeException)
return AccessibleRole::PANEL;
}
-// -----------------------------------------------------------------------------
+
OUString AccessibleDialogWindow::getAccessibleDescription( ) throw (RuntimeException)
{
@@ -735,7 +735,7 @@ OUString AccessibleDialogWindow::getAccessibleDescription( ) throw (RuntimeExce
return sDescription;
}
-// -----------------------------------------------------------------------------
+
OUString AccessibleDialogWindow::getAccessibleName( ) throw (RuntimeException)
{
@@ -748,7 +748,7 @@ OUString AccessibleDialogWindow::getAccessibleName( ) throw (RuntimeException)
return sName;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > AccessibleDialogWindow::getAccessibleRelationSet( ) throw (RuntimeException)
{
@@ -759,7 +759,7 @@ Reference< XAccessibleRelationSet > AccessibleDialogWindow::getAccessibleRelatio
return xSet;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessibleStateSet > AccessibleDialogWindow::getAccessibleStateSet( ) throw (RuntimeException)
{
@@ -780,7 +780,7 @@ Reference< XAccessibleStateSet > AccessibleDialogWindow::getAccessibleStateSet(
return xSet;
}
-// -----------------------------------------------------------------------------
+
Locale AccessibleDialogWindow::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
@@ -789,9 +789,9 @@ Locale AccessibleDialogWindow::getLocale( ) throw (IllegalAccessibleComponentSt
return Application::GetSettings().GetLanguageTag().getLocale();
}
-// -----------------------------------------------------------------------------
+
// XAccessibleComponent
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleDialogWindow::getAccessibleAtPoint( const awt::Point& rPoint ) throw (RuntimeException)
{
@@ -820,7 +820,7 @@ Reference< XAccessible > AccessibleDialogWindow::getAccessibleAtPoint( const awt
return xChild;
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::grabFocus( ) throw (RuntimeException)
{
@@ -830,7 +830,7 @@ void AccessibleDialogWindow::grabFocus( ) throw (RuntimeException)
m_pDialogWindow->GrabFocus();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 AccessibleDialogWindow::getForeground( ) throw (RuntimeException)
{
@@ -855,7 +855,7 @@ sal_Int32 AccessibleDialogWindow::getForeground( ) throw (RuntimeException)
return nColor;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 AccessibleDialogWindow::getBackground( ) throw (RuntimeException)
{
@@ -873,9 +873,9 @@ sal_Int32 AccessibleDialogWindow::getBackground( ) throw (RuntimeException)
return nColor;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleExtendedComponent
-// -----------------------------------------------------------------------------
+
Reference< awt::XFont > AccessibleDialogWindow::getFont( ) throw (RuntimeException)
{
@@ -901,7 +901,7 @@ Reference< awt::XFont > AccessibleDialogWindow::getFont( ) throw (RuntimeExcept
return xFont;
}
-// -----------------------------------------------------------------------------
+
OUString AccessibleDialogWindow::getTitledBorderText( ) throw (RuntimeException)
{
@@ -910,7 +910,7 @@ OUString AccessibleDialogWindow::getTitledBorderText( ) throw (RuntimeException
return OUString();
}
-// -----------------------------------------------------------------------------
+
OUString AccessibleDialogWindow::getToolTipText( ) throw (RuntimeException)
{
@@ -923,9 +923,9 @@ OUString AccessibleDialogWindow::getToolTipText( ) throw (RuntimeException)
return sText;
}
-// -----------------------------------------------------------------------------
+
// XAccessibleSelection
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -945,7 +945,7 @@ void AccessibleDialogWindow::selectAccessibleChild( sal_Int32 nChildIndex ) thro
}
}
-// -----------------------------------------------------------------------------
+
sal_Bool AccessibleDialogWindow::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -960,7 +960,7 @@ sal_Bool AccessibleDialogWindow::isAccessibleChildSelected( sal_Int32 nChildInde
return false;
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::clearAccessibleSelection()
throw (RuntimeException, std::exception)
@@ -971,7 +971,7 @@ void AccessibleDialogWindow::clearAccessibleSelection()
m_pDialogWindow->GetView().UnmarkAll();
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::selectAllAccessibleChildren( ) throw (RuntimeException)
{
@@ -981,7 +981,7 @@ void AccessibleDialogWindow::selectAllAccessibleChildren( ) throw (RuntimeExcep
m_pDialogWindow->GetView().MarkAll();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 AccessibleDialogWindow::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
@@ -998,7 +998,7 @@ sal_Int32 AccessibleDialogWindow::getSelectedAccessibleChildCount( ) throw (Run
return nRet;
}
-// -----------------------------------------------------------------------------
+
Reference< XAccessible > AccessibleDialogWindow::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -1021,7 +1021,7 @@ Reference< XAccessible > AccessibleDialogWindow::getSelectedAccessibleChild( sal
return xChild;
}
-// -----------------------------------------------------------------------------
+
void AccessibleDialogWindow::deselectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -1042,7 +1042,7 @@ void AccessibleDialogWindow::deselectAccessibleChild( sal_Int32 nChildIndex ) th
}
}
-// -----------------------------------------------------------------------------
+
} // namespace basctl
diff --git a/basctl/source/basicide/basidectrlr.cxx b/basctl/source/basicide/basidectrlr.cxx
index 855ad1ee3f6f..0335269819b0 100644
--- a/basctl/source/basicide/basidectrlr.cxx
+++ b/basctl/source/basicide/basidectrlr.cxx
@@ -42,9 +42,6 @@ OUString const sPropertyIconId("IconId");
}
-
-//----------------------------------------------------------------------------
-
Controller::Controller (Shell* pViewShell)
:OPropertyContainer( m_aBHelper )
,SfxBaseController( pViewShell )
@@ -57,14 +54,10 @@ Controller::Controller (Shell* pViewShell)
);
}
-//----------------------------------------------------------------------------
-
Controller::~Controller()
{ }
// XInterface
-//----------------------------------------------------------------------------
-
Any SAL_CALL Controller::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aReturn = SfxBaseController::queryInterface( rType );
@@ -74,24 +67,17 @@ Any SAL_CALL Controller::queryInterface( const Type & rType ) throw(RuntimeExcep
return aReturn;
}
-//----------------------------------------------------------------------------
-
void SAL_CALL Controller::acquire() throw()
{
SfxBaseController::acquire();
}
-//----------------------------------------------------------------------------
-
void SAL_CALL Controller::release() throw()
{
SfxBaseController::release();
}
-
// XTypeProvider ( ::SfxBaseController )
-//----------------------------------------------------------------------------
-
Sequence< Type > SAL_CALL Controller::getTypes() throw(RuntimeException)
{
Sequence< Type > aTypes = ::comphelper::concatSequences(
@@ -102,8 +88,6 @@ Sequence< Type > SAL_CALL Controller::getTypes() throw(RuntimeException)
return aTypes;
}
-//----------------------------------------------------------------------------
-
Sequence< sal_Int8 > SAL_CALL Controller::getImplementationId() throw(RuntimeException)
{
static ::cppu::OImplementationId * pId = 0;
@@ -120,8 +104,6 @@ Sequence< sal_Int8 > SAL_CALL Controller::getImplementationId() throw(RuntimeExc
}
// XPropertySet
-//----------------------------------------------------------------------------
-
Reference< beans::XPropertySetInfo > SAL_CALL Controller::getPropertySetInfo() throw(RuntimeException)
{
Reference< beans::XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) );
@@ -129,16 +111,12 @@ Reference< beans::XPropertySetInfo > SAL_CALL Controller::getPropertySetInfo() t
}
// OPropertySetHelper
-//----------------------------------------------------------------------------
-
::cppu::IPropertyArrayHelper& Controller::getInfoHelper()
{
return *getArrayHelper();
}
// OPropertyArrayUsageHelper
-//----------------------------------------------------------------------------
-
::cppu::IPropertyArrayHelper* Controller::createArrayHelper( ) const
{
Sequence< Property > aProps;
@@ -146,8 +124,6 @@ Reference< beans::XPropertySetInfo > SAL_CALL Controller::getPropertySetInfo() t
return new ::cppu::OPropertyArrayHelper( aProps );
}
-//----------------------------------------------------------------------------
-
} // namespace basctl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx
index 721ab895fd53..63c1db46d357 100644
--- a/basctl/source/basicide/basobj2.cxx
+++ b/basctl/source/basicide/basobj2.cxx
@@ -50,9 +50,6 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::container;
-
-//----------------------------------------------------------------------------
-
extern "C" {
SAL_DLLPUBLIC_EXPORT rtl_uString* basicide_choose_macro( void* pOnlyInDocument_AsXModel, sal_Bool bChooseOnly, rtl_uString* pMacroDesc )
{
@@ -71,8 +68,6 @@ extern "C" {
}
}
-//----------------------------------------------------------------------------
-
void Organize( sal_Int16 tabId )
{
EnsureIde();
@@ -86,8 +81,6 @@ void Organize( sal_Int16 tabId )
OrganizeDialog(pParent, tabId, aDesc).Execute();
}
-//----------------------------------------------------------------------------
-
bool IsValidSbxName( const OUString& rName )
{
for ( sal_uInt16 nChar = 0; nChar < rName.getLength(); nChar++ )
@@ -110,8 +103,6 @@ static bool StringCompareLessThan( const OUString& rStr1, const OUString& rStr2
return rStr1.compareToIgnoreAsciiCase( rStr2 ) < 0;
}
-//----------------------------------------------------------------------------
-
Sequence< OUString > GetMergedLibraryNames( const Reference< script::XLibraryContainer >& xModLibContainer, const Reference< script::XLibraryContainer >& xDlgLibContainer )
{
// create a sorted list of module library names
@@ -153,8 +144,6 @@ Sequence< OUString > GetMergedLibraryNames( const Reference< script::XLibraryCon
return aSeqLibNames;
}
-//----------------------------------------------------------------------------
-
bool RenameModule (
Window* pErrorParent,
const ScriptDocument& rDocument,
@@ -212,9 +201,6 @@ bool RenameModule (
return true;
}
-
-//----------------------------------------------------------------------------
-
namespace
{
struct MacroExecutionData
@@ -235,7 +221,6 @@ namespace
DECL_STATIC_LINK( MacroExecution, ExecuteMacroEvent, MacroExecutionData* );
};
-
IMPL_STATIC_LINK( MacroExecution, ExecuteMacroEvent, MacroExecutionData*, i_pData )
{
(void)pThis;
@@ -257,8 +242,6 @@ namespace
}
}
-//----------------------------------------------------------------------------
-
OUString ChooseMacro( const uno::Reference< frame::XModel >& rxLimitToDocument, bool bChooseOnly, const OUString& rMacroDesc )
{
(void)rMacroDesc;
@@ -394,8 +377,6 @@ OUString ChooseMacro( const uno::Reference< frame::XModel >& rxLimitToDocument,
return aScriptURL;
}
-//----------------------------------------------------------------------------
-
Sequence< OUString > GetMethodNames( const ScriptDocument& rDocument, const OUString& rLibName, const OUString& rModName )
throw(NoSuchElementException )
{
@@ -443,8 +424,6 @@ Sequence< OUString > GetMethodNames( const ScriptDocument& rDocument, const OUSt
return aSeqMethods;
}
-//----------------------------------------------------------------------------
-
bool HasMethod (
ScriptDocument const& rDocument,
OUString const& rLibName,
@@ -482,7 +461,6 @@ bool HasMethod (
return bHasMethod;
}
-//----------------------------------------------------------------------------
} // namespace basctl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/basicide/basobj3.cxx b/basctl/source/basicide/basobj3.cxx
index 651798d50196..a735a4bd9ab1 100644
--- a/basctl/source/basicide/basobj3.cxx
+++ b/basctl/source/basicide/basobj3.cxx
@@ -60,9 +60,6 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::container;
-
-//----------------------------------------------------------------------------
-
extern "C" {
SAL_DLLPUBLIC_EXPORT long basicide_handle_basic_error( void* pPtr )
{
@@ -70,8 +67,6 @@ extern "C" {
}
}
-//----------------------------------------------------------------------------
-
SbMethod* CreateMacro( SbModule* pModule, const OUString& rMacroName )
{
SfxDispatcher* pDispatcher = GetDispatcher();
@@ -160,8 +155,6 @@ SbMethod* CreateMacro( SbModule* pModule, const OUString& rMacroName )
return pMethod;
}
-//----------------------------------------------------------------------------
-
bool RenameDialog (
Window* pErrorParent,
ScriptDocument const& rDocument,
@@ -226,8 +219,6 @@ bool RenameDialog (
return true;
}
-//----------------------------------------------------------------------------
-
bool RemoveDialog( const ScriptDocument& rDocument, const OUString& rLibName, const OUString& rDlgName )
{
if (Shell* pShell = GetShell())
@@ -242,8 +233,6 @@ bool RemoveDialog( const ScriptDocument& rDocument, const OUString& rLibName, co
return rDocument.removeDialog( rLibName, rDlgName );
}
-//----------------------------------------------------------------------------
-
StarBASIC* FindBasic( const SbxVariable* pVar )
{
SbxVariable const* pSbx = pVar;
@@ -252,8 +241,6 @@ StarBASIC* FindBasic( const SbxVariable* pVar )
return (StarBASIC*)pSbx;
}
-//----------------------------------------------------------------------------
-
BasicManager* FindBasicManager( StarBASIC* pLib )
{
ScriptDocuments aDocuments( ScriptDocument::getAllScriptDocuments( ScriptDocument::AllWithApplication ) );
@@ -281,8 +268,6 @@ BasicManager* FindBasicManager( StarBASIC* pLib )
return NULL;
}
-//----------------------------------------------------------------------------
-
void MarkDocumentModified( const ScriptDocument& rDocument )
{
// does not have to come from a document...
@@ -307,8 +292,6 @@ void MarkDocumentModified( const ScriptDocument& rDocument )
}
}
-//----------------------------------------------------------------------------
-
void RunMethod( SbMethod* pMethod )
{
SbxValues aRes;
@@ -316,8 +299,6 @@ void RunMethod( SbMethod* pMethod )
pMethod->Get( aRes );
}
-//----------------------------------------------------------------------------
-
void StopBasic()
{
StarBASIC::Stop();
@@ -335,8 +316,6 @@ void StopBasic()
BasicStopped();
}
-//----------------------------------------------------------------------------
-
void BasicStopped(
bool* pbAppWindowDisabled,
bool* pbDispatcherLocked,
@@ -346,7 +325,6 @@ void BasicStopped(
{
// maybe there are some locks to be removed after an error
// or an explicit cancelling of the basic...
-
if ( pbAppWindowDisabled )
*pbAppWindowDisabled = false;
if ( pbDispatcherLocked )
@@ -358,7 +336,7 @@ void BasicStopped(
if ( ppSWLockViewCount )
*ppSWLockViewCount = 0;
- // AppWait ?
+ // AppWait?
if (Shell* pShell = GetShell())
{
sal_uInt16 nWait = 0;
@@ -381,8 +359,6 @@ void BasicStopped(
}
-//----------------------------------------------------------------------------
-
void InvalidateDebuggerSlots()
{
if (SfxBindings* pBindings = GetBindingsPtr())
@@ -406,8 +382,6 @@ void InvalidateDebuggerSlots()
}
}
-//----------------------------------------------------------------------------
-
long HandleBasicError( StarBASIC* pBasic )
{
EnsureIde();
@@ -465,8 +439,6 @@ long HandleBasicError( StarBASIC* pBasic )
return nRet;
}
-//----------------------------------------------------------------------------
-
SfxBindings* GetBindingsPtr()
{
SfxBindings* pBindings = NULL;
@@ -495,8 +467,6 @@ SfxBindings* GetBindingsPtr()
return pBindings;
}
-//----------------------------------------------------------------------------
-
SfxDispatcher* GetDispatcher ()
{
if (Shell* pShell = GetShell())
@@ -505,8 +475,6 @@ SfxDispatcher* GetDispatcher ()
return pDispatcher;
return 0;
}
-
-//----------------------------------------------------------------------------
} // namespace basctl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/basicide/doceventnotifier.cxx b/basctl/source/basicide/doceventnotifier.cxx
index 95ed06fa12e2..1037da1760a9 100644
--- a/basctl/source/basicide/doceventnotifier.cxx
+++ b/basctl/source/basicide/doceventnotifier.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include "doceventnotifier.hxx"
#include "scriptdocument.hxx"
@@ -36,10 +35,8 @@
#include <cppuhelper/compbase1.hxx>
#include <cppuhelper/basemutex.hxx>
-//........................................................................
namespace basctl
{
-//........................................................................
using ::com::sun::star::document::XDocumentEventBroadcaster;
using ::com::sun::star::document::XDocumentEventListener;
@@ -55,9 +52,8 @@ namespace basctl
namespace csslang = ::com::sun::star::lang;
- //====================================================================
- //= DocumentEventNotifier::Impl
- //====================================================================
+ // DocumentEventNotifier::Impl
+
typedef ::cppu::WeakComponentImplHelper1 < XDocumentEventListener
> DocumentEventNotifier_Impl_Base;
@@ -101,7 +97,6 @@ namespace basctl
Reference< XModel > m_xModel;
};
- //--------------------------------------------------------------------
DocumentEventNotifier::Impl::Impl (DocumentEventListener& rListener, Reference<XModel> const& rxDocument) :
DocumentEventNotifier_Impl_Base(m_aMutex),
m_pListener(&rListener),
@@ -112,7 +107,6 @@ namespace basctl
osl_atomic_decrement( &m_refCount );
}
- //--------------------------------------------------------------------
DocumentEventNotifier::Impl::~Impl ()
{
if ( !impl_isDisposed_nothrow() )
@@ -122,7 +116,6 @@ namespace basctl
}
}
- //--------------------------------------------------------------------
void SAL_CALL DocumentEventNotifier::Impl::documentEventOccured( const DocumentEvent& _rEvent ) throw (RuntimeException)
{
::osl::ClearableMutexGuard aGuard( m_aMutex );
@@ -176,7 +169,6 @@ namespace basctl
}
}
- //--------------------------------------------------------------------
void SAL_CALL DocumentEventNotifier::Impl::disposing( const csslang::EventObject& /*Event*/ ) throw (RuntimeException)
{
SolarMutexGuard aSolarGuard;
@@ -186,21 +178,18 @@ namespace basctl
impl_dispose_nothrow();
}
- //--------------------------------------------------------------------
void SAL_CALL DocumentEventNotifier::Impl::disposing()
{
impl_listenerAction_nothrow( RemoveListener );
impl_dispose_nothrow();
}
- //--------------------------------------------------------------------
void DocumentEventNotifier::Impl::impl_dispose_nothrow()
{
m_pListener = NULL;
m_xModel.clear();
}
- //--------------------------------------------------------------------
void DocumentEventNotifier::Impl::impl_listenerAction_nothrow( ListenerAction _eAction )
{
try
@@ -225,39 +214,31 @@ namespace basctl
}
}
- //====================================================================
- //= DocumentEventNotifier
- //====================================================================
- //--------------------------------------------------------------------
+ // DocumentEventNotifier
+
DocumentEventNotifier::DocumentEventNotifier (DocumentEventListener& rListener, Reference<XModel> const& rxDocument) :
m_pImpl(new Impl(rListener, rxDocument))
{ }
- //--------------------------------------------------------------------
DocumentEventNotifier::DocumentEventNotifier (DocumentEventListener& rListener) :
m_pImpl(new Impl(rListener, Reference<XModel>()))
{ }
- //--------------------------------------------------------------------
DocumentEventNotifier::~DocumentEventNotifier()
{
}
- //--------------------------------------------------------------------
void DocumentEventNotifier::dispose()
{
m_pImpl->dispose();
}
- //====================================================================
- //= DocumentEventListener
- //====================================================================
+ // DocumentEventListener
+
DocumentEventListener::~DocumentEventListener()
{
}
-//........................................................................
} // namespace basctl
-//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/basicide/docsignature.cxx b/basctl/source/basicide/docsignature.cxx
index 0060ca6f19e9..0553bbd191be 100644
--- a/basctl/source/basicide/docsignature.cxx
+++ b/basctl/source/basicide/docsignature.cxx
@@ -23,11 +23,8 @@
#include <sfx2/objsh.hxx>
#include <sfx2/signaturestate.hxx>
-//........................................................................
namespace basctl
{
-//........................................................................
-
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::UNO_QUERY;
using ::com::sun::star::uno::UNO_QUERY_THROW;
@@ -35,9 +32,8 @@ namespace basctl
using ::com::sun::star::uno::RuntimeException;
using ::com::sun::star::frame::XModel;
- //====================================================================
- //= DocumentSignature::Impl
- //====================================================================
+ // DocumentSignature::Impl
+
struct DocumentSignature::Impl
{
SfxObjectShell* pShell;
@@ -45,10 +41,8 @@ namespace basctl
Impl () : pShell(0) { }
};
- //====================================================================
- //= DocumentSignature
- //====================================================================
- //--------------------------------------------------------------------
+ // DocumentSignature
+
DocumentSignature::DocumentSignature (ScriptDocument const& rDocument) :
m_pImpl(new Impl)
{
@@ -67,18 +61,15 @@ namespace basctl
}
}
- //--------------------------------------------------------------------
DocumentSignature::~DocumentSignature()
{
}
- //--------------------------------------------------------------------
bool DocumentSignature::supportsSignatures() const
{
return ( m_pImpl->pShell != NULL );
}
- //--------------------------------------------------------------------
void DocumentSignature::signScriptingContent() const
{
OSL_PRECOND( supportsSignatures(), "DocumentSignature::signScriptingContent: signatures not supported by this document!" );
@@ -86,7 +77,6 @@ namespace basctl
m_pImpl->pShell->SignScriptingContent();
}
- //--------------------------------------------------------------------
sal_uInt16 DocumentSignature::getScriptingSignatureState() const
{
if ( m_pImpl->pShell )
@@ -94,8 +84,6 @@ namespace basctl
return SIGNATURESTATE_NOSIGNATURES;
}
-//........................................................................
} // namespace basctl
-//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/basicide/documentenumeration.cxx b/basctl/source/basicide/documentenumeration.cxx
index f281ecadd112..de65f8cb1a56 100644
--- a/basctl/source/basicide/documentenumeration.cxx
+++ b/basctl/source/basicide/documentenumeration.cxx
@@ -34,9 +34,7 @@
#include <comphelper/stl_types.hxx>
-//........................................................................
namespace basctl { namespace docs {
-//........................................................................
using ::com::sun::star::uno::Exception;
using ::com::sun::star::uno::Reference;
@@ -59,9 +57,7 @@ namespace basctl { namespace docs {
namespace FrameSearchFlag = ::com::sun::star::frame::FrameSearchFlag;
- //====================================================================
- //= DocumentEnumeration_Data
- //====================================================================
+ // DocumentEnumeration_Data
struct DocumentEnumeration_Data
{
Reference< com::sun::star::uno::XComponentContext > aContext;
@@ -74,24 +70,18 @@ namespace basctl { namespace docs {
}
};
- //====================================================================
- //= DocumentEnumeration
- //====================================================================
- //--------------------------------------------------------------------
+ // DocumentEnumeration
DocumentEnumeration::DocumentEnumeration( Reference< com::sun::star::uno::XComponentContext > const & _rContext, const IDocumentDescriptorFilter* _pFilter )
:m_pData( new DocumentEnumeration_Data( _rContext, _pFilter ) )
{
}
- //--------------------------------------------------------------------
DocumentEnumeration::~DocumentEnumeration()
{
}
- //--------------------------------------------------------------------
namespace
{
- //................................................................
void lcl_getDocumentControllers_nothrow( DocumentDescriptor& _io_rDocDesc )
{
OSL_PRECOND( _io_rDocDesc.xModel.is(), "lcl_getDocumentControllers_nothrow: illegal model!" );
@@ -118,7 +108,6 @@ namespace basctl { namespace docs {
}
}
- //................................................................
void lcl_getDocuments_nothrow( const Sequence< Reference< XFrame > >& _rFrames, Documents& _out_rDocuments,
const IDocumentDescriptorFilter* _pFilter )
{
@@ -170,7 +159,6 @@ namespace basctl { namespace docs {
}
}
- //--------------------------------------------------------------------
void DocumentEnumeration::getDocuments( Documents& _out_rDocuments ) const
{
_out_rDocuments.clear();
@@ -189,8 +177,6 @@ namespace basctl { namespace docs {
}
}
-//........................................................................
} } // namespace basctl::docs
-//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index 475d182ec29f..ae356ed80632 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -74,7 +74,6 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::ucb;
using namespace ::com::sun::star::ui::dialogs;
-
typedef ::cppu::WeakImplHelper1< task::XInteractionHandler > HandlerImpl_BASE;
namespace
@@ -97,9 +96,7 @@ public:
}
};
-//----------------------------------------------------------------------------
-// LibUserData
-//----------------------------------------------------------------------------
+// LibUserData
class LibUserData
{
private:
@@ -112,10 +109,7 @@ public:
const ScriptDocument& GetDocument() const { return m_aDocument; }
};
-//----------------------------------------------------------------------------
// LibLBoxString
-//----------------------------------------------------------------------------
-
class LibLBoxString : public SvLBoxString
{
public:
@@ -125,8 +119,6 @@ public:
virtual void Paint(const Point& rPos, SvTreeListBox& rDev, const SvViewDataEntry* pView, const SvTreeListEntry* pEntry);
};
-//----------------------------------------------------------------------------
-
void LibLBoxString::Paint(const Point& rPos, SvTreeListBox& rDev, const SvViewDataEntry* /*pView*/, const SvTreeListEntry* pEntry)
{
// Change text color if library is read only:
@@ -156,11 +148,7 @@ void LibLBoxString::Paint(const Point& rPos, SvTreeListBox& rDev, const SvViewDa
} // namespace
-
-//----------------------------------------------------------------------------
// basctl::CheckBox
-//----------------------------------------------------------------------------
-
CheckBox::CheckBox(Window* pParent, WinBits nStyle)
: SvTabListBox(pParent, nStyle)
, eMode(ObjectMode::Module)
@@ -181,8 +169,6 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeCheckBox(Window *pParent, V
return new CheckBox(pParent, nWinBits);
}
-//----------------------------------------------------------------------------
-
CheckBox::~CheckBox()
{
delete pCheckButton;
@@ -196,8 +182,6 @@ CheckBox::~CheckBox()
}
}
-//----------------------------------------------------------------------------
-
void CheckBox::Init()
{
pCheckButton = new SvLBoxButtonData(this);
@@ -210,8 +194,6 @@ void CheckBox::Init()
SetHighlightRange();
}
-//----------------------------------------------------------------------------
-
void CheckBox::SetMode (ObjectMode::Mode e)
{
eMode = e;
@@ -222,15 +204,11 @@ void CheckBox::SetMode (ObjectMode::Mode e)
EnableCheckButton( 0 );
}
-//----------------------------------------------------------------------------
-
SvTreeListEntry* CheckBox::DoInsertEntry( const OUString& rStr, sal_uLong nPos )
{
return SvTabListBox::InsertEntryToColumn( rStr, nPos, 0 );
}
-//----------------------------------------------------------------------------
-
SvTreeListEntry* CheckBox::FindEntry( const OUString& rName )
{
sal_uLong nCount = GetEntryCount();
@@ -244,8 +222,6 @@ SvTreeListEntry* CheckBox::FindEntry( const OUString& rName )
return 0;
}
-//----------------------------------------------------------------------------
-
void CheckBox::CheckEntryPos( sal_uLong nPos )
{
if ( nPos < GetEntryCount() )
@@ -257,8 +233,6 @@ void CheckBox::CheckEntryPos( sal_uLong nPos )
}
}
-//----------------------------------------------------------------------------
-
bool CheckBox::IsChecked( sal_uLong nPos ) const
{
if ( nPos < GetEntryCount() )
@@ -266,8 +240,6 @@ bool CheckBox::IsChecked( sal_uLong nPos ) const
return false;
}
-//----------------------------------------------------------------------------
-
void CheckBox::InitEntry(SvTreeListEntry* pEntry, const OUString& rTxt,
const Image& rImg1, const Image& rImg2, SvLBoxButtonKind eButtonKind )
{
@@ -286,8 +258,6 @@ void CheckBox::InitEntry(SvTreeListEntry* pEntry, const OUString& rTxt,
}
}
-//----------------------------------------------------------------------------
-
sal_Bool CheckBox::EditingEntry( SvTreeListEntry* pEntry, Selection& )
{
if (eMode != ObjectMode::Module)
@@ -334,8 +304,6 @@ sal_Bool CheckBox::EditingEntry( SvTreeListEntry* pEntry, Selection& )
return true;
}
-//----------------------------------------------------------------------------
-
sal_Bool CheckBox::EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewName )
{
bool bValid = rNewName.getLength() <= 30 && IsValidSbxName(rNewName);
@@ -382,10 +350,7 @@ sal_Bool CheckBox::EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewNam
return bValid;
}
-//----------------------------------------------------------------------------
// NewObjectDialog
-//----------------------------------------------------------------------------
-
IMPL_LINK_NOARG(NewObjectDialog, OkButtonHandler)
{
if (IsValidSbxName(m_pEdit->GetText()))
@@ -429,10 +394,7 @@ NewObjectDialog::NewObjectDialog(Window * pParent, ObjectMode::Mode eMode,
m_pOKButton->SetClickHdl(LINK(this, NewObjectDialog, OkButtonHandler));
}
-//----------------------------------------------------------------------------
// GotoLineDialog
-//----------------------------------------------------------------------------
-
GotoLineDialog::GotoLineDialog(Window * pParent )
: ModalDialog(pParent, "GotoLineDialog",
"modules/BasicIDE/ui/gotolinedialog.ui")
@@ -457,11 +419,7 @@ IMPL_LINK_NOARG(GotoLineDialog, OkButtonHandler)
return 0;
}
-
-//----------------------------------------------------------------------------
// ExportDialog
-//----------------------------------------------------------------------------
-
IMPL_LINK_NOARG(ExportDialog, OkButtonHandler)
{
mbExportAsPackage = m_pExportAsPackageButton->IsChecked();
@@ -481,10 +439,7 @@ ExportDialog::ExportDialog(Window * pParent)
m_pOKButton->SetClickHdl(LINK(this, ExportDialog, OkButtonHandler));
}
-//----------------------------------------------------------------------------
-// LibPage
-//----------------------------------------------------------------------------
-
+// LibPage
LibPage::LibPage(Window * pParent)
: TabPage(pParent, "LibPage",
"modules/BasicIDE/ui/libpage.ui")
@@ -529,8 +484,6 @@ LibPage::LibPage(Window * pParent)
CheckButtons();
}
-//----------------------------------------------------------------------------
-
LibPage::~LibPage()
{
sal_uInt16 nCount = m_pBasicsBox->GetEntryCount();
@@ -541,8 +494,6 @@ LibPage::~LibPage()
}
}
-//----------------------------------------------------------------------------
-
void LibPage::CheckButtons()
{
SvTreeListEntry* pCur = m_pLibBox->GetCurEntry();
@@ -594,23 +545,15 @@ void LibPage::CheckButtons()
}
}
-//----------------------------------------------------------------------------
-
void LibPage::ActivatePage()
{
SetCurLib();
}
-//----------------------------------------------------------------------------
-
-
void LibPage::DeactivatePage()
{
}
-//----------------------------------------------------------------------------
-
-
IMPL_LINK_INLINE_START( LibPage, TreeListHighlightHdl, SvTreeListBox *, pBox )
{
if ( pBox->IsSelected( pBox->GetHdlEntry() ) )
@@ -619,8 +562,6 @@ IMPL_LINK_INLINE_START( LibPage, TreeListHighlightHdl, SvTreeListBox *, pBox )
}
IMPL_LINK_INLINE_END( LibPage, TreeListHighlightHdl, SvTreeListBox *, pBox )
-//----------------------------------------------------------------------------
-
IMPL_LINK_INLINE_START( LibPage, BasicSelectHdl, ListBox *, pBox )
{
(void)pBox;
@@ -630,8 +571,6 @@ IMPL_LINK_INLINE_START( LibPage, BasicSelectHdl, ListBox *, pBox )
}
IMPL_LINK_INLINE_END( LibPage, BasicSelectHdl, ListBox *, pBox )
-//----------------------------------------------------------------------------
-
IMPL_LINK( LibPage, ButtonHdl, Button *, pButton )
{
if (pButton == m_pEditButton)
@@ -722,8 +661,6 @@ IMPL_LINK( LibPage, ButtonHdl, Button *, pButton )
return 0;
}
-//----------------------------------------------------------------------------
-
IMPL_LINK_INLINE_START( LibPage, CheckPasswordHdl, SvxPasswordDialog *, pDlg )
{
long nRet = 0;
@@ -750,15 +687,11 @@ IMPL_LINK_INLINE_START( LibPage, CheckPasswordHdl, SvxPasswordDialog *, pDlg )
}
IMPL_LINK_INLINE_END( LibPage, CheckPasswordHdl, SvxPasswordDialog *, pDlg )
-//----------------------------------------------------------------------------
-
void LibPage::NewLib()
{
createLibImpl( static_cast<Window*>( this ), m_aCurDocument, m_pLibBox, NULL);
}
-//----------------------------------------------------------------------------
-
void LibPage::InsertLib()
{
Reference< uno::XComponentContext > xContext( ::comphelper::getProcessComponentContext() );
@@ -1119,8 +1052,6 @@ void LibPage::InsertLib()
}
}
-//----------------------------------------------------------------------------
-
void LibPage::Export( void )
{
SvTreeListEntry* pCurEntry = m_pLibBox->GetCurEntry();
@@ -1146,7 +1077,6 @@ void LibPage::Export( void )
return;
}
-
ExportDialog aNewDlg(this);
if (aNewDlg.Execute() == RET_OK)
{
@@ -1178,10 +1108,7 @@ void LibPage::implExportLib( const OUString& aLibName, const OUString& aTargetUR
xDlgLibContainerExport->exportLibrary( aOULibName, aTargetURL, Handler );
}
-
-//===========================================================================
// Implementation XCommandEnvironment
-
typedef cppu::WeakImplHelper1< XCommandEnvironment > LibCommandEnvironmentHelper;
class OLibCommandEnvironment : public LibCommandEnvironmentHelper
@@ -1213,8 +1140,6 @@ Reference< XProgressHandler > OLibCommandEnvironment::getProgressHandler()
return xRet;
}
-
-
void LibPage::ExportAsPackage( const OUString& aLibName )
{
// file open dialog
@@ -1364,8 +1289,6 @@ void LibPage::ExportAsBasic( const OUString& aLibName )
}
}
-//----------------------------------------------------------------------------
-
void LibPage::DeleteCurrent()
{
SvTreeListEntry* pCurEntry = m_pLibBox->GetCurEntry();
@@ -1402,8 +1325,6 @@ void LibPage::DeleteCurrent()
}
}
-//----------------------------------------------------------------------------
-
void LibPage::EndTabDialog( sal_uInt16 nRet )
{
DBG_ASSERT( pTabDlg, "TabDlg nicht gesetzt!" );
@@ -1411,8 +1332,6 @@ void LibPage::EndTabDialog( sal_uInt16 nRet )
pTabDlg->EndDialog( nRet );
}
-//----------------------------------------------------------------------------
-
void LibPage::FillListBox()
{
InsertListBoxEntry( ScriptDocument::getApplicationScriptDocument(), LIBRARY_LOCATION_USER );
@@ -1428,8 +1347,6 @@ void LibPage::FillListBox()
}
}
-//----------------------------------------------------------------------------
-
void LibPage::InsertListBoxEntry( const ScriptDocument& rDocument, LibraryLocation eLocation )
{
OUString aEntryText( rDocument.getTitle( eLocation ) );
@@ -1437,8 +1354,6 @@ void LibPage::InsertListBoxEntry( const ScriptDocument& rDocument, LibraryLocati
m_pBasicsBox->SetEntryData( nPos, new DocumentEntry(rDocument, eLocation) );
}
-//----------------------------------------------------------------------------
-
void LibPage::SetCurLib()
{
sal_uInt16 nSelPos = m_pBasicsBox->GetSelectEntryPos();
@@ -1477,8 +1392,6 @@ void LibPage::SetCurLib()
}
}
-//----------------------------------------------------------------------------
-
SvTreeListEntry* LibPage::ImpInsertLibEntry( const OUString& rLibName, sal_uLong nPos )
{
// check, if library is password protected
@@ -1514,8 +1427,6 @@ SvTreeListEntry* LibPage::ImpInsertLibEntry( const OUString& rLibName, sal_uLong
return pNewEntry;
}
-//----------------------------------------------------------------------------
-
// Helper function
void createLibImpl( Window* pWin, const ScriptDocument& rDocument,
CheckBox* pLibBox, TreeListBox* pBasicBox )
@@ -1624,9 +1535,6 @@ void createLibImpl( Window* pWin, const ScriptDocument& rDocument,
}
}
}
-
-//----------------------------------------------------------------------------
-
} // namespace basctl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/basicide/tbxctl.hxx b/basctl/source/basicide/tbxctl.hxx
index 320336093782..18eefab9af17 100644
--- a/basctl/source/basicide/tbxctl.hxx
+++ b/basctl/source/basicide/tbxctl.hxx
@@ -25,9 +25,6 @@
namespace basctl
{
-//-------------------
-// class TbxControls
-//-------------------
class TbxControls : public SfxToolBoxControl
{
private:
diff --git a/basctl/source/basicide/unomodel.hxx b/basctl/source/basicide/unomodel.hxx
index ba1d2193c95d..46b9f2fa8183 100644
--- a/basctl/source/basicide/unomodel.hxx
+++ b/basctl/source/basicide/unomodel.hxx
@@ -26,7 +26,6 @@
namespace basctl
{
-//-----------------------------------------------------------------------------
class SIDEModel : public SfxBaseModel,
public com::sun::star::lang::XServiceInfo
{
diff --git a/basctl/source/dlged/dlgedclip.cxx b/basctl/source/dlged/dlgedclip.cxx
index 99b8684bbbd3..dbef9d595db4 100644
--- a/basctl/source/dlged/dlgedclip.cxx
+++ b/basctl/source/dlged/dlgedclip.cxx
@@ -33,24 +33,14 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::datatransfer;
using namespace ::com::sun::star::datatransfer::clipboard;
-
-
-//----------------------------------------------------------------------------
-
DlgEdTransferableImpl::DlgEdTransferableImpl( const Sequence< DataFlavor >& aSeqFlavors, const Sequence< Any >& aSeqData )
{
m_SeqFlavors = aSeqFlavors;
m_SeqData = aSeqData;
}
-
-//----------------------------------------------------------------------------
-
DlgEdTransferableImpl::~DlgEdTransferableImpl()
{
}
-
-//----------------------------------------------------------------------------
-
sal_Bool DlgEdTransferableImpl::compareDataFlavors( const DataFlavor& lFlavor, const DataFlavor& rFlavor )
{
// compare mime content types
@@ -71,8 +61,6 @@ sal_Bool DlgEdTransferableImpl::compareDataFlavors( const DataFlavor& lFlavor, c
}
// XTransferable
-//----------------------------------------------------------------------------
-
Any SAL_CALL DlgEdTransferableImpl::getTransferData( const DataFlavor& rFlavor ) throw(UnsupportedFlavorException, IOException, RuntimeException)
{
const SolarMutexGuard aGuard;
@@ -93,18 +81,12 @@ Any SAL_CALL DlgEdTransferableImpl::getTransferData( const DataFlavor& rFlavor )
return aData;
}
-
-//----------------------------------------------------------------------------
-
Sequence< DataFlavor > SAL_CALL DlgEdTransferableImpl::getTransferDataFlavors( ) throw(RuntimeException)
{
const SolarMutexGuard aGuard;
return m_SeqFlavors;
}
-
-//----------------------------------------------------------------------------
-
sal_Bool SAL_CALL DlgEdTransferableImpl::isDataFlavorSupported( const DataFlavor& rFlavor ) throw(RuntimeException)
{
const SolarMutexGuard aGuard;
@@ -116,8 +98,6 @@ sal_Bool SAL_CALL DlgEdTransferableImpl::isDataFlavorSupported( const DataFlavor
}
// XClipboardOwner
-//----------------------------------------------------------------------------
-
void SAL_CALL DlgEdTransferableImpl::lostOwnership( const Reference< XClipboard >&, const Reference< XTransferable >& ) throw(RuntimeException)
{
const SolarMutexGuard aGuard;
@@ -125,8 +105,6 @@ void SAL_CALL DlgEdTransferableImpl::lostOwnership( const Reference< XClipboard
m_SeqFlavors = Sequence< DataFlavor >();
m_SeqData = Sequence< Any >();
}
-
-
} // namespace basctl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/dlged/dlgedfunc.cxx b/basctl/source/dlged/dlgedfunc.cxx
index 85ec1bf6b092..f5f2c4137b99 100644
--- a/basctl/source/dlged/dlgedfunc.cxx
+++ b/basctl/source/dlged/dlgedfunc.cxx
@@ -27,8 +27,6 @@
namespace basctl
{
-//----------------------------------------------------------------------------
-
IMPL_LINK_INLINE_START( DlgEdFunc, ScrollTimeout, Timer *, pTimer )
{
(void)pTimer;
@@ -40,8 +38,6 @@ IMPL_LINK_INLINE_START( DlgEdFunc, ScrollTimeout, Timer *, pTimer )
}
IMPL_LINK_INLINE_END( DlgEdFunc, ScrollTimeout, Timer *, pTimer )
-//----------------------------------------------------------------------------
-
void DlgEdFunc::ForceScroll( const Point& rPos )
{
aScrollTimer.Stop();
@@ -83,8 +79,6 @@ void DlgEdFunc::ForceScroll( const Point& rPos )
aScrollTimer.Start();
}
-//----------------------------------------------------------------------------
-
DlgEdFunc::DlgEdFunc (DlgEditor& rParent_) :
rParent(rParent_)
{
@@ -92,36 +86,26 @@ DlgEdFunc::DlgEdFunc (DlgEditor& rParent_) :
aScrollTimer.SetTimeout( SELENG_AUTOREPEAT_INTERVAL );
}
-//----------------------------------------------------------------------------
-
DlgEdFunc::~DlgEdFunc()
{
}
-//----------------------------------------------------------------------------
-
bool DlgEdFunc::MouseButtonDown( const MouseEvent& )
{
return true;
}
-//----------------------------------------------------------------------------
-
bool DlgEdFunc::MouseButtonUp( const MouseEvent& )
{
aScrollTimer.Stop();
return true;
}
-//----------------------------------------------------------------------------
-
bool DlgEdFunc::MouseMove( const MouseEvent& )
{
return true;
}
-//----------------------------------------------------------------------------
-
bool DlgEdFunc::KeyInput( const KeyEvent& rKEvt )
{
bool bReturn = false;
@@ -349,23 +333,17 @@ bool DlgEdFunc::KeyInput( const KeyEvent& rKEvt )
return bReturn;
}
-//----------------------------------------------------------------------------
-
DlgEdFuncInsert::DlgEdFuncInsert (DlgEditor& rParent_) :
DlgEdFunc(rParent_)
{
rParent.GetView().SetCreateMode(true);
}
-//----------------------------------------------------------------------------
-
DlgEdFuncInsert::~DlgEdFuncInsert()
{
rParent.GetView().SetEditMode( true );
}
-//----------------------------------------------------------------------------
-
bool DlgEdFuncInsert::MouseButtonDown( const MouseEvent& rMEvt )
{
if( !rMEvt.IsLeft() )
@@ -405,8 +383,6 @@ bool DlgEdFuncInsert::MouseButtonDown( const MouseEvent& rMEvt )
return true;
}
-//----------------------------------------------------------------------------
-
bool DlgEdFuncInsert::MouseButtonUp( const MouseEvent& rMEvt )
{
DlgEdFunc::MouseButtonUp( rMEvt );
@@ -439,8 +415,6 @@ bool DlgEdFuncInsert::MouseButtonUp( const MouseEvent& rMEvt )
}
}
-//----------------------------------------------------------------------------
-
bool DlgEdFuncInsert::MouseMove( const MouseEvent& rMEvt )
{
SdrView& rView = rParent.GetView();
@@ -461,22 +435,16 @@ bool DlgEdFuncInsert::MouseMove( const MouseEvent& rMEvt )
return true;
}
-//----------------------------------------------------------------------------
-
DlgEdFuncSelect::DlgEdFuncSelect (DlgEditor& rParent_) :
DlgEdFunc(rParent_),
bMarkAction(false)
{
}
-//----------------------------------------------------------------------------
-
DlgEdFuncSelect::~DlgEdFuncSelect()
{
}
-//----------------------------------------------------------------------------
-
bool DlgEdFuncSelect::MouseButtonDown( const MouseEvent& rMEvt )
{
// get view from parent
@@ -539,8 +507,6 @@ bool DlgEdFuncSelect::MouseButtonDown( const MouseEvent& rMEvt )
return true;
}
-//----------------------------------------------------------------------------
-
bool DlgEdFuncSelect::MouseButtonUp( const MouseEvent& rMEvt )
{
DlgEdFunc::MouseButtonUp( rMEvt );
@@ -575,8 +541,6 @@ bool DlgEdFuncSelect::MouseButtonUp( const MouseEvent& rMEvt )
return true;
}
-//----------------------------------------------------------------------------
-
bool DlgEdFuncSelect::MouseMove( const MouseEvent& rMEvt )
{
SdrView& rView = rParent.GetView();
@@ -600,8 +564,6 @@ bool DlgEdFuncSelect::MouseMove( const MouseEvent& rMEvt )
return true;
}
-//----------------------------------------------------------------------------
-
} // namespace basctl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/dlged/dlgedlist.cxx b/basctl/source/dlged/dlgedlist.cxx
index fbcc89c26309..ad871511cd30 100644
--- a/basctl/source/dlged/dlgedlist.cxx
+++ b/basctl/source/dlged/dlgedlist.cxx
@@ -23,88 +23,58 @@
namespace basctl
{
-//============================================================================
// DlgEdPropListenerImpl
-//============================================================================
-
-//----------------------------------------------------------------------------
-
DlgEdPropListenerImpl::DlgEdPropListenerImpl (DlgEdObj& rObj) :
rDlgEdObj(rObj)
{
}
-//----------------------------------------------------------------------------
-
DlgEdPropListenerImpl::~DlgEdPropListenerImpl()
{
}
// XEventListener
-//----------------------------------------------------------------------------
-
void SAL_CALL DlgEdPropListenerImpl::disposing( const ::com::sun::star::lang::EventObject& ) throw( ::com::sun::star::uno::RuntimeException)
{
}
// XPropertyChangeListener
-//----------------------------------------------------------------------------
-
void SAL_CALL DlgEdPropListenerImpl::propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw( ::com::sun::star::uno::RuntimeException)
{
rDlgEdObj._propertyChange( evt );
}
-//----------------------------------------------------------------------------
-
-//============================================================================
// DlgEdEvtContListenerImpl
-//============================================================================
-
-//----------------------------------------------------------------------------
-
DlgEdEvtContListenerImpl::DlgEdEvtContListenerImpl (DlgEdObj& rObj) :
rDlgEdObj(rObj)
{
}
-//----------------------------------------------------------------------------
-
DlgEdEvtContListenerImpl::~DlgEdEvtContListenerImpl()
{
}
// XEventListener
-//----------------------------------------------------------------------------
-
void SAL_CALL DlgEdEvtContListenerImpl::disposing( const ::com::sun::star::lang::EventObject& ) throw( ::com::sun::star::uno::RuntimeException)
{
}
// XContainerListener
-//----------------------------------------------------------------------------
-
void SAL_CALL DlgEdEvtContListenerImpl::elementInserted(const ::com::sun::star::container::ContainerEvent& Event) throw(::com::sun::star::uno::RuntimeException)
{
rDlgEdObj._elementInserted( Event );
}
-//----------------------------------------------------------------------------
-
void SAL_CALL DlgEdEvtContListenerImpl::elementReplaced(const ::com::sun::star::container::ContainerEvent& Event) throw(::com::sun::star::uno::RuntimeException)
{
rDlgEdObj._elementReplaced( Event );
}
-//----------------------------------------------------------------------------
-
void SAL_CALL DlgEdEvtContListenerImpl::elementRemoved(const ::com::sun::star::container::ContainerEvent& Event) throw(::com::sun::star::uno::RuntimeException)
{
rDlgEdObj._elementRemoved( Event );
}
-//----------------------------------------------------------------------------
-
} // namespace basctl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/dlged/dlgedmod.cxx b/basctl/source/dlged/dlgedmod.cxx
index 93527d1b9761..4c83b53e3eac 100644
--- a/basctl/source/dlged/dlgedmod.cxx
+++ b/basctl/source/dlged/dlgedmod.cxx
@@ -28,31 +28,23 @@ DBG_NAME(DlgEdModel)
TYPEINIT1(DlgEdModel,SdrModel);
-//----------------------------------------------------------------------------
-
DlgEdModel::DlgEdModel()
:SdrModel(NULL, NULL)
{
DBG_CTOR(DlgEdModel,0);
}
-//----------------------------------------------------------------------------
-
DlgEdModel::~DlgEdModel()
{
DBG_DTOR(DlgEdModel,0);
}
-//----------------------------------------------------------------------------
-
SdrPage* DlgEdModel::AllocPage(bool bMasterPage)
{
DBG_CHKTHIS(DlgEdModel, 0);
return new DlgEdPage(*this, bMasterPage);
}
-//----------------------------------------------------------------------------
-
} // namespace basctl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/dlged/dlgedobj.cxx b/basctl/source/dlged/dlgedobj.cxx
index 35c41cf73072..379f6bc8956c 100644
--- a/basctl/source/dlged/dlgedobj.cxx
+++ b/basctl/source/dlged/dlgedobj.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include "dlged.hxx"
#include "dlgeddef.hxx"
#include "dlgedlist.hxx"
@@ -61,8 +60,6 @@ DlgEditor& DlgEdObj::GetDialogEditor ()
return pDlgEdForm->GetDlgEditor();
}
-//----------------------------------------------------------------------------
-
DlgEdObj::DlgEdObj()
:SdrUnoObj(OUString(), false)
,bIsListening(false)
@@ -71,8 +68,6 @@ DlgEdObj::DlgEdObj()
DBG_CTOR(DlgEdObj, NULL);
}
-//----------------------------------------------------------------------------
-
DlgEdObj::DlgEdObj(const OUString& rModelName,
const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rxSFac)
:SdrUnoObj(rModelName, rxSFac, false)
@@ -82,8 +77,6 @@ DlgEdObj::DlgEdObj(const OUString& rModelName,
DBG_CTOR(DlgEdObj, NULL);
}
-//----------------------------------------------------------------------------
-
DlgEdObj::~DlgEdObj()
{
DBG_DTOR(DlgEdObj, NULL);
@@ -92,19 +85,15 @@ DlgEdObj::~DlgEdObj()
EndListening();
}
-//----------------------------------------------------------------------------
-
void DlgEdObj::SetPage(SdrPage* _pNewPage)
{
// now set the page
SdrUnoObj::SetPage(_pNewPage);
}
-//----------------------------------------------------------------------------
-
namespace
{
- /** returns the DlgEdForm which the given DlgEdObj belongs to
+ /* returns the DlgEdForm which the given DlgEdObj belongs to
(which might in fact be the object itself)
Failure to obtain the form will be reported with an assertion in the non-product
@@ -120,8 +109,6 @@ namespace
}
}
-//----------------------------------------------------------------------------
-
uno::Reference< awt::XControl > DlgEdObj::GetControl() const
{
uno::Reference< awt::XControl > xControl;
@@ -133,8 +120,6 @@ uno::Reference< awt::XControl > DlgEdObj::GetControl() const
return xControl;
}
-//----------------------------------------------------------------------------
-
bool DlgEdObj::TransformSdrToControlCoordinates(
sal_Int32 nXIn, sal_Int32 nYIn, sal_Int32 nWidthIn, sal_Int32 nHeightIn,
sal_Int32& nXOut, sal_Int32& nYOut, sal_Int32& nWidthOut, sal_Int32& nHeightOut )
@@ -190,8 +175,6 @@ bool DlgEdObj::TransformSdrToControlCoordinates(
return true;
}
-//----------------------------------------------------------------------------
-
bool DlgEdObj::TransformSdrToFormCoordinates(
sal_Int32 nXIn, sal_Int32 nYIn, sal_Int32 nWidthIn, sal_Int32 nHeightIn,
sal_Int32& nXOut, sal_Int32& nYOut, sal_Int32& nWidthOut, sal_Int32& nHeightOut )
@@ -239,8 +222,6 @@ bool DlgEdObj::TransformSdrToFormCoordinates(
return true;
}
-//----------------------------------------------------------------------------
-
bool DlgEdObj::TransformControlToSdrCoordinates(
sal_Int32 nXIn, sal_Int32 nYIn, sal_Int32 nWidthIn, sal_Int32 nHeightIn,
sal_Int32& nXOut, sal_Int32& nYOut, sal_Int32& nWidthOut, sal_Int32& nHeightOut )
@@ -301,8 +282,6 @@ bool DlgEdObj::TransformControlToSdrCoordinates(
return true;
}
-//----------------------------------------------------------------------------
-
bool DlgEdObj::TransformFormToSdrCoordinates(
sal_Int32 nXIn, sal_Int32 nYIn, sal_Int32 nWidthIn, sal_Int32 nHeightIn,
sal_Int32& nXOut, sal_Int32& nYOut, sal_Int32& nWidthOut, sal_Int32& nHeightOut )
@@ -352,8 +331,6 @@ bool DlgEdObj::TransformFormToSdrCoordinates(
return true;
}
-//----------------------------------------------------------------------------
-
void DlgEdObj::SetRectFromProps()
{
// get control position and size from properties
@@ -378,8 +355,6 @@ void DlgEdObj::SetRectFromProps()
}
}
-//----------------------------------------------------------------------------
-
void DlgEdObj::SetPropsFromRect()
{
// get control position and size from rectangle
@@ -410,8 +385,6 @@ void DlgEdObj::SetPropsFromRect()
}
}
-//----------------------------------------------------------------------------
-
void DlgEdObj::PositionAndSizeChange( const beans::PropertyChangeEvent& evt )
{
DBG_ASSERT( pDlgEdForm, "DlgEdObj::PositionAndSizeChange: no form!" );
@@ -482,8 +455,6 @@ void DlgEdObj::PositionAndSizeChange( const beans::PropertyChangeEvent& evt )
SetRectFromProps();
}
-//----------------------------------------------------------------------------
-
void SAL_CALL DlgEdObj::NameChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw( ::com::sun::star::uno::RuntimeException)
{
// get old name
@@ -530,8 +501,6 @@ void SAL_CALL DlgEdObj::NameChange( const ::com::sun::star::beans::PropertyChan
}
}
-//----------------------------------------------------------------------------
-
sal_Int32 DlgEdObj::GetStep() const
{
// get step property
@@ -544,8 +513,6 @@ sal_Int32 DlgEdObj::GetStep() const
return nStep;
}
-//----------------------------------------------------------------------------
-
void DlgEdObj::UpdateStep()
{
sal_Int32 nCurStep = GetDlgEdForm()->GetStep();
@@ -572,8 +539,6 @@ void DlgEdObj::UpdateStep()
}
}
-//----------------------------------------------------------------------------
-
void DlgEdObj::TabIndexChange( const beans::PropertyChangeEvent& evt ) throw (RuntimeException)
{
DlgEdForm* pForm = GetDlgEdForm();
@@ -669,8 +634,6 @@ void DlgEdObj::TabIndexChange( const beans::PropertyChangeEvent& evt ) throw (Ru
}
}
-//----------------------------------------------------------------------------
-
bool DlgEdObj::supportsService( OUString const & serviceName ) const
{
bool bSupports = false;
@@ -683,8 +646,6 @@ bool DlgEdObj::supportsService( OUString const & serviceName ) const
return bSupports;
}
-//----------------------------------------------------------------------------
-
OUString DlgEdObj::GetDefaultName() const
{
sal_uInt16 nResId = 0;
@@ -790,8 +751,6 @@ OUString DlgEdObj::GetDefaultName() const
return aDefaultName;
}
-//----------------------------------------------------------------------------
-
OUString DlgEdObj::GetUniqueName() const
{
OUString aUniqueName;
@@ -811,15 +770,11 @@ OUString DlgEdObj::GetUniqueName() const
return aUniqueName;
}
-//----------------------------------------------------------------------------
-
sal_uInt32 DlgEdObj::GetObjInventor() const
{
return DlgInventor;
}
-//----------------------------------------------------------------------------
-
sal_uInt16 DlgEdObj::GetObjIdentifier() const
{
if ( supportsService( "com.sun.star.awt.UnoControlDialogModel" ))
@@ -912,8 +867,6 @@ sal_uInt16 DlgEdObj::GetObjIdentifier() const
}
}
-//----------------------------------------------------------------------------
-
void DlgEdObj::clonedFrom(const DlgEdObj* _pSource)
{
// set parent form
@@ -955,8 +908,6 @@ void DlgEdObj::clonedFrom(const DlgEdObj* _pSource)
StartListening();
}
-//----------------------------------------------------------------------------
-
DlgEdObj* DlgEdObj::Clone() const
{
DlgEdObj* pDlgEdObj = CloneHelper< DlgEdObj >();
@@ -967,8 +918,6 @@ DlgEdObj* DlgEdObj::Clone() const
return pDlgEdObj;
}
-//----------------------------------------------------------------------------
-
SdrObject* DlgEdObj::getFullDragClone() const
{
// no need to really add the clone for dragging, it's a temporary
@@ -979,8 +928,6 @@ SdrObject* DlgEdObj::getFullDragClone() const
return pObj;
}
-//----------------------------------------------------------------------------
-
void DlgEdObj::NbcMove( const Size& rSize )
{
SdrUnoObj::NbcMove( rSize );
@@ -998,8 +945,6 @@ void DlgEdObj::NbcMove( const Size& rSize )
GetDlgEdForm()->GetDlgEditor().SetDialogModelChanged(true);
}
-//----------------------------------------------------------------------------
-
void DlgEdObj::NbcResize(const Point& rRef, const Fraction& xFract, const Fraction& yFract)
{
SdrUnoObj::NbcResize( rRef, xFract, yFract );
@@ -1017,8 +962,6 @@ void DlgEdObj::NbcResize(const Point& rRef, const Fraction& xFract, const Fracti
GetDlgEdForm()->GetDlgEditor().SetDialogModelChanged(true);
}
-//----------------------------------------------------------------------------
-
bool DlgEdObj::EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd)
{
bool bResult = SdrUnoObj::EndCreate(rStat, eCmd);
@@ -1029,8 +972,6 @@ bool DlgEdObj::EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd)
return bResult;
}
-//----------------------------------------------------------------------------
-
void DlgEdObj::SetDefaults()
{
// set parent form
@@ -1114,8 +1055,6 @@ void DlgEdObj::SetDefaults()
}
}
-//----------------------------------------------------------------------------
-
void DlgEdObj::StartListening()
{
DBG_ASSERT(!isListening(), "DlgEdObj::StartListening: already listening!");
@@ -1152,8 +1091,6 @@ void DlgEdObj::StartListening()
}
}
-//----------------------------------------------------------------------------
-
void DlgEdObj::EndListening(bool bRemoveListener)
{
DBG_ASSERT(isListening(), "DlgEdObj::EndListening: not listening currently!");
@@ -1189,8 +1126,6 @@ void DlgEdObj::EndListening(bool bRemoveListener)
}
}
-//----------------------------------------------------------------------------
-
void SAL_CALL DlgEdObj::_propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw( ::com::sun::star::uno::RuntimeException)
{
if (isListening())
@@ -1237,8 +1172,6 @@ void SAL_CALL DlgEdObj::_propertyChange( const ::com::sun::star::beans::Propert
}
}
-//----------------------------------------------------------------------------
-
void SAL_CALL DlgEdObj::_elementInserted(const ::com::sun::star::container::ContainerEvent& ) throw(::com::sun::star::uno::RuntimeException)
{
if (isListening())
@@ -1248,8 +1181,6 @@ void SAL_CALL DlgEdObj::_elementInserted(const ::com::sun::star::container::Cont
}
}
-//----------------------------------------------------------------------------
-
void SAL_CALL DlgEdObj::_elementReplaced(const ::com::sun::star::container::ContainerEvent& ) throw(::com::sun::star::uno::RuntimeException)
{
if (isListening())
@@ -1259,8 +1190,6 @@ void SAL_CALL DlgEdObj::_elementReplaced(const ::com::sun::star::container::Cont
}
}
-//----------------------------------------------------------------------------
-
void SAL_CALL DlgEdObj::_elementRemoved(const ::com::sun::star::container::ContainerEvent& ) throw(::com::sun::star::uno::RuntimeException)
{
if (isListening())
@@ -1270,8 +1199,6 @@ void SAL_CALL DlgEdObj::_elementRemoved(const ::com::sun::star::container::Conta
}
}
-//----------------------------------------------------------------------------
-
void DlgEdObj::SetLayer(SdrLayerID nLayer)
{
SdrLayerID nOldLayer = GetLayer();
@@ -1285,28 +1212,20 @@ void DlgEdObj::SetLayer(SdrLayerID nLayer)
}
}
-//----------------------------------------------------------------------------
-
TYPEINIT1(DlgEdForm, DlgEdObj);
DBG_NAME(DlgEdForm);
-//----------------------------------------------------------------------------
-
DlgEdForm::DlgEdForm (DlgEditor& rDlgEditor_) :
rDlgEditor(rDlgEditor_)
{
DBG_CTOR(DlgEdForm, NULL);
}
-//----------------------------------------------------------------------------
-
DlgEdForm::~DlgEdForm()
{
DBG_DTOR(DlgEdForm, NULL);
}
-//----------------------------------------------------------------------------
-
void DlgEdForm::SetRectFromProps()
{
// get form position and size from properties
@@ -1331,8 +1250,6 @@ void DlgEdForm::SetRectFromProps()
}
}
-//----------------------------------------------------------------------------
-
void DlgEdForm::SetPropsFromRect()
{
// get form position and size from rectangle
@@ -1363,22 +1280,16 @@ void DlgEdForm::SetPropsFromRect()
}
}
-//----------------------------------------------------------------------------
-
void DlgEdForm::AddChild( DlgEdObj* pDlgEdObj )
{
pChildren.push_back( pDlgEdObj );
}
-//----------------------------------------------------------------------------
-
void DlgEdForm::RemoveChild( DlgEdObj* pDlgEdObj )
{
pChildren.erase( ::std::find( pChildren.begin() , pChildren.end() , pDlgEdObj ) );
}
-//----------------------------------------------------------------------------
-
void DlgEdForm::PositionAndSizeChange( const beans::PropertyChangeEvent& evt )
{
DlgEditor& rEditor = GetDlgEditor();
@@ -1495,8 +1406,6 @@ void DlgEdForm::PositionAndSizeChange( const beans::PropertyChangeEvent& evt )
(*aIter)->SetRectFromProps();
}
-//----------------------------------------------------------------------------
-
void DlgEdForm::UpdateStep()
{
sal_uLong nObjCount;
@@ -1513,8 +1422,6 @@ void DlgEdForm::UpdateStep()
}
}
-//----------------------------------------------------------------------------
-
void DlgEdForm::UpdateTabIndices()
{
// stop listening with all children
@@ -1577,8 +1484,6 @@ void DlgEdForm::UpdateTabIndices()
}
}
-//----------------------------------------------------------------------------
-
void DlgEdForm::UpdateTabOrder()
{
// #110559#
@@ -1599,8 +1504,6 @@ void DlgEdForm::UpdateTabOrder()
}
}
-//----------------------------------------------------------------------------
-
void DlgEdForm::UpdateGroups()
{
// #110559#
@@ -1667,16 +1570,12 @@ void DlgEdForm::UpdateGroups()
}
}
-//----------------------------------------------------------------------------
-
void DlgEdForm::UpdateTabOrderAndGroups()
{
UpdateTabOrder();
UpdateGroups();
}
-//----------------------------------------------------------------------------
-
void DlgEdForm::NbcMove( const Size& rSize )
{
SdrUnoObj::NbcMove( rSize );
@@ -1699,8 +1598,6 @@ void DlgEdForm::NbcMove( const Size& rSize )
GetDlgEditor().SetDialogModelChanged(true);
}
-//----------------------------------------------------------------------------
-
void DlgEdForm::NbcResize(const Point& rRef, const Fraction& xFract, const Fraction& yFract)
{
SdrUnoObj::NbcResize( rRef, xFract, yFract );
@@ -1723,8 +1620,6 @@ void DlgEdForm::NbcResize(const Point& rRef, const Fraction& xFract, const Fract
GetDlgEditor().SetDialogModelChanged(true);
}
-//----------------------------------------------------------------------------
-
bool DlgEdForm::EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd)
{
bool bResult = SdrUnoObj::EndCreate(rStat, eCmd);
@@ -1744,8 +1639,6 @@ bool DlgEdForm::EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd)
return bResult;
}
-//----------------------------------------------------------------------------
-
awt::DeviceInfo DlgEdForm::getDeviceInfo() const
{
awt::DeviceInfo aDeviceInfo;
@@ -1809,8 +1702,6 @@ bool DlgEdObj::MakeDataAware( const Reference< frame::XModel >& xModel )
}
return bRes;
}
-//----------------------------------------------------------------------------
-
} // namespace basctl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/dlged/dlgedpage.cxx b/basctl/source/dlged/dlgedpage.cxx
index d315227f2183..c170032928dd 100644
--- a/basctl/source/dlged/dlgedpage.cxx
+++ b/basctl/source/dlged/dlgedpage.cxx
@@ -27,29 +27,23 @@ namespace basctl
TYPEINIT1( DlgEdPage, SdrPage );
-//----------------------------------------------------------------------------
-
DlgEdPage::DlgEdPage(DlgEdModel& rModel, bool bMasterPage)
: SdrPage(rModel, bMasterPage)
, pDlgEdForm(0)
{
}
-//----------------------------------------------------------------------------
-
DlgEdPage::~DlgEdPage()
{
Clear();
}
-//----------------------------------------------------------------------------
SdrPage* DlgEdPage::Clone() const
{
return new DlgEdPage( *this );
}
-//----------------------------------------------------------------------------
SdrObject* DlgEdPage::SetObjectOrdNum(sal_uLong nOldObjNum, sal_uLong nNewObjNum)
{
@@ -62,8 +56,6 @@ SdrObject* DlgEdPage::SetObjectOrdNum(sal_uLong nOldObjNum, sal_uLong nNewObjNum
return pObj;
}
-//----------------------------------------------------------------------------
-
} // namespace basctl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/dlged/dlgedview.cxx b/basctl/source/dlged/dlgedview.cxx
index ee06f8ffda4b..c75fd1915a22 100644
--- a/basctl/source/dlged/dlgedview.cxx
+++ b/basctl/source/dlged/dlgedview.cxx
@@ -33,8 +33,6 @@ namespace basctl
TYPEINIT1( DlgEdView, SdrView );
-//----------------------------------------------------------------------------
-
DlgEdView::DlgEdView (SdrModel& rModel, OutputDevice& rOut, DlgEditor& rEditor) :
SdrView(&rModel, &rOut),
rDlgEditor(rEditor)
@@ -44,14 +42,10 @@ DlgEdView::DlgEdView (SdrModel& rModel, OutputDevice& rOut, DlgEditor& rEditor)
SetBufferedOverlayAllowed(true);
}
-//----------------------------------------------------------------------------
-
DlgEdView::~DlgEdView()
{
}
-//----------------------------------------------------------------------------
-
void DlgEdView::MarkListHasChanged()
{
SdrView::MarkListHasChanged();
@@ -61,8 +55,6 @@ void DlgEdView::MarkListHasChanged()
rDlgEditor.UpdatePropertyBrowserDelayed();
}
-//----------------------------------------------------------------------------
-
void DlgEdView::MakeVisible( const Rectangle& rRect, Window& rWin )
{
// visible area
@@ -131,8 +123,6 @@ void DlgEdView::MakeVisible( const Rectangle& rRect, Window& rWin )
}
}
-//----------------------------------------------------------------------------
-
SdrObject* impLocalHitCorrection(SdrObject* pRetval, const Point& rPnt, sal_uInt16 nTol)
{
DlgEdObj* pDlgEdObj = dynamic_cast< DlgEdObj* >(pRetval);
diff --git a/basctl/source/inc/basidesh.hxx b/basctl/source/inc/basidesh.hxx
index 9f1f0a3f462e..eca619b3a698 100644
--- a/basctl/source/inc/basidesh.hxx
+++ b/basctl/source/inc/basidesh.hxx
@@ -39,12 +39,9 @@ class StarBASIC;
namespace basctl
{
-//----------------------------------------------------------------------------
const sal_uLong BASICIDE_UI_FEATURE_SHOW_BROWSER = 0x00000001;
-//----------------------------------------------------------------------------
-
class Layout;
class ModulWindow;
class ModulWindowLayout;
diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx
index f1d0c2b2ba3a..707559c828c9 100644
--- a/basebmp/source/bitmapdevice.cxx
+++ b/basebmp/source/bitmapdevice.cxx
@@ -207,13 +207,13 @@ namespace
alphamask_accessorselector_type,
Masks> alphamask_bitmap_type;
- // -------------------------------------------------------
+
typedef AccessorTraits< raw_accessor_type > raw_accessor_traits;
typedef typename uInt32Converter<
typename raw_accessor_type::value_type>::to to_uint32_functor;
- // -------------------------------------------------------
+
typedef typename raw_accessor_traits::xor_accessor raw_xor_accessor_type;
typedef AccessorTraits<raw_xor_accessor_type> raw_xor_accessor_traits;
@@ -221,7 +221,7 @@ namespace
raw_xor_accessor_type >::type xor_accessor_type;
typedef AccessorTraits<xor_accessor_type> xor_accessor_traits;
- // -------------------------------------------------------
+
typedef typename raw_accessor_traits::template masked_accessor<
mask_rawaccessor_type,
@@ -235,7 +235,7 @@ namespace
typedef typename accessor_selector::template wrap_accessor<
raw_maskedxor_accessor_type >::type masked_xoraccessor_type;
- // -------------------------------------------------------
+
// ((iter,mask),mask) special case (e.g. for clipped
// drawMaskedColor())
@@ -250,7 +250,7 @@ namespace
composite_iterator_type,
mask_iterator_type> composite_composite_mask_iterator_type;
- // -------------------------------------------------------
+
typedef ConstantColorBlendSetterAccessorAdapter<
dest_accessor_type,
@@ -263,7 +263,7 @@ namespace
mask_iterator_type,
Masks::clipmask_polarity>::type masked_colorblend_accessor_type;
- // -------------------------------------------------------
+
typedef ConstantColorBlendSetterAccessorAdapter<
dest_accessor_type,
@@ -276,14 +276,14 @@ namespace
mask_iterator_type,
Masks::clipmask_polarity>::type masked_colorblend_generic_accessor_type;
- // -------------------------------------------------------
+
typedef JoinImageAccessorAdapter< dest_accessor_type,
mask_rawaccessor_type > joined_image_accessor_type;
typedef JoinImageAccessorAdapter< GenericColorImageAccessor,
GenericColorImageAccessor > joined_generic_image_accessor_type;
- // -------------------------------------------------------
+
dest_iterator_type maBegin;
typename accessor_traits::color_lookup maColorLookup;
@@ -304,7 +304,7 @@ namespace
raw_maskedmask_accessor_type maRawMaskedMaskAccessor;
- // -------------------------------------------------------
+
BitmapRenderer( const basegfx::B2IBox& rBounds,
const basegfx::B2IVector& rBufferSize,
@@ -1609,7 +1609,7 @@ void BitmapDevice::drawMaskedColor( Color aSrcColor,
if( isSharedBuffer(rAlphaMask) )
{
// src == dest, copy rAlphaMask beforehand
- // ---------------------------------------------------
+
const basegfx::B2ITuple aSize( aSrcRange.getWidth(),
aSrcRange.getHeight() );
@@ -1662,7 +1662,7 @@ void BitmapDevice::drawMaskedColor( Color aSrcColor,
if( isSharedBuffer(rAlphaMask) )
{
// src == dest, copy rAlphaMask beforehand
- // ---------------------------------------------------
+
const basegfx::B2ITuple aSize( aSrcRange.getWidth(),
aSrcRange.getHeight() );
@@ -2002,7 +2002,7 @@ BitmapDeviceSharedPtr createBitmapDeviceImplInner( const basegfx::B2IVector&
switch( nScanlineFormat )
{
- // ----------------------------------------------------------------------
+
// one bit formats
case FORMAT_ONE_BIT_MSB_GREY:
@@ -2028,7 +2028,7 @@ BitmapDeviceSharedPtr createBitmapDeviceImplInner( const basegfx::B2IVector&
bitsPerPixel[nScanlineFormat], rDamage );
- // ----------------------------------------------------------------------
+
// four bit formats
case FORMAT_FOUR_BIT_MSB_GREY:
@@ -2054,7 +2054,7 @@ BitmapDeviceSharedPtr createBitmapDeviceImplInner( const basegfx::B2IVector&
bitsPerPixel[nScanlineFormat], rDamage );
- // ----------------------------------------------------------------------
+
// eight bit formats
case FORMAT_EIGHT_BIT_GREY:
@@ -2069,7 +2069,7 @@ BitmapDeviceSharedPtr createBitmapDeviceImplInner( const basegfx::B2IVector&
bitsPerPixel[nScanlineFormat], rDamage );
- // ----------------------------------------------------------------------
+
// sixteen bit formats
case FORMAT_SIXTEEN_BIT_LSB_TC_MASK:
@@ -2083,7 +2083,7 @@ BitmapDeviceSharedPtr createBitmapDeviceImplInner( const basegfx::B2IVector&
pFirstScanline, pMem, pPal, rDamage );
- // ----------------------------------------------------------------------
+
// twentyfour bit formats
case FORMAT_TWENTYFOUR_BIT_TC_MASK:
return createRenderer<PixelFormatTraits_BGR24,StdMasks>(
@@ -2091,7 +2091,7 @@ BitmapDeviceSharedPtr createBitmapDeviceImplInner( const basegfx::B2IVector&
pFirstScanline, pMem, pPal, rDamage );
- // ----------------------------------------------------------------------
+
// thirtytwo bit formats
case FORMAT_THIRTYTWO_BIT_TC_MASK_BGRA:
diff --git a/basebmp/test/polytest.cxx b/basebmp/test/polytest.cxx
index d91e6efefbaf..775364127ec7 100644
--- a/basebmp/test/polytest.cxx
+++ b/basebmp/test/polytest.cxx
@@ -62,7 +62,7 @@ private:
CPPUNIT_ASSERT_MESSAGE("number of rendered pixel is not 0",
countPixel( rDevice, aCol ) == 0);
- // --------------------------------------------------
+
rDevice->clear(aBgCol);
aPoly.clear();
@@ -94,7 +94,7 @@ private:
CPPUNIT_ASSERT_MESSAGE("number of rendered pixel is not 7",
countPixel( rDevice, aCol ) == 7);
- // --------------------------------------------------
+
rDevice->clear(aBgCol);
aPoly.clear();
@@ -108,7 +108,7 @@ private:
CPPUNIT_ASSERT_MESSAGE("number of rendered pixel is not 6",
countPixel( rDevice, aCol ) == 6);
- // --------------------------------------------------
+
rDevice->clear(aBgCol);
aPoly.clear();
diff --git a/basegfx/source/tools/canvastools.cxx b/basegfx/source/tools/canvastools.cxx
index efcf16c148d0..a08a1779ffdf 100644
--- a/basegfx/source/tools/canvastools.cxx
+++ b/basegfx/source/tools/canvastools.cxx
@@ -101,8 +101,6 @@ namespace basegfx
}
}
- //---------------------------------------------------------------------------------------
-
uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > > bezierSequenceSequenceFromB2DPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly )
{
const sal_uInt32 nNumPolies( rPolyPoly.count() );
@@ -119,8 +117,6 @@ namespace basegfx
return outputSequence;
}
- //---------------------------------------------------------------------------------------
-
uno::Sequence< uno::Sequence< geometry::RealPoint2D > > pointSequenceSequenceFromB2DPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly )
{
const sal_uInt32 nNumPolies( rPolyPoly.count() );
@@ -137,8 +133,6 @@ namespace basegfx
return outputSequence;
}
- //---------------------------------------------------------------------------------------
-
uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromB2DPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice,
const ::basegfx::B2DPolygon& rPoly )
{
@@ -170,8 +164,6 @@ namespace basegfx
return xRes;
}
- //---------------------------------------------------------------------------------------
-
uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromB2DPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice,
const ::basegfx::B2DPolyPolygon& rPolyPoly )
{
@@ -204,8 +196,6 @@ namespace basegfx
return xRes;
}
- //---------------------------------------------------------------------------------------
-
::basegfx::B2DPolygon polygonFromPoint2DSequence( const uno::Sequence< geometry::RealPoint2D >& points )
{
const sal_Int32 nCurrSize( points.getLength() );
@@ -218,8 +208,6 @@ namespace basegfx
return aPoly;
}
- //---------------------------------------------------------------------------------------
-
::basegfx::B2DPolyPolygon polyPolygonFromPoint2DSequenceSequence( const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points )
{
::basegfx::B2DPolyPolygon aRes;
@@ -232,8 +220,6 @@ namespace basegfx
return aRes;
}
- //---------------------------------------------------------------------------------------
-
::basegfx::B2DPolygon polygonFromBezier2DSequence( const uno::Sequence< geometry::RealBezierSegment2D >& curves )
{
const sal_Int32 nSize(curves.getLength());
@@ -266,8 +252,6 @@ namespace basegfx
return aRetval;
}
- //---------------------------------------------------------------------------------------
-
::basegfx::B2DPolyPolygon polyPolygonFromBezier2DSequenceSequence( const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& curves )
{
::basegfx::B2DPolyPolygon aRes;
@@ -280,8 +264,6 @@ namespace basegfx
return aRes;
}
- //---------------------------------------------------------------------------------------
-
::basegfx::B2DPolyPolygon b2DPolyPolygonFromXPolyPolygon2D( const uno::Reference< rendering::XPolyPolygon2D >& xPoly )
{
::basegfx::unotools::UnoPolyPolygon* pPolyImpl =
@@ -336,8 +318,6 @@ namespace basegfx
}
}
- //---------------------------------------------------------------------------------------
-
::basegfx::B2DHomMatrix& homMatrixFromAffineMatrix( ::basegfx::B2DHomMatrix& output,
const geometry::AffineMatrix2D& input )
{
@@ -411,8 +391,6 @@ namespace basegfx
return output;
}
- //---------------------------------------------------------------------------------------
-
::basegfx::B2DHomMatrix& homMatrixFromMatrix( ::basegfx::B2DHomMatrix& output,
const geometry::Matrix2D& input )
{
@@ -427,8 +405,6 @@ namespace basegfx
return output;
}
- //---------------------------------------------------------------------------------------
-
geometry::RealSize2D size2DFromB2DSize( const ::basegfx::B2DVector& rVec )
{
return geometry::RealSize2D( rVec.getX(),
diff --git a/basegfx/source/workbench/bezierclip.cxx b/basegfx/source/workbench/bezierclip.cxx
index 7d99dfafc032..2ba7302c7ca5 100644
--- a/basegfx/source/workbench/bezierclip.cxx
+++ b/basegfx/source/workbench/bezierclip.cxx
@@ -45,7 +45,7 @@
-// -----------------------------------------------------------------------------
+
/* Implementation of the so-called 'Fat-Line Bezier Clipping Algorithm' by Sederberg et al.
*
@@ -54,7 +54,7 @@
* (9), 1990, pp. 538--549
*/
-// -----------------------------------------------------------------------------
+
/* Misc helper
* ===========
@@ -74,20 +74,20 @@ int fallFac( int n, int k )
return res;
}
-// -----------------------------------------------------------------------------
+
int fac( int n )
{
return fallFac(n, n);
}
-// -----------------------------------------------------------------------------
+
/* Bezier fat line clipping part
* =============================
*/
-// -----------------------------------------------------------------------------
+
void Impl_calcFatLine( FatLine& line, const Bezier& c )
{
@@ -340,7 +340,7 @@ bool Impl_calcSafeParams_clip( double& t1,
#endif
}
-// -----------------------------------------------------------------------------
+
void Impl_deCasteljauAt( Bezier& part1,
Bezier& part2,
@@ -389,7 +389,7 @@ void Impl_deCasteljauAt( Bezier& part1,
}
}
-// -----------------------------------------------------------------------------
+
void printCurvesWithSafeRange( const Bezier& c1, const Bezier& c2, double t1_c1, double t2_c1,
const Bezier& c2_part, const FatLine& bounds_c2 )
@@ -473,7 +473,7 @@ void printCurvesWithSafeRange( const Bezier& c1, const Bezier& c2, double t1_c1,
offset += 1;
}
-// -----------------------------------------------------------------------------
+
void printResultWithFinalCurves( const Bezier& c1, const Bezier& c1_part,
const Bezier& c2, const Bezier& c2_part,
@@ -548,7 +548,7 @@ void printResultWithFinalCurves( const Bezier& c1, const Bezier& c1_part,
offset += 1;
}
-// -----------------------------------------------------------------------------
+
/** determine parameter ranges [0,t1) and (t2,1] on c1, where c1 is guaranteed to lie outside c2.
Returns false, if the two curves don't even intersect.
@@ -628,13 +628,13 @@ bool Impl_calcClipRange( double& t1,
return false;
}
-// -----------------------------------------------------------------------------
+
/* Tangent intersection part
* =========================
*/
-// -----------------------------------------------------------------------------
+
void Impl_calcFocus( Bezier& res, const Bezier& c )
{
@@ -761,7 +761,7 @@ void Impl_calcFocus( Bezier& res, const Bezier& c )
res.p3.y = c.p3.y + 3*fRes[1]*(c.p3.x - c.p2.x);
}
-// -----------------------------------------------------------------------------
+
bool Impl_calcSafeParams_focus( double& t1,
double& t2,
@@ -900,7 +900,7 @@ bool Impl_calcSafeParams_focus( double& t1,
#endif
}
-// -----------------------------------------------------------------------------
+
/** Calc all values t_i on c1, for which safeRanges functor does not
give a safe range on c1 and c2.
@@ -1144,7 +1144,7 @@ template <class Functor> void Impl_applySafeRanges_rec( ::std::back_insert_itera
}
}
-// -----------------------------------------------------------------------------
+
struct ClipBezierFunctor
{
@@ -1159,7 +1159,7 @@ struct ClipBezierFunctor
}
};
-// -----------------------------------------------------------------------------
+
struct BezierTangencyFunctor
{
@@ -1187,7 +1187,7 @@ struct BezierTangencyFunctor
}
};
-// -----------------------------------------------------------------------------
+
/** Perform a bezier clip (curve against curve)
diff --git a/basegfx/source/workbench/convexhull.cxx b/basegfx/source/workbench/convexhull.cxx
index 579413e16ea1..aba5c1a94b69 100644
--- a/basegfx/source/workbench/convexhull.cxx
+++ b/basegfx/source/workbench/convexhull.cxx
@@ -23,7 +23,7 @@
#include "bezierclip.hxx"
-// -----------------------------------------------------------------------------
+
/* Implements the theta function from Sedgewick: Algorithms in XXX, chapter 24 */
template <class PointType> double theta( const PointType& p1, const PointType& p2 )
diff --git a/basegfx/test/basegfx1d.cxx b/basegfx/test/basegfx1d.cxx
index 5b0b24bf4d4c..8d190cb1d6c1 100644
--- a/basegfx/test/basegfx1d.cxx
+++ b/basegfx/test/basegfx1d.cxx
@@ -55,7 +55,7 @@ public:
CPPUNIT_TEST_SUITE_END();
}; // class b1drange
-// -----------------------------------------------------------------------------
+
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx1d::b1drange);
} // namespace basegfx1d
diff --git a/basegfx/test/basegfx2d.cxx b/basegfx/test/basegfx2d.cxx
index afa065c0ac57..ba59c5f01e99 100644
--- a/basegfx/test/basegfx2d.cxx
+++ b/basegfx/test/basegfx2d.cxx
@@ -1285,7 +1285,7 @@ public:
CPPUNIT_TEST_SUITE_END();
}; // class b2dvector
-// -----------------------------------------------------------------------------
+
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dsvgdimpex);
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2drange);
@@ -1304,7 +1304,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::bcolor);
} // namespace basegfx2d
-// -----------------------------------------------------------------------------
+
// this macro creates an empty function, which will called by the RegisterAllFunctions()
// to let the user the possibility to also register some functions by hand.
diff --git a/basegfx/test/basegfx3d.cxx b/basegfx/test/basegfx3d.cxx
index 96f0b5748ca4..7665cfcd2986 100644
--- a/basegfx/test/basegfx3d.cxx
+++ b/basegfx/test/basegfx3d.cxx
@@ -165,7 +165,7 @@ public:
CPPUNIT_TEST_SUITE_END();
}; // class b3dvector
-// -----------------------------------------------------------------------------
+
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dhommatrix);
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dpoint);
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3drange);
@@ -174,7 +174,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dvector);
} // namespace basegfx3d
-// -----------------------------------------------------------------------------
+
// this macro creates an empty function, which will called by the RegisterAllFunctions()
// to let the user the possibility to also register some functions by hand.
diff --git a/basegfx/test/basegfxtools.cxx b/basegfx/test/basegfxtools.cxx
index 7ff301755902..01ae9634f4ad 100644
--- a/basegfx/test/basegfxtools.cxx
+++ b/basegfx/test/basegfxtools.cxx
@@ -93,7 +93,7 @@ public:
CPPUNIT_TEST_SUITE_END();
};
-// -----------------------------------------------------------------------------
+
CPPUNIT_TEST_SUITE_REGISTRATION(basegfxtools::KeyStopLerpTest);
} // namespace basegfxtools
diff --git a/basegfx/test/boxclipper.cxx b/basegfx/test/boxclipper.cxx
index 9b8bf10254f4..f96c7eb0d52f 100644
--- a/basegfx/test/boxclipper.cxx
+++ b/basegfx/test/boxclipper.cxx
@@ -428,7 +428,7 @@ public:
CPPUNIT_TEST_SUITE_END();
};
-// -----------------------------------------------------------------------------
+
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::boxclipper);
} // namespace basegfx2d
diff --git a/basegfx/test/clipstate.cxx b/basegfx/test/clipstate.cxx
index dc925409fea9..2f094e5bac4c 100644
--- a/basegfx/test/clipstate.cxx
+++ b/basegfx/test/clipstate.cxx
@@ -157,7 +157,7 @@ public:
CPPUNIT_TEST_SUITE_END();
};
-// -----------------------------------------------------------------------------
+
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::clipstate);
} // namespace basegfx2d
diff --git a/basegfx/test/genericclipper.cxx b/basegfx/test/genericclipper.cxx
index b60b067b45f0..66c503a4383c 100644
--- a/basegfx/test/genericclipper.cxx
+++ b/basegfx/test/genericclipper.cxx
@@ -191,7 +191,7 @@ public:
CPPUNIT_TEST_SUITE_END();
};
-// -----------------------------------------------------------------------------
+
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::genericclipper);
} // namespace basegfx2d
diff --git a/basic/inc/sbstdobj.hxx b/basic/inc/sbstdobj.hxx
index 9bb855e81ae6..ad45eaa76eab 100644
--- a/basic/inc/sbstdobj.hxx
+++ b/basic/inc/sbstdobj.hxx
@@ -25,9 +25,7 @@
#include <basic/sbxfac.hxx>
#include <basic/basicdllapi.h>
-//--------------------
// class SbStdFactory
-//--------------------
class BASIC_DLLPUBLIC SbStdFactory : public SbxFactory
{
public:
@@ -36,9 +34,7 @@ public:
virtual SbxObject* CreateObject( const OUString& rClassName );
};
-//--------------------
// class SbStdPicture
-//--------------------
class BASIC_DLLPUBLIC SbStdPicture : public SbxObject
{
protected:
@@ -62,9 +58,7 @@ public:
void SetGraphic( const Graphic& rGrf ) { aGraphic = rGrf; }
};
-//-----------------
// class SbStdFont
-//-----------------
class BASIC_DLLPUBLIC SbStdFont : public SbxObject
{
protected:
@@ -106,9 +100,7 @@ public:
OUString GetFontName() const { return aName; }
};
-//----------------------
// class SbStdClipboard
-//----------------------
class BASIC_DLLPUBLIC SbStdClipboard : public SbxObject
{
protected:
diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx
index 4aece49a21c5..0e483d698177 100644
--- a/basic/source/basmgr/basicmanagerrepository.cxx
+++ b/basic/source/basmgr/basicmanagerrepository.cxx
@@ -223,19 +223,19 @@ namespace basic
//====================================================================
//= ImplRepository
//====================================================================
- //--------------------------------------------------------------------
+
ImplRepository::ImplRepository()
{
}
- //--------------------------------------------------------------------
+
ImplRepository& ImplRepository::Instance()
{
return *rtl_Instance< ImplRepository, CreateImplRepository, ::osl::MutexGuard, ::osl::GetGlobalMutex >::
create( CreateImplRepository(), ::osl::GetGlobalMutex() );
}
- //--------------------------------------------------------------------
+
BasicManager* ImplRepository::getDocumentBasicManager( const Reference< XModel >& _rxDocumentModel )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -255,7 +255,7 @@ namespace basic
return pBasicManager;
}
- //--------------------------------------------------------------------
+
BasicManager* ImplRepository::getApplicationBasicManager( bool _bCreate )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -267,7 +267,7 @@ namespace basic
return pAppManager;
}
- //--------------------------------------------------------------------
+
void ImplRepository::setApplicationBasicManager( BasicManager* _pBasicManager )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -278,7 +278,7 @@ namespace basic
GetSbData()->pAppBasMgr = _pBasicManager;
}
- //--------------------------------------------------------------------
+
BasicManager* ImplRepository::impl_createApplicationBasicManager()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -337,14 +337,14 @@ namespace basic
return pBasicManager;
}
- //--------------------------------------------------------------------
+
void ImplRepository::registerCreationListener( BasicManagerCreationListener& _rListener )
{
::osl::MutexGuard aGuard( m_aMutex );
m_aCreationListeners.push_back( &_rListener );
}
- //--------------------------------------------------------------------
+
void ImplRepository::revokeCreationListener( BasicManagerCreationListener& _rListener )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -356,7 +356,7 @@ namespace basic
}
}
- //--------------------------------------------------------------------
+
void ImplRepository::impl_notifyCreationListeners( const Reference< XModel >& _rxDocumentModel, BasicManager& _rManager )
{
for ( CreationListeners::const_iterator loop = m_aCreationListeners.begin();
@@ -368,7 +368,7 @@ namespace basic
}
}
- //--------------------------------------------------------------------
+
StarBASIC* ImplRepository::impl_getDefaultAppBasicLibrary()
{
BasicManager* pAppManager = getApplicationBasicManager( true );
@@ -378,7 +378,7 @@ namespace basic
return pAppBasic;
}
- //--------------------------------------------------------------------
+
BasicManagerPointer& ImplRepository::impl_getLocationForModel( const Reference< XModel >& _rxDocumentModel )
{
DBG_ASSERT( _rxDocumentModel.is(), "ImplRepository::impl_getLocationForModel: invalid model!" );
@@ -387,7 +387,7 @@ namespace basic
return location;
}
- //--------------------------------------------------------------------
+
void ImplRepository::impl_initDocLibraryContainers_nothrow( const Reference< XPersistentLibraryContainer >& _rxBasicLibraries, const Reference< XPersistentLibraryContainer >& _rxDialogLibraries )
{
OSL_PRECOND( _rxBasicLibraries.is() && _rxDialogLibraries.is(),
@@ -413,7 +413,7 @@ namespace basic
}
}
- //--------------------------------------------------------------------
+
void ImplRepository::impl_createManagerForModel( BasicManagerPointer& _out_rpBasicManager, const Reference< XModel >& _rxDocumentModel )
{
StarBASIC* pAppBasic = impl_getDefaultAppBasicLibrary();
@@ -502,7 +502,7 @@ namespace basic
}
- //--------------------------------------------------------------------
+
bool ImplRepository::impl_getDocumentStorage_nothrow( const Reference< XModel >& _rxDocument, Reference< XStorage >& _out_rStorage )
{
_out_rStorage.clear();
@@ -519,7 +519,7 @@ namespace basic
return true;
}
- //--------------------------------------------------------------------
+
bool ImplRepository::impl_getDocumentLibraryContainers_nothrow( const Reference< XModel >& _rxDocument,
Reference< XPersistentLibraryContainer >& _out_rxBasicLibraries, Reference< XPersistentLibraryContainer >& _out_rxDialogLibraries )
{
@@ -538,7 +538,7 @@ namespace basic
return _out_rxBasicLibraries.is() && _out_rxDialogLibraries.is();
}
- //--------------------------------------------------------------------
+
void ImplRepository::impl_removeFromRepository( BasicManagerStore::iterator _pos )
{
OSL_PRECOND( _pos != m_aStore.end(), "ImplRepository::impl_removeFromRepository: invalid position!" );
@@ -553,7 +553,7 @@ namespace basic
BasicManagerCleaner::deleteBasicManager( pManager );
}
- //--------------------------------------------------------------------
+
void ImplRepository::_disposing( const ::com::sun::star::lang::EventObject& _rSource )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -581,7 +581,7 @@ namespace basic
OSL_ENSURE( bFound, "ImplRepository::_disposing: where does this come from?" );
}
- //--------------------------------------------------------------------
+
void ImplRepository::Notify( SfxBroadcaster& _rBC, const SfxHint& _rHint )
{
const SfxSimpleHint* pSimpleHint = dynamic_cast< const SfxSimpleHint* >( &_rHint );
@@ -612,31 +612,31 @@ namespace basic
//====================================================================
//= BasicManagerRepository
//====================================================================
- //--------------------------------------------------------------------
+
BasicManager* BasicManagerRepository::getDocumentBasicManager( const Reference< XModel >& _rxDocumentModel )
{
return ImplRepository::Instance().getDocumentBasicManager( _rxDocumentModel );
}
- //--------------------------------------------------------------------
+
BasicManager* BasicManagerRepository::getApplicationBasicManager( bool _bCreate )
{
return ImplRepository::Instance().getApplicationBasicManager( _bCreate );
}
- //--------------------------------------------------------------------
+
void BasicManagerRepository::resetApplicationBasicManager()
{
return ImplRepository::Instance().setApplicationBasicManager( NULL );
}
- //--------------------------------------------------------------------
+
void BasicManagerRepository::registerCreationListener( BasicManagerCreationListener& _rListener )
{
ImplRepository::Instance().registerCreationListener( _rListener );
}
- //--------------------------------------------------------------------
+
void BasicManagerRepository::revokeCreationListener( BasicManagerCreationListener& _rListener )
{
ImplRepository::Instance().revokeCreationListener( _rListener );
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index 620deb98e740..c7c4bd48c189 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -104,7 +104,7 @@ DBG_NAME( BasicManager );
StreamMode eStreamReadMode = STREAM_READ | STREAM_NOCREATE | STREAM_SHARE_DENYALL;
StreamMode eStorageReadMode = STREAM_READ | STREAM_SHARE_DENYWRITE;
-//----------------------------------------------------------------------------
+
// BasicManager impl data
struct BasicManagerImpl
{
@@ -242,7 +242,7 @@ void BasMgrContainerListenerImpl::addLibraryModulesImpl( BasicManager* pMgr,
// XEventListener
-//----------------------------------------------------------------------------
+
void SAL_CALL BasMgrContainerListenerImpl::disposing( const lang::EventObject& Source )
throw( uno::RuntimeException )
@@ -251,7 +251,7 @@ void SAL_CALL BasMgrContainerListenerImpl::disposing( const lang::EventObject& S
}
// XContainerListener
-//----------------------------------------------------------------------------
+
void SAL_CALL BasMgrContainerListenerImpl::elementInserted( const container::ContainerEvent& Event )
throw( uno::RuntimeException )
@@ -298,7 +298,7 @@ void SAL_CALL BasMgrContainerListenerImpl::elementInserted( const container::Con
}
}
-//----------------------------------------------------------------------------
+
void SAL_CALL BasMgrContainerListenerImpl::elementReplaced( const container::ContainerEvent& Event )
throw( uno::RuntimeException )
@@ -328,7 +328,7 @@ void SAL_CALL BasMgrContainerListenerImpl::elementReplaced( const container::Con
}
}
-//----------------------------------------------------------------------------
+
void SAL_CALL BasMgrContainerListenerImpl::elementRemoved( const container::ContainerEvent& Event )
throw( uno::RuntimeException )
diff --git a/basic/source/basmgr/vbahelper.cxx b/basic/source/basmgr/vbahelper.cxx
index 8f870bb143d4..d9dfaa9a9dc7 100644
--- a/basic/source/basmgr/vbahelper.cxx
+++ b/basic/source/basmgr/vbahelper.cxx
@@ -48,7 +48,7 @@ uno::Reference< frame::XModuleManager2 > lclCreateModuleManager()
return frame::ModuleManager::create(xContext);
}
-// ----------------------------------------------------------------------------
+
/** Implementation of an enumeration of all open documents of the same type.
*/
@@ -98,7 +98,7 @@ uno::Any SAL_CALL DocumentsEnumeration::nextElement() throw (container::NoSuchEl
return uno::Any( *maModelIt++ );
}
-// ----------------------------------------------------------------------------
+
/** Locks or unlocks the controllers of the specified document model.
*/
@@ -116,7 +116,7 @@ void lclLockControllers( const uno::Reference< frame::XModel >& rxModel, sal_Boo
}
}
-// ----------------------------------------------------------------------------
+
/** Enables or disables the container windows of all controllers of the
specified document model.
@@ -147,7 +147,7 @@ void lclEnableContainerWindows( const uno::Reference< frame::XModel >& rxModel,
}
}
-// ----------------------------------------------------------------------------
+
typedef void (*ModifyDocumentFunc)( const uno::Reference< frame::XModel >&, sal_Bool );
@@ -168,7 +168,7 @@ void lclIterateDocuments( ModifyDocumentFunc pModifyDocumentFunc, const uno::Ref
}
}
-// ----------------------------------------------------------------------------
+
struct CurrDirPool
{
diff --git a/basic/source/classes/propacc.cxx b/basic/source/classes/propacc.cxx
index f7414782141b..9f00c8d6dbde 100644
--- a/basic/source/classes/propacc.cxx
+++ b/basic/source/classes/propacc.cxx
@@ -57,20 +57,20 @@ extern "C" int SAL_CALL SbCompare_UString_Property_Impl( const void *arg1, const
return pArg1->compareTo( pArg2->Name );
}
-//----------------------------------------------------------------------------
+
SbPropertyValues::SbPropertyValues()
{
}
-//----------------------------------------------------------------------------
+
SbPropertyValues::~SbPropertyValues()
{
m_xInfo.clear();
}
-//----------------------------------------------------------------------------
+
Reference< XPropertySetInfo > SbPropertyValues::getPropertySetInfo(void) throw( RuntimeException )
{
@@ -83,7 +83,7 @@ Reference< XPropertySetInfo > SbPropertyValues::getPropertySetInfo(void) throw(
return m_xInfo;
}
-//-------------------------------------------------------------------------
+
size_t SbPropertyValues::GetIndex_Impl( const OUString &rPropName ) const
{
@@ -99,7 +99,7 @@ size_t SbPropertyValues::GetIndex_Impl( const OUString &rPropName ) const
return it - m_aPropVals.begin();
}
-//----------------------------------------------------------------------------
+
void SbPropertyValues::setPropertyValue(
const OUString& aPropertyName,
@@ -115,7 +115,7 @@ void SbPropertyValues::setPropertyValue(
rPropVal.Value = aValue;
}
-//----------------------------------------------------------------------------
+
Any SbPropertyValues::getPropertyValue(
const OUString& aPropertyName)
@@ -127,7 +127,7 @@ Any SbPropertyValues::getPropertyValue(
return m_aPropVals[nIndex].Value;
}
-//----------------------------------------------------------------------------
+
void SbPropertyValues::addPropertyChangeListener(
const OUString& aPropertyName,
@@ -137,7 +137,7 @@ void SbPropertyValues::addPropertyChangeListener(
(void)aPropertyName;
}
-//----------------------------------------------------------------------------
+
void SbPropertyValues::removePropertyChangeListener(
const OUString& aPropertyName,
@@ -147,7 +147,7 @@ void SbPropertyValues::removePropertyChangeListener(
(void)aPropertyName;
}
-//----------------------------------------------------------------------------
+
void SbPropertyValues::addVetoableChangeListener(
const OUString& aPropertyName,
@@ -157,7 +157,7 @@ void SbPropertyValues::addVetoableChangeListener(
(void)aPropertyName;
}
-//----------------------------------------------------------------------------
+
void SbPropertyValues::removeVetoableChangeListener(
const OUString& aPropertyName,
@@ -167,7 +167,7 @@ void SbPropertyValues::removeVetoableChangeListener(
(void)aPropertyName;
}
-//----------------------------------------------------------------------------
+
Sequence< PropertyValue > SbPropertyValues::getPropertyValues(void) throw (::com::sun::star::uno::RuntimeException)
{
@@ -177,7 +177,7 @@ Sequence< PropertyValue > SbPropertyValues::getPropertyValues(void) throw (::com
return aRet;
}
-//----------------------------------------------------------------------------
+
void SbPropertyValues::setPropertyValues(const Sequence< PropertyValue >& rPropertyValues )
throw (::com::sun::star::beans::UnknownPropertyException,
@@ -234,7 +234,7 @@ sal_Bool PropertySetInfoImpl::hasPropertyByName(const OUString& Name) throw( Run
}
-//----------------------------------------------------------------------------
+
SbPropertySetInfo::SbPropertySetInfo( const SbPropertyValueArr_Impl &rPropVals )
{
@@ -250,13 +250,13 @@ SbPropertySetInfo::SbPropertySetInfo( const SbPropertyValueArr_Impl &rPropVals )
}
}
-//----------------------------------------------------------------------------
+
SbPropertySetInfo::~SbPropertySetInfo()
{
}
-//-------------------------------------------------------------------------
+
Sequence< Property > SbPropertySetInfo::getProperties(void) throw( RuntimeException )
{
@@ -275,7 +275,7 @@ sal_Bool SbPropertySetInfo::hasPropertyByName(const OUString& Name)
return aImpl.hasPropertyByName( Name );
}
-//----------------------------------------------------------------------------
+
void RTL_Impl_CreatePropertySet( StarBASIC* pBasic, SbxArray& rPar, sal_Bool bWrite )
{
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx
index cbbe3ca50ea8..5d9a6f858f4b 100644
--- a/basic/source/classes/sb.cxx
+++ b/basic/source/classes/sb.cxx
@@ -91,7 +91,7 @@ private:
bool mbDisposed;
};
-// ----------------------------------------------------------------------------
+
DocBasicItem::DocBasicItem( StarBASIC& rDocBasic ) :
mrDocBasic( rDocBasic ),
@@ -151,7 +151,7 @@ void SAL_CALL DocBasicItem::disposing( const lang::EventObject& /*rEvent*/ ) thr
stopListening();
}
-// ----------------------------------------------------------------------------
+
namespace {
@@ -1614,7 +1614,7 @@ void StarBASIC::SetErrorData( SbError nCode, sal_uInt16 nLine,
aGlobals.nCol2 = nCol2;
}
-//----------------------------------------------------------------
+
// help class for access to string SubResource of a Resource.
// Source: sfx2\source\doc\docfile.cxx (TLX)
struct BasicStringList_Impl : private Resource
@@ -1629,7 +1629,7 @@ struct BasicStringList_Impl : private Resource
sal_Bool IsErrorTextAvailable( void )
{ return IsAvailableRes(aResId.SetRT(RSC_STRING)); }
};
-//----------------------------------------------------------------
+
void StarBASIC::MakeErrorText( SbError nId, const OUString& aMsg )
{
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 88574041a4bd..8e8c2aac9af3 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -4053,7 +4053,7 @@ Reference< XInterface > createAllListenerAdapter
}
-//--------------------------------------------------------------------------------------------------
+
// InvocationToAllListenerMapper
InvocationToAllListenerMapper::InvocationToAllListenerMapper
( const Reference< XIdlClass >& ListenerType, const Reference< XAllListener >& AllListener, const Any& Helper )
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 9f74c798efb2..04ee05998844 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -4525,7 +4525,7 @@ RTLFUNC(SavePicture)
}
-//-----------------------------------------------------------------------------------------
+
RTLFUNC(MsgBox)
{
diff --git a/basic/source/runtime/stdobj1.cxx b/basic/source/runtime/stdobj1.cxx
index 629470f3bc01..c0dc04f73b24 100644
--- a/basic/source/runtime/stdobj1.cxx
+++ b/basic/source/runtime/stdobj1.cxx
@@ -40,7 +40,7 @@
#define METH_SETDATA 24
#define METH_SETTEXT 25
-//------------------------------------------------------------------------------
+
SbStdFactory::SbStdFactory()
{
}
@@ -55,7 +55,7 @@ SbxObject* SbStdFactory::CreateObject( const OUString& rClassName )
return NULL;
}
-//------------------------------------------------------------------------------
+
@@ -171,7 +171,7 @@ void SbStdPicture::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
}
}
-//-----------------------------------------------------------------------------
+
void SbStdFont::PropBold( SbxVariable* pVar, SbxArray*, sal_Bool bWrite )
{
@@ -300,7 +300,7 @@ void SbStdFont::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
}
-//-----------------------------------------------------------------------------
+
void SbStdClipboard::MethClear( SbxVariable*, SbxArray* pPar_, sal_Bool )
diff --git a/basic/source/uno/sbservices.cxx b/basic/source/uno/sbservices.cxx
index 2331a23f6e25..6c3478b8435c 100644
--- a/basic/source/uno/sbservices.cxx
+++ b/basic/source/uno/sbservices.cxx
@@ -24,7 +24,7 @@ namespace basic
{
//........................................................................
- //--------------------------------------------------------------------
+
extern void createRegistryInfo_SfxDialogLibraryContainer();
extern void createRegistryInfo_SfxScriptLibraryContainer();
diff --git a/bridges/source/cpp_uno/gcc3_aix_powerpc/except.cxx b/bridges/source/cpp_uno/gcc3_aix_powerpc/except.cxx
index d3e713956a1e..a1d834d5c4a1 100644
--- a/bridges/source/cpp_uno/gcc3_aix_powerpc/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_aix_powerpc/except.cxx
@@ -105,18 +105,18 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -194,7 +194,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_linux_alpha/except.cxx b/bridges/source/cpp_uno/gcc3_linux_alpha/except.cxx
index 7696f6184df7..6c78eb18be25 100644
--- a/bridges/source/cpp_uno/gcc3_linux_alpha/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_alpha/except.cxx
@@ -105,18 +105,18 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -195,7 +195,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_linux_arm/except.cxx b/bridges/source/cpp_uno/gcc3_linux_arm/except.cxx
index c5e837effe85..1848d3f8fbd2 100644
--- a/bridges/source/cpp_uno/gcc3_linux_arm/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_arm/except.cxx
@@ -108,14 +108,14 @@ namespace CPPU_CURRENT_NAMESPACE
type_info * getRTTI(typelib_CompoundTypeDescription *) SAL_THROW(());
};
- //____________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
#ifndef ANDROID
: m_hApp( dlopen( 0, RTLD_LAZY ) )
#endif
{
}
- //____________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
#ifndef ANDROID
@@ -123,7 +123,7 @@ namespace CPPU_CURRENT_NAMESPACE
#endif
}
- //____________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -220,7 +220,7 @@ namespace CPPU_CURRENT_NAMESPACE
return rtti;
}
- //------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx b/bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx
index 2e4e149cb6f0..89b92a64399a 100644
--- a/bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx
@@ -106,18 +106,18 @@ namespace CPPU_CURRENT_NAMESPACE
type_info * getRTTI(typelib_CompoundTypeDescription *) SAL_THROW(());
};
- //____________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
- //____________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
- //____________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -196,7 +196,7 @@ namespace CPPU_CURRENT_NAMESPACE
return rtti;
}
- //------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_linux_ia64/except.cxx b/bridges/source/cpp_uno/gcc3_linux_ia64/except.cxx
index 7696f6184df7..6c78eb18be25 100644
--- a/bridges/source/cpp_uno/gcc3_linux_ia64/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_ia64/except.cxx
@@ -105,18 +105,18 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -195,7 +195,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx b/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx
index f9397a918b92..f5aeeec57462 100644
--- a/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx
@@ -102,7 +102,7 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
#if defined(FREEBSD) && __FreeBSD_version < 702104
: m_hApp( dlopen( 0, RTLD_NOW | RTLD_GLOBAL ) )
@@ -111,13 +111,13 @@ RTTI::RTTI() SAL_THROW(())
#endif
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -200,7 +200,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
extern "C" {
static void _GLIBCXX_CDTOR_CALLABI deleteException( void * pExc )
{
diff --git a/bridges/source/cpp_uno/gcc3_linux_m68k/except.cxx b/bridges/source/cpp_uno/gcc3_linux_m68k/except.cxx
index 2e4e149cb6f0..89b92a64399a 100644
--- a/bridges/source/cpp_uno/gcc3_linux_m68k/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_m68k/except.cxx
@@ -106,18 +106,18 @@ namespace CPPU_CURRENT_NAMESPACE
type_info * getRTTI(typelib_CompoundTypeDescription *) SAL_THROW(());
};
- //____________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
- //____________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
- //____________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -196,7 +196,7 @@ namespace CPPU_CURRENT_NAMESPACE
return rtti;
}
- //------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_linux_mips/except.cxx b/bridges/source/cpp_uno/gcc3_linux_mips/except.cxx
index bbc9b62da626..4c64443bb34c 100644
--- a/bridges/source/cpp_uno/gcc3_linux_mips/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_mips/except.cxx
@@ -103,18 +103,18 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -193,7 +193,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx b/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx
index 7696f6184df7..6c78eb18be25 100644
--- a/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx
@@ -105,18 +105,18 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -195,7 +195,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx b/bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx
index 7696f6184df7..6c78eb18be25 100644
--- a/bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx
@@ -105,18 +105,18 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -195,7 +195,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_linux_s390/except.cxx b/bridges/source/cpp_uno/gcc3_linux_s390/except.cxx
index 7696f6184df7..6c78eb18be25 100644
--- a/bridges/source/cpp_uno/gcc3_linux_s390/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_s390/except.cxx
@@ -105,18 +105,18 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -195,7 +195,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_linux_s390x/except.cxx b/bridges/source/cpp_uno/gcc3_linux_s390x/except.cxx
index 7696f6184df7..6c78eb18be25 100644
--- a/bridges/source/cpp_uno/gcc3_linux_s390x/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_s390x/except.cxx
@@ -105,18 +105,18 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -195,7 +195,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
index 334297b4fe74..b014fe1726c9 100644
--- a/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno.cxx
@@ -425,7 +425,7 @@ void * pRegReturn = &nRegReturn;
}
}
-//__________________________________________________________________________________________________
+
int const codeSnippetSize = 56;
unsigned char * codeSnippet(
diff --git a/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx b/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx
index e78c2407c443..b815b54a1607 100644
--- a/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx
@@ -104,18 +104,18 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -194,7 +194,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
index 2e1536899abd..68df95c5f519 100644
--- a/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
@@ -104,7 +104,7 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
#if defined(FREEBSD) && __FreeBSD_version < 702104
: m_hApp( dlopen( 0, RTLD_NOW | RTLD_GLOBAL ) )
@@ -113,13 +113,13 @@ RTTI::RTTI() SAL_THROW(())
#endif
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -202,7 +202,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
extern "C" {
static void _GLIBCXX_CDTOR_CALLABI deleteException( void * pExc )
{
diff --git a/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx b/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx
index 4a551895574b..965c53c0c3a8 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx
@@ -176,18 +176,18 @@ public:
std::type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
std::type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
std::type_info * rtti;
@@ -271,7 +271,7 @@ std::type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SA
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx b/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx
index 80ccc1eb10fb..6d75ba34a1a0 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx
@@ -104,18 +104,18 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -194,7 +194,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx
index 4a551895574b..965c53c0c3a8 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx
@@ -176,18 +176,18 @@ public:
std::type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
std::type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
std::type_info * rtti;
@@ -271,7 +271,7 @@ std::type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SA
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_solaris_intel/except.cxx b/bridges/source/cpp_uno/gcc3_solaris_intel/except.cxx
index 9c0c937af520..69afe915d07f 100644
--- a/bridges/source/cpp_uno/gcc3_solaris_intel/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_solaris_intel/except.cxx
@@ -106,18 +106,18 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -196,7 +196,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx
index af388d592d6a..0579ba1c37de 100644
--- a/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno.cxx
@@ -423,7 +423,7 @@ static void cpp_vtable_call()
}
}
-//__________________________________________________________________________________________________
+
int const codeSnippetSize = 56;
unsigned char * codeSnippet(
diff --git a/bridges/source/cpp_uno/gcc3_solaris_sparc/except.cxx b/bridges/source/cpp_uno/gcc3_solaris_sparc/except.cxx
index a869281433c8..f025b2816f5a 100644
--- a/bridges/source/cpp_uno/gcc3_solaris_sparc/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_solaris_sparc/except.cxx
@@ -103,18 +103,18 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
: m_hApp( dlopen( 0, RTLD_LAZY ) )
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
dlclose( m_hApp );
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -193,7 +193,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
static void deleteException( void * pExc )
{
__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
diff --git a/bridges/source/cpp_uno/mingw_intel/except.cxx b/bridges/source/cpp_uno/mingw_intel/except.cxx
index 330f66881db7..d6ec5219f329 100644
--- a/bridges/source/cpp_uno/mingw_intel/except.cxx
+++ b/bridges/source/cpp_uno/mingw_intel/except.cxx
@@ -108,16 +108,16 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -185,7 +185,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
extern "C" {
static void _GLIBCXX_CDTOR_CALLABI deleteException( void * pExc )
{
diff --git a/bridges/source/cpp_uno/mingw_x86-64/except.cxx b/bridges/source/cpp_uno/mingw_x86-64/except.cxx
index 330f66881db7..d6ec5219f329 100644
--- a/bridges/source/cpp_uno/mingw_x86-64/except.cxx
+++ b/bridges/source/cpp_uno/mingw_x86-64/except.cxx
@@ -108,16 +108,16 @@ public:
type_info * getRTTI( typelib_CompoundTypeDescription * ) SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
RTTI::RTTI() SAL_THROW(())
{
}
-//__________________________________________________________________________________________________
+
RTTI::~RTTI() SAL_THROW(())
{
}
-//__________________________________________________________________________________________________
+
type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THROW(())
{
type_info * rtti;
@@ -185,7 +185,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR
return rtti;
}
-//--------------------------------------------------------------------------------------------------
+
extern "C" {
static void _GLIBCXX_CDTOR_CALLABI deleteException( void * pExc )
{
diff --git a/bridges/source/cpp_uno/msvc_win32_intel/except.cxx b/bridges/source/cpp_uno/msvc_win32_intel/except.cxx
index 2aecc3a03afc..6a411494010a 100644
--- a/bridges/source/cpp_uno/msvc_win32_intel/except.cxx
+++ b/bridges/source/cpp_uno/msvc_win32_intel/except.cxx
@@ -119,11 +119,11 @@ private:
void * _m_data;
char _m_d_name[1];
};
-//__________________________________________________________________________________________________
+
__type_info::~__type_info() throw ()
{
}
-//__________________________________________________________________________________________________
+
type_info * RTTInfos::getRTTI( OUString const & rUNOname ) throw ()
{
// a must be
@@ -152,11 +152,11 @@ type_info * RTTInfos::getRTTI( OUString const & rUNOname ) throw ()
return (type_info *)iFind->second;
}
}
-//__________________________________________________________________________________________________
+
RTTInfos::RTTInfos() throw ()
{
}
-//__________________________________________________________________________________________________
+
RTTInfos::~RTTInfos() throw ()
{
#if OSL_DEBUG_LEVEL > 1
@@ -212,7 +212,7 @@ inline void ObjectFunction::operator delete ( void * pMem )
rtl_freeMemory( pMem );
}
-//__________________________________________________________________________________________________
+
ObjectFunction::ObjectFunction( typelib_TypeDescription * pTypeDescr, void * fpFunc ) throw ()
: _pTypeDescr( pTypeDescr )
{
@@ -230,7 +230,7 @@ ObjectFunction::ObjectFunction( typelib_TypeDescription * pTypeDescr, void * fpF
*pCode++ = 0xe9;
*(sal_Int32 *)pCode = ((unsigned char *)fpFunc) - pCode - sizeof(sal_Int32);
}
-//__________________________________________________________________________________________________
+
ObjectFunction::~ObjectFunction() throw ()
{
::typelib_typedescription_release( _pTypeDescr );
@@ -312,7 +312,7 @@ struct RaiseInfo
RaiseInfo( typelib_TypeDescription * pTypeDescr ) throw ();
~RaiseInfo() throw ();
};
-//__________________________________________________________________________________________________
+
RaiseInfo::RaiseInfo( typelib_TypeDescription * pTypeDescr ) throw ()
: _n0( 0 )
, _pDtor( new ObjectFunction( pTypeDescr, destruct ) )
@@ -346,7 +346,7 @@ RaiseInfo::RaiseInfo( typelib_TypeDescription * pTypeDescr ) throw ()
ppTypes[nPos++] = new ExceptionType( (typelib_TypeDescription *)pCompTypeDescr );
}
}
-//__________________________________________________________________________________________________
+
RaiseInfo::~RaiseInfo() throw ()
{
ExceptionType ** ppTypes = (ExceptionType **)((sal_Int32 *)_types + 1);
@@ -371,11 +371,11 @@ public:
ExceptionInfos() throw ();
~ExceptionInfos() throw ();
};
-//__________________________________________________________________________________________________
+
ExceptionInfos::ExceptionInfos() throw ()
{
}
-//__________________________________________________________________________________________________
+
ExceptionInfos::~ExceptionInfos() throw ()
{
#if OSL_DEBUG_LEVEL > 1
@@ -389,7 +389,7 @@ ExceptionInfos::~ExceptionInfos() throw ()
delete (RaiseInfo *)iPos->second;
}
}
-//__________________________________________________________________________________________________
+
void * ExceptionInfos::getRaiseInfo( typelib_TypeDescription * pTypeDescr ) throw ()
{
static ExceptionInfos * s_pInfos = 0;
diff --git a/bridges/source/jni_uno/jni_bridge.cxx b/bridges/source/jni_uno/jni_bridge.cxx
index 26b030059943..1cc914541e27 100644
--- a/bridges/source/jni_uno/jni_bridge.cxx
+++ b/bridges/source/jni_uno/jni_bridge.cxx
@@ -39,7 +39,7 @@ namespace
extern "C"
{
-//------------------------------------------------------------------------------
+
void SAL_CALL Mapping_acquire( uno_Mapping * mapping )
SAL_THROW_EXTERN_C()
{
@@ -47,7 +47,7 @@ void SAL_CALL Mapping_acquire( uno_Mapping * mapping )
that->m_bridge->acquire();
}
-//------------------------------------------------------------------------------
+
void SAL_CALL Mapping_release( uno_Mapping * mapping )
SAL_THROW_EXTERN_C()
{
@@ -55,7 +55,7 @@ void SAL_CALL Mapping_release( uno_Mapping * mapping )
that->m_bridge->release();
}
-//------------------------------------------------------------------------------
+
void SAL_CALL Mapping_map_to_uno(
uno_Mapping * mapping, void ** ppOut,
void * pIn, typelib_InterfaceTypeDescription * td )
@@ -113,7 +113,7 @@ void SAL_CALL Mapping_map_to_uno(
}
}
-//------------------------------------------------------------------------------
+
void SAL_CALL Mapping_map_to_java(
uno_Mapping * mapping, void ** ppOut,
void * pIn, typelib_InterfaceTypeDescription * td )
@@ -174,7 +174,7 @@ void SAL_CALL Mapping_map_to_java(
}
}
-//______________________________________________________________________________
+
void SAL_CALL Bridge_free( uno_Mapping * mapping )
SAL_THROW_EXTERN_C()
{
@@ -189,7 +189,7 @@ void SAL_CALL Bridge_free( uno_Mapping * mapping )
namespace jni_uno
{
-//______________________________________________________________________________
+
void Bridge::acquire() const SAL_THROW(())
{
if (1 == osl_atomic_increment( &m_ref ))
@@ -211,7 +211,7 @@ void Bridge::acquire() const SAL_THROW(())
}
}
-//______________________________________________________________________________
+
void Bridge::release() const SAL_THROW(())
{
if (! osl_atomic_decrement( &m_ref ))
@@ -223,7 +223,7 @@ void Bridge::release() const SAL_THROW(())
}
}
-//______________________________________________________________________________
+
Bridge::Bridge(
uno_Environment * java_env, uno_ExtEnvironment * uno_env,
bool registered_java2uno )
@@ -254,7 +254,7 @@ Bridge::Bridge(
m_uno2java.m_bridge = this;
}
-//______________________________________________________________________________
+
Bridge::~Bridge() SAL_THROW(())
{
(*m_java_env->release)( m_java_env );
@@ -262,7 +262,7 @@ Bridge::~Bridge() SAL_THROW(())
}
-//______________________________________________________________________________
+
void JNI_context::java_exc_occurred() const
{
// !don't rely on JNI_info!
@@ -329,7 +329,7 @@ void JNI_context::java_exc_occurred() const
throw BridgeRuntimeError( message + get_stack_trace( jo_exc.get() ) );
}
-//______________________________________________________________________________
+
void JNI_context::getClassForName(
jclass * classClass, jmethodID * methodForName) const
{
@@ -342,7 +342,7 @@ void JNI_context::getClassForName(
*classClass = c;
}
-//______________________________________________________________________________
+
jclass JNI_context::findClass(
char const * name, jclass classClass, jmethodID methodForName,
bool inException) const
@@ -363,7 +363,7 @@ jclass JNI_context::findClass(
return c;
}
-//______________________________________________________________________________
+
OUString JNI_context::get_stack_trace( jobject jo_exc ) const
{
JLocalAutoRef jo_JNI_proxy(
@@ -415,7 +415,7 @@ extern "C"
namespace
{
-//------------------------------------------------------------------------------
+
void SAL_CALL java_env_disposing( uno_Environment * java_env )
SAL_THROW_EXTERN_C()
{
@@ -431,7 +431,7 @@ void SAL_CALL java_env_disposing( uno_Environment * java_env )
#define uno_initEnvironment java_uno_initEnvironment
#endif
-//------------------------------------------------------------------------------
+
SAL_DLLPUBLIC_EXPORT void SAL_CALL uno_initEnvironment( uno_Environment * java_env )
SAL_THROW_EXTERN_C()
{
@@ -449,7 +449,7 @@ SAL_DLLPUBLIC_EXPORT void SAL_CALL uno_initEnvironment( uno_Environment * java_e
#define uno_ext_getMapping java_uno_ext_getMapping
#endif
-//------------------------------------------------------------------------------
+
SAL_DLLPUBLIC_EXPORT void SAL_CALL uno_ext_getMapping(
uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo )
SAL_THROW_EXTERN_C()
diff --git a/bridges/source/jni_uno/jni_data.cxx b/bridges/source/jni_uno/jni_data.cxx
index 06063bd82c1b..8c3a5ec7b616 100644
--- a/bridges/source/jni_uno/jni_data.cxx
+++ b/bridges/source/jni_uno/jni_data.cxx
@@ -32,7 +32,7 @@ using namespace ::rtl;
namespace jni_uno
{
-//------------------------------------------------------------------------------
+
inline rtl_mem * seq_allocate( sal_Int32 nElements, sal_Int32 nSize )
{
o3tl::heap_ptr< rtl_mem > seq(
@@ -43,7 +43,7 @@ inline rtl_mem * seq_allocate( sal_Int32 nElements, sal_Int32 nSize )
return seq.release();
}
-//______________________________________________________________________________
+
namespace {
void createDefaultUnoValue(
@@ -1158,7 +1158,7 @@ void Bridge::map_to_uno(
//##############################################################################
-//______________________________________________________________________________
+
void Bridge::map_to_java(
JNI_context const & jni,
jvalue * java_data, void const * uno_data,
diff --git a/bridges/source/jni_uno/jni_info.cxx b/bridges/source/jni_uno/jni_info.cxx
index f55ad4f6802a..ee9818a3afdd 100644
--- a/bridges/source/jni_uno/jni_info.cxx
+++ b/bridges/source/jni_uno/jni_info.cxx
@@ -40,7 +40,7 @@ using namespace ::rtl;
namespace jni_uno
{
-//______________________________________________________________________________
+
JNI_type_info::JNI_type_info(
JNI_context const & jni, typelib_TypeDescription * td )
: m_td( td ),
@@ -57,7 +57,7 @@ JNI_type_info::JNI_type_info(
}
-//______________________________________________________________________________
+
void JNI_interface_type_info::destroy( JNIEnv * jni_env )
{
JNI_type_info::destruct( jni_env );
@@ -67,7 +67,7 @@ void JNI_interface_type_info::destroy( JNIEnv * jni_env )
delete this;
}
-//______________________________________________________________________________
+
JNI_interface_type_info::JNI_interface_type_info(
JNI_context const & jni, typelib_TypeDescription * td_ )
: JNI_type_info( jni, td_ )
@@ -222,7 +222,7 @@ JNI_interface_type_info::JNI_interface_type_info(
}
-//______________________________________________________________________________
+
void JNI_compound_type_info::destroy( JNIEnv * jni_env )
{
JNI_type_info::destruct( jni_env );
@@ -230,7 +230,7 @@ void JNI_compound_type_info::destroy( JNIEnv * jni_env )
delete this;
}
-//______________________________________________________________________________
+
JNI_compound_type_info::JNI_compound_type_info(
JNI_context const & jni, typelib_TypeDescription * td_ )
: JNI_type_info( jni, td_ ),
@@ -343,7 +343,7 @@ JNI_compound_type_info::JNI_compound_type_info(
}
-//______________________________________________________________________________
+
JNI_type_info const * JNI_info::create_type_info(
JNI_context const & jni, typelib_TypeDescription * td ) const
{
@@ -389,7 +389,7 @@ JNI_type_info const * JNI_info::create_type_info(
return info;
}
-//______________________________________________________________________________
+
JNI_type_info const * JNI_info::get_type_info(
JNI_context const & jni, typelib_TypeDescription * td ) const
{
@@ -416,7 +416,7 @@ JNI_type_info const * JNI_info::get_type_info(
return info;
}
-//______________________________________________________________________________
+
JNI_type_info const * JNI_info::get_type_info(
JNI_context const & jni, typelib_TypeDescriptionReference * type ) const
{
@@ -443,7 +443,7 @@ JNI_type_info const * JNI_info::get_type_info(
return info;
}
-//______________________________________________________________________________
+
JNI_type_info const * JNI_info::get_type_info(
JNI_context const & jni, OUString const & uno_name ) const
{
@@ -474,7 +474,7 @@ JNI_type_info const * JNI_info::get_type_info(
return info;
}
-//______________________________________________________________________________
+
JNI_info::JNI_info(
JNIEnv * jni_env, jobject class_loader, jclass classClass,
jmethodID methodForName )
@@ -859,7 +859,7 @@ JNI_info::JNI_info(
}
}
-//______________________________________________________________________________
+
void JNI_info::destruct( JNIEnv * jni_env )
{
t_str2type::const_iterator iPos( m_type_map.begin() );
@@ -901,7 +901,7 @@ void JNI_info::destruct( JNIEnv * jni_env )
jni_env->DeleteGlobalRef( m_class_Any );
}
-//______________________________________________________________________________
+
JNI_info const * JNI_info::get_jni_info(
rtl::Reference< jvmaccess::UnoVirtualMachine > const & uno_vm )
{
@@ -966,7 +966,7 @@ JNI_info const * JNI_info::get_jni_info(
extern "C"
{
-//------------------------------------------------------------------------------
+
SAL_JNI_EXPORT void
JNICALL Java_com_sun_star_bridges_jni_1uno_JNI_1info_1holder_finalize__J(
JNIEnv * jni_env, SAL_UNUSED_PARAMETER jobject, jlong jni_info_handle )
diff --git a/bridges/source/jni_uno/jni_java2uno.cxx b/bridges/source/jni_uno/jni_java2uno.cxx
index ffc90ce760a6..fb3068fcb04e 100644
--- a/bridges/source/jni_uno/jni_java2uno.cxx
+++ b/bridges/source/jni_uno/jni_java2uno.cxx
@@ -31,7 +31,7 @@ using namespace ::rtl;
namespace jni_uno
{
-//______________________________________________________________________________
+
jobject Bridge::map_to_java(
JNI_context const & jni,
uno_Interface * pUnoI, JNI_interface_type_info const * info ) const
@@ -82,7 +82,7 @@ jobject Bridge::map_to_java(
}
-//______________________________________________________________________________
+
void Bridge::handle_uno_exc( JNI_context const & jni, uno_Any * uno_exc ) const
{
if (typelib_TypeClass_EXCEPTION == uno_exc->pType->eTypeClass)
@@ -147,7 +147,7 @@ union largest
uno_Any a;
};
-//______________________________________________________________________________
+
jobject Bridge::call_uno(
JNI_context const & jni,
uno_Interface * pUnoI, typelib_TypeDescription * member_td,
@@ -364,7 +364,7 @@ using namespace ::jni_uno;
extern "C"
{
-//------------------------------------------------------------------------------
+
SAL_JNI_EXPORT jobject
JNICALL Java_com_sun_star_bridges_jni_1uno_JNI_1proxy_dispatch_1call(
JNIEnv * jni_env, jobject jo_proxy, jlong bridge_handle, jstring jo_method,
@@ -613,7 +613,7 @@ JNICALL Java_com_sun_star_bridges_jni_1uno_JNI_1proxy_dispatch_1call(
}
}
-//------------------------------------------------------------------------------
+
SAL_JNI_EXPORT void
JNICALL Java_com_sun_star_bridges_jni_1uno_JNI_1proxy_finalize__J(
JNIEnv * jni_env, jobject jo_proxy, jlong bridge_handle )
diff --git a/bridges/source/jni_uno/jni_uno2java.cxx b/bridges/source/jni_uno/jni_uno2java.cxx
index beb4ac0b9e36..6c035643daf8 100644
--- a/bridges/source/jni_uno/jni_uno2java.cxx
+++ b/bridges/source/jni_uno/jni_uno2java.cxx
@@ -37,19 +37,19 @@ namespace
extern "C"
{
-//------------------------------------------------------------------------------
+
void SAL_CALL UNO_proxy_free( uno_ExtEnvironment * env, void * proxy )
SAL_THROW_EXTERN_C();
-//------------------------------------------------------------------------------
+
void SAL_CALL UNO_proxy_acquire( uno_Interface * pUnoI )
SAL_THROW_EXTERN_C();
-//------------------------------------------------------------------------------
+
void SAL_CALL UNO_proxy_release( uno_Interface * pUnoI )
SAL_THROW_EXTERN_C();
-//------------------------------------------------------------------------------
+
void SAL_CALL UNO_proxy_dispatch(
uno_Interface * pUnoI, typelib_TypeDescription const * member_td,
void * uno_ret, void * uno_args[], uno_Any ** uno_exc )
@@ -60,7 +60,7 @@ void SAL_CALL UNO_proxy_dispatch(
namespace jni_uno
{
-//______________________________________________________________________________
+
void Bridge::handle_java_exc(
JNI_context const & jni,
JLocalAutoRef const & jo_exc, uno_Any * uno_exc ) const
@@ -119,7 +119,7 @@ void Bridge::handle_java_exc(
->Message));
}
-//______________________________________________________________________________
+
void Bridge::call_java(
jobject javaI, typelib_InterfaceTypeDescription * iface_td,
sal_Int32 local_member_index, sal_Int32 function_pos_offset,
@@ -419,7 +419,7 @@ struct UNO_proxy : public uno_Interface
JNI_interface_type_info const * info );
};
-//______________________________________________________________________________
+
inline UNO_proxy::UNO_proxy(
JNI_context const & jni, Bridge const * bridge,
jobject javaI, jstring jo_oid, OUString const & oid,
@@ -452,7 +452,7 @@ inline UNO_proxy::UNO_proxy(
uno_Interface::pDispatcher = UNO_proxy_dispatch;
}
-//______________________________________________________________________________
+
inline void UNO_proxy::acquire() const
{
if (1 == osl_atomic_increment( &m_ref ))
@@ -468,7 +468,7 @@ inline void UNO_proxy::acquire() const
}
}
-//______________________________________________________________________________
+
inline void UNO_proxy::release() const
{
if (0 == osl_atomic_decrement( &m_ref ))
@@ -480,7 +480,7 @@ inline void UNO_proxy::release() const
}
-//______________________________________________________________________________
+
uno_Interface * Bridge::map_to_uno(
JNI_context const & jni,
jobject javaI, JNI_interface_type_info const * info ) const
@@ -517,7 +517,7 @@ namespace
extern "C"
{
-//------------------------------------------------------------------------------
+
void SAL_CALL UNO_proxy_free( uno_ExtEnvironment * env, void * proxy )
SAL_THROW_EXTERN_C()
{
@@ -555,7 +555,7 @@ void SAL_CALL UNO_proxy_free( uno_ExtEnvironment * env, void * proxy )
delete that;
}
-//------------------------------------------------------------------------------
+
void SAL_CALL UNO_proxy_acquire( uno_Interface * pUnoI )
SAL_THROW_EXTERN_C()
{
@@ -563,7 +563,7 @@ void SAL_CALL UNO_proxy_acquire( uno_Interface * pUnoI )
that->acquire();
}
-//------------------------------------------------------------------------------
+
void SAL_CALL UNO_proxy_release( uno_Interface * pUnoI )
SAL_THROW_EXTERN_C()
{
@@ -571,7 +571,7 @@ void SAL_CALL UNO_proxy_release( uno_Interface * pUnoI )
that->release();
}
-//------------------------------------------------------------------------------
+
void SAL_CALL UNO_proxy_dispatch(
uno_Interface * pUnoI, typelib_TypeDescription const * member_td,
void * uno_ret, void * uno_args [], uno_Any ** uno_exc )
diff --git a/bridges/test/java_uno/any/transport.cxx b/bridges/test/java_uno/any/transport.cxx
index 240b5f85ed51..06c510082e48 100644
--- a/bridges/test/java_uno/any/transport.cxx
+++ b/bridges/test/java_uno/any/transport.cxx
@@ -43,7 +43,7 @@ public:
virtual Any SAL_CALL mapAny( Any const & any )
throw (RuntimeException);
};
-//__________________________________________________________________________________________________
+
Any Transport::mapAny( Any const & any )
throw (RuntimeException)
{
diff --git a/bridges/test/testclient.cxx b/bridges/test/testclient.cxx
index 52f70bff08f9..19156ee494c8 100644
--- a/bridges/test/testclient.cxx
+++ b/bridges/test/testclient.cxx
@@ -65,7 +65,7 @@ void doPerformanceTest( const Reference < XPerformanceTest > & /* xBench */)
printf( "not implemented\n" );
// sal_Int32 i,nLoop = 2000;
// sal_Int32 tStart, tEnd , tEnd2;
-// //------------------------------------
+//
// // oneway calls
// i = nLoop;
// tStart = GetTickCount();
diff --git a/canvas/source/directx/dx_9rm.cxx b/canvas/source/directx/dx_9rm.cxx
index 3af55ad44e47..6323ca42f7d4 100644
--- a/canvas/source/directx/dx_9rm.cxx
+++ b/canvas/source/directx/dx_9rm.cxx
@@ -1011,7 +1011,7 @@ namespace dxcanvas
mpWindow->setPosSizePixel(0,0,maSize.getX(),maSize.getY());
// resize back buffer, if necessary
- // -------------------------------------------------------------
+
// don't attempt to create anything if the
// requested size is NULL.
diff --git a/canvas/source/directx/dx_canvashelper.cxx b/canvas/source/directx/dx_canvashelper.cxx
index 193c6f3b6c58..a02455268467 100644
--- a/canvas/source/directx/dx_canvashelper.cxx
+++ b/canvas/source/directx/dx_canvashelper.cxx
@@ -337,7 +337,7 @@ namespace dxcanvas
// Setup stroke pen
- // ----------------
+
Gdiplus::Pen aPen(
Gdiplus::Color(
@@ -657,7 +657,7 @@ namespace dxcanvas
}
// private helper
- // --------------------------------------------------
+
Gdiplus::CompositingMode CanvasHelper::calcCompositingMode( sal_Int8 nMode )
{
diff --git a/canvas/source/directx/dx_canvashelper_texturefill.cxx b/canvas/source/directx/dx_canvashelper_texturefill.cxx
index c7f5d3a23b17..a59e10a71454 100644
--- a/canvas/source/directx/dx_canvashelper_texturefill.cxx
+++ b/canvas/source/directx/dx_canvashelper_texturefill.cxx
@@ -62,7 +62,7 @@ namespace dxcanvas
const rendering::Texture& texture )
{
// setup a linear gradient with given colors
- // -----------------------------------------
+
Gdiplus::LinearGradientBrush aBrush(
Gdiplus::PointF(0.0f,
@@ -250,7 +250,7 @@ namespace dxcanvas
// determine number of steps to use
- // --------------------------------
+
// TODO(Q2): Unify step calculations with VCL canvas
int nColorSteps = 0;
@@ -288,7 +288,7 @@ namespace dxcanvas
// apply scaling (possibly anisotrophic) to inner polygon
- // ------------------------------------------------------
+
// scale inner polygon according to aspect ratio: for
// wider-than-tall bounds (nAspectRatio > 1.0), the inner
@@ -540,7 +540,7 @@ namespace dxcanvas
}
}
- // -------------------------------------------------------------
+
uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTexturedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
diff --git a/canvas/source/factory/cf_service.cxx b/canvas/source/factory/cf_service.cxx
index 60306f6f3988..9dc19fe8a140 100644
--- a/canvas/source/factory/cf_service.cxx
+++ b/canvas/source/factory/cf_service.cxx
@@ -218,7 +218,7 @@ CanvasFactory::~CanvasFactory()
{
}
-//------------------------------------------------------------------------------
+
Reference<XInterface> create( Reference<XComponentContext> const & xContext )
{
return static_cast< ::cppu::OWeakObject * >(
@@ -263,7 +263,7 @@ Reference<XInterface> CanvasFactory::createInstanceWithContext(
name, Sequence<Any>(), xContext );
}
-//______________________________________________________________________________
+
Reference<XInterface> CanvasFactory::use(
OUString const & serviceName,
Sequence<Any> const & args,
@@ -287,7 +287,7 @@ Reference<XInterface> CanvasFactory::use(
}
}
-//______________________________________________________________________________
+
void CanvasFactory::checkConfigFlag( bool& r_bFlag,
bool& r_CacheFlag,
const OUString& nodeName ) const
@@ -306,7 +306,7 @@ void CanvasFactory::checkConfigFlag( bool& r_bFlag,
}
}
-//______________________________________________________________________________
+
Reference<XInterface> CanvasFactory::lookupAndUse(
OUString const & serviceName, Sequence<Any> const & args,
Reference<XComponentContext> const & xContext ) const
@@ -465,7 +465,7 @@ Reference<XInterface> CanvasFactory::lookupAndUse(
return Reference<XInterface>();
}
-//______________________________________________________________________________
+
Reference<XInterface> CanvasFactory::createInstanceWithArgumentsAndContext(
OUString const & preferredOne, Sequence<Any> const & args,
Reference<XComponentContext> const & xContext ) throw (Exception)
@@ -480,7 +480,7 @@ Reference<XInterface> CanvasFactory::createInstanceWithArgumentsAndContext(
}
// XMultiServiceFactory
-//______________________________________________________________________________
+
Reference<XInterface> CanvasFactory::createInstance( OUString const & name )
throw (Exception)
{
@@ -488,7 +488,7 @@ Reference<XInterface> CanvasFactory::createInstance( OUString const & name )
name, Sequence<Any>(), m_xContext );
}
-//______________________________________________________________________________
+
Reference<XInterface> CanvasFactory::createInstanceWithArguments(
OUString const & name, Sequence<Any> const & args ) throw (Exception)
{
diff --git a/canvas/source/vcl/canvascustomsprite.cxx b/canvas/source/vcl/canvascustomsprite.cxx
index 98339506642d..a70091b39d20 100644
--- a/canvas/source/vcl/canvascustomsprite.cxx
+++ b/canvas/source/vcl/canvascustomsprite.cxx
@@ -60,7 +60,7 @@ namespace vclcanvas
"CanvasCustomSprite::CanvasCustomSprite(): Invalid sprite canvas" );
// setup back buffer
- // -----------------
+
const ::Size aSize(
static_cast<sal_Int32>( ::std::max( 1.0,
@@ -94,7 +94,7 @@ namespace vclcanvas
// setup canvas helper
- // -------------------
+
// always render into back buffer, don't preserve state (it's
// our private VDev, after all), have notion of alpha
@@ -106,7 +106,7 @@ namespace vclcanvas
// setup sprite helper
- // -------------------
+
maSpriteHelper.init( rSpriteSize,
rOwningSpriteCanvas,
diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx
index 455a474aeebe..1a68d423e1b8 100644
--- a/canvas/source/vcl/canvashelper_texturefill.cxx
+++ b/canvas/source/vcl/canvashelper_texturefill.cxx
@@ -176,7 +176,7 @@ namespace vclcanvas
// fill initial strip (extending two times the bound rect's
// diagonal to the 'left'
- // ------------------------------------------------------
+
// calculate left edge, by moving left edge of the
// gradient rect two times the bound rect's diagonal to
@@ -193,7 +193,7 @@ namespace vclcanvas
// iteratively render all other strips
- // -----------------------------------
+
// ensure that nStepCount matches color stop parity, to
// have a well-defined middle color e.g. for axial
@@ -245,7 +245,7 @@ namespace vclcanvas
// fill final strip (extending two times the bound rect's
// diagonal to the 'right'
- // ------------------------------------------------------
+
// copy right egde of polygon to left edge (and also
// copy the closing point)
@@ -306,7 +306,7 @@ namespace vclcanvas
// apply scaling (possibly anisotrophic) to inner polygon
- // ------------------------------------------------------
+
// scale inner polygon according to aspect ratio: for
// wider-than-tall bounds (nAspectRatio > 1.0), the inner
@@ -552,7 +552,7 @@ namespace vclcanvas
// mutex.
// calc step size
- // --------------
+
int nColorSteps = 0;
for( size_t i=0; i<rColors.size()-1; ++i )
nColorSteps += numColorSteps(rColors[i],rColors[i+1]);
@@ -575,7 +575,7 @@ namespace vclcanvas
if( tools::isRectangle( rPoly ) )
{
// use optimized output path
- // -------------------------
+
// this distinction really looks like a
// micro-optimisation, but in fact greatly speeds up
@@ -960,7 +960,7 @@ namespace vclcanvas
if( bRectangularPolygon )
{
// use optimized output path
- // -------------------------
+
// this distinction really looks like a
// micro-optimisation, but in fact greatly speeds up
diff --git a/canvas/source/vcl/impltools.cxx b/canvas/source/vcl/impltools.cxx
index 0dce58095324..d46ac3247861 100644
--- a/canvas/source/vcl/impltools.cxx
+++ b/canvas/source/vcl/impltools.cxx
@@ -169,7 +169,7 @@ namespace vclcanvas
// VCL-Canvas related
- //---------------------------------------------------------------------
+
::Point mapRealPoint2D( const geometry::RealPoint2D& rPoint,
const rendering::ViewState& rViewState,
diff --git a/canvas/workben/canvasdemo.cxx b/canvas/workben/canvasdemo.cxx
index ae4a90d4e7c9..bbd2bd51239a 100644
--- a/canvas/workben/canvasdemo.cxx
+++ b/canvas/workben/canvasdemo.cxx
@@ -652,9 +652,9 @@ void DemoApp::Main()
return;
}
- //-------------------------------------------------
+
// create the global service-manager
- //-------------------------------------------------
+
uno::Reference< lang::XMultiServiceFactory > xFactory;
try
{
diff --git a/chart2/source/controller/dialogs/tp_ChartType.cxx b/chart2/source/controller/dialogs/tp_ChartType.cxx
index dd09bd7a3694..8fa152a4fcc4 100644
--- a/chart2/source/controller/dialogs/tp_ChartType.cxx
+++ b/chart2/source/controller/dialogs/tp_ChartType.cxx
@@ -1074,7 +1074,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll
long nYPos = m_nYTopPos;
- //------
+
bool bShow = rTypeController.shouldShow_XAxisTypeControl();
long nXPos = m_pAxisTypeResourceGroup->getPosition().X();
m_pAxisTypeResourceGroup->showControls( bShow );
@@ -1083,7 +1083,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll
m_pAxisTypeResourceGroup->setPosition( Point( nXPos, nYPos ) );
nYPos += m_pAxisTypeResourceGroup->getHeight() + lcl_getDistance();
}
- //------
+
bShow = rTypeController.shouldShow_3DLookControl();
m_pDim3DLookResourceGroup->showControls( bShow );
if(bShow)
@@ -1091,7 +1091,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll
m_pDim3DLookResourceGroup->setPosition( Point( nXPos, nYPos ) );
nYPos += m_pDim3DLookResourceGroup->getHeight() + lcl_getDistance();
}
- //------
+
bShow = rTypeController.shouldShow_StackingControl();
m_pStackingResourceGroup->showControls( bShow, rTypeController.shouldShow_DeepStackingControl() );
if(bShow)
@@ -1102,7 +1102,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll
m_pStackingResourceGroup->setPosition( Point( nStackingXPos, nYPos ) );
nYPos += m_pStackingResourceGroup->getHeight() + lcl_getDistance();
}
- //------
+
bShow = rTypeController.shouldShow_SplineControl();
m_pSplineResourceGroup->showControls( bShow );
if(bShow)
@@ -1110,7 +1110,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll
m_pSplineResourceGroup->setPosition( Point( nXPos, nYPos ) );
nYPos += m_pSplineResourceGroup->getHeight() + lcl_getDistance();
}
- //------
+
bShow = rTypeController.shouldShow_GeometryControl();
m_pGeometryResourceGroup->showControls( bShow );
if(bShow)
@@ -1118,7 +1118,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll
m_pGeometryResourceGroup->setPosition( Point( nXPos+17, nYPos ) );
nYPos += m_pGeometryResourceGroup->getHeight() + lcl_getDistance();
}
- //------
+
bShow = rTypeController.shouldShow_SortByXValuesResourceGroup();
m_pSortByXValuesResourceGroup->showControls( bShow );
if(bShow)
@@ -1126,7 +1126,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll
m_pSortByXValuesResourceGroup->setPosition( Point( nXPos, nYPos ) );
nYPos += m_pSortByXValuesResourceGroup->getHeight() + lcl_getDistance();
}
- //------
+
Size aPageSize( this->GetSizePixel() );
Size aRemainingSize = Size( aPageSize.Width()-nXPos, aPageSize.Height()-nYPos );
rTypeController.showExtraControls( this, Point( nXPos, nYPos ), aRemainingSize );
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index b8ceebf2386b..f52c435684f1 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -58,17 +58,17 @@
#include <com/sun/star/document/XUndoManagerSupplier.hpp>
#include <com/sun/star/document/XUndoAction.hpp>
-//-------
+
// header for define RET_OK
#include <vcl/msgbox.hxx>
-//-------
-//-------
+
+
#include <toolkit/awt/vclxwindow.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/svapp.hxx>
#include <osl/mutex.hxx>
-//-------
+
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index f51dd49efe85..9b75609a020d 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -1022,7 +1022,7 @@ void ChartController::execute_Command( const CommandEvent& rCEvt )
lcl_insertMenuCommand( xPopupMenu, nUniqueId++, aFormatCommand );
//some commands for dataseries and points:
- //-----
+
if( OBJECTTYPE_DATA_SERIES == eObjectType || OBJECTTYPE_DATA_POINT == eObjectType )
{
bool bIsPoint = ( OBJECTTYPE_DATA_POINT == eObjectType );
@@ -1179,7 +1179,7 @@ void ChartController::execute_Command( const CommandEvent& rCEvt )
}
//some commands for axes: and grids
- //-----
+
else if( OBJECTTYPE_AXIS == eObjectType || OBJECTTYPE_GRID == eObjectType || OBJECTTYPE_SUBGRID == eObjectType )
{
Reference< XAxis > xAxis = ObjectIdentifier::getAxisForCID( m_aSelection.getSelectedCID(), getModel() );
@@ -1247,7 +1247,7 @@ void ChartController::execute_Command( const CommandEvent& rCEvt )
if( bHasLegend )
lcl_insertMenuCommand( xPopupMenu, nUniqueId++, ".uno:DeleteLegend" );
}
- //-----
+
xPopupMenu->insertSeparator( -1 );
lcl_insertMenuCommand( xPopupMenu, nUniqueId++, ".uno:DiagramType" );
diff --git a/chart2/source/glew/glew.cxx b/chart2/source/glew/glew.cxx
index d075b5248836..441f3ee2def1 100644
--- a/chart2/source/glew/glew.cxx
+++ b/chart2/source/glew/glew.cxx
@@ -4,24 +4,24 @@
** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
** Copyright (C) 2002, Lev Povalahev
** All rights reserved.
-**
-** Redistribution and use in source and binary forms, with or without
+**
+** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are met:
-**
-** * Redistributions of source code must retain the above copyright notice,
+**
+** * Redistributions of source code must retain the above copyright notice,
** this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright notice,
-** this list of conditions and the following disclaimer in the documentation
+** * Redistributions in binary form must reproduce the above copyright notice,
+** this list of conditions and the following disclaimer in the documentation
** and/or other materials provided with the distribution.
-** * The name of the author may be used to endorse or promote products
+** * The name of the author may be used to endorse or promote products
** derived from this software without specific prior written permission.
**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
@@ -102,7 +102,7 @@ void* NSGLGetProcAddress (const GLubyte *name)
{
static void* image = NULL;
void* addr;
- if (NULL == image)
+ if (NULL == image)
{
#ifdef GLEW_REGAL
image = dlopen("libRegal.dylib", RTLD_LAZY);
@@ -9469,7 +9469,7 @@ static GLboolean _glewInit_GL_WIN_swap_hint (GLEW_CONTEXT_ARG_DEF_INIT)
/* ------------------------------------------------------------------------- */
GLboolean GLEWAPIENTRY glewGetExtension (const char* name)
-{
+{
const GLubyte* start;
const GLubyte* end;
start = (const GLubyte*)glGetString(GL_EXTENSIONS);
@@ -9496,7 +9496,7 @@ GLenum GLEWAPIENTRY glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST)
dot = _glewStrCLen(s, '.');
if (dot == 0)
return GLEW_ERROR_NO_GL_VERSION;
-
+
major = s[dot-1]-'0';
minor = s[dot+1]-'0';
@@ -9504,7 +9504,7 @@ GLenum GLEWAPIENTRY glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST)
minor = 0;
if (major<0 || major>9)
return GLEW_ERROR_NO_GL_VERSION;
-
+
if (major == 1 && minor == 0)
{
@@ -9521,12 +9521,12 @@ GLenum GLEWAPIENTRY glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST)
CONST_CAST(GLEW_VERSION_3_2) = GLEW_VERSION_3_3 == GL_TRUE || ( major == 3 && minor >= 2 ) ? GL_TRUE : GL_FALSE;
CONST_CAST(GLEW_VERSION_3_1) = GLEW_VERSION_3_2 == GL_TRUE || ( major == 3 && minor >= 1 ) ? GL_TRUE : GL_FALSE;
CONST_CAST(GLEW_VERSION_3_0) = GLEW_VERSION_3_1 == GL_TRUE || ( major == 3 ) ? GL_TRUE : GL_FALSE;
- CONST_CAST(GLEW_VERSION_2_1) = GLEW_VERSION_3_0 == GL_TRUE || ( major == 2 && minor >= 1 ) ? GL_TRUE : GL_FALSE;
+ CONST_CAST(GLEW_VERSION_2_1) = GLEW_VERSION_3_0 == GL_TRUE || ( major == 2 && minor >= 1 ) ? GL_TRUE : GL_FALSE;
CONST_CAST(GLEW_VERSION_2_0) = GLEW_VERSION_2_1 == GL_TRUE || ( major == 2 ) ? GL_TRUE : GL_FALSE;
CONST_CAST(GLEW_VERSION_1_5) = GLEW_VERSION_2_0 == GL_TRUE || ( major == 1 && minor >= 5 ) ? GL_TRUE : GL_FALSE;
CONST_CAST(GLEW_VERSION_1_4) = GLEW_VERSION_1_5 == GL_TRUE || ( major == 1 && minor >= 4 ) ? GL_TRUE : GL_FALSE;
CONST_CAST(GLEW_VERSION_1_3) = GLEW_VERSION_1_4 == GL_TRUE || ( major == 1 && minor >= 3 ) ? GL_TRUE : GL_FALSE;
- CONST_CAST(GLEW_VERSION_1_2_1) = GLEW_VERSION_1_3 == GL_TRUE ? GL_TRUE : GL_FALSE;
+ CONST_CAST(GLEW_VERSION_1_2_1) = GLEW_VERSION_1_3 == GL_TRUE ? GL_TRUE : GL_FALSE;
CONST_CAST(GLEW_VERSION_1_2) = GLEW_VERSION_1_2_1 == GL_TRUE || ( major == 1 && minor >= 2 ) ? GL_TRUE : GL_FALSE;
CONST_CAST(GLEW_VERSION_1_1) = GLEW_VERSION_1_2 == GL_TRUE || ( major == 1 && minor >= 1 ) ? GL_TRUE : GL_FALSE;
}
@@ -12099,7 +12099,7 @@ static PFNWGLGETEXTENSIONSSTRINGARBPROC _wglewGetExtensionsStringARB = NULL;
static PFNWGLGETEXTENSIONSSTRINGEXTPROC _wglewGetExtensionsStringEXT = NULL;
GLboolean GLEWAPIENTRY wglewGetExtension (const char* name)
-{
+{
const GLubyte* start;
const GLubyte* end;
if (_wglewGetExtensionsStringARB == NULL)
@@ -13164,7 +13164,7 @@ static GLboolean _glewInit_GLX_SUN_video_resize (GLXEW_CONTEXT_ARG_DEF_INIT)
/* ------------------------------------------------------------------------ */
GLboolean glxewGetExtension (const char* name)
-{
+{
const GLubyte* start;
const GLubyte* end;
diff --git a/chart2/source/model/main/DataPointProperties.cxx b/chart2/source/model/main/DataPointProperties.cxx
index 443101d3556e..66f3830ca9af 100644
--- a/chart2/source/model/main/DataPointProperties.cxx
+++ b/chart2/source/model/main/DataPointProperties.cxx
@@ -48,7 +48,7 @@ void DataPointProperties::AddPropertiesToVector(
// DataPointProperties
// Common
- // ------
+
rOutProperties.push_back(
Property( "Color",
PROP_DATAPOINT_COLOR,
diff --git a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
index 6db8a268f49d..9c7fd8e26452 100644
--- a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
@@ -203,7 +203,7 @@ void ColumnLineChartTypeTemplate::createChartTypes(
nNumberOfColumns = nNumberOfSeries - nNumberOfLines;
// Columns
- // -------
+
Reference< XChartType > xCT(
xFact->createInstance( CHART2_SERVICE_NAME_CHARTTYPE_COLUMN ), uno::UNO_QUERY_THROW );
@@ -223,7 +223,7 @@ void ColumnLineChartTypeTemplate::createChartTypes(
}
// Lines
- // -----
+
xCT.set( xFact->createInstance( CHART2_SERVICE_NAME_CHARTTYPE_LINE ), uno::UNO_QUERY_THROW );
xCTCnt.set( rCoordSys[ 0 ], uno::UNO_QUERY_THROW );
xCTCnt->addChartType( xCT );
diff --git a/chart2/source/tools/LifeTime.cxx b/chart2/source/tools/LifeTime.cxx
index 877718ffdf22..ab47d1a0a134 100644
--- a/chart2/source/tools/LifeTime.cxx
+++ b/chart2/source/tools/LifeTime.cxx
@@ -342,7 +342,7 @@ bool CloseableLifeTimeManager::impl_isDisposedOrClosed( bool bAssert )
if( m_bDisposed || m_bInDispose )
return; //behave as passive as possible, if disposed or closed already
- //--------
+
m_bClosed = sal_True;
NegativeGuard< osl::Mutex > aNegativeGuard( m_aAccessMutex );
diff --git a/chart2/source/view/axes/Tickmarks_Equidistant.cxx b/chart2/source/view/axes/Tickmarks_Equidistant.cxx
index 55a8c8d41bb2..332600ad5485 100644
--- a/chart2/source/view/axes/Tickmarks_Equidistant.cxx
+++ b/chart2/source/view/axes/Tickmarks_Equidistant.cxx
@@ -102,10 +102,10 @@ EquidistantTickFactory::EquidistantTickFactory(
fMax = m_fScaledVisibleMax;
}
- //--
+
m_fOuterMajorTickBorderMin = EquidistantTickFactory::getMinimumAtIncrement( fMin, m_rIncrement );
m_fOuterMajorTickBorderMax = EquidistantTickFactory::getMaximumAtIncrement( fMax, m_rIncrement );
- //--
+
m_fOuterMajorTickBorderMin_Scaled = m_fOuterMajorTickBorderMin;
m_fOuterMajorTickBorderMax_Scaled = m_fOuterMajorTickBorderMax;
diff --git a/chart2/source/view/main/ChartItemPool.cxx b/chart2/source/view/main/ChartItemPool.cxx
index da8fe4913743..db67c0140d38 100644
--- a/chart2/source/view/main/ChartItemPool.cxx
+++ b/chart2/source/view/main/ChartItemPool.cxx
@@ -124,7 +124,7 @@ ChartItemPool::ChartItemPool():
ppPoolDefaults[SCHATTR_AXIS_LABEL_OVERLAP - SCHATTR_START] = new SfxBoolItem(SCHATTR_AXIS_LABEL_OVERLAP,false);
ppPoolDefaults[SCHATTR_AXIS_LABEL_BREAK - SCHATTR_START] = new SfxBoolItem(SCHATTR_AXIS_LABEL_BREAK, false );
- //--
+
ppPoolDefaults[SCHATTR_SYMBOL_BRUSH - SCHATTR_START] = new SvxBrushItem(SCHATTR_SYMBOL_BRUSH);
ppPoolDefaults[SCHATTR_STOCK_VOLUME - SCHATTR_START] = new SfxBoolItem(SCHATTR_STOCK_VOLUME,false);
ppPoolDefaults[SCHATTR_STOCK_UPDOWN - SCHATTR_START] = new SfxBoolItem(SCHATTR_STOCK_UPDOWN,false);
diff --git a/cli_ure/source/climaker/climaker_app.cxx b/cli_ure/source/climaker/climaker_app.cxx
index cca91e5e9f2c..c8771d65d83d 100644
--- a/cli_ure/source/climaker/climaker_app.cxx
+++ b/cli_ure/source/climaker/climaker_app.cxx
@@ -52,7 +52,7 @@ using namespace ::com::sun::star::uno;
namespace climaker
{
-//------------------------------------------------------------------------------
+
static char const s_usingText [] =
"\n"
"using: climaker <switches> [registry-file-1 registry-file-2 ...]\n"
@@ -94,7 +94,7 @@ struct OptionInfo
bool g_verbose = false;
-//------------------------------------------------------------------------------
+
static const OptionInfo s_option_infos [] = {
{ RTL_CONSTASCII_STRINGPARAM("out"), 'O', true },
{ RTL_CONSTASCII_STRINGPARAM("types"), 'T', true },
diff --git a/cli_ure/source/climaker/climaker_emit.cxx b/cli_ure/source/climaker/climaker_emit.cxx
index 628547135df9..58f3c1172c76 100644
--- a/cli_ure/source/climaker/climaker_emit.cxx
+++ b/cli_ure/source/climaker/climaker_emit.cxx
@@ -38,7 +38,7 @@ using namespace ::com::sun::star::uno;
namespace climaker
{
System::String^ mapUnoPolymorphicName(System::String^ unoName);
-//------------------------------------------------------------------------------
+
static inline ::System::String ^ to_cts_name(
OUString const & uno_name )
{
@@ -48,7 +48,7 @@ static inline ::System::String ^ to_cts_name(
return ustring_to_String( buf.makeStringAndClear() );
}
-//------------------------------------------------------------------------------
+
static inline ::System::Object ^ to_cli_constant( Any const & value )
{
switch (value.getValueTypeClass())
@@ -95,7 +95,7 @@ static inline ::System::Object ^ to_cli_constant( Any const & value )
}
}
-//------------------------------------------------------------------------------
+
static inline void emit_ldarg( Emit::ILGenerator ^ code, ::System::Int32 index )
{
switch (index)
@@ -275,7 +275,7 @@ System::String^ mapUnoPolymorphicName(System::String^ unoName)
-//______________________________________________________________________________
+
Assembly ^ TypeEmitter::type_resolve(
::System::Object ^, ::System::ResolveEventArgs ^ args )
{
@@ -310,7 +310,7 @@ Assembly ^ TypeEmitter::type_resolve(
return nullptr;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
::System::String ^ cts_name, bool throw_exc )
{
@@ -358,7 +358,7 @@ Assembly ^ TypeEmitter::type_resolve(
}
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type_Exception()
{
if (nullptr == m_type_Exception)
@@ -419,7 +419,7 @@ Assembly ^ TypeEmitter::type_resolve(
return m_type_Exception;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type_RuntimeException()
{
if (nullptr == m_type_RuntimeException)
@@ -473,7 +473,7 @@ Assembly ^ TypeEmitter::type_resolve(
return m_type_RuntimeException;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XConstantTypeDescription > const & xType )
{
@@ -511,7 +511,7 @@ Assembly ^ TypeEmitter::type_resolve(
return ret_type;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XConstantsTypeDescription > const & xType )
{
@@ -562,7 +562,7 @@ Assembly ^ TypeEmitter::type_resolve(
return ret_type;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XEnumTypeDescription > const & xType )
{
@@ -621,7 +621,7 @@ Assembly ^ TypeEmitter::type_resolve(
return ret_type;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XCompoundTypeDescription > const & xType )
{
@@ -696,7 +696,7 @@ Assembly ^ TypeEmitter::type_resolve(
return ret_type;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XInterfaceTypeDescription2 > const & xType )
{
@@ -767,7 +767,7 @@ Assembly ^ TypeEmitter::type_resolve(
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XServiceTypeDescription2 > const & xType )
{
@@ -828,7 +828,7 @@ Assembly ^ TypeEmitter::type_resolve(
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::complete_iface_type( iface_entry ^ entry )
{
Emit::TypeBuilder ^ type_builder = entry->m_type_builder;
@@ -1575,7 +1575,7 @@ Assembly ^ TypeEmitter::type_resolve(
if (attrBuilder != nullptr)
method_builder->SetCustomAttribute(attrBuilder);
- //-------------------------------------------------------------
+
//define parameter attributes (paramarray), names etc.
//The first parameter is the XComponentContext, which cannot be obtained
//from reflection.
@@ -2062,7 +2062,7 @@ Emit::CustomAttributeBuilder^ TypeEmitter::get_exception_attribute(
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XTypeDescription > const & xType )
{
@@ -2158,7 +2158,7 @@ Emit::CustomAttributeBuilder^ TypeEmitter::get_exception_attribute(
}
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_complete_struct( ::System::String ^ sName)
{
struct_entry ^ pStruct = safe_cast< struct_entry ^>(
@@ -2213,7 +2213,7 @@ TypeEmitter::~TypeEmitter()
safe_cast< singleton_entry ^ >( enumerator->Value ) );
}
}
-//______________________________________________________________________________
+
TypeEmitter::TypeEmitter(
::System::Reflection::Emit::ModuleBuilder ^ module_builder,
array< ::System::Reflection::Assembly^>^ extra_assemblies )
diff --git a/cli_ure/source/native/native_bootstrap.cxx b/cli_ure/source/native/native_bootstrap.cxx
index 0a22d7bb5e63..583dbf30fd4d 100644
--- a/cli_ure/source/native/native_bootstrap.cxx
+++ b/cli_ure/source/native/native_bootstrap.cxx
@@ -352,7 +352,7 @@ public:
bootstrap();
};
-//______________________________________________________________________________
+
::unoidl::com::sun::star::uno::XComponentContext ^
Bootstrap::defaultBootstrap_InitialComponentContext(
::System::String ^ ini_file,
@@ -390,7 +390,7 @@ Bootstrap::defaultBootstrap_InitialComponentContext(
to_cli( xContext ) );
}
-//______________________________________________________________________________
+
::unoidl::com::sun::star::uno::XComponentContext ^
Bootstrap::defaultBootstrap_InitialComponentContext()
{
diff --git a/cli_ure/source/uno_bridge/cli_bridge.cxx b/cli_ure/source/uno_bridge/cli_bridge.cxx
index 7a28582efcd5..8485317810e0 100644
--- a/cli_ure/source/uno_bridge/cli_bridge.cxx
+++ b/cli_ure/source/uno_bridge/cli_bridge.cxx
@@ -44,7 +44,7 @@ void SAL_CALL Mapping_acquire( uno_Mapping * mapping )
Mapping const * that = static_cast< Mapping const * >( mapping );
that->m_bridge->acquire();
}
-//--------------------------------------------------------------------------------------------------
+
void SAL_CALL Mapping_release( uno_Mapping * mapping )
SAL_THROW_EXTERN_C()
{
@@ -53,7 +53,7 @@ void SAL_CALL Mapping_release( uno_Mapping * mapping )
}
-//--------------------------------------------------------------------------------------------------
+
void SAL_CALL Mapping_cli2uno(
uno_Mapping * mapping, void ** ppOut,
void * pIn, typelib_InterfaceTypeDescription * td )
@@ -93,7 +93,7 @@ void SAL_CALL Mapping_cli2uno(
#endif
}
}
-//--------------------------------------------------------------------------------------------------
+
void SAL_CALL Mapping_uno2cli(
uno_Mapping * mapping, void ** ppOut,
void * pIn, typelib_InterfaceTypeDescription * td )
@@ -153,7 +153,7 @@ void SAL_CALL Mapping_uno2cli(
}
}
-//__________________________________________________________________________________________________
+
void SAL_CALL Bridge_free( uno_Mapping * mapping )
SAL_THROW_EXTERN_C()
{
@@ -167,7 +167,7 @@ void SAL_CALL Bridge_free( uno_Mapping * mapping )
namespace cli_uno
{
-//__________________________________________________________________________________________________
+
/** ToDo
I doubt that the case that the ref count raises from 0 to 1
can occur. uno_ext_getMapping returns an acquired mapping. Every time
@@ -195,7 +195,7 @@ void Bridge::acquire() const SAL_THROW(())
}
}
}
-//__________________________________________________________________________________________________
+
void Bridge::release() const SAL_THROW(())
{
if (! osl_atomic_decrement( &m_ref ))
@@ -206,7 +206,7 @@ void Bridge::release() const SAL_THROW(())
: const_cast<Mapping*>(&m_uno2cli) );
}
}
-//__________________________________________________________________________________________________
+
Bridge::Bridge(
uno_Environment * uno_cli_env, uno_ExtEnvironment * uno_env,
bool registered_cli2uno )
@@ -232,7 +232,7 @@ Bridge::Bridge(
}
-//__________________________________________________________________________________________________
+
Bridge::~Bridge() SAL_THROW(())
{
//System::GC::Collect();
@@ -249,7 +249,7 @@ extern "C"
namespace cli_uno
{
-//--------------------------------------------------------------------------------------------------
+
void SAL_CALL cli_env_disposing( uno_Environment * uno_cli_env )
SAL_THROW_EXTERN_C()
{
diff --git a/cli_ure/source/uno_bridge/cli_proxy.cxx b/cli_ure/source/uno_bridge/cli_proxy.cxx
index 09bfe60931e8..092cdfc16efe 100644
--- a/cli_ure/source/uno_bridge/cli_proxy.cxx
+++ b/cli_ure/source/uno_bridge/cli_proxy.cxx
@@ -41,16 +41,16 @@ using namespace cli_uno;
extern "C"
{
-//------------------------------------------------------------------------------
+
void SAL_CALL cli_proxy_free( uno_ExtEnvironment * env, void * proxy )
SAL_THROW_EXTERN_C();
-//------------------------------------------------------------------------------
+
void SAL_CALL cli_proxy_acquire( uno_Interface * pUnoI )
SAL_THROW_EXTERN_C();
-//------------------------------------------------------------------------------
+
void SAL_CALL cli_proxy_release( uno_Interface * pUnoI )
SAL_THROW_EXTERN_C();
-//------------------------------------------------------------------------------
+
void SAL_CALL cli_proxy_dispatch(
uno_Interface * pUnoI, typelib_TypeDescription const * member_td,
void * uno_ret, void * uno_args[], uno_Any ** uno_exc )
@@ -911,7 +911,7 @@ inline void CliProxy::acquire() const
#endif
}
}
-//---------------------------------------------------------------------------
+
inline void CliProxy::release() const
{
if (0 == osl_atomic_decrement( &m_ref ))
@@ -947,7 +947,7 @@ void SAL_CALL cli_proxy_acquire( uno_Interface * pUnoI )
CliProxy const * cliProxy = static_cast< CliProxy const * >( pUnoI );
cliProxy->acquire();
}
-//-----------------------------------------------------------------------------
+
extern "C"
void SAL_CALL cli_proxy_release( uno_Interface * pUnoI )
SAL_THROW_EXTERN_C()
@@ -956,7 +956,7 @@ void SAL_CALL cli_proxy_release( uno_Interface * pUnoI )
cliProxy->release();
}
-//------------------------------------------------------------------------------
+
extern "C"
void SAL_CALL cli_proxy_dispatch(
diff --git a/comphelper/source/container/container.cxx b/comphelper/source/container/container.cxx
index d3b440465de0..b04c11aeb8ad 100644
--- a/comphelper/source/container/container.cxx
+++ b/comphelper/source/container/container.cxx
@@ -38,7 +38,7 @@ IndexAccessIterator::IndexAccessIterator(::com::sun::star::uno::Reference< ::com
IndexAccessIterator::~IndexAccessIterator() {}
-//------------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> IndexAccessIterator::Next()
{
bool bCheckingStartingPoint = !m_xCurrentObject.is();
diff --git a/comphelper/source/container/containermultiplexer.cxx b/comphelper/source/container/containermultiplexer.cxx
index 0c14bb3da529..d74b62fff802 100644
--- a/comphelper/source/container/containermultiplexer.cxx
+++ b/comphelper/source/container/containermultiplexer.cxx
@@ -32,14 +32,14 @@ namespace comphelper
//=====================================================================
//= OContainerListener
//=====================================================================
- //---------------------------------------------------------------------
+
OContainerListener::OContainerListener(::osl::Mutex& _rMutex)
:m_pAdapter(NULL)
,m_rMutex(_rMutex)
{
}
- //---------------------------------------------------------------------
+
OContainerListener::~OContainerListener()
{
if (m_pAdapter)
@@ -49,27 +49,27 @@ namespace comphelper
}
}
- //---------------------------------------------------------------------
+
void OContainerListener::_elementInserted( const ContainerEvent& /*_rEvent*/ ) throw(RuntimeException)
{
}
- //---------------------------------------------------------------------
+
void OContainerListener::_elementRemoved( const ContainerEvent& ) throw(RuntimeException)
{
}
- //---------------------------------------------------------------------
+
void OContainerListener::_elementReplaced( const ContainerEvent& /*_rEvent*/ ) throw(RuntimeException)
{
}
- //---------------------------------------------------------------------
+
void OContainerListener::_disposing(const EventObject& ) throw( RuntimeException)
{
}
- //------------------------------------------------------------------
+
void OContainerListener::setAdapter(OContainerListenerAdapter* pAdapter)
{
if (m_pAdapter)
@@ -90,7 +90,7 @@ namespace comphelper
//=====================================================================
//= OContainerListenerAdapter
//=====================================================================
- //---------------------------------------------------------------------
+
OContainerListenerAdapter::OContainerListenerAdapter(OContainerListener* _pListener,
const Reference< XContainer >& _rxContainer)
:m_xContainer(_rxContainer)
@@ -112,12 +112,12 @@ namespace comphelper
::comphelper::decrement(m_refCount);
}
- //---------------------------------------------------------------------
+
OContainerListenerAdapter::~OContainerListenerAdapter()
{
}
- //------------------------------------------------------------------
+
void OContainerListenerAdapter::dispose()
{
if (m_xContainer.is())
@@ -137,7 +137,7 @@ namespace comphelper
}
}
- //------------------------------------------------------------------
+
void SAL_CALL OContainerListenerAdapter::disposing( const EventObject& _rSource) throw(RuntimeException)
{
if (m_pListener)
@@ -154,21 +154,21 @@ namespace comphelper
m_pListener = NULL;
}
- //------------------------------------------------------------------
+
void SAL_CALL OContainerListenerAdapter::elementInserted( const ContainerEvent& _rEvent ) throw(RuntimeException)
{
if (m_pListener && !locked())
m_pListener->_elementInserted(_rEvent);
}
- //------------------------------------------------------------------
+
void SAL_CALL OContainerListenerAdapter::elementRemoved( const ContainerEvent& _rEvent ) throw(RuntimeException)
{
if (m_pListener && !locked())
m_pListener->_elementRemoved(_rEvent);
}
- //------------------------------------------------------------------
+
void SAL_CALL OContainerListenerAdapter::elementReplaced( const ContainerEvent& _rEvent ) throw(RuntimeException)
{
if (m_pListener && !locked())
diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx
index ebe4df1f28ea..c3c321c0835c 100644
--- a/comphelper/source/container/embeddedobjectcontainer.cxx
+++ b/comphelper/source/container/embeddedobjectcontainer.cxx
@@ -1337,7 +1337,7 @@ namespace {
}
}
-// -----------------------------------------------------------------------------
+
bool EmbeddedObjectContainer::StoreAsChildren(bool _bOasisFormat,bool _bCreateEmbedded,const uno::Reference < embed::XStorage >& _xStorage)
{
bool bResult = false;
@@ -1460,7 +1460,7 @@ bool EmbeddedObjectContainer::StoreAsChildren(bool _bOasisFormat,bool _bCreateEm
}
return bResult;
}
-// -----------------------------------------------------------------------------
+
bool EmbeddedObjectContainer::StoreChildren(bool _bOasisFormat,bool _bObjectsOnly)
{
bool bResult = true;
@@ -1580,7 +1580,7 @@ bool EmbeddedObjectContainer::StoreChildren(bool _bOasisFormat,bool _bObjectsOnl
}
return bResult;
}
-// -----------------------------------------------------------------------------
+
uno::Reference< io::XInputStream > EmbeddedObjectContainer::GetGraphicReplacementStream(
sal_Int64 nViewAspect,
const uno::Reference< embed::XEmbeddedObject >& xObj,
@@ -1607,7 +1607,7 @@ uno::Reference< io::XInputStream > EmbeddedObjectContainer::GetGraphicReplacemen
return xInStream;
}
-// -----------------------------------------------------------------------------
+
bool EmbeddedObjectContainer::SetPersistentEntries(const uno::Reference< embed::XStorage >& _xStorage,bool _bClearModifedFlag)
{
bool bError = false;
diff --git a/comphelper/source/container/enumerablemap.cxx b/comphelper/source/container/enumerablemap.cxx
index d2432d2e8cd6..40dc3f5f6dd8 100644
--- a/comphelper/source/container/enumerablemap.cxx
+++ b/comphelper/source/container/enumerablemap.cxx
@@ -132,7 +132,7 @@ namespace comphelper
//====================================================================
//= MapData helpers
//====================================================================
- //--------------------------------------------------------------------
+
static void lcl_registerMapModificationListener( MapData& _mapData, IMapModificationListener& _listener )
{
#if OSL_DEBUG_LEVEL > 0
@@ -147,7 +147,7 @@ namespace comphelper
_mapData.m_aModListeners.push_back( &_listener );
}
- //--------------------------------------------------------------------
+
static void lcl_revokeMapModificationListener( MapData& _mapData, IMapModificationListener& _listener )
{
for ( MapListeners::iterator lookup = _mapData.m_aModListeners.begin();
@@ -164,7 +164,7 @@ namespace comphelper
OSL_FAIL( "lcl_revokeMapModificationListener: the listener is not registered!" );
}
- //--------------------------------------------------------------------
+
static void lcl_notifyMapDataListeners_nothrow( const MapData& _mapData )
{
for ( MapListeners::const_iterator loop = _mapData.m_aModListeners.begin();
@@ -342,14 +342,14 @@ namespace comphelper
//====================================================================
//= EnumerableMap
//====================================================================
- //--------------------------------------------------------------------
+
EnumerableMap::EnumerableMap()
:Map_IFace( m_aMutex )
,ComponentBase( Map_IFace::rBHelper )
{
}
- //--------------------------------------------------------------------
+
EnumerableMap::~EnumerableMap()
{
if ( !impl_isDisposed() )
@@ -359,7 +359,7 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
void SAL_CALL EnumerableMap::initialize( const Sequence< Any >& _arguments ) throw (Exception, RuntimeException)
{
ComponentMethodGuard aGuard( *this, ComponentMethodGuard::WithoutInit );
@@ -407,7 +407,7 @@ namespace comphelper
setInitialized();
}
- //--------------------------------------------------------------------
+
void EnumerableMap::impl_initValues_throw( const Sequence< Pair< Any, Any > >& _initialValues )
{
OSL_PRECOND( m_aData.m_pValues.get() && m_aData.m_pValues->empty(), "EnumerableMap::impl_initValues_throw: illegal call!" );
@@ -423,7 +423,7 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
void EnumerableMap::impl_checkValue_throw( const Any& _value ) const
{
if ( !_value.hasValue() )
@@ -500,7 +500,7 @@ namespace comphelper
impl_checkNaN_throw( _value, m_aData.m_aValueType );
}
- //--------------------------------------------------------------------
+
void EnumerableMap::impl_checkNaN_throw( const Any& _keyOrValue, const Type& _keyOrValueType ) const
{
if ( ( _keyOrValueType.getTypeClass() == TypeClass_DOUBLE )
@@ -518,7 +518,7 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
void EnumerableMap::impl_checkKey_throw( const Any& _key ) const
{
if ( !_key.hasValue() )
@@ -529,7 +529,7 @@ namespace comphelper
impl_checkNaN_throw( _key, m_aData.m_aKeyType );
}
- //--------------------------------------------------------------------
+
void EnumerableMap::impl_checkMutable_throw() const
{
if ( !m_aData.m_bMutable )
@@ -538,42 +538,42 @@ namespace comphelper
*const_cast< EnumerableMap* >( this ) );
}
- //--------------------------------------------------------------------
+
Reference< XEnumeration > SAL_CALL EnumerableMap::createKeyEnumeration( ::sal_Bool _Isolated ) throw (NoSupportException, RuntimeException)
{
ComponentMethodGuard aGuard( *this );
return new MapEnumeration( *this, m_aData, getBroadcastHelper(), eKeys, _Isolated );
}
- //--------------------------------------------------------------------
+
Reference< XEnumeration > SAL_CALL EnumerableMap::createValueEnumeration( ::sal_Bool _Isolated ) throw (NoSupportException, RuntimeException)
{
ComponentMethodGuard aGuard( *this );
return new MapEnumeration( *this, m_aData, getBroadcastHelper(), eValues, _Isolated );
}
- //--------------------------------------------------------------------
+
Reference< XEnumeration > SAL_CALL EnumerableMap::createElementEnumeration( ::sal_Bool _Isolated ) throw (NoSupportException, RuntimeException)
{
ComponentMethodGuard aGuard( *this );
return new MapEnumeration( *this, m_aData, getBroadcastHelper(), eBoth, _Isolated );
}
- //--------------------------------------------------------------------
+
Type SAL_CALL EnumerableMap::getKeyType() throw (RuntimeException)
{
ComponentMethodGuard aGuard( *this );
return m_aData.m_aKeyType;
}
- //--------------------------------------------------------------------
+
Type SAL_CALL EnumerableMap::getValueType() throw (RuntimeException)
{
ComponentMethodGuard aGuard( *this );
return m_aData.m_aValueType;
}
- //--------------------------------------------------------------------
+
void SAL_CALL EnumerableMap::clear( ) throw (NoSupportException, RuntimeException)
{
ComponentMethodGuard aGuard( *this );
@@ -584,7 +584,7 @@ namespace comphelper
lcl_notifyMapDataListeners_nothrow( m_aData );
}
- //--------------------------------------------------------------------
+
::sal_Bool SAL_CALL EnumerableMap::containsKey( const Any& _key ) throw (IllegalTypeException, IllegalArgumentException, RuntimeException)
{
ComponentMethodGuard aGuard( *this );
@@ -594,7 +594,7 @@ namespace comphelper
return ( pos != m_aData.m_pValues->end() );
}
- //--------------------------------------------------------------------
+
::sal_Bool SAL_CALL EnumerableMap::containsValue( const Any& _value ) throw (IllegalTypeException, IllegalArgumentException, RuntimeException)
{
ComponentMethodGuard aGuard( *this );
@@ -611,7 +611,7 @@ namespace comphelper
return sal_False;
}
- //--------------------------------------------------------------------
+
Any SAL_CALL EnumerableMap::get( const Any& _key ) throw (IllegalTypeException, IllegalArgumentException, NoSuchElementException, RuntimeException)
{
ComponentMethodGuard aGuard( *this );
@@ -624,7 +624,7 @@ namespace comphelper
return pos->second;
}
- //--------------------------------------------------------------------
+
Any SAL_CALL EnumerableMap::put( const Any& _key, const Any& _value ) throw (NoSupportException, IllegalTypeException, IllegalArgumentException, RuntimeException)
{
ComponentMethodGuard aGuard( *this );
@@ -650,7 +650,7 @@ namespace comphelper
return previousValue;
}
- //--------------------------------------------------------------------
+
Any SAL_CALL EnumerableMap::remove( const Any& _key ) throw (NoSupportException, IllegalTypeException, IllegalArgumentException, NoSuchElementException, RuntimeException)
{
ComponentMethodGuard aGuard( *this );
@@ -671,20 +671,20 @@ namespace comphelper
return previousValue;
}
- //--------------------------------------------------------------------
+
Type SAL_CALL EnumerableMap::getElementType() throw (RuntimeException)
{
return ::cppu::UnoType< Pair< Any, Any > >::get();
}
- //--------------------------------------------------------------------
+
::sal_Bool SAL_CALL EnumerableMap::hasElements() throw (RuntimeException)
{
ComponentMethodGuard aGuard( *this );
return m_aData.m_pValues->empty();
}
- //--------------------------------------------------------------------
+
OUString SAL_CALL EnumerableMap::getImplementationName( ) throw (RuntimeException)
{
return getImplementationName_static();
@@ -695,19 +695,19 @@ namespace comphelper
return cppu::supportsService(this, _serviceName);
}
- //--------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL EnumerableMap::getSupportedServiceNames( ) throw (RuntimeException)
{
return getSupportedServiceNames_static();
}
- //--------------------------------------------------------------------
+
OUString SAL_CALL EnumerableMap::getImplementationName_static( )
{
return OUString( "org.openoffice.comp.comphelper.EnumerableMap" );
}
- //--------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL EnumerableMap::getSupportedServiceNames_static( )
{
Sequence< OUString > aServiceNames(1);
@@ -715,7 +715,7 @@ namespace comphelper
return aServiceNames;
}
- //--------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL EnumerableMap::Create( SAL_UNUSED_PARAMETER const Reference< XComponentContext >& )
{
return *new EnumerableMap;
@@ -724,7 +724,7 @@ namespace comphelper
//====================================================================
//= MapEnumerator
//====================================================================
- //--------------------------------------------------------------------
+
bool MapEnumerator::hasMoreElements()
{
if ( m_disposed )
@@ -732,7 +732,7 @@ namespace comphelper
return m_mapPos != m_rMapData.m_pValues->end();
}
- //--------------------------------------------------------------------
+
Any MapEnumerator::nextElement()
{
if ( m_disposed )
@@ -751,7 +751,7 @@ namespace comphelper
return aNextElement;
}
- //--------------------------------------------------------------------
+
void MapEnumerator::mapModified()
{
m_disposed = true;
@@ -760,14 +760,14 @@ namespace comphelper
//====================================================================
//= MapEnumeration - implementation
//====================================================================
- //--------------------------------------------------------------------
+
::sal_Bool SAL_CALL MapEnumeration::hasMoreElements( ) throw (RuntimeException)
{
ComponentMethodGuard aGuard( *this );
return m_aEnumerator.hasMoreElements();
}
- //--------------------------------------------------------------------
+
Any SAL_CALL MapEnumeration::nextElement( ) throw (NoSuchElementException, WrappedTargetException, RuntimeException)
{
ComponentMethodGuard aGuard( *this );
diff --git a/comphelper/source/container/enumhelper.cxx b/comphelper/source/container/enumhelper.cxx
index 168cac43e5b9..3eb7a0dc245b 100644
--- a/comphelper/source/container/enumhelper.cxx
+++ b/comphelper/source/container/enumhelper.cxx
@@ -28,7 +28,7 @@ namespace comphelper
//==================================================================
//= OEnumerationByName
//==================================================================
-//------------------------------------------------------------------------------
+
OEnumerationByName::OEnumerationByName(const staruno::Reference<starcontainer::XNameAccess>& _rxAccess)
:m_aNames(_rxAccess->getElementNames())
,m_nPos(0)
@@ -38,7 +38,7 @@ OEnumerationByName::OEnumerationByName(const staruno::Reference<starcontainer::X
impl_startDisposeListening();
}
-//------------------------------------------------------------------------------
+
OEnumerationByName::OEnumerationByName(const staruno::Reference<starcontainer::XNameAccess>& _rxAccess,
const staruno::Sequence< OUString >& _aNames )
:m_aNames(_aNames)
@@ -49,13 +49,13 @@ OEnumerationByName::OEnumerationByName(const staruno::Reference<starcontainer::X
impl_startDisposeListening();
}
-//------------------------------------------------------------------------------
+
OEnumerationByName::~OEnumerationByName()
{
impl_stopDisposeListening();
}
-//------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEnumerationByName::hasMoreElements( ) throw(staruno::RuntimeException)
{
::osl::ResettableMutexGuard aLock(m_aLock);
@@ -72,7 +72,7 @@ sal_Bool SAL_CALL OEnumerationByName::hasMoreElements( ) throw(staruno::Runtime
return sal_False;
}
-//------------------------------------------------------------------------------
+
staruno::Any SAL_CALL OEnumerationByName::nextElement( )
throw(starcontainer::NoSuchElementException, starlang::WrappedTargetException, staruno::RuntimeException)
{
@@ -94,7 +94,7 @@ staruno::Any SAL_CALL OEnumerationByName::nextElement( )
return aRes;
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OEnumerationByName::disposing(const starlang::EventObject& aEvent)
throw(staruno::RuntimeException)
{
@@ -104,7 +104,7 @@ void SAL_CALL OEnumerationByName::disposing(const starlang::EventObject& aEvent)
m_xAccess.clear();
}
-//------------------------------------------------------------------------------
+
void OEnumerationByName::impl_startDisposeListening()
{
::osl::ResettableMutexGuard aLock(m_aLock);
@@ -122,7 +122,7 @@ void OEnumerationByName::impl_startDisposeListening()
--m_refCount;
}
-//------------------------------------------------------------------------------
+
void OEnumerationByName::impl_stopDisposeListening()
{
::osl::ResettableMutexGuard aLock(m_aLock);
@@ -143,7 +143,7 @@ void OEnumerationByName::impl_stopDisposeListening()
//==================================================================
//= OEnumerationByIndex
//==================================================================
-//------------------------------------------------------------------------------
+
OEnumerationByIndex::OEnumerationByIndex(const staruno::Reference< starcontainer::XIndexAccess >& _rxAccess)
:m_nPos(0)
,m_xAccess(_rxAccess)
@@ -152,13 +152,13 @@ OEnumerationByIndex::OEnumerationByIndex(const staruno::Reference< starcontainer
impl_startDisposeListening();
}
-//------------------------------------------------------------------------------
+
OEnumerationByIndex::~OEnumerationByIndex()
{
impl_stopDisposeListening();
}
-//------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEnumerationByIndex::hasMoreElements( ) throw(staruno::RuntimeException)
{
::osl::ResettableMutexGuard aLock(m_aLock);
@@ -175,7 +175,7 @@ sal_Bool SAL_CALL OEnumerationByIndex::hasMoreElements( ) throw(staruno::Runtim
return sal_False;
}
-//------------------------------------------------------------------------------
+
staruno::Any SAL_CALL OEnumerationByIndex::nextElement( )
throw(starcontainer::NoSuchElementException, starlang::WrappedTargetException, staruno::RuntimeException)
{
@@ -197,7 +197,7 @@ staruno::Any SAL_CALL OEnumerationByIndex::nextElement( )
return aRes;
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OEnumerationByIndex::disposing(const starlang::EventObject& aEvent)
throw(staruno::RuntimeException)
{
@@ -207,7 +207,7 @@ void SAL_CALL OEnumerationByIndex::disposing(const starlang::EventObject& aEvent
m_xAccess.clear();
}
-//------------------------------------------------------------------------------
+
void OEnumerationByIndex::impl_startDisposeListening()
{
::osl::ResettableMutexGuard aLock(m_aLock);
@@ -225,7 +225,7 @@ void OEnumerationByIndex::impl_startDisposeListening()
--m_refCount;
}
-//------------------------------------------------------------------------------
+
void OEnumerationByIndex::impl_stopDisposeListening()
{
::osl::ResettableMutexGuard aLock(m_aLock);
@@ -247,19 +247,19 @@ void OEnumerationByIndex::impl_stopDisposeListening()
//= OAnyEnumeration
//==================================================================
-//------------------------------------------------------------------------------
+
OAnyEnumeration::OAnyEnumeration(const staruno::Sequence< staruno::Any >& lItems)
:m_nPos(0)
,m_lItems(lItems)
{
}
-//------------------------------------------------------------------------------
+
OAnyEnumeration::~OAnyEnumeration()
{
}
-//------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OAnyEnumeration::hasMoreElements( ) throw(staruno::RuntimeException)
{
::osl::ResettableMutexGuard aLock(m_aLock);
@@ -267,7 +267,7 @@ sal_Bool SAL_CALL OAnyEnumeration::hasMoreElements( ) throw(staruno::RuntimeExc
return (m_lItems.getLength() > m_nPos);
}
-//------------------------------------------------------------------------------
+
staruno::Any SAL_CALL OAnyEnumeration::nextElement( )
throw(starcontainer::NoSuchElementException, starlang::WrappedTargetException, staruno::RuntimeException)
{
diff --git a/comphelper/source/eventattachermgr/eventattachermgr.cxx b/comphelper/source/eventattachermgr/eventattachermgr.cxx
index 782eb92211bb..c6d531fbdddf 100644
--- a/comphelper/source/eventattachermgr/eventattachermgr.cxx
+++ b/comphelper/source/eventattachermgr/eventattachermgr.cxx
@@ -59,7 +59,7 @@ using namespace osl;
namespace comphelper
{
-//-----------------------------------------------------------------------------
+
struct AttachedObject_Impl
{
Reference< XInterface > xTarget;
@@ -79,7 +79,7 @@ struct AttacherIndex_Impl
bool operator==( const AttacherIndex_Impl & ) const;
};
-//-----------------------------------------------------------------------------
+
class ImplEventAttacherManager
: public WeakImplHelper2< XEventAttacherManager, XPersistObject >
{
@@ -355,7 +355,7 @@ Reference< XEventAttacherManager > createEventAttacherManager( const Reference<
return new ImplEventAttacherManager( xIntrospection, rxContext );
}
-//-----------------------------------------------------------------------------
+
ImplEventAttacherManager::ImplEventAttacherManager( const Reference< XIntrospection > & rIntrospection,
const Reference< XComponentContext > xContext )
: aScriptListeners( aLock )
@@ -383,7 +383,7 @@ ImplEventAttacherManager::ImplEventAttacherManager( const Reference< XIntrospect
}
}
-//-----------------------------------------------------------------------------
+
ImplEventAttacherManager::~ImplEventAttacherManager()
{
}
@@ -400,7 +400,7 @@ Reference< XIdlReflection > ImplEventAttacherManager::getReflection() throw( Exc
}
-//-----------------------------------------------------------------------------
+
::std::deque<AttacherIndex_Impl>::iterator ImplEventAttacherManager::implCheckIndex( sal_Int32 _nIndex ) SAL_THROW ( ( IllegalArgumentException ) )
{
if (_nIndex < 0)
@@ -448,7 +448,7 @@ public:
}
-//-----------------------------------------------------------------------------
+
// Methods of XEventAttacherManager
void SAL_CALL ImplEventAttacherManager::registerScriptEvent
(
@@ -496,7 +496,7 @@ void SAL_CALL ImplEventAttacherManager::registerScriptEvent
}
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL ImplEventAttacherManager::registerScriptEvents
(
sal_Int32 nIndex,
@@ -520,7 +520,7 @@ void SAL_CALL ImplEventAttacherManager::registerScriptEvents
::std::for_each(aList.begin(), aList.end(), AttachObject(*this, nIndex));
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL ImplEventAttacherManager::revokeScriptEvent
(
sal_Int32 nIndex,
@@ -559,7 +559,7 @@ void SAL_CALL ImplEventAttacherManager::revokeScriptEvent
::std::for_each(aList.begin(), aList.end(), AttachObject(*this, nIndex));
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL ImplEventAttacherManager::revokeScriptEvents(sal_Int32 nIndex )
throw( IllegalArgumentException, RuntimeException )
{
@@ -572,7 +572,7 @@ void SAL_CALL ImplEventAttacherManager::revokeScriptEvents(sal_Int32 nIndex )
::std::for_each(aList.begin(), aList.end(), AttachObject(*this, nIndex));
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL ImplEventAttacherManager::insertEntry(sal_Int32 nIndex)
throw( IllegalArgumentException, RuntimeException )
{
@@ -587,7 +587,7 @@ void SAL_CALL ImplEventAttacherManager::insertEntry(sal_Int32 nIndex)
aIndex.insert( aIndex.begin() + nIndex, aTmp );
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL ImplEventAttacherManager::removeEntry(sal_Int32 nIndex)
throw( IllegalArgumentException, RuntimeException )
{
@@ -599,7 +599,7 @@ void SAL_CALL ImplEventAttacherManager::removeEntry(sal_Int32 nIndex)
aIndex.erase( aIt );
}
-//-----------------------------------------------------------------------------
+
Sequence< ScriptEventDescriptor > SAL_CALL ImplEventAttacherManager::getScriptEvents(sal_Int32 nIndex)
throw( IllegalArgumentException, RuntimeException )
{
@@ -620,7 +620,7 @@ Sequence< ScriptEventDescriptor > SAL_CALL ImplEventAttacherManager::getScriptEv
return aSeq;
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL ImplEventAttacherManager::attach(sal_Int32 nIndex, const Reference< XInterface >& xObject, const Any & Helper)
throw( IllegalArgumentException, ServiceNotRegisteredException, RuntimeException )
{
@@ -683,7 +683,7 @@ void SAL_CALL ImplEventAttacherManager::attach(sal_Int32 nIndex, const Reference
}
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL ImplEventAttacherManager::detach(sal_Int32 nIndex, const Reference< XInterface >& xObject)
throw( IllegalArgumentException, RuntimeException )
{
diff --git a/comphelper/source/misc/SelectionMultiplex.cxx b/comphelper/source/misc/SelectionMultiplex.cxx
index e5daf792d2b7..de24434b0a47 100644
--- a/comphelper/source/misc/SelectionMultiplex.cxx
+++ b/comphelper/source/misc/SelectionMultiplex.cxx
@@ -33,20 +33,20 @@ using namespace ::com::sun::star::view;
//========================================================================
//= OSelectionChangeListener
//========================================================================
-//------------------------------------------------------------------------
+
OSelectionChangeListener::~OSelectionChangeListener()
{
if (m_pAdapter)
m_pAdapter->dispose();
}
-//------------------------------------------------------------------
+
void OSelectionChangeListener::_disposing(const EventObject&) throw( RuntimeException)
{
// nothing to do here
}
-//------------------------------------------------------------------
+
void OSelectionChangeListener::setAdapter(OSelectionChangeMultiplexer* pAdapter)
{
if (m_pAdapter)
@@ -67,7 +67,7 @@ void OSelectionChangeListener::setAdapter(OSelectionChangeMultiplexer* pAdapter)
//========================================================================
//= OSelectionChangeMultiplexer
//========================================================================
-//------------------------------------------------------------------
+
OSelectionChangeMultiplexer::OSelectionChangeMultiplexer(OSelectionChangeListener* _pListener, const Reference< XSelectionSupplier>& _rxSet, bool _bAutoReleaseSet)
:m_xSet(_rxSet)
,m_pListener(_pListener)
@@ -84,24 +84,24 @@ OSelectionChangeMultiplexer::OSelectionChangeMultiplexer(OSelectionChangeListene
osl_atomic_decrement(&m_refCount);
}
-//------------------------------------------------------------------
+
OSelectionChangeMultiplexer::~OSelectionChangeMultiplexer()
{
}
-//------------------------------------------------------------------
+
void OSelectionChangeMultiplexer::lock()
{
++m_nLockCount;
}
-//------------------------------------------------------------------
+
void OSelectionChangeMultiplexer::unlock()
{
--m_nLockCount;
}
-//------------------------------------------------------------------
+
void OSelectionChangeMultiplexer::dispose()
{
if (m_bListening)
@@ -121,7 +121,7 @@ void OSelectionChangeMultiplexer::dispose()
}
// XEventListener
-//------------------------------------------------------------------
+
void SAL_CALL OSelectionChangeMultiplexer::disposing( const EventObject& _rSource) throw( RuntimeException)
{
if (m_pListener)
@@ -142,7 +142,7 @@ void SAL_CALL OSelectionChangeMultiplexer::disposing( const EventObject& _rSour
}
// XSelectionChangeListener
-//------------------------------------------------------------------
+
void SAL_CALL OSelectionChangeMultiplexer::selectionChanged( const EventObject& _rEvent ) throw( RuntimeException)
{
if (m_pListener && !locked())
diff --git a/comphelper/source/misc/accessiblecomponenthelper.cxx b/comphelper/source/misc/accessiblecomponenthelper.cxx
index 2fdaf84f12a6..6774302b5afc 100644
--- a/comphelper/source/misc/accessiblecomponenthelper.cxx
+++ b/comphelper/source/misc/accessiblecomponenthelper.cxx
@@ -32,18 +32,18 @@ namespace comphelper
//=====================================================================
//= OCommonAccessibleComponent
//=====================================================================
- //---------------------------------------------------------------------
+
OCommonAccessibleComponent::OCommonAccessibleComponent( IMutex* _pExternalLock )
:OAccessibleContextHelper( _pExternalLock )
{
}
- //---------------------------------------------------------------------
+
OCommonAccessibleComponent::~OCommonAccessibleComponent( )
{
}
- //--------------------------------------------------------------------
+
bool SAL_CALL OCommonAccessibleComponent::containsPoint( const Point& _rPoint ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -54,7 +54,7 @@ namespace comphelper
&& ( _rPoint.Y < aBounds.Height );
}
- //--------------------------------------------------------------------
+
Point SAL_CALL OCommonAccessibleComponent::getLocation( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -62,7 +62,7 @@ namespace comphelper
return Point( aBounds.X, aBounds.Y );
}
- //--------------------------------------------------------------------
+
Point SAL_CALL OCommonAccessibleComponent::getLocationOnScreen( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -82,7 +82,7 @@ namespace comphelper
return aScreenLoc;
}
- //--------------------------------------------------------------------
+
Size SAL_CALL OCommonAccessibleComponent::getSize( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -90,7 +90,7 @@ namespace comphelper
return Size( aBounds.Width, aBounds.Height );
}
- //--------------------------------------------------------------------
+
Rectangle SAL_CALL OCommonAccessibleComponent::getBounds( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -100,42 +100,42 @@ namespace comphelper
//=====================================================================
//= OAccessibleComponentHelper
//=====================================================================
- //---------------------------------------------------------------------
+
OAccessibleComponentHelper::OAccessibleComponentHelper( IMutex* _pExternalLock )
:OCommonAccessibleComponent( _pExternalLock )
{
}
- //--------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( OAccessibleComponentHelper, OCommonAccessibleComponent, OAccessibleComponentHelper_Base )
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OAccessibleComponentHelper, OCommonAccessibleComponent, OAccessibleComponentHelper_Base )
// (order matters: the first is the class name, the second is the class doing the ref counting)
- //--------------------------------------------------------------------
+
sal_Bool SAL_CALL OAccessibleComponentHelper::containsPoint( const Point& _rPoint ) throw (RuntimeException)
{
return OCommonAccessibleComponent::containsPoint( _rPoint );
}
- //--------------------------------------------------------------------
+
Point SAL_CALL OAccessibleComponentHelper::getLocation( ) throw (RuntimeException)
{
return OCommonAccessibleComponent::getLocation( );
}
- //--------------------------------------------------------------------
+
Point SAL_CALL OAccessibleComponentHelper::getLocationOnScreen( ) throw (RuntimeException)
{
return OCommonAccessibleComponent::getLocationOnScreen( );
}
- //--------------------------------------------------------------------
+
Size SAL_CALL OAccessibleComponentHelper::getSize( ) throw (RuntimeException)
{
return OCommonAccessibleComponent::getSize( );
}
- //--------------------------------------------------------------------
+
Rectangle SAL_CALL OAccessibleComponentHelper::getBounds( ) throw (RuntimeException)
{
return OCommonAccessibleComponent::getBounds( );
@@ -144,42 +144,42 @@ namespace comphelper
//=====================================================================
//= OAccessibleExtendedComponentHelper
//=====================================================================
- //---------------------------------------------------------------------
+
OAccessibleExtendedComponentHelper::OAccessibleExtendedComponentHelper( IMutex* _pExternalLock )
:OCommonAccessibleComponent( _pExternalLock )
{
}
- //--------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( OAccessibleExtendedComponentHelper, OCommonAccessibleComponent, OAccessibleExtendedComponentHelper_Base )
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OAccessibleExtendedComponentHelper, OCommonAccessibleComponent, OAccessibleExtendedComponentHelper_Base )
// (order matters: the first is the class name, the second is the class doing the ref counting)
- //--------------------------------------------------------------------
+
sal_Bool SAL_CALL OAccessibleExtendedComponentHelper::containsPoint( const Point& _rPoint ) throw (RuntimeException)
{
return OCommonAccessibleComponent::containsPoint( _rPoint );
}
- //--------------------------------------------------------------------
+
Point SAL_CALL OAccessibleExtendedComponentHelper::getLocation( ) throw (RuntimeException)
{
return OCommonAccessibleComponent::getLocation( );
}
- //--------------------------------------------------------------------
+
Point SAL_CALL OAccessibleExtendedComponentHelper::getLocationOnScreen( ) throw (RuntimeException)
{
return OCommonAccessibleComponent::getLocationOnScreen( );
}
- //--------------------------------------------------------------------
+
Size SAL_CALL OAccessibleExtendedComponentHelper::getSize( ) throw (RuntimeException)
{
return OCommonAccessibleComponent::getSize( );
}
- //--------------------------------------------------------------------
+
Rectangle SAL_CALL OAccessibleExtendedComponentHelper::getBounds( ) throw (RuntimeException)
{
return OCommonAccessibleComponent::getBounds( );
diff --git a/comphelper/source/misc/accessiblecontexthelper.cxx b/comphelper/source/misc/accessiblecontexthelper.cxx
index f4d9df56bc86..d94cd43e1f51 100644
--- a/comphelper/source/misc/accessiblecontexthelper.cxx
+++ b/comphelper/source/misc/accessiblecontexthelper.cxx
@@ -69,7 +69,7 @@ namespace comphelper
}
};
- //---------------------------------------------------------------------
+
inline void OContextHelper_Impl::setCreator( const Reference< XAccessible >& _rAcc )
{
m_aCreator = _rAcc;
@@ -78,7 +78,7 @@ namespace comphelper
//=====================================================================
//= OAccessibleContextHelper
//=====================================================================
- //---------------------------------------------------------------------
+
OAccessibleContextHelper::OAccessibleContextHelper( IMutex* _pExternalLock )
:OAccessibleContextHelper_Base( GetMutex() )
,m_pImpl( NULL )
@@ -88,13 +88,13 @@ namespace comphelper
m_pImpl->setExternalLock( _pExternalLock );
}
- //---------------------------------------------------------------------
+
void OAccessibleContextHelper::forgetExternalLock()
{
m_pImpl->setExternalLock( NULL );
}
- //---------------------------------------------------------------------
+
OAccessibleContextHelper::~OAccessibleContextHelper( )
{
forgetExternalLock();
@@ -107,13 +107,13 @@ namespace comphelper
m_pImpl = NULL;
}
- //---------------------------------------------------------------------
+
IMutex* OAccessibleContextHelper::getExternalLock( )
{
return m_pImpl->getExternalLock();
}
- //---------------------------------------------------------------------
+
void SAL_CALL OAccessibleContextHelper::disposing()
{
// rhbz#1001768: de facto this class is locked by SolarMutex;
@@ -127,7 +127,7 @@ namespace comphelper
}
}
- //---------------------------------------------------------------------
+
void SAL_CALL OAccessibleContextHelper::addAccessibleEventListener( const Reference< XAccessibleEventListener >& _rxListener ) throw (RuntimeException)
{
OMutexGuard aGuard( getExternalLock() );
@@ -150,7 +150,7 @@ namespace comphelper
}
}
- //---------------------------------------------------------------------
+
void SAL_CALL OAccessibleContextHelper::removeAccessibleEventListener( const Reference< XAccessibleEventListener >& _rxListener ) throw (RuntimeException)
{
OMutexGuard aGuard( getExternalLock() );
@@ -175,7 +175,7 @@ namespace comphelper
}
}
- //---------------------------------------------------------------------
+
void SAL_CALL OAccessibleContextHelper::NotifyAccessibleEvent( const sal_Int16 _nEventId,
const Any& _rOldValue, const Any& _rNewValue )
{
@@ -195,20 +195,20 @@ namespace comphelper
AccessibleEventNotifier::addEvent( m_pImpl->getClientId( ), aEvent );
}
- //---------------------------------------------------------------------
+
bool OAccessibleContextHelper::isAlive() const
{
return !GetBroadcastHelper().bDisposed && !GetBroadcastHelper().bInDispose;
}
- //---------------------------------------------------------------------
+
void OAccessibleContextHelper::ensureAlive() const SAL_THROW( ( DisposedException ) )
{
if( !isAlive() )
throw DisposedException();
}
- //---------------------------------------------------------------------
+
void OAccessibleContextHelper::ensureDisposed( )
{
if ( !GetBroadcastHelper().bDisposed )
@@ -219,19 +219,19 @@ namespace comphelper
}
}
- //---------------------------------------------------------------------
+
void OAccessibleContextHelper::lateInit( const Reference< XAccessible >& _rxAccessible )
{
m_pImpl->setCreator( _rxAccessible );
}
- //---------------------------------------------------------------------
+
Reference< XAccessible > OAccessibleContextHelper::getAccessibleCreator( ) const
{
return m_pImpl->getCreator();
}
- //---------------------------------------------------------------------
+
sal_Int32 SAL_CALL OAccessibleContextHelper::getAccessibleIndexInParent( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -277,7 +277,7 @@ namespace comphelper
return nRet;
}
- //---------------------------------------------------------------------
+
Locale SAL_CALL OAccessibleContextHelper::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
// simply ask the parent
@@ -292,7 +292,7 @@ namespace comphelper
return xParentContext->getLocale();
}
- //---------------------------------------------------------------------
+
Reference< XAccessibleContext > OAccessibleContextHelper::implGetParentContext() SAL_THROW( ( RuntimeException ) )
{
Reference< XAccessible > xParent = getAccessibleParent();
diff --git a/comphelper/source/misc/accessibleeventnotifier.cxx b/comphelper/source/misc/accessibleeventnotifier.cxx
index be60fe3d9824..97187c3fb1c4 100644
--- a/comphelper/source/misc/accessibleeventnotifier.cxx
+++ b/comphelper/source/misc/accessibleeventnotifier.cxx
@@ -34,7 +34,7 @@ using namespace ::comphelper;
//=====================================================================
//= AccessibleEventNotifier
//=====================================================================
-//---------------------------------------------------------------------
+
namespace
{
typedef ::std::pair< AccessibleEventNotifier::TClientId,
@@ -148,7 +148,7 @@ namespace comphelper
{
//.........................................................................
- //---------------------------------------------------------------------
+
AccessibleEventNotifier::TClientId AccessibleEventNotifier::registerClient( )
{
::osl::MutexGuard aGuard( lclMutex::get() );
@@ -171,7 +171,7 @@ namespace comphelper
return nNewClientId;
}
- //---------------------------------------------------------------------
+
void AccessibleEventNotifier::revokeClient( const TClientId _nClient )
{
::osl::MutexGuard aGuard( lclMutex::get() );
@@ -187,7 +187,7 @@ namespace comphelper
releaseId(_nClient);
}
- //---------------------------------------------------------------------
+
void AccessibleEventNotifier::revokeClientNotifyDisposing( const TClientId _nClient,
const Reference< XInterface >& _rxEventSource ) SAL_THROW( ( ) )
{
@@ -222,7 +222,7 @@ namespace comphelper
delete pListeners;
}
- //---------------------------------------------------------------------
+
sal_Int32 AccessibleEventNotifier::addEventListener(
const TClientId _nClient, const Reference< XAccessibleEventListener >& _rxListener ) SAL_THROW( ( ) )
{
@@ -239,7 +239,7 @@ namespace comphelper
return aClientPos->second->getLength();
}
- //---------------------------------------------------------------------
+
sal_Int32 AccessibleEventNotifier::removeEventListener(
const TClientId _nClient, const Reference< XAccessibleEventListener >& _rxListener ) SAL_THROW( ( ) )
{
@@ -256,7 +256,7 @@ namespace comphelper
return aClientPos->second->getLength();
}
- //---------------------------------------------------------------------
+
void AccessibleEventNotifier::addEvent( const TClientId _nClient, const AccessibleEventObject& _rEvent ) SAL_THROW( ( ) )
{
Sequence< Reference< XInterface > > aListeners;
diff --git a/comphelper/source/misc/accessiblekeybindinghelper.cxx b/comphelper/source/misc/accessiblekeybindinghelper.cxx
index 752b12fbeaeb..4aadb00f709c 100644
--- a/comphelper/source/misc/accessiblekeybindinghelper.cxx
+++ b/comphelper/source/misc/accessiblekeybindinghelper.cxx
@@ -38,7 +38,7 @@ namespace comphelper
{
}
- // -----------------------------------------------------------------------------
+
OAccessibleKeyBindingHelper::OAccessibleKeyBindingHelper( const OAccessibleKeyBindingHelper& rHelper )
: cppu::WeakImplHelper1<XAccessibleKeyBinding>( rHelper )
@@ -46,13 +46,13 @@ namespace comphelper
{
}
- // -----------------------------------------------------------------------------
+
OAccessibleKeyBindingHelper::~OAccessibleKeyBindingHelper()
{
}
- // -----------------------------------------------------------------------------
+
void OAccessibleKeyBindingHelper::AddKeyBinding( const Sequence< awt::KeyStroke >& rKeyBinding ) throw (RuntimeException)
{
@@ -61,7 +61,7 @@ namespace comphelper
m_aKeyBindings.push_back( rKeyBinding );
}
- // -----------------------------------------------------------------------------
+
void OAccessibleKeyBindingHelper::AddKeyBinding( const awt::KeyStroke& rKeyStroke ) throw (RuntimeException)
{
@@ -72,9 +72,9 @@ namespace comphelper
m_aKeyBindings.push_back( aSeq );
}
- // -----------------------------------------------------------------------------
+
// XAccessibleKeyBinding
- // -----------------------------------------------------------------------------
+
sal_Int32 OAccessibleKeyBindingHelper::getAccessibleKeyBindingCount() throw (RuntimeException)
{
@@ -83,7 +83,7 @@ namespace comphelper
return m_aKeyBindings.size();
}
- // -----------------------------------------------------------------------------
+
Sequence< awt::KeyStroke > OAccessibleKeyBindingHelper::getAccessibleKeyBinding( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -95,7 +95,7 @@ namespace comphelper
return m_aKeyBindings[nIndex];
}
- // -----------------------------------------------------------------------------
+
//..............................................................................
} // namespace comphelper
diff --git a/comphelper/source/misc/accessibleselectionhelper.cxx b/comphelper/source/misc/accessibleselectionhelper.cxx
index ed93e6888a57..7ddb80605bab 100644
--- a/comphelper/source/misc/accessibleselectionhelper.cxx
+++ b/comphelper/source/misc/accessibleselectionhelper.cxx
@@ -32,38 +32,38 @@ namespace comphelper
//=====================================================================
//= OCommonAccessibleSelection
//=====================================================================
- //---------------------------------------------------------------------
+
OCommonAccessibleSelection::OCommonAccessibleSelection( )
{
}
OCommonAccessibleSelection::~OCommonAccessibleSelection() {}
- //--------------------------------------------------------------------
+
void SAL_CALL OCommonAccessibleSelection::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
implSelect( nChildIndex, sal_True );
}
- //--------------------------------------------------------------------
+
bool SAL_CALL OCommonAccessibleSelection::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
return( implIsSelected( nChildIndex ) );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OCommonAccessibleSelection::clearAccessibleSelection( ) throw (RuntimeException)
{
implSelect( ACCESSIBLE_SELECTION_CHILD_ALL, sal_False );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OCommonAccessibleSelection::selectAllAccessibleChildren( ) throw (RuntimeException)
{
implSelect( ACCESSIBLE_SELECTION_CHILD_ALL, sal_True );
}
- //--------------------------------------------------------------------
+
sal_Int32 SAL_CALL OCommonAccessibleSelection::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
sal_Int32 nRet = 0;
@@ -81,7 +81,7 @@ namespace comphelper
return( nRet );
}
- //--------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL OCommonAccessibleSelection::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
Reference< XAccessible > xRet;
@@ -99,7 +99,7 @@ namespace comphelper
return( xRet );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OCommonAccessibleSelection::deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
implSelect( nSelectedChildIndex, sal_False );
@@ -108,65 +108,65 @@ namespace comphelper
//=====================================================================
//= OAccessibleSelectionHelper
//=====================================================================
- //--------------------------------------------------------------------
+
OAccessibleSelectionHelper::OAccessibleSelectionHelper( IMutex* _pExternalLock ) : OAccessibleComponentHelper(_pExternalLock)
{
}
- //--------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( OAccessibleSelectionHelper, OAccessibleComponentHelper, OAccessibleSelectionHelper_Base )
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OAccessibleSelectionHelper, OAccessibleComponentHelper, OAccessibleSelectionHelper_Base )
// (order matters: the first is the class name, the second is the class doing the ref counting)
- //--------------------------------------------------------------------
+
Reference< XAccessibleContext > OAccessibleSelectionHelper::implGetAccessibleContext() throw ( RuntimeException )
{
return( this );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OAccessibleSelectionHelper::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
OCommonAccessibleSelection::selectAccessibleChild( nChildIndex );
}
- //--------------------------------------------------------------------
+
sal_Bool SAL_CALL OAccessibleSelectionHelper::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
return( OCommonAccessibleSelection::isAccessibleChildSelected( nChildIndex ) );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OAccessibleSelectionHelper::clearAccessibleSelection( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
OCommonAccessibleSelection::clearAccessibleSelection();
}
- //--------------------------------------------------------------------
+
void SAL_CALL OAccessibleSelectionHelper::selectAllAccessibleChildren( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
OCommonAccessibleSelection::selectAllAccessibleChildren();
}
- //--------------------------------------------------------------------
+
sal_Int32 SAL_CALL OAccessibleSelectionHelper::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
return( OCommonAccessibleSelection::getSelectedAccessibleChildCount() );
}
- //--------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL OAccessibleSelectionHelper::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
return( OCommonAccessibleSelection::getSelectedAccessibleChild( nSelectedChildIndex ) );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OAccessibleSelectionHelper::deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
diff --git a/comphelper/source/misc/accessibletexthelper.cxx b/comphelper/source/misc/accessibletexthelper.cxx
index d21d7ff3cc41..00a21a7fa1d0 100644
--- a/comphelper/source/misc/accessibletexthelper.cxx
+++ b/comphelper/source/misc/accessibletexthelper.cxx
@@ -48,13 +48,13 @@ namespace comphelper
{
}
- // -----------------------------------------------------------------------------
+
OCommonAccessibleText::~OCommonAccessibleText()
{
}
- // -----------------------------------------------------------------------------
+
Reference < i18n::XBreakIterator > OCommonAccessibleText::implGetBreakIterator()
{
@@ -67,7 +67,7 @@ namespace comphelper
return m_xBreakIter;
}
- // -----------------------------------------------------------------------------
+
Reference < i18n::XCharacterClassification > OCommonAccessibleText::implGetCharacterClassification()
{
@@ -79,28 +79,28 @@ namespace comphelper
return m_xCharClass;
}
- // -----------------------------------------------------------------------------
+
bool OCommonAccessibleText::implIsValidBoundary( i18n::Boundary& rBoundary, sal_Int32 nLength )
{
return ( rBoundary.startPos >= 0 ) && ( rBoundary.startPos < nLength ) && ( rBoundary.endPos >= 0 ) && ( rBoundary.endPos <= nLength );
}
- // -----------------------------------------------------------------------------
+
bool OCommonAccessibleText::implIsValidIndex( sal_Int32 nIndex, sal_Int32 nLength )
{
return ( nIndex >= 0 ) && ( nIndex < nLength );
}
- // -----------------------------------------------------------------------------
+
bool OCommonAccessibleText::implIsValidRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex, sal_Int32 nLength )
{
return ( nStartIndex >= 0 ) && ( nStartIndex <= nLength ) && ( nEndIndex >= 0 ) && ( nEndIndex <= nLength );
}
- // -----------------------------------------------------------------------------
+
void OCommonAccessibleText::implGetGlyphBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex )
{
@@ -131,7 +131,7 @@ namespace comphelper
}
}
- // -----------------------------------------------------------------------------
+
bool OCommonAccessibleText::implGetWordBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex )
{
@@ -164,7 +164,7 @@ namespace comphelper
return bWord;
}
- // -----------------------------------------------------------------------------
+
void OCommonAccessibleText::implGetSentenceBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex )
{
@@ -187,7 +187,7 @@ namespace comphelper
}
}
- // -----------------------------------------------------------------------------
+
void OCommonAccessibleText::implGetParagraphBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex )
{
@@ -213,7 +213,7 @@ namespace comphelper
}
}
- // -----------------------------------------------------------------------------
+
void OCommonAccessibleText::implGetLineBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex )
{
@@ -232,7 +232,7 @@ namespace comphelper
}
}
- // -----------------------------------------------------------------------------
+
sal_Unicode OCommonAccessibleText::getCharacter( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -244,14 +244,14 @@ namespace comphelper
return sText[nIndex];
}
- // -----------------------------------------------------------------------------
+
sal_Int32 OCommonAccessibleText::getCharacterCount() throw (RuntimeException)
{
return implGetText().getLength();
}
- // -----------------------------------------------------------------------------
+
OUString OCommonAccessibleText::getSelectedText() throw (RuntimeException)
{
@@ -272,7 +272,7 @@ namespace comphelper
return sText;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 OCommonAccessibleText::getSelectionStart() throw (RuntimeException)
{
@@ -284,7 +284,7 @@ namespace comphelper
return nStartIndex;
}
- // -----------------------------------------------------------------------------
+
sal_Int32 OCommonAccessibleText::getSelectionEnd() throw (RuntimeException)
{
@@ -296,14 +296,14 @@ namespace comphelper
return nEndIndex;
}
- // -----------------------------------------------------------------------------
+
OUString OCommonAccessibleText::getText() throw (RuntimeException)
{
return implGetText();
}
- // -----------------------------------------------------------------------------
+
OUString OCommonAccessibleText::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -318,7 +318,7 @@ namespace comphelper
return sText.copy( nMinIndex, nMaxIndex - nMinIndex );
}
- // -----------------------------------------------------------------------------
+
TextSegment OCommonAccessibleText::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException)
{
@@ -423,7 +423,7 @@ namespace comphelper
return aResult;
}
- // -----------------------------------------------------------------------------
+
TextSegment OCommonAccessibleText::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException)
{
@@ -548,7 +548,7 @@ namespace comphelper
return aResult;
}
- // -----------------------------------------------------------------------------
+
TextSegment OCommonAccessibleText::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException)
{
@@ -677,7 +677,7 @@ namespace comphelper
return aResult;
}
- // -----------------------------------------------------------------------------
+
bool OCommonAccessibleText::implInitTextChangedEvent(
const OUString& rOldString,
const OUString& rNewString,
@@ -777,21 +777,21 @@ namespace comphelper
{
}
- // -----------------------------------------------------------------------------
+
// XInterface
- // -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( OAccessibleTextHelper, OAccessibleExtendedComponentHelper, OAccessibleTextHelper_Base )
- // -----------------------------------------------------------------------------
+
// XTypeProvider
- // -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OAccessibleTextHelper, OAccessibleExtendedComponentHelper, OAccessibleTextHelper_Base )
- // -----------------------------------------------------------------------------
+
// XAccessibleText
- // -----------------------------------------------------------------------------
+
sal_Unicode OAccessibleTextHelper::getCharacter( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -800,7 +800,7 @@ namespace comphelper
return OCommonAccessibleText::getCharacter( nIndex );
}
- // -----------------------------------------------------------------------------
+
sal_Int32 OAccessibleTextHelper::getCharacterCount() throw (RuntimeException)
{
@@ -809,7 +809,7 @@ namespace comphelper
return OCommonAccessibleText::getCharacterCount();
}
- // -----------------------------------------------------------------------------
+
OUString OAccessibleTextHelper::getSelectedText() throw (RuntimeException)
{
@@ -818,7 +818,7 @@ namespace comphelper
return OCommonAccessibleText::getSelectedText();
}
- // -----------------------------------------------------------------------------
+
sal_Int32 OAccessibleTextHelper::getSelectionStart() throw (RuntimeException)
{
@@ -827,7 +827,7 @@ namespace comphelper
return OCommonAccessibleText::getSelectionStart();
}
- // -----------------------------------------------------------------------------
+
sal_Int32 OAccessibleTextHelper::getSelectionEnd() throw (RuntimeException)
{
@@ -836,7 +836,7 @@ namespace comphelper
return OCommonAccessibleText::getSelectionEnd();
}
- // -----------------------------------------------------------------------------
+
OUString OAccessibleTextHelper::getText() throw (RuntimeException)
{
@@ -845,7 +845,7 @@ namespace comphelper
return OCommonAccessibleText::getText();
}
- // -----------------------------------------------------------------------------
+
OUString OAccessibleTextHelper::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
@@ -854,7 +854,7 @@ namespace comphelper
return OCommonAccessibleText::getTextRange( nStartIndex, nEndIndex );
}
- // -----------------------------------------------------------------------------
+
TextSegment OAccessibleTextHelper::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException)
{
@@ -863,7 +863,7 @@ namespace comphelper
return OCommonAccessibleText::getTextAtIndex( nIndex, aTextType );
}
- // -----------------------------------------------------------------------------
+
TextSegment OAccessibleTextHelper::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException)
{
@@ -872,7 +872,7 @@ namespace comphelper
return OCommonAccessibleText::getTextBeforeIndex( nIndex, aTextType );
}
- // -----------------------------------------------------------------------------
+
TextSegment OAccessibleTextHelper::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException)
{
@@ -881,7 +881,7 @@ namespace comphelper
return OCommonAccessibleText::getTextBehindIndex( nIndex, aTextType );
}
- // -----------------------------------------------------------------------------
+
//..............................................................................
} // namespace comphelper
diff --git a/comphelper/source/misc/accessiblewrapper.cxx b/comphelper/source/misc/accessiblewrapper.cxx
index f189530365f0..47e33392701f 100644
--- a/comphelper/source/misc/accessiblewrapper.cxx
+++ b/comphelper/source/misc/accessiblewrapper.cxx
@@ -37,7 +37,7 @@ namespace comphelper
//=========================================================================
//= OWrappedAccessibleChildrenManager
//=========================================================================
- //--------------------------------------------------------------------
+
struct RemoveEventListener
: public ::std::unary_function< AccessibleMap::value_type, void >
{
@@ -58,7 +58,7 @@ namespace comphelper
}
};
- //--------------------------------------------------------------------
+
struct DisposeMappedChild
: public ::std::unary_function< AccessibleMap::value_type, void >
{
@@ -72,32 +72,32 @@ namespace comphelper
}
};
- //-------------------------------------------------------------------------
+
OWrappedAccessibleChildrenManager::OWrappedAccessibleChildrenManager( const Reference< XComponentContext >& _rxContext )
:m_xContext( _rxContext )
,m_bTransientChildren( true )
{
}
- //-------------------------------------------------------------------------
+
OWrappedAccessibleChildrenManager::~OWrappedAccessibleChildrenManager( )
{
}
- //-------------------------------------------------------------------------
+
void OWrappedAccessibleChildrenManager::setTransientChildren( bool _bSet )
{
m_bTransientChildren = _bSet;
}
- //-------------------------------------------------------------------------
+
void OWrappedAccessibleChildrenManager::setOwningAccessible( const Reference< XAccessible >& _rxAcc )
{
OSL_ENSURE( !m_aOwningAccessible.get().is(), "OWrappedAccessibleChildrenManager::setOwningAccessible: to be called only once!" );
m_aOwningAccessible = WeakReference< XAccessible >( _rxAcc );
}
- //-------------------------------------------------------------------------
+
void OWrappedAccessibleChildrenManager::removeFromCache( const Reference< XAccessible >& _rxKey )
{
AccessibleMap::iterator aRemovedPos = m_aChildrenMap.find( _rxKey );
@@ -111,7 +111,7 @@ namespace comphelper
}
}
- //-------------------------------------------------------------------------
+
void OWrappedAccessibleChildrenManager::invalidateAll( )
{
// remove as event listener from the map elements
@@ -121,7 +121,7 @@ namespace comphelper
m_aChildrenMap.swap( aMap );
}
- //-------------------------------------------------------------------------
+
Reference< XAccessible > OWrappedAccessibleChildrenManager::getAccessibleWrapperFor(
const Reference< XAccessible >& _rxKey, bool _bCreate )
{
@@ -168,7 +168,7 @@ namespace comphelper
return xValue;
}
- //-------------------------------------------------------------------------
+
void OWrappedAccessibleChildrenManager::dispose()
{
// dispose our children
@@ -179,7 +179,7 @@ namespace comphelper
m_aChildrenMap.swap( aMap );
}
- //--------------------------------------------------------------------
+
void OWrappedAccessibleChildrenManager::implTranslateChildEventValue( const Any& _rInValue, Any& _rOutValue )
{
_rOutValue.clear();
@@ -188,7 +188,7 @@ namespace comphelper
_rOutValue <<= getAccessibleWrapperFor( xChild, true );
}
- //-------------------------------------------------------------------------
+
void OWrappedAccessibleChildrenManager::translateAccessibleEvent( const AccessibleEventObject& _rEvent, AccessibleEventObject& _rTranslatedEvent )
{
// just in case we can't translate some of the values:
@@ -242,7 +242,7 @@ namespace comphelper
}
}
- //-------------------------------------------------------------------------
+
void OWrappedAccessibleChildrenManager::handleChildNotification( const AccessibleEventObject& _rEvent )
{
if ( AccessibleEventId::INVALIDATE_ALL_CHILDREN == _rEvent.EventId )
@@ -258,7 +258,7 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
void SAL_CALL OWrappedAccessibleChildrenManager::disposing( const EventObject& _rSource ) throw (RuntimeException)
{
// this should come from one of the inner XAccessible's of our children
@@ -298,7 +298,7 @@ namespace comphelper
//=========================================================================
//= OAccessibleWrapper (implementation)
//=========================================================================
- //-------------------------------------------------------------------------
+
OAccessibleWrapper::OAccessibleWrapper( const Reference< XComponentContext >& _rxContext,
const Reference< XAccessible >& _rxInnerAccessible, const Reference< XAccessible >& _rxParentAccessible )
:OAccessibleWrapper_Base( )
@@ -308,7 +308,7 @@ namespace comphelper
{
}
- //--------------------------------------------------------------------
+
OAccessibleWrapper::~OAccessibleWrapper( )
{
if ( !m_rBHelper.bDisposed )
@@ -318,11 +318,11 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OAccessibleWrapper, OComponentProxyAggregation, OAccessibleWrapper_Base )
IMPLEMENT_FORWARD_REFCOUNT( OAccessibleWrapper, OComponentProxyAggregation )
- //--------------------------------------------------------------------
+
Any OAccessibleWrapper::queryInterface( const Type& _rType ) throw (RuntimeException)
{
// #111089# instead of the inner XAccessible the proxy XAccessible must be returned
@@ -333,19 +333,19 @@ namespace comphelper
return aReturn;
}
- //--------------------------------------------------------------------
+
Reference< XAccessibleContext > OAccessibleWrapper::getContextNoCreate( ) const
{
return (Reference< XAccessibleContext >)m_aContext;
}
- //--------------------------------------------------------------------
+
OAccessibleContextWrapper* OAccessibleWrapper::createAccessibleContext( const Reference< XAccessibleContext >& _rxInnerContext )
{
return new OAccessibleContextWrapper( getComponentContext(), _rxInnerContext, this, m_xParentAccessible );
}
- //--------------------------------------------------------------------
+
Reference< XAccessibleContext > SAL_CALL OAccessibleWrapper::getAccessibleContext( ) throw (RuntimeException)
{
// see if the context is still alive (we cache it)
@@ -368,7 +368,7 @@ namespace comphelper
//=========================================================================
//= OAccessibleWrapper (implementation)
//=========================================================================
- //-------------------------------------------------------------------------
+
OAccessibleContextWrapperHelper::OAccessibleContextWrapperHelper(
const Reference< XComponentContext >& _rxContext,
::cppu::OBroadcastHelper& _rBHelper,
@@ -393,7 +393,7 @@ namespace comphelper
m_pChildMapper->setOwningAccessible( m_xOwningAccessible );
}
- //--------------------------------------------------------------------
+
void OAccessibleContextWrapperHelper::aggregateProxy( oslInterlockedCount& _rRefCount, ::cppu::OWeakObject& _rDelegator )
{
Reference< XComponent > xInnerComponent( m_xInnerContext, UNO_QUERY );
@@ -411,7 +411,7 @@ namespace comphelper
osl_atomic_decrement( &_rRefCount );
}
- //--------------------------------------------------------------------
+
OAccessibleContextWrapperHelper::~OAccessibleContextWrapperHelper( )
{
OSL_ENSURE( m_rBHelper.bDisposed, "OAccessibleContextWrapperHelper::~OAccessibleContextWrapperHelper: you should ensure (in your dtor) that the object is disposed!" );
@@ -420,7 +420,7 @@ namespace comphelper
m_pChildMapper = NULL;
}
- //--------------------------------------------------------------------
+
Any SAL_CALL OAccessibleContextWrapperHelper::queryInterface( const Type& _rType ) throw (RuntimeException)
{
Any aReturn = OComponentProxyAggregationHelper::queryInterface( _rType );
@@ -429,16 +429,16 @@ namespace comphelper
return aReturn;
}
- //--------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OAccessibleContextWrapperHelper, OComponentProxyAggregationHelper, OAccessibleContextWrapperHelper_Base )
- //--------------------------------------------------------------------
+
sal_Int32 SAL_CALL OAccessibleContextWrapperHelper::getAccessibleChildCount( ) throw (RuntimeException)
{
return m_xInnerContext->getAccessibleChildCount();
}
- //--------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL OAccessibleContextWrapperHelper::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
// get the child of the wrapped component
@@ -446,7 +446,7 @@ namespace comphelper
return m_pChildMapper->getAccessibleWrapperFor( xInnerChild );
}
- //--------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > SAL_CALL OAccessibleContextWrapperHelper::getAccessibleRelationSet( ) throw (RuntimeException)
{
return m_xInnerContext->getAccessibleRelationSet();
@@ -454,7 +454,7 @@ namespace comphelper
// to wrap them, too ....
}
- //--------------------------------------------------------------------
+
void SAL_CALL OAccessibleContextWrapperHelper::notifyEvent( const AccessibleEventObject& _rEvent ) throw (RuntimeException)
{
#if OSL_DEBUG_LEVEL > 0
@@ -492,7 +492,7 @@ namespace comphelper
notifyTranslatedEvent( aTranslatedEvent );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OAccessibleContextWrapperHelper::dispose() throw( RuntimeException )
{
::osl::MutexGuard aGuard( m_rBHelper.rMutex );
@@ -510,7 +510,7 @@ namespace comphelper
OComponentProxyAggregationHelper::dispose();
}
- //--------------------------------------------------------------------
+
void SAL_CALL OAccessibleContextWrapperHelper::disposing( const EventObject& _rEvent ) throw (RuntimeException)
{
// simply disambiguate this
@@ -520,13 +520,13 @@ namespace comphelper
//====================================================================
//= OAccessibleContextWrapper
//====================================================================
- //--------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( OAccessibleContextWrapper, OAccessibleContextWrapper_CBase, OAccessibleContextWrapperHelper )
- //--------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OAccessibleContextWrapper, OAccessibleContextWrapper_CBase, OAccessibleContextWrapperHelper )
- //--------------------------------------------------------------------
+
OAccessibleContextWrapper::OAccessibleContextWrapper( const Reference< XComponentContext >& _rxContext,
const Reference< XAccessibleContext >& _rxInnerAccessibleContext, const Reference< XAccessible >& _rxOwningAccessible,
const Reference< XAccessible >& _rxParentAccessible )
@@ -537,79 +537,79 @@ namespace comphelper
aggregateProxy( m_refCount, *this );
}
- //--------------------------------------------------------------------
+
OAccessibleContextWrapper::~OAccessibleContextWrapper()
{
}
- //--------------------------------------------------------------------
+
sal_Int32 SAL_CALL OAccessibleContextWrapper::getAccessibleChildCount( ) throw (RuntimeException)
{
return OAccessibleContextWrapperHelper::getAccessibleChildCount();
}
- //--------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL OAccessibleContextWrapper::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException)
{
return OAccessibleContextWrapperHelper::getAccessibleChild( i );
}
- //--------------------------------------------------------------------
+
Reference< XAccessible > SAL_CALL OAccessibleContextWrapper::getAccessibleParent( ) throw (RuntimeException)
{
return m_xParentAccessible;
}
- //--------------------------------------------------------------------
+
sal_Int32 SAL_CALL OAccessibleContextWrapper::getAccessibleIndexInParent( ) throw (RuntimeException)
{
return m_xInnerContext->getAccessibleIndexInParent();
}
- //--------------------------------------------------------------------
+
sal_Int16 SAL_CALL OAccessibleContextWrapper::getAccessibleRole( ) throw (RuntimeException)
{
return m_xInnerContext->getAccessibleRole();
}
- //--------------------------------------------------------------------
+
OUString SAL_CALL OAccessibleContextWrapper::getAccessibleDescription( ) throw (RuntimeException)
{
return m_xInnerContext->getAccessibleDescription();
}
- //--------------------------------------------------------------------
+
OUString SAL_CALL OAccessibleContextWrapper::getAccessibleName( ) throw (RuntimeException)
{
return m_xInnerContext->getAccessibleName();
}
- //--------------------------------------------------------------------
+
Reference< XAccessibleRelationSet > SAL_CALL OAccessibleContextWrapper::getAccessibleRelationSet( ) throw (RuntimeException)
{
return OAccessibleContextWrapperHelper::getAccessibleRelationSet();
}
- //--------------------------------------------------------------------
+
Reference< XAccessibleStateSet > SAL_CALL OAccessibleContextWrapper::getAccessibleStateSet( ) throw (RuntimeException)
{
return m_xInnerContext->getAccessibleStateSet();
}
- //--------------------------------------------------------------------
+
Locale SAL_CALL OAccessibleContextWrapper::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
return m_xInnerContext->getLocale();
}
- //--------------------------------------------------------------------
+
void OAccessibleContextWrapper::notifyTranslatedEvent( const AccessibleEventObject& _rEvent ) throw (RuntimeException)
{
if ( m_nNotifierClient )
AccessibleEventNotifier::addEvent( m_nNotifierClient, _rEvent );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OAccessibleContextWrapper::addAccessibleEventListener( const Reference< XAccessibleEventListener >& _rxListener ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -618,7 +618,7 @@ namespace comphelper
AccessibleEventNotifier::addEventListener( m_nNotifierClient, _rxListener );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OAccessibleContextWrapper::removeAccessibleEventListener( const Reference< XAccessibleEventListener >& _rxListener ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -633,7 +633,7 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
void SAL_CALL OAccessibleContextWrapper::disposing() throw (RuntimeException)
{
AccessibleEventNotifier::TClientId nClientId( 0 );
@@ -659,7 +659,7 @@ namespace comphelper
AccessibleEventNotifier::revokeClientNotifyDisposing( nClientId, *this );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OAccessibleContextWrapper::dispose() throw( RuntimeException )
{
// simply disambiguate
diff --git a/comphelper/source/misc/accimplaccess.cxx b/comphelper/source/misc/accimplaccess.cxx
index b84853a27e25..c910f43e1e10 100644
--- a/comphelper/source/misc/accimplaccess.cxx
+++ b/comphelper/source/misc/accimplaccess.cxx
@@ -52,38 +52,38 @@ namespace comphelper
//=====================================================================
//= OAccessibleImplementationAccess
//=====================================================================
- //---------------------------------------------------------------------
+
OAccessibleImplementationAccess::OAccessibleImplementationAccess( )
:m_pImpl( new OAccImpl_Impl )
{
}
- //---------------------------------------------------------------------
+
OAccessibleImplementationAccess::~OAccessibleImplementationAccess( )
{
delete m_pImpl;
m_pImpl = NULL;
}
- //---------------------------------------------------------------------
+
Reference< XAccessible > OAccessibleImplementationAccess::implGetForeignControlledParent( ) const
{
return m_pImpl->m_xAccParent;
}
- //---------------------------------------------------------------------
+
void OAccessibleImplementationAccess::setAccessibleParent( const Reference< XAccessible >& _rxAccParent )
{
m_pImpl->m_xAccParent = _rxAccParent;
}
- //---------------------------------------------------------------------
+
sal_Int64 OAccessibleImplementationAccess::implGetForeignControlledStates( ) const
{
return m_pImpl->m_nForeignControlledStates;
}
- //---------------------------------------------------------------------
+
void OAccessibleImplementationAccess::setStateBit( const sal_Int16 _nState, const sal_Bool _bSet )
{
OSL_ENSURE( _nState >= 0 && static_cast< sal_uInt16 >(_nState) < sizeof( sal_Int64 ) * 8, "OAccessibleImplementationAccess::setStateBit: no more bits (shutting down the universe now)!" );
@@ -98,14 +98,14 @@ namespace comphelper
namespace { struct lcl_ImplId : public rtl::Static< ::cppu::OImplementationId, lcl_ImplId > {}; }
- //---------------------------------------------------------------------
+
const Sequence< sal_Int8 > OAccessibleImplementationAccess::getUnoTunnelImplementationId()
{
::cppu::OImplementationId &rID = lcl_ImplId::get();
return rID.getImplementationId();
}
- //---------------------------------------------------------------------
+
sal_Int64 SAL_CALL OAccessibleImplementationAccess::getSomething( const Sequence< sal_Int8 >& _rIdentifier ) throw (RuntimeException)
{
sal_Int64 nReturn( 0 );
@@ -118,7 +118,7 @@ namespace comphelper
return nReturn;
}
- //---------------------------------------------------------------------
+
OAccessibleImplementationAccess* OAccessibleImplementationAccess::getImplementation( const Reference< XAccessibleContext >& _rxComponent )
{
OAccessibleImplementationAccess* pImplementation = NULL;
@@ -138,7 +138,7 @@ namespace comphelper
return pImplementation;
}
- //---------------------------------------------------------------------
+
bool OAccessibleImplementationAccess::setAccessibleParent(
const Reference< XAccessibleContext >& _rxComponent, const Reference< XAccessible >& _rxNewParent )
{
diff --git a/comphelper/source/misc/anycompare.cxx b/comphelper/source/misc/anycompare.cxx
index 30e805a791fc..9d1c1642002f 100644
--- a/comphelper/source/misc/anycompare.cxx
+++ b/comphelper/source/misc/anycompare.cxx
@@ -175,7 +175,7 @@ namespace comphelper
}
};
- //------------------------------------------------------------------------------------------------------------------
+
::std::auto_ptr< IKeyPredicateLess > getStandardLessPredicate( Type const & i_type, Reference< XCollator > const & i_collator )
{
SAL_WNODEPRECATED_DECLARATIONS_PUSH
diff --git a/comphelper/source/misc/anytostring.cxx b/comphelper/source/misc/anytostring.cxx
index 12f646ca884d..5fa3028aba0c 100644
--- a/comphelper/source/misc/anytostring.cxx
+++ b/comphelper/source/misc/anytostring.cxx
@@ -52,7 +52,7 @@ inline void appendChar( OUStringBuffer & buf, sal_Unicode c )
}
}
-//------------------------------------------------------------------------------
+
void appendValue( OUStringBuffer & buf,
void const * val, typelib_TypeDescriptionReference * typeRef,
bool prependType )
diff --git a/comphelper/source/misc/asyncnotification.cxx b/comphelper/source/misc/asyncnotification.cxx
index 8b1d81a804d1..897a840b9841 100644
--- a/comphelper/source/misc/asyncnotification.cxx
+++ b/comphelper/source/misc/asyncnotification.cxx
@@ -36,24 +36,24 @@ namespace comphelper
//====================================================================
//= AnyEvent
//====================================================================
- //--------------------------------------------------------------------
+
AnyEvent::AnyEvent()
:m_refCount( 0 )
{
}
- //--------------------------------------------------------------------
+
AnyEvent::~AnyEvent()
{
}
- //--------------------------------------------------------------------
+
oslInterlockedCount SAL_CALL AnyEvent::acquire()
{
return osl_atomic_increment( &m_refCount );
}
- //--------------------------------------------------------------------
+
oslInterlockedCount SAL_CALL AnyEvent::release()
{
if ( 0 == osl_atomic_decrement( &m_refCount ) )
@@ -132,18 +132,18 @@ namespace comphelper
//====================================================================
//= AsyncEventNotifier
//====================================================================
- //--------------------------------------------------------------------
+
AsyncEventNotifier::AsyncEventNotifier(char const * name):
Thread(name), m_pImpl(new EventNotifierImpl)
{
}
- //--------------------------------------------------------------------
+
AsyncEventNotifier::~AsyncEventNotifier()
{
}
- //--------------------------------------------------------------------
+
void AsyncEventNotifier::removeEventsForProcessor( const ::rtl::Reference< IEventProcessor >& _xProcessor )
{
::osl::MutexGuard aGuard( m_pImpl->aMutex );
@@ -156,7 +156,7 @@ namespace comphelper
m_pImpl->m_aDeadProcessors.insert( _xProcessor );
}
- //--------------------------------------------------------------------
+
void SAL_CALL AsyncEventNotifier::terminate()
{
::osl::MutexGuard aGuard( m_pImpl->aMutex );
@@ -168,7 +168,7 @@ namespace comphelper
m_pImpl->aPendingActions.set();
}
- //--------------------------------------------------------------------
+
void AsyncEventNotifier::addEvent( const AnyEventRef& _rEvent, const ::rtl::Reference< IEventProcessor >& _xProcessor )
{
::osl::MutexGuard aGuard( m_pImpl->aMutex );
@@ -181,7 +181,7 @@ namespace comphelper
m_pImpl->aPendingActions.set();
}
- //--------------------------------------------------------------------
+
void AsyncEventNotifier::execute()
{
do
diff --git a/comphelper/source/misc/comphelper_services.cxx b/comphelper/source/misc/comphelper_services.cxx
index 2e4699ef5710..4fff696dbd45 100644
--- a/comphelper/source/misc/comphelper_services.cxx
+++ b/comphelper/source/misc/comphelper_services.cxx
@@ -22,7 +22,7 @@
#include <rtl/instance.hxx>
-//--------------------------------------------------------------------
+
extern void createRegistryInfo_OPropertyBag();
extern void createRegistryInfo_SequenceOutputStream();
extern void createRegistryInfo_SequenceInputStream();
diff --git a/comphelper/source/misc/componentbase.cxx b/comphelper/source/misc/componentbase.cxx
index d5066fbbbf65..0d13cf26f87a 100644
--- a/comphelper/source/misc/componentbase.cxx
+++ b/comphelper/source/misc/componentbase.cxx
@@ -36,21 +36,21 @@ namespace comphelper
//====================================================================
//= ComponentBase
//====================================================================
- //--------------------------------------------------------------------
+
void ComponentBase::impl_checkDisposed_throw() const
{
if ( m_rBHelper.bDisposed )
throw DisposedException( OUString(), getComponent() );
}
- //--------------------------------------------------------------------
+
void ComponentBase::impl_checkInitialized_throw() const
{
if ( !m_bInitialized )
throw NotInitializedException( OUString(), getComponent() );
}
- //--------------------------------------------------------------------
+
Reference< XInterface > ComponentBase::getComponent() const
{
return NULL;
diff --git a/comphelper/source/misc/componentmodule.cxx b/comphelper/source/misc/componentmodule.cxx
index a35a6779cb9d..4b1c44fcd045 100644
--- a/comphelper/source/misc/componentmodule.cxx
+++ b/comphelper/source/misc/componentmodule.cxx
@@ -54,12 +54,12 @@ namespace comphelper
~OModuleImpl();
};
- //-------------------------------------------------------------------------
+
OModuleImpl::OModuleImpl()
{
}
- //-------------------------------------------------------------------------
+
OModuleImpl::~OModuleImpl()
{
}
@@ -67,7 +67,7 @@ namespace comphelper
//=========================================================================
//= OModule
//=========================================================================
- //-------------------------------------------------------------------------
+
OModule::OModule()
: m_nClients(0)
, m_pImpl(new OModuleImpl)
@@ -79,7 +79,7 @@ namespace comphelper
delete m_pImpl;
}
- //-------------------------------------------------------------------------
+
void OModule::registerClient( OModule::ClientAccess )
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -87,7 +87,7 @@ namespace comphelper
onFirstClient();
}
- //-------------------------------------------------------------------------
+
void OModule::revokeClient( OModule::ClientAccess )
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -95,17 +95,17 @@ namespace comphelper
onLastClient();
}
- //--------------------------------------------------------------------------
+
void OModule::onFirstClient()
{
}
- //--------------------------------------------------------------------------
+
void OModule::onLastClient()
{
}
- //--------------------------------------------------------------------------
+
void OModule::registerImplementation( const ComponentDescription& _rComp )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -115,7 +115,7 @@ namespace comphelper
m_pImpl->m_aRegisteredComponents.push_back( _rComp );
}
- //--------------------------------------------------------------------------
+
void OModule::registerImplementation( const OUString& _rImplementationName, const ::com::sun::star::uno::Sequence< OUString >& _rServiceNames,
::cppu::ComponentFactoryFunc _pCreateFunction, FactoryInstantiation _pFactoryFunction )
{
@@ -123,7 +123,7 @@ namespace comphelper
registerImplementation( aComponent );
}
- //--------------------------------------------------------------------------
+
void* OModule::getComponentFactory( const sal_Char* _pImplementationName )
{
Reference< XInterface > xFactory( getComponentFactory(
@@ -131,7 +131,7 @@ namespace comphelper
return xFactory.get();
}
- //--------------------------------------------------------------------------
+
Reference< XInterface > OModule::getComponentFactory( const OUString& _rImplementationName )
{
Reference< XInterface > xReturn;
diff --git a/comphelper/source/misc/configurationhelper.cxx b/comphelper/source/misc/configurationhelper.cxx
index 4cb1cb1c812f..837fd5de3e86 100644
--- a/comphelper/source/misc/configurationhelper.cxx
+++ b/comphelper/source/misc/configurationhelper.cxx
@@ -28,7 +28,7 @@
namespace comphelper{
-//-----------------------------------------------
+
css::uno::Reference< css::uno::XInterface > ConfigurationHelper::openConfig(const css::uno::Reference< css::uno::XComponentContext >& rxContext,
const OUString& sPackage,
sal_Int32 eMode )
@@ -74,7 +74,7 @@ css::uno::Reference< css::uno::XInterface > ConfigurationHelper::openConfig(cons
return xCFG;
}
-//-----------------------------------------------
+
css::uno::Any ConfigurationHelper::readRelativeKey(const css::uno::Reference< css::uno::XInterface > xCFG ,
const OUString& sRelPath,
const OUString& sKey )
@@ -97,7 +97,7 @@ css::uno::Any ConfigurationHelper::readRelativeKey(const css::uno::Reference< cs
return xProps->getPropertyValue(sKey);
}
-//-----------------------------------------------
+
void ConfigurationHelper::writeRelativeKey(const css::uno::Reference< css::uno::XInterface > xCFG ,
const OUString& sRelPath,
const OUString& sKey ,
@@ -121,7 +121,7 @@ void ConfigurationHelper::writeRelativeKey(const css::uno::Reference< css::uno::
xProps->setPropertyValue(sKey, aValue);
}
-//-----------------------------------------------
+
css::uno::Reference< css::uno::XInterface > ConfigurationHelper::makeSureSetNodeExists(const css::uno::Reference< css::uno::XInterface > xCFG ,
const OUString& sRelPathToSet,
const OUString& sSetNode )
@@ -155,7 +155,7 @@ css::uno::Reference< css::uno::XInterface > ConfigurationHelper::makeSureSetNode
return xNode;
}
-//-----------------------------------------------
+
css::uno::Any ConfigurationHelper::readDirectKey(const css::uno::Reference< css::uno::XComponentContext >& rxContext,
const OUString& sPackage,
const OUString& sRelPath,
@@ -166,7 +166,7 @@ css::uno::Any ConfigurationHelper::readDirectKey(const css::uno::Reference< css:
return ConfigurationHelper::readRelativeKey(xCFG, sRelPath, sKey);
}
-//-----------------------------------------------
+
void ConfigurationHelper::writeDirectKey(const css::uno::Reference< css::uno::XComponentContext >& rxContext,
const OUString& sPackage,
const OUString& sRelPath,
@@ -179,7 +179,7 @@ void ConfigurationHelper::writeDirectKey(const css::uno::Reference< css::uno::XC
ConfigurationHelper::flush(xCFG);
}
-//-----------------------------------------------
+
void ConfigurationHelper::flush(const css::uno::Reference< css::uno::XInterface >& xCFG)
{
css::uno::Reference< css::util::XChangesBatch > xBatch(xCFG, css::uno::UNO_QUERY_THROW);
diff --git a/comphelper/source/misc/documentinfo.cxx b/comphelper/source/misc/documentinfo.cxx
index a436575fda7a..617455ee6cbf 100644
--- a/comphelper/source/misc/documentinfo.cxx
+++ b/comphelper/source/misc/documentinfo.cxx
@@ -71,7 +71,7 @@ namespace comphelper {
//====================================================================
//= DocumentInfo
//====================================================================
- //--------------------------------------------------------------------
+
OUString DocumentInfo::getDocumentTitle( const Reference< XModel >& _rxDocument )
{
OUString sTitle;
diff --git a/comphelper/source/misc/documentiologring.cxx b/comphelper/source/misc/documentiologring.cxx
index 5c588bbd1540..f9a97f064504 100644
--- a/comphelper/source/misc/documentiologring.cxx
+++ b/comphelper/source/misc/documentiologring.cxx
@@ -31,7 +31,7 @@ using namespace ::com::sun::star;
namespace comphelper
{
-// ----------------------------------------------------------
+
OSimpleLogRing::OSimpleLogRing()
: m_aMessages( SIMPLELOGRING_SIZE )
, m_bInitialized( false )
@@ -40,12 +40,12 @@ OSimpleLogRing::OSimpleLogRing()
{
}
-// ----------------------------------------------------------
+
OSimpleLogRing::~OSimpleLogRing()
{
}
-// ----------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL OSimpleLogRing::getSupportedServiceNames_static()
{
uno::Sequence< OUString > aResult( 1 );
@@ -53,32 +53,32 @@ uno::Sequence< OUString > SAL_CALL OSimpleLogRing::getSupportedServiceNames_stat
return aResult;
}
-// ----------------------------------------------------------
+
OUString SAL_CALL OSimpleLogRing::getImplementationName_static()
{
return OUString( "com.sun.star.comp.logging.SimpleLogRing" );
}
-// ----------------------------------------------------------
+
OUString SAL_CALL OSimpleLogRing::getSingletonName_static()
{
return OUString( "com.sun.star.logging.DocumentIOLogRing" );
}
-// ----------------------------------------------------------
+
OUString SAL_CALL OSimpleLogRing::getServiceName_static()
{
return OUString( "com.sun.star.logging.SimpleLogRing" );
}
-// ----------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL OSimpleLogRing::Create( SAL_UNUSED_PARAMETER const uno::Reference< uno::XComponentContext >& )
{
return static_cast< cppu::OWeakObject* >( new OSimpleLogRing );
}
// XSimpleLogRing
-// ----------------------------------------------------------
+
void SAL_CALL OSimpleLogRing::logString( const OUString& aMessage ) throw (uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -94,7 +94,7 @@ void SAL_CALL OSimpleLogRing::logString( const OUString& aMessage ) throw (uno::
m_bInitialized = true;
}
-// ----------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL OSimpleLogRing::getCollectedLog() throw (uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -113,7 +113,7 @@ uno::Sequence< OUString > SAL_CALL OSimpleLogRing::getCollectedLog() throw (uno:
}
// XInitialization
-// ----------------------------------------------------------
+
void SAL_CALL OSimpleLogRing::initialize( const uno::Sequence< uno::Any >& aArguments ) throw (uno::Exception, uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
diff --git a/comphelper/source/misc/ihwrapnofilter.cxx b/comphelper/source/misc/ihwrapnofilter.cxx
index f16fc51d9b72..223d46893861 100644
--- a/comphelper/source/misc/ihwrapnofilter.cxx
+++ b/comphelper/source/misc/ihwrapnofilter.cxx
@@ -29,7 +29,7 @@ namespace comphelper
using namespace ::com::sun::star;
- //----------------------------------------------------------------------------------------------------
+
OIHWrapNoFilterDialog::OIHWrapNoFilterDialog( uno::Reference< task::XInteractionHandler > xInteraction )
:m_xInter( xInteraction )
{
@@ -39,7 +39,7 @@ namespace comphelper
{
}
- //----------------------------------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL OIHWrapNoFilterDialog::impl_staticGetSupportedServiceNames()
{
uno::Sequence< OUString > aRet(1);
@@ -52,9 +52,9 @@ namespace comphelper
return OUString("com.sun.star.comp.task.InteractionHandlerWrapper");
}
- //----------------------------------------------------------------------------------------------------
+
// XInteractionHandler
- //----------------------------------------------------------------------------------------------------
+
void SAL_CALL OIHWrapNoFilterDialog::handle( const uno::Reference< task::XInteractionRequest >& xRequest)
throw( com::sun::star::uno::RuntimeException )
{
@@ -69,9 +69,9 @@ namespace comphelper
m_xInter->handle( xRequest );
}
- //----------------------------------------------------------------------------------------------------
+
// XInteractionHandler2
- //----------------------------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OIHWrapNoFilterDialog::handleInteractionRequest( const uno::Reference< task::XInteractionRequest >& xRequest)
throw( com::sun::star::uno::RuntimeException )
{
@@ -89,9 +89,9 @@ namespace comphelper
}
}
- //----------------------------------------------------------------------------------------------------
+
// XInitialization
- //----------------------------------------------------------------------------------------------------
+
void SAL_CALL OIHWrapNoFilterDialog::initialize( const uno::Sequence< uno::Any >& )
throw ( uno::Exception,
uno::RuntimeException,
diff --git a/comphelper/source/misc/instancelocker.cxx b/comphelper/source/misc/instancelocker.cxx
index 8e648c2c1e0b..4563ac21f2f4 100644
--- a/comphelper/source/misc/instancelocker.cxx
+++ b/comphelper/source/misc/instancelocker.cxx
@@ -38,7 +38,7 @@ using namespace ::com::sun::star;
// OInstanceLocker
// ====================================================================
-// --------------------------------------------------------
+
OInstanceLocker::OInstanceLocker( const uno::Reference< uno::XComponentContext >& xContext )
: m_xContext( xContext )
, m_pLockListener( NULL )
@@ -48,7 +48,7 @@ OInstanceLocker::OInstanceLocker( const uno::Reference< uno::XComponentContext >
{
}
-// --------------------------------------------------------
+
OInstanceLocker::~OInstanceLocker()
{
if ( !m_bDisposed )
@@ -69,7 +69,7 @@ OInstanceLocker::~OInstanceLocker()
}
// XComponent
-// --------------------------------------------------------
+
void SAL_CALL OInstanceLocker::dispose()
throw (uno::RuntimeException)
{
@@ -95,7 +95,7 @@ void SAL_CALL OInstanceLocker::dispose()
m_bDisposed = true;
}
-// --------------------------------------------------------
+
void SAL_CALL OInstanceLocker::addEventListener( const uno::Reference< lang::XEventListener >& xListener )
throw (uno::RuntimeException)
{
@@ -109,7 +109,7 @@ void SAL_CALL OInstanceLocker::addEventListener( const uno::Reference< lang::XEv
m_pListenersContainer->addInterface( xListener );
}
-// --------------------------------------------------------
+
void SAL_CALL OInstanceLocker::removeEventListener( const uno::Reference< lang::XEventListener >& xListener )
throw (uno::RuntimeException)
{
@@ -119,7 +119,7 @@ void SAL_CALL OInstanceLocker::removeEventListener( const uno::Reference< lang::
}
// XInitialization
-// --------------------------------------------------------
+
void SAL_CALL OInstanceLocker::initialize( const uno::Sequence< uno::Any >& aArguments )
throw (uno::Exception, uno::RuntimeException)
{
@@ -208,20 +208,20 @@ uno::Sequence< OUString > SAL_CALL OInstanceLocker::getSupportedServiceNames()
}
// Static methods
-// --------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL OInstanceLocker::getSupportedServiceNames_static()
{
const OUString aServiceName( "com.sun.star.embed.InstanceLocker" );
return uno::Sequence< OUString >( &aServiceName, 1 );
}
-// --------------------------------------------------------
+
OUString SAL_CALL OInstanceLocker::getImplementationName_static()
{
return OUString( "com.sun.star.comp.embed.InstanceLocker" );
}
-// --------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL OInstanceLocker::Create(
const uno::Reference< uno::XComponentContext >& rxContext )
{
@@ -234,7 +234,7 @@ uno::Reference< uno::XInterface > SAL_CALL OInstanceLocker::Create(
// OLockListener
// ====================================================================
-// --------------------------------------------------------
+
OLockListener::OLockListener( const uno::WeakReference< lang::XComponent >& xWrapper,
const uno::Reference< uno::XInterface >& xInstance,
sal_Int32 nMode,
@@ -248,12 +248,12 @@ OLockListener::OLockListener( const uno::WeakReference< lang::XComponent >& xWra
{
}
-// --------------------------------------------------------
+
OLockListener::~OLockListener()
{
}
-// --------------------------------------------------------
+
void OLockListener::Dispose()
{
::osl::ResettableMutexGuard aGuard( m_aMutex );
@@ -293,7 +293,7 @@ void OLockListener::Dispose()
}
// XEventListener
-// --------------------------------------------------------
+
void SAL_CALL OLockListener::disposing( const lang::EventObject& aEvent )
throw (uno::RuntimeException)
{
@@ -318,7 +318,7 @@ void SAL_CALL OLockListener::disposing( const lang::EventObject& aEvent )
// XCloseListener
-// --------------------------------------------------------
+
void SAL_CALL OLockListener::queryClosing( const lang::EventObject& aEvent, sal_Bool )
throw (util::CloseVetoException, uno::RuntimeException)
{
@@ -348,7 +348,7 @@ void SAL_CALL OLockListener::queryClosing( const lang::EventObject& aEvent, sal_
}
}
-// --------------------------------------------------------
+
void SAL_CALL OLockListener::notifyClosing( const lang::EventObject& aEvent )
throw (uno::RuntimeException)
{
@@ -379,7 +379,7 @@ void SAL_CALL OLockListener::notifyClosing( const lang::EventObject& aEvent )
// XTerminateListener
-// --------------------------------------------------------
+
void SAL_CALL OLockListener::queryTermination( const lang::EventObject& aEvent )
throw (frame::TerminationVetoException, uno::RuntimeException)
{
@@ -408,7 +408,7 @@ void SAL_CALL OLockListener::queryTermination( const lang::EventObject& aEvent )
}
}
-// --------------------------------------------------------
+
void SAL_CALL OLockListener::notifyTermination( const lang::EventObject& aEvent )
throw (uno::RuntimeException)
{
@@ -444,7 +444,7 @@ void SAL_CALL OLockListener::notifyTermination( const lang::EventObject& aEvent
// XInitialization
-// --------------------------------------------------------
+
bool OLockListener::Init()
{
::osl::ResettableMutexGuard aGuard( m_aMutex );
diff --git a/comphelper/source/misc/interaction.cxx b/comphelper/source/misc/interaction.cxx
index 916858317bab..30d7bdb33cd3 100644
--- a/comphelper/source/misc/interaction.cxx
+++ b/comphelper/source/misc/interaction.cxx
@@ -31,13 +31,13 @@ namespace comphelper
//=========================================================================
//= OInteractionPassword
//=========================================================================
- //--------------------------------------------------------------------
+
void SAL_CALL OInteractionPassword::setPassword( const OUString& _Password ) throw (RuntimeException)
{
m_sPassword = _Password;
}
- //--------------------------------------------------------------------
+
OUString SAL_CALL OInteractionPassword::getPassword( ) throw (RuntimeException)
{
return m_sPassword;
@@ -46,13 +46,13 @@ namespace comphelper
//=========================================================================
//= OInteractionRequest
//=========================================================================
- //-------------------------------------------------------------------------
+
OInteractionRequest::OInteractionRequest(const Any& _rRequestDescription)
:m_aRequest(_rRequestDescription)
{
}
- //-------------------------------------------------------------------------
+
void OInteractionRequest::addContinuation(const Reference< XInteractionContinuation >& _rxContinuation)
{
OSL_ENSURE(_rxContinuation.is(), "OInteractionRequest::addContinuation: invalid argument!");
@@ -64,13 +64,13 @@ namespace comphelper
}
}
- //-------------------------------------------------------------------------
+
Any SAL_CALL OInteractionRequest::getRequest( ) throw(RuntimeException)
{
return m_aRequest;
}
- //-------------------------------------------------------------------------
+
Sequence< Reference< XInteractionContinuation > > SAL_CALL OInteractionRequest::getContinuations( ) throw(RuntimeException)
{
return m_aContinuations;
diff --git a/comphelper/source/misc/listenernotification.cxx b/comphelper/source/misc/listenernotification.cxx
index 8947b6003b6f..6368e5a7dc16 100644
--- a/comphelper/source/misc/listenernotification.cxx
+++ b/comphelper/source/misc/listenernotification.cxx
@@ -32,7 +32,7 @@ namespace comphelper
//====================================================================
//= OListenerContainer
//====================================================================
- //--------------------------------------------------------------------
+
OListenerContainer::OListenerContainer( ::osl::Mutex& _rMutex )
:m_aListeners( _rMutex )
{
@@ -40,7 +40,7 @@ namespace comphelper
OListenerContainer::~OListenerContainer() {}
- //--------------------------------------------------------------------
+
void OListenerContainer::impl_addListener( const Reference< XEventListener >& _rxListener )
{
OSL_PRECOND( _rxListener.is(), "OListenerContainer::impl_addListener: a NULL listener?!" );
@@ -48,7 +48,7 @@ namespace comphelper
m_aListeners.addInterface( _rxListener );
}
- //--------------------------------------------------------------------
+
void OListenerContainer::impl_removeListener( const Reference< XEventListener >& _rxListener )
{
#if OSL_DEBUG_LEVEL > 0
@@ -63,19 +63,19 @@ namespace comphelper
m_aListeners.removeInterface( _rxListener );
}
- //--------------------------------------------------------------------
+
void OListenerContainer::disposing( const EventObject& _rEventSource )
{
m_aListeners.disposeAndClear( _rEventSource );
}
- //--------------------------------------------------------------------
+
void OListenerContainer::clear()
{
m_aListeners.clear();
}
- //--------------------------------------------------------------------
+
bool OListenerContainer::impl_notify( const EventObject& _rEvent ) SAL_THROW(( Exception ))
{
::cppu::OInterfaceIteratorHelper aIter( m_aListeners );
diff --git a/comphelper/source/misc/logging.cxx b/comphelper/source/misc/logging.cxx
index 98f38d878a9b..a4c1ceb46f32 100644
--- a/comphelper/source/misc/logging.cxx
+++ b/comphelper/source/misc/logging.cxx
@@ -76,7 +76,7 @@ namespace comphelper
//====================================================================
//= EventLogger_Impl - implementation
//====================================================================
- //--------------------------------------------------------------------
+
void EventLogger_Impl::impl_createLogger_nothrow()
{
try
@@ -97,18 +97,18 @@ namespace comphelper
//====================================================================
//= EventLogger
//====================================================================
- //--------------------------------------------------------------------
+
EventLogger::EventLogger( const Reference< XComponentContext >& _rxContext, const sal_Char* _pAsciiLoggerName )
:m_pImpl( new EventLogger_Impl( _rxContext, OUString::createFromAscii( _pAsciiLoggerName ) ) )
{
}
- //--------------------------------------------------------------------
+
EventLogger::~EventLogger()
{
}
- //--------------------------------------------------------------------
+
bool EventLogger::isLoggable( const sal_Int32 _nLogLevel ) const
{
if ( !m_pImpl->isValid() )
@@ -127,7 +127,7 @@ namespace comphelper
return false;
}
- //--------------------------------------------------------------------
+
namespace
{
void lcl_replaceParameter( OUString& _inout_Message, const OUString& _rPlaceHolder, const OUString& _rReplacement )
@@ -141,7 +141,7 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
bool EventLogger::impl_log( const sal_Int32 _nLogLevel,
const sal_Char* _pSourceClass, const sal_Char* _pSourceMethod, const OUString& _rMessage,
const OptionalString& _rArgument1, const OptionalString& _rArgument2,
@@ -222,7 +222,7 @@ namespace comphelper
}
};
- //--------------------------------------------------------------------
+
bool lcl_loadBundle_nothrow( Reference< XComponentContext > const & _rContext, ResourceBasedEventLogger_Data& _rLoggerData )
{
if ( _rLoggerData.bBundleLoaded )
@@ -247,7 +247,7 @@ namespace comphelper
return _rLoggerData.xBundle.is();
}
- //--------------------------------------------------------------------
+
OUString lcl_loadString_nothrow( const Reference< XResourceBundle >& _rxBundle, const sal_Int32 _nMessageResID )
{
OSL_PRECOND( _rxBundle.is(), "lcl_loadString_nothrow: this will crash!" );
@@ -270,7 +270,7 @@ namespace comphelper
//====================================================================
//= ResourceBasedEventLogger
//====================================================================
- //--------------------------------------------------------------------
+
ResourceBasedEventLogger::ResourceBasedEventLogger( const Reference< XComponentContext >& _rxContext, const sal_Char* _pResourceBundleBaseName,
const sal_Char* _pAsciiLoggerName )
:EventLogger( _rxContext, _pAsciiLoggerName )
@@ -279,7 +279,7 @@ namespace comphelper
m_pData->sBundleBaseName = OUString::createFromAscii( _pResourceBundleBaseName );
}
- //--------------------------------------------------------------------
+
OUString ResourceBasedEventLogger::impl_loadStringMessage_nothrow( const sal_Int32 _nMessageResID ) const
{
OUString sMessage;
diff --git a/comphelper/source/misc/mimeconfighelper.cxx b/comphelper/source/misc/mimeconfighelper.cxx
index b734a8e2758c..6f25f001c1a9 100644
--- a/comphelper/source/misc/mimeconfighelper.cxx
+++ b/comphelper/source/misc/mimeconfighelper.cxx
@@ -33,7 +33,7 @@
using namespace ::com::sun::star;
using namespace comphelper;
-//-----------------------------------------------------------------------
+
MimeConfigurationHelper::MimeConfigurationHelper( const uno::Reference< uno::XComponentContext >& rxContext )
: m_xContext( rxContext )
{
@@ -41,7 +41,7 @@ MimeConfigurationHelper::MimeConfigurationHelper( const uno::Reference< uno::XCo
throw uno::RuntimeException();
}
-//-----------------------------------------------------------------------
+
OUString MimeConfigurationHelper::GetStringClassIDRepresentation( const uno::Sequence< sal_Int8 >& aClassID )
{
OUString aResult;
@@ -63,7 +63,7 @@ OUString MimeConfigurationHelper::GetStringClassIDRepresentation( const uno::Seq
return aResult;
}
-//-----------------------------------------------------------------------
+
sal_uInt8 GetDigit_Impl( sal_Char aChar )
{
if ( aChar >= '0' && aChar <= '9' )
@@ -76,7 +76,7 @@ sal_uInt8 GetDigit_Impl( sal_Char aChar )
return 16;
}
-//-----------------------------------------------------------------------
+
uno::Sequence< sal_Int8 > MimeConfigurationHelper::GetSequenceClassIDRepresentation( const OUString& aClassID )
{
sal_Int32 nLength = aClassID.getLength();
@@ -112,7 +112,7 @@ uno::Sequence< sal_Int8 > MimeConfigurationHelper::GetSequenceClassIDRepresentat
return uno::Sequence< sal_Int8 >();
}
-//-----------------------------------------------------------------------
+
uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetConfigurationByPath( const OUString& aPath )
{
osl::MutexGuard aGuard( m_aMutex );
@@ -142,7 +142,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetConfigurati
return xConfig;
}
-//-----------------------------------------------------------------------
+
uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetObjConfiguration()
{
osl::MutexGuard aGuard( m_aMutex );
@@ -154,7 +154,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetObjConfigur
return m_xObjectConfig;
}
-//-----------------------------------------------------------------------
+
uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetVerbsConfiguration()
{
osl::MutexGuard aGuard( m_aMutex );
@@ -166,7 +166,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetVerbsConfig
return m_xVerbsConfig;
}
-//-----------------------------------------------------------------------
+
uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetMediaTypeConfiguration()
{
osl::MutexGuard aGuard( m_aMutex );
@@ -178,7 +178,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetMediaTypeCo
return m_xMediaTypeConfig;
}
-//-----------------------------------------------------------------------
+
uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetFilterFactory()
{
osl::MutexGuard aGuard( m_aMutex );
@@ -191,7 +191,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetFilterFacto
return m_xFilterFactory;
}
-//-------------------------------------------------------------------------
+
OUString MimeConfigurationHelper::GetDocServiceNameFromFilter( const OUString& aFilterName )
{
OUString aDocServiceName;
@@ -217,7 +217,7 @@ OUString MimeConfigurationHelper::GetDocServiceNameFromFilter( const OUString& a
return aDocServiceName;
}
-//-------------------------------------------------------------------------
+
OUString MimeConfigurationHelper::GetDocServiceNameFromMediaType( const OUString& aMediaType )
{
uno::Reference< container::XContainerQuery > xTypeCFG(
@@ -260,7 +260,7 @@ OUString MimeConfigurationHelper::GetDocServiceNameFromMediaType( const OUString
return OUString();
}
-//-------------------------------------------------------------------------
+
bool MimeConfigurationHelper::GetVerbByShortcut( const OUString& aVerbShortcut,
embed::VerbDescriptor& aDescriptor )
{
@@ -290,7 +290,7 @@ bool MimeConfigurationHelper::GetVerbByShortcut( const OUString& aVerbShortcut,
return bResult;
}
-//-------------------------------------------------------------------------
+
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjPropsFromConfigEntry(
const uno::Sequence< sal_Int8 >& aClassID,
const uno::Reference< container::XNameAccess >& xObjectProps )
@@ -339,7 +339,7 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjPropsFromConfi
return aResult;
}
-//-----------------------------------------------------------------------
+
OUString MimeConfigurationHelper::GetExplicitlyRegisteredObjClassID( const OUString& aMediaType )
{
OUString aStringClassID;
@@ -358,7 +358,7 @@ OUString MimeConfigurationHelper::GetExplicitlyRegisteredObjClassID( const OUStr
}
-//-----------------------------------------------------------------------
+
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByStringClassID(
const OUString& aStringClassID )
{
@@ -393,7 +393,7 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByStri
return aObjProps;
}
-//-----------------------------------------------------------------------
+
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByClassID(
const uno::Sequence< sal_Int8 >& aClassID )
{
@@ -425,7 +425,7 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByClas
return aObjProps;
}
-//-----------------------------------------------------------------------
+
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByMediaType( const OUString& aMediaType )
{
uno::Sequence< beans::NamedValue > aObject =
@@ -440,7 +440,7 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByMedi
return uno::Sequence< beans::NamedValue >();
}
-//-----------------------------------------------------------------------
+
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByFilter( const OUString& aFilterName )
{
OUString aDocumentName = GetDocServiceNameFromFilter( aFilterName );
@@ -450,7 +450,7 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByFilt
return uno::Sequence< beans::NamedValue >();
}
-//-----------------------------------------------------------------------
+
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocumentName( const OUString& aDocName )
{
if ( !aDocName.isEmpty() )
@@ -483,13 +483,13 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocu
return uno::Sequence< beans::NamedValue >();
}
-//-----------------------------------------------------------------------
+
OUString MimeConfigurationHelper::GetFactoryNameByClassID( const uno::Sequence< sal_Int8 >& aClassID )
{
return GetFactoryNameByStringClassID( GetStringClassIDRepresentation( aClassID ) );
}
-//-----------------------------------------------------------------------
+
OUString MimeConfigurationHelper::GetFactoryNameByStringClassID( const OUString& aStringClassID )
{
OUString aResult;
@@ -514,7 +514,7 @@ OUString MimeConfigurationHelper::GetFactoryNameByStringClassID( const OUString&
return aResult;
}
-//-----------------------------------------------------------------------
+
OUString MimeConfigurationHelper::GetFactoryNameByDocumentName( const OUString& aDocName )
{
OUString aResult;
@@ -551,7 +551,7 @@ OUString MimeConfigurationHelper::GetFactoryNameByDocumentName( const OUString&
}
-//-----------------------------------------------------------------------
+
OUString MimeConfigurationHelper::GetFactoryNameByMediaType( const OUString& aMediaType )
{
OUString aResult = GetFactoryNameByStringClassID( GetExplicitlyRegisteredObjClassID( aMediaType ) );
@@ -566,7 +566,7 @@ OUString MimeConfigurationHelper::GetFactoryNameByMediaType( const OUString& aMe
return aResult;
}
-//-----------------------------------------------------------------------
+
OUString MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName(
uno::Sequence< beans::PropertyValue >& aMediaDescr,
bool bIgnoreType )
@@ -711,7 +711,7 @@ sal_Bool MimeConfigurationHelper::AddFilterNameCheckOwnFile(
}
#endif
-//-----------------------------------------------------------
+
OUString MimeConfigurationHelper::GetDefaultFilterFromServiceName( const OUString& aServiceName, sal_Int32 nVersion )
{
OUString aResult;
@@ -762,7 +762,7 @@ OUString MimeConfigurationHelper::GetDefaultFilterFromServiceName( const OUStrin
return aResult;
}
-//-------------------------------------------------------------------------
+
OUString MimeConfigurationHelper::GetExportFilterFromImportFilter( const OUString& aImportFilterName )
{
OUString aExportFilterName;
@@ -828,7 +828,7 @@ OUString MimeConfigurationHelper::GetExportFilterFromImportFilter( const OUStrin
return aExportFilterName;
}
-//-------------------------------------------------------------------------
+
// static
uno::Sequence< beans::PropertyValue > MimeConfigurationHelper::SearchForFilter(
const uno::Reference< container::XContainerQuery >& xFilterQuery,
@@ -870,7 +870,7 @@ uno::Sequence< beans::PropertyValue > MimeConfigurationHelper::SearchForFilter(
}
-//-------------------------------------------------------------------------
+
bool MimeConfigurationHelper::ClassIDsEqual( const uno::Sequence< sal_Int8 >& aClassID1, const uno::Sequence< sal_Int8 >& aClassID2 )
{
if ( aClassID1.getLength() != aClassID2.getLength() )
@@ -883,7 +883,7 @@ bool MimeConfigurationHelper::ClassIDsEqual( const uno::Sequence< sal_Int8 >& aC
return true;
}
-//-------------------------------------------------------------------------
+
uno::Sequence< sal_Int8 > MimeConfigurationHelper::GetSequenceClassID( sal_uInt32 n1, sal_uInt16 n2, sal_uInt16 n3,
sal_uInt8 b8, sal_uInt8 b9, sal_uInt8 b10, sal_uInt8 b11,
sal_uInt8 b12, sal_uInt8 b13, sal_uInt8 b14, sal_uInt8 b15 )
diff --git a/comphelper/source/misc/namedvaluecollection.cxx b/comphelper/source/misc/namedvaluecollection.cxx
index bf47f9a53b9a..2554e566dc3b 100644
--- a/comphelper/source/misc/namedvaluecollection.cxx
+++ b/comphelper/source/misc/namedvaluecollection.cxx
@@ -59,60 +59,60 @@ namespace comphelper
//====================================================================
//= NamedValueCollection
//====================================================================
- //--------------------------------------------------------------------
+
NamedValueCollection::NamedValueCollection()
:m_pImpl( new NamedValueCollection_Impl )
{
}
- //--------------------------------------------------------------------
+
NamedValueCollection::NamedValueCollection( const NamedValueCollection& _rCopySource )
:m_pImpl( new NamedValueCollection_Impl )
{
*this = _rCopySource;
}
- //--------------------------------------------------------------------
+
NamedValueCollection& NamedValueCollection::operator=( const NamedValueCollection& i_rCopySource )
{
m_pImpl->aValues = i_rCopySource.m_pImpl->aValues;
return *this;
}
- //--------------------------------------------------------------------
+
NamedValueCollection::NamedValueCollection( const Any& _rElements )
:m_pImpl( new NamedValueCollection_Impl )
{
impl_assign( _rElements );
}
- //--------------------------------------------------------------------
+
NamedValueCollection::NamedValueCollection( const Sequence< Any >& _rArguments )
:m_pImpl( new NamedValueCollection_Impl )
{
impl_assign( _rArguments );
}
- //--------------------------------------------------------------------
+
NamedValueCollection::NamedValueCollection( const Sequence< PropertyValue >& _rArguments )
:m_pImpl( new NamedValueCollection_Impl )
{
impl_assign( _rArguments );
}
- //--------------------------------------------------------------------
+
NamedValueCollection::NamedValueCollection( const Sequence< NamedValue >& _rArguments )
:m_pImpl( new NamedValueCollection_Impl )
{
impl_assign( _rArguments );
}
- //--------------------------------------------------------------------
+
NamedValueCollection::~NamedValueCollection()
{
}
- //--------------------------------------------------------------------
+
bool NamedValueCollection::canExtractFrom( ::com::sun::star::uno::Any const & i_value )
{
Type const & aValueType = i_value.getValueType();
@@ -125,7 +125,7 @@ namespace comphelper
return false;
}
- //--------------------------------------------------------------------
+
NamedValueCollection& NamedValueCollection::merge( const NamedValueCollection& _rAdditionalValues, bool _bOverwriteExisting )
{
for ( NamedValueRepository::const_iterator namedValue = _rAdditionalValues.m_pImpl->aValues.begin();
@@ -140,19 +140,19 @@ namespace comphelper
return *this;
}
- //--------------------------------------------------------------------
+
size_t NamedValueCollection::size() const
{
return m_pImpl->aValues.size();
}
- //--------------------------------------------------------------------
+
bool NamedValueCollection::empty() const
{
return m_pImpl->aValues.empty();
}
- //--------------------------------------------------------------------
+
::std::vector< OUString > NamedValueCollection::getNames() const
{
::std::vector< OUString > aNames;
@@ -163,7 +163,7 @@ namespace comphelper
return aNames;
}
- //--------------------------------------------------------------------
+
void NamedValueCollection::impl_assign( const Any& i_rWrappedElements )
{
Sequence< NamedValue > aNamedValues;
@@ -183,7 +183,7 @@ namespace comphelper
SAL_WARN_IF( i_rWrappedElements.hasValue(), "comphelper", "NamedValueCollection::impl_assign(Any): unsupported type!" );
}
- //--------------------------------------------------------------------
+
void NamedValueCollection::impl_assign( const Sequence< Any >& _rArguments )
{
{
@@ -213,7 +213,7 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
void NamedValueCollection::impl_assign( const Sequence< PropertyValue >& _rArguments )
{
{
@@ -227,7 +227,7 @@ namespace comphelper
m_pImpl->aValues[ pArgument->Name ] = pArgument->Value;
}
- //--------------------------------------------------------------------
+
void NamedValueCollection::impl_assign( const Sequence< NamedValue >& _rArguments )
{
{
@@ -241,7 +241,7 @@ namespace comphelper
m_pImpl->aValues[ pArgument->Name ] = pArgument->Value;
}
- //--------------------------------------------------------------------
+
bool NamedValueCollection::get_ensureType( const OUString& _rValueName, void* _pValueLocation, const Type& _rExpectedValueType ) const
{
NamedValueRepository::const_iterator pos = m_pImpl->aValues.find( _rValueName );
@@ -277,7 +277,7 @@ namespace comphelper
class theEmptyDefault : public rtl::Static<Any, theEmptyDefault> {};
}
- //--------------------------------------------------------------------
+
const Any& NamedValueCollection::impl_get( const OUString& _rValueName ) const
{
NamedValueRepository::const_iterator pos = m_pImpl->aValues.find( _rValueName );
@@ -287,14 +287,14 @@ namespace comphelper
return theEmptyDefault::get();
}
- //--------------------------------------------------------------------
+
bool NamedValueCollection::impl_has( const OUString& _rValueName ) const
{
NamedValueRepository::const_iterator pos = m_pImpl->aValues.find( _rValueName );
return ( pos != m_pImpl->aValues.end() );
}
- //--------------------------------------------------------------------
+
bool NamedValueCollection::impl_put( const OUString& _rValueName, const Any& _rValue )
{
bool bHas = impl_has( _rValueName );
@@ -302,7 +302,7 @@ namespace comphelper
return bHas;
}
- //--------------------------------------------------------------------
+
bool NamedValueCollection::impl_remove( const OUString& _rValueName )
{
NamedValueRepository::iterator pos = m_pImpl->aValues.find( _rValueName );
@@ -312,7 +312,7 @@ namespace comphelper
return true;
}
- //--------------------------------------------------------------------
+
namespace
{
struct Value2PropertyValue : public ::std::unary_function< NamedValueRepository::value_type, PropertyValue >
@@ -333,7 +333,7 @@ namespace comphelper
};
}
- //--------------------------------------------------------------------
+
sal_Int32 NamedValueCollection::operator >>= ( Sequence< PropertyValue >& _out_rValues ) const
{
_out_rValues.realloc( m_pImpl->aValues.size() );
@@ -341,7 +341,7 @@ namespace comphelper
return _out_rValues.getLength();
}
- //--------------------------------------------------------------------
+
sal_Int32 NamedValueCollection::operator >>= ( Sequence< NamedValue >& _out_rValues ) const
{
_out_rValues.realloc( m_pImpl->aValues.size() );
diff --git a/comphelper/source/misc/numberedcollection.cxx b/comphelper/source/misc/numberedcollection.cxx
index 50255eebb523..5044539c3cdd 100644
--- a/comphelper/source/misc/numberedcollection.cxx
+++ b/comphelper/source/misc/numberedcollection.cxx
@@ -27,7 +27,7 @@ namespace comphelper{
static const char ERRMSG_INVALID_COMPONENT_PARAM[] = "NULL as component reference not allowed.";
-//-----------------------------------------------
+
NumberedCollection::NumberedCollection()
: ::cppu::BaseMutex ()
, m_sUntitledPrefix ()
@@ -36,12 +36,12 @@ NumberedCollection::NumberedCollection()
{
}
-//-----------------------------------------------
+
NumberedCollection::~NumberedCollection()
{
}
-//-----------------------------------------------
+
void NumberedCollection::setOwner(const css::uno::Reference< css::uno::XInterface >& xOwner)
{
// SYNCHRONIZED ->
@@ -52,7 +52,7 @@ void NumberedCollection::setOwner(const css::uno::Reference< css::uno::XInterfac
// <- SYNCHRONIZED
}
-//-----------------------------------------------
+
void NumberedCollection::setUntitledPrefix(const OUString& sPrefix)
{
// SYNCHRONIZED ->
@@ -63,7 +63,7 @@ void NumberedCollection::setUntitledPrefix(const OUString& sPrefix)
// <- SYNCHRONIZED
}
-//-----------------------------------------------
+
::sal_Int32 SAL_CALL NumberedCollection::leaseNumber(const css::uno::Reference< css::uno::XInterface >& xComponent)
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException )
@@ -100,7 +100,7 @@ void NumberedCollection::setUntitledPrefix(const OUString& sPrefix)
// <- SYNCHRONIZED
}
-//-----------------------------------------------
+
void SAL_CALL NumberedCollection::releaseNumber(::sal_Int32 nNumber)
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException )
@@ -139,7 +139,7 @@ void SAL_CALL NumberedCollection::releaseNumber(::sal_Int32 nNumber)
// <- SYNCHRONIZED
}
-//-----------------------------------------------
+
void SAL_CALL NumberedCollection::releaseNumberForComponent(const css::uno::Reference< css::uno::XInterface >& xComponent)
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException )
@@ -163,7 +163,7 @@ void SAL_CALL NumberedCollection::releaseNumberForComponent(const css::uno::Refe
// <- SYNCHRONIZED
}
-//-----------------------------------------------
+
OUString SAL_CALL NumberedCollection::getUntitledPrefix()
throw (css::uno::RuntimeException)
{
@@ -175,7 +175,7 @@ OUString SAL_CALL NumberedCollection::getUntitledPrefix()
// <- SYNCHRONIZED
}
-//-----------------------------------------------
+
/** create an ordered list of all possible numbers ...
e.g. {1,2,3,...,N} Max size of these list will be
current size of component list + 1 .
diff --git a/comphelper/source/misc/numbers.cxx b/comphelper/source/misc/numbers.cxx
index 569d492d1049..9920e4a7519a 100644
--- a/comphelper/source/misc/numbers.cxx
+++ b/comphelper/source/misc/numbers.cxx
@@ -32,7 +32,7 @@ namespace comphelper
namespace starbeans = ::com::sun::star::beans;
namespace starlang = ::com::sun::star::lang;
-//------------------------------------------------------------------------------
+
sal_Int16 getNumberFormatType(const staruno::Reference<starutil::XNumberFormats>& xFormats, sal_Int32 nKey)
{
sal_Int16 nReturn(starutil::NumberFormat::UNDEFINED);
@@ -52,7 +52,7 @@ sal_Int16 getNumberFormatType(const staruno::Reference<starutil::XNumberFormats>
return nReturn;
}
-//------------------------------------------------------------------------------
+
sal_Int16 getNumberFormatType(const staruno::Reference<starutil::XNumberFormatter>& xFormatter, sal_Int32 nKey)
{
OSL_ENSURE(xFormatter.is(), "getNumberFormatType : the formatter isn't valid !");
@@ -62,7 +62,7 @@ sal_Int16 getNumberFormatType(const staruno::Reference<starutil::XNumberFormatte
return getNumberFormatType(xFormats, nKey);
}
-//------------------------------------------------------------------------------
+
staruno::Any getNumberFormatDecimals(const staruno::Reference<starutil::XNumberFormats>& xFormats, sal_Int32 nKey)
{
if (xFormats.is())
@@ -85,7 +85,7 @@ staruno::Any getNumberFormatDecimals(const staruno::Reference<starutil::XNumberF
}
-//------------------------------------------------------------------------------
+
sal_Int32 getStandardFormat(
const staruno::Reference<starutil::XNumberFormatter>& xFormatter,
sal_Int16 nType,
@@ -99,12 +99,12 @@ sal_Int32 getStandardFormat(
return xTypes.is() ? xTypes->getStandardFormat(nType, _rLocale) : 0;
}
-//------------------------------------------------------------------------------
+
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::beans;
-//------------------------------------------------------------------------------
+
Any getNumberFormatProperty( const Reference< XNumberFormatter >& _rxFormatter, sal_Int32 _nKey, const OUString& _rPropertyName )
{
Any aReturn;
diff --git a/comphelper/source/misc/officeresourcebundle.cxx b/comphelper/source/misc/officeresourcebundle.cxx
index 01b4e98ccf69..218a61ba3608 100644
--- a/comphelper/source/misc/officeresourcebundle.cxx
+++ b/comphelper/source/misc/officeresourcebundle.cxx
@@ -98,7 +98,7 @@ namespace comphelper
impl_getStringResourceKey( sal_Int32 _resourceId );
};
- //--------------------------------------------------------------------
+
OUString ResourceBundle_Impl::impl_getStringResourceKey( sal_Int32 _resourceId )
{
OUStringBuffer key;
@@ -107,7 +107,7 @@ namespace comphelper
return key.makeStringAndClear();
}
- //--------------------------------------------------------------------
+
OUString ResourceBundle_Impl::loadString( sal_Int32 _resourceId ) const
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -128,7 +128,7 @@ namespace comphelper
return sString;
}
- //--------------------------------------------------------------------
+
bool ResourceBundle_Impl::hasString( sal_Int32 _resourceId ) const
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -149,7 +149,7 @@ namespace comphelper
return has;
}
- //--------------------------------------------------------------------
+
bool ResourceBundle_Impl::impl_loadBundle_nothrow()
{
if ( m_bAttemptedCreate )
@@ -187,7 +187,7 @@ namespace comphelper
//====================================================================
//= OfficeResourceBundle
//====================================================================
- //--------------------------------------------------------------------
+
OfficeResourceBundle::OfficeResourceBundle( const Reference< XComponentContext >& _context, const sal_Char* _bundleBaseAsciiName )
:m_pImpl( new ResourceBundle_Impl( _context, OUString::createFromAscii( _bundleBaseAsciiName ) ) )
{
@@ -195,18 +195,18 @@ namespace comphelper
throw NullPointerException();
}
- //--------------------------------------------------------------------
+
OfficeResourceBundle::~OfficeResourceBundle()
{
}
- //--------------------------------------------------------------------
+
OUString OfficeResourceBundle::loadString( sal_Int32 _resourceId ) const
{
return m_pImpl->loadString( _resourceId );
}
- //--------------------------------------------------------------------
+
bool OfficeResourceBundle::hasString( sal_Int32 _resourceId ) const
{
return m_pImpl->hasString( _resourceId );
diff --git a/comphelper/source/misc/officerestartmanager.cxx b/comphelper/source/misc/officerestartmanager.cxx
index aec471e511ee..7a02e234f81d 100644
--- a/comphelper/source/misc/officerestartmanager.cxx
+++ b/comphelper/source/misc/officerestartmanager.cxx
@@ -32,7 +32,7 @@ using namespace ::com::sun::star;
namespace comphelper
{
-// ----------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL OOfficeRestartManager::getSupportedServiceNames_static()
{
uno::Sequence< OUString > aResult( 1 );
@@ -40,32 +40,32 @@ uno::Sequence< OUString > SAL_CALL OOfficeRestartManager::getSupportedServiceNam
return aResult;
}
-// ----------------------------------------------------------
+
OUString SAL_CALL OOfficeRestartManager::getImplementationName_static()
{
return OUString( "com.sun.star.comp.task.OfficeRestartManager" );
}
-// ----------------------------------------------------------
+
OUString SAL_CALL OOfficeRestartManager::getSingletonName_static()
{
return OUString( "com.sun.star.task.OfficeRestartManager" );
}
-// ----------------------------------------------------------
+
OUString SAL_CALL OOfficeRestartManager::getServiceName_static()
{
return OUString( "com.sun.star.comp.task.OfficeRestartManager" );
}
-// ----------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL OOfficeRestartManager::Create( const uno::Reference< uno::XComponentContext >& rxContext )
{
return static_cast< cppu::OWeakObject* >( new OOfficeRestartManager( rxContext ) );
}
// XRestartManager
-// ----------------------------------------------------------
+
void SAL_CALL OOfficeRestartManager::requestRestart( const uno::Reference< task::XInteractionHandler >& /* xInteractionHandler */ )
throw (uno::Exception, uno::RuntimeException)
{
@@ -107,7 +107,7 @@ void SAL_CALL OOfficeRestartManager::requestRestart( const uno::Reference< task:
}
}
-// ----------------------------------------------------------
+
::sal_Bool SAL_CALL OOfficeRestartManager::isRestartRequested( ::sal_Bool bOfficeInitialized )
throw (uno::Exception, uno::RuntimeException)
{
@@ -120,7 +120,7 @@ void SAL_CALL OOfficeRestartManager::requestRestart( const uno::Reference< task:
}
// XCallback
-// ----------------------------------------------------------
+
void SAL_CALL OOfficeRestartManager::notify( const uno::Any& /* aData */ )
throw ( uno::RuntimeException )
{
@@ -163,7 +163,7 @@ void SAL_CALL OOfficeRestartManager::notify( const uno::Any& /* aData */ )
}
// XServiceInfo
-// ----------------------------------------------------------
+
OUString SAL_CALL OOfficeRestartManager::getImplementationName() throw (uno::RuntimeException)
{
return getImplementationName_static();
diff --git a/comphelper/source/misc/proxyaggregation.cxx b/comphelper/source/misc/proxyaggregation.cxx
index 86d0082fbb2f..3764ef1a38e2 100644
--- a/comphelper/source/misc/proxyaggregation.cxx
+++ b/comphelper/source/misc/proxyaggregation.cxx
@@ -36,13 +36,13 @@ namespace comphelper
//=========================================================================
//= OProxyAggregation
//=========================================================================
- //-------------------------------------------------------------------------
+
OProxyAggregation::OProxyAggregation( const Reference< XComponentContext >& _rxContext )
:m_xContext( _rxContext )
{
}
- //-------------------------------------------------------------------------
+
void OProxyAggregation::baseAggregateProxyFor( const Reference< XInterface >& _rxComponent, oslInterlockedCount& _rRefCount,
::cppu::OWeakObject& _rDelegator )
{
@@ -68,13 +68,13 @@ namespace comphelper
osl_atomic_decrement( &_rRefCount );
}
- //-------------------------------------------------------------------------
+
Any SAL_CALL OProxyAggregation::queryAggregation( const Type& _rType ) throw (RuntimeException)
{
return m_xProxyAggregate.is() ? m_xProxyAggregate->queryAggregation( _rType ) : Any();
}
- //-------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OProxyAggregation::getTypes( ) throw (RuntimeException)
{
Sequence< Type > aTypes;
@@ -86,7 +86,7 @@ namespace comphelper
return aTypes;
}
- //-------------------------------------------------------------------------
+
OProxyAggregation::~OProxyAggregation()
{
if ( m_xProxyAggregate.is() )
@@ -100,7 +100,7 @@ namespace comphelper
//=========================================================================
//= OComponentProxyAggregationHelper
//=========================================================================
- //-------------------------------------------------------------------------
+
OComponentProxyAggregationHelper::OComponentProxyAggregationHelper( const Reference< XComponentContext >& _rxContext,
::cppu::OBroadcastHelper& _rBHelper )
:OProxyAggregation( _rxContext )
@@ -109,7 +109,7 @@ namespace comphelper
OSL_ENSURE( _rxContext.is(), "OComponentProxyAggregationHelper::OComponentProxyAggregationHelper: invalid arguments!" );
}
- //-------------------------------------------------------------------------
+
void OComponentProxyAggregationHelper::componentAggregateProxyFor(
const Reference< XComponent >& _rxComponent, oslInterlockedCount& _rRefCount,
::cppu::OWeakObject& _rDelegator )
@@ -129,7 +129,7 @@ namespace comphelper
osl_atomic_decrement( &_rRefCount );
}
- //-------------------------------------------------------------------------
+
Any SAL_CALL OComponentProxyAggregationHelper::queryInterface( const Type& _rType ) throw (RuntimeException)
{
Any aReturn( BASE::queryInterface( _rType ) );
@@ -138,10 +138,10 @@ namespace comphelper
return aReturn;
}
- //-------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OComponentProxyAggregationHelper, BASE, OProxyAggregation )
- //-------------------------------------------------------------------------
+
OComponentProxyAggregationHelper::~OComponentProxyAggregationHelper( )
{
OSL_ENSURE( m_rBHelper.bDisposed, "OComponentProxyAggregationHelper::~OComponentProxyAggregationHelper: you should dispose your derived class in the dtor, if necessary!" );
@@ -156,7 +156,7 @@ namespace comphelper
m_xInner.clear();
}
- //-------------------------------------------------------------------------
+
void SAL_CALL OComponentProxyAggregationHelper::disposing( const EventObject& _rSource ) throw (RuntimeException)
{
if ( _rSource.Source == m_xInner )
@@ -168,7 +168,7 @@ namespace comphelper
}
}
- //-------------------------------------------------------------------------
+
void SAL_CALL OComponentProxyAggregationHelper::dispose() throw( RuntimeException )
{
::osl::MutexGuard aGuard( m_rBHelper.rMutex );
@@ -188,7 +188,7 @@ namespace comphelper
//=========================================================================
//= OComponentProxyAggregation
//=========================================================================
- //-------------------------------------------------------------------------
+
OComponentProxyAggregation::OComponentProxyAggregation( const Reference< XComponentContext >& _rxContext,
const Reference< XComponent >& _rxComponent )
:WeakComponentImplHelperBase( m_aMutex )
@@ -199,19 +199,19 @@ namespace comphelper
componentAggregateProxyFor( _rxComponent, m_refCount, *this );
}
- //-------------------------------------------------------------------------
+
OComponentProxyAggregation::~OComponentProxyAggregation()
{
implEnsureDisposeInDtor( );
}
- //-------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( OComponentProxyAggregation, WeakComponentImplHelperBase, OComponentProxyAggregationHelper )
- //-------------------------------------------------------------------------
+
IMPLEMENT_GET_IMPLEMENTATION_ID( OComponentProxyAggregation )
- //-------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OComponentProxyAggregation::getTypes( ) throw (RuntimeException)
{
Sequence< Type > aTypes( OComponentProxyAggregationHelper::getTypes() );
@@ -224,7 +224,7 @@ namespace comphelper
return aTypes;
}
- //-------------------------------------------------------------------------
+
void OComponentProxyAggregation::implEnsureDisposeInDtor( )
{
if ( !rBHelper.bDisposed )
@@ -234,7 +234,7 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
void SAL_CALL OComponentProxyAggregation::disposing( const EventObject& _rSource ) throw (RuntimeException)
{
// Simply disambiguate---this is necessary for MSVC to distinguish
@@ -245,14 +245,14 @@ namespace comphelper
OComponentProxyAggregationHelper::disposing( _rSource );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OComponentProxyAggregation::disposing() throw (RuntimeException)
{
// call the dispose-functionality of the base, which will dispose our aggregated component
OComponentProxyAggregationHelper::dispose();
}
- //--------------------------------------------------------------------
+
void SAL_CALL OComponentProxyAggregation::dispose() throw( RuntimeException )
{
// simply disambiguate
diff --git a/comphelper/source/misc/sequence.cxx b/comphelper/source/misc/sequence.cxx
index ea0cfe117f0d..440993abd075 100644
--- a/comphelper/source/misc/sequence.cxx
+++ b/comphelper/source/misc/sequence.cxx
@@ -19,20 +19,15 @@
#include <comphelper/sequence.hxx>
-//.........................................................................
namespace comphelper
{
-//.........................................................................
-
-//------------------------------------------------------------------------------
staruno::Sequence<sal_Int16> findValue(const staruno::Sequence< OUString >& _rList, const OUString& _rValue, bool _bOnlyFirst)
{
sal_Int32 nLength = _rList.getLength();
if( _bOnlyFirst )
{
- //////////////////////////////////////////////////////////////////////
- // An welcher Position finde ich den Wert?
+ // at which position do I find the value?
sal_Int32 nPos = -1;
const OUString* pTArray = _rList.getConstArray();
for (sal_Int32 i = 0; i < nLength; ++i, ++pTArray)
@@ -44,8 +39,7 @@ staruno::Sequence<sal_Int16> findValue(const staruno::Sequence< OUString >& _rLi
}
}
- //////////////////////////////////////////////////////////////////////
- // Sequence fuellen
+ // fill sequence
if( nPos>-1 )
{
staruno::Sequence<sal_Int16> aRetSeq( 1 );
@@ -62,8 +56,7 @@ staruno::Sequence<sal_Int16> findValue(const staruno::Sequence< OUString >& _rLi
staruno::Sequence<sal_Int16> aRetSeq( nLength );
sal_Int16* pReturn = aRetSeq.getArray();
- //////////////////////////////////////////////////////////////////////
- // Wie oft kommt der Wert vor?
+ // how often does the value occur?
const OUString* pTArray = _rList.getConstArray();
for (sal_Int32 i = 0; i < nLength; ++i, ++pTArray)
{
@@ -80,6 +73,5 @@ staruno::Sequence<sal_Int16> findValue(const staruno::Sequence< OUString >& _rLi
}
}
} // namespace comphelper
-//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/misc/sequenceashashmap.cxx b/comphelper/source/misc/sequenceashashmap.cxx
index e3df3a9e9f78..1023dbea1490 100644
--- a/comphelper/source/misc/sequenceashashmap.cxx
+++ b/comphelper/source/misc/sequenceashashmap.cxx
@@ -32,7 +32,7 @@ SequenceAsHashMap::SequenceAsHashMap(const css::uno::Any& aSource)
(*this) << aSource;
}
-//-----------------------------------------------
+
SequenceAsHashMap::SequenceAsHashMap(const css::uno::Sequence< css::uno::Any >& lSource)
{
(*this) << lSource;
@@ -80,7 +80,7 @@ void SequenceAsHashMap::operator<<(const css::uno::Any& aSource)
css::uno::Reference< css::uno::XInterface >());
}
-//-----------------------------------------------
+
void SequenceAsHashMap::operator<<(const css::uno::Sequence< css::uno::Any >& lSource)
{
sal_Int32 c = lSource.getLength();
diff --git a/comphelper/source/misc/sharedmutex.cxx b/comphelper/source/misc/sharedmutex.cxx
index 094113a53fa4..49a051e229ad 100644
--- a/comphelper/source/misc/sharedmutex.cxx
+++ b/comphelper/source/misc/sharedmutex.cxx
@@ -28,20 +28,20 @@ namespace comphelper
//========================================================================
//= SharedMutex
//========================================================================
- //------------------------------------------------------------------------
+
SharedMutex::SharedMutex()
:m_pMutexImpl( new ::osl::Mutex )
{
}
- //------------------------------------------------------------------------
+
SharedMutex::SharedMutex( const SharedMutex& _rhs )
:m_pMutexImpl()
{
*this = _rhs;
}
- //------------------------------------------------------------------------
+
SharedMutex& SharedMutex::operator=( const SharedMutex& _rhs )
{
m_pMutexImpl = _rhs.m_pMutexImpl;
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx
index 2a362ebd040c..0057cd93dbd5 100644
--- a/comphelper/source/misc/storagehelper.cxx
+++ b/comphelper/source/misc/storagehelper.cxx
@@ -50,7 +50,7 @@ using namespace ::com::sun::star;
namespace comphelper {
-// ----------------------------------------------------------------------
+
uno::Reference< lang::XSingleServiceFactory > OStorageHelper::GetStorageFactory(
const uno::Reference< uno::XComponentContext >& rxContext )
throw ( uno::Exception )
@@ -60,7 +60,7 @@ uno::Reference< lang::XSingleServiceFactory > OStorageHelper::GetStorageFactory(
return embed::StorageFactory::create( xContext );
}
-// ----------------------------------------------------------------------
+
uno::Reference< lang::XSingleServiceFactory > OStorageHelper::GetFileSystemStorageFactory(
const uno::Reference< uno::XComponentContext >& rxContext )
throw ( uno::Exception )
@@ -70,7 +70,7 @@ uno::Reference< lang::XSingleServiceFactory > OStorageHelper::GetFileSystemStora
return embed::FileSystemStorageFactory::create(rxContext);
}
-// ----------------------------------------------------------------------
+
uno::Reference< embed::XStorage > OStorageHelper::GetTemporaryStorage(
const uno::Reference< uno::XComponentContext >& rxContext )
throw ( uno::Exception )
@@ -83,7 +83,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetTemporaryStorage(
return xTempStorage;
}
-// ----------------------------------------------------------------------
+
uno::Reference< embed::XStorage > OStorageHelper::GetStorageFromURL(
const OUString& aURL,
sal_Int32 nStorageMode,
@@ -102,7 +102,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageFromURL(
return xTempStorage;
}
-// ----------------------------------------------------------------------
+
uno::Reference< embed::XStorage > OStorageHelper::GetStorageFromURL2(
const OUString& aURL,
sal_Int32 nStorageMode,
@@ -135,7 +135,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageFromURL2(
return xTempStorage;
}
-// ----------------------------------------------------------------------
+
uno::Reference< embed::XStorage > OStorageHelper::GetStorageFromInputStream(
const uno::Reference < io::XInputStream >& xStream,
const uno::Reference< uno::XComponentContext >& rxContext )
@@ -153,7 +153,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageFromInputStream(
return xTempStorage;
}
-// ----------------------------------------------------------------------
+
uno::Reference< embed::XStorage > OStorageHelper::GetStorageFromStream(
const uno::Reference < io::XStream >& xStream,
sal_Int32 nStorageMode,
@@ -172,7 +172,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageFromStream(
return xTempStorage;
}
-// ----------------------------------------------------------------------
+
void OStorageHelper::CopyInputToOutput(
const uno::Reference< io::XInputStream >& xInput,
const uno::Reference< io::XOutputStream >& xOutput )
@@ -197,7 +197,7 @@ void OStorageHelper::CopyInputToOutput(
while ( nRead == nConstBufferSize );
}
-// ----------------------------------------------------------------------
+
uno::Reference< io::XInputStream > OStorageHelper::GetInputStreamFromURL(
const OUString& aURL,
const uno::Reference< uno::XComponentContext >& context )
@@ -210,7 +210,7 @@ uno::Reference< io::XInputStream > OStorageHelper::GetInputStreamFromURL(
return xInputStream;
}
-// ----------------------------------------------------------------------
+
void OStorageHelper::SetCommonStorageEncryptionData(
const uno::Reference< embed::XStorage >& xStorage,
const uno::Sequence< beans::NamedValue >& aEncryptionData )
@@ -223,7 +223,7 @@ void OStorageHelper::SetCommonStorageEncryptionData(
xEncrSet->setEncryptionData( aEncryptionData );
}
-// ----------------------------------------------------------------------
+
sal_Int32 OStorageHelper::GetXStorageFormat(
const uno::Reference< embed::XStorage >& xStorage )
throw ( uno::Exception )
@@ -280,7 +280,7 @@ sal_Int32 OStorageHelper::GetXStorageFormat(
return nResult;
}
-// ----------------------------------------------------------------------
+
uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromURL(
const OUString& aFormat,
const OUString& aURL,
@@ -312,7 +312,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromURL(
return xTempStorage;
}
-// ----------------------------------------------------------------------
+
uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromInputStream(
const OUString& aFormat,
const uno::Reference < io::XInputStream >& xStream,
@@ -343,7 +343,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromInputStr
return xTempStorage;
}
-// ----------------------------------------------------------------------
+
uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromStream(
const OUString& aFormat,
const uno::Reference < io::XStream >& xStream,
@@ -375,7 +375,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromStream(
return xTempStorage;
}
-// ----------------------------------------------------------------------
+
uno::Sequence< beans::NamedValue > OStorageHelper::CreatePackageEncryptionData( const OUString& aPassword )
{
// TODO/LATER: Should not the method be part of DocPasswordHelper?
@@ -436,13 +436,13 @@ uno::Sequence< beans::NamedValue > OStorageHelper::CreatePackageEncryptionData(
return aEncryptionData;
}
-// ----------------------------------------------------------------------
+
bool OStorageHelper::IsValidZipEntryFileName( const OUString& aName, bool bSlashAllowed )
{
return IsValidZipEntryFileName( aName.getStr(), aName.getLength(), bSlashAllowed );
}
-// ----------------------------------------------------------------------
+
bool OStorageHelper::IsValidZipEntryFileName(
const sal_Unicode *pChar, sal_Int32 nLength, bool bSlashAllowed )
{
@@ -470,7 +470,7 @@ bool OStorageHelper::IsValidZipEntryFileName(
return true;
}
-// ----------------------------------------------------------------------
+
bool OStorageHelper::PathHasSegment( const OUString& aPath, const OUString& aSegment )
{
bool bResult = false;
diff --git a/comphelper/source/misc/types.cxx b/comphelper/source/misc/types.cxx
index ba5f936e7e25..949db6731787 100644
--- a/comphelper/source/misc/types.cxx
+++ b/comphelper/source/misc/types.cxx
@@ -41,7 +41,7 @@ using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::lang;
-//-------------------------------------------------------------------------
+
bool operator ==(const DateTime& _rLeft, const DateTime& _rRight)
{
return ( _rLeft.NanoSeconds == _rRight.NanoSeconds) &&
@@ -53,7 +53,7 @@ bool operator ==(const DateTime& _rLeft, const DateTime& _rRight)
( _rLeft.Year == _rRight.Year) ;
}
-//-------------------------------------------------------------------------
+
bool operator ==(const Date& _rLeft, const Date& _rRight)
{
return ( _rLeft.Day == _rRight.Day) &&
@@ -61,7 +61,7 @@ bool operator ==(const Date& _rLeft, const Date& _rRight)
( _rLeft.Year == _rRight.Year) ;
}
-//-------------------------------------------------------------------------
+
bool operator ==(const Time& _rLeft, const Time& _rRight)
{
return ( _rLeft.NanoSeconds == _rRight.NanoSeconds) &&
@@ -70,7 +70,7 @@ bool operator ==(const Time& _rLeft, const Time& _rRight)
( _rLeft.Hours == _rRight.Hours) ;
}
-//------------------------------------------------------------------------------
+
sal_Int64 getINT64(const Any& _rAny)
{
sal_Int64 nReturn = 0;
@@ -78,7 +78,7 @@ sal_Int64 getINT64(const Any& _rAny)
return nReturn;
}
-//------------------------------------------------------------------------------
+
sal_Int32 getINT32(const Any& _rAny)
{
sal_Int32 nReturn = 0;
@@ -86,7 +86,7 @@ sal_Int32 getINT32(const Any& _rAny)
return nReturn;
}
-//------------------------------------------------------------------------------
+
sal_Int16 getINT16(const Any& _rAny)
{
sal_Int16 nReturn = 0;
@@ -94,7 +94,7 @@ sal_Int16 getINT16(const Any& _rAny)
return nReturn;
}
-//------------------------------------------------------------------------------
+
double getDouble(const Any& _rAny)
{
double nReturn = 0.0;
@@ -102,7 +102,7 @@ double getDouble(const Any& _rAny)
return nReturn;
}
-//------------------------------------------------------------------------------
+
float getFloat(const Any& _rAny)
{
float nReturn = 0.0;
@@ -110,7 +110,7 @@ float getFloat(const Any& _rAny)
return nReturn;
}
-//------------------------------------------------------------------------------
+
OUString getString(const Any& _rAny)
{
OUString nReturn;
@@ -118,7 +118,7 @@ OUString getString(const Any& _rAny)
return nReturn;
}
-//------------------------------------------------------------------------------
+
bool getBOOL(const Any& _rAny)
{
bool nReturn = false;
@@ -129,7 +129,7 @@ bool getBOOL(const Any& _rAny)
return nReturn;
}
-//------------------------------------------------------------------------------
+
sal_Int32 getEnumAsINT32(const Any& _rAny) throw(IllegalArgumentException)
{
sal_Int32 nReturn = 0;
@@ -138,7 +138,7 @@ sal_Int32 getEnumAsINT32(const Any& _rAny) throw(IllegalArgumentException)
return nReturn;
}
-//------------------------------------------------------------------------------
+
FontDescriptor getDefaultFont()
{
FontDescriptor aReturn;
@@ -148,7 +148,7 @@ FontDescriptor getDefaultFont()
return aReturn;
}
-//------------------------------------------------------------------------------
+
bool isAssignableFrom(const Type& _rAssignable, const Type& _rFrom)
{
// getthe type lib descriptions
@@ -162,7 +162,7 @@ bool isAssignableFrom(const Type& _rAssignable, const Type& _rFrom)
return typelib_typedescription_isAssignableFrom(pAssignable, pFrom);
}
-//------------------------------------------------------------------
+
template<class TYPE>
bool tryCompare(const void* _pData, const Any& _rValue, bool& _bIdentical, TYPE& _rOut)
{
@@ -171,7 +171,7 @@ bool tryCompare(const void* _pData, const Any& _rValue, bool& _bIdentical, TYPE&
return bSuccess;
}
-//------------------------------------------------------------------
+
bool tryCompare(const void* _pData, const Any& _rValue, bool& _bIdentical, sal_Unicode& _rOut)
{
bool bSuccess = ( _rValue.getValueTypeClass() == TypeClass_CHAR );
@@ -181,7 +181,7 @@ bool tryCompare(const void* _pData, const Any& _rValue, bool& _bIdentical, sal_U
return bSuccess;
}
-//------------------------------------------------------------------
+
bool compare_impl(const Type& _rType, const void* pData, const Any& _rValue)
{
bool bRes = true;
@@ -421,13 +421,13 @@ bool compare_impl(const Type& _rType, const void* pData, const Any& _rValue)
return bRes;
}
-//------------------------------------------------------------------------------
+
bool compare(const Any& rLeft, const Any& rRight)
{
return compare_impl(rLeft.getValueType(), rLeft.getValue(), rRight);
}
-//-------------------------------------------------------------------------
+
bool operator ==(const FontDescriptor& _rLeft, const FontDescriptor& _rRight)
{
return ( _rLeft.Name.equals( _rRight.Name ) ) &&
@@ -448,7 +448,7 @@ bool operator ==(const FontDescriptor& _rLeft, const FontDescriptor& _rRight)
( _rLeft.Type == _rRight.Type ) ;
}
-//-------------------------------------------------------------------------
+
Type getSequenceElementType(const Type& _rSequenceType)
{
OSL_ENSURE(_rSequenceType.getTypeClass() == TypeClass_SEQUENCE,
diff --git a/comphelper/source/misc/weakeventlistener.cxx b/comphelper/source/misc/weakeventlistener.cxx
index db176d4b643a..b3939ba1c4a3 100644
--- a/comphelper/source/misc/weakeventlistener.cxx
+++ b/comphelper/source/misc/weakeventlistener.cxx
@@ -32,7 +32,7 @@ namespace comphelper
//=====================================================================
//= OWeakListenerAdapter
//=====================================================================
- //---------------------------------------------------------------------
+
OWeakListenerAdapterBase::~OWeakListenerAdapterBase()
{
}
@@ -40,7 +40,7 @@ namespace comphelper
//=====================================================================
//= OWeakEventListenerAdapter
//=====================================================================
- //---------------------------------------------------------------------
+
OWeakEventListenerAdapter::OWeakEventListenerAdapter( Reference< XWeak > _rxListener, Reference< XComponent > _rxBroadcaster )
:OWeakEventListenerAdapter_Base( _rxListener, _rxBroadcaster )
{
@@ -63,7 +63,7 @@ namespace comphelper
OSL_ENSURE( getListener().is(), "OWeakEventListenerAdapter::OWeakEventListenerAdapter: invalid listener (does not support the XEventListener interface)!" );
}
- //---------------------------------------------------------------------
+
void SAL_CALL OWeakEventListenerAdapter::disposing( )
{
Reference< XComponent > xBroadcaster( getBroadcaster( ), UNO_QUERY );
diff --git a/comphelper/source/property/opropertybag.cxx b/comphelper/source/property/opropertybag.cxx
index fe724086670a..4fb1cc4c95ea 100644
--- a/comphelper/source/property/opropertybag.cxx
+++ b/comphelper/source/property/opropertybag.cxx
@@ -36,7 +36,7 @@
#include <iterator>
-//--------------------------------------------------------------------------
+
using namespace ::com::sun::star;
void createRegistryInfo_OPropertyBag()
@@ -58,7 +58,7 @@ namespace comphelper
//====================================================================
//= OPropertyBag
//====================================================================
- //--------------------------------------------------------------------
+
OPropertyBag::OPropertyBag()
:OPropertyBag_PBase( GetBroadcastHelper(), this )
,::cppu::IEventNotificationHook()
@@ -69,16 +69,16 @@ namespace comphelper
{
}
- //--------------------------------------------------------------------
+
OPropertyBag::~OPropertyBag()
{
}
- //--------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( OPropertyBag, OPropertyBag_Base, OPropertyBag_PBase )
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OPropertyBag, OPropertyBag_Base, OPropertyBag_PBase )
- //--------------------------------------------------------------------
+
Sequence< OUString > OPropertyBag::getSupportedServiceNames_static() throw( RuntimeException )
{
Sequence< OUString > aServices(1);
@@ -86,7 +86,7 @@ namespace comphelper
return aServices;
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::initialize( const Sequence< Any >& _rArguments ) throw (Exception, RuntimeException)
{
Sequence< Type > aTypes;
@@ -125,19 +125,19 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
OUString OPropertyBag::getImplementationName_static() throw( RuntimeException )
{
return OUString( "com.sun.star.comp.comphelper.OPropertyBag" );
}
- //--------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL OPropertyBag::Create( SAL_UNUSED_PARAMETER const Reference< XComponentContext >& )
{
return *new OPropertyBag;
}
- //--------------------------------------------------------------------
+
OUString SAL_CALL OPropertyBag::getImplementationName() throw (RuntimeException)
{
return getImplementationName_static();
@@ -148,13 +148,13 @@ namespace comphelper
return cppu::supportsService(this, rServiceName);
}
- //--------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OPropertyBag::getSupportedServiceNames( ) throw (RuntimeException)
{
return getSupportedServiceNames_static();
}
- //--------------------------------------------------------------------
+
void OPropertyBag::fireEvents(
sal_Int32 * /*pnHandles*/,
sal_Int32 nCount,
@@ -189,7 +189,7 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
::sal_Bool SAL_CALL OPropertyBag::isModified()
throw (RuntimeException)
{
@@ -217,13 +217,13 @@ namespace comphelper
m_NotifyListeners.removeInterface(xListener);
}
- //--------------------------------------------------------------------
+
Reference< XPropertySetInfo > SAL_CALL OPropertyBag::getPropertySetInfo( ) throw(RuntimeException)
{
return createPropertySetInfo( getInfoHelper() );
}
- //--------------------------------------------------------------------
+
::sal_Bool SAL_CALL OPropertyBag::has( const Any& /*aElement*/ ) throw (RuntimeException)
{
// XSet is only a workaround for addProperty not being able to add default-void properties.
@@ -231,7 +231,7 @@ namespace comphelper
return sal_False;
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::insert( const Any& _element ) throw (IllegalArgumentException, ElementExistException, RuntimeException)
{
// This is a workaround for addProperty not being able to add default-void properties.
@@ -258,7 +258,7 @@ namespace comphelper
setModified(sal_True);
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::remove( const Any& /*aElement*/ ) throw (IllegalArgumentException, NoSuchElementException, RuntimeException)
{
// XSet is only a workaround for addProperty not being able to add default-void properties.
@@ -267,7 +267,7 @@ namespace comphelper
}
- //--------------------------------------------------------------------
+
Reference< XEnumeration > SAL_CALL OPropertyBag::createEnumeration( ) throw (RuntimeException)
{
// XSet is only a workaround for addProperty not being able to add default-void properties.
@@ -275,7 +275,7 @@ namespace comphelper
return NULL;
}
- //--------------------------------------------------------------------
+
Type SAL_CALL OPropertyBag::getElementType( ) throw (RuntimeException)
{
// XSet is only a workaround for addProperty not being able to add default-void properties.
@@ -283,7 +283,7 @@ namespace comphelper
return Type();
}
- //--------------------------------------------------------------------
+
::sal_Bool SAL_CALL OPropertyBag::hasElements( ) throw (RuntimeException)
{
// XSet is only a workaround for addProperty not being able to add default-void properties.
@@ -291,25 +291,25 @@ namespace comphelper
return sal_False;
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::getFastPropertyValue( Any& _rValue, sal_Int32 _nHandle ) const
{
m_aDynamicProperties.getFastPropertyValue( _nHandle, _rValue );
}
- //--------------------------------------------------------------------
+
sal_Bool SAL_CALL OPropertyBag::convertFastPropertyValue( Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue ) throw (IllegalArgumentException)
{
return m_aDynamicProperties.convertFastPropertyValue( _nHandle, _rValue, _rConvertedValue, _rOldValue );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const Any& rValue ) throw (Exception)
{
m_aDynamicProperties.setFastPropertyValue( nHandle, rValue );
}
- //--------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper& SAL_CALL OPropertyBag::getInfoHelper()
{
if ( !m_pArrayHelper.get() )
@@ -322,7 +322,7 @@ namespace comphelper
}
- //--------------------------------------------------------------------
+
sal_Int32 OPropertyBag::findFreeHandle() const
{
const sal_Int32 nPrime = 1009;
@@ -344,7 +344,7 @@ namespace comphelper
return nCheck;
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::addProperty( const OUString& _rName, ::sal_Int16 _nAttributes, const Any& _rInitialValue ) throw (PropertyExistException, IllegalTypeException, IllegalArgumentException, RuntimeException)
{
::osl::ClearableMutexGuard g( m_aMutex );
@@ -367,7 +367,7 @@ namespace comphelper
setModified(sal_True);
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::removeProperty( const OUString& _rName ) throw (UnknownPropertyException, NotRemoveableException, RuntimeException)
{
::osl::ClearableMutexGuard g( m_aMutex );
@@ -381,7 +381,7 @@ namespace comphelper
setModified(sal_True);
}
- //--------------------------------------------------------------------
+
namespace
{
struct ComparePropertyValueByName : public ::std::binary_function< PropertyValue, PropertyValue, bool >
@@ -410,7 +410,7 @@ namespace comphelper
};
}
- //--------------------------------------------------------------------
+
Sequence< PropertyValue > SAL_CALL OPropertyBag::getPropertyValues( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -465,7 +465,7 @@ namespace comphelper
return aPropertyValues;
}
- //--------------------------------------------------------------------
+
void OPropertyBag::impl_setPropertyValues_throw( const Sequence< PropertyValue >& _rProps )
{
// sort (the XMultiPropertySet interface requires this)
@@ -543,14 +543,14 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::setPropertyValues( const Sequence< PropertyValue >& _rProps ) throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
impl_setPropertyValues_throw( _rProps );
}
- //--------------------------------------------------------------------
+
PropertyState OPropertyBag::getPropertyStateByHandle( sal_Int32 _nHandle )
{
// for properties which do not support the MAYBEDEFAULT attribute, don't rely on the base class, but
@@ -570,7 +570,7 @@ namespace comphelper
return OPropertyBag_PBase::getPropertyStateByHandle( _nHandle );
}
- //--------------------------------------------------------------------
+
Any OPropertyBag::getPropertyDefaultByHandle( sal_Int32 _nHandle ) const
{
Any aDefault;
diff --git a/comphelper/source/property/propagg.cxx b/comphelper/source/property/propagg.cxx
index 664d2bfbbb5a..c4a66b68d4cb 100644
--- a/comphelper/source/property/propagg.cxx
+++ b/comphelper/source/property/propagg.cxx
@@ -42,7 +42,7 @@ namespace comphelper
using namespace internal;
- //------------------------------------------------------------------------------
+
namespace
{
const Property* lcl_findPropertyByName( const Sequence< Property >& _rProps, const OUString& _rName )
@@ -61,7 +61,7 @@ namespace comphelper
//= OPropertyArrayAggregationHelper
//==================================================================
-//------------------------------------------------------------------------------
+
OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper(
const Sequence< Property >& _rProperties, const Sequence< Property >& _rAggProperties,
IPropertyInfoService* _pInfoService, sal_Int32 _nFirstAggregateId )
@@ -147,7 +147,7 @@ OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper(
m_aPropertyAccessors[ pMergedProps->Handle ].nPos = nMPLoop;
}
-//------------------------------------------------------------------
+
OPropertyArrayAggregationHelper::PropertyOrigin OPropertyArrayAggregationHelper::classifyProperty( const OUString& _rName )
{
PropertyOrigin eOrigin = UNKNOWN_PROPERTY;
@@ -166,7 +166,7 @@ OPropertyArrayAggregationHelper::PropertyOrigin OPropertyArrayAggregationHelper:
return eOrigin;
}
-//------------------------------------------------------------------
+
Property OPropertyArrayAggregationHelper::getPropertyByName( const OUString& _rPropertyName ) throw( UnknownPropertyException )
{
const Property* pProperty = findPropertyByName( _rPropertyName );
@@ -177,26 +177,26 @@ Property OPropertyArrayAggregationHelper::getPropertyByName( const OUString& _rP
return *pProperty;
}
-//------------------------------------------------------------------------------
+
sal_Bool OPropertyArrayAggregationHelper::hasPropertyByName(const OUString& _rPropertyName)
{
return NULL != findPropertyByName( _rPropertyName );
}
-//------------------------------------------------------------------------------
+
const Property* OPropertyArrayAggregationHelper::findPropertyByName(const :: OUString& _rName ) const
{
return lcl_findPropertyByName( m_aProperties, _rName );
}
-//------------------------------------------------------------------------------
+
sal_Int32 OPropertyArrayAggregationHelper::getHandleByName(const OUString& _rPropertyName)
{
const Property* pProperty = findPropertyByName( _rPropertyName );
return pProperty ? pProperty->Handle : -1;
}
-//------------------------------------------------------------------------------
+
sal_Bool OPropertyArrayAggregationHelper::fillPropertyMembersByHandle(
OUString* _pPropName, sal_Int16* _pAttributes, sal_Int32 _nHandle)
{
@@ -213,7 +213,7 @@ sal_Bool OPropertyArrayAggregationHelper::fillPropertyMembersByHandle(
return bRet;
}
-//------------------------------------------------------------------------------
+
bool OPropertyArrayAggregationHelper::getPropertyByHandle( sal_Int32 _nHandle, Property& _rProperty ) const
{
ConstPropertyAccessorMapIterator pos = m_aPropertyAccessors.find(_nHandle);
@@ -225,7 +225,7 @@ bool OPropertyArrayAggregationHelper::getPropertyByHandle( sal_Int32 _nHandle, P
return false;
}
-//------------------------------------------------------------------------------
+
bool OPropertyArrayAggregationHelper::fillAggregatePropertyInfoByHandle(
OUString* _pPropName, sal_Int32* _pOriginalHandle, sal_Int32 _nHandle) const
{
@@ -246,14 +246,14 @@ bool OPropertyArrayAggregationHelper::fillAggregatePropertyInfoByHandle(
}
-//------------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property> OPropertyArrayAggregationHelper::getProperties()
{
return m_aProperties;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OPropertyArrayAggregationHelper::fillHandles(
sal_Int32* _pHandles, const ::com::sun::star::uno::Sequence< OUString >& _rPropNames )
{
@@ -382,31 +382,31 @@ namespace internal
sal_Int32 getCurrentlyForwardedProperty( ) const { return m_nCurrentlyForwarding; }
};
- //--------------------------------------------------------------------------
+
PropertyForwarder::PropertyForwarder( OPropertySetAggregationHelper& _rAggregationHelper )
:m_rAggregationHelper( _rAggregationHelper )
,m_nCurrentlyForwarding( -1 )
{
}
- //--------------------------------------------------------------------------
+
PropertyForwarder::~PropertyForwarder()
{
}
- //--------------------------------------------------------------------------
+
void PropertyForwarder::takeResponsibilityFor( sal_Int32 _nHandle )
{
m_aProperties.insert( _nHandle );
}
- //--------------------------------------------------------------------------
+
bool PropertyForwarder::isResponsibleFor( sal_Int32 _nHandle )
{
return m_aProperties.find( _nHandle ) != m_aProperties.end();
}
- //--------------------------------------------------------------------------
+
void PropertyForwarder::doForward( sal_Int32 _nHandle, const Any& _rValue ) throw ( Exception )
{
OSL_ENSURE( m_rAggregationHelper.m_xAggregateSet.is(), "PropertyForwarder::doForward: no property set!" );
@@ -439,7 +439,7 @@ namespace internal
//= OPropertySetAggregationHelper
//==================================================================
-//------------------------------------------------------------------------------
+
OPropertySetAggregationHelper::OPropertySetAggregationHelper( ::cppu::OBroadcastHelper& rBHlp )
:OPropertyStateHelper( rBHlp )
,m_bListening( false )
@@ -447,13 +447,13 @@ OPropertySetAggregationHelper::OPropertySetAggregationHelper( ::cppu::OBroadcast
m_pForwarder = new PropertyForwarder( *this );
}
-//------------------------------------------------------------------------------
+
OPropertySetAggregationHelper::~OPropertySetAggregationHelper()
{
delete m_pForwarder;
}
-//------------------------------------------------------------------------------
+
::com::sun::star::uno::Any SAL_CALL OPropertySetAggregationHelper::queryInterface(const ::com::sun::star::uno::Type& _rType) throw( ::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Any aReturn = OPropertyStateHelper::queryInterface(_rType);
@@ -468,7 +468,7 @@ OPropertySetAggregationHelper::~OPropertySetAggregationHelper()
return aReturn;
}
-//------------------------------------------------------------------------------
+
void OPropertySetAggregationHelper::disposing()
{
osl::MutexGuard aGuard(rBHelper.rMutex);
@@ -484,7 +484,7 @@ void OPropertySetAggregationHelper::disposing()
OPropertyStateHelper::disposing();
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::disposing(const ::com::sun::star::lang::EventObject& _rSource) throw ( ::com::sun::star::uno::RuntimeException)
{
OSL_ENSURE(m_xAggregateSet.is(), "OPropertySetAggregationHelper::disposing : don't have an aggregate anymore !");
@@ -492,7 +492,7 @@ void SAL_CALL OPropertySetAggregationHelper::disposing(const ::com::sun::star::
m_bListening = false;
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::propertiesChange(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyChangeEvent>& _rEvents) throw( ::com::sun::star::uno::RuntimeException)
{
OSL_ENSURE(m_xAggregateSet.is(), "OPropertySetAggregationHelper::propertiesChange : have no aggregate !");
@@ -544,7 +544,7 @@ void SAL_CALL OPropertySetAggregationHelper::propertiesChange(const ::com::sun:
}
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::vetoableChange(const ::com::sun::star::beans::PropertyChangeEvent& _rEvent) throw( ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::uno::RuntimeException)
{
OSL_ENSURE(m_xAggregateSet.is(), "OPropertySetAggregationHelper::vetoableChange : have no aggregate !");
@@ -555,7 +555,7 @@ void SAL_CALL OPropertySetAggregationHelper::vetoableChange(const ::com::sun::s
fire(&nHandle, &_rEvent.NewValue, &_rEvent.OldValue, 1, sal_True);
}
-//------------------------------------------------------------------------------
+
void OPropertySetAggregationHelper::setAggregation(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxDelegate)
throw( ::com::sun::star::lang::IllegalArgumentException )
{
@@ -578,7 +578,7 @@ void OPropertySetAggregationHelper::setAggregation(const ::com::sun::star::uno:
throw ::com::sun::star::lang::IllegalArgumentException();
}
-//------------------------------------------------------------------------------
+
void OPropertySetAggregationHelper::startListening()
{
osl::MutexGuard aGuard(rBHelper.rMutex);
@@ -594,7 +594,7 @@ void OPropertySetAggregationHelper::startListening()
}
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::addVetoableChangeListener(const OUString& _rPropertyName,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener>& _rxListener)
throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)
@@ -604,7 +604,7 @@ void SAL_CALL OPropertySetAggregationHelper::addVetoableChangeListener(const OUS
startListening();
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::addPropertyChangeListener(const OUString& _rPropertyName,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener>& _rxListener)
throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)
@@ -614,7 +614,7 @@ void SAL_CALL OPropertySetAggregationHelper::addPropertyChangeListener(const OUS
startListening();
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::addPropertiesChangeListener(const ::com::sun::star::uno::Sequence< OUString >& _rPropertyNames,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener>& _rxListener)
throw( ::com::sun::star::uno::RuntimeException)
@@ -624,7 +624,7 @@ void SAL_CALL OPropertySetAggregationHelper::addPropertiesChangeListener(const
startListening();
}
-//------------------------------------------------------------------------------
+
sal_Int32 OPropertySetAggregationHelper::getOriginalHandle(sal_Int32 nHandle) const
{
OPropertyArrayAggregationHelper& rPH = (OPropertyArrayAggregationHelper&)const_cast<OPropertySetAggregationHelper*>(this)->getInfoHelper();
@@ -633,7 +633,7 @@ sal_Int32 OPropertySetAggregationHelper::getOriginalHandle(sal_Int32 nHandle) co
return nOriginalHandle;
}
-//--------------------------------------------------------------------------
+
OUString OPropertySetAggregationHelper::getPropertyName( sal_Int32 _nHandle ) const
{
OPropertyArrayAggregationHelper& rPH = static_cast< OPropertyArrayAggregationHelper& >( const_cast<OPropertySetAggregationHelper*>(this)->getInfoHelper() );
@@ -642,7 +642,7 @@ OUString OPropertySetAggregationHelper::getPropertyName( sal_Int32 _nHandle ) co
return aProperty.Name;
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::setFastPropertyValue(sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rValue)
throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException,
::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException,
@@ -662,7 +662,7 @@ void SAL_CALL OPropertySetAggregationHelper::setFastPropertyValue(sal_Int32 _nHa
OPropertySetHelper::setFastPropertyValue(_nHandle, _rValue);
}
-//------------------------------------------------------------------------------
+
void OPropertySetAggregationHelper::getFastPropertyValue( ::com::sun::star::uno::Any& rValue, sal_Int32 nHandle) const
{
OPropertyArrayAggregationHelper& rPH = (OPropertyArrayAggregationHelper&)const_cast<OPropertySetAggregationHelper*>(this)->getInfoHelper();
@@ -684,7 +684,7 @@ void OPropertySetAggregationHelper::getFastPropertyValue( ::com::sun::star::uno:
}
}
-//------------------------------------------------------------------------------
+
::com::sun::star::uno::Any SAL_CALL OPropertySetAggregationHelper::getFastPropertyValue(sal_Int32 nHandle)
throw( ::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::lang::WrappedTargetException,
@@ -708,7 +708,7 @@ void OPropertySetAggregationHelper::getFastPropertyValue( ::com::sun::star::uno:
return aValue;
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::setPropertyValues(
const Sequence< OUString >& _rPropertyNames, const Sequence< Any >& _rValues )
throw ( PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException )
@@ -895,7 +895,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyValues(
}
// XPropertyState
-//------------------------------------------------------------------------------
+
::com::sun::star::beans::PropertyState SAL_CALL OPropertySetAggregationHelper::getPropertyState(const OUString& _rPropertyName)
throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
@@ -920,7 +920,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyValues(
return getPropertyStateByHandle(nHandle);
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::setPropertyToDefault(const OUString& _rPropertyName)
throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
@@ -953,7 +953,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyToDefault(const OUString
}
}
-//------------------------------------------------------------------------------
+
::com::sun::star::uno::Any SAL_CALL OPropertySetAggregationHelper::getPropertyDefault(const OUString& aPropertyName)
throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)
{
@@ -976,7 +976,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyToDefault(const OUString
return getPropertyDefaultByHandle(nHandle);
}
-//------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OPropertySetAggregationHelper::convertFastPropertyValue( Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue ) throw(IllegalArgumentException)
{
bool bModified = false;
@@ -997,7 +997,7 @@ sal_Bool SAL_CALL OPropertySetAggregationHelper::convertFastPropertyValue( Any&
return bModified;
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::setFastPropertyValue_NoBroadcast( sal_Int32 _nHandle, const Any& _rValue ) throw ( Exception )
{
OSL_ENSURE( m_pForwarder->isResponsibleFor( _nHandle ), "OPropertySetAggregationHelper::setFastPropertyValue_NoBroadcast: this is no forwarded property - did you use declareForwardedProperty for it?" );
@@ -1005,26 +1005,26 @@ void SAL_CALL OPropertySetAggregationHelper::setFastPropertyValue_NoBroadcast( s
m_pForwarder->doForward( _nHandle, _rValue );
}
-//------------------------------------------------------------------------------
+
void OPropertySetAggregationHelper::declareForwardedProperty( sal_Int32 _nHandle )
{
OSL_ENSURE( !m_pForwarder->isResponsibleFor( _nHandle ), "OPropertySetAggregationHelper::declareForwardedProperty: already declared!" );
m_pForwarder->takeResponsibilityFor( _nHandle );
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::forwardingPropertyValue( sal_Int32 )
{
// not interested in
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::forwardedPropertyValue( sal_Int32, bool )
{
// not interested in
}
-//------------------------------------------------------------------------------
+
bool OPropertySetAggregationHelper::isCurrentlyForwardingProperty( sal_Int32 _nHandle ) const
{
return m_pForwarder->getCurrentlyForwardedProperty() == _nHandle;
diff --git a/comphelper/source/property/property.cxx b/comphelper/source/property/property.cxx
index 2eaec9af986c..872857a0d008 100644
--- a/comphelper/source/property/property.cxx
+++ b/comphelper/source/property/property.cxx
@@ -58,7 +58,7 @@ namespace comphelper
namespace PropertyAttribute = ::com::sun::star::beans::PropertyAttribute;
-//------------------------------------------------------------------
+
void copyProperties(const Reference<XPropertySet>& _rxSource,
const Reference<XPropertySet>& _rxDest)
{
@@ -129,7 +129,7 @@ void copyProperties(const Reference<XPropertySet>& _rxSource,
}
}
-//------------------------------------------------------------------
+
bool hasProperty(const OUString& _rName, const Reference<XPropertySet>& _rxSet)
{
if (_rxSet.is())
@@ -140,7 +140,7 @@ bool hasProperty(const OUString& _rName, const Reference<XPropertySet>& _rxSet)
return false;
}
-//------------------------------------------------------------------
+
void RemoveProperty(Sequence<Property>& _rProps, const OUString& _rPropName)
{
sal_Int32 nLen = _rProps.getLength();
@@ -158,7 +158,7 @@ void RemoveProperty(Sequence<Property>& _rProps, const OUString& _rPropName)
}
}
-//------------------------------------------------------------------
+
void ModifyPropertyAttributes(Sequence<Property>& seqProps, const OUString& sPropName, sal_Int16 nAddAttrib, sal_Int16 nRemoveAttrib)
{
sal_Int32 nLen = seqProps.getLength();
@@ -176,7 +176,7 @@ void ModifyPropertyAttributes(Sequence<Property>& seqProps, const OUString& sPro
}
}
-//------------------------------------------------------------------
+
bool tryPropertyValue(Any& _rConvertedValue, Any& _rOldValue, const Any& _rValueToSet, const Any& _rCurrentValue, const Type& _rExpectedType)
{
bool bModified(false);
diff --git a/comphelper/source/property/propertybag.cxx b/comphelper/source/property/propertybag.cxx
index 79225fc492e6..95471eab0925 100644
--- a/comphelper/source/property/propertybag.cxx
+++ b/comphelper/source/property/propertybag.cxx
@@ -58,7 +58,7 @@ namespace comphelper
//====================================================================
//= PropertyBag
//====================================================================
- //--------------------------------------------------------------------
+
PropertyBag::PropertyBag()
:m_pImpl( new PropertyBag_Impl )
{
@@ -68,13 +68,13 @@ namespace comphelper
{
}
- //--------------------------------------------------------------------
+
void PropertyBag::setAllowEmptyPropertyName( bool i_isAllowed )
{
m_pImpl->m_bAllowEmptyPropertyName = i_isAllowed;
}
- //--------------------------------------------------------------------
+
namespace
{
void lcl_checkForEmptyName( const bool _allowEmpty, const OUString& _name )
@@ -99,7 +99,7 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
void PropertyBag::addVoidProperty( const OUString& _rName, const Type& _rType, sal_Int32 _nHandle, sal_Int32 _nAttributes )
{
if ( _rType.getTypeClass() == TypeClass_VOID )
@@ -122,7 +122,7 @@ namespace comphelper
m_pImpl->aDefaults.insert( MapInt2Any::value_type( _nHandle, Any() ) );
}
- //--------------------------------------------------------------------
+
void PropertyBag::addProperty( const OUString& _rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const Any& _rInitialValue )
{
// check type sanity
@@ -145,7 +145,7 @@ namespace comphelper
m_pImpl->aDefaults.insert( MapInt2Any::value_type( _nHandle, _rInitialValue ) );
}
- //--------------------------------------------------------------------
+
void PropertyBag::removeProperty( const OUString& _rName )
{
const Property& rProp = getProperty( _rName );
@@ -159,7 +159,7 @@ namespace comphelper
m_pImpl->aDefaults.erase( nHandle );
}
- //--------------------------------------------------------------------
+
void PropertyBag::getFastPropertyValue( sal_Int32 _nHandle, Any& _out_rValue ) const
{
if ( !hasPropertyByHandle( _nHandle ) )
@@ -168,7 +168,7 @@ namespace comphelper
OPropertyContainerHelper::getFastPropertyValue( _out_rValue, _nHandle );
}
- //--------------------------------------------------------------------
+
bool PropertyBag::convertFastPropertyValue( sal_Int32 _nHandle, const Any& _rNewValue, Any& _out_rConvertedValue, Any& _out_rCurrentValue ) const
{
if ( !hasPropertyByHandle( _nHandle ) )
@@ -178,7 +178,7 @@ namespace comphelper
_out_rConvertedValue, _out_rCurrentValue, _nHandle, _rNewValue );
}
- //--------------------------------------------------------------------
+
void PropertyBag::setFastPropertyValue( sal_Int32 _nHandle, const Any& _rValue )
{
if ( !hasPropertyByHandle( _nHandle ) )
@@ -187,7 +187,7 @@ namespace comphelper
OPropertyContainerHelper::setFastPropertyValue( _nHandle, _rValue );
}
- //--------------------------------------------------------------------
+
void PropertyBag::getPropertyDefaultByHandle( sal_Int32 _nHandle, Any& _out_rValue ) const
{
if ( !hasPropertyByHandle( _nHandle ) )
diff --git a/comphelper/source/property/propertycontainer.cxx b/comphelper/source/property/propertycontainer.cxx
index 98e9439a687b..c8cc99004556 100644
--- a/comphelper/source/property/propertycontainer.cxx
+++ b/comphelper/source/property/propertycontainer.cxx
@@ -40,18 +40,18 @@ using namespace ::com::sun::star::beans;
//==========================================================================
//= OPropertyContainer
//==========================================================================
-//--------------------------------------------------------------------------
+
OPropertyContainer::OPropertyContainer(::cppu::OBroadcastHelper& _rBHelper)
:OPropertySetHelper(_rBHelper)
{
}
-// -------------------------------------------------------------------------
+
OPropertyContainer::~OPropertyContainer()
{
}
-//--------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OPropertyContainer::getTypes() throw (RuntimeException)
{
// just the types from our one and only base class
@@ -63,27 +63,27 @@ Sequence< Type > SAL_CALL OPropertyContainer::getTypes() throw (RuntimeException
return aTypes.getTypes();
}
-//--------------------------------------------------------------------------
+
void SAL_CALL OPropertyContainer::setFastPropertyValue( sal_Int32 nHandle, const Any& rValue ) throw ( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException)
{
OPropertySetHelper::setFastPropertyValue( nHandle, rValue );
}
-//--------------------------------------------------------------------------
+
sal_Bool OPropertyContainer::convertFastPropertyValue(
Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue ) throw (IllegalArgumentException)
{
return OPropertyContainerHelper::convertFastPropertyValue( _rConvertedValue, _rOldValue, _nHandle, _rValue );
}
-//--------------------------------------------------------------------------
+
void OPropertyContainer::setFastPropertyValue_NoBroadcast(sal_Int32 _nHandle, const Any& _rValue)
throw (Exception, std::exception)
{
OPropertyContainerHelper::setFastPropertyValue( _nHandle, _rValue );
}
-//--------------------------------------------------------------------------
+
void OPropertyContainer::getFastPropertyValue(Any& _rValue, sal_Int32 _nHandle) const
{
OPropertyContainerHelper::getFastPropertyValue( _rValue, _nHandle );
diff --git a/comphelper/source/property/propertycontainerhelper.cxx b/comphelper/source/property/propertycontainerhelper.cxx
index 0a859ef2ff91..d0e783d7dc6f 100644
--- a/comphelper/source/property/propertycontainerhelper.cxx
+++ b/comphelper/source/property/propertycontainerhelper.cxx
@@ -37,7 +37,7 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
-//--------------------------------------------------------------------------
+
namespace
{
// comparing two property descriptions
@@ -64,18 +64,18 @@ namespace
//==========================================================================
//= OPropertyContainerHelper
//==========================================================================
-//--------------------------------------------------------------------------
+
OPropertyContainerHelper::OPropertyContainerHelper()
:m_bUnused(false)
{
}
-// -------------------------------------------------------------------------
+
OPropertyContainerHelper::~OPropertyContainerHelper()
{
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::registerProperty(const OUString& _rName, sal_Int32 _nHandle,
sal_Int32 _nAttributes, void* _pPointerToMember, const Type& _rMemberType)
{
@@ -94,7 +94,7 @@ void OPropertyContainerHelper::registerProperty(const OUString& _rName, sal_Int3
implPushBackProperty(aNewProp);
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::revokeProperty( sal_Int32 _nHandle )
{
PropertiesIterator aPos = searchHandle( _nHandle );
@@ -103,7 +103,7 @@ void OPropertyContainerHelper::revokeProperty( sal_Int32 _nHandle )
m_aProperties.erase( aPos );
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::registerMayBeVoidProperty(const OUString& _rName, sal_Int32 _nHandle, sal_Int32 _nAttributes,
Any* _pPointerToMember, const Type& _rExpectedType)
{
@@ -125,7 +125,7 @@ void OPropertyContainerHelper::registerMayBeVoidProperty(const OUString& _rName,
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::registerPropertyNoMember(const OUString& _rName, sal_Int32 _nHandle, sal_Int32 _nAttributes,
const Type& _rType, const void* _pInitialValue)
{
@@ -146,13 +146,13 @@ void OPropertyContainerHelper::registerPropertyNoMember(const OUString& _rName,
implPushBackProperty(aNewProp);
}
-//--------------------------------------------------------------------------
+
bool OPropertyContainerHelper::isRegisteredProperty( sal_Int32 _nHandle ) const
{
return const_cast< OPropertyContainerHelper* >( this )->searchHandle( _nHandle ) != m_aProperties.end();
}
-//--------------------------------------------------------------------------
+
bool OPropertyContainerHelper::isRegisteredProperty( const OUString& _rName ) const
{
// TODO: the current structure is from a time where properties were
@@ -168,7 +168,7 @@ bool OPropertyContainerHelper::isRegisteredProperty( const OUString& _rName ) co
return pos != m_aProperties.end();
}
-//--------------------------------------------------------------------------
+
namespace
{
struct ComparePropertyHandles
@@ -180,7 +180,7 @@ namespace
};
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::implPushBackProperty(const PropertyDescription& _rProp)
{
#ifdef DBG_UTIL
@@ -201,7 +201,7 @@ void OPropertyContainerHelper::implPushBackProperty(const PropertyDescription& _
m_aProperties.insert( pos, _rProp );
}
-//--------------------------------------------------------------------------
+
namespace
{
void lcl_throwIllegalPropertyValueTypeException( const PropertyDescription& _rProperty, const Any& _rValue )
@@ -219,7 +219,7 @@ namespace
}
}
-//--------------------------------------------------------------------------
+
bool OPropertyContainerHelper::convertFastPropertyValue(
Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue ) SAL_THROW( (IllegalArgumentException) )
{
@@ -365,7 +365,7 @@ bool OPropertyContainerHelper::convertFastPropertyValue(
return bModified;
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::setFastPropertyValue(sal_Int32 _nHandle, const Any& _rValue) SAL_THROW( (Exception) )
{
// get the property somebody is asking for
@@ -407,7 +407,7 @@ void OPropertyContainerHelper::setFastPropertyValue(sal_Int32 _nHandle, const An
}
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::getFastPropertyValue(Any& _rValue, sal_Int32 _nHandle) const
{
// get the property somebody is asking for
@@ -436,7 +436,7 @@ void OPropertyContainerHelper::getFastPropertyValue(Any& _rValue, sal_Int32 _nHa
}
}
-//--------------------------------------------------------------------------
+
OPropertyContainerHelper::PropertiesIterator OPropertyContainerHelper::searchHandle(sal_Int32 _nHandle)
{
PropertyDescription aHandlePropDesc;
@@ -455,7 +455,7 @@ OPropertyContainerHelper::PropertiesIterator OPropertyContainerHelper::searchHan
return aLowerBound;
}
-//--------------------------------------------------------------------------
+
const Property& OPropertyContainerHelper::getProperty( const OUString& _rName ) const
{
ConstPropertiesIterator pos = ::std::find_if(
@@ -469,7 +469,7 @@ const Property& OPropertyContainerHelper::getProperty( const OUString& _rName )
return pos->aProperty;
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::describeProperties(Sequence< Property >& _rProps) const
{
Sequence< Property > aOwnProps(m_aProperties.size());
diff --git a/comphelper/source/property/propertystatecontainer.cxx b/comphelper/source/property/propertystatecontainer.cxx
index e93c6bb04199..ab7774887d00 100644
--- a/comphelper/source/property/propertystatecontainer.cxx
+++ b/comphelper/source/property/propertystatecontainer.cxx
@@ -48,13 +48,13 @@ namespace comphelper
//=====================================================================
//= OPropertyStateContainer
//=====================================================================
- //---------------------------------------------------------------------
+
OPropertyStateContainer::OPropertyStateContainer( ::cppu::OBroadcastHelper& _rBHelper )
:OPropertyContainer( _rBHelper )
{
}
- //--------------------------------------------------------------------
+
Any SAL_CALL OPropertyStateContainer::queryInterface( const Type& _rType ) throw (RuntimeException)
{
Any aReturn = OPropertyContainer::queryInterface( _rType );
@@ -63,10 +63,10 @@ namespace comphelper
return aReturn;
}
- //--------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OPropertyStateContainer, OPropertyContainer, OPropertyStateContainer_TBase )
- //--------------------------------------------------------------------
+
sal_Int32 OPropertyStateContainer::getHandleForName( const OUString& _rPropertyName ) SAL_THROW( ( UnknownPropertyException ) )
{
// look up the handle for the name
@@ -79,13 +79,13 @@ namespace comphelper
return nHandle;
}
- //--------------------------------------------------------------------
+
PropertyState SAL_CALL OPropertyStateContainer::getPropertyState( const OUString& _rPropertyName ) throw (UnknownPropertyException, RuntimeException)
{
return getPropertyStateByHandle( getHandleForName( _rPropertyName ) );
}
- //--------------------------------------------------------------------
+
Sequence< PropertyState > SAL_CALL OPropertyStateContainer::getPropertyStates( const Sequence< OUString >& _rPropertyNames ) throw (UnknownPropertyException, RuntimeException)
{
sal_Int32 nProperties = _rPropertyNames.getLength();
@@ -138,13 +138,13 @@ namespace comphelper
return aStates;
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyStateContainer::setPropertyToDefault( const OUString& _rPropertyName ) throw (UnknownPropertyException, RuntimeException)
{
setPropertyToDefaultByHandle( getHandleForName( _rPropertyName ) );
}
- //--------------------------------------------------------------------
+
Any SAL_CALL OPropertyStateContainer::getPropertyDefault( const OUString& _rPropertyName ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException)
{
Any aDefault;
@@ -152,7 +152,7 @@ namespace comphelper
return aDefault;
}
- //--------------------------------------------------------------------
+
PropertyState OPropertyStateContainer::getPropertyStateByHandle( sal_Int32 _nHandle )
{
// simply compare the current and the default value
@@ -171,7 +171,7 @@ namespace comphelper
return PropertyState_DIRECT_VALUE;
}
- //--------------------------------------------------------------------
+
void OPropertyStateContainer::setPropertyToDefaultByHandle( sal_Int32 _nHandle )
{
Any aDefault;
diff --git a/comphelper/source/property/propmultiplex.cxx b/comphelper/source/property/propmultiplex.cxx
index 08d27c6c8343..f04a4cc88097 100644
--- a/comphelper/source/property/propmultiplex.cxx
+++ b/comphelper/source/property/propmultiplex.cxx
@@ -32,20 +32,20 @@ using namespace ::com::sun::star::beans;
//========================================================================
//= OPropertyChangeListener
//========================================================================
-//------------------------------------------------------------------------
+
OPropertyChangeListener::~OPropertyChangeListener()
{
if (m_pAdapter)
m_pAdapter->dispose();
}
-//------------------------------------------------------------------
+
void OPropertyChangeListener::_disposing(const EventObject&) throw( RuntimeException)
{
// nothing to do here
}
-//------------------------------------------------------------------
+
void OPropertyChangeListener::disposeAdapter()
{
if ( m_pAdapter )
@@ -55,7 +55,7 @@ void OPropertyChangeListener::disposeAdapter()
OSL_ENSURE( !m_pAdapter, "OPropertyChangeListener::disposeAdapter: what did dispose do?" );
}
-//------------------------------------------------------------------
+
void OPropertyChangeListener::setAdapter(OPropertyChangeMultiplexer* pAdapter)
{
if (m_pAdapter)
@@ -76,7 +76,7 @@ void OPropertyChangeListener::setAdapter(OPropertyChangeMultiplexer* pAdapter)
//========================================================================
//= OPropertyChangeMultiplexer
//========================================================================
-//------------------------------------------------------------------
+
OPropertyChangeMultiplexer::OPropertyChangeMultiplexer(OPropertyChangeListener* _pListener, const Reference< XPropertySet>& _rxSet, bool _bAutoReleaseSet)
:m_xSet(_rxSet)
,m_pListener(_pListener)
@@ -87,24 +87,24 @@ OPropertyChangeMultiplexer::OPropertyChangeMultiplexer(OPropertyChangeListener*
m_pListener->setAdapter(this);
}
-//------------------------------------------------------------------
+
OPropertyChangeMultiplexer::~OPropertyChangeMultiplexer()
{
}
-//------------------------------------------------------------------
+
void OPropertyChangeMultiplexer::lock()
{
++m_nLockCount;
}
-//------------------------------------------------------------------
+
void OPropertyChangeMultiplexer::unlock()
{
--m_nLockCount;
}
-//------------------------------------------------------------------
+
void OPropertyChangeMultiplexer::dispose()
{
if (m_bListening)
@@ -126,7 +126,7 @@ void OPropertyChangeMultiplexer::dispose()
}
// XEventListener
-//------------------------------------------------------------------
+
void SAL_CALL OPropertyChangeMultiplexer::disposing( const EventObject& _rSource) throw( RuntimeException)
{
if (m_pListener)
@@ -147,14 +147,14 @@ void SAL_CALL OPropertyChangeMultiplexer::disposing( const EventObject& _rSourc
}
// XPropertyChangeListener
-//------------------------------------------------------------------
+
void SAL_CALL OPropertyChangeMultiplexer::propertyChange( const PropertyChangeEvent& _rEvent ) throw( RuntimeException)
{
if (m_pListener && !locked())
m_pListener->_propertyChanged(_rEvent);
}
-//------------------------------------------------------------------
+
void OPropertyChangeMultiplexer::addProperty(const OUString& _sPropertyName)
{
if (m_xSet.is())
diff --git a/comphelper/source/property/propstate.cxx b/comphelper/source/property/propstate.cxx
index f2d0500af1eb..bafdf1c5b37f 100644
--- a/comphelper/source/property/propstate.cxx
+++ b/comphelper/source/property/propstate.cxx
@@ -43,7 +43,7 @@ namespace comphelper
// OPropertyStateHelper
//=====================================================================
- //---------------------------------------------------------------------
+
::com::sun::star::uno::Any SAL_CALL OPropertyStateHelper::queryInterface(const ::com::sun::star::uno::Type& _rType) throw( ::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Any aReturn = OPropertySetHelper2::queryInterface(_rType);
@@ -54,7 +54,7 @@ namespace comphelper
return aReturn;
}
- //---------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> OPropertyStateHelper::getTypes() throw( ::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> aTypes(4);
@@ -75,14 +75,14 @@ namespace comphelper
OPropertyStateHelper::~OPropertyStateHelper() {}
- //---------------------------------------------------------------------
+
void OPropertyStateHelper::firePropertyChange(sal_Int32 nHandle, const ::com::sun::star::uno::Any& aNewValue, const ::com::sun::star::uno::Any& aOldValue)
{
fire(&nHandle, &aNewValue, &aOldValue, 1, sal_False);
}
// XPropertyState
- //---------------------------------------------------------------------
+
::com::sun::star::beans::PropertyState SAL_CALL OPropertyStateHelper::getPropertyState(const OUString& _rsName) throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
cppu::IPropertyArrayHelper& rPH = getInfoHelper();
@@ -94,7 +94,7 @@ namespace comphelper
return getPropertyStateByHandle(nHandle);
}
- //---------------------------------------------------------------------
+
void SAL_CALL OPropertyStateHelper::setPropertyToDefault(const OUString& _rsName) throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
cppu::IPropertyArrayHelper& rPH = getInfoHelper();
@@ -106,7 +106,7 @@ namespace comphelper
setPropertyToDefaultByHandle(nHandle);
}
- //---------------------------------------------------------------------
+
::com::sun::star::uno::Any SAL_CALL OPropertyStateHelper::getPropertyDefault(const OUString& _rsName) throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)
{
cppu::IPropertyArrayHelper& rPH = getInfoHelper();
@@ -118,7 +118,7 @@ namespace comphelper
return getPropertyDefaultByHandle(nHandle);
}
- //---------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState> SAL_CALL OPropertyStateHelper::getPropertyStates(const ::com::sun::star::uno::Sequence< OUString >& _rPropertyNames) throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
sal_Int32 nLen = _rPropertyNames.getLength();
@@ -148,7 +148,7 @@ namespace comphelper
return aRet;
}
- //---------------------------------------------------------------------
+
::com::sun::star::beans::PropertyState OPropertyStateHelper::getPropertyStateByHandle( sal_Int32 _nHandle )
{
// simply compare the current and the default value
@@ -164,13 +164,13 @@ namespace comphelper
return bEqual ? PropertyState_DEFAULT_VALUE : PropertyState_DIRECT_VALUE;
}
- //---------------------------------------------------------------------
+
void OPropertyStateHelper::setPropertyToDefaultByHandle( sal_Int32 _nHandle )
{
setFastPropertyValue( _nHandle, getPropertyDefaultByHandle( _nHandle ) );
}
- //---------------------------------------------------------------------
+
::com::sun::star::uno::Any OPropertyStateHelper::getPropertyDefaultByHandle( sal_Int32 ) const
{
return ::com::sun::star::uno::Any();
@@ -179,18 +179,18 @@ namespace comphelper
//=====================================================================
// OStatefulPropertySet
//=====================================================================
- //---------------------------------------------------------------------
+
OStatefulPropertySet::OStatefulPropertySet()
:OPropertyStateHelper( GetBroadcastHelper() )
{
}
- //---------------------------------------------------------------------
+
OStatefulPropertySet::~OStatefulPropertySet()
{
}
- //---------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OStatefulPropertySet::getTypes() throw(RuntimeException)
{
Sequence< Type > aOwnTypes( 2 );
@@ -205,14 +205,14 @@ namespace comphelper
namespace { struct lcl_ImplId : public rtl::Static< ::cppu::OImplementationId, lcl_ImplId > {}; }
- //---------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL OStatefulPropertySet::getImplementationId() throw(RuntimeException)
{
::cppu::OImplementationId &rID = lcl_ImplId::get();
return rID.getImplementationId();
}
- //---------------------------------------------------------------------
+
Any SAL_CALL OStatefulPropertySet::queryInterface( const Type& _rType ) throw(RuntimeException)
{
Any aReturn = OWeakObject::queryInterface( _rType );
@@ -223,13 +223,13 @@ namespace comphelper
return aReturn;
}
- //---------------------------------------------------------------------
+
void SAL_CALL OStatefulPropertySet::acquire() throw()
{
::cppu::OWeakObject::acquire();
}
- //---------------------------------------------------------------------
+
void SAL_CALL OStatefulPropertySet::release() throw()
{
::cppu::OWeakObject::release();
diff --git a/comphelper/source/streaming/basicio.cxx b/comphelper/source/streaming/basicio.cxx
index ff68422ff94b..a5adb0e94bca 100644
--- a/comphelper/source/streaming/basicio.cxx
+++ b/comphelper/source/streaming/basicio.cxx
@@ -24,7 +24,7 @@ namespace comphelper
{
//.........................................................................
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectOutputStream>& operator << (
const staruno::Reference<stario::XObjectOutputStream>& _rxOutStream,
const starawt::FontDescriptor& _rFont)
@@ -49,7 +49,7 @@ const staruno::Reference<stario::XObjectOutputStream>& operator << (
}
// FontDescriptor
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectInputStream>& operator >> (
const staruno::Reference<stario::XObjectInputStream>& _rxInStream,
starawt::FontDescriptor& _rFont)
@@ -74,84 +74,84 @@ const staruno::Reference<stario::XObjectInputStream>& operator >> (
return _rxInStream;
}
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectInputStream>& operator >> (const staruno::Reference<stario::XObjectInputStream>& _rxInStream, bool& _rVal)
{
_rVal = _rxInStream->readBoolean();
return _rxInStream;
}
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectOutputStream>& operator << (const staruno::Reference<stario::XObjectOutputStream>& _rxOutStream, bool _bVal)
{
_rxOutStream->writeBoolean(_bVal);
return _rxOutStream;
}
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectInputStream>& operator >> (const staruno::Reference<stario::XObjectInputStream>& _rxInStream, OUString& rStr)
{
rStr = _rxInStream->readUTF();
return _rxInStream;
}
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectOutputStream>& operator << (const staruno::Reference<stario::XObjectOutputStream>& _rxOutStream, const OUString& rStr)
{
_rxOutStream->writeUTF(rStr);
return _rxOutStream;
}
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectInputStream>& operator >> (const staruno::Reference<stario::XObjectInputStream>& _rxInStream, sal_Int16& _rValue)
{
_rValue = _rxInStream->readShort();
return _rxInStream;
}
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectOutputStream>& operator << (const staruno::Reference<stario::XObjectOutputStream>& _rxOutStream, sal_Int16 _nValue)
{
_rxOutStream->writeShort(_nValue);
return _rxOutStream;
}
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectInputStream>& operator >> (const staruno::Reference<stario::XObjectInputStream>& _rxInStream, sal_uInt16& _rValue)
{
_rValue = _rxInStream->readShort();
return _rxInStream;
}
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectOutputStream>& operator << (const staruno::Reference<stario::XObjectOutputStream>& _rxOutStream, sal_uInt16 _nValue)
{
_rxOutStream->writeShort(_nValue);
return _rxOutStream;
}
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectInputStream>& operator >> (const staruno::Reference<stario::XObjectInputStream>& _rxInStream, sal_uInt32& _rValue)
{
_rValue = _rxInStream->readLong();
return _rxInStream;
}
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectOutputStream>& operator << (const staruno::Reference<stario::XObjectOutputStream>& _rxOutStream, sal_uInt32 _nValue)
{
_rxOutStream->writeLong(_nValue);
return _rxOutStream;
}
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectInputStream>& operator >> (const staruno::Reference<stario::XObjectInputStream>& _rxInStream, sal_Int32& _rValue)
{
_rValue = _rxInStream->readLong();
return _rxInStream;
}
-//------------------------------------------------------------------------------
+
const staruno::Reference<stario::XObjectOutputStream>& operator << (const staruno::Reference<stario::XObjectOutputStream>& _rxOutStream, sal_Int32 _nValue)
{
_rxOutStream->writeLong(_nValue);
diff --git a/comphelper/source/streaming/oslfile2streamwrap.cxx b/comphelper/source/streaming/oslfile2streamwrap.cxx
index 23764161a316..f49a9d653f1f 100644
--- a/comphelper/source/streaming/oslfile2streamwrap.cxx
+++ b/comphelper/source/streaming/oslfile2streamwrap.cxx
@@ -25,18 +25,18 @@ namespace comphelper
{
using namespace osl;
-//------------------------------------------------------------------
+
OSLInputStreamWrapper::OSLInputStreamWrapper( File& _rFile )
: m_pFile(&_rFile)
{
}
-//------------------------------------------------------------------
+
OSLInputStreamWrapper::~OSLInputStreamWrapper()
{
}
-//------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OSLInputStreamWrapper::readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead)
throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
@@ -62,7 +62,7 @@ sal_Int32 SAL_CALL OSLInputStreamWrapper::readBytes(staruno::Sequence< sal_Int8
return sal::static_int_cast< sal_Int32 >(nRead);
}
-//------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OSLInputStreamWrapper::readSomeBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
if (!m_pFile)
@@ -74,7 +74,7 @@ sal_Int32 SAL_CALL OSLInputStreamWrapper::readSomeBytes(staruno::Sequence< sal_I
return readBytes(aData, nMaxBytesToRead);
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OSLInputStreamWrapper::skipBytes(sal_Int32 nBytesToSkip) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -92,7 +92,7 @@ void SAL_CALL OSLInputStreamWrapper::skipBytes(sal_Int32 nBytesToSkip) throw( st
}
}
-//------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OSLInputStreamWrapper::available() throw( stario::NotConnectedException, staruno::RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -122,7 +122,7 @@ sal_Int32 SAL_CALL OSLInputStreamWrapper::available() throw( stario::NotConnecte
std::max(nAvailable, sal::static_int_cast< sal_uInt64 >(SAL_MAX_INT32)));
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OSLInputStreamWrapper::closeInput() throw( stario::NotConnectedException, staruno::RuntimeException )
{
if (!m_pFile)
@@ -135,7 +135,7 @@ void SAL_CALL OSLInputStreamWrapper::closeInput() throw( stario::NotConnectedExc
/*************************************************************************/
// stario::XOutputStream
-//------------------------------------------------------------------------------
+
OSLOutputStreamWrapper::OSLOutputStreamWrapper(osl::File & _rFile):
rFile(_rFile)
@@ -154,12 +154,12 @@ void SAL_CALL OSLOutputStreamWrapper::writeBytes(const staruno::Sequence< sal_In
}
}
-//------------------------------------------------------------------
+
void SAL_CALL OSLOutputStreamWrapper::flush() throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
}
-//------------------------------------------------------------------
+
void SAL_CALL OSLOutputStreamWrapper::closeOutput() throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
rFile.close();
diff --git a/comphelper/source/streaming/seekableinput.cxx b/comphelper/source/streaming/seekableinput.cxx
index fdd62f3cfe34..3f0f49c3f284 100644
--- a/comphelper/source/streaming/seekableinput.cxx
+++ b/comphelper/source/streaming/seekableinput.cxx
@@ -31,7 +31,7 @@ namespace comphelper
const sal_Int32 nConstBufferSize = 32000;
-//---------------------------------------------------------------------------
+
void copyInputToOutput_Impl( const uno::Reference< io::XInputStream >& xIn,
const uno::Reference< io::XOutputStream >& xOut )
{
@@ -52,7 +52,7 @@ void copyInputToOutput_Impl( const uno::Reference< io::XInputStream >& xIn,
while ( nRead == nConstBufferSize );
}
-//---------------------------------------------------------------------------
+
OSeekableInputWrapper::OSeekableInputWrapper(
const uno::Reference< io::XInputStream >& xInStream,
const uno::Reference< uno::XComponentContext >& rxContext )
@@ -63,12 +63,12 @@ OSeekableInputWrapper::OSeekableInputWrapper(
throw uno::RuntimeException();
}
-//---------------------------------------------------------------------------
+
OSeekableInputWrapper::~OSeekableInputWrapper()
{
}
-//---------------------------------------------------------------------------
+
uno::Reference< io::XInputStream > OSeekableInputWrapper::CheckSeekableCanWrap(
const uno::Reference< io::XInputStream >& xInStream,
const uno::Reference< uno::XComponentContext >& rxContext )
@@ -84,7 +84,7 @@ uno::Reference< io::XInputStream > OSeekableInputWrapper::CheckSeekableCanWrap(
return xNewStream;
}
-//---------------------------------------------------------------------------
+
void OSeekableInputWrapper::PrepareCopy_Impl()
{
if ( !m_xCopyInput.is() )
@@ -114,7 +114,7 @@ void OSeekableInputWrapper::PrepareCopy_Impl()
}
// XInputStream
-//---------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OSeekableInputWrapper::readBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
throw ( io::NotConnectedException,
io::BufferSizeExceededException,
@@ -131,7 +131,7 @@ sal_Int32 SAL_CALL OSeekableInputWrapper::readBytes( uno::Sequence< sal_Int8 >&
return m_xCopyInput->readBytes( aData, nBytesToRead );
}
-//---------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OSeekableInputWrapper::readSomeBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead )
throw ( io::NotConnectedException,
io::BufferSizeExceededException,
@@ -148,7 +148,7 @@ sal_Int32 SAL_CALL OSeekableInputWrapper::readSomeBytes( uno::Sequence< sal_Int8
return m_xCopyInput->readSomeBytes( aData, nMaxBytesToRead );
}
-//---------------------------------------------------------------------------
+
void SAL_CALL OSeekableInputWrapper::skipBytes( sal_Int32 nBytesToSkip )
throw ( io::NotConnectedException,
io::BufferSizeExceededException,
@@ -165,7 +165,7 @@ void SAL_CALL OSeekableInputWrapper::skipBytes( sal_Int32 nBytesToSkip )
m_xCopyInput->skipBytes( nBytesToSkip );
}
-//---------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OSeekableInputWrapper::available()
throw ( io::NotConnectedException,
io::IOException,
@@ -181,7 +181,7 @@ sal_Int32 SAL_CALL OSeekableInputWrapper::available()
return m_xCopyInput->available();
}
-//---------------------------------------------------------------------------
+
void SAL_CALL OSeekableInputWrapper::closeInput()
throw ( io::NotConnectedException,
io::IOException,
@@ -206,7 +206,7 @@ void SAL_CALL OSeekableInputWrapper::closeInput()
// XSeekable
-//---------------------------------------------------------------------------
+
void SAL_CALL OSeekableInputWrapper::seek( sal_Int64 location )
throw ( lang::IllegalArgumentException,
io::IOException,
@@ -222,7 +222,7 @@ void SAL_CALL OSeekableInputWrapper::seek( sal_Int64 location )
m_xCopySeek->seek( location );
}
-//---------------------------------------------------------------------------
+
sal_Int64 SAL_CALL OSeekableInputWrapper::getPosition()
throw ( io::IOException,
uno::RuntimeException )
@@ -237,7 +237,7 @@ sal_Int64 SAL_CALL OSeekableInputWrapper::getPosition()
return m_xCopySeek->getPosition();
}
-//---------------------------------------------------------------------------
+
sal_Int64 SAL_CALL OSeekableInputWrapper::getLength()
throw ( io::IOException,
uno::RuntimeException )
diff --git a/comphelper/source/streaming/seqstream.cxx b/comphelper/source/streaming/seqstream.cxx
index f3395d191fef..fefc42b716fe 100644
--- a/comphelper/source/streaming/seqstream.cxx
+++ b/comphelper/source/streaming/seqstream.cxx
@@ -28,11 +28,11 @@ using namespace ::com::sun::star::io;
using namespace ::com::sun::star::uno;
using namespace ::osl;
-//---------------------------------------------------------------------------------------------
+
// class SequenceInputStream
-//---------------------------------------------------------------------------------------------
-//------------------------------------------------------------------
+
+
SequenceInputStream::SequenceInputStream(
css::uno::Sequence<sal_Int8> const & rData)
: m_aData(rData)
@@ -41,7 +41,7 @@ SequenceInputStream::SequenceInputStream(
}
// checks if closed, returns available size, not mutex-protected
-//------------------------------------------------------------------
+
inline sal_Int32 SequenceInputStream::avail()
{
if (m_nPos == -1)
@@ -51,7 +51,7 @@ inline sal_Int32 SequenceInputStream::avail()
}
// com::sun::star::io::XInputStream
-//------------------------------------------------------------------
+
sal_Int32 SAL_CALL SequenceInputStream::readBytes( Sequence<sal_Int8>& aData, sal_Int32 nBytesToRead )
throw(NotConnectedException, BufferSizeExceededException,
IOException, RuntimeException)
@@ -73,7 +73,7 @@ sal_Int32 SAL_CALL SequenceInputStream::readBytes( Sequence<sal_Int8>& aData, sa
return nBytesToRead;
}
-//------------------------------------------------------------------
+
sal_Int32 SAL_CALL SequenceInputStream::readSomeBytes( Sequence<sal_Int8>& aData, sal_Int32 nMaxBytesToRead )
throw(NotConnectedException, BufferSizeExceededException,
IOException, RuntimeException)
@@ -82,7 +82,7 @@ sal_Int32 SAL_CALL SequenceInputStream::readSomeBytes( Sequence<sal_Int8>& aData
return readBytes(aData, nMaxBytesToRead);
}
-//------------------------------------------------------------------
+
void SAL_CALL SequenceInputStream::skipBytes( sal_Int32 nBytesToSkip )
throw(NotConnectedException, BufferSizeExceededException,
IOException, RuntimeException)
@@ -100,7 +100,7 @@ void SAL_CALL SequenceInputStream::skipBytes( sal_Int32 nBytesToSkip )
m_nPos += nBytesToSkip;
}
-//------------------------------------------------------------------
+
sal_Int32 SAL_CALL SequenceInputStream::available( )
throw(NotConnectedException, IOException, RuntimeException)
{
@@ -109,7 +109,7 @@ sal_Int32 SAL_CALL SequenceInputStream::available( )
return avail();
}
-//------------------------------------------------------------------
+
void SAL_CALL SequenceInputStream::closeInput( )
throw(NotConnectedException, IOException, RuntimeException)
{
@@ -136,7 +136,7 @@ sal_Int64 SAL_CALL SequenceInputStream::getLength( ) throw (IOException, Runtim
return m_aData.getLength();
}
-//--------------------------------------------------------------------------
+
OSequenceOutputStream::OSequenceOutputStream(Sequence< sal_Int8 >& _rSeq, double _nResizeFactor, sal_Int32 _nMinimumResize, sal_Int32 _nMaximumResize)
:m_rSequence(_rSeq)
,m_nResizeFactor(_nResizeFactor)
@@ -156,7 +156,7 @@ OSequenceOutputStream::OSequenceOutputStream(Sequence< sal_Int8 >& _rSeq, double
// this heuristic is as good as any other ... supply better parameters if you don't like it :)
}
-//--------------------------------------------------------------------------
+
void SAL_CALL OSequenceOutputStream::writeBytes( const Sequence< sal_Int8 >& _rData ) throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -207,7 +207,7 @@ void SAL_CALL OSequenceOutputStream::writeBytes( const Sequence< sal_Int8 >& _rD
m_nSize += _rData.getLength();
}
-//--------------------------------------------------------------------------
+
void SAL_CALL OSequenceOutputStream::flush( ) throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -218,7 +218,7 @@ void SAL_CALL OSequenceOutputStream::flush( ) throw(NotConnectedException, Buff
m_rSequence.realloc(m_nSize);
}
-//--------------------------------------------------------------------------
+
void SAL_CALL OSequenceOutputStream::closeOutput( ) throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
diff --git a/comphelper/source/streaming/streamsection.cxx b/comphelper/source/streaming/streamsection.cxx
index 0e60268c6c02..9cd2d01287c3 100644
--- a/comphelper/source/streaming/streamsection.cxx
+++ b/comphelper/source/streaming/streamsection.cxx
@@ -23,7 +23,7 @@
namespace comphelper
{
-//-------------------------------------------------------------------------
+
OStreamSection::OStreamSection(const staruno::Reference< stario::XDataInputStream >& _rxInput)
:m_xMarkStream(_rxInput, ::com::sun::star::uno::UNO_QUERY)
,m_xInStream(_rxInput)
@@ -38,7 +38,7 @@ OStreamSection::OStreamSection(const staruno::Reference< stario::XDataInputStrea
}
}
-//-------------------------------------------------------------------------
+
OStreamSection::OStreamSection(const staruno::Reference< stario::XDataOutputStream >& _rxOutput, sal_Int32 _nPresumedLength)
:m_xMarkStream(_rxOutput, ::com::sun::star::uno::UNO_QUERY)
,m_xOutStream(_rxOutput)
@@ -59,7 +59,7 @@ OStreamSection::OStreamSection(const staruno::Reference< stario::XDataOutputStre
}
}
-//-------------------------------------------------------------------------
+
OStreamSection::~OStreamSection()
{
try
@@ -91,7 +91,7 @@ OStreamSection::~OStreamSection()
{
}
}
-// -----------------------------------------------------------------------------
+
} // namespace comphelper
diff --git a/comphelper/source/xml/ofopxmlhelper.cxx b/comphelper/source/xml/ofopxmlhelper.cxx
index a595f25f15a9..85e625cb85c2 100644
--- a/comphelper/source/xml/ofopxmlhelper.cxx
+++ b/comphelper/source/xml/ofopxmlhelper.cxx
@@ -37,7 +37,7 @@ using namespace ::com::sun::star;
namespace comphelper {
-// -----------------------------------
+
uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OFOPXMLHelper::ReadRelationsInfoSequence( const uno::Reference< io::XInputStream >& xInStream, const OUString aStreamName, const uno::Reference< uno::XComponentContext > xContext )
throw( uno::Exception )
{
@@ -46,7 +46,7 @@ uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OFOPXMLHelper::Read
return ReadSequence_Impl( xInStream, aStringID, RELATIONINFO_FORMAT, xContext );
}
-// -----------------------------------
+
uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OFOPXMLHelper::ReadContentTypeSequence( const uno::Reference< io::XInputStream >& xInStream, const uno::Reference< uno::XComponentContext > xContext )
throw( uno::Exception )
{
@@ -54,7 +54,7 @@ uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OFOPXMLHelper::Read
return ReadSequence_Impl( xInStream, aStringID, CONTENTTYPE_FORMAT, xContext );
}
-// -----------------------------------
+
void SAL_CALL OFOPXMLHelper::WriteRelationsInfoSequence( const uno::Reference< io::XOutputStream >& xOutStream, const uno::Sequence< uno::Sequence< beans::StringPair > >& aSequence, const uno::Reference< uno::XComponentContext > xContext )
throw( uno::Exception )
{
@@ -115,7 +115,7 @@ void SAL_CALL OFOPXMLHelper::WriteRelationsInfoSequence( const uno::Reference< i
xWriter->endDocument();
}
-// -----------------------------------
+
void SAL_CALL OFOPXMLHelper::WriteContentSequence( const uno::Reference< io::XOutputStream >& xOutStream, const uno::Sequence< beans::StringPair >& aDefaultsSequence, const uno::Sequence< beans::StringPair >& aOverridesSequence, const uno::Reference< uno::XComponentContext > xContext )
throw( uno::Exception )
{
@@ -178,7 +178,7 @@ void SAL_CALL OFOPXMLHelper::WriteContentSequence( const uno::Reference< io::XOu
// ==================================================================================
-// -----------------------------------
+
uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OFOPXMLHelper::ReadSequence_Impl( const uno::Reference< io::XInputStream >& xInStream, const OUString& aStringID, sal_uInt16 nFormat, const uno::Reference< uno::XComponentContext > xContext )
throw( uno::Exception )
{
@@ -199,7 +199,7 @@ uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OFOPXMLHelper::Read
return pHelper->GetParsingResult();
}
-// -----------------------------------
+
OFOPXMLHelper::OFOPXMLHelper( sal_uInt16 nFormat )
: m_nFormat( nFormat )
, m_aRelListElement( "Relationships" )
@@ -217,12 +217,12 @@ OFOPXMLHelper::OFOPXMLHelper( sal_uInt16 nFormat )
{
}
-// -----------------------------------
+
OFOPXMLHelper::~OFOPXMLHelper()
{
}
-// -----------------------------------
+
uno::Sequence< uno::Sequence< beans::StringPair > > OFOPXMLHelper::GetParsingResult()
{
if ( m_aElementsSeq.getLength() )
@@ -231,19 +231,19 @@ uno::Sequence< uno::Sequence< beans::StringPair > > OFOPXMLHelper::GetParsingRes
return m_aResultSeq;
}
-// -----------------------------------
+
void SAL_CALL OFOPXMLHelper::startDocument()
throw(xml::sax::SAXException, uno::RuntimeException)
{
}
-// -----------------------------------
+
void SAL_CALL OFOPXMLHelper::endDocument()
throw(xml::sax::SAXException, uno::RuntimeException)
{
}
-// -----------------------------------
+
void SAL_CALL OFOPXMLHelper::startElement( const OUString& aName, const uno::Reference< xml::sax::XAttributeList >& xAttribs )
throw( xml::sax::SAXException, uno::RuntimeException )
{
@@ -391,7 +391,7 @@ void SAL_CALL OFOPXMLHelper::startElement( const OUString& aName, const uno::Ref
throw xml::sax::SAXException(); // TODO: no other elements expected!
}
-// -----------------------------------
+
void SAL_CALL OFOPXMLHelper::endElement( const OUString& aName )
throw( xml::sax::SAXException, uno::RuntimeException )
{
@@ -408,25 +408,25 @@ void SAL_CALL OFOPXMLHelper::endElement( const OUString& aName )
}
}
-// -----------------------------------
+
void SAL_CALL OFOPXMLHelper::characters( const OUString& /*aChars*/ )
throw(xml::sax::SAXException, uno::RuntimeException)
{
}
-// -----------------------------------
+
void SAL_CALL OFOPXMLHelper::ignorableWhitespace( const OUString& /*aWhitespaces*/ )
throw(xml::sax::SAXException, uno::RuntimeException)
{
}
-// -----------------------------------
+
void SAL_CALL OFOPXMLHelper::processingInstruction( const OUString& /*aTarget*/, const OUString& /*aData*/ )
throw(xml::sax::SAXException, uno::RuntimeException)
{
}
-// -----------------------------------
+
void SAL_CALL OFOPXMLHelper::setDocumentLocator( const uno::Reference< xml::sax::XLocator >& /*xLocator*/ )
throw(xml::sax::SAXException, uno::RuntimeException)
{
diff --git a/connectivity/source/commontools/BlobHelper.cxx b/connectivity/source/commontools/BlobHelper.cxx
index fff3e093d59b..081f18e8dc77 100644
--- a/connectivity/source/commontools/BlobHelper.cxx
+++ b/connectivity/source/commontools/BlobHelper.cxx
@@ -28,24 +28,24 @@ using namespace ::com::sun::star::uno;
BlobHelper::BlobHelper(const ::com::sun::star::uno::Sequence< sal_Int8 >& _val) : m_aValue(_val)
{
}
-// -----------------------------------------------------------------------------
+
::sal_Int64 SAL_CALL BlobHelper::length( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return m_aValue.getLength();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL BlobHelper::getBytes( ::sal_Int64 pos, ::sal_Int32 _length ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
if ( sal_Int32(pos + _length) > m_aValue.getLength() )
throw ::com::sun::star::sdbc::SQLException();
return ::com::sun::star::uno::Sequence< ::sal_Int8 >(m_aValue.getConstArray() + sal_Int32(pos),_length);
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL BlobHelper::getBinaryStream( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return new ::comphelper::SequenceInputStream(m_aValue);
}
-// -----------------------------------------------------------------------------
+
// The "return" after a call to throwFeatureNotImplementedException()
// (which always throws) will be detected as unreachable when doing
@@ -58,7 +58,7 @@ SAL_WNOUNREACHABLE_CODE_PUSH
::dbtools::throwFeatureNotImplementedException( "XBlob::position", *this );
return 0;
}
-// -----------------------------------------------------------------------------
+
::sal_Int64 SAL_CALL BlobHelper::positionOfBlob( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XBlob >& /*pattern*/, ::sal_Int64 /*start*/ ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XBlob::positionOfBlob", *this );
diff --git a/connectivity/source/commontools/CommonTools.cxx b/connectivity/source/commontools/CommonTools.cxx
index ef33afc7143e..6222ddbbacc0 100644
--- a/connectivity/source/commontools/CommonTools.cxx
+++ b/connectivity/source/commontools/CommonTools.cxx
@@ -50,10 +50,10 @@ namespace connectivity
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::java;
using namespace dbtools;
- //------------------------------------------------------------------------------
+
const sal_Unicode CHAR_PLACE = '_';
const sal_Unicode CHAR_WILD = '%';
- // -------------------------------------------------------------------------
+
sal_Bool match(const sal_Unicode* pWild, const sal_Unicode* pStr, const sal_Unicode cEscape)
{
int pos=0;
@@ -111,7 +111,7 @@ namespace connectivity
}
return ( *pStr == 0 ) && ( *pWild == 0 );
}
- //------------------------------------------------------------------
+
#if HAVE_FEATURE_JAVA
::rtl::Reference< jvmaccess::VirtualMachine > getJavaVM(const Reference<XComponentContext >& _rxContext)
{
@@ -154,7 +154,7 @@ namespace connectivity
return aRet;
}
- //------------------------------------------------------------------------------
+
sal_Bool existsJavaClassByName( const ::rtl::Reference< jvmaccess::VirtualMachine >& _pJVM,const OUString& _sClassName )
{
sal_Bool bRet = sal_False;
@@ -179,7 +179,7 @@ namespace connectivity
#include <ctype.h>
namespace dbtools
{
-//------------------------------------------------------------------
+
sal_Bool isCharOk(sal_Unicode c,const OUString& _rSpecials)
{
@@ -187,7 +187,7 @@ sal_Bool isCharOk(sal_Unicode c,const OUString& _rSpecials)
c == '_' || _rSpecials.indexOf(c) != -1);
}
-//------------------------------------------------------------------------------
+
sal_Bool isValidSQLName(const OUString& rName,const OUString& _rSpecials)
{
// Test for correct naming (in SQL sense)
@@ -215,7 +215,7 @@ sal_Bool isValidSQLName(const OUString& rName,const OUString& _rSpecials)
return sal_True;
}
-//------------------------------------------------------------------
+
// Creates a new name if necessary
OUString convertName2SQLName(const OUString& rName,const OUString& _rSpecials)
{
@@ -237,7 +237,7 @@ OUString convertName2SQLName(const OUString& rName,const OUString& _rSpecials)
return aNewName;
}
-//------------------------------------------------------------------------------
+
OUString quoteName(const OUString& _rQuote, const OUString& _rName)
{
OUString sName = _rName;
diff --git a/connectivity/source/commontools/ConnectionWrapper.cxx b/connectivity/source/commontools/ConnectionWrapper.cxx
index 19b38fa308b2..f607209f8d61 100644
--- a/connectivity/source/commontools/ConnectionWrapper.cxx
+++ b/connectivity/source/commontools/ConnectionWrapper.cxx
@@ -31,18 +31,18 @@
#include <string.h>
using namespace connectivity;
-//------------------------------------------------------------------------------
+
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace ::com::sun::star::reflection;
-// --------------------------------------------------------------------------------
+
OConnectionWrapper::OConnectionWrapper()
{
}
-// -----------------------------------------------------------------------------
+
void OConnectionWrapper::setDelegation(Reference< XAggregation >& _rxProxyConnection,oslInterlockedCount& _rRefCount)
{
OSL_ENSURE(_rxProxyConnection.is(),"OConnectionWrapper: Connection must be valid!");
@@ -64,7 +64,7 @@ void OConnectionWrapper::setDelegation(Reference< XAggregation >& _rxProxyConnec
}
osl_atomic_decrement( &_rRefCount );
}
-// -----------------------------------------------------------------------------
+
void OConnectionWrapper::setDelegation(const Reference< XConnection >& _xConnection
,const Reference< XComponentContext>& _rxContext
,oslInterlockedCount& _rRefCount)
@@ -91,12 +91,12 @@ void OConnectionWrapper::setDelegation(const Reference< XConnection >& _xConnect
}
osl_atomic_decrement( &_rRefCount );
}
-// -----------------------------------------------------------------------------
+
void OConnectionWrapper::disposing()
{
m_xConnection.clear();
}
-//-----------------------------------------------------------------------------
+
OConnectionWrapper::~OConnectionWrapper()
{
if (m_xProxyConnection.is())
@@ -104,13 +104,13 @@ OConnectionWrapper::~OConnectionWrapper()
}
// XServiceInfo
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OConnectionWrapper::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException)
{
return OUString( "com.sun.star.sdbc.drivers.OConnectionWrapper" );
}
-// --------------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< OUString > SAL_CALL OConnectionWrapper::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
{
// first collect the services which are supported by our aggregate
@@ -131,19 +131,19 @@ OUString SAL_CALL OConnectionWrapper::getImplementationName( ) throw (::com::su
return aSupported;
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnectionWrapper::supportsService( const OUString& _rServiceName ) throw(::com::sun::star::uno::RuntimeException)
{
return cppu::supportsService(this, _rServiceName);
}
-// --------------------------------------------------------------------------------
+
Any SAL_CALL OConnectionWrapper::queryInterface( const Type& _rType ) throw (RuntimeException)
{
Any aReturn = OConnection_BASE::queryInterface(_rType);
return aReturn.hasValue() ? aReturn : (m_xProxyConnection.is() ? m_xProxyConnection->queryAggregation(_rType) : aReturn);
}
-// --------------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OConnectionWrapper::getTypes( ) throw (::com::sun::star::uno::RuntimeException)
{
return ::comphelper::concatSequences(
@@ -151,7 +151,7 @@ Sequence< Type > SAL_CALL OConnectionWrapper::getTypes( ) throw (::com::sun::st
m_xTypeProvider->getTypes()
);
}
-// -----------------------------------------------------------------------------
+
// com::sun::star::lang::XUnoTunnel
sal_Int64 SAL_CALL OConnectionWrapper::getSomething( const Sequence< sal_Int8 >& rId ) throw(RuntimeException)
{
@@ -163,7 +163,7 @@ sal_Int64 SAL_CALL OConnectionWrapper::getSomething( const Sequence< sal_Int8 >&
return 0;
}
-// -----------------------------------------------------------------------------
+
Sequence< sal_Int8 > OConnectionWrapper::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -178,7 +178,7 @@ Sequence< sal_Int8 > OConnectionWrapper::getUnoTunnelImplementationId()
}
return pId->getImplementationId();
}
-// -----------------------------------------------------------------------------
+
namespace
{
class TPropertyValueLessFunctor : public ::std::binary_function< ::com::sun::star::beans::PropertyValue,::com::sun::star::beans::PropertyValue,bool>
@@ -194,7 +194,7 @@ namespace
}
-// -----------------------------------------------------------------------------
+
// creates a unique id out of the url and sequence of properties
void OConnectionWrapper::createUniqueId( const OUString& _rURL
,Sequence< PropertyValue >& _rInfo
@@ -250,7 +250,7 @@ void OConnectionWrapper::createUniqueId( const OUString& _rURL
// we have to destroy the digest
rtl_digest_destroy(aDigest);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/commontools/DateConversion.cxx b/connectivity/source/commontools/DateConversion.cxx
index 8ccf9d050fdc..0bcc9509133f 100644
--- a/connectivity/source/commontools/DateConversion.cxx
+++ b/connectivity/source/commontools/DateConversion.cxx
@@ -44,7 +44,7 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::uno;
-// -----------------------------------------------------------------------------
+
OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, sal_Bool bQuote,
const Reference< XTypeConverter >& _rxTypeConverter)
{
@@ -209,7 +209,7 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, sal_Bo
aRet.appendAscii(" NULL ");
return aRet.makeStringAndClear();
}
-// -----------------------------------------------------------------------------
+
Date DBTypeConversion::getNULLDate(const Reference< XNumberFormatsSupplier > &xSupplier)
{
OSL_ENSURE(xSupplier.is(), "getNULLDate : the formatter doesn't implement a supplier !");
@@ -229,7 +229,7 @@ Date DBTypeConversion::getNULLDate(const Reference< XNumberFormatsSupplier > &xS
return getStandardDate();
}
-// -----------------------------------------------------------------------------
+
void DBTypeConversion::setValue(const Reference<XColumnUpdate>& xVariant,
const Reference<XNumberFormatter>& xFormatter,
const Date& rNullDate,
@@ -303,7 +303,7 @@ void DBTypeConversion::setValue(const Reference<XColumnUpdate>& xVariant,
}
}
-//------------------------------------------------------------------------------
+
void DBTypeConversion::setValue(const Reference<XColumnUpdate>& xVariant,
const Date& rNullDate,
const double& rValue,
@@ -349,7 +349,7 @@ void DBTypeConversion::setValue(const Reference<XColumnUpdate>& xVariant,
}
}
-//------------------------------------------------------------------------------
+
double DBTypeConversion::getValue( const Reference< XColumn >& i_column, const Date& i_relativeToNullDate )
{
try
@@ -396,7 +396,7 @@ double DBTypeConversion::getValue( const Reference< XColumn >& i_column, const D
return 0.0;
}
}
-//------------------------------------------------------------------------------
+
OUString DBTypeConversion::getFormattedValue(const Reference< XPropertySet>& _xColumn,
const Reference<XNumberFormatter>& _xFormatter,
const ::com::sun::star::lang::Locale& _rLocale,
@@ -432,7 +432,7 @@ OUString DBTypeConversion::getFormattedValue(const Reference< XPropertySet>& _xC
return DBTypeConversion::getFormattedValue(Reference< XColumn > (_xColumn, UNO_QUERY), _xFormatter, _rNullDate, nKey, nKeyType);
}
-//------------------------------------------------------------------------------
+
OUString DBTypeConversion::getFormattedValue(const Reference<XColumn>& xVariant,
const Reference<XNumberFormatter>& xFormatter,
const Date& rNullDate,
@@ -502,6 +502,6 @@ OUString DBTypeConversion::getFormattedValue(const Reference<XColumn>& xVariant,
}
return aString;
}
-//------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/commontools/DriversConfig.cxx b/connectivity/source/commontools/DriversConfig.cxx
index bf70fbac5714..7804ad9f6fab 100644
--- a/connectivity/source/commontools/DriversConfig.cxx
+++ b/connectivity/source/commontools/DriversConfig.cxx
@@ -86,11 +86,11 @@ namespace
}
}
}
-// -----------------------------------------------------------------------------
+
DriversConfigImpl::DriversConfigImpl()
{
}
-// -----------------------------------------------------------------------------
+
void DriversConfigImpl::Load(const uno::Reference< uno::XComponentContext >& _rxORB) const
{
if ( m_aDrivers.empty() )
@@ -120,24 +120,24 @@ void DriversConfigImpl::Load(const uno::Reference< uno::XComponentContext >& _rx
} // if ( m_aInstalled.isValid() )
}
}
-// -----------------------------------------------------------------------------
+
DriversConfig::DriversConfig(const uno::Reference< uno::XComponentContext >& _rxORB)
:m_xORB(_rxORB)
{
}
-// -----------------------------------------------------------------------------
+
DriversConfig::~DriversConfig()
{
}
-// -----------------------------------------------------------------------------
+
DriversConfig::DriversConfig( const DriversConfig& _rhs )
{
*this = _rhs;
}
-// -----------------------------------------------------------------------------
+
DriversConfig& DriversConfig::operator=( const DriversConfig& _rhs )
{
if ( this != &_rhs )
@@ -147,7 +147,7 @@ DriversConfig& DriversConfig::operator=( const DriversConfig& _rhs )
return *this;
}
-// -----------------------------------------------------------------------------
+
OUString DriversConfig::getDriverFactoryName(const OUString& _sURL) const
{
const TInstalledDrivers& rDrivers = m_aNode->getInstalledDrivers(m_xORB);
@@ -167,7 +167,7 @@ OUString DriversConfig::getDriverFactoryName(const OUString& _sURL) const
return sRet;
}
-// -----------------------------------------------------------------------------
+
OUString DriversConfig::getDriverTypeDisplayName(const OUString& _sURL) const
{
const TInstalledDrivers& rDrivers = m_aNode->getInstalledDrivers(m_xORB);
@@ -187,22 +187,22 @@ OUString DriversConfig::getDriverTypeDisplayName(const OUString& _sURL) const
return sRet;
}
-// -----------------------------------------------------------------------------
+
const ::comphelper::NamedValueCollection& DriversConfig::getProperties(const OUString& _sURL) const
{
return impl_get(_sURL,1);
}
-// -----------------------------------------------------------------------------
+
const ::comphelper::NamedValueCollection& DriversConfig::getFeatures(const OUString& _sURL) const
{
return impl_get(_sURL,0);
}
-// -----------------------------------------------------------------------------
+
const ::comphelper::NamedValueCollection& DriversConfig::getMetaData(const OUString& _sURL) const
{
return impl_get(_sURL,2);
}
-// -----------------------------------------------------------------------------
+
const ::comphelper::NamedValueCollection& DriversConfig::impl_get(const OUString& _sURL,sal_Int32 _nProps) const
{
const TInstalledDrivers& rDrivers = m_aNode->getInstalledDrivers(m_xORB);
@@ -237,7 +237,7 @@ const ::comphelper::NamedValueCollection& DriversConfig::impl_get(const OUString
}
return *pRet;
}
-// -----------------------------------------------------------------------------
+
uno::Sequence< OUString > DriversConfig::getURLs() const
{
const TInstalledDrivers& rDrivers = m_aNode->getInstalledDrivers(m_xORB);
diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
index b580d377f013..162531ceb710 100644
--- a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
+++ b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
@@ -44,14 +44,14 @@
using namespace connectivity;
using namespace dbtools;
using namespace cppu;
-//------------------------------------------------------------------------------
+
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
ODatabaseMetaDataResultSet::ODatabaseMetaDataResultSet()
:ODatabaseMetaDataResultSet_BASE(m_aMutex)
,::comphelper::OPropertyContainer(ODatabaseMetaDataResultSet_BASE::rBHelper)
@@ -64,7 +64,7 @@ ODatabaseMetaDataResultSet::ODatabaseMetaDataResultSet()
construct();
}
-// -------------------------------------------------------------------------
+
ODatabaseMetaDataResultSet::ODatabaseMetaDataResultSet( MetaDataResultSetType _eType )
:ODatabaseMetaDataResultSet_BASE(m_aMutex)
,::comphelper::OPropertyContainer(ODatabaseMetaDataResultSet_BASE::rBHelper)
@@ -79,11 +79,11 @@ ODatabaseMetaDataResultSet::ODatabaseMetaDataResultSet( MetaDataResultSetType _e
setType(_eType);
}
-// -------------------------------------------------------------------------
+
ODatabaseMetaDataResultSet::~ODatabaseMetaDataResultSet()
{
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::construct()
{
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FETCHSIZE), PROPERTY_ID_FETCHSIZE, 0,&m_nFetchSize, ::getCppuType(static_cast<sal_Int32*>(0)));
@@ -91,7 +91,7 @@ void ODatabaseMetaDataResultSet::construct()
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FETCHDIRECTION), PROPERTY_ID_FETCHDIRECTION, 0, &m_nFetchDirection, ::getCppuType(static_cast<sal_Int32*>(0)));
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_RESULTSETCONCURRENCY), PROPERTY_ID_RESULTSETCONCURRENCY, PropertyAttribute::READONLY,&m_nResultSetConcurrency, ::getCppuType(static_cast<sal_Int32*>(0)));
}
-// -----------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setType(MetaDataResultSetType _eType)
{
switch( _eType )
@@ -118,7 +118,7 @@ void ODatabaseMetaDataResultSet::setType(MetaDataResultSetType _eType)
OSL_FAIL("Wrong type!");
}
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::disposing(void)
{
OPropertySetHelper::disposing();
@@ -130,23 +130,23 @@ m_xMetaData.clear();
m_aRows.clear();
m_aRowsIter = m_aRows.end();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::acquire() throw()
{
ODatabaseMetaDataResultSet_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::release() throw()
{
ODatabaseMetaDataResultSet_BASE::release();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL ODatabaseMetaDataResultSet::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OPropertySetHelper::queryInterface(rType);
return aRet.hasValue() ? aRet : ODatabaseMetaDataResultSet_BASE::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL ODatabaseMetaDataResultSet::getTypes( ) throw(RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const Reference< ::com::sun::star::beans::XMultiPropertySet > *)0 ),
@@ -155,14 +155,14 @@ Sequence< Type > SAL_CALL ODatabaseMetaDataResultSet::getTypes( ) throw(Runtime
return ::comphelper::concatSequences(aTypes.getTypes(),ODatabaseMetaDataResultSet_BASE::getTypes());
}
-// -----------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setRows(const ORows& _rRows)
{
m_aRows = _rRows;
m_bBOF = sal_True;
m_bEOF = m_aRows.empty();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::findColumn( const OUString& columnName ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -184,78 +184,78 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::findColumn( const OUString& colum
assert(false);
return 0; // Never reached
}
-// -----------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::checkIndex(sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException)
{
if(columnIndex >= (sal_Int32)(*m_aRowsIter).size() || columnIndex < 1)
::dbtools::throwInvalidIndexException(*this);
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL ODatabaseMetaDataResultSet::getBinaryStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL ODatabaseMetaDataResultSet::getCharacterStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::getBoolean( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL ODatabaseMetaDataResultSet::getByte( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL ODatabaseMetaDataResultSet::getBytes( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Date SAL_CALL ODatabaseMetaDataResultSet::getDate( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
double SAL_CALL ODatabaseMetaDataResultSet::getDouble( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
float SAL_CALL ODatabaseMetaDataResultSet::getFloat( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::getInt( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::getRow( ) throw(SQLException, RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL ODatabaseMetaDataResultSet::getLong( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL ODatabaseMetaDataResultSet::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -268,69 +268,69 @@ Reference< XResultSetMetaData > SAL_CALL ODatabaseMetaDataResultSet::getMetaData
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL ODatabaseMetaDataResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL ODatabaseMetaDataResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL ODatabaseMetaDataResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL ODatabaseMetaDataResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL ODatabaseMetaDataResultSet::getObject( sal_Int32 columnIndex, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex).makeAny();
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL ODatabaseMetaDataResultSet::getShort( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaDataResultSet::getString( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Time SAL_CALL ODatabaseMetaDataResultSet::getTime( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::DateTime SAL_CALL ODatabaseMetaDataResultSet::getTimestamp( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isAfterLast( ) throw(SQLException, RuntimeException)
{
return m_bEOF;
}
-// -------------------------------------------------------------------------
+
SAL_WNOUNREACHABLE_CODE_PUSH
@@ -339,7 +339,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isFirst( ) throw(SQLException, Ru
::dbtools::throwFunctionSequenceException(*this);
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isLast( ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionSequenceException(*this);
@@ -348,17 +348,17 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isLast( ) throw(SQLException, Run
SAL_WNOUNREACHABLE_CODE_POP
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionSequenceException(*this);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::afterLast( ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionSequenceException(*this);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::close( ) throw(SQLException, RuntimeException)
{
@@ -369,7 +369,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::close( ) throw(SQLException, RuntimeE
}
dispose();
}
-// -------------------------------------------------------------------------
+
SAL_WNOUNREACHABLE_CODE_PUSH
@@ -378,26 +378,26 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::first( ) throw(SQLException, Runt
::dbtools::throwFunctionSequenceException(*this);
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::last( ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionSequenceException(*this);
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::absolute( sal_Int32 /*row*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionSequenceException(*this);
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::relative( sal_Int32 /*row*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionSequenceException(*this);
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::previous( ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionSequenceException(*this);
@@ -406,12 +406,12 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::previous( ) throw(SQLException, R
SAL_WNOUNREACHABLE_CODE_POP
-// -------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL ODatabaseMetaDataResultSet::getStatement( ) throw(SQLException, RuntimeException)
{
return m_aStatement.get();
}
-// -------------------------------------------------------------------------
+
SAL_WNOUNREACHABLE_CODE_PUSH
@@ -420,13 +420,13 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowDeleted( ) throw(SQLException,
::dbtools::throwFunctionSequenceException(*this);
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowInserted( ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionSequenceException(*this);
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowUpdated( ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionSequenceException(*this);
@@ -435,13 +435,13 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowUpdated( ) throw(SQLException,
SAL_WNOUNREACHABLE_CODE_POP
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isBeforeFirst( ) throw(SQLException, RuntimeException)
{
return m_bBOF;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::next( ) throw(SQLException, RuntimeException)
{
@@ -470,7 +470,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::next( ) throw(SQLException, Runti
}
return bSuccess;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::wasNull( ) throw(SQLException, RuntimeException)
{
@@ -483,65 +483,65 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::wasNull( ) throw(SQLException, Ru
return (*m_aRowsIter)[m_nColPos]->getValue().isNull();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::refreshRow( ) throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::cancel( ) throw(RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::clearWarnings( ) throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL ODatabaseMetaDataResultSet::getWarnings( ) throw(SQLException, RuntimeException)
{
return Any();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* ODatabaseMetaDataResultSet::createArrayHelper( ) const
{
Sequence< Property > aProps;
describeProperties(aProps);
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & ODatabaseMetaDataResultSet::getInfoHelper()
{
return *const_cast<ODatabaseMetaDataResultSet*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setProceduresMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setProceduresMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setCatalogsMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setCatalogsMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setSchemasMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setSchemasMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setColumnPrivilegesMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setColumnPrivilegesMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setColumnsMap()
{
@@ -549,7 +549,7 @@ void ODatabaseMetaDataResultSet::setColumnsMap()
pMetaData->setColumnsMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setTablesMap()
{
@@ -557,102 +557,102 @@ void ODatabaseMetaDataResultSet::setTablesMap()
pMetaData->setTablesMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setProcedureColumnsMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setProcedureColumnsMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setPrimaryKeysMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setPrimaryKeysMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setIndexInfoMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setIndexInfoMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setTablePrivilegesMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setTablePrivilegesMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setCrossReferenceMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setCrossReferenceMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setVersionColumnsMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setVersionColumnsMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setBestRowIdentifierMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setBestRowIdentifierMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setTypeInfoMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setTypeInfoMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setUDTsMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setUDTsMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setTableTypes()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setTableTypes();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setExportedKeysMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setExportedKeysMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setImportedKeysMap()
{
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData();
pMetaData->setImportedKeysMap();
m_xMetaData = pMetaData;
}
-// -----------------------------------------------------------------------------
+
Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL ODatabaseMetaDataResultSet::getPropertySetInfo( ) throw(RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
ORowSetValueDecorator& ORowSetValueDecorator::operator=(const ORowSetValue& _aValue)
{
m_aValue = _aValue;
return *this;
}
-// -----------------------------------------------------------------------------
+
const ORowSetValue& ODatabaseMetaDataResultSet::getValue(sal_Int32 columnIndex)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -668,89 +668,89 @@ const ORowSetValue& ODatabaseMetaDataResultSet::getValue(sal_Int32 columnIndex)
return *(*m_aRowsIter)[columnIndex];
return m_aEmptyValue;
}
-// -----------------------------------------------------------------------------
+
/// return an empty ORowSetValueDecorator
ORowSetValueDecoratorRef ODatabaseMetaDataResultSet::getEmptyValue()
{
static ORowSetValueDecoratorRef aEmptyValueRef = new ORowSetValueDecorator();
return aEmptyValueRef;
}
-// -----------------------------------------------------------------------------
+
/// return an ORowSetValueDecorator with 0 as value
ORowSetValueDecoratorRef ODatabaseMetaDataResultSet::get0Value()
{
static ORowSetValueDecoratorRef a0ValueRef = new ORowSetValueDecorator((sal_Int32)0);
return a0ValueRef;
}
-// -----------------------------------------------------------------------------
+
/// return an ORowSetValueDecorator with 1 as value
ORowSetValueDecoratorRef ODatabaseMetaDataResultSet::get1Value()
{
static ORowSetValueDecoratorRef a1ValueRef = new ORowSetValueDecorator((sal_Int32)1);
return a1ValueRef;
}
-// -----------------------------------------------------------------------------
+
/// return an ORowSetValueDecorator with ColumnSearch::BASIC as value
ORowSetValueDecoratorRef ODatabaseMetaDataResultSet::getBasicValue()
{
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(ColumnSearch::BASIC);
return aValueRef;
}
-// -----------------------------------------------------------------------------
+
ORowSetValueDecoratorRef ODatabaseMetaDataResultSet::getSelectValue()
{
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("SELECT"));
return aValueRef;
}
-// -----------------------------------------------------------------------------
+
ORowSetValueDecoratorRef ODatabaseMetaDataResultSet::getInsertValue()
{
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("INSERT"));
return aValueRef;
}
-// -----------------------------------------------------------------------------
+
ORowSetValueDecoratorRef ODatabaseMetaDataResultSet::getDeleteValue()
{
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("DELETE"));
return aValueRef;
}
-// -----------------------------------------------------------------------------
+
ORowSetValueDecoratorRef ODatabaseMetaDataResultSet::getUpdateValue()
{
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("UPDATE"));
return aValueRef;
}
-// -----------------------------------------------------------------------------
+
ORowSetValueDecoratorRef ODatabaseMetaDataResultSet::getCreateValue()
{
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("CREATE"));
return aValueRef;
}
-// -----------------------------------------------------------------------------
+
ORowSetValueDecoratorRef ODatabaseMetaDataResultSet::getReadValue()
{
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("READ"));
return aValueRef;
}
-// -----------------------------------------------------------------------------
+
ORowSetValueDecoratorRef ODatabaseMetaDataResultSet::getAlterValue()
{
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("ALTER"));
return aValueRef;
}
-// -----------------------------------------------------------------------------
+
ORowSetValueDecoratorRef ODatabaseMetaDataResultSet::getDropValue()
{
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("DROP"));
return aValueRef;
}
-// -----------------------------------------------------------------------------
+
ORowSetValueDecoratorRef ODatabaseMetaDataResultSet::getQuoteValue()
{
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("'"));
return aValueRef;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aArguments ) throw (Exception, RuntimeException)
{
if ( _aArguments.getLength() == 2 )
@@ -847,20 +847,20 @@ void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aA
}
}
// XServiceInfo
- // --------------------------------------------------------------------------------
- //------------------------------------------------------------------------------
+
+
OUString ODatabaseMetaDataResultSet::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString("org.openoffice.comp.helper.DatabaseMetaDataResultSet");
}
- //------------------------------------------------------------------------------
+
Sequence< OUString > ODatabaseMetaDataResultSet::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 1 );
aSNS[0] = "com.sun.star.sdbc.ResultSet";
return aSNS;
}
- //------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaDataResultSet::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
@@ -870,12 +870,12 @@ void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aA
{
return cppu::supportsService(this, _rServiceName);
}
- //------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL ODatabaseMetaDataResultSet::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
- // -------------------------------------------------------------------------
+
namespace connectivity
{
Reference< XInterface > SAL_CALL ODatabaseMetaDataResultSet_CreateInstance(const Reference< XComponentContext >& ) throw( Exception )
@@ -884,7 +884,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aA
}
}
-// -----------------------------------------------------------------------------
+
namespace
{
cppu::ImplementationEntry entries[] = {
@@ -908,7 +908,7 @@ using ::com::sun::star::lang::XMultiServiceFactory;
extern "C"
{
-//---------------------------------------------------------------------------------------
+
SAL_DLLPUBLIC_EXPORT void* SAL_CALL dbtools_component_getFactory(const sal_Char* implName, ::com::sun::star::lang::XMultiServiceFactory* serviceManager, void* registryKey)
{
return cppu::component_getFactoryHelper(implName, serviceManager, registryKey, entries);
diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx
index 5e99163f635c..646a80c9a32c 100644
--- a/connectivity/source/commontools/FValue.cxx
+++ b/connectivity/source/commontools/FValue.cxx
@@ -108,7 +108,7 @@ namespace {
}
}
-// -----------------------------------------------------------------------------
+
#ifdef DBG_UTIL
#include <vector>
@@ -190,7 +190,7 @@ namespace tracing
#define TRACE_FREE( type )
#endif
-// -----------------------------------------------------------------------------
+
void ORowSetValue::setTypeKind(sal_Int32 _eType)
{
SAL_INFO( "connectivity.commontools", "dbtools Ocke.Janssen@sun.com ORowSetValue::setTypeKind" );
@@ -272,7 +272,7 @@ void ORowSetValue::setTypeKind(sal_Int32 _eType)
m_eTypeKind = _eType;
}
-// -----------------------------------------------------------------------------
+
void ORowSetValue::free()
{
SAL_INFO( "connectivity.commontools", "dbtools Ocke.Janssen@sun.com ORowSetValue::free" );
@@ -341,7 +341,7 @@ void ORowSetValue::free()
m_bNull = true;
}
}
-// -----------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const ORowSetValue& _rRH)
{
if(&_rRH == this)
@@ -495,7 +495,7 @@ ORowSetValue& ORowSetValue::operator=(const ORowSetValue& _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const Date& _rRH)
{
@@ -514,7 +514,7 @@ ORowSetValue& ORowSetValue::operator=(const Date& _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const Time& _rRH)
{
if(m_eTypeKind != DataType::TIME)
@@ -532,7 +532,7 @@ ORowSetValue& ORowSetValue::operator=(const Time& _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const DateTime& _rRH)
{
if(m_eTypeKind != DataType::TIMESTAMP)
@@ -549,7 +549,7 @@ ORowSetValue& ORowSetValue::operator=(const DateTime& _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const OUString& _rRH)
{
@@ -565,7 +565,7 @@ ORowSetValue& ORowSetValue::operator=(const OUString& _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const double& _rRH)
{
@@ -578,7 +578,7 @@ ORowSetValue& ORowSetValue::operator=(const double& _rRH)
return *this;
}
-// -----------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const float& _rRH)
{
if(m_eTypeKind != DataType::FLOAT)
@@ -590,7 +590,7 @@ ORowSetValue& ORowSetValue::operator=(const float& _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const sal_Int8& _rRH)
{
@@ -603,7 +603,7 @@ ORowSetValue& ORowSetValue::operator=(const sal_Int8& _rRH)
m_bSigned = true;
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const sal_uInt8& _rRH)
{
@@ -616,7 +616,7 @@ ORowSetValue& ORowSetValue::operator=(const sal_uInt8& _rRH)
m_bSigned = false;
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const sal_Int16& _rRH)
{
@@ -630,7 +630,7 @@ ORowSetValue& ORowSetValue::operator=(const sal_Int16& _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const sal_uInt16& _rRH)
{
@@ -644,7 +644,7 @@ ORowSetValue& ORowSetValue::operator=(const sal_uInt16& _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const sal_Int32& _rRH)
{
@@ -659,7 +659,7 @@ ORowSetValue& ORowSetValue::operator=(const sal_Int32& _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const sal_uInt32& _rRH)
{
@@ -674,7 +674,7 @@ ORowSetValue& ORowSetValue::operator=(const sal_uInt32& _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const bool _rRH)
{
@@ -687,7 +687,7 @@ ORowSetValue& ORowSetValue::operator=(const bool _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const sal_Int64& _rRH)
{
if ( DataType::BIGINT != m_eTypeKind)
@@ -700,7 +700,7 @@ ORowSetValue& ORowSetValue::operator=(const sal_Int64& _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const sal_uInt64& _rRH)
{
if ( DataType::BIGINT != m_eTypeKind)
@@ -713,7 +713,7 @@ ORowSetValue& ORowSetValue::operator=(const sal_uInt64& _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const Sequence<sal_Int8>& _rRH)
{
if (!isStorageCompatible(DataType::LONGVARBINARY,m_eTypeKind))
@@ -732,7 +732,7 @@ ORowSetValue& ORowSetValue::operator=(const Sequence<sal_Int8>& _rRH)
return *this;
}
-// -------------------------------------------------------------------------
+
ORowSetValue& ORowSetValue::operator=(const Any& _rAny)
{
if (!isStorageCompatible(DataType::OBJECT,m_eTypeKind))
@@ -751,26 +751,26 @@ ORowSetValue& ORowSetValue::operator=(const Any& _rAny)
return *this;
}
-// -------------------------------------------------------------------------
+
bool operator==(const Date& _rLH,const Date& _rRH)
{
return _rLH.Day == _rRH.Day && _rLH.Month == _rRH.Month && _rLH.Year == _rRH.Year;
}
-// -------------------------------------------------------------------------
+
bool operator==(const Time& _rLH,const Time& _rRH)
{
return _rLH.Minutes == _rRH.Minutes && _rLH.Hours == _rRH.Hours && _rLH.Seconds == _rRH.Seconds && _rLH.NanoSeconds == _rRH.NanoSeconds;
}
-// -------------------------------------------------------------------------
+
bool operator==(const DateTime& _rLH,const DateTime& _rRH)
{
return _rLH.Day == _rRH.Day && _rLH.Month == _rRH.Month && _rLH.Year == _rRH.Year &&
_rLH.Minutes == _rRH.Minutes && _rLH.Hours == _rRH.Hours && _rLH.Seconds == _rRH.Seconds && _rLH.NanoSeconds == _rRH.NanoSeconds;
}
-// -------------------------------------------------------------------------
+
bool ORowSetValue::operator==(const ORowSetValue& _rRH) const
{
@@ -881,7 +881,7 @@ bool ORowSetValue::operator==(const ORowSetValue& _rRH) const
}
return bRet;
}
-// -------------------------------------------------------------------------
+
Any ORowSetValue::makeAny() const
{
SAL_INFO( "connectivity.commontools", "dbtools Ocke.Janssen@sun.com ORowSetValue::makeAny" );
@@ -975,7 +975,7 @@ Any ORowSetValue::makeAny() const
}
return rValue;
}
-// -------------------------------------------------------------------------
+
OUString ORowSetValue::getString( ) const
{
SAL_INFO( "connectivity.commontools", "dbtools Ocke.Janssen@sun.com ORowSetValue::getString" );
@@ -1063,7 +1063,7 @@ OUString ORowSetValue::getString( ) const
}
return aRet;
}
-// -------------------------------------------------------------------------
+
bool ORowSetValue::getBool() const
{
SAL_INFO( "connectivity.commontools", "dbtools Ocke.Janssen@sun.com ORowSetValue::getBool" );
@@ -1137,7 +1137,7 @@ bool ORowSetValue::getBool() const
}
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Int8 ORowSetValue::getInt8() const
{
@@ -1211,7 +1211,7 @@ sal_Int8 ORowSetValue::getInt8() const
}
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_uInt8 ORowSetValue::getUInt8() const
{
@@ -1283,7 +1283,7 @@ sal_uInt8 ORowSetValue::getUInt8() const
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_Int16 ORowSetValue::getInt16() const
{
@@ -1357,7 +1357,7 @@ sal_Int16 ORowSetValue::getInt16() const
}
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_uInt16 ORowSetValue::getUInt16() const
{
@@ -1428,7 +1428,7 @@ sal_uInt16 ORowSetValue::getUInt16() const
}
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_Int32 ORowSetValue::getInt32() const
{
@@ -1502,7 +1502,7 @@ sal_Int32 ORowSetValue::getInt32() const
}
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_uInt32 ORowSetValue::getUInt32() const
{
@@ -1575,7 +1575,7 @@ sal_uInt32 ORowSetValue::getUInt32() const
}
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_Int64 ORowSetValue::getLong() const
{
@@ -1649,7 +1649,7 @@ sal_Int64 ORowSetValue::getLong() const
}
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_uInt64 ORowSetValue::getULong() const
{
@@ -1723,7 +1723,7 @@ sal_uInt64 ORowSetValue::getULong() const
return nRet;
}
-// -------------------------------------------------------------------------
+
float ORowSetValue::getFloat() const
{
SAL_INFO( "connectivity.commontools", "dbtools Ocke.Janssen@sun.com ORowSetValue::getFloat" );
@@ -1800,7 +1800,7 @@ float ORowSetValue::getFloat() const
}
return nRet;
}
-// -------------------------------------------------------------------------
+
double ORowSetValue::getDouble() const
{
SAL_INFO( "connectivity.commontools", "dbtools Ocke.Janssen@sun.com ORowSetValue::getDouble" );
@@ -1879,7 +1879,7 @@ double ORowSetValue::getDouble() const
}
return nRet;
}
-// -----------------------------------------------------------------------------
+
Sequence<sal_Int8> ORowSetValue::getSequence() const
{
SAL_INFO( "connectivity.commontools", "dbtools Ocke.Janssen@sun.com ORowSetValue::getSequence" );
@@ -1952,7 +1952,7 @@ Sequence<sal_Int8> ORowSetValue::getSequence() const
return aSeq;
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::util::Date ORowSetValue::getDate() const
{
SAL_INFO( "connectivity.commontools", "dbtools Ocke.Janssen@sun.com ORowSetValue::getDate" );
@@ -2011,7 +2011,7 @@ Sequence<sal_Int8> ORowSetValue::getSequence() const
}
return aValue;
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::util::Time ORowSetValue::getTime() const
{
SAL_INFO( "connectivity.commontools", "dbtools Ocke.Janssen@sun.com ORowSetValue::getTime" );
@@ -2056,7 +2056,7 @@ Sequence<sal_Int8> ORowSetValue::getSequence() const
}
return aValue;
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::util::DateTime ORowSetValue::getDateTime() const
{
SAL_INFO( "connectivity.commontools", "dbtools Ocke.Janssen@sun.com ORowSetValue::getDateTime" );
@@ -2109,7 +2109,7 @@ Sequence<sal_Int8> ORowSetValue::getSequence() const
}
return aValue;
}
-// -----------------------------------------------------------------------------
+
void ORowSetValue::setSigned(bool _bMod)
{
SAL_INFO( "connectivity.commontools", "dbtools Ocke.Janssen@sun.com ORowSetValue::setSigned" );
@@ -2163,7 +2163,7 @@ void ORowSetValue::setSigned(bool _bMod)
}
}
-// -----------------------------------------------------------------------------
+
namespace detail
{
class SAL_NO_VTABLE IValueSource
@@ -2258,21 +2258,21 @@ namespace detail
};
}
-// -----------------------------------------------------------------------------
+
void ORowSetValue::fill( const sal_Int32 _nType, const Reference< XColumn >& _rxColumn )
{
detail::ColumnValue aColumnValue( _rxColumn );
impl_fill( _nType, true, aColumnValue );
}
-// -----------------------------------------------------------------------------
+
void ORowSetValue::fill( sal_Int32 _nPos, sal_Int32 _nType, bool _bNullable, const Reference< XRow>& _xRow )
{
detail::RowValue aRowValue( _xRow, _nPos );
impl_fill( _nType, _bNullable, aRowValue );
}
-// -----------------------------------------------------------------------------
+
void ORowSetValue::fill(sal_Int32 _nPos,
sal_Int32 _nType,
const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRow>& _xRow)
@@ -2281,7 +2281,7 @@ void ORowSetValue::fill(sal_Int32 _nPos,
fill(_nPos,_nType,true,_xRow);
}
-// -----------------------------------------------------------------------------
+
void ORowSetValue::impl_fill( const sal_Int32 _nType, bool _bNullable, const detail::IValueSource& _rValueSource )
{
@@ -2370,7 +2370,7 @@ void ORowSetValue::impl_fill( const sal_Int32 _nType, bool _bNullable, const det
setNull();
setTypeKind(_nType);
}
-// -----------------------------------------------------------------------------
+
void ORowSetValue::fill(const Any& _rValue)
{
SAL_INFO( "connectivity.commontools", "dbtools Ocke.Janssen@sun.com ORowSetValue::fill (3)" );
diff --git a/connectivity/source/commontools/ParamterSubstitution.cxx b/connectivity/source/commontools/ParamterSubstitution.cxx
index 57150ad7a49a..0ea7c652ddc1 100644
--- a/connectivity/source/commontools/ParamterSubstitution.cxx
+++ b/connectivity/source/commontools/ParamterSubstitution.cxx
@@ -39,12 +39,12 @@ namespace connectivity
xConnection = aArgs.getUnpackedValueOrDefault("ActiveConnection",xConnection);
m_xConnection = xConnection;
}
- //------------------------------------------------------------------------------
+
OUString ParameterSubstitution::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString("org.openoffice.comp.helper.ParameterSubstitution");
}
- //------------------------------------------------------------------------------
+
OUString SAL_CALL ParameterSubstitution::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
@@ -54,12 +54,12 @@ namespace connectivity
{
return cppu::supportsService(this, _rServiceName);
}
- //------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL ParameterSubstitution::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
- //------------------------------------------------------------------
+
Sequence< OUString > ParameterSubstitution::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 1 );
@@ -67,12 +67,12 @@ namespace connectivity
return aSNS;
}
- //------------------------------------------------------------------
+
Reference< XInterface > ParameterSubstitution::create(const Reference< XComponentContext >& _xContext)
{
return *(new ParameterSubstitution(_xContext));
}
- //------------------------------------------------------------------
+
OUString SAL_CALL ParameterSubstitution::substituteVariables( const OUString& _sText, ::sal_Bool /*bSubstRequired*/ ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException)
{
OUString sRet = _sText;
@@ -99,17 +99,17 @@ namespace connectivity
}
return sRet;
}
- //------------------------------------------------------------------
+
OUString SAL_CALL ParameterSubstitution::reSubstituteVariables( const OUString& _sText ) throw (::com::sun::star::uno::RuntimeException)
{
return _sText;
}
- //------------------------------------------------------------------
+
OUString SAL_CALL ParameterSubstitution::getSubstituteVariableValue( const OUString& /*variable*/ ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException)
{
throw container::NoSuchElementException();
}
- //------------------------------------------------------------------
+
// ==================================
diff --git a/connectivity/source/commontools/TColumnsHelper.cxx b/connectivity/source/commontools/TColumnsHelper.cxx
index 527fd6f6b584..7705e5caaff0 100644
--- a/connectivity/source/commontools/TColumnsHelper.cxx
+++ b/connectivity/source/commontools/TColumnsHelper.cxx
@@ -68,13 +68,13 @@ OColumnsHelper::OColumnsHelper( ::cppu::OWeakObject& _rParent
,m_pTable(NULL)
{
}
-// -----------------------------------------------------------------------------
+
OColumnsHelper::~OColumnsHelper()
{
delete m_pImpl;
m_pImpl = NULL;
}
-// -----------------------------------------------------------------------------
+
sdbcx::ObjectType OColumnsHelper::createObject(const OUString& _rName)
{
@@ -153,7 +153,7 @@ sdbcx::ObjectType OColumnsHelper::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void OColumnsHelper::impl_refresh() throw(RuntimeException)
{
if ( m_pTable )
@@ -162,12 +162,12 @@ void OColumnsHelper::impl_refresh() throw(RuntimeException)
m_pTable->refreshColumns();
}
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OColumnsHelper::createDescriptor()
{
return new OColumn(sal_True);
}
-// -----------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OColumnsHelper::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
@@ -190,7 +190,7 @@ sdbcx::ObjectType OColumnsHelper::appendObject( const OUString& _rForName, const
}
return createObject( _rForName );
}
-// -------------------------------------------------------------------------
+
// XDrop
void OColumnsHelper::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName)
{
@@ -212,7 +212,7 @@ void OColumnsHelper::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName
}
}
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/commontools/TConnection.cxx b/connectivity/source/commontools/TConnection.cxx
index dd1a60cf9bad..94e7d431b47b 100644
--- a/connectivity/source/commontools/TConnection.cxx
+++ b/connectivity/source/commontools/TConnection.cxx
@@ -31,13 +31,13 @@ using namespace com::sun::star::sdbc;
using namespace com::sun::star::beans;
using namespace ::osl;
-//------------------------------------------------------------------------------
+
OMetaConnection::OMetaConnection()
: OMetaConnection_BASE(m_aMutex)
, m_nTextEncoding(RTL_TEXTENCODING_MS_1252)
{
}
-//------------------------------------------------------------------------------
+
void OMetaConnection::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -62,7 +62,7 @@ sal_Int64 SAL_CALL OMetaConnection::getSomething( const ::com::sun::star::uno::S
? reinterpret_cast< sal_Int64 >( this )
: (sal_Int64)0;
}
-// -----------------------------------------------------------------------------
+
Sequence< sal_Int8 > OMetaConnection::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -77,13 +77,13 @@ Sequence< sal_Int8 > OMetaConnection::getUnoTunnelImplementationId()
}
return pId->getImplementationId();
}
-// -----------------------------------------------------------------------------
+
::dbtools::OPropertyMap& OMetaConnection::getPropMap()
{
static ::dbtools::OPropertyMap s_aPropertyNameMap;
return s_aPropertyNameMap;
}
-// -----------------------------------------------------------------------------
+
void OMetaConnection::throwGenericSQLException( sal_uInt16 _nErrorResourceId,const Reference< XInterface>& _xContext )
{
OUString sErrorMessage;
diff --git a/connectivity/source/commontools/TDatabaseMetaDataBase.cxx b/connectivity/source/commontools/TDatabaseMetaDataBase.cxx
index db0b796b621d..c63667eee210 100644
--- a/connectivity/source/commontools/TDatabaseMetaDataBase.cxx
+++ b/connectivity/source/commontools/TDatabaseMetaDataBase.cxx
@@ -62,25 +62,25 @@ ODatabaseMetaDataBase::ODatabaseMetaDataBase(const Reference< XConnection >& _rx
}
osl_atomic_decrement( &m_refCount );
}
-// -------------------------------------------------------------------------
+
ODatabaseMetaDataBase::~ODatabaseMetaDataBase()
{
}
-// -----------------------------------------------------------------------------
+
Sequence< PropertyValue > SAL_CALL ODatabaseMetaDataBase::getConnectionInfo( ) throw (RuntimeException)
{
return m_aConnectionInfo;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataBase::disposing( const EventObject& /*Source*/ ) throw(RuntimeException)
{
// cut off all references to the connection
m_xConnection.clear();
m_xListenerHelper.clear();
}
-// -----------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getTypeInfo( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -167,39 +167,39 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getTypeInfo( ) throw(SQ
pResult->setRows(m_aTypeInfoRows);
return xRet;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getExportedKeys(
const Any& /*catalog*/, const OUString& /*schema*/, const OUString& /*table*/ ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eExportedKeys );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getImportedKeys(
const Any& /*catalog*/, const OUString& /*schema*/, const OUString& /*table*/ ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eImportedKeys );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getPrimaryKeys(
const Any& /*catalog*/, const OUString& /*schema*/, const OUString& /*table*/ ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::ePrimaryKeys );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getIndexInfo(
const Any& /*catalog*/, const OUString& /*schema*/, const OUString& /*table*/,
sal_Bool /*unique*/, sal_Bool /*approximate*/ ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eIndexInfo );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getBestRowIdentifier(
const Any& /*catalog*/, const OUString& /*schema*/, const OUString& /*table*/, sal_Int32 /*scope*/,
sal_Bool /*nullable*/ ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eBestRowIdentifier );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getCrossReference(
const Any& /*primaryCatalog*/, const OUString& /*primarySchema*/,
const OUString& /*primaryTable*/, const Any& /*foreignCatalog*/,
@@ -207,119 +207,119 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getCrossReference(
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eCrossReference );
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL ODatabaseMetaDataBase::getConnection( ) throw(SQLException, RuntimeException)
{
return m_xConnection;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getProcedureColumns(
const Any& /*catalog*/, const OUString& /*schemaPattern*/,
const OUString& /*procedureNamePattern*/, const OUString& /*columnNamePattern*/ ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eProcedureColumns );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getProcedures(
const Any& /*catalog*/, const OUString& /*schemaPattern*/,
const OUString& /*procedureNamePattern*/ ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eProcedures );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getVersionColumns(
const Any& /*catalog*/, const OUString& /*schema*/, const OUString& /*table*/ ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eVersionColumns );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getSchemas( ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eSchemas );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getColumnPrivileges(
const Any& /*catalog*/, const OUString& /*schema*/, const OUString& /*table*/,
const OUString& /*columnNamePattern*/ ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eColumnPrivileges );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getTablePrivileges(
const Any& /*catalog*/, const OUString& /*schema*/, const OUString& /*table*/) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eTablePrivileges );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getCatalogs( ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eCatalogs );
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaDataBase::getIdentifierQuoteString( ) throw(SQLException, RuntimeException)
{
return callImplMethod(m_sIdentifierQuoteString,::std::mem_fun_t< OUString ,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_getIdentifierQuoteString_throw));
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataBase::isCatalogAtStart( ) throw(SQLException, RuntimeException)
{
return callImplMethod(m_isCatalogAtStart,::std::mem_fun_t< sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_isCatalogAtStart_throw));
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaDataBase::getCatalogSeparator( ) throw(SQLException, RuntimeException)
{
return callImplMethod(m_sCatalogSeparator,::std::mem_fun_t< OUString,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_getCatalogSeparator_throw));
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsCatalogsInTableDefinitions( ) throw(SQLException, RuntimeException)
{
return callImplMethod(m_supportsCatalogsInTableDefinitions,::std::mem_fun_t< sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsCatalogsInTableDefinitions_throw));
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsSchemasInTableDefinitions( ) throw(SQLException, RuntimeException)
{
return callImplMethod(m_supportsSchemasInTableDefinitions,::std::mem_fun_t< sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsSchemasInTableDefinitions_throw));
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsCatalogsInDataManipulation( ) throw(SQLException, RuntimeException)
{
return callImplMethod(m_supportsCatalogsInDataManipulation,::std::mem_fun_t< sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsCatalogsInDataManipulation_throw));
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsSchemasInDataManipulation( ) throw(SQLException, RuntimeException)
{
return callImplMethod(m_supportsSchemasInDataManipulation,::std::mem_fun_t< sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsSchemasInDataManipulation_throw));
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsMixedCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return callImplMethod(m_supportsMixedCaseQuotedIdentifiers,::std::mem_fun_t< sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsMixedCaseQuotedIdentifiers_throw));
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsAlterTableWithAddColumn( ) throw(SQLException, RuntimeException)
{
return callImplMethod(m_supportsAlterTableWithAddColumn,::std::mem_fun_t< sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsAlterTableWithAddColumn_throw));
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsAlterTableWithDropColumn( ) throw(SQLException, RuntimeException)
{
return callImplMethod(m_supportsAlterTableWithDropColumn,::std::mem_fun_t< sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsAlterTableWithDropColumn_throw));
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataBase::getMaxStatements( ) throw(SQLException, RuntimeException)
{
return callImplMethod(m_MaxStatements,::std::mem_fun_t< sal_Int32,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_getMaxStatements_throw));
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataBase::getMaxTablesInSelect( ) throw(SQLException, RuntimeException)
{
return callImplMethod(m_MaxTablesInSelect,::std::mem_fun_t< sal_Int32,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_getMaxTablesInSelect_throw));
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataBase::storesMixedCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return callImplMethod(m_storesMixedCaseQuotedIdentifiers,::std::mem_fun_t< sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_storesMixedCaseQuotedIdentifiers_throw));
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/commontools/TIndex.cxx b/connectivity/source/commontools/TIndex.cxx
index b63dd4699dca..d10516773574 100644
--- a/connectivity/source/commontools/TIndex.cxx
+++ b/connectivity/source/commontools/TIndex.cxx
@@ -31,7 +31,7 @@ using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
OIndexHelper::OIndexHelper( OTableHelper* _pTable) : connectivity::sdbcx::OIndex(sal_True)
, m_pTable(_pTable)
{
@@ -39,7 +39,7 @@ OIndexHelper::OIndexHelper( OTableHelper* _pTable) : connectivity::sdbcx::OIndex
::std::vector< OUString> aVector;
m_pColumns = new OIndexColumns(this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
OIndexHelper::OIndexHelper( OTableHelper* _pTable,
const OUString& _Name,
const OUString& _Catalog,
@@ -56,7 +56,7 @@ OIndexHelper::OIndexHelper( OTableHelper* _pTable,
construct();
refreshColumns();
}
-// -------------------------------------------------------------------------
+
void OIndexHelper::refreshColumns()
{
@@ -95,6 +95,6 @@ void OIndexHelper::refreshColumns()
else
m_pColumns = new OIndexColumns(this,m_aMutex,aVector);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/commontools/TIndexColumns.cxx b/connectivity/source/commontools/TIndexColumns.cxx
index 93a395acc53c..025e13123ad1 100644
--- a/connectivity/source/commontools/TIndexColumns.cxx
+++ b/connectivity/source/commontools/TIndexColumns.cxx
@@ -35,7 +35,7 @@ using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
OIndexColumns::OIndexColumns( OIndexHelper* _pIndex,
::osl::Mutex& _rMutex,
const ::std::vector< OUString> &_rVector)
@@ -43,7 +43,7 @@ OIndexColumns::OIndexColumns( OIndexHelper* _pIndex,
,m_pIndex(_pIndex)
{
}
-// -------------------------------------------------------------------------
+
sdbcx::ObjectType OIndexColumns::createObject(const OUString& _rName)
{
::dbtools::OPropertyMap& rPropMap = OMetaConnection::getPropMap();
@@ -104,16 +104,16 @@ sdbcx::ObjectType OIndexColumns::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OIndexColumns::createDescriptor()
{
return new OIndexColumn(sal_True);
}
-// -------------------------------------------------------------------------
+
void OIndexColumns::impl_refresh() throw(RuntimeException)
{
m_pIndex->refreshColumns();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/commontools/TIndexes.cxx b/connectivity/source/commontools/TIndexes.cxx
index 41e8652cbd9a..165c2fd93688 100644
--- a/connectivity/source/commontools/TIndexes.cxx
+++ b/connectivity/source/commontools/TIndexes.cxx
@@ -37,7 +37,7 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
using namespace cppu;
-// -----------------------------------------------------------------------------
+
OIndexesHelper::OIndexesHelper(OTableHelper* _pTable,
::osl::Mutex& _rMutex,
const ::std::vector< OUString> &_rVector
@@ -46,7 +46,7 @@ OIndexesHelper::OIndexesHelper(OTableHelper* _pTable,
,m_pTable(_pTable)
{
}
-// -----------------------------------------------------------------------------
+
sdbcx::ObjectType OIndexesHelper::createObject(const OUString& _rName)
{
@@ -109,17 +109,17 @@ sdbcx::ObjectType OIndexesHelper::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void OIndexesHelper::impl_refresh() throw(RuntimeException)
{
m_pTable->refreshIndexes();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OIndexesHelper::createDescriptor()
{
return new OIndexHelper(m_pTable);
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OIndexesHelper::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
@@ -207,7 +207,7 @@ sdbcx::ObjectType OIndexesHelper::appendObject( const OUString& _rForName, const
return createObject( _rForName );
}
-// -------------------------------------------------------------------------
+
// XDrop
void OIndexesHelper::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName)
{
@@ -243,7 +243,7 @@ void OIndexesHelper::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName
}
}
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/commontools/TKey.cxx b/connectivity/source/commontools/TKey.cxx
index b09b5fee1b40..4b984bf2198d 100644
--- a/connectivity/source/commontools/TKey.cxx
+++ b/connectivity/source/commontools/TKey.cxx
@@ -30,13 +30,13 @@ using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
OTableKeyHelper::OTableKeyHelper(OTableHelper* _pTable) : connectivity::sdbcx::OKey(sal_True)
,m_pTable(_pTable)
{
construct();
}
-// -------------------------------------------------------------------------
+
OTableKeyHelper::OTableKeyHelper( OTableHelper* _pTable
,const OUString& _Name
,const sdbcx::TKeyProperties& _rProps
@@ -46,7 +46,7 @@ OTableKeyHelper::OTableKeyHelper( OTableHelper* _pTable
construct();
refreshColumns();
}
-// -------------------------------------------------------------------------
+
void OTableKeyHelper::refreshColumns()
{
if ( !m_pTable )
@@ -102,6 +102,6 @@ void OTableKeyHelper::refreshColumns()
else
m_pColumns = new OKeyColumnsHelper(this,m_aMutex,aVector);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/commontools/TKeyColumns.cxx b/connectivity/source/commontools/TKeyColumns.cxx
index 9325b080fee5..73ab71ce7eb0 100644
--- a/connectivity/source/commontools/TKeyColumns.cxx
+++ b/connectivity/source/commontools/TKeyColumns.cxx
@@ -36,7 +36,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
OKeyColumnsHelper::OKeyColumnsHelper( OTableKeyHelper* _pKey,
::osl::Mutex& _rMutex,
const ::std::vector< OUString> &_rVector)
@@ -44,7 +44,7 @@ OKeyColumnsHelper::OKeyColumnsHelper( OTableKeyHelper* _pKey,
,m_pKey(_pKey)
{
}
-// -------------------------------------------------------------------------
+
sdbcx::ObjectType OKeyColumnsHelper::createObject(const OUString& _rName)
{
::dbtools::OPropertyMap& rPropMap = OMetaConnection::getPropMap();
@@ -123,17 +123,17 @@ sdbcx::ObjectType OKeyColumnsHelper::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OKeyColumnsHelper::createDescriptor()
{
return new OKeyColumn(isCaseSensitive());
}
-// -------------------------------------------------------------------------
+
void OKeyColumnsHelper::impl_refresh() throw(::com::sun::star::uno::RuntimeException)
{
m_pKey->refreshColumns();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/commontools/TKeys.cxx b/connectivity/source/commontools/TKeys.cxx
index 7466d5b3513d..6e83e7be05c3 100644
--- a/connectivity/source/commontools/TKeys.cxx
+++ b/connectivity/source/commontools/TKeys.cxx
@@ -50,7 +50,7 @@ OKeysHelper::OKeysHelper( OTableHelper* _pTable,
,m_pTable(_pTable)
{
}
-// -------------------------------------------------------------------------
+
sdbcx::ObjectType OKeysHelper::createObject(const OUString& _rName)
{
sdbcx::ObjectType xRet = NULL;
@@ -69,17 +69,17 @@ sdbcx::ObjectType OKeysHelper::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void OKeysHelper::impl_refresh() throw(RuntimeException)
{
m_pTable->refreshKeys();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OKeysHelper::createDescriptor()
{
return new OTableKeyHelper(m_pTable);
}
-// -----------------------------------------------------------------------------
+
/** returns the keyrule string for the primary key
*/
OUString getKeyRuleString(sal_Bool _bUpdate,sal_Int32 _nKeyRule)
@@ -107,7 +107,7 @@ OUString getKeyRuleString(sal_Bool _bUpdate,sal_Int32 _nKeyRule)
sRet = OUString::createFromAscii(pKeyRule);
return sRet;
}
-// -------------------------------------------------------------------------
+
void OKeysHelper::cloneDescriptorColumns( const sdbcx::ObjectType& _rSourceDescriptor, const sdbcx::ObjectType& _rDestDescriptor )
{
Reference< XColumnsSupplier > xColSupp( _rSourceDescriptor, UNO_QUERY_THROW );
@@ -123,7 +123,7 @@ void OKeysHelper::cloneDescriptorColumns( const sdbcx::ObjectType& _rSourceDescr
xDestAppend->appendByDescriptor( xColProp );
}
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OKeysHelper::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
@@ -254,12 +254,12 @@ sdbcx::ObjectType OKeysHelper::appendObject( const OUString& _rForName, const Re
return createObject( sNewName );
}
-// -----------------------------------------------------------------------------
+
OUString OKeysHelper::getDropForeignKey() const
{
return OUString(" DROP CONSTRAINT ");
}
-// -------------------------------------------------------------------------
+
// XDrop
void OKeysHelper::dropObject(sal_Int32 _nPos,const OUString _sElementName)
{
@@ -304,8 +304,8 @@ void OKeysHelper::dropObject(sal_Int32 _nPos,const OUString _sElementName)
}
}
}
-// -----------------------------------------------------------------------------
+
} // namespace connectivity
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/commontools/TPrivilegesResultSet.cxx b/connectivity/source/commontools/TPrivilegesResultSet.cxx
index c26a61eec22f..6906e57d5c10 100644
--- a/connectivity/source/commontools/TPrivilegesResultSet.cxx
+++ b/connectivity/source/commontools/TPrivilegesResultSet.cxx
@@ -20,14 +20,14 @@
#include "TPrivilegesResultSet.hxx"
using namespace connectivity;
-//------------------------------------------------------------------------------
+
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-//------------------------------------------------------------------------------
+
OResultSetPrivileges::OResultSetPrivileges( const Reference< XDatabaseMetaData>& _rxMeta
, const Any& catalog
, const OUString& schemaPattern
@@ -81,7 +81,7 @@ OResultSetPrivileges::OResultSetPrivileges( const Reference< XDatabaseMetaData>&
}
osl_atomic_decrement( &m_refCount );
}
-//------------------------------------------------------------------------------
+
const ORowSetValue& OResultSetPrivileges::getValue(sal_Int32 columnIndex)
{
switch(columnIndex)
@@ -106,14 +106,14 @@ const ORowSetValue& OResultSetPrivileges::getValue(sal_Int32 columnIndex)
}
return ODatabaseMetaDataResultSet::getValue(columnIndex);
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSetPrivileges::disposing(void)
{
ODatabaseMetaDataResultSet::disposing();
m_xTables.clear();
m_xRow.clear();
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetPrivileges::next( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -138,6 +138,6 @@ sal_Bool SAL_CALL OResultSetPrivileges::next( ) throw(SQLException, RuntimeExce
}
return bReturn;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/commontools/TSkipDeletedSet.cxx b/connectivity/source/commontools/TSkipDeletedSet.cxx
index f7808c67f6e7..b5925246556a 100644
--- a/connectivity/source/commontools/TSkipDeletedSet.cxx
+++ b/connectivity/source/commontools/TSkipDeletedSet.cxx
@@ -22,7 +22,7 @@
#include "sal/log.hxx"
using namespace connectivity;
-// -----------------------------------------------------------------------------
+
OSkipDeletedSet::OSkipDeletedSet(IResultSetHelper* _pHelper)
: m_pHelper(_pHelper)
,m_bDeletedVisible(false)
@@ -30,13 +30,13 @@ OSkipDeletedSet::OSkipDeletedSet(IResultSetHelper* _pHelper)
SAL_INFO( "connectivity.commontools", "commontools Ocke.Janssen@sun.com OSkipDeletedSet::OSkipDeletedSet" );
m_aBookmarksPositions.reserve(256);
}
-// -----------------------------------------------------------------------------
+
OSkipDeletedSet::~OSkipDeletedSet()
{
m_aBookmarksPositions.clear();
//m_aBookmarks.clear();
}
-// -----------------------------------------------------------------------------
+
sal_Bool OSkipDeletedSet::skipDeleted(IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset, sal_Bool _bRetrieveData)
{
SAL_INFO( "connectivity.commontools", "commontools Ocke.Janssen@sun.com OSkipDeletedSet::skipDeleted" );
@@ -161,7 +161,7 @@ sal_Bool OSkipDeletedSet::skipDeleted(IResultSetHelper::Movement _eCursorPositio
return bDataFound;
}
-// -------------------------------------------------------------------------
+
sal_Bool OSkipDeletedSet::moveAbsolute(sal_Int32 _nPos,sal_Bool _bRetrieveData)
{
SAL_INFO( "connectivity.commontools", "commontools Ocke.Janssen@sun.com OSkipDeletedSet::moveAbsolute" );
@@ -224,14 +224,14 @@ sal_Bool OSkipDeletedSet::moveAbsolute(sal_Int32 _nPos,sal_Bool _bRetrieveData)
}
return bDataFound;
}
-// -----------------------------------------------------------------------------
+
void OSkipDeletedSet::clear()
{
SAL_INFO( "connectivity.commontools", "commontools Ocke.Janssen@sun.com OSkipDeletedSet::clear" );
::std::vector<sal_Int32>().swap(m_aBookmarksPositions);
//TInt2IntMap().swap(m_aBookmarks);
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OSkipDeletedSet::getMappedPosition(sal_Int32 _nPos) const
{
SAL_INFO( "connectivity.commontools", "commontools Ocke.Janssen@sun.com OSkipDeletedSet::getMappedPosition" );
@@ -244,7 +244,7 @@ sal_Int32 OSkipDeletedSet::getMappedPosition(sal_Int32 _nPos) const
OSL_FAIL("Why!");
return -1;
}
-// -----------------------------------------------------------------------------
+
void OSkipDeletedSet::insertNewPosition(sal_Int32 _nPos)
{
SAL_INFO( "connectivity.commontools", "commontools Ocke.Janssen@sun.com OSkipDeletedSet::insertNewPosition" );
@@ -253,7 +253,7 @@ void OSkipDeletedSet::insertNewPosition(sal_Int32 _nPos)
//OSL_ENSURE(::std::find(m_aBookmarksPositions.begin(),m_aBookmarksPositions.end(),_nPos) == m_aBookmarksPositions.end(),"Invalid driver pos");
m_aBookmarksPositions.push_back(_nPos);
}
-// -----------------------------------------------------------------------------
+
void OSkipDeletedSet::deletePosition(sal_Int32 _nBookmark)
{
SAL_INFO( "connectivity.commontools", "commontools Ocke.Janssen@sun.com OSkipDeletedSet::deletePosition" );
@@ -270,6 +270,6 @@ void OSkipDeletedSet::deletePosition(sal_Int32 _nBookmark)
//m_aBookmarksPositions.erase(m_aBookmarksPositions.begin() + aFind->second-1);
//m_aBookmarks.erase(_nPos);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/commontools/TSortIndex.cxx b/connectivity/source/commontools/TSortIndex.cxx
index a9d5bc5028b7..28ee408e4d9f 100644
--- a/connectivity/source/commontools/TSortIndex.cxx
+++ b/connectivity/source/commontools/TSortIndex.cxx
@@ -24,7 +24,7 @@
#include <o3tl/compat_functional.hxx>
using namespace connectivity;
-//------------------------------------------------------------------
+
/// binary_function Functor object for class OSortIndex::TIntValuePairVector::value_type returntype is bool
struct TKeyValueFunc : ::std::binary_function<OSortIndex::TIntValuePairVector::value_type,OSortIndex::TIntValuePairVector::value_type,bool>
{
@@ -76,7 +76,7 @@ struct TKeyValueFunc : ::std::binary_function<OSortIndex::TIntValuePairVector::v
}
};
-// -----------------------------------------------------------------------------
+
::rtl::Reference<OKeySet> OSortIndex::CreateKeySet()
{
Freeze();
@@ -90,7 +90,7 @@ struct TKeyValueFunc : ::std::binary_function<OSortIndex::TIntValuePairVector::v
pKeySet->setFrozen();
return pKeySet;
}
-// -----------------------------------------------------------------------------
+
OSortIndex::OSortIndex( const ::std::vector<OKeyType>& _aKeyType,
const ::std::vector<TAscendingOrder>& _aAscending)
:m_aKeyType(_aKeyType)
@@ -98,11 +98,11 @@ OSortIndex::OSortIndex( const ::std::vector<OKeyType>& _aKeyType,
,m_bFrozen(sal_False)
{
}
-//------------------------------------------------------------------
+
OSortIndex::~OSortIndex()
{
}
-//------------------------------------------------------------------
+
void OSortIndex::AddKeyValue(OKeyValue * pKeyValue)
{
OSL_ENSURE(pKeyValue,"Can not be null here!");
@@ -116,7 +116,7 @@ void OSortIndex::AddKeyValue(OKeyValue * pKeyValue)
}
-//------------------------------------------------------------------
+
void OSortIndex::Freeze()
{
OSL_ENSURE(! m_bFrozen,"OSortIndex::Freeze: already frozen!");
@@ -135,20 +135,20 @@ void OSortIndex::Freeze()
m_bFrozen = sal_True;
}
-// -----------------------------------------------------------------------------
+
OKeyValue::OKeyValue(sal_Int32 nVal)
: m_nValue(nVal)
{
}
-// -----------------------------------------------------------------------------
+
OKeyValue::~OKeyValue()
{
}
-// -----------------------------------------------------------------------------
+
OKeyValue* OKeyValue::createKeyValue(sal_Int32 _nVal)
{
return new OKeyValue(_nVal);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/commontools/TTableHelper.cxx b/connectivity/source/commontools/TTableHelper.cxx
index e7e4da0ec9fe..c186b67c4946 100644
--- a/connectivity/source/commontools/TTableHelper.cxx
+++ b/connectivity/source/commontools/TTableHelper.cxx
@@ -147,7 +147,7 @@ OTableHelper::OTableHelper( sdbcx::OCollection* _pTables,
,m_pImpl(new OTableHelperImpl(_xConnection))
{
}
-// -------------------------------------------------------------------------
+
OTableHelper::OTableHelper( sdbcx::OCollection* _pTables,
const Reference< XConnection >& _xConnection,
sal_Bool _bCase,
@@ -166,11 +166,11 @@ OTableHelper::OTableHelper( sdbcx::OCollection* _pTables,
,m_pImpl(new OTableHelperImpl(_xConnection))
{
}
-// -----------------------------------------------------------------------------
+
OTableHelper::~OTableHelper()
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OTableHelper::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -187,7 +187,7 @@ void SAL_CALL OTableHelper::disposing()
}
-// -------------------------------------------------------------------------
+
namespace
{
/** collects ColumnDesc's from a resultset produced by XDatabaseMetaData::getColumns
@@ -259,7 +259,7 @@ namespace
}
}
-// -------------------------------------------------------------------------
+
void OTableHelper::refreshColumns()
{
TStringVector aVector;
@@ -305,7 +305,7 @@ void OTableHelper::refreshColumns()
else
m_pColumns = createColumns(aVector);
}
-// -----------------------------------------------------------------------------
+
const ColumnDesc* OTableHelper::getColumnDescription(const OUString& _sName) const
{
const ColumnDesc* pRet = NULL;
@@ -320,7 +320,7 @@ const ColumnDesc* OTableHelper::getColumnDescription(const OUString& _sName) con
} // for (::std::vector< ColumnDesc >::const_iterator aIter = m_pImpl->m_aColumnDesc.begin();aIter != aEnd;++aIter)
return pRet;
}
-// -------------------------------------------------------------------------
+
void OTableHelper::refreshPrimaryKeys(TStringVector& _rNames)
{
Any aCatalog;
@@ -356,7 +356,7 @@ void OTableHelper::refreshPrimaryKeys(TStringVector& _rNames)
} // if ( xResult.is() && xResult->next() )
::comphelper::disposeComponent(xResult);
}
-// -------------------------------------------------------------------------
+
void OTableHelper::refreshForeignKeys(TStringVector& _rNames)
{
Any aCatalog;
@@ -419,7 +419,7 @@ void OTableHelper::refreshForeignKeys(TStringVector& _rNames)
::comphelper::disposeComponent(xResult);
}
}
-// -------------------------------------------------------------------------
+
void OTableHelper::refreshKeys()
{
m_pImpl->m_aKeys.clear();
@@ -439,7 +439,7 @@ void OTableHelper::refreshKeys()
else*/
}
-// -------------------------------------------------------------------------
+
void OTableHelper::refreshIndexes()
{
TStringVector aVector;
@@ -480,7 +480,7 @@ void OTableHelper::refreshIndexes()
else
m_pIndexes = createIndexes(aVector);
}
-// -----------------------------------------------------------------------------
+
OUString OTableHelper::getRenameStart() const
{
OUString sSql("RENAME ");
@@ -491,7 +491,7 @@ OUString OTableHelper::getRenameStart() const
return sSql;
}
-// -------------------------------------------------------------------------
+
// XRename
void SAL_CALL OTableHelper::rename( const OUString& newName ) throw(SQLException, ElementExistException, RuntimeException)
{
@@ -537,12 +537,12 @@ void SAL_CALL OTableHelper::rename( const OUString& newName ) throw(SQLException
else
::dbtools::qualifiedNameComponents(getMetaData(),newName,m_CatalogName,m_SchemaName,m_Name,::dbtools::eInTableDefinitions);
}
-// -----------------------------------------------------------------------------
+
Reference< XDatabaseMetaData> OTableHelper::getMetaData() const
{
return m_pImpl->m_xMetaData;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OTableHelper::alterColumnByIndex( sal_Int32 index, const Reference< XPropertySet >& descriptor ) throw(SQLException, ::com::sun::star::lang::IndexOutOfBoundsException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -559,24 +559,24 @@ void SAL_CALL OTableHelper::alterColumnByIndex( sal_Int32 index, const Reference
alterColumnByName(getString(xOld->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME))),descriptor);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OTableHelper::getName() throw(RuntimeException)
{
OUString sComposedName;
sComposedName = ::dbtools::composeTableName(getMetaData(),m_CatalogName,m_SchemaName,m_Name,sal_False,::dbtools::eInDataManipulation);
return sComposedName;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OTableHelper::acquire() throw()
{
OTable_TYPEDEF::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OTableHelper::release() throw()
{
OTable_TYPEDEF::release();
}
-// -----------------------------------------------------------------------------
+
sdbcx::TKeyProperties OTableHelper::getKeyProperties(const OUString& _sName) const
{
sdbcx::TKeyProperties pKeyProps;
@@ -593,41 +593,41 @@ sdbcx::TKeyProperties OTableHelper::getKeyProperties(const OUString& _sName) con
return pKeyProps;
}
-// -----------------------------------------------------------------------------
+
void OTableHelper::addKey(const OUString& _sName,const sdbcx::TKeyProperties& _aKeyProperties)
{
m_pImpl->m_aKeys.insert(TKeyMap::value_type(_sName,_aKeyProperties));
}
-// -----------------------------------------------------------------------------
+
OUString OTableHelper::getTypeCreatePattern() const
{
return OUString();
}
-// -----------------------------------------------------------------------------
+
Reference< XConnection> OTableHelper::getConnection() const
{
return m_pImpl->m_xConnection;
}
-// -----------------------------------------------------------------------------
+
Reference< ::com::sun::star::sdb::tools::XTableRename> OTableHelper::getRenameService() const
{
return m_pImpl->m_xRename;
}
-// -----------------------------------------------------------------------------
+
Reference< ::com::sun::star::sdb::tools::XTableAlteration> OTableHelper::getAlterService() const
{
return m_pImpl->m_xAlter;
}
-// -----------------------------------------------------------------------------
+
Reference< ::com::sun::star::sdb::tools::XKeyAlteration> OTableHelper::getKeyService() const
{
return m_pImpl->m_xKeyAlter;
}
-// -----------------------------------------------------------------------------
+
Reference< ::com::sun::star::sdb::tools::XIndexAlteration> OTableHelper::getIndexService() const
{
return m_pImpl->m_xIndexAlter;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/commontools/conncleanup.cxx b/connectivity/source/commontools/conncleanup.cxx
index 05e6a448122a..8a45b8b99dd7 100644
--- a/connectivity/source/commontools/conncleanup.cxx
+++ b/connectivity/source/commontools/conncleanup.cxx
@@ -42,7 +42,7 @@ namespace dbtools
//=====================================================================
//= OAutoConnectionDisposer
//=====================================================================
- //---------------------------------------------------------------------
+
OAutoConnectionDisposer::OAutoConnectionDisposer(const Reference< XRowSet >& _rxRowSet, const Reference< XConnection >& _rxConnection)
:m_xRowSet( _rxRowSet )
,m_bRSListening( sal_False )
@@ -66,7 +66,7 @@ namespace dbtools
}
}
- //---------------------------------------------------------------------
+
void OAutoConnectionDisposer::startPropertyListening( const Reference< XPropertySet >& _rxRowSet )
{
try
@@ -80,7 +80,7 @@ namespace dbtools
}
}
- //---------------------------------------------------------------------
+
void OAutoConnectionDisposer::stopPropertyListening( const Reference< XPropertySet >& _rxEventSource )
{
// prevent deletion of ourself while we're herein
@@ -101,7 +101,7 @@ namespace dbtools
}
}
- //---------------------------------------------------------------------
+
void OAutoConnectionDisposer::startRowSetListening()
{
OSL_ENSURE( !m_bRSListening, "OAutoConnectionDisposer::startRowSetListening: already listening!" );
@@ -117,7 +117,7 @@ namespace dbtools
m_bRSListening = sal_True;
}
- //---------------------------------------------------------------------
+
void OAutoConnectionDisposer::stopRowSetListening()
{
OSL_ENSURE( m_bRSListening, "OAutoConnectionDisposer::stopRowSetListening: not listening!" );
@@ -132,7 +132,7 @@ namespace dbtools
m_bRSListening = sal_False;
}
- //---------------------------------------------------------------------
+
void SAL_CALL OAutoConnectionDisposer::propertyChange( const PropertyChangeEvent& _rEvent ) throw (RuntimeException)
{
if ( _rEvent.PropertyName.equals( getActiveConnectionPropertyName() ) )
@@ -184,7 +184,7 @@ namespace dbtools
}
}
- //---------------------------------------------------------------------
+
void SAL_CALL OAutoConnectionDisposer::disposing( const EventObject& _rSource ) throw (RuntimeException)
{
// the rowset is beeing disposed, and nobody has set a new ActiveConnection in the meantime
@@ -196,7 +196,7 @@ namespace dbtools
if ( isPropertyListening() )
stopPropertyListening( Reference< XPropertySet >( _rSource.Source, UNO_QUERY ) );
}
- //---------------------------------------------------------------------
+
void OAutoConnectionDisposer::clearConnection()
{
try
@@ -212,22 +212,22 @@ namespace dbtools
OSL_FAIL("OAutoConnectionDisposer::clearConnection: caught an exception!");
}
}
- //---------------------------------------------------------------------
+
void SAL_CALL OAutoConnectionDisposer::cursorMoved( const ::com::sun::star::lang::EventObject& /*event*/ ) throw (::com::sun::star::uno::RuntimeException)
{
}
- //---------------------------------------------------------------------
+
void SAL_CALL OAutoConnectionDisposer::rowChanged( const ::com::sun::star::lang::EventObject& /*event*/ ) throw (::com::sun::star::uno::RuntimeException)
{
}
- //---------------------------------------------------------------------
+
void SAL_CALL OAutoConnectionDisposer::rowSetChanged( const ::com::sun::star::lang::EventObject& /*event*/ ) throw (::com::sun::star::uno::RuntimeException)
{
stopRowSetListening();
clearConnection();
}
- //---------------------------------------------------------------------
+
//.........................................................................
} // namespace dbtools
diff --git a/connectivity/source/commontools/dbcharset.cxx b/connectivity/source/commontools/dbcharset.cxx
index 04c9aec71b10..9dd38289dc04 100644
--- a/connectivity/source/commontools/dbcharset.cxx
+++ b/connectivity/source/commontools/dbcharset.cxx
@@ -30,12 +30,12 @@ namespace dbtools
//=========================================================================
//= OCharsetMap
//=========================================================================
- //-------------------------------------------------------------------------
+
OCharsetMap::OCharsetMap()
{
}
- //-------------------------------------------------------------------------
+
void OCharsetMap::lateConstruct()
{
const rtl_TextEncoding eFirstEncoding = RTL_TEXTENCODING_DONTKNOW;
@@ -69,7 +69,7 @@ namespace dbtools
OSL_ENSURE( find( RTL_TEXTENCODING_BIG5_HKSCS ) != end(), "OCharsetMap::lateConstruct: missing compatibility encoding Big5-HKSCS!" );
}
- //-------------------------------------------------------------------------
+
sal_Bool OCharsetMap::approveEncoding( const rtl_TextEncoding _eEncoding, const rtl_TextEncodingInfo& _rInfo ) const
{
sal_Bool bIsMimeEncoding = 0 != ( _rInfo.Flags & RTL_TEXTENCODING_INFO_MIME );
@@ -79,26 +79,26 @@ namespace dbtools
return bIsMimeEncoding;
}
- //-------------------------------------------------------------------------
+
OCharsetMap::~OCharsetMap()
{
}
- //-------------------------------------------------------------------------
+
OCharsetMap::CharsetIterator OCharsetMap::begin() const
{
ensureConstructed( );
return CharsetIterator(this, m_aEncodings.begin() );
}
- //-------------------------------------------------------------------------
+
OCharsetMap::CharsetIterator OCharsetMap::find(const rtl_TextEncoding _eEncoding) const
{
ensureConstructed( );
return CharsetIterator( this, m_aEncodings.find( _eEncoding ) );
}
- //-------------------------------------------------------------------------
+
OCharsetMap::CharsetIterator OCharsetMap::find(const OUString& _rIanaName, const IANA&) const
{
ensureConstructed( );
@@ -120,7 +120,7 @@ namespace dbtools
return find( eEncoding );
}
- //-------------------------------------------------------------------------
+
OCharsetMap::CharsetIterator OCharsetMap::end() const
{
ensureConstructed( );
@@ -131,14 +131,14 @@ namespace dbtools
//=========================================================================
//= CharsetIteratorDerefHelper
//=========================================================================
- //-------------------------------------------------------------------------
+
CharsetIteratorDerefHelper::CharsetIteratorDerefHelper( const CharsetIteratorDerefHelper& _rSource )
:m_eEncoding( _rSource.m_eEncoding )
,m_aIanaName( _rSource.m_aIanaName )
{
}
- //-------------------------------------------------------------------------
+
CharsetIteratorDerefHelper:: CharsetIteratorDerefHelper(const rtl_TextEncoding _eEncoding, const OUString& _rIanaName )
:m_eEncoding( _eEncoding )
,m_aIanaName( _rIanaName )
@@ -148,7 +148,7 @@ namespace dbtools
//=========================================================================
//= OCharsetMap::CharsetIterator
//=========================================================================
- //-------------------------------------------------------------------------
+
OCharsetMap::CharsetIterator::CharsetIterator(const OCharsetMap* _pContainer, OCharsetMap::TextEncBag::const_iterator _aPos )
:m_pContainer( _pContainer )
,m_aPos( _aPos )
@@ -156,19 +156,19 @@ namespace dbtools
OSL_ENSURE( m_pContainer, "OCharsetMap::CharsetIterator::CharsetIterator : invalid container!" );
}
- //-------------------------------------------------------------------------
+
OCharsetMap::CharsetIterator::CharsetIterator(const CharsetIterator& _rSource)
:m_pContainer( _rSource.m_pContainer )
,m_aPos( _rSource.m_aPos )
{
}
- //-------------------------------------------------------------------------
+
OCharsetMap::CharsetIterator::~CharsetIterator()
{
}
- //-------------------------------------------------------------------------
+
CharsetIteratorDerefHelper OCharsetMap::CharsetIterator::operator*() const
{
OSL_ENSURE( m_aPos != m_pContainer->m_aEncodings.end(), "OCharsetMap::CharsetIterator::operator*: invalid position!");
@@ -186,7 +186,7 @@ namespace dbtools
return CharsetIteratorDerefHelper( eEncoding, sIanaName );
}
- //-------------------------------------------------------------------------
+
const OCharsetMap::CharsetIterator& OCharsetMap::CharsetIterator::operator++()
{
OSL_ENSURE( m_aPos != m_pContainer->m_aEncodings.end(), "OCharsetMap::CharsetIterator::operator++ : invalid position!" );
@@ -195,7 +195,7 @@ namespace dbtools
return *this;
}
- //-------------------------------------------------------------------------
+
const OCharsetMap::CharsetIterator& OCharsetMap::CharsetIterator::operator--()
{
OSL_ENSURE( m_aPos != m_pContainer->m_aEncodings.begin(), "OCharsetMap::CharsetIterator::operator-- : invalid position!" );
@@ -204,7 +204,7 @@ namespace dbtools
return *this;
}
- //-------------------------------------------------------------------------
+
bool operator==(const OCharsetMap::CharsetIterator& lhs, const OCharsetMap::CharsetIterator& rhs)
{
return ( lhs.m_pContainer == rhs.m_pContainer ) && ( lhs.m_aPos == rhs.m_aPos );
diff --git a/connectivity/source/commontools/dbconversion.cxx b/connectivity/source/commontools/dbconversion.cxx
index d6e48315806b..579c0e2a2087 100644
--- a/connectivity/source/commontools/dbconversion.cxx
+++ b/connectivity/source/commontools/dbconversion.cxx
@@ -60,13 +60,13 @@ namespace dbtools
using namespace ::com::sun::star::beans;
- //------------------------------------------------------------------------------
+
::com::sun::star::util::Date DBTypeConversion::getStandardDate()
{
static ::com::sun::star::util::Date STANDARD_DB_DATE(1,1,1900);
return STANDARD_DB_DATE;
}
- //------------------------------------------------------------------------------
+
OUString DBTypeConversion::toDateString(const utl::Date& rDate)
{
sal_Char s[11];
@@ -79,7 +79,7 @@ namespace dbtools
s[10] = 0;
return OUString::createFromAscii(s);
}
- //------------------------------------------------------------------
+
OUString DBTypeConversion::toTimeStringS(const utl::Time& rTime)
{
std::ostringstream ostr;
@@ -90,7 +90,7 @@ namespace dbtools
<< setw(2) << rTime.Seconds;
return OUString::createFromAscii(ostr.str().c_str());
}
- //------------------------------------------------------------------
+
OUString DBTypeConversion::toTimeString(const utl::Time& rTime)
{
std::ostringstream ostr;
@@ -102,7 +102,7 @@ namespace dbtools
<< setw(9) << rTime.NanoSeconds;
return OUString::createFromAscii(ostr.str().c_str());
}
- //------------------------------------------------------------------
+
OUString DBTypeConversion::toDateTimeString(const utl::DateTime& _rDateTime)
{
utl::Date aDate(_rDateTime.Day,_rDateTime.Month,_rDateTime.Year);
@@ -113,7 +113,7 @@ namespace dbtools
aTemp.append( toTimeString(aTime) );
return aTemp.makeStringAndClear();
}
- //------------------------------------------------------------------------------
+
utl::Date DBTypeConversion::toDate(sal_Int32 _nVal)
{
utl::Date aReturn;
@@ -123,7 +123,7 @@ namespace dbtools
return aReturn;
}
- //------------------------------------------------------------------------------
+
utl::Time DBTypeConversion::toTime(sal_Int64 _nVal)
{
utl::Time aReturn;
@@ -148,11 +148,11 @@ namespace dbtools
nHour * (minInHour * secInMin * nanoSecInSec);
}
- //------------------------------------------------------------------------------
+
static const sal_Int32 aDaysInMonth[12] = { 31, 28, 31, 30, 31, 30,
31, 31, 30, 31, 30, 31 };
- //------------------------------------------------------------------------------
+
static sal_Bool implIsLeapYear(sal_Int32 _nYear)
{
return ( ( ((_nYear % 4) == 0)
@@ -163,7 +163,7 @@ namespace dbtools
;
}
- //------------------------------------------------------------------------------
+
static sal_Int32 implDaysInMonth(sal_Int32 _nMonth, sal_Int32 _nYear)
{
OSL_ENSURE(_nMonth > 0 && _nMonth < 13,"Month as invalid value!");
@@ -178,7 +178,7 @@ namespace dbtools
}
}
- //------------------------------------------------------------------------------
+
static sal_Int32 implRelativeToAbsoluteNull(const utl::Date& _rDate)
{
sal_Int32 nDays = 0;
@@ -195,7 +195,7 @@ namespace dbtools
nDays += _rDate.Day;
return nDays;
}
- //------------------------------------------------------------------------------
+
static void implBuildFromRelative( sal_Int32 nDays, sal_uInt16& rDay, sal_uInt16& rMonth, sal_Int16& rYear)
{
sal_Int32 nTempDays;
@@ -236,25 +236,25 @@ namespace dbtools
}
rDay = (sal_uInt16)nTempDays;
}
- //------------------------------------------------------------------------------
+
sal_Int32 DBTypeConversion::toDays(const utl::Date& _rVal, const utl::Date& _rNullDate)
{
return implRelativeToAbsoluteNull(_rVal) - implRelativeToAbsoluteNull(_rNullDate);
}
- //------------------------------------------------------------------------------
+
double DBTypeConversion::toDouble(const utl::Date& rVal, const utl::Date& _rNullDate)
{
return (double)toDays(rVal, _rNullDate);
}
- //------------------------------------------------------------------------------
+
double DBTypeConversion::toDouble(const utl::Time& rVal)
{
return (double)getNsFromTime(rVal) / fNanoSecondsPerDay;
}
- //------------------------------------------------------------------------------
+
double DBTypeConversion::toDouble(const utl::DateTime& _rVal, const utl::Date& _rNullDate)
{
sal_Int64 nTime = toDays(utl::Date(_rVal.Day, _rVal.Month, _rVal.Year), _rNullDate);
@@ -267,7 +267,7 @@ namespace dbtools
return ((double)nTime) + toDouble(aTimePart);
}
- // -------------------------------------------------------------------------
+
static void addDays(sal_Int32 nDays, utl::Date& _rDate)
{
sal_Int32 nTempDays = implRelativeToAbsoluteNull( _rDate );
@@ -288,7 +288,7 @@ namespace dbtools
else
implBuildFromRelative( nTempDays, _rDate.Day, _rDate.Month, _rDate.Year );
}
- // -----------------------------------------------------------------------
+
static void subDays( sal_Int32 nDays, utl::Date& _rDate )
{
sal_Int32 nTempDays = implRelativeToAbsoluteNull( _rDate );
@@ -309,7 +309,7 @@ namespace dbtools
else
implBuildFromRelative( nTempDays, _rDate.Day, _rDate.Month, _rDate.Year );
}
- // -------------------------------------------------------------------------
+
utl::Date DBTypeConversion::toDate(double dVal, const utl::Date& _rNullDate)
{
utl::Date aRet = _rNullDate;
@@ -322,7 +322,7 @@ namespace dbtools
return aRet;
}
- // -------------------------------------------------------------------------
+
utl::Time DBTypeConversion::toTime(double dVal, short nDigits)
{
sal_Int32 nDays = (sal_Int32)dVal;
@@ -370,7 +370,7 @@ namespace dbtools
}
return xRet;
}
- //------------------------------------------------------------------------------
+
utl::DateTime DBTypeConversion::toDateTime(double dVal, const utl::Date& _rNullDate)
{
utl::Date aDate = toDate(dVal, _rNullDate);
@@ -394,7 +394,7 @@ namespace dbtools
return xRet;
}
- //------------------------------------------------------------------------------
+
utl::Date DBTypeConversion::toDate(const OUString& _sSQLString)
{
// get the token out of a string
@@ -415,7 +415,7 @@ namespace dbtools
return utl::Date(nDay,nMonth,nYear);
}
- //-----------------------------------------------------------------------------
+
utl::DateTime DBTypeConversion::toDateTime(const OUString& _sSQLString)
{
//@see http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Timestamp.html#valueOf(java.lang.String)
@@ -439,7 +439,7 @@ namespace dbtools
aDate.Day, aDate.Month, aDate.Year, false);
}
- //-----------------------------------------------------------------------------
+
utl::Time DBTypeConversion::toTime(const OUString& _sSQLString)
{
utl::Time aTime;
diff --git a/connectivity/source/commontools/dbexception.cxx b/connectivity/source/commontools/dbexception.cxx
index 9e8dc91e7819..931c2cc45562 100644
--- a/connectivity/source/commontools/dbexception.cxx
+++ b/connectivity/source/commontools/dbexception.cxx
@@ -42,34 +42,34 @@ namespace dbtools
//==============================================================================
//= SQLExceptionInfo - encapsulating the type info of an SQLException-derived class
//==============================================================================
-//------------------------------------------------------------------------------
+
SQLExceptionInfo::SQLExceptionInfo()
:m_eType(UNDEFINED)
{
}
-//------------------------------------------------------------------------------
+
SQLExceptionInfo::SQLExceptionInfo(const ::com::sun::star::sdbc::SQLException& _rError)
{
m_aContent <<= _rError;
implDetermineType();
}
-//------------------------------------------------------------------------------
+
SQLExceptionInfo::SQLExceptionInfo(const ::com::sun::star::sdbc::SQLWarning& _rError)
{
m_aContent <<= _rError;
implDetermineType();
}
-//------------------------------------------------------------------------------
+
SQLExceptionInfo::SQLExceptionInfo(const ::com::sun::star::sdb::SQLContext& _rError)
{
m_aContent <<= _rError;
implDetermineType();
}
-//------------------------------------------------------------------------------
+
SQLExceptionInfo::SQLExceptionInfo( const OUString& _rSimpleErrorMessage )
{
SQLException aError;
@@ -78,14 +78,14 @@ SQLExceptionInfo::SQLExceptionInfo( const OUString& _rSimpleErrorMessage )
implDetermineType();
}
-//------------------------------------------------------------------------------
+
SQLExceptionInfo::SQLExceptionInfo(const SQLExceptionInfo& _rCopySource)
:m_aContent(_rCopySource.m_aContent)
,m_eType(_rCopySource.m_eType)
{
}
-//------------------------------------------------------------------------------
+
const SQLExceptionInfo& SQLExceptionInfo::operator=(const ::com::sun::star::sdbc::SQLException& _rError)
{
m_aContent <<= _rError;
@@ -93,7 +93,7 @@ const SQLExceptionInfo& SQLExceptionInfo::operator=(const ::com::sun::star::sdbc
return *this;
}
-//------------------------------------------------------------------------------
+
const SQLExceptionInfo& SQLExceptionInfo::operator=(const ::com::sun::star::sdbc::SQLWarning& _rError)
{
m_aContent <<= _rError;
@@ -101,7 +101,7 @@ const SQLExceptionInfo& SQLExceptionInfo::operator=(const ::com::sun::star::sdbc
return *this;
}
-//------------------------------------------------------------------------------
+
const SQLExceptionInfo& SQLExceptionInfo::operator=(const ::com::sun::star::sdb::SQLContext& _rError)
{
m_aContent <<= _rError;
@@ -109,7 +109,7 @@ const SQLExceptionInfo& SQLExceptionInfo::operator=(const ::com::sun::star::sdb:
return *this;
}
-//------------------------------------------------------------------------------
+
const SQLExceptionInfo& SQLExceptionInfo::operator=(const ::com::sun::star::sdb::SQLErrorEvent& _rErrorEvent)
{
m_aContent = _rErrorEvent.Reason;
@@ -117,7 +117,7 @@ const SQLExceptionInfo& SQLExceptionInfo::operator=(const ::com::sun::star::sdb:
return *this;
}
-//------------------------------------------------------------------------------
+
const SQLExceptionInfo& SQLExceptionInfo::operator=(const ::com::sun::star::uno::Any& _rCaughtSQLException)
{
m_aContent = _rCaughtSQLException;
@@ -125,7 +125,7 @@ const SQLExceptionInfo& SQLExceptionInfo::operator=(const ::com::sun::star::uno:
return *this;
}
-//------------------------------------------------------------------------------
+
SQLExceptionInfo::SQLExceptionInfo(const staruno::Any& _rError)
{
const staruno::Type& aSQLExceptionType = ::getCppuType(static_cast< ::com::sun::star::sdbc::SQLException*>(0));
@@ -137,7 +137,7 @@ SQLExceptionInfo::SQLExceptionInfo(const staruno::Any& _rError)
implDetermineType();
}
-//------------------------------------------------------------------------------
+
void SQLExceptionInfo::implDetermineType()
{
const Type& aSQLExceptionType = ::getCppuType( static_cast< SQLException* >( 0 ) );
@@ -157,7 +157,7 @@ void SQLExceptionInfo::implDetermineType()
}
}
-//------------------------------------------------------------------------------
+
sal_Bool SQLExceptionInfo::isKindOf(TYPE _eType) const
{
switch (_eType)
@@ -174,28 +174,28 @@ sal_Bool SQLExceptionInfo::isKindOf(TYPE _eType) const
return sal_False;
}
-//------------------------------------------------------------------------------
+
SQLExceptionInfo::operator const ::com::sun::star::sdbc::SQLException*() const
{
OSL_ENSURE(isKindOf(SQL_EXCEPTION), "SQLExceptionInfo::operator SQLException* : invalid call !");
return reinterpret_cast<const ::com::sun::star::sdbc::SQLException*>(m_aContent.getValue());
}
-//------------------------------------------------------------------------------
+
SQLExceptionInfo::operator const ::com::sun::star::sdbc::SQLWarning*() const
{
OSL_ENSURE(isKindOf(SQL_WARNING), "SQLExceptionInfo::operator SQLException* : invalid call !");
return reinterpret_cast<const ::com::sun::star::sdbc::SQLWarning*>(m_aContent.getValue());
}
-//------------------------------------------------------------------------------
+
SQLExceptionInfo::operator const ::com::sun::star::sdb::SQLContext*() const
{
OSL_ENSURE(isKindOf(SQL_CONTEXT), "SQLExceptionInfo::operator SQLException* : invalid call !");
return reinterpret_cast<const ::com::sun::star::sdb::SQLContext*>(m_aContent.getValue());
}
-//------------------------------------------------------------------------------
+
void SQLExceptionInfo::prepend( const OUString& _rErrorMessage, const OUString& _rSQLState, const sal_Int32 _nErrorCode )
{
SQLException aException;
@@ -208,7 +208,7 @@ void SQLExceptionInfo::prepend( const OUString& _rErrorMessage, const OUString&
m_eType = SQL_EXCEPTION;
}
-//------------------------------------------------------------------------------
+
void SQLExceptionInfo::append( TYPE _eType, const OUString& _rErrorMessage, const OUString& _rSQLState, const sal_Int32 _nErrorCode )
{
// create the to-be-appended exception
@@ -254,7 +254,7 @@ void SQLExceptionInfo::append( TYPE _eType, const OUString& _rErrorMessage, cons
}
}
-//------------------------------------------------------------------------------
+
void SQLExceptionInfo::doThrow()
{
if ( m_aContent.getValueTypeClass() == TypeClass_EXCEPTION )
@@ -266,7 +266,7 @@ void SQLExceptionInfo::doThrow()
//= SQLExceptionIteratorHelper
//==============================================================================
-//------------------------------------------------------------------------------
+
SQLExceptionIteratorHelper::SQLExceptionIteratorHelper( const SQLExceptionInfo& _rChainStart )
:m_pCurrent( NULL )
,m_eCurrentType( SQLExceptionInfo::UNDEFINED )
@@ -278,14 +278,14 @@ SQLExceptionIteratorHelper::SQLExceptionIteratorHelper( const SQLExceptionInfo&
}
}
-//------------------------------------------------------------------------------
+
SQLExceptionIteratorHelper::SQLExceptionIteratorHelper( const ::com::sun::star::sdbc::SQLException& _rChainStart )
:m_pCurrent( &_rChainStart )
,m_eCurrentType( SQLExceptionInfo::SQL_EXCEPTION )
{
}
-//------------------------------------------------------------------------------
+
void SQLExceptionIteratorHelper::current( SQLExceptionInfo& _out_rInfo ) const
{
switch ( m_eCurrentType )
@@ -308,7 +308,7 @@ void SQLExceptionIteratorHelper::current( SQLExceptionInfo& _out_rInfo ) const
}
}
-//------------------------------------------------------------------------------
+
const ::com::sun::star::sdbc::SQLException* SQLExceptionIteratorHelper::next()
{
OSL_ENSURE( hasMoreElements(), "SQLExceptionIteratorHelper::next : invalid call (please use hasMoreElements)!" );
@@ -351,14 +351,14 @@ const ::com::sun::star::sdbc::SQLException* SQLExceptionIteratorHelper::next()
return pReturn;
}
-//------------------------------------------------------------------------------
+
void SQLExceptionIteratorHelper::next( SQLExceptionInfo& _out_rInfo )
{
current( _out_rInfo );
next();
}
-//------------------------------------------------------------
+
void throwFunctionSequenceException(const Reference< XInterface >& _Context, const Any& _Next) throw ( ::com::sun::star::sdbc::SQLException )
{
::connectivity::SharedResources aResources;
@@ -370,7 +370,7 @@ void throwFunctionSequenceException(const Reference< XInterface >& _Context, con
_Next
);
}
-// -----------------------------------------------------------------------------
+
void throwInvalidIndexException(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _Context,
const ::com::sun::star::uno::Any& _Next) throw ( ::com::sun::star::sdbc::SQLException )
{
@@ -383,7 +383,7 @@ void throwInvalidIndexException(const ::com::sun::star::uno::Reference< ::com::s
_Next
);
}
-// -----------------------------------------------------------------------------
+
void throwFunctionNotSupportedException( const OUString& _rFunctionName, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxContext,
const ::com::sun::star::uno::Any& _rNextException ) throw ( ::com::sun::star::sdbc::SQLException )
{
@@ -400,21 +400,21 @@ void throwFunctionNotSupportedException( const OUString& _rFunctionName, const :
_rNextException
);
}
-// -----------------------------------------------------------------------------
+
void throwGenericSQLException(const OUString& _rMsg, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxSource)
throw (::com::sun::star::sdbc::SQLException)
{
throwGenericSQLException(_rMsg, _rxSource, Any());
}
-// -----------------------------------------------------------------------------
+
void throwGenericSQLException(const OUString& _rMsg, const Reference< XInterface >& _rxSource, const Any& _rNextException)
throw (SQLException)
{
throw SQLException( _rMsg, _rxSource, getStandardSQLState( SQL_GENERAL_ERROR ), 0, _rNextException);
}
-// -----------------------------------------------------------------------------
+
void throwFeatureNotImplementedException( const OUString& _rFeatureName, const Reference< XInterface >& _rxContext, const Any* _pNextException )
throw (SQLException)
{
@@ -442,7 +442,7 @@ void throwInvalidColumnException( const OUString& _rColumnName, const Reference<
"$columnname$",_rColumnName) );
throwSQLException( sErrorMessage, SQL_COLUMN_NOT_FOUND, _rxContext );
}
-// -----------------------------------------------------------------------------
+
void throwSQLException( const OUString& _rMessage, const OUString& _rSQLState,
const Reference< XInterface >& _rxContext, const sal_Int32 _nErrorCode, const Any* _pNextException ) throw (SQLException)
{
@@ -455,7 +455,7 @@ void throwSQLException( const OUString& _rMessage, const OUString& _rSQLState,
);
}
-// -----------------------------------------------------------------------------
+
void throwSQLException( const OUString& _rMessage, StandardSQLState _eSQLState,
const Reference< XInterface >& _rxContext, const sal_Int32 _nErrorCode,
const Any* _pNextException ) throw (SQLException)
@@ -463,7 +463,7 @@ void throwSQLException( const OUString& _rMessage, StandardSQLState _eSQLState,
throwSQLException( _rMessage, getStandardSQLState( _eSQLState ), _rxContext, _nErrorCode, _pNextException );
}
-// -----------------------------------------------------------------------------
+
OUString getStandardSQLState( StandardSQLState _eState )
{
switch ( _eState )
@@ -495,7 +495,7 @@ OUString getStandardSQLState( StandardSQLState _eState )
throw RuntimeException();
}
-// -----------------------------------------------------------------------------
+
//.........................................................................
} // namespace dbtools
//.........................................................................
diff --git a/connectivity/source/commontools/dbmetadata.cxx b/connectivity/source/commontools/dbmetadata.cxx
index 86527aa6ea98..dad2ceb77424 100644
--- a/connectivity/source/commontools/dbmetadata.cxx
+++ b/connectivity/source/commontools/dbmetadata.cxx
@@ -94,7 +94,7 @@ namespace dbtools
}
};
- //--------------------------------------------------------------------
+
namespace
{
//................................................................
@@ -183,26 +183,26 @@ namespace dbtools
//====================================================================
//= DatabaseMetaData
//====================================================================
- //--------------------------------------------------------------------
+
DatabaseMetaData::DatabaseMetaData()
:m_pImpl( new DatabaseMetaData_Impl )
{
}
- //--------------------------------------------------------------------
+
DatabaseMetaData::DatabaseMetaData( const Reference< XConnection >& _connection )
:m_pImpl( new DatabaseMetaData_Impl )
{
lcl_construct( *m_pImpl, _connection );
}
- //--------------------------------------------------------------------
+
DatabaseMetaData::DatabaseMetaData( const DatabaseMetaData& _copyFrom )
:m_pImpl( new DatabaseMetaData_Impl( *_copyFrom.m_pImpl ) )
{
}
- //--------------------------------------------------------------------
+
DatabaseMetaData& DatabaseMetaData::operator=( const DatabaseMetaData& _copyFrom )
{
if ( this == &_copyFrom )
@@ -212,18 +212,18 @@ namespace dbtools
return *this;
}
- //--------------------------------------------------------------------
+
DatabaseMetaData::~DatabaseMetaData()
{
}
- //--------------------------------------------------------------------
+
bool DatabaseMetaData::isConnected() const
{
return m_pImpl->xConnection.is();
}
- //--------------------------------------------------------------------
+
bool DatabaseMetaData::supportsSubqueriesInFrom() const
{
lcl_checkConnected( *m_pImpl );
@@ -243,7 +243,7 @@ namespace dbtools
return supportsSubQueries;
}
- //--------------------------------------------------------------------
+
bool DatabaseMetaData::supportsPrimaryKeys() const
{
lcl_checkConnected( *m_pImpl );
@@ -264,19 +264,19 @@ namespace dbtools
return doesSupportPrimaryKeys;
}
- //--------------------------------------------------------------------
+
const OUString& DatabaseMetaData::getIdentifierQuoteString() const
{
return lcl_getConnectionStringSetting( *m_pImpl, m_pImpl->sCachedIdentifierQuoteString, &XDatabaseMetaData::getIdentifierQuoteString );
}
- //--------------------------------------------------------------------
+
const OUString& DatabaseMetaData::getCatalogSeparator() const
{
return lcl_getConnectionStringSetting( *m_pImpl, m_pImpl->sCachedCatalogSeparator, &XDatabaseMetaData::getCatalogSeparator );
}
- //--------------------------------------------------------------------
+
bool DatabaseMetaData::restrictIdentifiersToSQL92() const
{
lcl_checkConnected( *m_pImpl );
@@ -288,7 +288,7 @@ namespace dbtools
return restrict;
}
- //--------------------------------------------------------------------
+
bool DatabaseMetaData::generateASBeforeCorrelationName() const
{
bool doGenerate( true );
@@ -297,7 +297,7 @@ namespace dbtools
OSL_VERIFY( setting >>= doGenerate );
return doGenerate;
}
- //--------------------------------------------------------------------
+
bool DatabaseMetaData::shouldEscapeDateTime() const
{
bool doGenerate( true );
@@ -306,7 +306,7 @@ namespace dbtools
OSL_VERIFY( setting >>= doGenerate );
return doGenerate;
}
- //--------------------------------------------------------------------
+
bool DatabaseMetaData::isAutoIncrementPrimaryKey() const
{
bool is( true );
@@ -315,7 +315,7 @@ namespace dbtools
OSL_VERIFY( setting >>= is );
return is;
}
- //--------------------------------------------------------------------
+
sal_Int32 DatabaseMetaData::getBooleanComparisonMode() const
{
sal_Int32 mode( BooleanComparisonMode::EQUAL_INTEGER );
@@ -324,7 +324,7 @@ namespace dbtools
OSL_VERIFY( setting >>= mode );
return mode;
}
- //--------------------------------------------------------------------
+
bool DatabaseMetaData::supportsRelations() const
{
lcl_checkConnected( *m_pImpl );
@@ -353,7 +353,7 @@ namespace dbtools
return bSupport;
}
- //--------------------------------------------------------------------
+
bool DatabaseMetaData::supportsColumnAliasInOrderBy() const
{
bool doGenerate( true );
@@ -363,7 +363,7 @@ namespace dbtools
return doGenerate;
}
- //--------------------------------------------------------------------
+
bool DatabaseMetaData::supportsUserAdministration( const Reference<XComponentContext>& _rContext ) const
{
lcl_checkConnected( *m_pImpl );
@@ -392,7 +392,7 @@ namespace dbtools
return isSupported;
}
- //--------------------------------------------------------------------
+
bool DatabaseMetaData::displayEmptyTableFolders() const
{
bool doDisplay( true );
@@ -414,7 +414,7 @@ namespace dbtools
#endif
return doDisplay;
}
- //--------------------------------------------------------------------
+
bool DatabaseMetaData::supportsThreads() const
{
bool bSupported( true );
diff --git a/connectivity/source/commontools/dbtools2.cxx b/connectivity/source/commontools/dbtools2.cxx
index 7f73de093a97..65f103961826 100644
--- a/connectivity/source/commontools/dbtools2.cxx
+++ b/connectivity/source/commontools/dbtools2.cxx
@@ -202,7 +202,7 @@ OUString createStandardColumnPart(const Reference< XPropertySet >& xColProp,cons
return aSql.makeStringAndClear();
}
-// -----------------------------------------------------------------------------
+
OUString createStandardCreateStatement(const Reference< XPropertySet >& descriptor,const Reference< XConnection>& _xConnection,ISQLStatementHelper* _pHelper,const OUString& _sCreatePattern)
{
@@ -266,7 +266,7 @@ namespace
return sSql;
}
}
-// -----------------------------------------------------------------------------
+
OUString createStandardKeyStatement(const Reference< XPropertySet >& descriptor,const Reference< XConnection>& _xConnection)
{
Reference<XDatabaseMetaData> xMetaData = _xConnection->getMetaData();
@@ -372,7 +372,7 @@ OUString createStandardKeyStatement(const Reference< XPropertySet >& descriptor,
return aSql.makeStringAndClear();
}
-// -----------------------------------------------------------------------------
+
OUString createSqlCreateTableStatement( const Reference< XPropertySet >& descriptor,
const Reference< XConnection>& _xConnection,
ISQLStatementHelper* _pHelper,
@@ -507,7 +507,7 @@ namespace
return xProp;
}
- //------------------------------------------------------------------
+
Reference< XModel> lcl_getXModel(const Reference< XInterface>& _xIface)
{
Reference< XInterface > xParent = _xIface;
@@ -521,7 +521,7 @@ namespace
return xModel;
}
}
-// -----------------------------------------------------------------------------
+
Reference<XPropertySet> createSDBCXColumn(const Reference<XPropertySet>& _xTable,
const Reference<XConnection>& _xConnection,
const OUString& _rName,
@@ -573,7 +573,7 @@ Reference<XPropertySet> createSDBCXColumn(const Reference<XPropertySet>& _xTable
return xProp;
}
-// -----------------------------------------------------------------------------
+
bool getBooleanDataSourceSetting( const Reference< XConnection >& _rxConnection, const sal_Char* _pAsciiSettingName )
{
bool bValue( false );
@@ -596,7 +596,7 @@ bool getBooleanDataSourceSetting( const Reference< XConnection >& _rxConnection,
}
return bValue;
}
-// -------------------------------------------------------------------------
+
bool getDataSourceSetting( const Reference< XInterface >& _xChild, const OUString& _sAsciiSettingsName,
Any& /* [out] */ _rSettingsValue )
{
@@ -621,14 +621,14 @@ bool getDataSourceSetting( const Reference< XInterface >& _xChild, const OUStrin
}
return bIsPresent;
}
-// -------------------------------------------------------------------------
+
bool getDataSourceSetting( const Reference< XInterface >& _rxDataSource, const sal_Char* _pAsciiSettingsName,
Any& /* [out] */ _rSettingsValue )
{
OUString sAsciiSettingsName = OUString::createFromAscii(_pAsciiSettingsName);
return getDataSourceSetting( _rxDataSource, sAsciiSettingsName,_rSettingsValue );
}
-// -----------------------------------------------------------------------------
+
sal_Bool isDataSourcePropertyEnabled(const Reference<XInterface>& _xProp,const OUString& _sProperty,sal_Bool _bDefault)
{
sal_Bool bEnabled = _bDefault;
@@ -652,7 +652,7 @@ sal_Bool isDataSourcePropertyEnabled(const Reference<XInterface>& _xProp,const O
}
return bEnabled;
}
-// -----------------------------------------------------------------------------
+
Reference< XTablesSupplier> getDataDefinitionByURLAndConnection(
const OUString& _rsUrl,
const Reference< XConnection>& _xConnection,
@@ -677,7 +677,7 @@ Reference< XTablesSupplier> getDataDefinitionByURLAndConnection(
return xTablesSup;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 getTablePrivileges(const Reference< XDatabaseMetaData>& _xMetaData,
const OUString& _sCatalog,
const OUString& _sSchema,
@@ -817,7 +817,7 @@ sal_Int32 getTablePrivileges(const Reference< XDatabaseMetaData>& _xMetaData,
}
return nPrivileges;
}
-// -----------------------------------------------------------------------------
+
// we need some more information about the column
void collectColumnInformation(const Reference< XConnection>& _xConnection,
const OUString& _sComposedName,
@@ -851,7 +851,7 @@ void collectColumnInformation(const Reference< XConnection>& _xConnection,
}
}
-// -----------------------------------------------------------------------------
+
bool isEmbeddedInDatabase( const Reference< XInterface >& _rxComponent, Reference< XConnection >& _rxActualConnection )
{
bool bIsEmbedded = false;
@@ -893,7 +893,7 @@ bool isEmbeddedInDatabase( const Reference< XInterface >& _rxComponent, Referenc
}
return bIsEmbedded;
}
-// -----------------------------------------------------------------------------
+
namespace
{
OUString lcl_getEncodingName( rtl_TextEncoding _eEncoding )
@@ -910,7 +910,7 @@ namespace
}
}
-// -----------------------------------------------------------------------------
+
sal_Int32 DBTypeConversion::convertUnicodeString( const OUString& _rSource, OString& _rDest, rtl_TextEncoding _eEncoding ) SAL_THROW((com::sun::star::sdbc::SQLException))
{
if ( !rtl_convertUStringToString( &_rDest.pData, _rSource.getStr(), _rSource.getLength(),
@@ -939,7 +939,7 @@ sal_Int32 DBTypeConversion::convertUnicodeString( const OUString& _rSource, OStr
return _rDest.getLength();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 DBTypeConversion::convertUnicodeStringToLength( const OUString& _rSource, OString& _rDest,
sal_Int32 _nMaxLen, rtl_TextEncoding _eEncoding ) SAL_THROW((SQLException))
{
@@ -969,19 +969,19 @@ OUString lcl_getReportEngines()
static OUString s_sNodeName("org.openoffice.Office.DataAccess/ReportEngines");
return s_sNodeName;
}
-// -----------------------------------------------------------------------------
+
OUString lcl_getDefaultReportEngine()
{
static OUString s_sNodeName("DefaultReportEngine");
return s_sNodeName;
}
-// -----------------------------------------------------------------------------
+
OUString lcl_getReportEngineNames()
{
static OUString s_sNodeName("ReportEngineNames");
return s_sNodeName;
}
-// -----------------------------------------------------------------------------
+
OUString getDefaultReportEngineServiceName(const Reference< XComponentContext >& _rxORB)
{
::utl::OConfigurationTreeRoot aReportEngines = ::utl::OConfigurationTreeRoot::createWithComponentContext(
@@ -1013,7 +1013,7 @@ OUString getDefaultReportEngineServiceName(const Reference< XComponentContext >&
return OUString("org.libreoffice.report.pentaho.SOReportJobFactory");
return OUString();
}
-// -----------------------------------------------------------------------------
+
//.........................................................................
} // namespace dbtools
//.........................................................................
diff --git a/connectivity/source/commontools/filtermanager.cxx b/connectivity/source/commontools/filtermanager.cxx
index e8a4a2ddd4a4..3612ef8a3940 100644
--- a/connectivity/source/commontools/filtermanager.cxx
+++ b/connectivity/source/commontools/filtermanager.cxx
@@ -41,14 +41,14 @@ namespace dbtools
//====================================================================
//= FilterManager
//====================================================================
- //--------------------------------------------------------------------
+
FilterManager::FilterManager( )
:m_aFilterComponents( FC_COMPONENT_COUNT )
,m_bApplyPublicFilter( true )
{
}
- //--------------------------------------------------------------------
+
void FilterManager::initialize( const Reference< XPropertySet >& _rxComponentAggregate )
{
m_xComponentAggregate = _rxComponentAggregate;
@@ -58,19 +58,19 @@ namespace dbtools
m_xComponentAggregate->setPropertyValue( OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_APPLYFILTER), makeAny( (sal_Bool)sal_True ) );
}
- //--------------------------------------------------------------------
+
void FilterManager::dispose( )
{
m_xComponentAggregate.clear();
}
- //--------------------------------------------------------------------
+
const OUString& FilterManager::getFilterComponent( FilterComponent _eWhich ) const
{
return m_aFilterComponents[ _eWhich ];
}
- //--------------------------------------------------------------------
+
void FilterManager::setFilterComponent( FilterComponent _eWhich, const OUString& _rComponent )
{
m_aFilterComponents[ _eWhich ] = _rComponent;
@@ -85,7 +85,7 @@ namespace dbtools
}
}
- //--------------------------------------------------------------------
+
void FilterManager::setApplyPublicFilter( sal_Bool _bApply )
{
if ( m_bApplyPublicFilter == _bApply )
@@ -106,7 +106,7 @@ namespace dbtools
}
}
- //--------------------------------------------------------------------
+
void FilterManager::appendFilterComponent( OUStringBuffer& io_appendTo, const OUString& i_component ) const
{
if ( !io_appendTo.isEmpty() )
@@ -121,7 +121,7 @@ namespace dbtools
io_appendTo.appendAscii( " )" );
}
- //--------------------------------------------------------------------
+
bool FilterManager::isThereAtMostOneComponent( OUStringBuffer& o_singleComponent ) const
{
sal_Int32 nOnlyNonEmpty = -1;
@@ -152,7 +152,7 @@ namespace dbtools
return false;
}
- //--------------------------------------------------------------------
+
OUString FilterManager::getComposedFilter( ) const
{
OUStringBuffer aComposedFilter;
diff --git a/connectivity/source/commontools/formattedcolumnvalue.cxx b/connectivity/source/commontools/formattedcolumnvalue.cxx
index 5c89a7117a7f..393414095f80 100644
--- a/connectivity/source/commontools/formattedcolumnvalue.cxx
+++ b/connectivity/source/commontools/formattedcolumnvalue.cxx
@@ -94,7 +94,7 @@ namespace dbtools
}
};
- //--------------------------------------------------------------------
+
namespace
{
//................................................................
@@ -214,7 +214,7 @@ namespace dbtools
//====================================================================
//= FormattedColumnValue
//====================================================================
- //--------------------------------------------------------------------
+
FormattedColumnValue::FormattedColumnValue( const Reference< XComponentContext >& _rxContext,
const Reference< XRowSet >& _rxRowSet, const Reference< XPropertySet >& i_rColumn )
:m_pData( new FormattedColumnValue_Data )
@@ -222,7 +222,7 @@ namespace dbtools
lcl_initColumnDataValue_nothrow( _rxContext, *m_pData, _rxRowSet, i_rColumn );
}
- //--------------------------------------------------------------------
+
FormattedColumnValue::FormattedColumnValue( const Reference< XNumberFormatter >& i_rNumberFormatter,
const Reference< XPropertySet >& _rxColumn )
:m_pData( new FormattedColumnValue_Data )
@@ -230,49 +230,49 @@ namespace dbtools
lcl_initColumnDataValue_nothrow( *m_pData, i_rNumberFormatter, _rxColumn );
}
- //--------------------------------------------------------------------
+
void FormattedColumnValue::clear()
{
lcl_clear_nothrow( *m_pData );
}
- //--------------------------------------------------------------------
+
FormattedColumnValue::~FormattedColumnValue()
{
clear();
}
- //--------------------------------------------------------------------
+
sal_Int32 FormattedColumnValue::getFormatKey() const
{
return m_pData->m_nFormatKey;
}
- //--------------------------------------------------------------------
+
sal_Int32 FormattedColumnValue::getFieldType() const
{
return m_pData->m_nFieldType;
}
- //--------------------------------------------------------------------
+
sal_Int16 FormattedColumnValue::getKeyType() const
{
return m_pData->m_nKeyType;
}
- //--------------------------------------------------------------------
+
const Reference< XColumn >& FormattedColumnValue::getColumn() const
{
return m_pData->m_xColumn;
}
- //--------------------------------------------------------------------
+
const Reference< XColumnUpdate >& FormattedColumnValue::getColumnUpdate() const
{
return m_pData->m_xColumnUpdate;
}
- //--------------------------------------------------------------------
+
bool FormattedColumnValue::setFormattedValue( const OUString& _rFormattedStringValue ) const
{
OSL_PRECOND( m_pData->m_xColumnUpdate.is(), "FormattedColumnValue::setFormattedValue: no column!" );
@@ -299,7 +299,7 @@ namespace dbtools
return true;
}
- //--------------------------------------------------------------------
+
OUString FormattedColumnValue::getFormattedValue() const
{
OSL_PRECOND( m_pData->m_xColumn.is(), "FormattedColumnValue::setFormattedValue: no column!" );
diff --git a/connectivity/source/commontools/parameters.cxx b/connectivity/source/commontools/parameters.cxx
index 9ecb37275a9c..48becea7eaba 100644
--- a/connectivity/source/commontools/parameters.cxx
+++ b/connectivity/source/commontools/parameters.cxx
@@ -62,7 +62,7 @@ namespace dbtools
//====================================================================
//= ParameterManager
//====================================================================
- //--------------------------------------------------------------------
+
ParameterManager::ParameterManager( ::osl::Mutex& _rMutex, const Reference< XComponentContext >& _rxContext )
:m_rMutex ( _rMutex )
,m_aParameterListeners( _rMutex )
@@ -74,7 +74,7 @@ namespace dbtools
OSL_ENSURE( m_xContext.is(), "ParameterManager::ParameterManager: no service factory!" );
}
- //--------------------------------------------------------------------
+
void ParameterManager::initialize( const Reference< XPropertySet >& _rxComponent, const Reference< XAggregation >& _rxComponentAggregate )
{
OSL_ENSURE( !m_xComponent.get().is(), "ParameterManager::initialize: already initialized!" );
@@ -88,7 +88,7 @@ namespace dbtools
return;
}
- //--------------------------------------------------------------------
+
void ParameterManager::dispose( )
{
clearAllParameterInformation();
@@ -100,7 +100,7 @@ namespace dbtools
m_xAggregatedRowSet.clear();
}
- //--------------------------------------------------------------------
+
void ParameterManager::clearAllParameterInformation()
{
m_xInnerParamColumns.clear();
@@ -118,12 +118,12 @@ namespace dbtools
m_bUpToDate = false;
}
- //--------------------------------------------------------------------
+
void ParameterManager::disposing( const EventObject& /*_rDisposingEvent*/ )
{
}
- //--------------------------------------------------------------------
+
void ParameterManager::setAllParametersNull() SAL_THROW( ( SQLException, RuntimeException ) )
{
OSL_PRECOND( isAlive(), "ParameterManager::setAllParametersNull: not initialized, or already disposed!" );
@@ -134,7 +134,7 @@ namespace dbtools
m_xInnerParamUpdate->setNull( i, DataType::VARCHAR );
}
- //--------------------------------------------------------------------
+
bool ParameterManager::initializeComposerByComponent( const Reference< XPropertySet >& _rxComponent )
{
OSL_PRECOND( _rxComponent.is(), "ParameterManager::initializeComposerByComponent: invalid !" );
@@ -164,7 +164,7 @@ namespace dbtools
return m_xInnerParamColumns.is();
}
- //--------------------------------------------------------------------
+
void ParameterManager::collectInnerParameters( bool _bSecondRun )
{
OSL_PRECOND( m_xInnerParamColumns.is(), "ParameterManager::collectInnerParameters: missing some internal data!" );
@@ -219,7 +219,7 @@ namespace dbtools
}
}
- //--------------------------------------------------------------------
+
OUString ParameterManager::createFilterConditionFromColumnLink(
const OUString& _rMasterColumn, const OUString& _rDetailLink, OUString& _rNewParamName )
{
@@ -241,7 +241,7 @@ namespace dbtools
return sFilter += _rNewParamName;
}
- //--------------------------------------------------------------------
+
void ParameterManager::classifyLinks( const Reference< XNameAccess >& _rxParentColumns,
const Reference< XNameAccess >& _rxColumns, ::std::vector< OUString >& _out_rAdditionalFilterComponents ) SAL_THROW(( Exception ))
{
@@ -334,7 +334,7 @@ namespace dbtools
}
}
- //--------------------------------------------------------------------
+
void ParameterManager::analyzeFieldLinks( FilterManager& _rFilterManager, bool& /* [out] */ _rColumnsInLinkDetails )
{
OSL_PRECOND( isAlive(), "ParameterManager::analyzeFieldLinks: not initialized, or already disposed!" );
@@ -408,7 +408,7 @@ namespace dbtools
}
}
- //--------------------------------------------------------------------
+
void ParameterManager::createOuterParameters()
{
OSL_PRECOND( !m_pOuterParameters.is(), "ParameterManager::createOuterParameters: outer parameters not initialized!" );
@@ -481,7 +481,7 @@ namespace dbtools
#endif
}
- //--------------------------------------------------------------------
+
void ParameterManager::updateParameterInfo( FilterManager& _rFilterManager )
{
OSL_PRECOND( isAlive(), "ParameterManager::updateParameterInfo: not initialized, or already disposed!" );
@@ -535,7 +535,7 @@ namespace dbtools
m_bUpToDate = true;
}
- //--------------------------------------------------------------------
+
void ParameterManager::fillLinkedParameters( const Reference< XNameAccess >& _rxParentColumns )
{
OSL_PRECOND( isAlive(), "ParameterManager::fillLinkedParameters: not initialized, or already disposed!" );
@@ -621,7 +621,7 @@ namespace dbtools
}
}
- //--------------------------------------------------------------------
+
bool ParameterManager::completeParameters( const Reference< XInteractionHandler >& _rxCompletionHandler, const Reference< XConnection > _rxConnection )
{
OSL_PRECOND( isAlive(), "ParameterManager::completeParameters: not initialized, or already disposed!" );
@@ -684,7 +684,7 @@ namespace dbtools
return true;
}
- //--------------------------------------------------------------------
+
bool ParameterManager::consultParameterListeners( ::osl::ResettableMutexGuard& _rClearForNotifies )
{
bool bCanceled = false;
@@ -707,7 +707,7 @@ namespace dbtools
return !bCanceled;
}
- //--------------------------------------------------------------------
+
bool ParameterManager::fillParameterValues( const Reference< XInteractionHandler >& _rxCompletionHandler, ::osl::ResettableMutexGuard& _rClearForNotifies )
{
OSL_PRECOND( isAlive(), "ParameterManager::fillParameterValues: not initialized, or already disposed!" );
@@ -733,7 +733,7 @@ namespace dbtools
return consultParameterListeners( _rClearForNotifies );
}
- //--------------------------------------------------------------------
+
bool ParameterManager::getConnection( Reference< XConnection >& /* [out] */ _rxConnection )
{
OSL_PRECOND( isAlive(), "ParameterManager::getConnection: not initialized, or already disposed!" );
@@ -755,7 +755,7 @@ namespace dbtools
return _rxConnection.is();
}
- //--------------------------------------------------------------------
+
void ParameterManager::cacheConnectionInfo() SAL_THROW(( ))
{
try
@@ -777,7 +777,7 @@ namespace dbtools
}
}
- //--------------------------------------------------------------------
+
bool ParameterManager::getColumns( Reference< XNameAccess >& /* [out] */ _rxColumns, bool _bFromComposer ) SAL_THROW(( Exception ))
{
_rxColumns.clear();
@@ -794,7 +794,7 @@ namespace dbtools
return _rxColumns.is();
}
- //--------------------------------------------------------------------
+
bool ParameterManager::getParentColumns( Reference< XNameAccess >& /* [out] */ _out_rxParentColumns, bool _bFromComposer )
{
OSL_PRECOND( isAlive(), "ParameterManager::getParentColumns: not initialized, or already disposed!" );
@@ -834,20 +834,20 @@ namespace dbtools
return _out_rxParentColumns.is();
}
- //--------------------------------------------------------------------
+
void ParameterManager::addParameterListener( const Reference< XDatabaseParameterListener >& _rxListener )
{
if ( _rxListener.is() )
m_aParameterListeners.addInterface( _rxListener );
}
- //--------------------------------------------------------------------
+
void ParameterManager::removeParameterListener( const Reference< XDatabaseParameterListener >& _rxListener )
{
m_aParameterListeners.removeInterface( _rxListener );
}
- //--------------------------------------------------------------------
+
void ParameterManager::resetParameterValues( ) SAL_THROW(())
{
OSL_PRECOND( isAlive(), "ParameterManager::resetParameterValues: not initialized, or already disposed!" );
@@ -933,7 +933,7 @@ namespace dbtools
}
- //--------------------------------------------------------------------
+
void ParameterManager::externalParameterVisited( sal_Int32 _nIndex )
{
if ( m_aParametersVisited.size() < (size_t)_nIndex )
@@ -953,139 +953,139 @@ namespace dbtools
m_xInnerParamUpdate->method; \
externalParameterVisited( _nIndex ) \
- //--------------------------------------------------------------------
+
void ParameterManager::setNull( sal_Int32 _nIndex, sal_Int32 sqlType )
{
VISIT_PARAMETER( setNull( _nIndex, sqlType ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setObjectNull( sal_Int32 _nIndex, sal_Int32 sqlType, const OUString& typeName )
{
VISIT_PARAMETER( setObjectNull( _nIndex, sqlType, typeName ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setBoolean( sal_Int32 _nIndex, sal_Bool x )
{
VISIT_PARAMETER( setBoolean( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setByte( sal_Int32 _nIndex, sal_Int8 x )
{
VISIT_PARAMETER( setByte( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setShort( sal_Int32 _nIndex, sal_Int16 x )
{
VISIT_PARAMETER( setShort( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setInt( sal_Int32 _nIndex, sal_Int32 x )
{
VISIT_PARAMETER( setInt( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setLong( sal_Int32 _nIndex, sal_Int64 x )
{
VISIT_PARAMETER( setLong( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setFloat( sal_Int32 _nIndex, float x )
{
VISIT_PARAMETER( setFloat( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setDouble( sal_Int32 _nIndex, double x )
{
VISIT_PARAMETER( setDouble( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setString( sal_Int32 _nIndex, const OUString& x )
{
VISIT_PARAMETER( setString( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setBytes( sal_Int32 _nIndex, const ::com::sun::star::uno::Sequence< sal_Int8 >& x )
{
VISIT_PARAMETER( setBytes( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setDate( sal_Int32 _nIndex, const ::com::sun::star::util::Date& x )
{
VISIT_PARAMETER( setDate( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setTime( sal_Int32 _nIndex, const ::com::sun::star::util::Time& x )
{
VISIT_PARAMETER( setTime( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setTimestamp( sal_Int32 _nIndex, const ::com::sun::star::util::DateTime& x )
{
VISIT_PARAMETER( setTimestamp( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setBinaryStream( sal_Int32 _nIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream>& x, sal_Int32 length )
{
VISIT_PARAMETER( setBinaryStream( _nIndex, x, length ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setCharacterStream( sal_Int32 _nIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream>& x, sal_Int32 length )
{
VISIT_PARAMETER( setCharacterStream( _nIndex, x, length ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setObject( sal_Int32 _nIndex, const ::com::sun::star::uno::Any& x )
{
VISIT_PARAMETER( setObject( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setObjectWithInfo( sal_Int32 _nIndex, const ::com::sun::star::uno::Any& x, sal_Int32 targetSqlType, sal_Int32 scale )
{
VISIT_PARAMETER( setObjectWithInfo( _nIndex, x, targetSqlType, scale ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setRef( sal_Int32 _nIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRef>& x )
{
VISIT_PARAMETER( setRef( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setBlob( sal_Int32 _nIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XBlob>& x )
{
VISIT_PARAMETER( setBlob( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setClob( sal_Int32 _nIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XClob>& x )
{
VISIT_PARAMETER( setClob( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::setArray( sal_Int32 _nIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XArray>& x )
{
VISIT_PARAMETER( setArray( _nIndex, x ) );
}
- //--------------------------------------------------------------------
+
void ParameterManager::clearParameters( )
{
if ( m_xInnerParamUpdate.is() )
@@ -1095,7 +1095,7 @@ namespace dbtools
//====================================================================
//= OParameterContinuation
//====================================================================
- //--------------------------------------------------------------------
+
void SAL_CALL OParameterContinuation::setParameters( const Sequence< PropertyValue >& _rValues ) throw( RuntimeException )
{
m_aValues = _rValues;
diff --git a/connectivity/source/commontools/paramwrapper.cxx b/connectivity/source/commontools/paramwrapper.cxx
index f928945c5811..f8289fe5de2a 100644
--- a/connectivity/source/commontools/paramwrapper.cxx
+++ b/connectivity/source/commontools/paramwrapper.cxx
@@ -65,7 +65,7 @@ namespace param
//====================================================================
//= ParameterWrapper
//====================================================================
- //--------------------------------------------------------------------
+
ParameterWrapper::ParameterWrapper( const Reference< XPropertySet >& _rxColumn )
:PropertyBase( m_aBHelper )
,m_xDelegator( _rxColumn )
@@ -76,7 +76,7 @@ namespace param
throw RuntimeException();
}
- //--------------------------------------------------------------------
+
ParameterWrapper::ParameterWrapper( const Reference< XPropertySet >& _rxColumn,
const Reference< XParameters >& _rxAllParameters, const ::std::vector< sal_Int32 >& _rIndexes )
:PropertyBase( m_aBHelper )
@@ -92,15 +92,15 @@ namespace param
OSL_ENSURE( !m_aIndexes.empty(), "ParameterWrapper::ParameterWrapper: sure about the indexes?" );
}
- //--------------------------------------------------------------------
+
ParameterWrapper::~ParameterWrapper()
{
}
- //--------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( ParameterWrapper, UnoBase, PropertyBase )
- //--------------------------------------------------------------------
+
Sequence< Type > SAL_CALL ParameterWrapper::getTypes( ) throw(RuntimeException)
{
Sequence< Type > aTypes( 4 );
@@ -111,10 +111,10 @@ namespace param
return aTypes;
}
- //--------------------------------------------------------------------
+
IMPLEMENT_GET_IMPLEMENTATION_ID( ParameterWrapper )
- //--------------------------------------------------------------------
+
OUString ParameterWrapper::impl_getPseudoAggregatePropertyName( sal_Int32 _nHandle ) const
{
Reference< XPropertySetInfo > xInfo = const_cast<ParameterWrapper*>( this )->getPropertySetInfo();
@@ -130,13 +130,13 @@ namespace param
return OUString();
}
- //--------------------------------------------------------------------
+
Reference< XPropertySetInfo > ParameterWrapper::getPropertySetInfo() throw( RuntimeException )
{
return createPropertySetInfo( getInfoHelper() );
}
- //--------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper& ParameterWrapper::getInfoHelper()
{
if ( !m_pInfoHelper.get() )
@@ -164,7 +164,7 @@ namespace param
return *m_pInfoHelper;
}
- //--------------------------------------------------------------------
+
sal_Bool ParameterWrapper::convertFastPropertyValue(Any& rConvertedValue, Any& rOldValue, sal_Int32 nHandle, const Any& rValue) throw( IllegalArgumentException )
{
OSL_ENSURE( PROPERTY_ID_VALUE == nHandle, "ParameterWrapper::convertFastPropertyValue: the only non-readonly prop should be our PROPERTY_VALUE!" );
@@ -176,7 +176,7 @@ namespace param
return sal_True; // assume "modified" ...
}
- //--------------------------------------------------------------------
+
void ParameterWrapper::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const Any& rValue ) throw( Exception )
{
if ( nHandle == PROPERTY_ID_VALUE )
@@ -218,7 +218,7 @@ namespace param
}
}
- //--------------------------------------------------------------------
+
void ParameterWrapper::getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) const
{
if ( nHandle == PROPERTY_ID_VALUE )
@@ -232,7 +232,7 @@ namespace param
}
}
- //--------------------------------------------------------------------
+
void SAL_CALL ParameterWrapper::dispose()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -249,13 +249,13 @@ namespace param
//====================================================================
//= ParameterWrapperContainer
//====================================================================
- //--------------------------------------------------------------------
+
ParameterWrapperContainer::ParameterWrapperContainer()
:ParameterWrapperContainer_Base( m_aMutex )
{
}
- //--------------------------------------------------------------------
+
ParameterWrapperContainer::ParameterWrapperContainer( const Reference< XSingleSelectQueryAnalyzer >& _rxComposer )
:ParameterWrapperContainer_Base( m_aMutex )
{
@@ -269,12 +269,12 @@ namespace param
}
}
- //--------------------------------------------------------------------
+
ParameterWrapperContainer::~ParameterWrapperContainer()
{
}
- //--------------------------------------------------------------------
+
Type SAL_CALL ParameterWrapperContainer::getElementType() throw( RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -282,7 +282,7 @@ namespace param
return ::getCppuType( static_cast< Reference< XPropertySet >* >( NULL ) );
}
- //--------------------------------------------------------------------
+
sal_Bool SAL_CALL ParameterWrapperContainer::hasElements() throw( RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -290,7 +290,7 @@ namespace param
return !m_aParameters.empty();
}
- //--------------------------------------------------------------------
+
sal_Int32 SAL_CALL ParameterWrapperContainer::getCount() throw( RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -298,7 +298,7 @@ namespace param
return m_aParameters.size();
}
- //--------------------------------------------------------------------
+
Any SAL_CALL ParameterWrapperContainer::getByIndex( sal_Int32 _nIndex ) throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -310,7 +310,7 @@ namespace param
return makeAny( Reference< XPropertySet >( m_aParameters[ _nIndex ].get() ) );
}
- //--------------------------------------------------------------------
+
Reference< XEnumeration > ParameterWrapperContainer::createEnumeration() throw( RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -319,14 +319,14 @@ namespace param
return new ::comphelper::OEnumerationByIndex( static_cast< XIndexAccess* >( this ) );
}
- //--------------------------------------------------------------------
+
void ParameterWrapperContainer::impl_checkDisposed_throw()
{
if ( rBHelper.bDisposed )
throw DisposedException( OUString(), *this );
}
- //--------------------------------------------------------------------
+
void SAL_CALL ParameterWrapperContainer::disposing()
{
::osl::MutexGuard aGuard( m_aMutex );
diff --git a/connectivity/source/commontools/predicateinput.cxx b/connectivity/source/commontools/predicateinput.cxx
index 79cc2697c64b..74e00aefb966 100644
--- a/connectivity/source/commontools/predicateinput.cxx
+++ b/connectivity/source/commontools/predicateinput.cxx
@@ -61,7 +61,7 @@ namespace dbtools
using ::connectivity::OSQLParseNode;
//=====================================================================
- //---------------------------------------------------------------------
+
static sal_Unicode lcl_getSeparatorChar( const OUString& _rSeparator, sal_Unicode _nFallback )
{
OSL_ENSURE( !_rSeparator.isEmpty(), "::lcl_getSeparatorChar: invalid separator string!" );
@@ -75,7 +75,7 @@ namespace dbtools
//=====================================================================
//= OPredicateInputController
//=====================================================================
- //---------------------------------------------------------------------
+
sal_Bool OPredicateInputController::getSeparatorChars( const Locale& _rLocale, sal_Unicode& _rDecSep, sal_Unicode& _rThdSep ) const
{
_rDecSep = '.';
@@ -98,7 +98,7 @@ namespace dbtools
return sal_False;
}
- //---------------------------------------------------------------------
+
OPredicateInputController::OPredicateInputController(
const Reference< XComponentContext >& rxContext, const Reference< XConnection >& _rxConnection, const IParseContext* _pParseContext )
: m_xConnection( _rxConnection )
@@ -134,7 +134,7 @@ namespace dbtools
}
}
- //---------------------------------------------------------------------
+
OSQLParseNode* OPredicateInputController::implPredicateTree(OUString& _rErrorMessage, const OUString& _rStatement, const Reference< XPropertySet > & _rxField) const
{
OSQLParseNode* pReturn = const_cast< OSQLParser& >( m_aParser ).predicateTree( _rErrorMessage, _rStatement, m_xFormatter, _rxField );
@@ -244,7 +244,7 @@ namespace dbtools
return pReturn;
}
- //---------------------------------------------------------------------
+
sal_Bool OPredicateInputController::normalizePredicateString(
OUString& _rPredicateValue, const Reference< XPropertySet > & _rxField, OUString* _pErrorMessage ) const
{
@@ -282,7 +282,7 @@ namespace dbtools
return bSuccess;
}
- //---------------------------------------------------------------------
+
OUString OPredicateInputController::getPredicateValue(
const OUString& _rPredicateValue, const Reference< XPropertySet > & _rxField,
sal_Bool _bForStatementUse, OUString* _pErrorMessage ) const
diff --git a/connectivity/source/commontools/propertyids.cxx b/connectivity/source/commontools/propertyids.cxx
index 30df7cb335ae..863e962f7545 100644
--- a/connectivity/source/commontools/propertyids.cxx
+++ b/connectivity/source/commontools/propertyids.cxx
@@ -100,7 +100,7 @@ namespace dbtools
if(aIter->second)
rtl_uString_release(aIter->second);
}
- // ------------------------------------------------------------------------------
+
OUString OPropertyMap::getNameByIndex(sal_Int32 _nIndex) const
{
OUString sRet;
@@ -111,7 +111,7 @@ namespace dbtools
sRet = aIter->second;
return sRet;
}
- // ------------------------------------------------------------------------------
+
OUString OPropertyMap::fillValue(sal_Int32 _nIndex)
{
rtl_uString* pStr = NULL;
diff --git a/connectivity/source/commontools/sqlerror.cxx b/connectivity/source/commontools/sqlerror.cxx
index de58dae08b47..c9db24fa3199 100644
--- a/connectivity/source/commontools/sqlerror.cxx
+++ b/connectivity/source/commontools/sqlerror.cxx
@@ -97,7 +97,7 @@ namespace connectivity
//====================================================================
//= SQLError_Impl - implementation
//====================================================================
- //--------------------------------------------------------------------
+
SQLError_Impl::SQLError_Impl( const Reference<XComponentContext> & _rxContext )
:m_aContext( _rxContext )
,m_pResources( )
@@ -105,19 +105,19 @@ namespace connectivity
{
}
- //--------------------------------------------------------------------
+
SQLError_Impl::~SQLError_Impl()
{
}
- //--------------------------------------------------------------------
+
const OUString& SQLError_Impl::getMessagePrefix()
{
static const OUString s_sMessagePrefix( "[OOoBase]" );
return s_sMessagePrefix;
}
- //--------------------------------------------------------------------
+
namespace
{
//................................................................
@@ -145,7 +145,7 @@ namespace connectivity
}
}
- //--------------------------------------------------------------------
+
OUString SQLError_Impl::getErrorMessage( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 )
{
OUString sErrorMessage( impl_getErrorMessage( _eCondition ) );
@@ -157,19 +157,19 @@ namespace connectivity
return sErrorMessage;
}
- //--------------------------------------------------------------------
+
OUString SQLError_Impl::getSQLState( const ErrorCondition _eCondition )
{
return impl_getSQLState( _eCondition );
}
- //--------------------------------------------------------------------
+
ErrorCode SQLError_Impl::getErrorCode( const ErrorCondition _eCondition )
{
return 0 - ::sal::static_int_cast< ErrorCode, ErrorCondition >( _eCondition );
}
- //--------------------------------------------------------------------
+
void SQLError_Impl::raiseException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 )
{
raiseTypedException(
@@ -182,7 +182,7 @@ namespace connectivity
);
}
- //--------------------------------------------------------------------
+
void SQLError_Impl::raiseException( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 )
{
raiseTypedException(
@@ -195,7 +195,7 @@ namespace connectivity
);
}
- //--------------------------------------------------------------------
+
void SQLError_Impl::raiseTypedException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext,
const Type& _rExceptionType, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 )
{
@@ -213,14 +213,14 @@ namespace connectivity
::cppu::throwException( aException );
}
- //--------------------------------------------------------------------
+
SQLException SQLError_Impl::getSQLException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext,
const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 )
{
return impl_buildSQLException( _eCondition, _rxContext, _rParamValue1, _rParamValue2, _rParamValue3 );
}
- //--------------------------------------------------------------------
+
SQLException SQLError_Impl::impl_buildSQLException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext,
const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 )
{
@@ -233,7 +233,7 @@ namespace connectivity
);
}
- //--------------------------------------------------------------------
+
OUString SQLError_Impl::impl_getErrorMessage( const ErrorCondition& _eCondition )
{
OUStringBuffer aMessage;
@@ -248,7 +248,7 @@ namespace connectivity
return aMessage.makeStringAndClear();
}
- //--------------------------------------------------------------------
+
OUString SQLError_Impl::impl_getSQLState( const ErrorCondition& _eCondition )
{
OUString sState;
@@ -266,7 +266,7 @@ namespace connectivity
return sState;
}
- //--------------------------------------------------------------------
+
bool SQLError_Impl::impl_initResources()
{
if ( m_pResources.get() )
@@ -284,55 +284,55 @@ namespace connectivity
//====================================================================
//= SQLError
//====================================================================
- //--------------------------------------------------------------------
+
SQLError::SQLError( const Reference<XComponentContext> & _rxContext )
:m_pImpl( new SQLError_Impl( _rxContext ) )
{
}
- //--------------------------------------------------------------------
+
SQLError::~SQLError()
{
}
- //--------------------------------------------------------------------
+
const OUString& SQLError::getMessagePrefix()
{
return SQLError_Impl::getMessagePrefix();
}
- //--------------------------------------------------------------------
+
OUString SQLError::getErrorMessage( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) const
{
return m_pImpl->getErrorMessage( _eCondition, _rParamValue1, _rParamValue2, _rParamValue3 );
}
- //--------------------------------------------------------------------
+
ErrorCode SQLError::getErrorCode( const ErrorCondition _eCondition )
{
return SQLError_Impl::getErrorCode( _eCondition );
}
- //--------------------------------------------------------------------
+
void SQLError::raiseException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) const
{
m_pImpl->raiseException( _eCondition, _rxContext, _rParamValue1, _rParamValue2, _rParamValue3 );
}
- //--------------------------------------------------------------------
+
void SQLError::raiseException( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) const
{
m_pImpl->raiseException( _eCondition, _rParamValue1, _rParamValue2, _rParamValue3 );
}
- //--------------------------------------------------------------------
+
void SQLError::raiseTypedException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext,
const Type& _rExceptionType, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) const
{
m_pImpl->raiseTypedException( _eCondition, _rxContext, _rExceptionType, _rParamValue1, _rParamValue2, _rParamValue3 );
}
- //--------------------------------------------------------------------
+
SQLException SQLError::getSQLException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext,
const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) const
{
diff --git a/connectivity/source/commontools/statementcomposer.cxx b/connectivity/source/commontools/statementcomposer.cxx
index f80bc1e03b02..a00356280ef2 100644
--- a/connectivity/source/commontools/statementcomposer.cxx
+++ b/connectivity/source/commontools/statementcomposer.cxx
@@ -82,10 +82,10 @@ namespace dbtools
}
};
- //--------------------------------------------------------------------
+
namespace
{
- //----------------------------------------------------------------
+
void lcl_resetComposer( StatementComposer_Data& _rData )
{
if ( _rData.bDisposeComposer && _rData.xComposer.is() )
@@ -103,7 +103,7 @@ namespace dbtools
_rData.xComposer.clear();
}
- //----------------------------------------------------------------
+
bool lcl_ensureUpToDateComposer_nothrow( StatementComposer_Data& _rData )
{
if ( !_rData.bComposerDirty )
@@ -236,7 +236,7 @@ namespace dbtools
//====================================================================
//= StatementComposer
//====================================================================
- //--------------------------------------------------------------------
+
StatementComposer::StatementComposer( const Reference< XConnection >& _rxConnection,
const OUString& _rCommand, const sal_Int32 _nCommandType, const sal_Bool _bEscapeProcessing )
:m_pData( new StatementComposer_Data( _rxConnection ) )
@@ -247,40 +247,40 @@ namespace dbtools
m_pData->bEscapeProcessing = _bEscapeProcessing;
}
- //--------------------------------------------------------------------
+
StatementComposer::~StatementComposer()
{
lcl_resetComposer( *m_pData );
}
- //--------------------------------------------------------------------
+
void StatementComposer::setDisposeComposer( bool _bDoDispose )
{
m_pData->bDisposeComposer = _bDoDispose;
}
- //--------------------------------------------------------------------
+
void StatementComposer::setFilter( const OUString& _rFilter )
{
m_pData->sFilter = _rFilter;
m_pData->bComposerDirty = true;
}
- //--------------------------------------------------------------------
+
void StatementComposer::setOrder( const OUString& _rOrder )
{
m_pData->sOrder = _rOrder;
m_pData->bComposerDirty = true;
}
- //--------------------------------------------------------------------
+
Reference< XSingleSelectQueryComposer > StatementComposer::getComposer()
{
lcl_ensureUpToDateComposer_nothrow( *m_pData );
return m_pData->xComposer;
}
- //--------------------------------------------------------------------
+
OUString StatementComposer::getQuery()
{
if ( lcl_ensureUpToDateComposer_nothrow( *m_pData ) )
diff --git a/connectivity/source/commontools/warningscontainer.cxx b/connectivity/source/commontools/warningscontainer.cxx
index 44b7a69de9e8..0681bcb11040 100644
--- a/connectivity/source/commontools/warningscontainer.cxx
+++ b/connectivity/source/commontools/warningscontainer.cxx
@@ -35,7 +35,7 @@ namespace dbtools
//====================================================================
//= WarningsContainer
//====================================================================
- //--------------------------------------------------------------------
+
static void lcl_concatWarnings( Any& _rChainLeft, const Any& _rChainRight )
{
if ( !_rChainLeft.hasValue() )
@@ -58,30 +58,30 @@ namespace dbtools
}
}
- //--------------------------------------------------------------------
+
WarningsContainer::~WarningsContainer()
{
}
- //--------------------------------------------------------------------
+
void WarningsContainer::appendWarning(const SQLException& _rWarning)
{
lcl_concatWarnings( m_aOwnWarnings, makeAny( _rWarning ) );
}
- //--------------------------------------------------------------------
+
void WarningsContainer::appendWarning( const SQLContext& _rContext )
{
lcl_concatWarnings( m_aOwnWarnings, makeAny( _rContext ));
}
- //--------------------------------------------------------------------
+
void WarningsContainer::appendWarning(const SQLWarning& _rWarning)
{
lcl_concatWarnings( m_aOwnWarnings, makeAny( _rWarning ) );
}
- //--------------------------------------------------------------------
+
Any SAL_CALL WarningsContainer::getWarnings( ) const
{
Any aAllWarnings;
@@ -94,7 +94,7 @@ namespace dbtools
return aAllWarnings;
}
- //--------------------------------------------------------------------
+
void SAL_CALL WarningsContainer::clearWarnings( )
{
if ( m_xExternalWarnings.is() )
@@ -102,7 +102,7 @@ namespace dbtools
m_aOwnWarnings.clear();
}
- //--------------------------------------------------------------------
+
void WarningsContainer::appendWarning( const OUString& _rWarning, const sal_Char* _pAsciiSQLState, const Reference< XInterface >& _rxContext )
{
appendWarning( SQLWarning( _rWarning, _rxContext, OUString::createFromAscii( _pAsciiSQLState ), 0, Any() ) );
diff --git a/connectivity/source/cpool/ZConnectionPool.cxx b/connectivity/source/cpool/ZConnectionPool.cxx
index 476106b7606d..869b95e6e5ba 100644
--- a/connectivity/source/cpool/ZConnectionPool.cxx
+++ b/connectivity/source/cpool/ZConnectionPool.cxx
@@ -50,7 +50,7 @@ void SAL_CALL OPoolTimer::onShot()
}
namespace
{
- //--------------------------------------------------------------------
+
static const OUString& getTimeoutNodeName()
{
static OUString s_sNodeName( "Timeout" );
@@ -61,7 +61,7 @@ namespace
//==========================================================================
//= OConnectionPool
//==========================================================================
-//--------------------------------------------------------------------------
+
OConnectionPool::OConnectionPool(const Reference< XDriver >& _xDriver,
const Reference< XInterface >& _xDriverNode,
const Reference< ::com::sun::star::reflection::XProxyFactory >& _rxProxyFactory)
@@ -86,12 +86,12 @@ OConnectionPool::OConnectionPool(const Reference< XDriver >& _xDriver,
m_xInvalidator = new OPoolTimer(this,::salhelper::TTimeValue(m_nTimeOut,0));
m_xInvalidator->start();
}
-// -----------------------------------------------------------------------------
+
OConnectionPool::~OConnectionPool()
{
clear(sal_False);
}
-// -----------------------------------------------------------------------------
+
struct TRemoveEventListenerFunctor : ::std::unary_function<TPooledConnections::value_type,void>
,::std::unary_function<TActiveConnectionMap::value_type,void>
{
@@ -104,7 +104,7 @@ struct TRemoveEventListenerFunctor : ::std::unary_function<TPooledConnections::v
{
OSL_ENSURE(m_pConnectionPool,"No connection pool!");
}
- // -----------------------------------------------------------------------------
+
void dispose(const Reference<XInterface>& _xComponent)
{
Reference< XComponent > xComponent(_xComponent, UNO_QUERY);
@@ -116,18 +116,18 @@ struct TRemoveEventListenerFunctor : ::std::unary_function<TPooledConnections::v
xComponent->dispose();
}
}
- // -----------------------------------------------------------------------------
+
void operator()(const TPooledConnections::value_type& _aValue)
{
dispose(_aValue);
}
- // -----------------------------------------------------------------------------
+
void operator()(const TActiveConnectionMap::value_type& _aValue)
{
dispose(_aValue.first);
}
};
-// -----------------------------------------------------------------------------
+
struct TConnectionPoolFunctor : ::std::unary_function<TConnectionMap::value_type,void>
{
OConnectionPool* m_pConnectionPool;
@@ -142,7 +142,7 @@ struct TConnectionPoolFunctor : ::std::unary_function<TConnectionMap::value_type
::std::for_each(_aValue.second.aConnections.begin(),_aValue.second.aConnections.end(),TRemoveEventListenerFunctor(m_pConnectionPool,sal_True));
}
};
-// -----------------------------------------------------------------------------
+
void OConnectionPool::clear(sal_Bool _bDispose)
{
MutexGuard aGuard(m_aMutex);
@@ -166,7 +166,7 @@ void OConnectionPool::clear(sal_Bool _bDispose)
m_xDriverNode.clear();
m_xDriver.clear();
}
-//--------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OConnectionPool::getConnectionWithInfo( const OUString& _rURL, const Sequence< PropertyValue >& _rInfo ) throw(SQLException, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -187,7 +187,7 @@ Reference< XConnection > SAL_CALL OConnectionPool::getConnectionWithInfo( const
return xConnection;
}
-//--------------------------------------------------------------------------
+
void SAL_CALL OConnectionPool::disposing( const ::com::sun::star::lang::EventObject& Source ) throw (RuntimeException)
{
Reference<XConnection> xConnection(Source.Source,UNO_QUERY);
@@ -208,7 +208,7 @@ void SAL_CALL OConnectionPool::disposing( const ::com::sun::star::lang::EventObj
m_xDriverNode.clear();
}
}
-// -----------------------------------------------------------------------------
+
Reference< XConnection> OConnectionPool::createNewConnection(const OUString& _rURL,const Sequence< PropertyValue >& _rInfo)
{
// create new pooled conenction
@@ -241,7 +241,7 @@ Reference< XConnection> OConnectionPool::createNewConnection(const OUString& _rU
return xConnection;
}
-// -----------------------------------------------------------------------------
+
void OConnectionPool::invalidatePooledConnections()
{
MutexGuard aGuard(m_aMutex);
@@ -276,7 +276,7 @@ void OConnectionPool::invalidatePooledConnections()
if(!m_aPool.empty())
m_xInvalidator->start();
}
-// -----------------------------------------------------------------------------
+
Reference< XConnection> OConnectionPool::getPooledConnection(TConnectionMap::iterator& _rIter)
{
Reference<XConnection> xConnection;
@@ -299,7 +299,7 @@ Reference< XConnection> OConnectionPool::getPooledConnection(TConnectionMap::ite
}
return xConnection;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OConnectionPool::propertyChange( const PropertyChangeEvent& evt ) throw (::com::sun::star::uno::RuntimeException)
{
if(getTimeoutNodeName() == evt.PropertyName)
@@ -308,7 +308,7 @@ void SAL_CALL OConnectionPool::propertyChange( const PropertyChangeEvent& evt )
calculateTimeOuts();
}
}
-// -----------------------------------------------------------------------------
+
void OConnectionPool::calculateTimeOuts()
{
sal_Int32 nTimeOutCorrection = 10;
@@ -318,6 +318,6 @@ void OConnectionPool::calculateTimeOuts()
m_nTimeOut = m_nALiveCount / nTimeOutCorrection;
m_nALiveCount = m_nALiveCount / m_nTimeOut;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/cpool/ZConnectionWrapper.cxx b/connectivity/source/cpool/ZConnectionWrapper.cxx
index e9cd16616293..98ec50cc2da3 100644
--- a/connectivity/source/cpool/ZConnectionWrapper.cxx
+++ b/connectivity/source/cpool/ZConnectionWrapper.cxx
@@ -26,19 +26,19 @@
#include <comphelper/sequence.hxx>
using namespace connectivity;
-//------------------------------------------------------------------------------
+
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
-// --------------------------------------------------------------------------------
+
OConnectionWeakWrapper::OConnectionWeakWrapper(Reference< XAggregation >& _xConnection)
: OConnectionWeakWrapper_BASE(m_aMutex)
{
setDelegation(_xConnection,m_refCount);
OSL_ENSURE(m_xConnection.is(),"OConnectionWeakWrapper: Connection must be valid!");
}
-//-----------------------------------------------------------------------------
+
OConnectionWeakWrapper::~OConnectionWeakWrapper()
{
if ( !OConnectionWeakWrapper_BASE::rBHelper.bDisposed )
@@ -48,10 +48,10 @@ OConnectionWeakWrapper::~OConnectionWeakWrapper()
}
}
// XServiceInfo
-// --------------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OConnectionWeakWrapper, "com.sun.star.sdbc.drivers.OConnectionWeakWrapper", "com.sun.star.sdbc.Connection")
-// --------------------------------------------------------------------------------
+
Reference< XStatement > SAL_CALL OConnectionWeakWrapper::createStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -60,7 +60,7 @@ Reference< XStatement > SAL_CALL OConnectionWeakWrapper::createStatement( ) thr
return m_xConnection->createStatement();
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OConnectionWeakWrapper::prepareStatement( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -69,7 +69,7 @@ Reference< XPreparedStatement > SAL_CALL OConnectionWeakWrapper::prepareStatemen
return m_xConnection->prepareStatement(sql);
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OConnectionWeakWrapper::prepareCall( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -78,7 +78,7 @@ Reference< XPreparedStatement > SAL_CALL OConnectionWeakWrapper::prepareCall( co
return m_xConnection->prepareCall(sql);
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OConnectionWeakWrapper::nativeSQL( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -87,7 +87,7 @@ OUString SAL_CALL OConnectionWeakWrapper::nativeSQL( const OUString& sql ) throw
return m_xConnection->nativeSQL(sql);
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnectionWeakWrapper::setAutoCommit( sal_Bool autoCommit ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -95,7 +95,7 @@ void SAL_CALL OConnectionWeakWrapper::setAutoCommit( sal_Bool autoCommit ) throw
m_xConnection->setAutoCommit(autoCommit);
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnectionWeakWrapper::getAutoCommit( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -104,7 +104,7 @@ sal_Bool SAL_CALL OConnectionWeakWrapper::getAutoCommit( ) throw(SQLException,
return m_xConnection->getAutoCommit();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnectionWeakWrapper::commit( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -113,7 +113,7 @@ void SAL_CALL OConnectionWeakWrapper::commit( ) throw(SQLException, RuntimeExce
m_xConnection->commit();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnectionWeakWrapper::rollback( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -122,14 +122,14 @@ void SAL_CALL OConnectionWeakWrapper::rollback( ) throw(SQLException, RuntimeEx
m_xConnection->rollback();
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnectionWeakWrapper::isClosed( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
return m_xConnection->isClosed();
}
-// --------------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL OConnectionWeakWrapper::getMetaData( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -138,7 +138,7 @@ Reference< XDatabaseMetaData > SAL_CALL OConnectionWeakWrapper::getMetaData( )
return m_xConnection->getMetaData();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnectionWeakWrapper::setReadOnly( sal_Bool readOnly ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -147,7 +147,7 @@ void SAL_CALL OConnectionWeakWrapper::setReadOnly( sal_Bool readOnly ) throw(SQL
m_xConnection->setReadOnly(readOnly);
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnectionWeakWrapper::isReadOnly( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -156,7 +156,7 @@ sal_Bool SAL_CALL OConnectionWeakWrapper::isReadOnly( ) throw(SQLException, Run
return m_xConnection->isReadOnly();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnectionWeakWrapper::setCatalog( const OUString& catalog ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -165,7 +165,7 @@ void SAL_CALL OConnectionWeakWrapper::setCatalog( const OUString& catalog ) thro
m_xConnection->setCatalog(catalog);
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OConnectionWeakWrapper::getCatalog( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -174,7 +174,7 @@ OUString SAL_CALL OConnectionWeakWrapper::getCatalog( ) throw(SQLException, Run
return m_xConnection->getCatalog();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnectionWeakWrapper::setTransactionIsolation( sal_Int32 level ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -183,7 +183,7 @@ void SAL_CALL OConnectionWeakWrapper::setTransactionIsolation( sal_Int32 level )
m_xConnection->setTransactionIsolation(level);
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OConnectionWeakWrapper::getTransactionIsolation( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -192,7 +192,7 @@ sal_Int32 SAL_CALL OConnectionWeakWrapper::getTransactionIsolation( ) throw(SQL
return m_xConnection->getTransactionIsolation();
}
-// --------------------------------------------------------------------------------
+
Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OConnectionWeakWrapper::getTypeMap( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -201,7 +201,7 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OConnectionWeakWr
return m_xConnection->getTypeMap();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnectionWeakWrapper::setTypeMap( const Reference< ::com::sun::star::container::XNameAccess >& typeMap ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -210,7 +210,7 @@ void SAL_CALL OConnectionWeakWrapper::setTypeMap( const Reference< ::com::sun::s
m_xConnection->setTypeMap(typeMap);
}
-// --------------------------------------------------------------------------------
+
// XCloseable
void SAL_CALL OConnectionWeakWrapper::close( ) throw(SQLException, RuntimeException)
{
@@ -221,7 +221,7 @@ void SAL_CALL OConnectionWeakWrapper::close( ) throw(SQLException, RuntimeExcep
}
dispose();
}
-//------------------------------------------------------------------------------
+
void OConnectionWeakWrapper::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -229,7 +229,7 @@ void OConnectionWeakWrapper::disposing()
OConnectionWeakWrapper_BASE::disposing();
OConnectionWrapper::disposing();
}
-// -----------------------------------------------------------------------------
+
// com::sun::star::lang::XUnoTunnel
#ifdef N_DEBUG
IMPLEMENT_FORWARD_XINTERFACE2(OConnectionWeakWrapper,OConnectionWeakWrapper_BASE,OConnectionWrapper)
diff --git a/connectivity/source/cpool/ZDriverWrapper.cxx b/connectivity/source/cpool/ZDriverWrapper.cxx
index f039de4934dd..3c3ba05db709 100644
--- a/connectivity/source/cpool/ZDriverWrapper.cxx
+++ b/connectivity/source/cpool/ZDriverWrapper.cxx
@@ -33,7 +33,7 @@ namespace connectivity
//====================================================================
//= ODriverWrapper
//====================================================================
- //--------------------------------------------------------------------
+
ODriverWrapper::ODriverWrapper( Reference< XAggregation >& _rxAggregateDriver, OConnectionPool* _pPool )
:m_pConnectionPool(_pPool)
{
@@ -60,7 +60,7 @@ namespace connectivity
osl_atomic_decrement( &m_refCount );
}
- //--------------------------------------------------------------------
+
ODriverWrapper::~ODriverWrapper()
{
if (m_xDriverAggregate.is())
@@ -71,14 +71,14 @@ namespace connectivity
m_pConnectionPool = NULL;
}
- //--------------------------------------------------------------------
+
Any SAL_CALL ODriverWrapper::queryInterface( const Type& _rType ) throw (RuntimeException)
{
Any aReturn = ODriverWrapper_BASE::queryInterface(_rType);
return aReturn.hasValue() ? aReturn : (m_xDriverAggregate.is() ? m_xDriverAggregate->queryAggregation(_rType) : aReturn);
}
- //--------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL ODriverWrapper::connect( const OUString& url, const Sequence< PropertyValue >& info ) throw (SQLException, RuntimeException)
{
Reference< XConnection > xConnection;
@@ -91,13 +91,13 @@ namespace connectivity
return xConnection;
}
- //--------------------------------------------------------------------
+
sal_Bool SAL_CALL ODriverWrapper::acceptsURL( const OUString& url ) throw (SQLException, RuntimeException)
{
return m_xDriver.is() && m_xDriver->acceptsURL(url);
}
- //--------------------------------------------------------------------
+
Sequence< DriverPropertyInfo > SAL_CALL ODriverWrapper::getPropertyInfo( const OUString& url, const Sequence< PropertyValue >& info ) throw (SQLException, RuntimeException)
{
Sequence< DriverPropertyInfo > aInfo;
@@ -106,13 +106,13 @@ namespace connectivity
return aInfo;
}
- //--------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODriverWrapper::getMajorVersion( ) throw (RuntimeException)
{
return m_xDriver.is() ? m_xDriver->getMajorVersion() : 0;
}
- //--------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODriverWrapper::getMinorVersion( ) throw (RuntimeException)
{
return m_xDriver.is() ? m_xDriver->getMinorVersion() : 0;
diff --git a/connectivity/source/cpool/ZPoolCollection.cxx b/connectivity/source/cpool/ZPoolCollection.cxx
index 03eb49e15294..30aa321560db 100644
--- a/connectivity/source/cpool/ZPoolCollection.cxx
+++ b/connectivity/source/cpool/ZPoolCollection.cxx
@@ -42,38 +42,38 @@ using namespace ::com::sun::star::reflection;
using namespace ::osl;
using namespace connectivity;
-//--------------------------------------------------------------------
+
static const OUString& getConnectionPoolNodeName()
{
static OUString s_sNodeName( "org.openoffice.Office.DataAccess/ConnectionPool" );
return s_sNodeName;
}
-//--------------------------------------------------------------------
+
static const OUString& getEnablePoolingNodeName()
{
static OUString s_sNodeName( "EnablePooling" );
return s_sNodeName;
}
-//--------------------------------------------------------------------
+
static const OUString& getDriverNameNodeName()
{
static OUString s_sNodeName( "DriverName" );
return s_sNodeName;
}
-// -----------------------------------------------------------------------------
+
static const OUString& getDriverSettingsNodeName()
{
static OUString s_sNodeName( "DriverSettings" );
return s_sNodeName;
}
-//--------------------------------------------------------------------------
+
static const OUString& getEnableNodeName()
{
static OUString s_sNodeName( "Enable" );
return s_sNodeName;
}
-//--------------------------------------------------------------------
+
OPoolCollection::OPoolCollection(const Reference< XComponentContext >& _rxContext)
:m_xContext(_rxContext)
{
@@ -95,17 +95,17 @@ OPoolCollection::OPoolCollection(const Reference< XComponentContext >& _rxContex
}
osl_atomic_decrement( &m_refCount );
}
-// -----------------------------------------------------------------------------
+
OPoolCollection::~OPoolCollection()
{
clearConnectionPools(sal_False);
}
-// -----------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OPoolCollection::getConnection( const OUString& _rURL ) throw(SQLException, RuntimeException)
{
return getConnectionWithInfo(_rURL,Sequence< PropertyValue >());
}
-// -----------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OPoolCollection::getConnectionWithInfo( const OUString& _rURL, const Sequence< PropertyValue >& _rInfo ) throw(SQLException, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -125,19 +125,19 @@ Reference< XConnection > SAL_CALL OPoolCollection::getConnectionWithInfo( const
return xConnection;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPoolCollection::setLoginTimeout( sal_Int32 seconds ) throw(RuntimeException)
{
MutexGuard aGuard(m_aMutex);
m_xManager->setLoginTimeout(seconds);
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OPoolCollection::getLoginTimeout( ) throw(RuntimeException)
{
MutexGuard aGuard(m_aMutex);
return m_xManager->getLoginTimeout();
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OPoolCollection::getImplementationName( ) throw(RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -149,7 +149,7 @@ sal_Bool SAL_CALL OPoolCollection::supportsService( const OUString& _rServiceNam
return cppu::supportsService(this, _rServiceName);
}
-//--------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OPoolCollection::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
@@ -161,20 +161,20 @@ Reference< XInterface > SAL_CALL OPoolCollection::CreateInstance(const Reference
return static_cast<XDriverManager*>(new OPoolCollection(comphelper::getComponentContext(_rxFactory)));
}
-//--------------------------------------------------------------------------
+
OUString SAL_CALL OPoolCollection::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString("com.sun.star.sdbc.OConnectionPool");
}
-//--------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OPoolCollection::getSupportedServiceNames_Static( ) throw(RuntimeException)
{
Sequence< OUString > aSupported(1);
aSupported[0] = "com.sun.star.sdbc.ConnectionPool";
return aSupported;
}
-// -----------------------------------------------------------------------------
+
Reference< XDriver > SAL_CALL OPoolCollection::getDriverByURL( const OUString& _rURL ) throw(RuntimeException)
{
// returns the original driver when no connection pooling is enabled else it returns the proxy
@@ -216,7 +216,7 @@ Reference< XDriver > SAL_CALL OPoolCollection::getDriverByURL( const OUString& _
return xDriver;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OPoolCollection::isDriverPoolingEnabled(const OUString& _sDriverImplName,
Reference< XInterface >& _rxDriverNode)
{
@@ -244,7 +244,7 @@ sal_Bool OPoolCollection::isDriverPoolingEnabled(const OUString& _sDriverImplNam
}
return bEnabled;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OPoolCollection::isPoolingEnabled()
{
// the config node where all pooling relevant info are stored under
@@ -256,14 +256,14 @@ sal_Bool OPoolCollection::isPoolingEnabled()
getNodeValue(getEnablePoolingNodeName(),xConnectionPoolRoot) >>= bEnabled;
return bEnabled;
}
-// -----------------------------------------------------------------------------
+
Reference<XInterface> OPoolCollection::getConfigPoolRoot()
{
if(!m_xConfigNode.is())
m_xConfigNode = createWithServiceFactory(getConnectionPoolNodeName());
return m_xConfigNode;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OPoolCollection::isPoolingEnabledByUrl(const OUString& _sUrl,
Reference< XDriver >& _rxDriver,
OUString& _rsImplName,
@@ -285,7 +285,7 @@ sal_Bool OPoolCollection::isPoolingEnabledByUrl(const OUString& _sUrl,
}
return bEnabled;
}
-// -----------------------------------------------------------------------------
+
void OPoolCollection::clearConnectionPools(sal_Bool _bDispose)
{
OConnectionPools::const_iterator aIter = m_aPools.begin();
@@ -298,7 +298,7 @@ void OPoolCollection::clearConnectionPools(sal_Bool _bDispose)
m_aPools.erase(sKeyValue);
}
}
-// -----------------------------------------------------------------------------
+
OConnectionPool* OPoolCollection::getConnectionPool(const OUString& _sImplName,
const Reference< XDriver >& _xDriver,
const Reference< XInterface >& _xDriverNode)
@@ -322,14 +322,14 @@ OConnectionPool* OPoolCollection::getConnectionPool(const OUString& _sImplName,
return pRet;
}
-// -----------------------------------------------------------------------------
+
Reference< XInterface > OPoolCollection::createWithServiceFactory(const OUString& _rPath) const
{
return createWithProvider(
com::sun::star::configuration::theDefaultProvider::get(m_xContext),
_rPath);
}
-//------------------------------------------------------------------------
+
Reference< XInterface > OPoolCollection::createWithProvider(const Reference< XMultiServiceFactory >& _rxConfProvider,
const OUString& _rPath) const
{
@@ -348,7 +348,7 @@ Reference< XInterface > OPoolCollection::createWithProvider(const Reference< XMu
"::createWithProvider: could not create the node access!");
return xInterface;
}
-// -----------------------------------------------------------------------------
+
Reference<XInterface> OPoolCollection::openNode(const OUString& _rPath,const Reference<XInterface>& _xTreeNode) const throw()
{
Reference< XHierarchicalNameAccess > xHierarchyAccess(_xTreeNode, UNO_QUERY);
@@ -380,7 +380,7 @@ Reference<XInterface> OPoolCollection::openNode(const OUString& _rPath,const Ref
}
return xNode;
}
-// -----------------------------------------------------------------------------
+
Any OPoolCollection::getNodeValue(const OUString& _rPath,const Reference<XInterface>& _xTreeNode) throw()
{
Reference< XHierarchicalNameAccess > xHierarchyAccess(_xTreeNode, UNO_QUERY);
@@ -405,16 +405,16 @@ Any OPoolCollection::getNodeValue(const OUString& _rPath,const Reference<XInterf
}
return aReturn;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPoolCollection::queryTermination( const EventObject& /*Event*/ ) throw (::com::sun::star::frame::TerminationVetoException, RuntimeException)
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPoolCollection::notifyTermination( const EventObject& /*Event*/ ) throw (RuntimeException)
{
clearDesktop();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPoolCollection::disposing( const EventObject& Source ) throw (RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -442,7 +442,7 @@ void SAL_CALL OPoolCollection::disposing( const EventObject& Source ) throw (Run
}
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPoolCollection::propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw (RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -495,7 +495,7 @@ void SAL_CALL OPoolCollection::propertyChange( const ::com::sun::star::beans::Pr
}
}
}
-// -----------------------------------------------------------------------------
+
void OPoolCollection::clearDesktop()
{
clearConnectionPools(sal_True);
@@ -503,7 +503,7 @@ void OPoolCollection::clearDesktop()
m_xDesktop->removeTerminateListener(this);
m_xDesktop.clear();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/cpool/ZPooledConnection.cxx b/connectivity/source/cpool/ZPooledConnection.cxx
index a50d6da70ffc..93469c7a481f 100644
--- a/connectivity/source/cpool/ZPooledConnection.cxx
+++ b/connectivity/source/cpool/ZPooledConnection.cxx
@@ -42,7 +42,7 @@ OPooledConnection::OPooledConnection(const Reference< XConnection >& _xConnectio
{
}
-// -----------------------------------------------------------------------------
+
// OComponentHelper
void SAL_CALL OPooledConnection::disposing(void)
{
@@ -52,13 +52,13 @@ void SAL_CALL OPooledConnection::disposing(void)
m_xComponent.clear();
::comphelper::disposeComponent(m_xRealConnection);
}
-// -----------------------------------------------------------------------------
+
// XEventListener
void SAL_CALL OPooledConnection::disposing( const EventObject& /*Source*/ ) throw (RuntimeException)
{
m_xComponent.clear();
}
-// -----------------------------------------------------------------------------
+
//XPooledConnection
Reference< XConnection > OPooledConnection::getConnection() throw(SQLException, RuntimeException)
{
@@ -72,6 +72,6 @@ Reference< XConnection > OPooledConnection::getConnection() throw(SQLException,
}
return Reference< XConnection >(m_xComponent,UNO_QUERY);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/cpool/Zregistration.cxx b/connectivity/source/cpool/Zregistration.cxx
index 3d3d657d272a..880190ee9b96 100644
--- a/connectivity/source/cpool/Zregistration.cxx
+++ b/connectivity/source/cpool/Zregistration.cxx
@@ -33,7 +33,7 @@ using namespace connectivity;
extern "C"
{
-//---------------------------------------------------------------------------------------
+
SAL_DLLPUBLIC_EXPORT void* SAL_CALL dbpool2_component_getFactory(const sal_Char* _pImplName, ::com::sun::star::lang::XMultiServiceFactory* _pServiceManager, void* /*_pRegistryKey*/)
{
void* pRet = NULL;
diff --git a/connectivity/source/drivers/ado/ACallableStatement.cxx b/connectivity/source/drivers/ado/ACallableStatement.cxx
index 882b1d57bdbd..1823251f88e9 100644
--- a/connectivity/source/drivers/ado/ACallableStatement.cxx
+++ b/connectivity/source/drivers/ado/ACallableStatement.cxx
@@ -42,108 +42,108 @@ OCallableStatement::OCallableStatement( OConnection* _pConnection,const OTypeInf
{
m_Command.put_CommandType(adCmdStoredProc);
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OCallableStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OPreparedStatement::queryInterface(rType);
return aRet.hasValue() ? aRet : ::cppu::queryInterface(rType,static_cast< XRow*>(this));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OCallableStatement::wasNull( ) throw(SQLException, RuntimeException)
{
return m_aValue.isNull();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OCallableStatement::getBoolean( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
GET_PARAM()
return m_aValue;
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL OCallableStatement::getByte( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
GET_PARAM()
return m_aValue;
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL OCallableStatement::getBytes( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
GET_PARAM()
return m_aValue;
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Date SAL_CALL OCallableStatement::getDate( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
GET_PARAM()
return m_aValue;
}
-// -------------------------------------------------------------------------
+
double SAL_CALL OCallableStatement::getDouble( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
GET_PARAM()
return m_aValue;
}
-// -------------------------------------------------------------------------
+
float SAL_CALL OCallableStatement::getFloat( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
GET_PARAM()
return m_aValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OCallableStatement::getInt( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
GET_PARAM()
return m_aValue;
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL OCallableStatement::getLong( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
GET_PARAM()
return (sal_Int64)m_aValue.getCurrency().int64;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OCallableStatement::getObject( sal_Int32 /*columnIndex*/, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getObject", *this );
return Any();
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL OCallableStatement::getShort( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
GET_PARAM()
return m_aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OCallableStatement::getString( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
GET_PARAM()
return m_aValue;
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Time SAL_CALL OCallableStatement::getTime( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
GET_PARAM()
return m_aValue;
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::DateTime SAL_CALL OCallableStatement::getTimestamp( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
GET_PARAM()
return m_aValue;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OCallableStatement::registerOutParameter( sal_Int32 parameterIndex, sal_Int32 sqlType, const OUString& /*typeName*/ ) throw(SQLException, RuntimeException)
{
@@ -155,7 +155,7 @@ void SAL_CALL OCallableStatement::registerOutParameter( sal_Int32 parameterIndex
pParam->put_Direction(adParamOutput);
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OCallableStatement::registerNumericOutParameter( sal_Int32 parameterIndex, sal_Int32 sqlType, sal_Int32 scale ) throw(SQLException, RuntimeException)
{
ADOParameter* pParam = NULL;
@@ -167,7 +167,7 @@ void SAL_CALL OCallableStatement::registerNumericOutParameter( sal_Int32 paramet
pParam->put_NumericScale((sal_Int8)scale);
}
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL OCallableStatement::getBinaryStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
@@ -175,51 +175,51 @@ Reference< ::com::sun::star::io::XInputStream > SAL_CALL OCallableStatement::get
::dbtools::throwFeatureNotImplementedException( "XRow::getBinaryStream", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL OCallableStatement::getCharacterStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getCharacterStream", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL OCallableStatement::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getArray", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL OCallableStatement::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getClob", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL OCallableStatement::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getBlob", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL OCallableStatement::getRef( sal_Int32 /*columnIndex*/) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getRef", *this );
return NULL;
}
-// -------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
+
+
void SAL_CALL OCallableStatement::acquire() throw()
{
OPreparedStatement::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OCallableStatement::release() throw()
{
OPreparedStatement::release();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/ACatalog.cxx b/connectivity/source/drivers/ado/ACatalog.cxx
index 01e4aee0640d..0e25ab6d20fa 100644
--- a/connectivity/source/drivers/ado/ACatalog.cxx
+++ b/connectivity/source/drivers/ado/ACatalog.cxx
@@ -27,23 +27,23 @@
#include <com/sun/star/sdbc/XResultSet.hpp>
-// -------------------------------------------------------------------------
+
using namespace connectivity;
using namespace connectivity::ado;
-// -------------------------------------------------------------------------
+
OCatalog::OCatalog(_ADOCatalog* _pCatalog,OConnection* _pCon) : connectivity::sdbcx::OCatalog(_pCon)
,m_aCatalog(_pCatalog)
,m_pConnection(_pCon)
{
}
-// -----------------------------------------------------------------------------
+
OCatalog::~OCatalog()
{
if(m_aCatalog.IsValid())
m_aCatalog.putref_ActiveConnection(NULL);
m_aCatalog.clear();
}
-// -----------------------------------------------------------------------------
+
void OCatalog::refreshTables()
{
TStringVector aVector;
@@ -72,7 +72,7 @@ void OCatalog::refreshTables()
else
m_pTables = new OTables(this,m_aMutex,aVector,aTables,m_pConnection->getMetaData()->supportsMixedCaseQuotedIdentifiers());
}
-// -------------------------------------------------------------------------
+
void OCatalog::refreshViews()
{
TStringVector aVector;
@@ -85,7 +85,7 @@ void OCatalog::refreshViews()
else
m_pViews = new OViews(this,m_aMutex,aVector,aViews,m_pConnection->getMetaData()->supportsMixedCaseQuotedIdentifiers());
}
-// -------------------------------------------------------------------------
+
void OCatalog::refreshGroups()
{
TStringVector aVector;
@@ -98,7 +98,7 @@ void OCatalog::refreshGroups()
else
m_pGroups = new OGroups(this,m_aMutex,aVector,aGroups,m_pConnection->getMetaData()->supportsMixedCaseQuotedIdentifiers());
}
-// -------------------------------------------------------------------------
+
void OCatalog::refreshUsers()
{
TStringVector aVector;
@@ -111,7 +111,7 @@ void OCatalog::refreshUsers()
else
m_pUsers = new OUsers(this,m_aMutex,aVector,aUsers,m_pConnection->getMetaData()->supportsMixedCaseQuotedIdentifiers());
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/AColumn.cxx b/connectivity/source/drivers/ado/AColumn.cxx
index 1e6ab619f426..96d2e22b19cb 100644
--- a/connectivity/source/drivers/ado/AColumn.cxx
+++ b/connectivity/source/drivers/ado/AColumn.cxx
@@ -53,7 +53,7 @@ void WpADOColumn::Create()
pColumn->Release( );
}
}
-// -------------------------------------------------------------------------
+
OAdoColumn::OAdoColumn(sal_Bool _bCase,OConnection* _pConnection,_ADOColumn* _pColumn)
: connectivity::sdbcx::OColumn(_bCase)
,m_pConnection(_pConnection)
@@ -64,7 +64,7 @@ OAdoColumn::OAdoColumn(sal_Bool _bCase,OConnection* _pConnection,_ADOColumn* _pC
// m_aColumn.put_ParentCatalog(_pConnection->getAdoCatalog()->getCatalog());
fillPropertyValues();
}
-// -------------------------------------------------------------------------
+
OAdoColumn::OAdoColumn(sal_Bool _bCase,OConnection* _pConnection)
: connectivity::sdbcx::OColumn(_bCase)
,m_pConnection(_pConnection)
@@ -76,7 +76,7 @@ OAdoColumn::OAdoColumn(sal_Bool _bCase,OConnection* _pConnection)
m_Type = DataType::OTHER;
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > OAdoColumn::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -93,14 +93,14 @@ Sequence< sal_Int8 > OAdoColumn::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OAdoColumn::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelImplementationId().getConstArray(), rId.getConstArray(), 16 ) )
? reinterpret_cast< sal_Int64 >( this )
: OColumn_ADO::getSomething(rId);
}
-// -------------------------------------------------------------------------
+
void OAdoColumn::construct()
{
sal_Int32 nAttrib = isNew() ? 0 : PropertyAttribute::READONLY;
@@ -108,7 +108,7 @@ void OAdoColumn::construct()
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISASCENDING), PROPERTY_ID_ISASCENDING, nAttrib,&m_IsAscending, ::getBooleanCppuType());
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_RELATEDCOLUMN), PROPERTY_ID_RELATEDCOLUMN, nAttrib,&m_ReferencedColumn, ::getCppuType(static_cast< OUString*>(0)));
}
-// -----------------------------------------------------------------------------
+
void OAdoColumn::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue)throw (Exception)
{
if(m_aColumn.IsValid())
@@ -189,7 +189,7 @@ void OAdoColumn::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& r
}
OColumn_ADO::setFastPropertyValue_NoBroadcast(nHandle,rValue);
}
-// -----------------------------------------------------------------------------
+
void OAdoColumn::fillPropertyValues()
{
if(m_aColumn.IsValid())
@@ -271,23 +271,23 @@ void OAdoColumn::fillPropertyValues()
}
}
}
-// -----------------------------------------------------------------------------
+
WpADOColumn OAdoColumn::getColumnImpl() const
{
return m_aColumn;
}
-// -----------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
+
+
void SAL_CALL OAdoColumn::acquire() throw()
{
OColumn_ADO::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAdoColumn::release() throw()
{
OColumn_ADO::release();
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/ado/AColumns.cxx b/connectivity/source/drivers/ado/AColumns.cxx
index 68063f1d9e6f..08dda621be35 100644
--- a/connectivity/source/drivers/ado/AColumns.cxx
+++ b/connectivity/source/drivers/ado/AColumns.cxx
@@ -47,17 +47,17 @@ sdbcx::ObjectType OColumns::createObject(const OUString& _rName)
return new OAdoColumn(isCaseSensitive(),m_pConnection,m_aCollection.GetItem(_rName));
}
-// -------------------------------------------------------------------------
+
void OColumns::impl_refresh() throw(RuntimeException)
{
m_aCollection.Refresh();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OColumns::createDescriptor()
{
return new OAdoColumn(isCaseSensitive(),m_pConnection);
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OColumns::appendObject( const OUString&, const Reference< XPropertySet >& descriptor )
{
@@ -125,14 +125,14 @@ sdbcx::ObjectType OColumns::appendObject( const OUString&, const Reference< XPro
return new OAdoColumn(isCaseSensitive(),m_pConnection,pColumn->getColumnImpl());
}
-// -------------------------------------------------------------------------
+
// XDrop
void OColumns::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName)
{
if(!m_aCollection.Delete(_sElementName))
ADOS::ThrowException(*m_pConnection->getConnection(),static_cast<XTypeProvider*>(this));
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/ado/AConnection.cxx b/connectivity/source/drivers/ado/AConnection.cxx
index 5dc84766b7a7..31768d537141 100644
--- a/connectivity/source/drivers/ado/AConnection.cxx
+++ b/connectivity/source/drivers/ado/AConnection.cxx
@@ -43,9 +43,9 @@ using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
-//------------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OConnection,"com.sun.star.sdbcx.AConnection","com.sun.star.sdbc.Connection");
-// --------------------------------------------------------------------------------
+
OConnection::OConnection(ODriver* _pDriver) throw(SQLException, RuntimeException)
: OSubComponent<OConnection, OConnection_BASE>((::cppu::OWeakObject*)_pDriver, this),
m_xCatalog(NULL),
@@ -92,11 +92,11 @@ OConnection::OConnection(ODriver* _pDriver) throw(SQLException, RuntimeExcepti
osl_atomic_decrement( &m_refCount );
}
-//-----------------------------------------------------------------------------
+
OConnection::~OConnection()
{
}
-//-----------------------------------------------------------------------------
+
void OConnection::construct(const OUString& url,const Sequence< PropertyValue >& info)
{
osl_atomic_increment( &m_refCount );
@@ -157,12 +157,12 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
}
osl_atomic_decrement( &m_refCount );
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL OConnection::release() throw()
{
relase_ChildImpl();
}
-// --------------------------------------------------------------------------------
+
Reference< XStatement > SAL_CALL OConnection::createStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -173,7 +173,7 @@ Reference< XStatement > SAL_CALL OConnection::createStatement( ) throw(SQLExcep
m_aStatements.push_back(WeakReferenceHelper(*pStmt));
return pStmt;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -185,7 +185,7 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const OU
m_aStatements.push_back(WeakReferenceHelper(*pStmt));
return xPStmt;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -197,7 +197,7 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall( const OUStrin
m_aStatements.push_back(WeakReferenceHelper(*pStmt));
return xPStmt;
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OConnection::nativeSQL( const OUString& _sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -218,7 +218,7 @@ OUString SAL_CALL OConnection::nativeSQL( const OUString& _sql ) throw(SQLExcept
return sql;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setAutoCommit( sal_Bool autoCommit ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -231,7 +231,7 @@ void SAL_CALL OConnection::setAutoCommit( sal_Bool autoCommit ) throw(SQLExcepti
else
m_pAdoConnection->RollbackTrans();
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::getAutoCommit( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -240,7 +240,7 @@ sal_Bool SAL_CALL OConnection::getAutoCommit( ) throw(SQLException, RuntimeExce
return m_bAutocommit;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::commit( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -249,7 +249,7 @@ void SAL_CALL OConnection::commit( ) throw(SQLException, RuntimeException)
m_pAdoConnection->CommitTrans();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::rollback( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -258,14 +258,14 @@ void SAL_CALL OConnection::rollback( ) throw(SQLException, RuntimeException)
m_pAdoConnection->RollbackTrans();
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::isClosed( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
return OConnection_BASE::rBHelper.bDisposed && !m_pAdoConnection->get_State();
}
-// --------------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -281,7 +281,7 @@ Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData( ) throw(SQLEx
return xMetaData;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setReadOnly( sal_Bool readOnly ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -292,7 +292,7 @@ void SAL_CALL OConnection::setReadOnly( sal_Bool readOnly ) throw(SQLException,
m_pAdoConnection->put_Mode(readOnly ? adModeRead : adModeReadWrite);
ADOS::ThrowException(*m_pAdoConnection,*this);
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::isReadOnly( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -301,7 +301,7 @@ sal_Bool SAL_CALL OConnection::isReadOnly( ) throw(SQLException, RuntimeExcepti
return m_pAdoConnection->get_Mode() == adModeRead;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setCatalog( const OUString& catalog ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -310,7 +310,7 @@ void SAL_CALL OConnection::setCatalog( const OUString& catalog ) throw(SQLExcept
m_pAdoConnection->PutDefaultDatabase(catalog);
ADOS::ThrowException(*m_pAdoConnection,*this);
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OConnection::getCatalog( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -318,7 +318,7 @@ OUString SAL_CALL OConnection::getCatalog( ) throw(SQLException, RuntimeExcepti
return m_pAdoConnection->GetDefaultDatabase();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setTransactionIsolation( sal_Int32 level ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -350,7 +350,7 @@ void SAL_CALL OConnection::setTransactionIsolation( sal_Int32 level ) throw(SQLE
m_pAdoConnection->put_IsolationLevel(eIso);
ADOS::ThrowException(*m_pAdoConnection,*this);
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OConnection::getTransactionIsolation( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -381,7 +381,7 @@ sal_Int32 SAL_CALL OConnection::getTransactionIsolation( ) throw(SQLException,
ADOS::ThrowException(*m_pAdoConnection,*this);
return nRet;
}
-// --------------------------------------------------------------------------------
+
Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OConnection::getTypeMap( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -390,12 +390,12 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OConnection::getT
return NULL;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setTypeMap( const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::setTypeMap", *this );
}
-// --------------------------------------------------------------------------------
+
// XCloseable
void SAL_CALL OConnection::close( ) throw(SQLException, RuntimeException)
{
@@ -406,17 +406,17 @@ void SAL_CALL OConnection::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// --------------------------------------------------------------------------------
+
// XWarningsSupplier
Any SAL_CALL OConnection::getWarnings( ) throw(SQLException, RuntimeException)
{
return Any();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::clearWarnings( ) throw(SQLException, RuntimeException)
{
}
-//--------------------------------------------------------------------
+
void OConnection::buildTypeInfo() throw( SQLException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -475,7 +475,7 @@ void OConnection::buildTypeInfo() throw( SQLException)
pRecordset->Release();
}
}
-//------------------------------------------------------------------------------
+
void OConnection::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -500,7 +500,7 @@ void OConnection::disposing()
dispose_ChildImpl();
}
-// -----------------------------------------------------------------------------
+
sal_Int64 SAL_CALL OConnection::getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw (::com::sun::star::uno::RuntimeException)
{
return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelImplementationId().getConstArray(), rId.getConstArray(), 16 ) )
@@ -509,7 +509,7 @@ sal_Int64 SAL_CALL OConnection::getSomething( const ::com::sun::star::uno::Seque
:
OConnection_BASE::getSomething(rId);
}
-// -----------------------------------------------------------------------------
+
Sequence< sal_Int8 > OConnection::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -524,7 +524,7 @@ Sequence< sal_Int8 > OConnection::getUnoTunnelImplementationId()
}
return pId->getImplementationId();
}
-// -----------------------------------------------------------------------------
+
const OExtendedTypeInfo* OConnection::getTypeInfoFromType(const OTypeInfoMap& _rTypeInfo,
DataTypeEnum _nType,
const OUString& _sTypeName,
@@ -615,7 +615,7 @@ const OExtendedTypeInfo* OConnection::getTypeInfoFromType(const OTypeInfoMap& _r
// OSL_ENSURE(pTypeInfo, "getTypeInfoFromType: no type info found for this type!");
return pTypeInfo;
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/ado/ADatabaseMetaData.cxx b/connectivity/source/drivers/ado/ADatabaseMetaData.cxx
index cfbe22524fcd..847b1dd1359b 100644
--- a/connectivity/source/drivers/ado/ADatabaseMetaData.cxx
+++ b/connectivity/source/drivers/ado/ADatabaseMetaData.cxx
@@ -45,7 +45,7 @@ ODatabaseMetaData::ODatabaseMetaData(OConnection* _pCon)
,m_pConnection(_pCon)
{
}
-// -------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaData::getInt32Property(const OUString& _aProperty) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
connectivity::ado::WpADOProperties aProps(m_pADOConnection->get_Properties());
@@ -58,7 +58,7 @@ sal_Int32 ODatabaseMetaData::getInt32Property(const OUString& _aProperty) throw
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::getBoolProperty(const OUString& _aProperty) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
connectivity::ado::WpADOProperties aProps(m_pADOConnection->get_Properties());
@@ -67,7 +67,7 @@ sal_Bool ODatabaseMetaData::getBoolProperty(const OUString& _aProperty) throw(:
ADO_PROP(_aProperty);
return (!aVar.isNull() && !aVar.isEmpty() ? aVar.getBool() : sal_False);
}
-// -------------------------------------------------------------------------
+
OUString ODatabaseMetaData::getStringProperty(const OUString& _aProperty) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
connectivity::ado::WpADOProperties aProps(m_pADOConnection->get_Properties());
@@ -81,7 +81,7 @@ OUString ODatabaseMetaData::getStringProperty(const OUString& _aProperty) throw
return aValue;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > ODatabaseMetaData::impl_getTypeInfo_throw( )
{
ADORecordset *pRecordset = m_pADOConnection->getTypeInfo();
@@ -91,7 +91,7 @@ Reference< XResultSet > ODatabaseMetaData::impl_getTypeInfo_throw( )
Reference< XResultSet > xRef = pResult;
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs( ) throw(SQLException, RuntimeException)
{
OLEVariant vtEmpty;
@@ -109,12 +109,12 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs( ) throw(SQLExc
return xRef;
}
-// -------------------------------------------------------------------------
+
OUString ODatabaseMetaData::impl_getCatalogSeparator_throw( )
{
return getLiteral(DBLITERAL_CATALOG_SEPARATOR);
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getSchemas( ) throw(SQLException, RuntimeException)
{
OLEVariant vtEmpty;
@@ -131,7 +131,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getSchemas( ) throw(SQLExce
xRef = pResult;
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges(
const Any& catalog, const OUString& schema, const OUString& table,
const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
@@ -146,7 +146,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges(
xRef = pResult;
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
const Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern,
const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
@@ -162,7 +162,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
const Any& catalog, const OUString& schemaPattern,
const OUString& tableNamePattern, const Sequence< OUString >& types ) throw(SQLException, RuntimeException)
@@ -178,7 +178,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns(
const Any& catalog, const OUString& schemaPattern,
const OUString& procedureNamePattern, const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
@@ -194,7 +194,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns(
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures(
const Any& catalog, const OUString& schemaPattern,
const OUString& procedureNamePattern ) throw(SQLException, RuntimeException)
@@ -211,67 +211,67 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures(
return xRef;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQLException, RuntimeException)
{
return getMaxSize(DBLITERAL_BINARY_LITERAL);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxRowSize( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("Maximum Row Size"));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCatalogNameLength( ) throw(SQLException, RuntimeException)
{
return getMaxSize(DBLITERAL_CATALOG_NAME);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCharLiteralLength( ) throw(SQLException, RuntimeException)
{
return getMaxSize(DBLITERAL_CHAR_LITERAL);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnNameLength( ) throw(SQLException, RuntimeException)
{
return getMaxSize(DBLITERAL_COLUMN_NAME);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInIndex( ) throw(SQLException, RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCursorNameLength( ) throw(SQLException, RuntimeException)
{
return getMaxSize(DBLITERAL_CURSOR_NAME);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxConnections( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("Active Sessions"));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInTable( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("Max Columns in Table"));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatementLength( ) throw(SQLException, RuntimeException)
{
return getMaxSize(DBLITERAL_TEXT_COMMAND);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTableNameLength( ) throw(SQLException, RuntimeException)
{
return getMaxSize(DBLITERAL_TABLE_NAME);
}
-// -------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaData::impl_getMaxTablesInSelect_throw( )
{
return getInt32Property(OUString("Maximum Tables in SELECT"));
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
@@ -285,7 +285,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys(
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
@@ -300,7 +300,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys(
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
@@ -315,7 +315,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys(
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo(
const Any& catalog, const OUString& schema, const OUString& table,
sal_Bool unique, sal_Bool approximate ) throw(SQLException, RuntimeException)
@@ -331,7 +331,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo(
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
const Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern ) throw(SQLException, RuntimeException)
{
@@ -384,7 +384,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference(
const Any& primaryCatalog, const OUString& primarySchema,
const OUString& primaryTable, const Any& foreignCatalog,
@@ -401,138 +401,138 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference(
return xRef;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException)
{
return getBoolProperty(OUString("Maximum Row Size Includes BLOB"));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Identifier Case Sensitivity")) & DBPROPVAL_IC_LOWER) == DBPROPVAL_IC_LOWER ;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Identifier Case Sensitivity")) & DBPROPVAL_IC_LOWER) == DBPROPVAL_IC_LOWER ;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( )
{
return (getInt32Property(OUString("Identifier Case Sensitivity")) & DBPROPVAL_IC_MIXED) == DBPROPVAL_IC_MIXED ;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Identifier Case Sensitivity")) & DBPROPVAL_IC_MIXED) == DBPROPVAL_IC_MIXED ;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Identifier Case Sensitivity")) & DBPROPVAL_IC_UPPER) == DBPROPVAL_IC_UPPER ;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Identifier Case Sensitivity")) & DBPROPVAL_IC_UPPER) == DBPROPVAL_IC_UPPER ;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsAlterTableWithAddColumn_throw( )
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsAlterTableWithDropColumn_throw( )
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("Maximum Index Size"));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("NULL Concatenation Behavior")) == DBPROPVAL_CB_NON_NULL;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException)
{
return getStringProperty(OUString("Catalog Term"));
}
-// -------------------------------------------------------------------------
+
OUString ODatabaseMetaData::impl_getIdentifierQuoteString_throw( )
{
return getLiteral(DBLITERAL_QUOTE_PREFIX);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
return isCapable(DBLITERAL_CORRELATION_NAME);
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_isCatalogAtStart_throw( )
{
return getInt32Property(OUString("Catalog Location")) == DBPROPVAL_CL_START;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("Transaction DDL")) == DBPROPVAL_TC_DDL_IGNORE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("Transaction DDL")) == DBPROPVAL_TC_DDL_COMMIT;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("Transaction DDL")) == DBPROPVAL_TC_DML;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("Transaction DDL")) == DBPROPVAL_TC_ALL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("Prepare Abort Behavior")) == DBPROPVAL_CB_PRESERVE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("Prepare Commit Behavior")) == DBPROPVAL_CB_PRESERVE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Isolation Retention")) & DBPROPVAL_TR_COMMIT) == DBPROPVAL_TR_COMMIT;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Isolation Retention")) & DBPROPVAL_TR_ABORT) == DBPROPVAL_TR_ABORT;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 level ) throw(SQLException, RuntimeException)
{
sal_Bool bValue(sal_False);
@@ -551,323 +551,323 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( sal_Int3
return bValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsSchemasInDataManipulation_throw( )
{
return (getInt32Property(OUString("Schema Usage")) & DBPROPVAL_SU_DML_STATEMENTS) == DBPROPVAL_SU_DML_STATEMENTS;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException)
{
sal_Int32 nProp = getInt32Property(OUString("SQL Support"));
return (nProp == 512) || ((nProp & DBPROPVAL_SQL_ANSI92_FULL) == DBPROPVAL_SQL_ANSI92_FULL);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException)
{
sal_Int32 nProp = getInt32Property(OUString("SQL Support"));
return (nProp == 512) || ((nProp & DBPROPVAL_SQL_ANSI92_ENTRY) == DBPROPVAL_SQL_ANSI92_ENTRY);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException)
{
sal_Int32 nProp = getInt32Property(OUString("SQL Support"));
return (nProp == 512) || ((nProp & DBPROPVAL_SQL_ANSI89_IEF) == DBPROPVAL_SQL_ANSI89_IEF);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Schema Usage")) & DBPROPVAL_SU_INDEX_DEFINITION) == DBPROPVAL_SU_INDEX_DEFINITION;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsSchemasInTableDefinitions_throw( )
{
return (getInt32Property(OUString("Schema Usage")) & DBPROPVAL_SU_TABLE_DEFINITION) == DBPROPVAL_SU_TABLE_DEFINITION;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsCatalogsInTableDefinitions_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException)
{
if ( ADOS::isJetEngine(m_pConnection->getEngineType()) )
return sal_True;
return getBoolProperty(OUString("Outer Join Capabilities"));
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException)
{
return new ::connectivity::ODatabaseMetaDataResultSet(::connectivity::ODatabaseMetaDataResultSet::eTableTypes);
}
-// -------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaData::impl_getMaxStatements_throw( )
{
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxProcedureNameLength( ) throw(SQLException, RuntimeException)
{
return getMaxSize(DBLITERAL_PROCEDURE_NAME);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLException, RuntimeException)
{
return getMaxSize(DBLITERAL_SCHEMA_NAME);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("Transaction DDL")) == DBPROPVAL_TC_NONE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException)
{
return getBoolProperty(OUString("Read-Only Data Source"));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("NULL Concatenation Behavior")) == DBPROPVAL_CB_NULL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException)
{
return isCapable(DBLITERAL_COLUMN_ALIAS);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
return isCapable(DBLITERAL_CORRELATION_NAME);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 /*fromType*/, sal_Int32 /*toType*/ ) throw(SQLException, RuntimeException)
{
return getBoolProperty(OUString("Rowset Conversions on Command"));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException)
{
return getBoolProperty(OUString("ORDER BY Columns in Select List"));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("GROUP BY Support")) != DBPROPVAL_GB_NOT_SUPPORTED;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("GROUP BY Support")) != DBPROPVAL_GB_CONTAINS_SELECT;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("GROUP BY Support")) == DBPROPVAL_GB_NO_RELATION;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException)
{
return isCapable(DBLITERAL_ESCAPE_PERCENT);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException)
{
return getBoolProperty(OUString("ORDER BY Columns in Select List"));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Identifier Case Sensitivity")) & DBPROPVAL_IC_MIXED) == DBPROPVAL_IC_MIXED;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( )
{
return (getInt32Property(OUString("Identifier Case Sensitivity")) & DBPROPVAL_IC_MIXED) == DBPROPVAL_IC_MIXED;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("NULL Collation Order")) & DBPROPVAL_NC_END) == DBPROPVAL_NC_END;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("NULL Collation Order")) & DBPROPVAL_NC_START) == DBPROPVAL_NC_START;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("NULL Collation Order")) & DBPROPVAL_NC_HIGH) == DBPROPVAL_NC_HIGH;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("NULL Collation Order")) & DBPROPVAL_NC_LOW) == DBPROPVAL_NC_LOW;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Schema Usage")) & DBPROPVAL_SU_PRIVILEGE_DEFINITION) == DBPROPVAL_SU_PRIVILEGE_DEFINITION;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Subquery Support")) & DBPROPVAL_SQ_CORRELATEDSUBQUERIES) == DBPROPVAL_SQ_CORRELATEDSUBQUERIES;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Subquery Support")) & DBPROPVAL_SQ_COMPARISON) == DBPROPVAL_SQ_COMPARISON;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Subquery Support")) & DBPROPVAL_SQ_EXISTS) == DBPROPVAL_SQ_EXISTS;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Subquery Support")) & DBPROPVAL_SQ_IN) == DBPROPVAL_SQ_IN;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException)
{
return (getInt32Property(OUString("Subquery Support")) & DBPROPVAL_SQ_QUANTIFIED) == DBPROPVAL_SQ_QUANTIFIED;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException)
{
sal_Int32 nProp = getInt32Property(OUString("SQL Support"));
return (nProp == 512) || ((nProp & DBPROPVAL_SQL_ANSI92_INTERMEDIATE) == DBPROPVAL_SQL_ANSI92_INTERMEDIATE);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getURL( ) throw(SQLException, RuntimeException)
{
return OUString("sdbc:ado:")+ m_pADOConnection->GetConnectionString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getUserName( ) throw(SQLException, RuntimeException)
{
return getStringProperty(OUString("User Name"));
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDriverName( ) throw(SQLException, RuntimeException)
{
return getStringProperty(OUString("Provider Friendly Name"));
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDriverVersion( ) throw(SQLException, RuntimeException)
{
return getStringProperty(OUString("Provider Version"));
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion( ) throw(SQLException, RuntimeException)
{
return getStringProperty(OUString("DBMS Version"));
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName( ) throw(SQLException, RuntimeException)
{
return getStringProperty(OUString("DBMS Name"));
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getProcedureTerm( ) throw(SQLException, RuntimeException)
{
return getStringProperty(OUString("Procedure Term"));
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSchemaTerm( ) throw(SQLException, RuntimeException)
{
return getStringProperty(OUString("Schema Term"));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion( ) throw(RuntimeException)
{
return 1;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation( ) throw(SQLException, RuntimeException)
{
sal_Int32 nRet = TransactionIsolation::NONE;
@@ -890,12 +890,12 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation( ) throw(S
}
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSQLKeywords( ) throw(SQLException, RuntimeException)
{
ADORecordset *pRecordset = NULL;
@@ -925,151 +925,151 @@ OUString SAL_CALL ODatabaseMetaData::getSQLKeywords( ) throw(SQLException, Runt
}
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape( ) throw(SQLException, RuntimeException)
{
return getLiteral(DBLITERAL_ESCAPE_PERCENT);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getStringFunctions( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue.copy(0,aValue.lastIndexOf(','));
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue.copy(0,aValue.lastIndexOf(','));
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException)
{
sal_Int32 nProp = getInt32Property(OUString("SQL Support"));
return (nProp == 512) || ((nProp & DBPROPVAL_SQL_ODBC_EXTENDED) == DBPROPVAL_SQL_ODBC_EXTENDED);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException)
{
sal_Int32 nProp = getInt32Property(OUString("SQL Support"));
return (nProp == 512) || ((nProp & DBPROPVAL_SQL_ODBC_CORE) == DBPROPVAL_SQL_ODBC_CORE);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException)
{
sal_Int32 nProp = getInt32Property(OUString("SQL Support"));
return (nProp == 512) || ((nProp & DBPROPVAL_SQL_ODBC_MINIMUM) == DBPROPVAL_SQL_ODBC_MINIMUM);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException)
{
if ( ADOS::isJetEngine(m_pConnection->getEngineType()) )
return sal_True;
return (getInt32Property(OUString("Outer Join Capabilities")) & 0x00000004L) == 0x00000004L;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException)
{
return supportsFullOuterJoins( );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("Max Columns in GROUP BY"));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInOrderBy( ) throw(SQLException, RuntimeException)
{
return getInt32Property(OUString("Max Columns in ORDER BY"));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInSelect( ) throw(SQLException, RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxUserNameLength( ) throw(SQLException, RuntimeException)
{
return getMaxSize(DBLITERAL_USER_NAME);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 /*setType*/, sal_Int32 /*concurrency*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
return ResultSetType::FORWARD_ONLY != setType;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
return ResultSetType::FORWARD_ONLY != setType;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
return ResultSetType::FORWARD_ONLY != setType;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
return ResultSetType::FORWARD_ONLY != setType;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
return ResultSetType::FORWARD_ONLY != setType;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
return ResultSetType::FORWARD_ONLY != setType;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
return ResultSetType::FORWARD_ONLY != setType;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
return ResultSetType::FORWARD_ONLY != setType;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
return ResultSetType::FORWARD_ONLY != setType;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& /*typeNamePattern*/, const Sequence< sal_Int32 >& /*types*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XDatabaseMetaData::getUDTs", *this );
return Reference< XResultSet >();
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/ADatabaseMetaDataImpl.cxx b/connectivity/source/drivers/ado/ADatabaseMetaDataImpl.cxx
index 1fa5f97f92be..100c1ae27e2e 100644
--- a/connectivity/source/drivers/ado/ADatabaseMetaDataImpl.cxx
+++ b/connectivity/source/drivers/ado/ADatabaseMetaDataImpl.cxx
@@ -41,7 +41,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::uno;
-// -------------------------------------------------------------------------
+
void ODatabaseMetaData::fillLiterals()
{
ADORecordset *pRecordset = NULL;
@@ -78,7 +78,7 @@ void ODatabaseMetaData::fillLiterals()
aRecordset.Close();
}
}
-// -------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaData::getMaxSize(sal_uInt32 _nId)
{
if(!m_aLiteralInfo.size())
@@ -90,7 +90,7 @@ sal_Int32 ODatabaseMetaData::getMaxSize(sal_uInt32 _nId)
nSize = (static_cast<sal_Int32>((*aIter).second.cchMaxLen) == (-1)) ? 0 : (*aIter).second.cchMaxLen;
return nSize;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::isCapable(sal_uInt32 _nId)
{
if(!m_aLiteralInfo.size())
@@ -102,7 +102,7 @@ sal_Bool ODatabaseMetaData::isCapable(sal_uInt32 _nId)
return bSupported;
}
-// -------------------------------------------------------------------------
+
OUString ODatabaseMetaData::getLiteral(sal_uInt32 _nId)
{
if(!m_aLiteralInfo.size())
@@ -113,8 +113,8 @@ OUString ODatabaseMetaData::getLiteral(sal_uInt32 _nId)
sStr = (*aIter).second.pwszLiteralValue;
return sStr;
}
-// -----------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
void ODatabaseMetaDataResultSetMetaData::setColumnPrivilegesMap()
{
m_mColumns[8] = OColumn(OUString(),OUString("IS_GRANTABLE"),
@@ -122,7 +122,7 @@ void ODatabaseMetaDataResultSetMetaData::setColumnPrivilegesMap()
3,3,0,
DataType::VARCHAR);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSetMetaData::setColumnsMap()
{
m_mColumns[6] = OColumn(OUString(),OUString("TYPE_NAME"),
@@ -154,7 +154,7 @@ void ODatabaseMetaDataResultSetMetaData::setColumnsMap()
1,1,0,
DataType::INTEGER);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSetMetaData::setTablesMap()
{
m_mColumns[5] = OColumn(OUString(),OUString("REMARKS"),
@@ -162,7 +162,7 @@ void ODatabaseMetaDataResultSetMetaData::setTablesMap()
0,0,0,
DataType::VARCHAR);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSetMetaData::setProcedureColumnsMap()
{
m_mColumns[12] = OColumn(OUString(),OUString("NULLABLE"),
@@ -170,7 +170,7 @@ void ODatabaseMetaDataResultSetMetaData::setProcedureColumnsMap()
1,1,0,
DataType::INTEGER);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSetMetaData::setPrimaryKeysMap()
{
m_mColumns[5] = OColumn(OUString(),OUString("KEY_SEQ"),
@@ -182,7 +182,7 @@ void ODatabaseMetaDataResultSetMetaData::setPrimaryKeysMap()
0,0,0,
DataType::VARCHAR);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSetMetaData::setIndexInfoMap()
{
m_mColumns[4] = OColumn(OUString(),OUString("NON_UNIQUE"),
@@ -198,7 +198,7 @@ void ODatabaseMetaDataResultSetMetaData::setIndexInfoMap()
0,0,0,
DataType::VARCHAR);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSetMetaData::setTablePrivilegesMap()
{
m_mColumns[6] = OColumn(OUString(),OUString("PRIVILEGE"),
@@ -210,7 +210,7 @@ void ODatabaseMetaDataResultSetMetaData::setTablePrivilegesMap()
0,0,0,
DataType::VARCHAR);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSetMetaData::setCrossReferenceMap()
{
m_mColumns[9] = OColumn(OUString(),OUString("KEY_SEQ"),
@@ -218,7 +218,7 @@ void ODatabaseMetaDataResultSetMetaData::setCrossReferenceMap()
1,1,0,
DataType::INTEGER);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSetMetaData::setTypeInfoMap()
{
m_mColumns[3] = OColumn(OUString(),OUString("PRECISION"),
@@ -246,7 +246,7 @@ void ODatabaseMetaDataResultSetMetaData::setTypeInfoMap()
1,1,0,
DataType::INTEGER);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSetMetaData::setProceduresMap()
{
m_mColumns[7] = OColumn(OUString(),OUString("REMARKS"),
@@ -254,49 +254,49 @@ void ODatabaseMetaDataResultSetMetaData::setProceduresMap()
0,0,0,
DataType::VARCHAR);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isSearchable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end())
return (*m_mColumnsIter).second.isSearchable();
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isAutoIncrement( sal_Int32 column ) throw(SQLException, RuntimeException)
{
if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end())
return (*m_mColumnsIter).second.isAutoIncrement();
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaDataResultSetMetaData::getColumnServiceName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end())
return (*m_mColumnsIter).second.getColumnServiceName();
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaDataResultSetMetaData::getTableName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end())
return (*m_mColumnsIter).second.getTableName();
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaDataResultSetMetaData::getCatalogName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end())
return (*m_mColumnsIter).second.getCatalogName();
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaDataResultSetMetaData::getColumnTypeName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end())
return (*m_mColumnsIter).second.getColumnTypeName();
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isCaseSensitive( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -304,7 +304,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isCaseSensitive( sal_Int32
return (*m_mColumnsIter).second.isCaseSensitive();
return sal_True;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaDataResultSetMetaData::getSchemaName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -312,8 +312,8 @@ OUString SAL_CALL ODatabaseMetaDataResultSetMetaData::getSchemaName( sal_Int32 c
return (*m_mColumnsIter).second.getSchemaName();
return OUString();
}
-// -----------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
ObjectTypeEnum OAdoGroup::MapObjectType(sal_Int32 _ObjType)
{
ObjectTypeEnum eNumType= adPermObjTable;
@@ -330,7 +330,7 @@ ObjectTypeEnum OAdoGroup::MapObjectType(sal_Int32 _ObjType)
}
return eNumType;
}
-// -------------------------------------------------------------------------
+
sal_Int32 OAdoGroup::MapRight(RightsEnum _eNum)
{
sal_Int32 nRight = 0;
@@ -355,7 +355,7 @@ sal_Int32 OAdoGroup::MapRight(RightsEnum _eNum)
return nRight;
}
-// -------------------------------------------------------------------------
+
RightsEnum OAdoGroup::Map2Right(sal_Int32 _eNum)
{
sal_Int32 nRight = adRightNone;
@@ -388,7 +388,7 @@ RightsEnum OAdoGroup::Map2Right(sal_Int32 _eNum)
return (RightsEnum)nRight;
}
-// -------------------------------------------------------------------------
+
void WpADOIndex::Create()
{
_ADOIndex* pIndex = NULL;
@@ -405,7 +405,7 @@ void WpADOIndex::Create()
pIndex->Release();
}
}
-// -------------------------------------------------------------------------
+
void OAdoIndex::fillPropertyValues()
{
if(m_aIndex.IsValid())
@@ -416,7 +416,7 @@ void OAdoIndex::fillPropertyValues()
m_IsClustered = m_aIndex.get_Clustered();
}
}
-// -----------------------------------------------------------------------------
+
void WpADOKey::Create()
{
_ADOKey* pKey = NULL;
@@ -433,7 +433,7 @@ void WpADOKey::Create()
pKey->Release();
}
}
-// -------------------------------------------------------------------------
+
void OAdoKey::fillPropertyValues()
{
if(m_aKey.IsValid())
@@ -445,7 +445,7 @@ void OAdoKey::fillPropertyValues()
m_aProps->m_DeleteRule = MapRule(m_aKey.get_DeleteRule());
}
}
-// -------------------------------------------------------------------------
+
sal_Int32 OAdoKey::MapRule(const RuleEnum& _eNum)
{
sal_Int32 eNum = KeyRule::NO_ACTION;
@@ -466,7 +466,7 @@ sal_Int32 OAdoKey::MapRule(const RuleEnum& _eNum)
}
return eNum;
}
-// -------------------------------------------------------------------------
+
RuleEnum OAdoKey::Map2Rule(const sal_Int32& _eNum)
{
RuleEnum eNum = adRINone;
@@ -487,7 +487,7 @@ RuleEnum OAdoKey::Map2Rule(const sal_Int32& _eNum)
}
return eNum;
}
-// -------------------------------------------------------------------------
+
sal_Int32 OAdoKey::MapKeyRule(const KeyTypeEnum& _eNum)
{
sal_Int32 nKeyType = KeyType::PRIMARY;
@@ -505,7 +505,7 @@ sal_Int32 OAdoKey::MapKeyRule(const KeyTypeEnum& _eNum)
}
return nKeyType;
}
-// -------------------------------------------------------------------------
+
KeyTypeEnum OAdoKey::Map2KeyRule(const sal_Int32& _eNum)
{
KeyTypeEnum eNum( adKeyPrimary );
@@ -525,7 +525,7 @@ KeyTypeEnum OAdoKey::Map2KeyRule(const sal_Int32& _eNum)
}
return eNum;
}
-// -----------------------------------------------------------------------------
+
void WpADOTable::Create()
{
_ADOTable* pTable = NULL;
@@ -542,7 +542,7 @@ void WpADOTable::Create()
pTable->Release();
}
}
-// -------------------------------------------------------------------------
+
OUString WpADOCatalog::GetObjectOwner(const OUString& _rName, ObjectTypeEnum _eNum)
{
OLEVariant _rVar;
@@ -552,7 +552,7 @@ OUString WpADOCatalog::GetObjectOwner(const OUString& _rName, ObjectTypeEnum _eN
pInterface->GetObjectOwner(sStr1,_eNum,_rVar,&aBSTR);
return aBSTR;
}
-// -----------------------------------------------------------------------------
+
void OAdoTable::fillPropertyValues()
{
if(m_aTable.IsValid())
@@ -571,7 +571,7 @@ void OAdoTable::fillPropertyValues()
}
}
}
-// -----------------------------------------------------------------------------
+
void WpADOUser::Create()
{
_ADOUser* pUser = NULL;
@@ -588,7 +588,7 @@ void WpADOUser::Create()
pUser->Release();
}
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx b/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx
index 74ccdee09ec3..36caa9a53f3e 100644
--- a/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx
+++ b/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx
@@ -41,14 +41,14 @@ using namespace dbtools;
using namespace connectivity::ado;
using namespace cppu;
using namespace ::comphelper;
-//------------------------------------------------------------------------------
+
using namespace ::com::sun::star::lang;
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
-// -------------------------------------------------------------------------
+
ODatabaseMetaDataResultSet::ODatabaseMetaDataResultSet(ADORecordset* _pRecordSet)
:ODatabaseMetaDataResultSet_BASE(m_aMutex)
,OPropertySetHelper(ODatabaseMetaDataResultSet_BASE::rBHelper)
@@ -75,13 +75,13 @@ ODatabaseMetaDataResultSet::ODatabaseMetaDataResultSet(ADORecordset* _pRecordSet
// allocBuffer();
}
-// -------------------------------------------------------------------------
+
ODatabaseMetaDataResultSet::~ODatabaseMetaDataResultSet()
{
if(m_pRecordSet)
m_pRecordSet->Release();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::disposing(void)
{
OPropertySetHelper::disposing();
@@ -92,13 +92,13 @@ void ODatabaseMetaDataResultSet::disposing(void)
m_aStatement = NULL;
m_xMetaData.clear();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL ODatabaseMetaDataResultSet::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OPropertySetHelper::queryInterface(rType);
return aRet.hasValue() ? aRet : ODatabaseMetaDataResultSet_BASE::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL ODatabaseMetaDataResultSet::getTypes( ) throw(::com::sun::star::uno::RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet > *)0 ),
@@ -107,13 +107,13 @@ Any SAL_CALL ODatabaseMetaDataResultSet::queryInterface( const Type & rType ) th
return ::comphelper::concatSequences(aTypes.getTypes(),ODatabaseMetaDataResultSet_BASE::getTypes());
}
-// -----------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::checkRecordSet() throw(SQLException)
{
if(!m_pRecordSet)
throwFunctionSequenceException(*this);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::findColumn( const OUString& columnName ) throw(SQLException, RuntimeException)
{
@@ -136,7 +136,7 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::findColumn( const OUString& colum
return 0; // Never reached
}
#define BLOCK_SIZE 256
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL ODatabaseMetaDataResultSet::getBinaryStream( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -179,14 +179,14 @@ Reference< ::com::sun::star::io::XInputStream > SAL_CALL ODatabaseMetaDataResult
return NULL;
return new SequenceInputStream(m_aValue);
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL ODatabaseMetaDataResultSet::getCharacterStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getCharacterStream", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::getBoolean( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -199,7 +199,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::getBoolean( sal_Int32 columnIndex
}
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL ODatabaseMetaDataResultSet::getByte( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -218,31 +218,31 @@ sal_Int8 SAL_CALL ODatabaseMetaDataResultSet::getByte( sal_Int32 columnIndex ) t
return m_aValue;
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL ODatabaseMetaDataResultSet::getBytes( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Date SAL_CALL ODatabaseMetaDataResultSet::getDate( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
double SAL_CALL ODatabaseMetaDataResultSet::getDouble( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
float SAL_CALL ODatabaseMetaDataResultSet::getFloat( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::getInt( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -262,21 +262,21 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::getInt( sal_Int32 columnIndex ) t
return m_aValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::getRow( ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XResultSet::getRow", *this );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL ODatabaseMetaDataResultSet::getLong( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getLong", *this );
return sal_Int64(0);
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL ODatabaseMetaDataResultSet::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -291,34 +291,34 @@ Reference< XResultSetMetaData > SAL_CALL ODatabaseMetaDataResultSet::getMetaData
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL ODatabaseMetaDataResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getRow", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL ODatabaseMetaDataResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getRow", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL ODatabaseMetaDataResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getRow", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL ODatabaseMetaDataResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getRow", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL ODatabaseMetaDataResultSet::getObject( sal_Int32 columnIndex, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
@@ -331,7 +331,7 @@ Any SAL_CALL ODatabaseMetaDataResultSet::getObject( sal_Int32 columnIndex, const
columnIndex = mapColumn(columnIndex);
return Any();
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL ODatabaseMetaDataResultSet::getShort( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -350,7 +350,7 @@ sal_Int16 SAL_CALL ODatabaseMetaDataResultSet::getShort( sal_Int32 columnIndex )
return m_aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaDataResultSet::getString( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -368,21 +368,21 @@ OUString SAL_CALL ODatabaseMetaDataResultSet::getString( sal_Int32 columnIndex )
return m_aValue;
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Time SAL_CALL ODatabaseMetaDataResultSet::getTime( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::DateTime SAL_CALL ODatabaseMetaDataResultSet::getTimestamp( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isAfterLast( ) throw(SQLException, RuntimeException)
{
@@ -396,7 +396,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isAfterLast( ) throw(SQLException
m_pRecordSet->get_EOF(&bIsAtEOF);
return bIsAtEOF == VARIANT_TRUE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isFirst( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -407,7 +407,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isFirst( ) throw(SQLException, Ru
return m_nRowPos == 1;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isLast( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -418,7 +418,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isLast( ) throw(SQLException, Run
return sal_True;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -430,7 +430,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::beforeFirst( ) throw(SQLException, Ru
if(first())
previous();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::afterLast( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -443,7 +443,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::afterLast( ) throw(SQLException, Runt
next();
m_bEOF = sal_True;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::close( ) throw(SQLException, RuntimeException)
{
@@ -454,7 +454,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::close( ) throw(SQLException, RuntimeE
}
dispose();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::first( ) throw(SQLException, RuntimeException)
{
@@ -470,7 +470,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::first( ) throw(SQLException, Runt
m_nRowPos = 1;
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::last( ) throw(SQLException, RuntimeException)
{
@@ -480,7 +480,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::last( ) throw(SQLException, Runti
return m_pRecordSet && SUCCEEDED(m_pRecordSet->MoveLast()) ? sal_True : sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::absolute( sal_Int32 row ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -498,7 +498,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::absolute( sal_Int32 row ) throw(SQ
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::relative( sal_Int32 row ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -515,7 +515,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::relative( sal_Int32 row ) throw(SQ
m_nRowPos += row;
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::previous( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -530,12 +530,12 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::previous( ) throw(SQLException, R
--m_nRowPos;
return bRet;
}
-// -------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL ODatabaseMetaDataResultSet::getStatement( ) throw(SQLException, RuntimeException)
{
return m_aStatement.get();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowDeleted( ) throw(SQLException, RuntimeException)
{
@@ -549,7 +549,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowDeleted( ) throw(SQLException,
m_pRecordSet->get_Status((sal_Int32*)&eRec);
return (eRec & adRecDeleted) == adRecDeleted;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowInserted( ) throw(SQLException, RuntimeException)
{ ::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(ODatabaseMetaDataResultSet_BASE::rBHelper.bDisposed);
@@ -561,7 +561,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowInserted( ) throw(SQLException
m_pRecordSet->get_Status((sal_Int32*)&eRec);
return (eRec & adRecNew) == adRecNew;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowUpdated( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -574,7 +574,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowUpdated( ) throw(SQLException,
m_pRecordSet->get_Status((sal_Int32*)&eRec);
return (eRec & adRecModified) == adRecModified;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isBeforeFirst( ) throw(SQLException, RuntimeException)
{
@@ -589,7 +589,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isBeforeFirst( ) throw(SQLExcepti
m_pRecordSet->get_BOF(&bIsAtBOF);
return bIsAtBOF == VARIANT_TRUE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::next( ) throw(SQLException, RuntimeException)
{
@@ -608,7 +608,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::next( ) throw(SQLException, Runti
else
return SUCCEEDED(m_pRecordSet->MoveNext());
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::wasNull( ) throw(SQLException, RuntimeException)
{
@@ -620,7 +620,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::wasNull( ) throw(SQLException, Ru
return m_aValue.isNull();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::refreshRow( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -631,7 +631,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::refreshRow( ) throw(SQLException, Run
m_pRecordSet->Resync(adAffectCurrent,adResyncAllValues);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::cancel( ) throw(RuntimeException)
{
@@ -643,34 +643,34 @@ void SAL_CALL ODatabaseMetaDataResultSet::cancel( ) throw(RuntimeException)
m_pRecordSet->Cancel();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::clearWarnings( ) throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL ODatabaseMetaDataResultSet::getWarnings( ) throw(SQLException, RuntimeException)
{
return Any();
}
-//------------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaDataResultSet::getResultSetConcurrency() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return ResultSetConcurrency::READ_ONLY;
}
-//------------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaDataResultSet::getResultSetType() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return ResultSetType::FORWARD_ONLY;
}
-//------------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaDataResultSet::getFetchDirection() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return FetchDirection::FORWARD;
}
-//------------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaDataResultSet::getFetchSize() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -679,27 +679,27 @@ sal_Int32 ODatabaseMetaDataResultSet::getFetchSize() const
m_pRecordSet->get_CacheSize(&nValue);
return nValue;
}
-//------------------------------------------------------------------------------
+
OUString ODatabaseMetaDataResultSet::getCursorName() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return OUString();
}
-//------------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setFetchDirection(sal_Int32 /*_par0*/)
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "ResultSet::FetchDirection", *this );
}
-//------------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setFetchSize(sal_Int32 _par0)
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
if(m_pRecordSet)
m_pRecordSet->put_CacheSize(_par0);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* ODatabaseMetaDataResultSet::createArrayHelper( ) const
{
@@ -714,12 +714,12 @@ void ODatabaseMetaDataResultSet::setFetchSize(sal_Int32 _par0)
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & ODatabaseMetaDataResultSet::getInfoHelper()
{
return *const_cast<ODatabaseMetaDataResultSet*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaDataResultSet::convertFastPropertyValue(
Any & rConvertedValue,
Any & rOldValue,
@@ -742,7 +742,7 @@ sal_Bool ODatabaseMetaDataResultSet::convertFastPropertyValue(
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setFastPropertyValue_NoBroadcast(
sal_Int32 nHandle,
const Any& /*rValue*/
@@ -761,7 +761,7 @@ void ODatabaseMetaDataResultSet::setFastPropertyValue_NoBroadcast(
OSL_FAIL("setFastPropertyValue_NoBroadcast: Illegal handle value!");
}
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::getFastPropertyValue(
Any& rValue,
sal_Int32 nHandle
@@ -786,7 +786,7 @@ void ODatabaseMetaDataResultSet::getFastPropertyValue(
break;
}
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setProceduresMap()
{
@@ -808,21 +808,21 @@ void ODatabaseMetaDataResultSet::setProceduresMap()
pMetaData->setProceduresMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setCatalogsMap()
{
m_aColMapping.push_back(1);
m_xMetaData = new ODatabaseMetaDataResultSetMetaData(m_pRecordSet,this);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setSchemasMap()
{
m_aColMapping.push_back(2);
m_xMetaData = new ODatabaseMetaDataResultSetMetaData(m_pRecordSet,this);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setColumnPrivilegesMap()
{
@@ -838,7 +838,7 @@ void ODatabaseMetaDataResultSet::setColumnPrivilegesMap()
pMetaData->setColumnPrivilegesMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setColumnsMap()
{
@@ -915,7 +915,7 @@ void ODatabaseMetaDataResultSet::setColumnsMap()
pMetaData->setColumnsMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setTablesMap()
{
@@ -927,7 +927,7 @@ void ODatabaseMetaDataResultSet::setTablesMap()
pMetaData->setTablesMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setProcedureColumnsMap()
{
@@ -994,7 +994,7 @@ void ODatabaseMetaDataResultSet::setProcedureColumnsMap()
pMetaData->setProcedureColumnsMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setPrimaryKeysMap()
{
@@ -1008,7 +1008,7 @@ void ODatabaseMetaDataResultSet::setPrimaryKeysMap()
pMetaData->setProcedureColumnsMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setIndexInfoMap()
{
@@ -1050,7 +1050,7 @@ void ODatabaseMetaDataResultSet::setIndexInfoMap()
pMetaData->setIndexInfoMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setTablePrivilegesMap()
{
@@ -1072,7 +1072,7 @@ void ODatabaseMetaDataResultSet::setTablePrivilegesMap()
pMetaData->setTablePrivilegesMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setCrossReferenceMap()
{
@@ -1103,7 +1103,7 @@ void ODatabaseMetaDataResultSet::setCrossReferenceMap()
pMetaData->setCrossReferenceMap();
m_xMetaData = pMetaData;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setTypeInfoMap(sal_Bool _bJetEngine)
{
sal_Int32 i=1;
@@ -1181,22 +1181,22 @@ void ODatabaseMetaDataResultSet::setTypeInfoMap(sal_Bool _bJetEngine)
pMetaData->setTypeInfoMap();
m_xMetaData = pMetaData;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::acquire() throw()
{
ODatabaseMetaDataResultSet_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::release() throw()
{
ODatabaseMetaDataResultSet_BASE::release();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL ODatabaseMetaDataResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
OLEVariant ODatabaseMetaDataResultSet::getValue(sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1208,7 +1208,7 @@ OLEVariant ODatabaseMetaDataResultSet::getValue(sal_Int32 columnIndex ) throw(SQ
aField.get_Value(m_aValue);
return m_aValue;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/ADatabaseMetaDataResultSetMetaData.cxx b/connectivity/source/drivers/ado/ADatabaseMetaDataResultSetMetaData.cxx
index e0905ed37f02..011e347625d4 100644
--- a/connectivity/source/drivers/ado/ADatabaseMetaDataResultSetMetaData.cxx
+++ b/connectivity/source/drivers/ado/ADatabaseMetaDataResultSetMetaData.cxx
@@ -29,13 +29,13 @@ using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
-// -------------------------------------------------------------------------
+
ODatabaseMetaDataResultSetMetaData::~ODatabaseMetaDataResultSetMetaData()
{
if(m_pRecordSet)
m_pRecordSet->Release();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSetMetaData::getColumnDisplaySize( sal_Int32 column ) throw(SQLException, RuntimeException)
{
sal_Int32 nSize = 0;
@@ -49,7 +49,7 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSetMetaData::getColumnDisplaySize( sal
}
return nSize;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSetMetaData::getColumnType( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -63,7 +63,7 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSetMetaData::getColumnType( sal_Int32
}
return nType;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSetMetaData::getColumnCount( ) throw(SQLException, RuntimeException)
{
@@ -81,7 +81,7 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSetMetaData::getColumnCount( ) throw(
m_nColCount = aFields.GetItemCount();
return m_nColCount;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaDataResultSetMetaData::getColumnName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -95,14 +95,14 @@ OUString SAL_CALL ODatabaseMetaDataResultSetMetaData::getColumnName( sal_Int32 c
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaDataResultSetMetaData::getColumnLabel( sal_Int32 column ) throw(SQLException, RuntimeException)
{
if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end())
return (*m_mColumnsIter).second.getColumnLabel();
return getColumnName(column);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -117,7 +117,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isCurrency( sal_Int32 colu
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isSigned( sal_Int32 column ) throw(SQLException, RuntimeException)
@@ -133,7 +133,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isSigned( sal_Int32 column
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQLException, RuntimeException)
{
if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end())
@@ -145,7 +145,7 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSetMetaData::getPrecision( sal_Int32 c
return aField.GetPrecision();
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSetMetaData::getScale( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end())
@@ -159,7 +159,7 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSetMetaData::getScale( sal_Int32 colum
return aField.GetNumericScale();
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSetMetaData::isNullable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -176,7 +176,7 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSetMetaData::isNullable( sal_Int32 col
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isReadOnly( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -193,7 +193,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isReadOnly( sal_Int32 colu
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isDefinitelyWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -211,14 +211,14 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isDefinitelyWritable( sal_
return sal_False;
;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
if(m_mColumns.size() && (m_mColumnsIter = m_mColumns.find(column)) != m_mColumns.end())
return (*m_mColumnsIter).second.isWritable();
return isDefinitelyWritable(column);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/ADriver.cxx b/connectivity/source/drivers/ado/ADriver.cxx
index 3daa811fcf14..0f4958bca242 100644
--- a/connectivity/source/drivers/ado/ADriver.cxx
+++ b/connectivity/source/drivers/ado/ADriver.cxx
@@ -39,8 +39,8 @@ using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
-// --------------------------------------------------------------------------------
-// --------------------------------------------------------------------------------
+
+
ODriver::ODriver(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB)
: ODriver_BASE(m_aMutex)
,m_xORB(_xORB)
@@ -53,13 +53,13 @@ ODriver::ODriver(const ::com::sun::star::uno::Reference< ::com::sun::star::lang:
++h;
}
}
-// -------------------------------------------------------------------------
+
ODriver::~ODriver()
{
CoUninitialize();
CoInitialize(NULL);
}
-//------------------------------------------------------------------------------
+
void ODriver::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -76,12 +76,12 @@ void ODriver::disposing()
ODriver_BASE::disposing();
}
// static ServiceInfo
-//------------------------------------------------------------------------------
+
OUString ODriver::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString("com.sun.star.comp.sdbc.ado.ODriver");
}
-//------------------------------------------------------------------------------
+
Sequence< OUString > ODriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 2 );
@@ -89,13 +89,13 @@ Sequence< OUString > ODriver::getSupportedServiceNames_Static( ) throw (Runtime
aSNS[1] = "com.sun.star.sdbcx.Driver";
return aSNS;
}
-//------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL connectivity::ado::ODriver_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception )
{
return *(new ODriver(_rxFactory));
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL ODriver::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
@@ -106,13 +106,13 @@ sal_Bool SAL_CALL ODriver::supportsService( const OUString& _rServiceName ) thro
return cppu::supportsService(this, _rServiceName);
}
-// --------------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL ODriver::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
-// --------------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL ODriver::connect( const OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
if ( ! acceptsURL(url) )
@@ -125,13 +125,13 @@ Reference< XConnection > SAL_CALL ODriver::connect( const OUString& url, const S
return xCon;
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODriver::acceptsURL( const OUString& url )
throw(SQLException, RuntimeException)
{
return url.startsWith("sdbc:ado:");
}
-// -----------------------------------------------------------------------------
+
void ODriver::impl_checkURL_throw(const OUString& _sUrl)
{
if ( !acceptsURL(_sUrl) )
@@ -141,7 +141,7 @@ void ODriver::impl_checkURL_throw(const OUString& _sUrl)
::dbtools::throwGenericSQLException(sMessage ,*this);
} // if ( !acceptsURL(_sUrl) )
}
-// --------------------------------------------------------------------------------
+
Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString& url, const Sequence< PropertyValue >& /*info*/ ) throw(SQLException, RuntimeException)
{
impl_checkURL_throw(url);
@@ -178,17 +178,17 @@ Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString
}
return Sequence< DriverPropertyInfo >();
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODriver::getMajorVersion( ) throw(RuntimeException)
{
return 1;
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODriver::getMinorVersion( ) throw(RuntimeException)
{
return 0;
}
-// --------------------------------------------------------------------------------
+
// XDataDefinitionSupplier
Reference< XTablesSupplier > SAL_CALL ODriver::getDataDefinitionByConnection( const Reference< ::com::sun::star::sdbc::XConnection >& connection ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
@@ -229,14 +229,14 @@ Reference< XTablesSupplier > SAL_CALL ODriver::getDataDefinitionByConnection( co
}
return xTab;
}
-// --------------------------------------------------------------------------------
+
Reference< XTablesSupplier > SAL_CALL ODriver::getDataDefinitionByURL( const OUString& url, const Sequence< PropertyValue >& info ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
impl_checkURL_throw(url);
return getDataDefinitionByConnection(connect(url,info));
}
-// -----------------------------------------------------------------------------
+
void ADOS::ThrowException(ADOConnection* _pAdoCon,const Reference< XInterface >& _xInterface) throw(SQLException, RuntimeException)
{
ADOErrors *pErrors = NULL;
diff --git a/connectivity/source/drivers/ado/AGroup.cxx b/connectivity/source/drivers/ado/AGroup.cxx
index 1ef7304ddaef..473573e0cadc 100644
--- a/connectivity/source/drivers/ado/AGroup.cxx
+++ b/connectivity/source/drivers/ado/AGroup.cxx
@@ -34,7 +34,7 @@ using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
-// -------------------------------------------------------------------------
+
void WpADOGroup::Create()
{
ADOGroup* pGroup = NULL;
@@ -51,7 +51,7 @@ void WpADOGroup::Create()
pGroup->Release();
}
}
-// -------------------------------------------------------------------------
+
OAdoGroup::OAdoGroup(OCatalog* _pParent,sal_Bool _bCase, ADOGroup* _pGroup) : OGroup_ADO(_bCase),m_pCatalog(_pParent)
{
construct();
@@ -61,14 +61,14 @@ OAdoGroup::OAdoGroup(OCatalog* _pParent,sal_Bool _bCase, ADOGroup* _pGroup) :
m_aGroup.Create();
}
-// -------------------------------------------------------------------------
+
OAdoGroup::OAdoGroup(OCatalog* _pParent,sal_Bool _bCase, const OUString& _Name) : OGroup_ADO(_Name,_bCase),m_pCatalog(_pParent)
{
construct();
m_aGroup.Create();
m_aGroup.put_Name(_Name);
}
-// -------------------------------------------------------------------------
+
void OAdoGroup::refreshUsers()
{
TStringVector aVector;
@@ -81,7 +81,7 @@ void OAdoGroup::refreshUsers()
else
m_pUsers = new OUsers(m_pCatalog,m_aMutex,aVector,aUsers,isCaseSensitive());
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > OAdoGroup::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -98,7 +98,7 @@ Sequence< sal_Int8 > OAdoGroup::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OAdoGroup::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelImplementationId().getConstArray(), rId.getConstArray(), 16 ) )
@@ -106,7 +106,7 @@ sal_Int64 OAdoGroup::getSomething( const Sequence< sal_Int8 > & rId ) throw (Run
: OGroup_ADO::getSomething(rId);
}
-// -------------------------------------------------------------------------
+
void OAdoGroup::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue)throw (Exception)
{
if(m_aGroup.IsValid())
@@ -124,7 +124,7 @@ void OAdoGroup::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rV
}
}
}
-// -------------------------------------------------------------------------
+
void OAdoGroup::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
{
if(m_aGroup.IsValid())
@@ -137,13 +137,13 @@ void OAdoGroup::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
}
}
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OAdoGroup::getPrivileges( const OUString& objName, sal_Int32 objType ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
return MapRight(m_aGroup.GetPermissions(objName,MapObjectType(objType)));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OAdoGroup::getGrantablePrivileges( const OUString& objName, sal_Int32 objType ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
RightsEnum eNum = m_aGroup.GetPermissions(objName,MapObjectType(objType));
@@ -151,28 +151,28 @@ sal_Int32 SAL_CALL OAdoGroup::getGrantablePrivileges( const OUString& objName, s
return MapRight(eNum);
return 0;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OAdoGroup::grantPrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
m_aGroup.SetPermissions(objName,MapObjectType(objType),adAccessGrant,Map2Right(objPrivileges));
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OAdoGroup::revokePrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
m_aGroup.SetPermissions(objName,MapObjectType(objType),adAccessDeny,Map2Right(objPrivileges));
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAdoGroup::acquire() throw()
{
OGroup_ADO::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAdoGroup::release() throw()
{
OGroup_ADO::release();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/AGroups.cxx b/connectivity/source/drivers/ado/AGroups.cxx
index 33531fc4c2b6..ba19dbeb9a77 100644
--- a/connectivity/source/drivers/ado/AGroups.cxx
+++ b/connectivity/source/drivers/ado/AGroups.cxx
@@ -38,22 +38,22 @@ using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::container;
-// -------------------------------------------------------------------------
+
sdbcx::ObjectType OGroups::createObject(const OUString& _rName)
{
return new OAdoGroup(m_pCatalog,isCaseSensitive(),_rName);
}
-// -------------------------------------------------------------------------
+
void OGroups::impl_refresh() throw(RuntimeException)
{
m_aCollection.Refresh();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OGroups::createDescriptor()
{
return new OAdoGroup(m_pCatalog,isCaseSensitive());
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OGroups::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
@@ -64,13 +64,13 @@ sdbcx::ObjectType OGroups::appendObject( const OUString& _rForName, const Refere
m_aCollection.Append( pGroup->getImpl() );
return createObject( _rForName );
}
-// -------------------------------------------------------------------------
+
// XDrop
void OGroups::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName)
{
m_aCollection.Delete(_sElementName);
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/ado/AIndex.cxx b/connectivity/source/drivers/ado/AIndex.cxx
index 065a7e41a8b5..d0764651c348 100644
--- a/connectivity/source/drivers/ado/AIndex.cxx
+++ b/connectivity/source/drivers/ado/AIndex.cxx
@@ -35,7 +35,7 @@ using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
-// -------------------------------------------------------------------------
+
OAdoIndex::OAdoIndex(sal_Bool _bCase,OConnection* _pConnection,ADOIndex* _pIndex)
: OIndex_ADO(OUString(),OUString(),sal_False,sal_False,sal_False,_bCase)
,m_pConnection(_pConnection)
@@ -44,7 +44,7 @@ OAdoIndex::OAdoIndex(sal_Bool _bCase,OConnection* _pConnection,ADOIndex* _pIndex
m_aIndex = WpADOIndex(_pIndex);
fillPropertyValues();
}
-// -------------------------------------------------------------------------
+
OAdoIndex::OAdoIndex(sal_Bool _bCase,OConnection* _pConnection)
: OIndex_ADO(_bCase)
,m_pConnection(_pConnection)
@@ -53,7 +53,7 @@ OAdoIndex::OAdoIndex(sal_Bool _bCase,OConnection* _pConnection)
m_aIndex.Create();
}
-// -------------------------------------------------------------------------
+
void OAdoIndex::refreshColumns()
{
@@ -72,7 +72,7 @@ void OAdoIndex::refreshColumns()
m_pColumns = new OColumns(*this,m_aMutex,aVector,aColumns,isCaseSensitive(),m_pConnection);
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > OAdoIndex::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -89,14 +89,14 @@ Sequence< sal_Int8 > OAdoIndex::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OAdoIndex::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelImplementationId().getConstArray(), rId.getConstArray(), 16 ) )
? reinterpret_cast< sal_Int64 >( this )
: OIndex_ADO::getSomething(rId);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OAdoIndex::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue)throw (Exception)
{
if(m_aIndex.IsValid())
@@ -130,17 +130,17 @@ void SAL_CALL OAdoIndex::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,cons
}
OIndex_ADO::setFastPropertyValue_NoBroadcast(nHandle,rValue);
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAdoIndex::acquire() throw()
{
OIndex_ADO::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAdoIndex::release() throw()
{
OIndex_ADO::release();
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/ado/AIndexes.cxx b/connectivity/source/drivers/ado/AIndexes.cxx
index f5d5c49d5875..e95fd3db114b 100644
--- a/connectivity/source/drivers/ado/AIndexes.cxx
+++ b/connectivity/source/drivers/ado/AIndexes.cxx
@@ -42,17 +42,17 @@ sdbcx::ObjectType OIndexes::createObject(const OUString& _rName)
{
return new OAdoIndex(isCaseSensitive(),m_pConnection,m_aCollection.GetItem(_rName));
}
-// -------------------------------------------------------------------------
+
void OIndexes::impl_refresh() throw(RuntimeException)
{
m_aCollection.Refresh();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OIndexes::createDescriptor()
{
return new OAdoIndex(isCaseSensitive(),m_pConnection);
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OIndexes::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
@@ -69,13 +69,13 @@ sdbcx::ObjectType OIndexes::appendObject( const OUString& _rForName, const Refer
return new OAdoIndex(isCaseSensitive(),m_pConnection,pIndex->getImpl());
}
-// -------------------------------------------------------------------------
+
// XDrop
void OIndexes::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName)
{
m_aCollection.Delete(_sElementName);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/AKey.cxx b/connectivity/source/drivers/ado/AKey.cxx
index d92ca58646e1..d76bf93823b8 100644
--- a/connectivity/source/drivers/ado/AKey.cxx
+++ b/connectivity/source/drivers/ado/AKey.cxx
@@ -32,7 +32,7 @@ using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
-// -------------------------------------------------------------------------
+
OAdoKey::OAdoKey(sal_Bool _bCase,OConnection* _pConnection, ADOKey* _pKey)
: OKey_ADO(_bCase)
,m_pConnection(_pConnection)
@@ -41,7 +41,7 @@ OAdoKey::OAdoKey(sal_Bool _bCase,OConnection* _pConnection, ADOKey* _pKey)
m_aKey = WpADOKey(_pKey);
fillPropertyValues();
}
-// -------------------------------------------------------------------------
+
OAdoKey::OAdoKey(sal_Bool _bCase,OConnection* _pConnection)
: OKey_ADO(_bCase)
,m_pConnection(_pConnection)
@@ -49,7 +49,7 @@ OAdoKey::OAdoKey(sal_Bool _bCase,OConnection* _pConnection)
construct();
m_aKey.Create();
}
-// -------------------------------------------------------------------------
+
void OAdoKey::refreshColumns()
{
TStringVector aVector;
@@ -66,7 +66,7 @@ void OAdoKey::refreshColumns()
else
m_pColumns = new OColumns(*this,m_aMutex,aVector,aColumns,isCaseSensitive(),m_pConnection);
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > OAdoKey::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -83,14 +83,14 @@ Sequence< sal_Int8 > OAdoKey::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OAdoKey::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelImplementationId().getConstArray(), rId.getConstArray(), 16 ) )
? reinterpret_cast< sal_Int64 >( this )
: OKey_ADO::getSomething(rId);
}
-// -------------------------------------------------------------------------
+
void OAdoKey::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue)throw (Exception)
{
if(m_aKey.IsValid())
@@ -141,18 +141,18 @@ void OAdoKey::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rVal
}
OKey_ADO::setFastPropertyValue_NoBroadcast(nHandle,rValue);
}
-// -------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
+
+
void SAL_CALL OAdoKey::acquire() throw()
{
OKey_ADO::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAdoKey::release() throw()
{
OKey_ADO::release();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/AKeys.cxx b/connectivity/source/drivers/ado/AKeys.cxx
index bda4efcaadeb..735b8c6fc215 100644
--- a/connectivity/source/drivers/ado/AKeys.cxx
+++ b/connectivity/source/drivers/ado/AKeys.cxx
@@ -48,17 +48,17 @@ sdbcx::ObjectType OKeys::createObject(const OUString& _rName)
{
return new OAdoKey(isCaseSensitive(),m_pConnection,m_aCollection.GetItem(_rName));
}
-// -------------------------------------------------------------------------
+
void OKeys::impl_refresh() throw(RuntimeException)
{
m_aCollection.Refresh();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OKeys::createDescriptor()
{
return new OAdoKey(isCaseSensitive(),m_pConnection);
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OKeys::appendObject( const OUString&, const Reference< XPropertySet >& descriptor )
{
@@ -95,14 +95,14 @@ sdbcx::ObjectType OKeys::appendObject( const OUString&, const Reference< XProper
return new OAdoKey(isCaseSensitive(),m_pConnection,pKey->getImpl());
}
-// -------------------------------------------------------------------------
+
// XDrop
void OKeys::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName)
{
if(!m_aCollection.Delete(OLEVariant(_sElementName)))
ADOS::ThrowException(*m_pConnection->getConnection(),static_cast<XTypeProvider*>(this));
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/AResultSet.cxx b/connectivity/source/drivers/ado/AResultSet.cxx
index 951f8888aee2..44967fbd136b 100644
--- a/connectivity/source/drivers/ado/AResultSet.cxx
+++ b/connectivity/source/drivers/ado/AResultSet.cxx
@@ -51,13 +51,13 @@ using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
-//------------------------------------------------------------------------------
+
// IMPLEMENT_SERVICE_INFO(OResultSet,"com.sun.star.sdbcx.AResultSet","com.sun.star.sdbc.ResultSet");
OUString SAL_CALL OResultSet::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException) \
{
return OUString("com.sun.star.sdbcx.ado.ResultSet");
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(2);
@@ -70,7 +70,7 @@ sal_Bool SAL_CALL OResultSet::supportsService( const OUString& _rServiceName ) t
{
return cppu::supportsService(this, _rServiceName);
}
-// -------------------------------------------------------------------------
+
OResultSet::OResultSet(ADORecordset* _pRecordSet,OStatement_Base* pStmt) : OResultSet_BASE(m_aMutex)
,OPropertySetHelper(OResultSet_BASE::rBHelper)
,m_pRecordSet(_pRecordSet)
@@ -83,7 +83,7 @@ OResultSet::OResultSet(ADORecordset* _pRecordSet,OStatement_Base* pStmt) : ORes
,m_bOnFirstAfterOpen(sal_False)
{
}
-// -------------------------------------------------------------------------
+
OResultSet::OResultSet(ADORecordset* _pRecordSet) : OResultSet_BASE(m_aMutex)
,OPropertySetHelper(OResultSet_BASE::rBHelper)
,m_pRecordSet(_pRecordSet)
@@ -96,7 +96,7 @@ OResultSet::OResultSet(ADORecordset* _pRecordSet) : OResultSet_BASE(m_aMutex)
,m_bOnFirstAfterOpen(sal_False)
{
}
-// -----------------------------------------------------------------------------
+
void OResultSet::construct()
{
osl_atomic_increment( &m_refCount );
@@ -113,13 +113,13 @@ void OResultSet::construct()
m_bOnFirstAfterOpen = bIsAtBOF != VARIANT_TRUE;
osl_atomic_decrement( &m_refCount );
}
-// -------------------------------------------------------------------------
+
OResultSet::~OResultSet()
{
if(m_pRecordSet)
m_pRecordSet->Release();
}
-// -------------------------------------------------------------------------
+
void OResultSet::disposing(void)
{
OPropertySetHelper::disposing();
@@ -130,13 +130,13 @@ void OResultSet::disposing(void)
m_xStatement.clear();
m_xMetaData.clear();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OPropertySetHelper::queryInterface(rType);
return aRet.hasValue() ? aRet : OResultSet_BASE::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL OResultSet::getTypes( ) throw(::com::sun::star::uno::RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet > *)0 ),
@@ -146,7 +146,7 @@ Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeExcep
return ::comphelper::concatSequences(aTypes.getTypes(),OResultSet_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName ) throw(SQLException, RuntimeException)
{
@@ -169,7 +169,7 @@ sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName ) throw(SQ
return 0; // Never reached
}
#define BLOCK_SIZE 256
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -209,13 +209,13 @@ Reference< ::com::sun::star::io::XInputStream > SAL_CALL OResultSet::getBinarySt
return m_aValue.isNull() ? NULL : new ::comphelper::SequenceInputStream(m_aValue);
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL OResultSet::getCharacterStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getCharacterStream", *this );
return NULL;
}
-// -----------------------------------------------------------------------------
+
OLEVariant OResultSet::getValue(sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -225,48 +225,48 @@ OLEVariant OResultSet::getValue(sal_Int32 columnIndex ) throw(SQLException, Runt
aField.get_Value(m_aValue);
return m_aValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::getBoolean( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL OResultSet::getByte( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Date SAL_CALL OResultSet::getDate( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
double SAL_CALL OResultSet::getDouble( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
float SAL_CALL OResultSet::getFloat( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::getInt( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::getRow( ) throw(SQLException, RuntimeException)
{
@@ -279,14 +279,14 @@ sal_Int32 SAL_CALL OResultSet::getRow( ) throw(SQLException, RuntimeException)
return (aPos > 0) ? static_cast<sal_Int32>(aPos) : m_nRowPos;
// return the rowcount from driver if the driver doesn't support this return our count
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL OResultSet::getLong( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getLong", *this );
return sal_Int64(0);
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -298,67 +298,67 @@ Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLEx
m_xMetaData = new OResultSetMetaData(m_pRecordSet);
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getArray", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL OResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getClob", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL OResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getBlob", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL OResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getRef", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::getObject( sal_Int32 columnIndex, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex).makeAny();
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL OResultSet::getShort( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSet::getString( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Time SAL_CALL OResultSet::getTime( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::DateTime SAL_CALL OResultSet::getTimestamp( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isAfterLast( ) throw(SQLException, RuntimeException)
{
@@ -370,7 +370,7 @@ sal_Bool SAL_CALL OResultSet::isAfterLast( ) throw(SQLException, RuntimeExcepti
CHECK_RETURN(m_pRecordSet->get_EOF(&bIsAtEOF))
return bIsAtEOF == VARIANT_TRUE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isFirst( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -379,7 +379,7 @@ sal_Bool SAL_CALL OResultSet::isFirst( ) throw(SQLException, RuntimeException)
return m_nRowPos == 1;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isLast( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -388,7 +388,7 @@ sal_Bool SAL_CALL OResultSet::isLast( ) throw(SQLException, RuntimeException)
return sal_True;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -398,7 +398,7 @@ void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
if(first())
m_bOnFirstAfterOpen = !previous();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -409,7 +409,7 @@ void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException)
next();
m_bEOF = sal_True;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::close( ) throw(SQLException, RuntimeException)
{
@@ -420,7 +420,7 @@ void SAL_CALL OResultSet::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::first( ) throw(SQLException, RuntimeException)
{
@@ -436,7 +436,7 @@ sal_Bool SAL_CALL OResultSet::first( ) throw(SQLException, RuntimeException)
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::last( ) throw(SQLException, RuntimeException)
{
@@ -452,7 +452,7 @@ sal_Bool SAL_CALL OResultSet::last( ) throw(SQLException, RuntimeException)
}
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::absolute( sal_Int32 row ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -485,7 +485,7 @@ sal_Bool SAL_CALL OResultSet::absolute( sal_Int32 row ) throw(SQLException, Runt
m_bOnFirstAfterOpen = sal_False;
return bCheck;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::relative( sal_Int32 row ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -505,7 +505,7 @@ sal_Bool SAL_CALL OResultSet::relative( sal_Int32 row ) throw(SQLException, Runt
}
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::previous( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -519,14 +519,14 @@ sal_Bool SAL_CALL OResultSet::previous( ) throw(SQLException, RuntimeException)
}
return bRet;
}
-// -------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL OResultSet::getStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
return m_xStatement;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowDeleted( ) throw(SQLException, RuntimeException)
{
@@ -541,7 +541,7 @@ sal_Bool SAL_CALL OResultSet::rowDeleted( ) throw(SQLException, RuntimeExceptio
--m_nRowPos;
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowInserted( ) throw(SQLException, RuntimeException)
{ ::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -554,7 +554,7 @@ sal_Bool SAL_CALL OResultSet::rowInserted( ) throw(SQLException, RuntimeExcepti
++m_nRowPos;
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowUpdated( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -565,7 +565,7 @@ sal_Bool SAL_CALL OResultSet::rowUpdated( ) throw(SQLException, RuntimeExceptio
m_pRecordSet->get_Status((sal_Int32*)&eRec);
return (eRec & adRecModified) == adRecModified;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeException)
{
@@ -582,7 +582,7 @@ sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeExcep
}
return bIsAtBOF == VARIANT_TRUE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::next( ) throw(SQLException, RuntimeException)
{
@@ -613,7 +613,7 @@ sal_Bool SAL_CALL OResultSet::next( ) throw(SQLException, RuntimeException)
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::wasNull( ) throw(SQLException, RuntimeException)
{
@@ -623,7 +623,7 @@ sal_Bool SAL_CALL OResultSet::wasNull( ) throw(SQLException, RuntimeException)
return m_aValue.isNull();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::cancel( ) throw(RuntimeException)
{
@@ -633,16 +633,16 @@ void SAL_CALL OResultSet::cancel( ) throw(RuntimeException)
m_pRecordSet->Cancel();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::clearWarnings( ) throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::getWarnings( ) throw(SQLException, RuntimeException)
{
return Any();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::insertRow( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -653,7 +653,7 @@ void SAL_CALL OResultSet::insertRow( ) throw(SQLException, RuntimeException)
aEmpty.setNoArg();
m_pRecordSet->AddNew(aEmpty,aEmpty);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateRow( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -664,7 +664,7 @@ void SAL_CALL OResultSet::updateRow( ) throw(SQLException, RuntimeException)
aEmpty.setNoArg();
m_pRecordSet->Update(aEmpty,aEmpty);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::deleteRow( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -674,7 +674,7 @@ void SAL_CALL OResultSet::deleteRow( ) throw(SQLException, RuntimeException)
m_pRecordSet->Delete(adAffectCurrent);
m_pRecordSet->UpdateBatch(adAffectCurrent);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::cancelRowUpdates( ) throw(SQLException, RuntimeException)
{
@@ -684,7 +684,7 @@ void SAL_CALL OResultSet::cancelRowUpdates( ) throw(SQLException, RuntimeExcept
m_pRecordSet->CancelUpdate();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::moveToInsertRow( ) throw(SQLException, RuntimeException)
{
@@ -693,12 +693,12 @@ void SAL_CALL OResultSet::moveToInsertRow( ) throw(SQLException, RuntimeExcepti
// if ( getResultSetConcurrency() == ResultSetConcurrency::READ_ONLY )
// throw SQLException();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::moveToCurrentRow( ) throw(SQLException, RuntimeException)
{
}
-// -----------------------------------------------------------------------------
+
void OResultSet::updateValue(sal_Int32 columnIndex,const OLEVariant& x)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -707,79 +707,79 @@ void OResultSet::updateValue(sal_Int32 columnIndex,const OLEVariant& x)
WpADOField aField = ADOS::getField(m_pRecordSet,columnIndex);
aField.PutValue(x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateNull( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
OLEVariant x;
x.setNull();
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBoolean( sal_Int32 columnIndex, sal_Bool x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,bool(x));
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateByte( sal_Int32 columnIndex, sal_Int8 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateShort( sal_Int32 columnIndex, sal_Int16 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateInt( sal_Int32 columnIndex, sal_Int32 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateLong( sal_Int32 columnIndex, sal_Int64 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -----------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateFloat( sal_Int32 columnIndex, float x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateDouble( sal_Int32 columnIndex, double x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateString( sal_Int32 columnIndex, const OUString& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBytes( sal_Int32 columnIndex, const Sequence< sal_Int8 >& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateDate( sal_Int32 columnIndex, const ::com::sun::star::util::Date& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateTime( sal_Int32 columnIndex, const ::com::sun::star::util::Time& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateTimestamp( sal_Int32 columnIndex, const ::com::sun::star::util::DateTime& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBinaryStream( sal_Int32 columnIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
@@ -790,7 +790,7 @@ void SAL_CALL OResultSet::updateBinaryStream( sal_Int32 columnIndex, const Refer
x->readBytes(aSeq,length);
updateBytes(columnIndex,aSeq);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateCharacterStream( sal_Int32 columnIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
if(!x.is())
@@ -800,7 +800,7 @@ void SAL_CALL OResultSet::updateCharacterStream( sal_Int32 columnIndex, const Re
x->readBytes(aSeq,length);
updateBytes(columnIndex,aSeq);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::refreshRow( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -809,20 +809,20 @@ void SAL_CALL OResultSet::refreshRow( ) throw(SQLException, RuntimeException)
m_pRecordSet->Resync(adAffectCurrent,adResyncAllValues);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateObject( sal_Int32 columnIndex, const Any& x ) throw(SQLException, RuntimeException)
{
if (!::dbtools::implUpdateObject(this, columnIndex, x))
throw SQLException();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateNumericObject( sal_Int32 columnIndex, const Any& x, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException)
{
if (!::dbtools::implUpdateObject(this, columnIndex, x))
throw SQLException();
}
-//------------------------------------------------------------------------------
+
// XRowLocate
Any SAL_CALL OResultSet::getBookmark( ) throw(SQLException, RuntimeException)
{
@@ -838,7 +838,7 @@ Any SAL_CALL OResultSet::getBookmark( ) throw(SQLException, RuntimeException)
return makeAny((sal_Int32)(m_aBookmarks.size()-1));
}
-//------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::moveToBookmark( const Any& bookmark ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -853,7 +853,7 @@ sal_Bool SAL_CALL OResultSet::moveToBookmark( const Any& bookmark ) throw(SQLExc
return SUCCEEDED(m_pRecordSet->Move(0,m_aBookmarks[nPos]));
}
-//------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::moveRelativeToBookmark( const Any& bookmark, sal_Int32 rows ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -868,7 +868,7 @@ sal_Bool SAL_CALL OResultSet::moveRelativeToBookmark( const Any& bookmark, sal_I
::dbtools::throwFunctionSequenceException(*this);
return SUCCEEDED(m_pRecordSet->Move(rows,m_aBookmarks[nPos]));
}
-//------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::compareBookmarks( const Any& bookmark1, const Any& bookmark2 ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -887,7 +887,7 @@ sal_Int32 SAL_CALL OResultSet::compareBookmarks( const Any& bookmark1, const Any
m_pRecordSet->CompareBookmarks(m_aBookmarks[nPos1],m_aBookmarks[nPos2],&eNum);
return ((sal_Int32)eNum) +1;
}
-//------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::hasOrderedBookmarks( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -913,7 +913,7 @@ sal_Bool SAL_CALL OResultSet::hasOrderedBookmarks( ) throw(SQLException, Runtim
bValue = aVar;
return bValue;
}
-//------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::hashBookmark( const Any& bookmark ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -924,7 +924,7 @@ sal_Int32 SAL_CALL OResultSet::hashBookmark( const Any& bookmark ) throw(SQLExce
bookmark >>= nPos;
return nPos;
}
-//------------------------------------------------------------------------------
+
// XDeleteRows
Sequence< sal_Int32 > SAL_CALL OResultSet::deleteRows( const Sequence< Any >& rows ) throw(SQLException, RuntimeException)
{
@@ -973,7 +973,7 @@ Sequence< sal_Int32 > SAL_CALL OResultSet::deleteRows( const Sequence< Any >& ro
}
return aSeq;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OResultSet::getResultSetConcurrency() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -993,7 +993,7 @@ sal_Int32 OResultSet::getResultSetConcurrency() const
}
return nValue;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OResultSet::getResultSetType() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -1018,13 +1018,13 @@ sal_Int32 OResultSet::getResultSetType() const
}
return nValue;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OResultSet::getFetchDirection() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return FetchDirection::FORWARD;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OResultSet::getFetchSize() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -1032,26 +1032,26 @@ sal_Int32 OResultSet::getFetchSize() const
m_pRecordSet->get_CacheSize(&nValue);
return nValue;
}
-//------------------------------------------------------------------------------
+
OUString OResultSet::getCursorName() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return OUString();
}
-//------------------------------------------------------------------------------
+
void OResultSet::setFetchDirection(sal_Int32 /*_par0*/)
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "ResultSet::FetchDirection", *this );
}
-//------------------------------------------------------------------------------
+
void OResultSet::setFetchSize(sal_Int32 _par0)
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
m_pRecordSet->put_CacheSize(_par0);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OResultSet::createArrayHelper( ) const
{
Sequence< com::sun::star::beans::Property > aProps(5);
@@ -1067,12 +1067,12 @@ void OResultSet::setFetchSize(sal_Int32 _par0)
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OResultSet::getInfoHelper()
{
return *const_cast<OResultSet*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool OResultSet::convertFastPropertyValue(
Any & rConvertedValue,
Any & rOldValue,
@@ -1097,7 +1097,7 @@ sal_Bool OResultSet::convertFastPropertyValue(
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
void OResultSet::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue)throw (Exception)
{
switch(nHandle)
@@ -1118,7 +1118,7 @@ void OResultSet::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& r
;
}
}
-// -------------------------------------------------------------------------
+
void OResultSet::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
{
switch(nHandle)
@@ -1148,22 +1148,22 @@ void OResultSet::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
break;
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::acquire() throw()
{
OResultSet_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::release() throw()
{
OResultSet_BASE::release();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/ado/AResultSetMetaData.cxx b/connectivity/source/drivers/ado/AResultSetMetaData.cxx
index 22461245b5bb..9c4912350f11 100644
--- a/connectivity/source/drivers/ado/AResultSetMetaData.cxx
+++ b/connectivity/source/drivers/ado/AResultSetMetaData.cxx
@@ -37,13 +37,13 @@ OResultSetMetaData::OResultSetMetaData( ADORecordset* _pRecordSet)
if ( m_pRecordSet )
m_pRecordSet->AddRef();
}
-// -------------------------------------------------------------------------
+
OResultSetMetaData::~OResultSetMetaData()
{
if ( m_pRecordSet )
m_pRecordSet->Release();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize( sal_Int32 column ) throw(SQLException, RuntimeException)
{
WpADOField aField = ADOS::getField(m_pRecordSet,column);
@@ -51,14 +51,14 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize( sal_Int32 column )
return aField.GetActualSize();
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnType( sal_Int32 column ) throw(SQLException, RuntimeException)
{
WpADOField aField = ADOS::getField(m_pRecordSet,column);
return ADOS::MapADOType2Jdbc(aField.GetADOType());
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount( ) throw(SQLException, RuntimeException)
{
@@ -74,7 +74,7 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount( ) throw(SQLException, Ru
m_nColCount = aFields.GetItemCount();
return m_nColCount;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -88,13 +88,13 @@ sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive( sal_Int32 column ) throw(
}
return bRet;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getSchemaName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -104,7 +104,7 @@ OUString SAL_CALL OResultSetMetaData::getColumnName( sal_Int32 column ) throw(SQ
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getTableName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
OUString sTableName;
@@ -118,27 +118,27 @@ OUString SAL_CALL OResultSetMetaData::getTableName( sal_Int32 column ) throw(SQL
}
return sTableName;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getCatalogName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnTypeName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnLabel( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return getColumnName(column);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnServiceName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -149,7 +149,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLEx
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -174,7 +174,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement( sal_Int32 column ) throw(
}
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isSigned( sal_Int32 column ) throw(SQLException, RuntimeException)
@@ -187,7 +187,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isSigned( sal_Int32 column ) throw(SQLExce
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQLException, RuntimeException)
{
WpADOField aField = ADOS::getField(m_pRecordSet,column);
@@ -195,7 +195,7 @@ sal_Int32 SAL_CALL OResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQ
return aField.GetPrecision();
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getScale( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
WpADOField aField = ADOS::getField(m_pRecordSet,column);
@@ -203,7 +203,7 @@ sal_Int32 SAL_CALL OResultSetMetaData::getScale( sal_Int32 column ) throw(::com:
return aField.GetNumericScale();
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::isNullable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -214,13 +214,13 @@ sal_Int32 SAL_CALL OResultSetMetaData::isNullable( sal_Int32 column ) throw(SQLE
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isSearchable( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isReadOnly( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -231,7 +231,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isReadOnly( sal_Int32 column ) throw(SQLEx
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -243,11 +243,11 @@ sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable( sal_Int32 column ) t
return sal_False;
;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return isDefinitelyWritable(column);
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/AStatement.cxx b/connectivity/source/drivers/ado/AStatement.cxx
index 404101ebe57c..a232ad183177 100644
--- a/connectivity/source/drivers/ado/AStatement.cxx
+++ b/connectivity/source/drivers/ado/AStatement.cxx
@@ -45,13 +45,13 @@ using namespace ::comphelper;
using namespace connectivity::ado;
-//------------------------------------------------------------------------------
+
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace ::std;
-//------------------------------------------------------------------------------
+
OStatement_Base::OStatement_Base(OConnection* _pConnection ) : OStatement_BASE(m_aMutex)
,OPropertySetHelper(OStatement_BASE::rBHelper)
,OSubComponent<OStatement_Base, OStatement_BASE>((::cppu::OWeakObject*)_pConnection, this)
@@ -76,7 +76,7 @@ OStatement_Base::OStatement_Base(OConnection* _pConnection ) : OStatement_BASE(
osl_atomic_decrement( &m_refCount );
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::disposeResultSet()
{
// free the cursor if alive
@@ -86,7 +86,7 @@ void OStatement_Base::disposeResultSet()
m_xResultSet.clear();
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -108,18 +108,18 @@ void OStatement_Base::disposing()
dispose_ChildImpl();
OStatement_BASE::disposing();
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::release() throw()
{
relase_ChildImpl();
}
-//-----------------------------------------------------------------------------
+
Any SAL_CALL OStatement_Base::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OStatement_BASE::queryInterface(rType);
return aRet.hasValue() ? aRet : OPropertySetHelper::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL OStatement_Base::getTypes( ) throw(::com::sun::star::uno::RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet > *)0 ),
@@ -129,7 +129,7 @@ Any SAL_CALL OStatement_Base::queryInterface( const Type & rType ) throw(Runtime
return ::comphelper::concatSequences(aTypes.getTypes(),OStatement_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::cancel( ) throw(RuntimeException)
{
@@ -139,7 +139,7 @@ void SAL_CALL OStatement_Base::cancel( ) throw(RuntimeException)
CHECK_RETURN(m_Command.Cancel())
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::close( ) throw(SQLException, RuntimeException)
{
@@ -150,13 +150,13 @@ void SAL_CALL OStatement_Base::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement::clearBatch( ) throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
void OStatement_Base::reset() throw (SQLException)
{
@@ -169,10 +169,10 @@ void OStatement_Base::reset() throw (SQLException)
if (m_xResultSet.get().is())
clearMyResultSet();
}
-//--------------------------------------------------------------------
+
// clearMyResultSet
// If a ResultSet was created for this Statement, close it
-//--------------------------------------------------------------------
+
void OStatement_Base::clearMyResultSet () throw (SQLException)
{
@@ -189,7 +189,7 @@ void OStatement_Base::clearMyResultSet () throw (SQLException)
m_xResultSet.clear();
}
-//--------------------------------------------------------------------
+
sal_Int32 OStatement_Base::getRowCount () throw( SQLException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -198,11 +198,11 @@ sal_Int32 OStatement_Base::getRowCount () throw( SQLException)
return m_RecordsAffected;
}
-//--------------------------------------------------------------------
+
// getPrecision
// Given a SQL type, return the maximum precision for the column.
// Returns -1 if not known
-//--------------------------------------------------------------------
+
sal_Int32 OStatement_Base::getPrecision ( sal_Int32 sqlType)
{
@@ -224,10 +224,10 @@ sal_Int32 OStatement_Base::getPrecision ( sal_Int32 sqlType)
return prec;
}
-//--------------------------------------------------------------------
+
// setWarning
// Sets the warning
-//--------------------------------------------------------------------
+
void OStatement_Base::setWarning (const SQLWarning &ex) throw( SQLException)
{
@@ -237,7 +237,7 @@ void OStatement_Base::setWarning (const SQLWarning &ex) throw( SQLException)
m_aLastWarning = ex;
}
-// -------------------------------------------------------------------------
+
void OStatement_Base::assignRecordSet( ADORecordset* _pRS )
{
WpADORecordset aOldRS( m_RecordSet );
@@ -249,7 +249,7 @@ void OStatement_Base::assignRecordSet( ADORecordset* _pRS )
if ( m_RecordSet.IsValid() )
m_RecordSet.PutRefDataSource( (IDispatch*)m_Command );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OStatement_Base::execute( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -279,7 +279,7 @@ sal_Bool SAL_CALL OStatement_Base::execute( const OUString& sql ) throw(SQLExcep
return m_RecordSet.IsValid();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OStatement_Base::executeQuery( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -315,7 +315,7 @@ Reference< XResultSet > SAL_CALL OStatement_Base::executeQuery( const OUString&
return xRs;
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OStatement_Base::getConnection( ) throw(SQLException, RuntimeException)
{
@@ -325,14 +325,14 @@ Reference< XConnection > SAL_CALL OStatement_Base::getConnection( ) throw(SQLEx
return (Reference< XConnection >)m_pConnection;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = ::cppu::queryInterface(rType,static_cast< XBatchExecution*> (this));
return aRet.hasValue() ? aRet : OStatement_Base::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement::addBatch( const OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -342,7 +342,7 @@ void SAL_CALL OStatement::addBatch( const OUString& sql ) throw(SQLException, Ru
m_aBatchList.push_back(sql);
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -386,7 +386,7 @@ Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch( ) throw(SQLException,
}
return aRet;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OStatement_Base::executeUpdate( const OUString& sql ) throw(SQLException, RuntimeException)
@@ -414,7 +414,7 @@ sal_Int32 SAL_CALL OStatement_Base::executeUpdate( const OUString& sql ) throw(S
return 0;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OStatement_Base::getResultSet( ) throw(SQLException, RuntimeException)
{
@@ -424,7 +424,7 @@ Reference< XResultSet > SAL_CALL OStatement_Base::getResultSet( ) throw(SQLExce
return m_xResultSet;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OStatement_Base::getUpdateCount( ) throw(SQLException, RuntimeException)
{
@@ -437,7 +437,7 @@ sal_Int32 SAL_CALL OStatement_Base::getUpdateCount( ) throw(SQLException, Runti
return nRet;
return -1;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OStatement_Base::getMoreResults( ) throw(SQLException, RuntimeException)
{
@@ -470,9 +470,9 @@ sal_Bool SAL_CALL OStatement_Base::getMoreResults( ) throw(SQLException, Runtim
}
return m_RecordSet.IsValid();
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
Any SAL_CALL OStatement_Base::getWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -481,9 +481,9 @@ Any SAL_CALL OStatement_Base::getWarnings( ) throw(SQLException, RuntimeExcepti
return makeAny(m_aLastWarning);
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
void SAL_CALL OStatement_Base::clearWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -492,13 +492,13 @@ void SAL_CALL OStatement_Base::clearWarnings( ) throw(SQLException, RuntimeExce
m_aLastWarning = SQLWarning();
}
-// -------------------------------------------------------------------------
-//------------------------------------------------------------------------------
+
+
sal_Int32 OStatement_Base::getQueryTimeOut() const throw(SQLException, RuntimeException)
{
return m_Command.get_CommandTimeout();
}
-//------------------------------------------------------------------------------
+
sal_Int32 OStatement_Base::getMaxRows() const throw(SQLException, RuntimeException)
{
ADO_LONGPTR nRet=-1;
@@ -506,7 +506,7 @@ sal_Int32 OStatement_Base::getMaxRows() const throw(SQLException, RuntimeExcepti
::dbtools::throwFunctionSequenceException(NULL);
return nRet;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OStatement_Base::getResultSetConcurrency() const throw(SQLException, RuntimeException)
{
sal_Int32 nValue;
@@ -523,7 +523,7 @@ sal_Int32 OStatement_Base::getResultSetConcurrency() const throw(SQLException, R
return nValue;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OStatement_Base::getResultSetType() const throw(SQLException, RuntimeException)
{
sal_Int32 nValue=0;
@@ -543,27 +543,27 @@ sal_Int32 OStatement_Base::getResultSetType() const throw(SQLException, RuntimeE
}
return nValue;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OStatement_Base::getFetchDirection() const throw(SQLException, RuntimeException)
{
return FetchDirection::FORWARD;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OStatement_Base::getFetchSize() const throw(SQLException, RuntimeException)
{
return m_nFetchSize;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OStatement_Base::getMaxFieldSize() const throw(SQLException, RuntimeException)
{
return 0;
}
-//------------------------------------------------------------------------------
+
OUString OStatement_Base::getCursorName() const throw(SQLException, RuntimeException)
{
return m_Command.GetName();
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setQueryTimeOut(sal_Int32 seconds) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -572,7 +572,7 @@ void OStatement_Base::setQueryTimeOut(sal_Int32 seconds) throw(SQLException, Run
m_Command.put_CommandTimeout(seconds);
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setMaxRows(sal_Int32 _par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -580,7 +580,7 @@ void OStatement_Base::setMaxRows(sal_Int32 _par0) throw(SQLException, RuntimeExc
m_nMaxRows = _par0;
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setResultSetConcurrency(sal_Int32 _par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -596,7 +596,7 @@ void OStatement_Base::setResultSetConcurrency(sal_Int32 _par0) throw(SQLExceptio
break;
}
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setResultSetType(sal_Int32 _par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -616,14 +616,14 @@ void OStatement_Base::setResultSetType(sal_Int32 _par0) throw(SQLException, Runt
break;
}
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setFetchDirection(sal_Int32 /*_par0*/) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
::dbtools::throwFeatureNotImplementedException( "Statement::FetchDirection", *this );
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setFetchSize(sal_Int32 _par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -632,14 +632,14 @@ void OStatement_Base::setFetchSize(sal_Int32 _par0) throw(SQLException, RuntimeE
m_nFetchSize = _par0;
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setMaxFieldSize(sal_Int32 /*_par0*/) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
::dbtools::throwFeatureNotImplementedException( "Statement::MaxFieldSize", *this );
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setCursorName(const OUString &_par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -648,7 +648,7 @@ void OStatement_Base::setCursorName(const OUString &_par0) throw(SQLException, R
m_Command.put_Name(_par0);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OStatement_Base::createArrayHelper( ) const
{
Sequence< com::sun::star::beans::Property > aProps(10);
@@ -669,12 +669,12 @@ void OStatement_Base::setCursorName(const OUString &_par0) throw(SQLException, R
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OStatement_Base::getInfoHelper()
{
return *const_cast<OStatement_Base*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool OStatement_Base::convertFastPropertyValue(
Any & rConvertedValue,
Any & rOldValue,
@@ -728,7 +728,7 @@ sal_Bool OStatement_Base::convertFastPropertyValue(
}
return bModified;
}
-// -------------------------------------------------------------------------
+
void OStatement_Base::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
{
switch(nHandle)
@@ -765,7 +765,7 @@ void OStatement_Base::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const A
;
}
}
-// -------------------------------------------------------------------------
+
void OStatement_Base::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
{
switch(nHandle)
@@ -802,27 +802,27 @@ void OStatement_Base::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
;
}
}
-// -------------------------------------------------------------------------
+
OStatement::~OStatement()
{
}
IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbcx.AStatement","com.sun.star.sdbc.Statement");
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::acquire() throw()
{
OStatement_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement::acquire() throw()
{
OStatement_Base::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement::release() throw()
{
OStatement_Base::release();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OStatement_Base::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
diff --git a/connectivity/source/drivers/ado/ATable.cxx b/connectivity/source/drivers/ado/ATable.cxx
index 680140525188..d41d462ec7ab 100644
--- a/connectivity/source/drivers/ado/ATable.cxx
+++ b/connectivity/source/drivers/ado/ATable.cxx
@@ -45,7 +45,7 @@ using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::container;
-// -------------------------------------------------------------------------
+
OAdoTable::OAdoTable(sdbcx::OCollection* _pTables,sal_Bool _bCase,OCatalog* _pCatalog,_ADOTable* _pTable)
: OTable_TYPEDEF(_pTables,_bCase)
,m_pCatalog(_pCatalog)
@@ -56,7 +56,7 @@ OAdoTable::OAdoTable(sdbcx::OCollection* _pTables,sal_Bool _bCase,OCatalog* _pCa
fillPropertyValues();
}
-// -----------------------------------------------------------------------------
+
OAdoTable::OAdoTable(sdbcx::OCollection* _pTables,sal_Bool _bCase,OCatalog* _pCatalog)
: OTable_TYPEDEF(_pTables,_bCase)
,m_pCatalog(_pCatalog)
@@ -66,13 +66,13 @@ OAdoTable::OAdoTable(sdbcx::OCollection* _pTables,sal_Bool _bCase,OCatalog* _pCa
m_aTable.putref_ParentCatalog(_pCatalog->getCatalog());
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAdoTable::disposing(void)
{
OTable_TYPEDEF::disposing();
m_aTable.clear();
}
-// -------------------------------------------------------------------------
+
void OAdoTable::refreshColumns()
{
TStringVector aVector;
@@ -89,7 +89,7 @@ void OAdoTable::refreshColumns()
else
m_pColumns = new OColumns(*this,m_aMutex,aVector,aColumns,isCaseSensitive(),m_pCatalog->getConnection());
}
-// -------------------------------------------------------------------------
+
void OAdoTable::refreshKeys()
{
TStringVector aVector;
@@ -106,7 +106,7 @@ void OAdoTable::refreshKeys()
else
m_pKeys = new OKeys(*this,m_aMutex,aVector,aKeys,isCaseSensitive(),m_pCatalog->getConnection());
}
-// -------------------------------------------------------------------------
+
void OAdoTable::refreshIndexes()
{
TStringVector aVector;
@@ -123,7 +123,7 @@ void OAdoTable::refreshIndexes()
else
m_pIndexes = new OIndexes(*this,m_aMutex,aVector,aIndexes,isCaseSensitive(),m_pCatalog->getConnection());
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > OAdoTable::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -140,14 +140,14 @@ Sequence< sal_Int8 > OAdoTable::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OAdoTable::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelImplementationId().getConstArray(), rId.getConstArray(), 16 ) )
? reinterpret_cast< sal_Int64 >( this )
: OTable_TYPEDEF::getSomething(rId);
}
-// -------------------------------------------------------------------------
+
// XRename
void SAL_CALL OAdoTable::rename( const OUString& newName ) throw(SQLException, ElementExistException, RuntimeException)
{
@@ -159,12 +159,12 @@ void SAL_CALL OAdoTable::rename( const OUString& newName ) throw(SQLException, E
OTable_TYPEDEF::rename(newName);
}
-// -----------------------------------------------------------------------------
+
Reference< XDatabaseMetaData> OAdoTable::getMetaData() const
{
return m_pCatalog->getConnection()->getMetaData();
}
-// -------------------------------------------------------------------------
+
// XAlterTable
void SAL_CALL OAdoTable::alterColumnByName( const OUString& colName, const Reference< XPropertySet >& descriptor ) throw(SQLException, NoSuchElementException, RuntimeException)
{
@@ -185,7 +185,7 @@ void SAL_CALL OAdoTable::alterColumnByName( const OUString& colName, const Refer
m_pColumns->refresh();
refreshColumns();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OAdoTable::alterColumnByIndex( sal_Int32 index, const Reference< XPropertySet >& descriptor ) throw(SQLException, ::com::sun::star::lang::IndexOutOfBoundsException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -196,7 +196,7 @@ void SAL_CALL OAdoTable::alterColumnByIndex( sal_Int32 index, const Reference< X
if(xOld.is())
alterColumnByName(getString(xOld->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME))),descriptor);
}
-// -------------------------------------------------------------------------
+
void OAdoTable::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue)throw (Exception)
{
if(m_aTable.IsValid())
@@ -228,17 +228,17 @@ void OAdoTable::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rV
}
OTable_TYPEDEF::setFastPropertyValue_NoBroadcast(nHandle,rValue);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OAdoTable::acquire() throw()
{
OTable_TYPEDEF::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAdoTable::release() throw()
{
OTable_TYPEDEF::release();
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OAdoTable::getName() throw(::com::sun::star::uno::RuntimeException)
{
return m_aTable.get_Name();
diff --git a/connectivity/source/drivers/ado/ATables.cxx b/connectivity/source/drivers/ado/ATables.cxx
index ff8d6f292189..d506ef2a7c27 100644
--- a/connectivity/source/drivers/ado/ATables.cxx
+++ b/connectivity/source/drivers/ado/ATables.cxx
@@ -48,19 +48,19 @@ sdbcx::ObjectType OTables::createObject(const OUString& _rName)
OSL_ENSURE(m_aCollection.IsValid(),"Collection isn't valid");
return new OAdoTable(this,isCaseSensitive(),m_pCatalog,m_aCollection.GetItem(_rName));
}
-// -------------------------------------------------------------------------
+
void OTables::impl_refresh( ) throw(RuntimeException)
{
OSL_ENSURE(m_aCollection.IsValid(),"Collection isn't valid");
m_aCollection.Refresh();
m_pCatalog->refreshTables();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OTables::createDescriptor()
{
return new OAdoTable(this,isCaseSensitive(),m_pCatalog);
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OTables::appendObject( const OUString&, const Reference< XPropertySet >& descriptor )
{
@@ -75,7 +75,7 @@ sdbcx::ObjectType OTables::appendObject( const OUString&, const Reference< XProp
return new OAdoTable(this,isCaseSensitive(),m_pCatalog,pTable->getImpl());
}
-// -------------------------------------------------------------------------
+
// XDrop
void OTables::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName)
{
@@ -83,7 +83,7 @@ void OTables::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName)
if ( !m_aCollection.Delete(_sElementName) )
ADOS::ThrowException(*m_pCatalog->getConnection()->getConnection(),static_cast<XTypeProvider*>(this));
}
-// -----------------------------------------------------------------------------
+
void OTables::appendNew(const OUString& _rsNewTable)
{
OSL_ENSURE(m_aCollection.IsValid(),"Collection isn't valid");
@@ -97,7 +97,7 @@ void OTables::appendNew(const OUString& _rsNewTable)
while (aListenerLoop.hasMoreElements())
static_cast<XContainerListener*>(aListenerLoop.next())->elementInserted(aEvent);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/AUser.cxx b/connectivity/source/drivers/ado/AUser.cxx
index 6fc7c92f22cd..dc3ce53f8ac5 100644
--- a/connectivity/source/drivers/ado/AUser.cxx
+++ b/connectivity/source/drivers/ado/AUser.cxx
@@ -33,7 +33,7 @@ using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
-// -------------------------------------------------------------------------
+
OAdoUser::OAdoUser(OCatalog* _pParent,sal_Bool _bCase, ADOUser* _pUser)
: OUser_TYPEDEF(_bCase)
,m_pCatalog(_pParent)
@@ -45,7 +45,7 @@ OAdoUser::OAdoUser(OCatalog* _pParent,sal_Bool _bCase, ADOUser* _pUser)
else
m_aUser.Create();
}
-// -------------------------------------------------------------------------
+
OAdoUser::OAdoUser(OCatalog* _pParent,sal_Bool _bCase, const OUString& _Name)
: OUser_TYPEDEF(_Name,_bCase)
, m_pCatalog(_pParent)
@@ -54,7 +54,7 @@ OAdoUser::OAdoUser(OCatalog* _pParent,sal_Bool _bCase, const OUString& _Name)
m_aUser.Create();
m_aUser.put_Name(_Name);
}
-// -------------------------------------------------------------------------
+
void OAdoUser::refreshGroups()
{
TStringVector aVector;
@@ -65,7 +65,7 @@ void OAdoUser::refreshGroups()
else
m_pGroups = new OGroups(m_pCatalog,m_aMutex,aVector,aGroups,isCaseSensitive());
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > OAdoUser::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -82,7 +82,7 @@ Sequence< sal_Int8 > OAdoUser::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OAdoUser::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelImplementationId().getConstArray(), rId.getConstArray(), 16 ) )
@@ -90,7 +90,7 @@ sal_Int64 OAdoUser::getSomething( const Sequence< sal_Int8 > & rId ) throw (Runt
: OUser_TYPEDEF::getSomething(rId);
}
-// -------------------------------------------------------------------------
+
void OAdoUser::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue)throw (Exception)
{
if(m_aUser.IsValid())
@@ -108,7 +108,7 @@ void OAdoUser::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rVa
}
}
}
-// -------------------------------------------------------------------------
+
void OAdoUser::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
{
if(m_aUser.IsValid())
@@ -121,47 +121,47 @@ void OAdoUser::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
}
}
}
-// -------------------------------------------------------------------------
+
OUserExtend::OUserExtend(OCatalog* _pParent,sal_Bool _bCase, ADOUser* _pUser)
: OAdoUser(_pParent,_bCase,_pUser)
{
}
-// -------------------------------------------------------------------------
+
OUserExtend::OUserExtend(OCatalog* _pParent,sal_Bool _bCase, const OUString& _Name)
: OAdoUser(_pParent,_bCase,_Name)
{
}
-// -------------------------------------------------------------------------
+
void OUserExtend::construct()
{
OUser_TYPEDEF::construct();
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PASSWORD), PROPERTY_ID_PASSWORD,0,&m_Password,::getCppuType(static_cast< OUString*>(0)));
}
-// -----------------------------------------------------------------------------
+
cppu::IPropertyArrayHelper* OUserExtend::createArrayHelper() const
{
Sequence< com::sun::star::beans::Property > aProps;
describeProperties(aProps);
return new cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
cppu::IPropertyArrayHelper & OUserExtend::getInfoHelper()
{
return *OUserExtend_PROP::getArrayHelper();
}
-// -----------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
+
+
void SAL_CALL OAdoUser::acquire() throw()
{
OUser_TYPEDEF::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAdoUser::release() throw()
{
OUser_TYPEDEF::release();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OAdoUser::getPrivileges( const OUString& objName, sal_Int32 objType ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -169,7 +169,7 @@ sal_Int32 SAL_CALL OAdoUser::getPrivileges( const OUString& objName, sal_Int32 o
return ADOS::mapAdoRights2Sdbc(m_aUser.GetPermissions(objName, ADOS::mapObjectType2Ado(objType)));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OAdoUser::getGrantablePrivileges( const OUString& objName, sal_Int32 objType ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -182,7 +182,7 @@ sal_Int32 SAL_CALL OAdoUser::getGrantablePrivileges( const OUString& objName, sa
ADOS::ThrowException(*m_pCatalog->getConnection()->getConnection(),*this);
return nRights;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OAdoUser::grantPrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -190,7 +190,7 @@ void SAL_CALL OAdoUser::grantPrivileges( const OUString& objName, sal_Int32 objT
m_aUser.SetPermissions(objName,ADOS::mapObjectType2Ado(objType),adAccessGrant,RightsEnum(ADOS::mapRights2Ado(objPrivileges)));
ADOS::ThrowException(*m_pCatalog->getConnection()->getConnection(),*this);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OAdoUser::revokePrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -198,7 +198,7 @@ void SAL_CALL OAdoUser::revokePrivileges( const OUString& objName, sal_Int32 obj
m_aUser.SetPermissions(objName,ADOS::mapObjectType2Ado(objType),adAccessRevoke,RightsEnum(ADOS::mapRights2Ado(objPrivileges)));
ADOS::ThrowException(*m_pCatalog->getConnection()->getConnection(),*this);
}
-// -----------------------------------------------------------------------------
+
// XUser
void SAL_CALL OAdoUser::changePassword( const OUString& objPassword, const OUString& newPassword ) throw(SQLException, RuntimeException)
{
@@ -207,7 +207,7 @@ void SAL_CALL OAdoUser::changePassword( const OUString& objPassword, const OUStr
m_aUser.ChangePassword(objPassword,newPassword);
ADOS::ThrowException(*m_pCatalog->getConnection()->getConnection(),*this);
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/ado/AUsers.cxx b/connectivity/source/drivers/ado/AUsers.cxx
index 285a4551bf28..6c4643247464 100644
--- a/connectivity/source/drivers/ado/AUsers.cxx
+++ b/connectivity/source/drivers/ado/AUsers.cxx
@@ -41,17 +41,17 @@ sdbcx::ObjectType OUsers::createObject(const OUString& _rName)
{
return new OAdoUser(m_pCatalog,isCaseSensitive(),_rName);
}
-// -------------------------------------------------------------------------
+
void OUsers::impl_refresh() throw(RuntimeException)
{
m_aCollection.Refresh();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OUsers::createDescriptor()
{
return new OUserExtend(m_pCatalog,isCaseSensitive());
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OUsers::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
@@ -64,13 +64,13 @@ sdbcx::ObjectType OUsers::appendObject( const OUString& _rForName, const Referen
return createObject( _rForName );
}
-// -------------------------------------------------------------------------
+
// XDrop
void OUsers::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName)
{
m_aCollection.Delete(_sElementName);
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/AView.cxx b/connectivity/source/drivers/ado/AView.cxx
index fcc156e073a9..dba3c8e894e2 100644
--- a/connectivity/source/drivers/ado/AView.cxx
+++ b/connectivity/source/drivers/ado/AView.cxx
@@ -26,7 +26,7 @@
#include <comphelper/types.hxx>
#include "TConnection.hxx"
-// -------------------------------------------------------------------------
+
using namespace comphelper;
using namespace connectivity::ado;
using namespace com::sun::star::uno;
@@ -35,12 +35,12 @@ using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
// IMPLEMENT_SERVICE_INFO(OAdoView,"com.sun.star.sdbcx.AView","com.sun.star.sdbcx.View");
-// -------------------------------------------------------------------------
+
OAdoView::OAdoView(sal_Bool _bCase,ADOView* _pView) : OView_ADO(_bCase,NULL)
,m_aView(_pView)
{
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > OAdoView::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -57,7 +57,7 @@ Sequence< sal_Int8 > OAdoView::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OAdoView::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelImplementationId().getConstArray(), rId.getConstArray(), 16 ) )
@@ -65,7 +65,7 @@ sal_Int64 OAdoView::getSomething( const Sequence< sal_Int8 > & rId ) throw (Runt
: OView_ADO::getSomething(rId);
}
-// -------------------------------------------------------------------------
+
void OAdoView::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
{
if(m_aView.IsValid())
@@ -98,17 +98,17 @@ void OAdoView::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
else
OView_ADO::getFastPropertyValue(rValue,nHandle);
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAdoView::acquire() throw()
{
OView_ADO::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAdoView::release() throw()
{
OView_ADO::release();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/AViews.cxx b/connectivity/source/drivers/ado/AViews.cxx
index cea3507a47fd..1401d17b5a4b 100644
--- a/connectivity/source/drivers/ado/AViews.cxx
+++ b/connectivity/source/drivers/ado/AViews.cxx
@@ -44,18 +44,18 @@ sdbcx::ObjectType OViews::createObject(const OUString& _rName)
pView->setNew(sal_False);
return pView;
}
-// -------------------------------------------------------------------------
+
void OViews::impl_refresh( ) throw(RuntimeException)
{
m_aCollection.Refresh();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OViews::createDescriptor()
{
return new OAdoView(isCaseSensitive());
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OViews::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
@@ -81,14 +81,14 @@ sdbcx::ObjectType OViews::appendObject( const OUString& _rForName, const Referen
return createObject( _rForName );
}
-// -------------------------------------------------------------------------
+
// XDrop
void OViews::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName)
{
if(!m_aCollection.Delete(_sElementName))
ADOS::ThrowException(*m_pCatalog->getConnection()->getConnection(),static_cast<XTypeProvider*>(this));
}
-// -------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/ado/Aolevariant.cxx b/connectivity/source/drivers/ado/Aolevariant.cxx
index 54452bd7ce6c..cebb4a38cc5a 100644
--- a/connectivity/source/drivers/ado/Aolevariant.cxx
+++ b/connectivity/source/drivers/ado/Aolevariant.cxx
@@ -412,7 +412,7 @@ OLEVariant::operator OUString() const
return reinterpret_cast<const sal_Unicode*>(LPCOLESTR(V_BSTR(&varDest)));
}
-// -----------------------------------------------------------------------------
+
void OLEVariant::ChangeType(VARTYPE vartype, const OLEVariant* pSrc)
{
//
@@ -443,7 +443,7 @@ void OLEVariant::ChangeType(VARTYPE vartype, const OLEVariant* pSrc)
}
}
-// -----------------------------------------------------------------------------
+
OLEVariant::operator ::com::sun::star::uno::Sequence< sal_Int8 >() const
{
::com::sun::star::uno::Sequence< sal_Int8 > aRet;
@@ -484,7 +484,7 @@ OLEVariant::operator ::com::sun::star::uno::Sequence< sal_Int8 >() const
return aRet;
}
-// -----------------------------------------------------------------------------
+
OUString OLEVariant::getString() const
{
if(isNull())
@@ -492,7 +492,7 @@ OUString OLEVariant::getString() const
else
return *this;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OLEVariant::getBool() const
{
if (V_VT(this) == VT_BOOL)
@@ -506,7 +506,7 @@ sal_Bool OLEVariant::getBool() const
return V_BOOL(&varDest) == VARIANT_TRUE ? sal_True : sal_False;
}
-// -----------------------------------------------------------------------------
+
IUnknown* OLEVariant::getIUnknown() const
{
if (V_VT(this) == VT_UNKNOWN)
@@ -523,7 +523,7 @@ IUnknown* OLEVariant::getIUnknown() const
V_UNKNOWN(&varDest)->AddRef();
return V_UNKNOWN(&varDest);
}
-// -----------------------------------------------------------------------------
+
IDispatch* OLEVariant::getIDispatch() const
{
if (V_VT(this) == VT_DISPATCH)
@@ -541,7 +541,7 @@ IDispatch* OLEVariant::getIDispatch() const
V_DISPATCH(&varDest)->AddRef();
return V_DISPATCH(&varDest);
}
-// -----------------------------------------------------------------------------
+
sal_uInt8 OLEVariant::getByte() const
{
if (V_VT(this) == VT_UI1)
@@ -555,7 +555,7 @@ sal_uInt8 OLEVariant::getByte() const
return V_UI1(&varDest);
}
-// -----------------------------------------------------------------------------
+
sal_Int16 OLEVariant::getInt16() const
{
if (V_VT(this) == VT_I2)
@@ -569,7 +569,7 @@ sal_Int16 OLEVariant::getInt16() const
return V_I2(&varDest);
}
-// -----------------------------------------------------------------------------
+
sal_Int8 OLEVariant::getInt8() const
{
if (V_VT(this) == VT_I1)
@@ -584,7 +584,7 @@ sal_Int8 OLEVariant::getInt8() const
return V_I1(&varDest);
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OLEVariant::getInt32() const
{
if (V_VT(this) == VT_I4)
@@ -599,7 +599,7 @@ sal_Int32 OLEVariant::getInt32() const
return V_I4(&varDest);
}
-// -----------------------------------------------------------------------------
+
sal_uInt32 OLEVariant::getUInt32() const
{
if (V_VT(this) == VT_UI4)
@@ -614,7 +614,7 @@ sal_uInt32 OLEVariant::getUInt32() const
return V_UI4(&varDest);
}
-// -----------------------------------------------------------------------------
+
float OLEVariant::getFloat() const
{
if (V_VT(this) == VT_R4)
@@ -628,7 +628,7 @@ float OLEVariant::getFloat() const
return V_R4(&varDest);
}
-// -----------------------------------------------------------------------------
+
double OLEVariant::getDouble() const
{
if (V_VT(this) == VT_R8)
@@ -642,7 +642,7 @@ double OLEVariant::getDouble() const
return V_R8(&varDest);
}
-// -----------------------------------------------------------------------------
+
double OLEVariant::getDate() const
{
if (V_VT(this) == VT_DATE)
@@ -656,7 +656,7 @@ double OLEVariant::getDate() const
return V_DATE(&varDest);
}
-// -----------------------------------------------------------------------------
+
CY OLEVariant::getCurrency() const
{
if (V_VT(this) == VT_CY)
@@ -674,7 +674,7 @@ CY OLEVariant::getCurrency() const
return V_CY(&varDest);
}
-// -----------------------------------------------------------------------------
+
SAFEARRAY* OLEVariant::getUI1SAFEARRAYPtr() const
{
if (V_VT(this) == (VT_ARRAY|VT_UI1))
@@ -688,7 +688,7 @@ SAFEARRAY* OLEVariant::getUI1SAFEARRAYPtr() const
return V_ARRAY(&varDest);
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Any OLEVariant::makeAny() const
{
::com::sun::star::uno::Any aValue;
@@ -771,8 +771,8 @@ SAFEARRAY* OLEVariant::getUI1SAFEARRAYPtr() const
}
return aValue;
}
-// -----------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
+
+
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/ado/Aservices.cxx b/connectivity/source/drivers/ado/Aservices.cxx
index bd1320128f11..ac5773348b81 100644
--- a/connectivity/source/drivers/ado/Aservices.cxx
+++ b/connectivity/source/drivers/ado/Aservices.cxx
@@ -35,7 +35,7 @@ typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
rtl_ModuleCount*
);
-//---------------------------------------------------------------------------------------
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
@@ -73,7 +73,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
-//---------------------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL ado_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/ado/Awrapado.cxx b/connectivity/source/drivers/ado/Awrapado.cxx
index 660c7dd6b5df..026390aa307b 100644
--- a/connectivity/source/drivers/ado/Awrapado.cxx
+++ b/connectivity/source/drivers/ado/Awrapado.cxx
@@ -1659,7 +1659,7 @@ ADORecordset* WpADOConnection::getExportedKeys( const ::com::sun::star::uno::Any
OpenSchema(adSchemaForeignKeys,vsa,vtEmpty,&pRecordset);
return pRecordset;
}
-// -----------------------------------------------------------------------------
+
ADORecordset* WpADOConnection::getImportedKeys( const ::com::sun::star::uno::Any& catalog, const OUString& schema, const OUString& table )
{
// Create elements used in the array
@@ -1701,7 +1701,7 @@ ADORecordset* WpADOConnection::getImportedKeys( const ::com::sun::star::uno::Any
return pRecordset;
}
-// -----------------------------------------------------------------------------
+
ADORecordset* WpADOConnection::getPrimaryKeys( const ::com::sun::star::uno::Any& catalog, const OUString& schema, const OUString& table )
{
// Create elements used in the array
@@ -1739,7 +1739,7 @@ ADORecordset* WpADOConnection::getPrimaryKeys( const ::com::sun::star::uno::Any&
return pRecordset;
}
-// -----------------------------------------------------------------------------
+
ADORecordset* WpADOConnection::getIndexInfo(
const ::com::sun::star::uno::Any& catalog, const OUString& schema, const OUString& table,
sal_Bool /*unique*/, sal_Bool /*approximate*/ )
@@ -1782,7 +1782,7 @@ ADORecordset* WpADOConnection::getIndexInfo(
return pRecordset;
}
-// -----------------------------------------------------------------------------
+
ADORecordset* WpADOConnection::getTablePrivileges( const ::com::sun::star::uno::Any& catalog,
const OUString& schemaPattern,
const OUString& tableNamePattern )
@@ -1824,7 +1824,7 @@ ADORecordset* WpADOConnection::getTablePrivileges( const ::com::sun::star::uno::
return pRecordset;
}
-// -----------------------------------------------------------------------------
+
ADORecordset* WpADOConnection::getCrossReference( const ::com::sun::star::uno::Any& primaryCatalog,
const OUString& primarySchema,
const OUString& primaryTable,
@@ -1877,7 +1877,7 @@ ADORecordset* WpADOConnection::getCrossReference( const ::com::sun::star::uno::A
return pRecordset;
}
-// -----------------------------------------------------------------------------
+
ADORecordset* WpADOConnection::getProcedures( const ::com::sun::star::uno::Any& catalog,
const OUString& schemaPattern,
const OUString& procedureNamePattern )
@@ -1916,7 +1916,7 @@ ADORecordset* WpADOConnection::getProcedures( const ::com::sun::star::uno::Any&
return pRecordset;
}
-// -----------------------------------------------------------------------------
+
ADORecordset* WpADOConnection::getProcedureColumns( const ::com::sun::star::uno::Any& catalog,
const OUString& schemaPattern,
const OUString& procedureNamePattern,
@@ -1961,7 +1961,7 @@ ADORecordset* WpADOConnection::getProcedureColumns( const ::com::sun::star::uno:
return pRecordset;
}
-// -----------------------------------------------------------------------------
+
ADORecordset* WpADOConnection::getTables( const ::com::sun::star::uno::Any& catalog,
const OUString& schemaPattern,
const OUString& tableNamePattern,
@@ -2025,7 +2025,7 @@ ADORecordset* WpADOConnection::getTables( const ::com::sun::star::uno::Any& cata
return pRecordset;
}
-// -----------------------------------------------------------------------------
+
ADORecordset* WpADOConnection::getColumns( const ::com::sun::star::uno::Any& catalog,
const OUString& schemaPattern,
const OUString& tableNamePattern,
@@ -2069,7 +2069,7 @@ ADORecordset* WpADOConnection::getColumns( const ::com::sun::star::uno::Any& cat
return pRecordset;
}
-// -----------------------------------------------------------------------------
+
ADORecordset* WpADOConnection::getColumnPrivileges( const ::com::sun::star::uno::Any& catalog,
const OUString& schema,
const OUString& table,
@@ -2112,7 +2112,7 @@ ADORecordset* WpADOConnection::getColumnPrivileges( const ::com::sun::star::uno:
return pRecordset;
}
-// -----------------------------------------------------------------------------
+
ADORecordset* WpADOConnection::getTypeInfo(DataTypeEnum /*_eType*/)
{
// Create elements used in the array
@@ -2140,7 +2140,7 @@ ADORecordset* WpADOConnection::getTypeInfo(DataTypeEnum /*_eType*/)
return pRec;
}
-// -----------------------------------------------------------------------------
+
void WpADOColumn::put_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject)
{
OSL_ENSURE(pInterface,"Interface is null!");
@@ -2148,7 +2148,7 @@ void WpADOColumn::put_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject)
OSL_ENSURE(bRet,"Could not set ParentCatalog!");
OSL_UNUSED(bRet);
}
-// -----------------------------------------------------------------------------
+
void WpADOTable::putref_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject)
{
OSL_ENSURE(pInterface,"Interface is null!");
@@ -2156,12 +2156,12 @@ void WpADOTable::putref_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObjec
OSL_ENSURE(bRet,"Could not set ParentCatalog!");
OSL_UNUSED(bRet);
}
-// -----------------------------------------------------------------------------
+
void WpBase::setIDispatch(IDispatch* _pIUnknown)
{
pIUnknown = _pIUnknown;
}
-// -----------------------------------------------------------------------------
+
void OTools::putValue(const WpADOProperties& _rProps,const OLEVariant &_aPosition,const OLEVariant &_aValVar)
{
OSL_ENSURE(_rProps.IsValid(),"Properties are not valid!");
@@ -2173,7 +2173,7 @@ void OTools::putValue(const WpADOProperties& _rProps,const OLEVariant &_aPositio
OSL_UNUSED(bRet);
}
}
-// -----------------------------------------------------------------------------
+
OLEVariant OTools::getValue(const WpADOProperties& _rProps,const OLEVariant &_aPosition)
{
WpADOProperty aProp(_rProps.GetItem(_aPosition));
diff --git a/connectivity/source/drivers/ado/adoimp.cxx b/connectivity/source/drivers/ado/adoimp.cxx
index 9ca1a0223393..7e5647b44430 100644
--- a/connectivity/source/drivers/ado/adoimp.cxx
+++ b/connectivity/source/drivers/ado/adoimp.cxx
@@ -73,7 +73,7 @@ OLEString& ADOS::GetKeyStr()
return sKeyStr;
}
-// -------------------------------------------------------------------------
+
sal_Int32 ADOS::MapADOType2Jdbc(DataTypeEnum eType)
{
sal_Int32 nType = DataType::VARCHAR;
@@ -126,7 +126,7 @@ sal_Int32 ADOS::MapADOType2Jdbc(DataTypeEnum eType)
}
return nType;
}
-// -------------------------------------------------------------------------
+
DataTypeEnum ADOS::MapJdbc2ADOType(sal_Int32 _nType,sal_Int32 _nJetEngine)
{
switch (_nType)
@@ -159,7 +159,7 @@ DataTypeEnum ADOS::MapJdbc2ADOType(sal_Int32 _nType,sal_Int32 _nJetEngine)
}
return adEmpty;
}
-// -----------------------------------------------------------------------------
+
const int JET_ENGINETYPE_UNKNOWN = 0;
const int JET_ENGINETYPE_JET10 = 1;
const int JET_ENGINETYPE_JET11 = 2;
@@ -219,7 +219,7 @@ sal_Bool ADOS::isJetEngine(sal_Int32 _nEngineType)
}
return bRet;
}
-// -----------------------------------------------------------------------------
+
ObjectTypeEnum ADOS::mapObjectType2Ado(sal_Int32 objType)
{
ObjectTypeEnum eType = adPermObjTable;
@@ -237,7 +237,7 @@ ObjectTypeEnum ADOS::mapObjectType2Ado(sal_Int32 objType)
}
return eType;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 ADOS::mapAdoType2Object(ObjectTypeEnum objType)
{
sal_Int32 nType = PrivilegeObject::TABLE;
@@ -261,7 +261,7 @@ sal_Int32 ADOS::mapAdoType2Object(ObjectTypeEnum objType)
#ifdef DELETE
#undef DELETE
#endif
-// -----------------------------------------------------------------------------
+
sal_Int32 ADOS::mapAdoRights2Sdbc(RightsEnum eRights)
{
sal_Int32 nRights = 0;
@@ -282,7 +282,7 @@ sal_Int32 ADOS::mapAdoRights2Sdbc(RightsEnum eRights)
return nRights;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 ADOS::mapRights2Ado(sal_Int32 nRights)
{
sal_Int32 eRights = adRightNone;
@@ -304,7 +304,7 @@ sal_Int32 ADOS::mapRights2Ado(sal_Int32 nRights)
return eRights;
}
-// -----------------------------------------------------------------------------
+
WpADOField ADOS::getField(ADORecordset* _pRecordSet,sal_Int32 _nColumnIndex) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
if ( !_pRecordSet )
@@ -320,7 +320,7 @@ WpADOField ADOS::getField(ADORecordset* _pRecordSet,sal_Int32 _nColumnIndex) thr
::dbtools::throwInvalidIndexException(NULL);
return aField;
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/calc/CCatalog.cxx b/connectivity/source/drivers/calc/CCatalog.cxx
index aa2f18b0c5ff..da63d9d443a8 100644
--- a/connectivity/source/drivers/calc/CCatalog.cxx
+++ b/connectivity/source/drivers/calc/CCatalog.cxx
@@ -29,14 +29,14 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
-// -------------------------------------------------------------------------
+
using namespace connectivity::calc;
-// -------------------------------------------------------------------------
+
OCalcCatalog::OCalcCatalog(OCalcConnection* _pCon) : file::OFileCatalog(_pCon)
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcCatalog::OCalcCatalog" );
}
-// -------------------------------------------------------------------------
+
void OCalcCatalog::refreshTables()
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcCatalog::refreshTables" );
@@ -61,7 +61,7 @@ void OCalcCatalog::refreshTables()
//if ( m_pTables && m_pTables->hasElements() )
// m_pTables->getByIndex(0);
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/calc/CColumns.cxx b/connectivity/source/drivers/calc/CColumns.cxx
index f5542d74c83d..9fb1ca6a9201 100644
--- a/connectivity/source/drivers/calc/CColumns.cxx
+++ b/connectivity/source/drivers/calc/CColumns.cxx
@@ -41,6 +41,6 @@ sdbcx::ObjectType OCalcColumns::createObject(const OUString& _rName)
xRet = sdbcx::ObjectType(*aIter,UNO_QUERY);
return xRet;
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/calc/CConnection.cxx b/connectivity/source/drivers/calc/CConnection.cxx
index dc2f25b7fdea..2889096177b8 100644
--- a/connectivity/source/drivers/calc/CConnection.cxx
+++ b/connectivity/source/drivers/calc/CConnection.cxx
@@ -40,7 +40,7 @@ using namespace connectivity::file;
typedef connectivity::file::OConnection OConnection_BASE;
-//------------------------------------------------------------------------------
+
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
@@ -50,7 +50,7 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::sheet;
-// --------------------------------------------------------------------------------
+
OCalcConnection::OCalcConnection(ODriver* _pDriver) : OConnection(_pDriver),m_nDocCount(0)
{
@@ -103,7 +103,7 @@ void OCalcConnection::construct(const OUString& url,const Sequence< PropertyValu
ODocHolder aDocHodler(this); // just to test that the doc can be loaded
acquireDoc();
}
-// -----------------------------------------------------------------------------
+
Reference< XSpreadsheetDocument> OCalcConnection::acquireDoc()
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcConnection::acquireDoc" );
@@ -170,14 +170,14 @@ Reference< XSpreadsheetDocument> OCalcConnection::acquireDoc()
osl_atomic_increment(&m_nDocCount);
return m_xDoc;
}
-// -----------------------------------------------------------------------------
+
void OCalcConnection::releaseDoc()
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcConnection::releaseDoc" );
if ( osl_atomic_decrement(&m_nDocCount) == 0 )
::comphelper::disposeComponent( m_xDoc );
}
-// -----------------------------------------------------------------------------
+
void OCalcConnection::disposing()
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcConnection::disposing" );
@@ -190,11 +190,11 @@ void OCalcConnection::disposing()
}
// XServiceInfo
-// --------------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OCalcConnection, "com.sun.star.sdbc.drivers.calc.Connection", "com.sun.star.sdbc.Connection")
-// --------------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL OCalcConnection::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -213,7 +213,7 @@ Reference< XDatabaseMetaData > SAL_CALL OCalcConnection::getMetaData( ) throw(S
return xMetaData;
}
-//------------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< XTablesSupplier > OCalcConnection::createCatalog()
{
@@ -229,7 +229,7 @@ Reference< XDatabaseMetaData > SAL_CALL OCalcConnection::getMetaData( ) throw(S
return xTab;
}
-// --------------------------------------------------------------------------------
+
Reference< XStatement > SAL_CALL OCalcConnection::createStatement( ) throw(SQLException, RuntimeException)
{
@@ -243,7 +243,7 @@ Reference< XStatement > SAL_CALL OCalcConnection::createStatement( ) throw(SQLE
return xReturn;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OCalcConnection::prepareStatement( const OUString& sql )
throw(SQLException, RuntimeException)
@@ -260,7 +260,7 @@ Reference< XPreparedStatement > SAL_CALL OCalcConnection::prepareStatement( cons
return pStmt;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OCalcConnection::prepareCall( const OUString& /*sql*/ )
throw(SQLException, RuntimeException)
@@ -272,6 +272,6 @@ Reference< XPreparedStatement > SAL_CALL OCalcConnection::prepareCall( const OUS
::dbtools::throwFeatureNotImplementedException( "XConnection::prepareCall", *this );
return NULL;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/calc/CDatabaseMetaData.cxx b/connectivity/source/drivers/calc/CDatabaseMetaData.cxx
index 00a6d1dad062..6cade720740a 100644
--- a/connectivity/source/drivers/calc/CDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/calc/CDatabaseMetaData.cxx
@@ -46,20 +46,20 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::table;
using namespace ::com::sun::star::sheet;
-// -------------------------------------------------------------------------
+
OCalcDatabaseMetaData::OCalcDatabaseMetaData(OConnection* _pCon) :ODatabaseMetaData(_pCon)
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcDatabaseMetaData::OCalcDatabaseMetaData" );
}
-// -------------------------------------------------------------------------
+
OCalcDatabaseMetaData::~OCalcDatabaseMetaData()
{
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > OCalcDatabaseMetaData::impl_getTypeInfo_throw( )
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcDatabaseMetaData::impl_getTypeInfo_throw" );
@@ -139,7 +139,7 @@ Reference< XResultSet > OCalcDatabaseMetaData::impl_getTypeInfo_throw( )
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OCalcDatabaseMetaData::getColumns(
const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& tableNamePattern,
@@ -237,7 +237,7 @@ Reference< XResultSet > SAL_CALL OCalcDatabaseMetaData::getColumns(
return xRef;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OCalcDatabaseMetaData::getURL( ) throw(SQLException, RuntimeException)
{
@@ -247,7 +247,7 @@ OUString SAL_CALL OCalcDatabaseMetaData::getURL( ) throw(SQLException, RuntimeE
return OUString("sdbc:calc:") + m_pConnection->getURL();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OCalcDatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQLException, RuntimeException)
{
@@ -255,33 +255,33 @@ sal_Int32 SAL_CALL OCalcDatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQ
return SAL_MAX_INT32;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OCalcDatabaseMetaData::getMaxCharLiteralLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcDatabaseMetaData::getMaxCharLiteralLength" );
return SAL_MAX_INT32;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OCalcDatabaseMetaData::getMaxColumnNameLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcDatabaseMetaData::getMaxColumnNameLength" );
return SAL_MAX_INT32;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OCalcDatabaseMetaData::getMaxColumnsInIndex( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcDatabaseMetaData::getMaxColumnsInIndex" );
return 1;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OCalcDatabaseMetaData::getMaxColumnsInTable( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcDatabaseMetaData::getMaxColumnsInTable" );
return 256;
}
-// -------------------------------------------------------------------------
+
static sal_Bool lcl_IsEmptyOrHidden( const Reference<XSpreadsheets>& xSheets, const OUString& rName )
{
@@ -353,7 +353,7 @@ static sal_Bool lcl_IsUnnamed( const Reference<XDatabaseRanges>& xRanges, const
return bUnnamed;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OCalcDatabaseMetaData::getTables(
const Any& /*catalog*/, const OUString& /*schemaPattern*/,
@@ -449,7 +449,7 @@ Reference< XResultSet > SAL_CALL OCalcDatabaseMetaData::getTables(
return xRef;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/calc/CDriver.cxx b/connectivity/source/drivers/calc/CDriver.cxx
index 40dcf3af9061..5d117678087a 100644
--- a/connectivity/source/drivers/calc/CDriver.cxx
+++ b/connectivity/source/drivers/calc/CDriver.cxx
@@ -34,7 +34,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::lang;
-//------------------------------------------------------------------------------
+
// static ServiceInfo
OUString ODriver::getImplementationName_Static( ) throw(RuntimeException)
@@ -49,7 +49,7 @@ OUString SAL_CALL ODriver::getImplementationName( ) throw(RuntimeException)
// service names from file::OFileDriver
-//------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
connectivity::calc::ODriver_CreateInstance(const ::com::sun::star::uno::Reference<
@@ -92,6 +92,6 @@ Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString
}
return Sequence< DriverPropertyInfo >();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/calc/CPreparedStatement.cxx b/connectivity/source/drivers/calc/CPreparedStatement.cxx
index 93636fd98b91..96eb9a2672a8 100644
--- a/connectivity/source/drivers/calc/CPreparedStatement.cxx
+++ b/connectivity/source/drivers/calc/CPreparedStatement.cxx
@@ -23,12 +23,12 @@
using namespace connectivity::calc;
using namespace connectivity::file;
using namespace com::sun::star::uno;
-// -------------------------------------------------------------------------
+
OResultSet* OCalcPreparedStatement::createResultSet()
{
return new OCalcResultSet(this,m_aSQLIterator);
}
-// -------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OCalcPreparedStatement,"com.sun.star.sdbc.driver.calc.PreparedStatement","com.sun.star.sdbc.PreparedStatement");
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/calc/CResultSet.cxx b/connectivity/source/drivers/calc/CResultSet.cxx
index f6f977c0c8e5..7038cb3532a8 100644
--- a/connectivity/source/drivers/calc/CResultSet.cxx
+++ b/connectivity/source/drivers/calc/CResultSet.cxx
@@ -35,19 +35,19 @@ using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
-//------------------------------------------------------------------------------
+
OCalcResultSet::OCalcResultSet( OStatement_Base* pStmt,connectivity::OSQLParseTreeIterator& _aSQLIterator)
: file::OResultSet(pStmt,_aSQLIterator)
,m_bBookmarkable(sal_True)
{
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISBOOKMARKABLE), PROPERTY_ID_ISBOOKMARKABLE, PropertyAttribute::READONLY,&m_bBookmarkable, ::getBooleanCppuType());
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OCalcResultSet::getImplementationName( ) throw ( RuntimeException)
{
return OUString("com.sun.star.sdbcx.calc.ResultSet");
}
-// -------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OCalcResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
Sequence< OUString > aSupported(2);
@@ -60,19 +60,19 @@ sal_Bool SAL_CALL OCalcResultSet::supportsService( const OUString& _rServiceName
{
return cppu::supportsService(this, _rServiceName);
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OCalcResultSet::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OResultSet::queryInterface(rType);
return aRet.hasValue() ? aRet : OCalcResultSet_BASE::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OCalcResultSet::getTypes( ) throw( RuntimeException)
{
return ::comphelper::concatSequences(OResultSet::getTypes(),OCalcResultSet_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
// XRowLocate
Any SAL_CALL OCalcResultSet::getBookmark( ) throw( SQLException, RuntimeException)
{
@@ -82,7 +82,7 @@ Any SAL_CALL OCalcResultSet::getBookmark( ) throw( SQLException, RuntimeExcept
return makeAny((sal_Int32)(m_aRow->get())[0]->getValue());
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OCalcResultSet::moveToBookmark( const Any& bookmark ) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -93,7 +93,7 @@ sal_Bool SAL_CALL OCalcResultSet::moveToBookmark( const Any& bookmark ) throw(
return Move(IResultSetHelper::BOOKMARK,comphelper::getINT32(bookmark),sal_True);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OCalcResultSet::moveRelativeToBookmark( const Any& bookmark, sal_Int32 rows ) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -107,17 +107,17 @@ sal_Bool SAL_CALL OCalcResultSet::moveRelativeToBookmark( const Any& bookmark,
return relative(rows);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OCalcResultSet::compareBookmarks( const Any& lhs, const Any& rhs ) throw( SQLException, RuntimeException)
{
return (lhs == rhs) ? 0 : 2;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OCalcResultSet::hasOrderedBookmarks( ) throw( SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OCalcResultSet::hashBookmark( const Any& bookmark ) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -126,7 +126,7 @@ sal_Int32 SAL_CALL OCalcResultSet::hashBookmark( const Any& bookmark ) throw( S
return comphelper::getINT32(bookmark);
}
-// -------------------------------------------------------------------------
+
// XDeleteRows
Sequence< sal_Int32 > SAL_CALL OCalcResultSet::deleteRows( const Sequence< Any >& /*rows*/ ) throw( SQLException, RuntimeException)
{
@@ -136,41 +136,41 @@ Sequence< sal_Int32 > SAL_CALL OCalcResultSet::deleteRows( const Sequence< Any
::dbtools::throwFeatureNotImplementedException( "XDeleteRows::deleteRows", *this );
return Sequence< sal_Int32 >();
}
-// -------------------------------------------------------------------------
+
sal_Bool OCalcResultSet::fillIndexValues(const Reference< XColumnsSupplier> &/*_xIndex*/)
{
// Calc table has no index
return sal_False;
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OCalcResultSet::getInfoHelper()
{
return *OCalcResultSet_BASE3::getArrayHelper();
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OCalcResultSet::createArrayHelper() const
{
Sequence< Property > aProps;
describeProperties(aProps);
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
+
+
void SAL_CALL OCalcResultSet::acquire() throw()
{
OCalcResultSet_BASE2::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OCalcResultSet::release() throw()
{
OCalcResultSet_BASE2::release();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OCalcResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/calc/CStatement.cxx b/connectivity/source/drivers/calc/CStatement.cxx
index 3f0199ca2baa..15d4e45a04b8 100644
--- a/connectivity/source/drivers/calc/CStatement.cxx
+++ b/connectivity/source/drivers/calc/CStatement.cxx
@@ -23,12 +23,12 @@
using namespace connectivity::calc;
using namespace connectivity::file;
using namespace com::sun::star::uno;
-// -------------------------------------------------------------------------
+
OResultSet* OCalcStatement::createResultSet()
{
return new OCalcResultSet(this,m_aSQLIterator);
}
-// -------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OCalcStatement,"com.sun.star.sdbc.driver.calc.Statement","com.sun.star.sdbc.Statement");
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/calc/CTable.cxx b/connectivity/source/drivers/calc/CTable.cxx
index 5b8630d63718..ec38222882ce 100644
--- a/connectivity/source/drivers/calc/CTable.cxx
+++ b/connectivity/source/drivers/calc/CTable.cxx
@@ -311,7 +311,7 @@ static void lcl_GetColumnInfo( const Reference<XSpreadsheet>& xSheet, const Refe
}
}
-// -------------------------------------------------------------------------
+
static void lcl_SetValue( ORowSetValue& rValue, const Reference<XSpreadsheet>& xSheet,
sal_Int32 nStartCol, sal_Int32 nStartRow, sal_Bool bHasHeaders,
@@ -428,7 +428,7 @@ static void lcl_SetValue( ORowSetValue& rValue, const Reference<XSpreadsheet>& x
// rValue.setTypeKind(nType);
}
-// -------------------------------------------------------------------------
+
static OUString lcl_GetColumnStr( sal_Int32 nColumn )
{
@@ -521,7 +521,7 @@ void OCalcTable::fillColumns()
}
}
-// -------------------------------------------------------------------------
+
OCalcTable::OCalcTable(sdbcx::OCollection* _pTables,OCalcConnection* _pConnection,
const OUString& _Name,
const OUString& _Type,
@@ -543,7 +543,7 @@ OCalcTable::OCalcTable(sdbcx::OCollection* _pTables,OCalcConnection* _pConnectio
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcTable::OCalcTable" );
}
-// -----------------------------------------------------------------------------
+
void OCalcTable::construct()
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcTable::construct" );
@@ -626,7 +626,7 @@ void OCalcTable::construct()
refreshColumns();
}
-// -------------------------------------------------------------------------
+
void OCalcTable::refreshColumns()
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcTable::refreshColumns" );
@@ -643,14 +643,14 @@ void OCalcTable::refreshColumns()
else
m_pColumns = new OCalcColumns(this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
void OCalcTable::refreshIndexes()
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcTable::refreshIndexes" );
// Calc table has no index
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OCalcTable::disposing(void)
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcTable::disposing" );
@@ -662,7 +662,7 @@ void SAL_CALL OCalcTable::disposing(void)
m_pConnection = NULL;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OCalcTable::getTypes( ) throw(RuntimeException)
{
//SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcTable::getTypes" );
@@ -687,7 +687,7 @@ Sequence< Type > SAL_CALL OCalcTable::getTypes( ) throw(RuntimeException)
return Sequence< Type >(pAttrs, aOwnTypes.size());
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OCalcTable::queryInterface( const Type & rType ) throw(RuntimeException)
{
if( rType == ::getCppuType((const Reference<XKeysSupplier>*)0) ||
@@ -701,7 +701,7 @@ Any SAL_CALL OCalcTable::queryInterface( const Type & rType ) throw(RuntimeExcep
return aRet.hasValue() ? aRet : OTable_TYPEDEF::queryInterface(rType);
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > OCalcTable::getUnoTunnelImplementationId()
{
//SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcTable::getUnoTunnelImplementationId" );
@@ -719,7 +719,7 @@ Sequence< sal_Int8 > OCalcTable::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OCalcTable::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
//SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcTable::getSomething" );
@@ -727,17 +727,17 @@ sal_Int64 OCalcTable::getSomething( const Sequence< sal_Int8 > & rId ) throw (Ru
? reinterpret_cast< sal_Int64 >( this )
: OCalcTable_BASE::getSomething(rId);
}
-//------------------------------------------------------------------
+
sal_Int32 OCalcTable::getCurrentLastPos() const
{
//SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcTable::getCurrentLastPos" );
return m_nDataRows;
}
-//------------------------------------------------------------------
+
sal_Bool OCalcTable::seekRow(IResultSetHelper::Movement eCursorPosition, sal_Int32 nOffset, sal_Int32& nCurPos)
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcTable::seekRow" );
- // ----------------------------------------------------------
+
// prepare positioning:
sal_uInt32 nNumberOfRecords = m_nDataRows;
@@ -806,7 +806,7 @@ End:
nCurPos = m_nFilePos;
return sal_True;
}
-//------------------------------------------------------------------
+
sal_Bool OCalcTable::fetchRow( OValueRefRow& _rRow, const OSQLColumns & _rCols,
sal_Bool _bUseTableDefs, sal_Bool bRetrieveData )
{
@@ -843,7 +843,7 @@ sal_Bool OCalcTable::fetchRow( OValueRefRow& _rRow, const OSQLColumns & _rCols,
}
return sal_True;
}
-// -------------------------------------------------------------------------
+
void OCalcTable::FileClose()
{
SAL_INFO( "connectivity.drivers", "calc Ocke.Janssen@sun.com OCalcTable::FileClose" );
@@ -851,6 +851,6 @@ void OCalcTable::FileClose()
OCalcTable_BASE::FileClose();
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/calc/CTables.cxx b/connectivity/source/drivers/calc/CTables.cxx
index 407f2b3950f1..7b084a16b7d2 100644
--- a/connectivity/source/drivers/calc/CTables.cxx
+++ b/connectivity/source/drivers/calc/CTables.cxx
@@ -44,6 +44,6 @@ sdbcx::ObjectType OCalcTables::createObject(const OUString& _rName)
pTable->construct();
return xRet;
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/calc/Cservices.cxx b/connectivity/source/drivers/calc/Cservices.cxx
index 7b95af660383..335be8ab969a 100644
--- a/connectivity/source/drivers/calc/Cservices.cxx
+++ b/connectivity/source/drivers/calc/Cservices.cxx
@@ -35,7 +35,7 @@ typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
rtl_ModuleCount*
);
-//---------------------------------------------------------------------------------------
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
@@ -75,7 +75,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
-//---------------------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL connectivity_calc_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/dbase/DCatalog.cxx b/connectivity/source/drivers/dbase/DCatalog.cxx
index 6c67969ed46f..4ff0d83c65c2 100644
--- a/connectivity/source/drivers/dbase/DCatalog.cxx
+++ b/connectivity/source/drivers/dbase/DCatalog.cxx
@@ -29,13 +29,13 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
-// -------------------------------------------------------------------------
+
using namespace connectivity::dbase;
-// -------------------------------------------------------------------------
+
ODbaseCatalog::ODbaseCatalog(ODbaseConnection* _pCon) : file::OFileCatalog(_pCon)
{
}
-// -------------------------------------------------------------------------
+
void ODbaseCatalog::refreshTables()
{
TStringVector aVector;
diff --git a/connectivity/source/drivers/dbase/DCode.cxx b/connectivity/source/drivers/dbase/DCode.cxx
index 9d9b0827eab9..80e9aed2c9a5 100644
--- a/connectivity/source/drivers/dbase/DCode.cxx
+++ b/connectivity/source/drivers/dbase/DCode.cxx
@@ -32,7 +32,7 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
TYPEINIT1(OFILEOperandAttr, OOperandAttr);
-// -----------------------------------------------------------------------------
+
OOperandAttr* OFILEAnalyzer::createOperandAttr(sal_Int32 _nPos,
const Reference< XPropertySet>& _xCol,
const Reference< XNameAccess>& _xIndexes)
@@ -40,7 +40,7 @@ OOperandAttr* OFILEAnalyzer::createOperandAttr(sal_Int32 _nPos,
return new OFILEOperandAttr((sal_uInt16)_nPos,_xCol,_xIndexes);
}
-//------------------------------------------------------------------
+
OFILEOperandAttr::OFILEOperandAttr(sal_uInt16 _nPos,
const Reference< XPropertySet>& _xColumn,
const Reference< XNameAccess>& _xIndexes)
@@ -82,12 +82,12 @@ OFILEOperandAttr::OFILEOperandAttr(sal_uInt16 _nPos,
}
}
-// -------------------------------------------------------------------------
+
sal_Bool OFILEOperandAttr::isIndexed() const
{
return m_xIndex.is();
}
-//------------------------------------------------------------------
+
OEvaluateSet* OFILEOperandAttr::preProcess(OBoolOperator* pOp, OOperand* pRight)
{
OEvaluateSet* pEvaluateSet = NULL;
diff --git a/connectivity/source/drivers/dbase/DColumns.cxx b/connectivity/source/drivers/dbase/DColumns.cxx
index eaa6d1a605e1..00888a0c4e77 100644
--- a/connectivity/source/drivers/dbase/DColumns.cxx
+++ b/connectivity/source/drivers/dbase/DColumns.cxx
@@ -46,18 +46,18 @@ sdbcx::ObjectType ODbaseColumns::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void ODbaseColumns::impl_refresh() throw(RuntimeException)
{
m_pTable->refreshColumns();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > ODbaseColumns::createDescriptor()
{
return new sdbcx::OColumn(isCaseSensitive());
}
-// -----------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
// XAppend
sdbcx::ObjectType ODbaseColumns::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
@@ -67,14 +67,14 @@ sdbcx::ObjectType ODbaseColumns::appendObject( const OUString& _rForName, const
m_pTable->addColumn( descriptor );
return createObject( _rForName );
}
-// -----------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
// XDrop
void ODbaseColumns::dropObject(sal_Int32 _nPos,const OUString /*_sElementName*/)
{
if(!m_pTable->isNew())
m_pTable->dropColumn(_nPos);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/dbase/DConnection.cxx b/connectivity/source/drivers/dbase/DConnection.cxx
index 0ef1c4229b38..2fd71ab384ba 100644
--- a/connectivity/source/drivers/dbase/DConnection.cxx
+++ b/connectivity/source/drivers/dbase/DConnection.cxx
@@ -33,7 +33,7 @@ using namespace connectivity::file;
typedef connectivity::file::OConnection OConnection_BASE;
-//------------------------------------------------------------------------------
+
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbcx;
@@ -41,23 +41,23 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::lang;
DBG_NAME(ODbaseConnection)
-// --------------------------------------------------------------------------------
+
ODbaseConnection::ODbaseConnection(ODriver* _pDriver) : OConnection(_pDriver)
{
DBG_CTOR(ODbaseConnection,NULL);
m_aFilenameExtension = "dbf";
}
-//-----------------------------------------------------------------------------
+
ODbaseConnection::~ODbaseConnection()
{
DBG_DTOR(ODbaseConnection,NULL);
}
// XServiceInfo
-// --------------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(ODbaseConnection, "com.sun.star.sdbc.drivers.dbase.Connection", "com.sun.star.sdbc.Connection")
-// --------------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL ODbaseConnection::getMetaData( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -73,7 +73,7 @@ Reference< XDatabaseMetaData > SAL_CALL ODbaseConnection::getMetaData( ) throw(
return xMetaData;
}
-//------------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< XTablesSupplier > ODbaseConnection::createCatalog()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -86,7 +86,7 @@ Reference< XDatabaseMetaData > SAL_CALL ODbaseConnection::getMetaData( ) throw(
}
return xTab;
}
-// --------------------------------------------------------------------------------
+
Reference< XStatement > SAL_CALL ODbaseConnection::createStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -97,7 +97,7 @@ Reference< XStatement > SAL_CALL ODbaseConnection::createStatement( ) throw(SQL
m_aStatements.push_back(WeakReferenceHelper(xReturn));
return xReturn;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL ODbaseConnection::prepareStatement( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -110,12 +110,12 @@ Reference< XPreparedStatement > SAL_CALL ODbaseConnection::prepareStatement( con
m_aStatements.push_back(WeakReferenceHelper(*pStmt));
return pStmt;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL ODbaseConnection::prepareCall( const OUString& /*sql*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::prepareCall", *this );
return NULL;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx b/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx
index 13c25f5e7bef..3047b5b77aec 100644
--- a/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx
@@ -49,11 +49,11 @@ ODbaseDatabaseMetaData::ODbaseDatabaseMetaData(::connectivity::file::OConnection
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseDatabaseMetaData::ODbaseDatabaseMetaData" );
}
-// -------------------------------------------------------------------------
+
ODbaseDatabaseMetaData::~ODbaseDatabaseMetaData()
{
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > ODbaseDatabaseMetaData::impl_getTypeInfo_throw( )
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseDatabaseMetaData::impl_getTypeInfo_throw" );
@@ -153,7 +153,7 @@ Reference< XResultSet > ODbaseDatabaseMetaData::impl_getTypeInfo_throw( )
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODbaseDatabaseMetaData::getColumns(
const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& tableNamePattern,
const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
@@ -244,7 +244,7 @@ Reference< XResultSet > SAL_CALL ODbaseDatabaseMetaData::getColumns(
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODbaseDatabaseMetaData::getIndexInfo(
const Any& /*catalog*/, const OUString& /*schema*/, const OUString& table,
sal_Bool unique, sal_Bool /*approximate*/ ) throw(SQLException, RuntimeException)
@@ -321,56 +321,56 @@ Reference< XResultSet > SAL_CALL ODbaseDatabaseMetaData::getIndexInfo(
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODbaseDatabaseMetaData::getURL( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseDatabaseMetaData::getURL" );
::osl::MutexGuard aGuard( m_aMutex );
return OUString("sdbc:dbase:") + m_pConnection->getURL();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseDatabaseMetaData::getMaxBinaryLiteralLength" );
return SAL_MAX_INT32;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxCharLiteralLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseDatabaseMetaData::getMaxCharLiteralLength" );
return 254;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxColumnNameLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseDatabaseMetaData::getMaxColumnNameLength" );
return 10;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxColumnsInIndex( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseDatabaseMetaData::getMaxColumnsInIndex" );
return 1;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxColumnsInTable( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseDatabaseMetaData::getMaxColumnsInTable" );
return 128;
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODbaseDatabaseMetaData::supportsAlterTableWithAddColumn( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseDatabaseMetaData::supportsAlterTableWithAddColumn" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODbaseDatabaseMetaData::supportsAlterTableWithDropColumn( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseDatabaseMetaData::supportsAlterTableWithDropColumn" );
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODbaseDatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseDatabaseMetaData::isReadOnly" );
@@ -383,19 +383,19 @@ sal_Bool SAL_CALL ODbaseDatabaseMetaData::isReadOnly( ) throw(SQLException, Run
return bReadOnly;
}
-// -----------------------------------------------------------------------------
+
sal_Bool ODbaseDatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( )
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseDatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw" );
return sal_True;
}
-// -----------------------------------------------------------------------------
+
sal_Bool ODbaseDatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( )
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseDatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw" );
return sal_True;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/dbase/DDriver.cxx b/connectivity/source/drivers/dbase/DDriver.cxx
index 67748a843ae8..993b7abf7fd3 100644
--- a/connectivity/source/drivers/dbase/DDriver.cxx
+++ b/connectivity/source/drivers/dbase/DDriver.cxx
@@ -34,24 +34,24 @@ using namespace ::com::sun::star::lang;
// static ServiceInfo
-//------------------------------------------------------------------------------
+
OUString ODriver::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString("com.sun.star.comp.sdbc.dbase.ODriver");
}
-//------------------------------------------------------------------
+
OUString SAL_CALL ODriver::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
}
-//------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL connectivity::dbase::ODriver_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception )
{
return *(new ODriver( comphelper::getComponentContext(_rxFactory) ));
}
-// --------------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL ODriver::connect( const OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -68,12 +68,12 @@ Reference< XConnection > SAL_CALL ODriver::connect( const OUString& url, const S
return xCon;
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODriver::acceptsURL( const OUString& url ) throw(SQLException, RuntimeException)
{
return url.startsWith("sdbc:dbase:");
}
-// -----------------------------------------------------------------------------
+
Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString& url, const Sequence< PropertyValue >& /*info*/ ) throw(SQLException, RuntimeException)
{
if ( acceptsURL(url) )
@@ -113,7 +113,7 @@ Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString
::dbtools::throwGenericSQLException(sMessage ,*this);
return Sequence< DriverPropertyInfo >();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/dbase/DIndex.cxx b/connectivity/source/drivers/dbase/DIndex.cxx
index 73bf4f45a9be..5286072b7665 100644
--- a/connectivity/source/drivers/dbase/DIndex.cxx
+++ b/connectivity/source/drivers/dbase/DIndex.cxx
@@ -41,7 +41,7 @@
#include <unotools/sharedunocomponent.hxx>
using namespace ::comphelper;
-// -------------------------------------------------------------------------
+
using namespace connectivity;
using namespace utl;
using namespace ::cppu;
@@ -55,7 +55,7 @@ using namespace com::sun::star::beans;
using namespace com::sun::star::lang;
IMPLEMENT_SERVICE_INFO(ODbaseIndex,"com.sun.star.sdbcx.driver.dbase.Index","com.sun.star.sdbcx.Index");
-// -------------------------------------------------------------------------
+
ODbaseIndex::ODbaseIndex(ODbaseTable* _pTable)
: OIndex(sal_True/*_pTable->getConnection()->getMetaData()->supportsMixedCaseQuotedIdentifiers()*/)
, m_pFileStream(NULL)
@@ -68,7 +68,7 @@ ODbaseIndex::ODbaseIndex(ODbaseTable* _pTable)
memset(&m_aHeader, 0, sizeof(m_aHeader));
construct();
}
-// -------------------------------------------------------------------------
+
ODbaseIndex::ODbaseIndex( ODbaseTable* _pTable,
const NDXHeader& _rHeader,
const OUString& _rName)
@@ -83,12 +83,12 @@ ODbaseIndex::ODbaseIndex( ODbaseTable* _pTable,
{
construct();
}
-// -----------------------------------------------------------------------------
+
ODbaseIndex::~ODbaseIndex()
{
closeImpl();
}
-// -------------------------------------------------------------------------
+
void ODbaseIndex::refreshColumns()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -106,7 +106,7 @@ void ODbaseIndex::refreshColumns()
else
m_pColumns = new ODbaseIndexColumns(this,m_aMutex,aVector);
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > ODbaseIndex::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -123,14 +123,14 @@ Sequence< sal_Int8 > ODbaseIndex::getUnoTunnelImplementationId()
}
// XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 ODbaseIndex::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelImplementationId().getConstArray(), rId.getConstArray(), 16 ) )
? reinterpret_cast< sal_Int64 >( this )
: ODbaseIndex_BASE::getSomething(rId);
}
-//------------------------------------------------------------------
+
ONDXPagePtr ODbaseIndex::getRoot()
{
openIndexFile();
@@ -142,7 +142,7 @@ ONDXPagePtr ODbaseIndex::getRoot()
}
return m_aRoot;
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseIndex::openIndexFile()
{
if(!m_pFileStream)
@@ -172,14 +172,14 @@ sal_Bool ODbaseIndex::openIndexFile()
return m_pFileStream != NULL;
}
-//------------------------------------------------------------------
+
OIndexIterator* ODbaseIndex::createIterator(OBoolOperator* pOp,
const OOperand* pOperand)
{
openIndexFile();
return new OIndexIterator(this, pOp, pOperand);
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseIndex::ConvertToKey(ONDXKey* rKey, sal_uInt32 nRec, const ORowSetValue& rValue)
{
OSL_ENSURE(m_pFileStream,"FileStream is not opened!");
@@ -207,7 +207,7 @@ sal_Bool ODbaseIndex::ConvertToKey(ONDXKey* rKey, sal_uInt32 nRec, const ORowSet
return sal_True;
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseIndex::Find(sal_uInt32 nRec, const ORowSetValue& rValue)
{
openIndexFile();
@@ -218,7 +218,7 @@ sal_Bool ODbaseIndex::Find(sal_uInt32 nRec, const ORowSetValue& rValue)
return ConvertToKey(&aKey, nRec, rValue) && getRoot()->Find(aKey);
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseIndex::Insert(sal_uInt32 nRec, const ORowSetValue& rValue)
{
openIndexFile();
@@ -242,7 +242,7 @@ sal_Bool ODbaseIndex::Insert(sal_uInt32 nRec, const ORowSetValue& rValue)
return bResult;
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseIndex::Update(sal_uInt32 nRec, const ORowSetValue& rOldValue,
const ORowSetValue& rNewValue)
{
@@ -255,7 +255,7 @@ sal_Bool ODbaseIndex::Update(sal_uInt32 nRec, const ORowSetValue& rOldValue,
return Delete(nRec, rOldValue) && Insert(nRec,rNewValue);
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseIndex::Delete(sal_uInt32 nRec, const ORowSetValue& rValue)
{
openIndexFile();
@@ -277,13 +277,13 @@ sal_Bool ODbaseIndex::Delete(sal_uInt32 nRec, const ORowSetValue& rValue)
return m_aCurLeaf->Delete(m_nCurNode);
}
-//------------------------------------------------------------------
+
void ODbaseIndex::Collect(ONDXPage* pPage)
{
if (pPage)
m_aCollector.push_back(pPage);
}
-//------------------------------------------------------------------
+
void ODbaseIndex::Release(sal_Bool bSave)
{
// Release the Index-recources
@@ -320,7 +320,7 @@ void ODbaseIndex::Release(sal_Bool bSave)
closeImpl();
}
-// -----------------------------------------------------------------------------
+
void ODbaseIndex::closeImpl()
{
if(m_pFileStream)
@@ -329,7 +329,7 @@ void ODbaseIndex::closeImpl()
m_pFileStream = NULL;
}
}
-//------------------------------------------------------------------
+
ONDXPage* ODbaseIndex::CreatePage(sal_uInt32 nPagePos, ONDXPage* pParent, sal_Bool bLoad)
{
OSL_ENSURE(m_pFileStream,"FileStream is not opened!");
@@ -351,7 +351,7 @@ ONDXPage* ODbaseIndex::CreatePage(sal_uInt32 nPagePos, ONDXPage* pParent, sal_Bo
return pPage;
}
-//------------------------------------------------------------------
+
SvStream& connectivity::dbase::operator >> (SvStream &rStream, ODbaseIndex& rIndex)
{
rStream.Seek(0);
@@ -361,14 +361,14 @@ SvStream& connectivity::dbase::operator >> (SvStream &rStream, ODbaseIndex& rInd
rIndex.m_nPageCount = rIndex.m_aHeader.db_pagecount;
return rStream;
}
-//------------------------------------------------------------------
+
SvStream& connectivity::dbase::WriteODbaseIndex(SvStream &rStream, ODbaseIndex& rIndex)
{
rStream.Seek(0);
OSL_VERIFY_EQUALS( rStream.Write(&rIndex.m_aHeader,DINDEX_PAGE_SIZE), DINDEX_PAGE_SIZE, "Write not successful: Wrong header size for dbase index!");
return rStream;
}
-// -------------------------------------------------------------------------
+
OUString ODbaseIndex::getCompletePath()
{
OUString sDir = m_pTable->getConnection()->getURL() +
@@ -376,7 +376,7 @@ OUString ODbaseIndex::getCompletePath()
m_Name + ".ndx";
return sDir;
}
-//------------------------------------------------------------------
+
void ODbaseIndex::createINFEntry()
{
// synchronize inf-file
@@ -412,7 +412,7 @@ void ODbaseIndex::createINFEntry()
}
aInfFile.WriteKey(aNewEntry, OUStringToOString(sEntry, m_pTable->getConnection()->getTextEncoding()));
}
-// -------------------------------------------------------------------------
+
sal_Bool ODbaseIndex::DropImpl()
{
closeImpl();
@@ -455,7 +455,7 @@ sal_Bool ODbaseIndex::DropImpl()
}
return sal_True;
}
-// -------------------------------------------------------------------------
+
void ODbaseIndex::impl_killFileAndthrowError_throw(sal_uInt16 _nErrorId,const OUString& _sFile)
{
closeImpl();
@@ -463,7 +463,7 @@ void ODbaseIndex::impl_killFileAndthrowError_throw(sal_uInt16 _nErrorId,const OU
UCBContentHelper::Kill(_sFile);
m_pTable->getConnection()->throwGenericSQLException(_nErrorId,*this);
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseIndex::CreateImpl()
{
// Create the Index
@@ -603,18 +603,18 @@ sal_Bool ODbaseIndex::CreateImpl()
createINFEntry();
return sal_True;
}
-// -----------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
+
+
void SAL_CALL ODbaseIndex::acquire() throw()
{
ODbaseIndex_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL ODbaseIndex::release() throw()
{
ODbaseIndex_BASE::release();
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/dbase/DIndexColumns.cxx b/connectivity/source/drivers/dbase/DIndexColumns.cxx
index 9a2da6e39659..16ab90e6ac88 100644
--- a/connectivity/source/drivers/dbase/DIndexColumns.cxx
+++ b/connectivity/source/drivers/dbase/DIndexColumns.cxx
@@ -67,22 +67,22 @@ sdbcx::ObjectType ODbaseIndexColumns::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void ODbaseIndexColumns::impl_refresh() throw(RuntimeException)
{
m_pIndex->refreshColumns();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > ODbaseIndexColumns::createDescriptor()
{
return new sdbcx::OIndexColumn(m_pIndex->getTable()->getConnection()->getMetaData()->supportsMixedCaseQuotedIdentifiers());
}
-// -------------------------------------------------------------------------
+
sdbcx::ObjectType ODbaseIndexColumns::appendObject( const OUString& /*_rForName*/, const Reference< XPropertySet >& descriptor )
{
return cloneDescriptor( descriptor );
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/dbase/DIndexIter.cxx b/connectivity/source/drivers/dbase/DIndexIter.cxx
index 2a5892aa84c6..00ca2e78095d 100644
--- a/connectivity/source/drivers/dbase/DIndexIter.cxx
+++ b/connectivity/source/drivers/dbase/DIndexIter.cxx
@@ -27,24 +27,24 @@ using namespace connectivity::file;
//==================================================================
// OIndexIterator
//==================================================================
-//------------------------------------------------------------------
+
OIndexIterator::~OIndexIterator()
{
m_pIndex->release();
}
-//------------------------------------------------------------------
+
sal_uIntPtr OIndexIterator::First()
{
return Find(sal_True);
}
-//------------------------------------------------------------------
+
sal_uIntPtr OIndexIterator::Next()
{
return Find(sal_False);
}
-//------------------------------------------------------------------
+
sal_uIntPtr OIndexIterator::Find(sal_Bool bFirst)
{
sal_uIntPtr nRes = NODE_NOTFOUND;
@@ -82,7 +82,7 @@ sal_uIntPtr OIndexIterator::Find(sal_Bool bFirst)
return nRes;
}
-//------------------------------------------------------------------
+
ONDXKey* OIndexIterator::GetFirstKey(ONDXPage* pPage, const OOperand& rKey)
{
// searches a given key
@@ -128,7 +128,7 @@ ONDXKey* OIndexIterator::GetFirstKey(ONDXPage* pPage, const OOperand& rKey)
return pFoundKey;
}
-//------------------------------------------------------------------
+
sal_uIntPtr OIndexIterator::GetCompare(sal_Bool bFirst)
{
ONDXKey* pKey = NULL;
@@ -198,7 +198,7 @@ sal_uIntPtr OIndexIterator::GetCompare(sal_Bool bFirst)
return pKey ? pKey->GetRecord() : NODE_NOTFOUND;
}
-//------------------------------------------------------------------
+
sal_uIntPtr OIndexIterator::GetLike(sal_Bool bFirst)
{
if (bFirst)
@@ -218,7 +218,7 @@ sal_uIntPtr OIndexIterator::GetLike(sal_Bool bFirst)
return pKey ? pKey->GetRecord() : NODE_NOTFOUND;
}
-//------------------------------------------------------------------
+
sal_uIntPtr OIndexIterator::GetNull(sal_Bool bFirst)
{
if (bFirst)
@@ -240,7 +240,7 @@ sal_uIntPtr OIndexIterator::GetNull(sal_Bool bFirst)
return pKey ? pKey->GetRecord() : NODE_NOTFOUND;
}
-//------------------------------------------------------------------
+
sal_uIntPtr OIndexIterator::GetNotNull(sal_Bool bFirst)
{
ONDXKey* pKey;
@@ -259,7 +259,7 @@ sal_uIntPtr OIndexIterator::GetNotNull(sal_Bool bFirst)
return pKey ? pKey->GetRecord() : NODE_NOTFOUND;
}
-//------------------------------------------------------------------
+
ONDXKey* OIndexIterator::GetNextKey()
{
if (m_aCurLeaf.Is() && ((++m_nCurNode) >= m_aCurLeaf->Count()))
diff --git a/connectivity/source/drivers/dbase/DIndexes.cxx b/connectivity/source/drivers/dbase/DIndexes.cxx
index ef31f7e73e62..56dd8a750c97 100644
--- a/connectivity/source/drivers/dbase/DIndexes.cxx
+++ b/connectivity/source/drivers/dbase/DIndexes.cxx
@@ -77,18 +77,18 @@ sdbcx::ObjectType ODbaseIndexes::createObject(const OUString& _rName)
}
return xRet;
}
-// -------------------------------------------------------------------------
+
void ODbaseIndexes::impl_refresh( ) throw(RuntimeException)
{
if(m_pTable)
m_pTable->refreshIndexes();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > ODbaseIndexes::createDescriptor()
{
return new ODbaseIndex(m_pTable);
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType ODbaseIndexes::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
@@ -102,7 +102,7 @@ sdbcx::ObjectType ODbaseIndexes::appendObject( const OUString& _rForName, const
return createObject( _rForName );
}
-// -------------------------------------------------------------------------
+
// XDrop
void ODbaseIndexes::dropObject(sal_Int32 _nPos,const OUString /*_sElementName*/)
{
@@ -115,7 +115,7 @@ void ODbaseIndexes::dropObject(sal_Int32 _nPos,const OUString /*_sElementName*/)
}
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/dbase/DPreparedStatement.cxx b/connectivity/source/drivers/dbase/DPreparedStatement.cxx
index 48ccb2042114..8aff710eaee8 100644
--- a/connectivity/source/drivers/dbase/DPreparedStatement.cxx
+++ b/connectivity/source/drivers/dbase/DPreparedStatement.cxx
@@ -23,12 +23,12 @@
using namespace connectivity::dbase;
using namespace connectivity::file;
using namespace com::sun::star::uno;
-// -------------------------------------------------------------------------
+
OResultSet* ODbasePreparedStatement::createResultSet()
{
return new ODbaseResultSet(this,m_aSQLIterator);
}
-// -------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(ODbasePreparedStatement,"com.sun.star.sdbc.driver.dbase.PreparedStatement","com.sun.star.sdbc.PreparedStatement");
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/dbase/DResultSet.cxx b/connectivity/source/drivers/dbase/DResultSet.cxx
index 4df238369842..768f210e9120 100644
--- a/connectivity/source/drivers/dbase/DResultSet.cxx
+++ b/connectivity/source/drivers/dbase/DResultSet.cxx
@@ -39,19 +39,19 @@ using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
-//------------------------------------------------------------------------------
+
ODbaseResultSet::ODbaseResultSet( OStatement_Base* pStmt,connectivity::OSQLParseTreeIterator& _aSQLIterator)
: file::OResultSet(pStmt,_aSQLIterator)
,m_bBookmarkable(sal_True)
{
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISBOOKMARKABLE), PROPERTY_ID_ISBOOKMARKABLE, PropertyAttribute::READONLY,&m_bBookmarkable, ::getBooleanCppuType());
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODbaseResultSet::getImplementationName( ) throw ( RuntimeException)
{
return OUString("com.sun.star.sdbcx.dbase.ResultSet");
}
-// -------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL ODbaseResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
Sequence< OUString > aSupported(2);
@@ -64,19 +64,19 @@ sal_Bool SAL_CALL ODbaseResultSet::supportsService( const OUString& _rServiceNam
{
return cppu::supportsService(this, _rServiceName);
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL ODbaseResultSet::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = ODbaseResultSet_BASE::queryInterface(rType);
return aRet.hasValue() ? aRet : OResultSet::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL ODbaseResultSet::getTypes( ) throw( RuntimeException)
{
return ::comphelper::concatSequences(OResultSet::getTypes(),ODbaseResultSet_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
// XRowLocate
Any SAL_CALL ODbaseResultSet::getBookmark( ) throw( SQLException, RuntimeException)
{
@@ -86,7 +86,7 @@ Any SAL_CALL ODbaseResultSet::getBookmark( ) throw( SQLException, RuntimeExcep
return makeAny((sal_Int32)(m_aRow->get())[0]->getValue());
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODbaseResultSet::moveToBookmark( const Any& bookmark ) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -97,7 +97,7 @@ sal_Bool SAL_CALL ODbaseResultSet::moveToBookmark( const Any& bookmark ) throw(
return m_pTable ? Move(IResultSetHelper::BOOKMARK,comphelper::getINT32(bookmark),sal_True) : sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODbaseResultSet::moveRelativeToBookmark( const Any& bookmark, sal_Int32 rows ) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -111,7 +111,7 @@ sal_Bool SAL_CALL ODbaseResultSet::moveRelativeToBookmark( const Any& bookmark,
return relative(rows);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODbaseResultSet::compareBookmarks( const Any& lhs, const Any& rhs ) throw( SQLException, RuntimeException)
{
sal_Int32 nFirst(0),nSecond(0),nResult(0);
@@ -133,12 +133,12 @@ sal_Int32 SAL_CALL ODbaseResultSet::compareBookmarks( const Any& lhs, const Any&
return nResult;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODbaseResultSet::hasOrderedBookmarks( ) throw( SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODbaseResultSet::hashBookmark( const Any& bookmark ) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -147,7 +147,7 @@ sal_Int32 SAL_CALL ODbaseResultSet::hashBookmark( const Any& bookmark ) throw(
return comphelper::getINT32(bookmark);
}
-// -------------------------------------------------------------------------
+
// XDeleteRows
Sequence< sal_Int32 > SAL_CALL ODbaseResultSet::deleteRows( const Sequence< Any >& /*rows*/ ) throw( SQLException, RuntimeException)
{
@@ -157,7 +157,7 @@ Sequence< sal_Int32 > SAL_CALL ODbaseResultSet::deleteRows( const Sequence< An
::dbtools::throwFeatureNotImplementedException( "XDeleteRows::deleteRows", *this );
return Sequence< sal_Int32 >();
}
-// -------------------------------------------------------------------------
+
sal_Bool ODbaseResultSet::fillIndexValues(const Reference< XColumnsSupplier> &_xIndex)
{
Reference<XUnoTunnel> xTunnel(_xIndex,UNO_QUERY);
@@ -187,44 +187,44 @@ sal_Bool ODbaseResultSet::fillIndexValues(const Reference< XColumnsSupplier> &_x
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & ODbaseResultSet::getInfoHelper()
{
return *ODbaseResultSet_BASE3::getArrayHelper();
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* ODbaseResultSet::createArrayHelper() const
{
Sequence< Property > aProps;
describeProperties(aProps);
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL ODbaseResultSet::acquire() throw()
{
ODbaseResultSet_BASE2::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL ODbaseResultSet::release() throw()
{
ODbaseResultSet_BASE2::release();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL ODbaseResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
OSQLAnalyzer* ODbaseResultSet::createAnalyzer()
{
return new OFILEAnalyzer(m_pTable->getConnection());
}
-// -----------------------------------------------------------------------------
+
sal_Int32 ODbaseResultSet::getCurrentFilePos() const
{
return m_pTable->getFilePos();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/dbase/DStatement.cxx b/connectivity/source/drivers/dbase/DStatement.cxx
index 3477e015e933..e0eea49f36eb 100644
--- a/connectivity/source/drivers/dbase/DStatement.cxx
+++ b/connectivity/source/drivers/dbase/DStatement.cxx
@@ -24,12 +24,12 @@ using namespace connectivity::dbase;
using namespace connectivity::file;
using namespace com::sun::star::uno;
-// -------------------------------------------------------------------------
+
OResultSet* ODbaseStatement::createResultSet()
{
return new ODbaseResultSet(this,m_aSQLIterator);
}
-// -------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(ODbaseStatement,"com.sun.star.sdbc.driver.dbase.Statement","com.sun.star.sdbc.Statement");
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index c07f80108e68..b23085cf3f1c 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -189,7 +189,7 @@ void lcl_CalDate(sal_Int32 _nJulianDate,sal_Int32 _nJulianTime,com::sun::star::u
}
-// -------------------------------------------------------------------------
+
void ODbaseTable::readHeader()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::readHeader" );
@@ -292,7 +292,7 @@ void ODbaseTable::readHeader()
}
}
}
-// -------------------------------------------------------------------------
+
void ODbaseTable::fillColumns()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::fillColumns" );
@@ -439,7 +439,7 @@ void ODbaseTable::fillColumns()
} // for (; i < nFieldCount; i++)
OSL_ENSURE(i,"No columns in table!");
}
-// -------------------------------------------------------------------------
+
ODbaseTable::ODbaseTable(sdbcx::OCollection* _pTables, ODbaseConnection* _pConnection)
: ODbaseTable_BASE(_pTables,_pConnection)
, m_pMemoStream(NULL)
@@ -451,7 +451,7 @@ ODbaseTable::ODbaseTable(sdbcx::OCollection* _pTables, ODbaseConnection* _pConne
m_aHeader.db_typ = dBaseIII;
m_eEncoding = getConnection()->getTextEncoding();
}
-// -------------------------------------------------------------------------
+
ODbaseTable::ODbaseTable(sdbcx::OCollection* _pTables, ODbaseConnection* _pConnection,
const OUString& _Name,
const OUString& _Type,
@@ -471,7 +471,7 @@ ODbaseTable::ODbaseTable(sdbcx::OCollection* _pTables, ODbaseConnection* _pConne
m_eEncoding = getConnection()->getTextEncoding();
}
-// -----------------------------------------------------------------------------
+
void ODbaseTable::construct()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::construct" );
@@ -554,7 +554,7 @@ void ODbaseTable::construct()
AllocBuffer();
}
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseTable::ReadMemoHeader()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::ReadMemoHeader" );
@@ -604,7 +604,7 @@ sal_Bool ODbaseTable::ReadMemoHeader()
}
return sal_True;
}
-// -------------------------------------------------------------------------
+
OUString ODbaseTable::getEntry(OConnection* _pConnection,const OUString& _sName )
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::getEntry" );
@@ -648,7 +648,7 @@ OUString ODbaseTable::getEntry(OConnection* _pConnection,const OUString& _sName
}
return sURL;
}
-// -------------------------------------------------------------------------
+
void ODbaseTable::refreshColumns()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::refreshColumns" );
@@ -665,7 +665,7 @@ void ODbaseTable::refreshColumns()
else
m_pColumns = new ODbaseColumns(this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
void ODbaseTable::refreshIndexes()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::refreshIndexes" );
@@ -710,7 +710,7 @@ void ODbaseTable::refreshIndexes()
m_pIndexes = new ODbaseIndexes(this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODbaseTable::disposing(void)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::disposing" );
@@ -718,7 +718,7 @@ void SAL_CALL ODbaseTable::disposing(void)
::osl::MutexGuard aGuard(m_aMutex);
m_aColumns = NULL;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL ODbaseTable::getTypes( ) throw(RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::getTypes" );
@@ -741,7 +741,7 @@ Sequence< Type > SAL_CALL ODbaseTable::getTypes( ) throw(RuntimeException)
return Sequence< Type >(pTypes, aOwnTypes.size());
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL ODbaseTable::queryInterface( const Type & rType ) throw(RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::queryInterface" );
@@ -753,7 +753,7 @@ Any SAL_CALL ODbaseTable::queryInterface( const Type & rType ) throw(RuntimeExce
return aRet.hasValue() ? aRet : ::cppu::queryInterface(rType,static_cast< ::com::sun::star::lang::XUnoTunnel*> (this));
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > ODbaseTable::getUnoTunnelImplementationId()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::getUnoTunnelImplementationId" );
@@ -771,7 +771,7 @@ Sequence< sal_Int8 > ODbaseTable::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 ODbaseTable::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::getSomething" );
@@ -779,7 +779,7 @@ sal_Int64 ODbaseTable::getSomething( const Sequence< sal_Int8 > & rId ) throw (R
? reinterpret_cast< sal_Int64 >( this )
: ODbaseTable_BASE::getSomething(rId);
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseTable::fetchRow(OValueRefRow& _rRow,const OSQLColumns & _rCols, sal_Bool _bUseTableDefs,sal_Bool bRetrieveData)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::fetchRow" );
@@ -1001,8 +1001,8 @@ sal_Bool ODbaseTable::fetchRow(OValueRefRow& _rRow,const OSQLColumns & _rCols, s
}
return sal_True;
}
-//------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
void ODbaseTable::FileClose()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::FileClose" );
@@ -1016,7 +1016,7 @@ void ODbaseTable::FileClose()
ODbaseTable_BASE::FileClose();
}
-// -------------------------------------------------------------------------
+
sal_Bool ODbaseTable::CreateImpl()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::CreateImpl" );
@@ -1131,7 +1131,7 @@ sal_Bool ODbaseTable::CreateImpl()
return sal_True;
}
-// -----------------------------------------------------------------------------
+
void ODbaseTable::throwInvalidColumnType(const sal_uInt16 _nErrorId,const OUString& _sColumnName)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::throwInvalidColumnType" );
@@ -1150,7 +1150,7 @@ void ODbaseTable::throwInvalidColumnType(const sal_uInt16 _nErrorId,const OUStri
) );
::dbtools::throwGenericSQLException( sError, *this );
}
-//------------------------------------------------------------------
+
// creates in principle dBase IV file format
sal_Bool ODbaseTable::CreateFile(const INetURLObject& aFile, sal_Bool& bCreateMemo)
{
@@ -1399,7 +1399,7 @@ sal_Bool ODbaseTable::CreateFile(const INetURLObject& aFile, sal_Bool& bCreateMe
return sal_True;
}
-//------------------------------------------------------------------
+
// creates in principle dBase III file format
sal_Bool ODbaseTable::CreateMemoFile(const INetURLObject& aFile)
{
@@ -1420,7 +1420,7 @@ sal_Bool ODbaseTable::CreateMemoFile(const INetURLObject& aFile)
m_pMemoStream = NULL;
return sal_True;
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseTable::Drop_Static(const OUString& _sUrl,sal_Bool _bHasMemoFields,OCollection* _pIndexes )
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::Drop_Static" );
@@ -1469,7 +1469,7 @@ sal_Bool ODbaseTable::Drop_Static(const OUString& _sUrl,sal_Bool _bHasMemoFields
}
return bDropped;
}
-// -----------------------------------------------------------------------------
+
sal_Bool ODbaseTable::DropImpl()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::DropImpl" );
@@ -1488,7 +1488,7 @@ sal_Bool ODbaseTable::DropImpl()
return bDropped;
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseTable::InsertRow(OValueRefVector& rRow, sal_Bool bFlush,const Reference<XIndexAccess>& _xCols)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::InsertRow" );
@@ -1546,7 +1546,7 @@ sal_Bool ODbaseTable::InsertRow(OValueRefVector& rRow, sal_Bool bFlush,const Ref
return bInsertRow;
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseTable::UpdateRow(OValueRefVector& rRow, OValueRefRow& pOrgRow,const Reference<XIndexAccess>& _xCols)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::UpdateRow" );
@@ -1576,7 +1576,7 @@ sal_Bool ODbaseTable::UpdateRow(OValueRefVector& rRow, OValueRefRow& pOrgRow,con
return sal_True;
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseTable::DeleteRow(const OSQLColumns& _rCols)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::DeleteRow" );
@@ -1629,7 +1629,7 @@ sal_Bool ODbaseTable::DeleteRow(const OSQLColumns& _rCols)
m_pFileStream->Flush();
return sal_True;
}
-// -------------------------------------------------------------------------
+
Reference<XPropertySet> ODbaseTable::isUniqueByColumnName(sal_Int32 _nColumnPos)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::isUniqueByColumnName" );
@@ -1658,13 +1658,13 @@ Reference<XPropertySet> ODbaseTable::isUniqueByColumnName(sal_Int32 _nColumnPos)
}
return Reference<XPropertySet>();
}
-//------------------------------------------------------------------
+
static double toDouble(const OString& rString)
{
return ::rtl::math::stringToDouble( rString, '.', ',', NULL, NULL );
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseTable::UpdateBuffer(OValueRefVector& rRow, OValueRefRow pOrgRow, const Reference<XIndexAccess>& _xCols, const bool bForceAllFields)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::UpdateBuffer" );
@@ -2001,7 +2001,7 @@ sal_Bool ODbaseTable::UpdateBuffer(OValueRefVector& rRow, OValueRefRow pOrgRow,
return sal_True;
}
-// -----------------------------------------------------------------------------
+
sal_Bool ODbaseTable::WriteMemo(const ORowSetValue& aVariable, sal_uIntPtr& rBlockNr)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::WriteMemo" );
@@ -2136,7 +2136,7 @@ sal_Bool ODbaseTable::WriteMemo(const ORowSetValue& aVariable, sal_uIntPtr& rBlo
return sal_True;
}
-// -----------------------------------------------------------------------------
+
// XAlterTable
void SAL_CALL ODbaseTable::alterColumnByName( const OUString& colName, const Reference< XPropertySet >& descriptor ) throw(SQLException, NoSuchElementException, RuntimeException)
{
@@ -2150,7 +2150,7 @@ void SAL_CALL ODbaseTable::alterColumnByName( const OUString& colName, const Ref
alterColumn(m_pColumns->findColumn(colName)-1,descriptor,xOldColumn);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODbaseTable::alterColumnByIndex( sal_Int32 index, const Reference< XPropertySet >& descriptor ) throw(SQLException, ::com::sun::star::lang::IndexOutOfBoundsException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::alterColumnByIndex" );
@@ -2164,7 +2164,7 @@ void SAL_CALL ODbaseTable::alterColumnByIndex( sal_Int32 index, const Reference<
m_pColumns->getByIndex(index) >>= xOldColumn;
alterColumn(index,descriptor,xOldColumn);
}
-// -----------------------------------------------------------------------------
+
void ODbaseTable::alterColumn(sal_Int32 index,
const Reference< XPropertySet >& descriptor ,
const Reference< XDataDescriptorFactory >& xOldColumn )
@@ -2272,13 +2272,13 @@ void ODbaseTable::alterColumn(sal_Int32 index,
throw;
}
}
-// -----------------------------------------------------------------------------
+
Reference< XDatabaseMetaData> ODbaseTable::getMetaData() const
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::getMetaData" );
return getConnection()->getMetaData();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODbaseTable::rename( const OUString& newName ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::container::ElementExistException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::rename" );
@@ -2335,7 +2335,7 @@ namespace
}
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODbaseTable::renameImpl( const OUString& newName ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::container::ElementExistException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::getEntry" );
@@ -2351,7 +2351,7 @@ void SAL_CALL ODbaseTable::renameImpl( const OUString& newName ) throw(::com::su
renameFile(m_pConnection,m_Name,newName,sExt);
}
}
-// -----------------------------------------------------------------------------
+
void ODbaseTable::addColumn(const Reference< XPropertySet >& _xNewColumn)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::addColumn" );
@@ -2424,7 +2424,7 @@ void ODbaseTable::addColumn(const Reference< XPropertySet >& _xNewColumn)
throw;
}
}
-// -----------------------------------------------------------------------------
+
void ODbaseTable::dropColumn(sal_Int32 _nPos)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::dropColumn" );
@@ -2480,7 +2480,7 @@ void ODbaseTable::dropColumn(sal_Int32 _nPos)
FileClose();
construct();
}
-// -----------------------------------------------------------------------------
+
OUString ODbaseTable::createTempFile()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::createTempFile" );
@@ -2503,7 +2503,7 @@ OUString ODbaseTable::createTempFile()
return sNewName;
}
-// -----------------------------------------------------------------------------
+
void ODbaseTable::copyData(ODbaseTable* _pNewTable,sal_Int32 _nPos)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::copyData" );
@@ -2561,7 +2561,7 @@ void ODbaseTable::copyData(ODbaseTable* _pNewTable,sal_Int32 _nPos)
}
} // for(sal_uInt32 nRowPos = 0; nRowPos < m_aHeader.db_anz;++nRowPos)
}
-// -----------------------------------------------------------------------------
+
void ODbaseTable::throwInvalidDbaseFormat()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::throwInvalidDbaseFormat" );
@@ -2574,18 +2574,18 @@ void ODbaseTable::throwInvalidDbaseFormat()
) );
::dbtools::throwGenericSQLException( sError, *this );
}
-// -----------------------------------------------------------------------------
+
void ODbaseTable::refreshHeader()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::refreshHeader" );
if ( m_aHeader.db_anz == 0 )
readHeader();
}
-//------------------------------------------------------------------
+
sal_Bool ODbaseTable::seekRow(IResultSetHelper::Movement eCursorPosition, sal_Int32 nOffset, sal_Int32& nCurPos)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::seekRow" );
- // ----------------------------------------------------------
+
// prepare positioning:
OSL_ENSURE(m_pFileStream,"ODbaseTable::seekRow: FileStream is NULL!");
@@ -2665,7 +2665,7 @@ End:
nCurPos = m_nFilePos;
return sal_True;
}
-// -----------------------------------------------------------------------------
+
sal_Bool ODbaseTable::ReadMemo(sal_uIntPtr nBlockNo, ORowSetValue& aVariable)
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::ReadMemo" );
@@ -2742,7 +2742,7 @@ sal_Bool ODbaseTable::ReadMemo(sal_uIntPtr nBlockNo, ORowSetValue& aVariable)
}
return sal_True;
}
-// -----------------------------------------------------------------------------
+
void ODbaseTable::AllocBuffer()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::AllocBuffer" );
@@ -2762,7 +2762,7 @@ void ODbaseTable::AllocBuffer()
m_pBuffer = new sal_uInt8[m_nBufferSize+1];
}
}
-// -----------------------------------------------------------------------------
+
sal_Bool ODbaseTable::WriteBuffer()
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::WriteBuffer" );
@@ -2773,7 +2773,7 @@ sal_Bool ODbaseTable::WriteBuffer()
m_pFileStream->Seek(nPos);
return m_pFileStream->Write((char*) m_pBuffer, m_aHeader.db_slng) > 0;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 ODbaseTable::getCurrentLastPos() const
{
SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::getCurrentLastPos" );
diff --git a/connectivity/source/drivers/dbase/DTables.cxx b/connectivity/source/drivers/dbase/DTables.cxx
index 79cd308cd438..3d8ed8232564 100644
--- a/connectivity/source/drivers/dbase/DTables.cxx
+++ b/connectivity/source/drivers/dbase/DTables.cxx
@@ -52,17 +52,17 @@ sdbcx::ObjectType ODbaseTables::createObject(const OUString& _rName)
pRet->construct();
return xRet;
}
-// -------------------------------------------------------------------------
+
void ODbaseTables::impl_refresh( ) throw(RuntimeException)
{
static_cast<ODbaseCatalog*>(&m_rParent)->refreshTables();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > ODbaseTables::createDescriptor()
{
return new ODbaseTable(this,(ODbaseConnection*)static_cast<OFileCatalog&>(m_rParent).getConnection());
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType ODbaseTables::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
@@ -90,7 +90,7 @@ sdbcx::ObjectType ODbaseTables::appendObject( const OUString& _rForName, const R
}
return createObject( _rForName );
}
-// -------------------------------------------------------------------------
+
// XDrop
void ODbaseTables::dropObject(sal_Int32 _nPos,const OUString _sElementName)
{
@@ -120,13 +120,13 @@ void ODbaseTables::dropObject(sal_Int32 _nPos,const OUString _sElementName)
::dbtools::throwGenericSQLException( sError, NULL );
}
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL ODbaseTables::queryInterface( const Type & rType ) throw(RuntimeException)
{
typedef sdbcx::OCollection OTables_BASE;
return OTables_BASE::queryInterface(rType);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/dbase/Dservices.cxx b/connectivity/source/drivers/dbase/Dservices.cxx
index 5565df23d169..10815e70b2d6 100644
--- a/connectivity/source/drivers/dbase/Dservices.cxx
+++ b/connectivity/source/drivers/dbase/Dservices.cxx
@@ -35,7 +35,7 @@ typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
rtl_ModuleCount*
);
-//---------------------------------------------------------------------------------------
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
@@ -75,7 +75,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
-//---------------------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL dbase_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/dbase/dindexnode.cxx b/connectivity/source/drivers/dbase/dindexnode.cxx
index 7e519fc27837..25da53c2daee 100644
--- a/connectivity/source/drivers/dbase/dindexnode.cxx
+++ b/connectivity/source/drivers/dbase/dindexnode.cxx
@@ -32,19 +32,19 @@ using namespace connectivity;
using namespace connectivity::dbase;
using namespace connectivity::file;
using namespace com::sun::star::sdbc;
-// -----------------------------------------------------------------------------
+
ONDXKey::ONDXKey(sal_uInt32 nRec)
:nRecord(nRec)
{
}
-// -----------------------------------------------------------------------------
+
ONDXKey::ONDXKey(const ORowSetValue& rVal, sal_Int32 eType, sal_uInt32 nRec)
: ONDXKey_BASE(eType)
, nRecord(nRec)
, xValue(rVal)
{
}
-// -----------------------------------------------------------------------------
+
ONDXKey::ONDXKey(const OUString& aStr, sal_uInt32 nRec)
: ONDXKey_BASE(::com::sun::star::sdbc::DataType::VARCHAR)
,nRecord(nRec)
@@ -55,7 +55,7 @@ ONDXKey::ONDXKey(const OUString& aStr, sal_uInt32 nRec)
xValue.setBound(true);
}
}
-// -----------------------------------------------------------------------------
+
ONDXKey::ONDXKey(double aVal, sal_uInt32 nRec)
: ONDXKey_BASE(::com::sun::star::sdbc::DataType::DOUBLE)
@@ -63,7 +63,7 @@ ONDXKey::ONDXKey(double aVal, sal_uInt32 nRec)
,xValue(aVal)
{
}
-// -----------------------------------------------------------------------------
+
//==================================================================
// index page
@@ -80,12 +80,12 @@ ONDXPage::ONDXPage(ODbaseIndex& rInd, sal_uInt32 nPos, ONDXPage* pParent)
ppNodes = new ONDXNode[nT];
}
-//------------------------------------------------------------------
+
ONDXPage::~ONDXPage()
{
delete[] ppNodes;
}
-//------------------------------------------------------------------
+
void ONDXPage::QueryDelete()
{
// Store in GarbageCollector
@@ -114,7 +114,7 @@ void ONDXPage::QueryDelete()
else
SvRefBase::QueryDelete();
}
-//------------------------------------------------------------------
+
ONDXPagePtr& ONDXPage::GetChild(ODbaseIndex* pIndex)
{
if (!aChild.Is() && pIndex)
@@ -124,7 +124,7 @@ ONDXPagePtr& ONDXPage::GetChild(ODbaseIndex* pIndex)
return aChild;
}
-//------------------------------------------------------------------
+
sal_uInt16 ONDXPage::FindPos(const ONDXKey& rKey) const
{
// searches the position for the given key in a page
@@ -135,7 +135,7 @@ sal_uInt16 ONDXPage::FindPos(const ONDXKey& rKey) const
return i;
}
-//------------------------------------------------------------------
+
sal_Bool ONDXPage::Find(const ONDXKey& rKey)
{
// searches the given key
@@ -169,7 +169,7 @@ sal_Bool ONDXPage::Find(const ONDXKey& rKey)
return bResult;
}
-//------------------------------------------------------------------
+
sal_Bool ONDXPage::Insert(ONDXNode& rNode, sal_uInt32 nRowsLeft)
{
// When creating an index there can be multiple nodes added,
@@ -289,7 +289,7 @@ sal_Bool ONDXPage::Insert(ONDXNode& rNode, sal_uInt32 nRowsLeft)
}
}
-//------------------------------------------------------------------
+
sal_Bool ONDXPage::Insert(sal_uInt16 nPos, ONDXNode& rNode)
{
sal_uInt16 nMaxCount = rIndex.getHeader().db_maxkeys;
@@ -321,13 +321,13 @@ sal_Bool ONDXPage::Insert(sal_uInt16 nPos, ONDXNode& rNode)
return sal_True;
}
-//------------------------------------------------------------------
+
sal_Bool ONDXPage::Append(ONDXNode& rNode)
{
DBG_ASSERT(!IsFull(), "kein Append moeglich");
return Insert(nCount, rNode);
}
-//------------------------------------------------------------------
+
void ONDXPage::Release(sal_Bool bSave)
{
// free pages
@@ -346,7 +346,7 @@ void ONDXPage::Release(sal_Bool bSave)
}
aParent = NULL;
}
-//------------------------------------------------------------------
+
void ONDXPage::ReleaseFull(sal_Bool bSave)
{
ONDXPagePtr aTempParent = aParent;
@@ -363,7 +363,7 @@ void ONDXPage::ReleaseFull(sal_Bool bSave)
aTempParent->GetChild().Clear();
}
}
-//------------------------------------------------------------------
+
sal_Bool ONDXPage::Delete(sal_uInt16 nNodePos)
{
if (IsLeaf())
@@ -414,7 +414,7 @@ sal_Bool ONDXPage::Delete(sal_uInt16 nNodePos)
}
-//------------------------------------------------------------------
+
ONDXNode ONDXPage::Split(ONDXPage& rPage)
{
DBG_ASSERT(IsFull(), "Falsches Splitting");
@@ -464,7 +464,7 @@ ONDXNode ONDXPage::Split(ONDXPage& rPage)
return aResultNode;
}
-//------------------------------------------------------------------
+
void ONDXPage::Merge(sal_uInt16 nParentNodePos, ONDXPagePtr xPage)
{
DBG_ASSERT(HasParent(), "kein Vater vorhanden");
@@ -651,7 +651,7 @@ void ONDXPage::Merge(sal_uInt16 nParentNodePos, ONDXPagePtr xPage)
// ONDXNode
//==================================================================
-//------------------------------------------------------------------
+
void ONDXNode::Read(SvStream &rStream, ODbaseIndex& rIndex)
{
rStream.ReadUInt32( aKey.nRecord ); // key
@@ -675,7 +675,7 @@ void ONDXNode::Read(SvStream &rStream, ODbaseIndex& rIndex)
rStream >> aChild;
}
-//------------------------------------------------------------------
+
void ONDXNode::Write(SvStream &rStream, const ONDXPage& rPage) const
{
const ODbaseIndex& rIndex = rPage.GetIndex();
@@ -717,7 +717,7 @@ void ONDXNode::Write(SvStream &rStream, const ONDXPage& rPage) const
}
-//------------------------------------------------------------------
+
ONDXPagePtr& ONDXNode::GetChild(ODbaseIndex* pIndex, ONDXPage* pParent)
{
if (!aChild.Is() && pIndex)
@@ -730,13 +730,13 @@ ONDXPagePtr& ONDXNode::GetChild(ODbaseIndex* pIndex, ONDXPage* pParent)
//==================================================================
// ONDXKey
//==================================================================
-//------------------------------------------------------------------
+
sal_Bool ONDXKey::IsText(sal_Int32 eType)
{
return eType == DataType::VARCHAR || eType == DataType::CHAR;
}
-//------------------------------------------------------------------
+
int ONDXKey::Compare(const ONDXKey& rKey) const
{
sal_Int32 nRes;
@@ -774,40 +774,40 @@ int ONDXKey::Compare(const ONDXKey& rKey) const
}
return nRes;
}
-// -----------------------------------------------------------------------------
+
void ONDXKey::setValue(const ORowSetValue& _rVal)
{
xValue = _rVal;
}
-// -----------------------------------------------------------------------------
+
const ORowSetValue& ONDXKey::getValue() const
{
return xValue;
}
-// -----------------------------------------------------------------------------
+
SvStream& connectivity::dbase::operator >> (SvStream &rStream, ONDXPagePtr& rPage)
{
rStream.ReadUInt32( rPage.nPagePos );
return rStream;
}
-// -----------------------------------------------------------------------------
+
SvStream& connectivity::dbase::WriteONDXPagePtr(SvStream &rStream, const ONDXPagePtr& rPage)
{
rStream.WriteUInt32( rPage.nPagePos );
return rStream;
}
-// -----------------------------------------------------------------------------
+
//==================================================================
// ONDXPagePtr
//==================================================================
-//------------------------------------------------------------------
+
ONDXPagePtr::ONDXPagePtr(const ONDXPagePtr& rRef)
:ONDXPageRef(rRef)
,nPagePos(rRef.nPagePos)
{
}
-//------------------------------------------------------------------
+
ONDXPagePtr::ONDXPagePtr(ONDXPage* pRefPage)
:ONDXPageRef(pRefPage)
,nPagePos(0)
@@ -815,7 +815,7 @@ ONDXPagePtr::ONDXPagePtr(ONDXPage* pRefPage)
if (pRefPage)
nPagePos = pRefPage->GetPagePos();
}
-//------------------------------------------------------------------
+
ONDXPagePtr& ONDXPagePtr::operator=(const ONDXPagePtr& rRef)
{
ONDXPageRef::operator=(rRef);
@@ -823,16 +823,16 @@ ONDXPagePtr& ONDXPagePtr::operator=(const ONDXPagePtr& rRef)
return *this;
}
-//------------------------------------------------------------------
+
ONDXPagePtr& ONDXPagePtr::operator= (ONDXPage* pRef)
{
ONDXPageRef::operator=(pRef);
nPagePos = (pRef) ? pRef->GetPagePos() : 0;
return *this;
}
-// -----------------------------------------------------------------------------
+
static sal_uInt32 nValue;
-//------------------------------------------------------------------
+
SvStream& connectivity::dbase::operator >> (SvStream &rStream, ONDXPage& rPage)
{
rStream.Seek(rPage.GetPagePos() * DINDEX_PAGE_SIZE);
@@ -844,7 +844,7 @@ SvStream& connectivity::dbase::operator >> (SvStream &rStream, ONDXPage& rPage)
return rStream;
}
-//------------------------------------------------------------------
+
SvStream& connectivity::dbase::WriteONDXPage(SvStream &rStream, const ONDXPage& rPage)
{
// Page doesn't exist yet
@@ -887,9 +887,9 @@ SvStream& connectivity::dbase::WriteONDXPage(SvStream &rStream, const ONDXPage&
}
return rStream;
}
-// -----------------------------------------------------------------------------
+
#if OSL_DEBUG_LEVEL > 1
-//------------------------------------------------------------------
+
void ONDXPage::PrintPage()
{
OSL_TRACE("\nSDB: -----------Page: %d Parent: %d Count: %d Child: %d-----",
@@ -930,13 +930,13 @@ void ONDXPage::PrintPage()
OSL_TRACE("SDB: ===============================================");
}
#endif
-// -----------------------------------------------------------------------------
+
sal_Bool ONDXPage::IsFull() const
{
return Count() == rIndex.getHeader().db_maxkeys;
}
-// -----------------------------------------------------------------------------
-//------------------------------------------------------------------
+
+
sal_uInt16 ONDXPage::Search(const ONDXKey& rSearch)
{
// binary search later
@@ -948,7 +948,7 @@ sal_uInt16 ONDXPage::Search(const ONDXKey& rSearch)
return (i < Count()) ? i : NODE_NOTFOUND;
}
-//------------------------------------------------------------------
+
sal_uInt16 ONDXPage::Search(const ONDXPage* pPage)
{
sal_uInt16 i = NODE_NOTFOUND;
@@ -959,7 +959,7 @@ sal_uInt16 ONDXPage::Search(const ONDXPage* pPage)
// if not found, then we assume, that the page itself points to the page
return (i < Count()) ? i : NODE_NOTFOUND;
}
-// -----------------------------------------------------------------------------
+
// runs recursively
void ONDXPage::SearchAndReplace(const ONDXKey& rSearch,
ONDXKey& rReplace)
@@ -980,20 +980,20 @@ void ONDXPage::SearchAndReplace(const ONDXKey& rSearch,
}
}
}
-// -----------------------------------------------------------------------------
+
ONDXNode& ONDXPage::operator[] (sal_uInt16 nPos)
{
DBG_ASSERT(nCount > nPos, "falscher Indexzugriff");
return ppNodes[nPos];
}
-//------------------------------------------------------------------
+
const ONDXNode& ONDXPage::operator[] (sal_uInt16 nPos) const
{
DBG_ASSERT(nCount > nPos, "falscher Indexzugriff");
return ppNodes[nPos];
}
-// -----------------------------------------------------------------------------
+
void ONDXPage::Remove(sal_uInt16 nPos)
{
DBG_ASSERT(nCount > nPos, "falscher Indexzugriff");
@@ -1004,6 +1004,6 @@ void ONDXPage::Remove(sal_uInt16 nPos)
nCount--;
bModified = sal_True;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/evoab2/NCatalog.cxx b/connectivity/source/drivers/evoab2/NCatalog.cxx
index 95ce61830f5a..6fdd864871df 100644
--- a/connectivity/source/drivers/evoab2/NCatalog.cxx
+++ b/connectivity/source/drivers/evoab2/NCatalog.cxx
@@ -24,7 +24,7 @@
#include <com/sun/star/sdbc/XResultSet.hpp>
-// -------------------------------------------------------------------------
+
using namespace connectivity::evoab;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
@@ -32,7 +32,7 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
OEvoabCatalog::OEvoabCatalog(OEvoabConnection* _pCon) :
connectivity::sdbcx::OCatalog(_pCon)
,m_pConnection(_pCon)
diff --git a/connectivity/source/drivers/evoab2/NColumns.cxx b/connectivity/source/drivers/evoab2/NColumns.cxx
index 9f05ea22a80b..bb9a23c08e07 100644
--- a/connectivity/source/drivers/evoab2/NColumns.cxx
+++ b/connectivity/source/drivers/evoab2/NColumns.cxx
@@ -34,7 +34,7 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
using namespace connectivity::evoab;
-// -------------------------------------------------------------------------
+
sdbcx::ObjectType OEvoabColumns::createObject(const OUString& _rName)
{
const Any aCatalog;
@@ -80,7 +80,7 @@ sdbcx::ObjectType OEvoabColumns::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void OEvoabColumns::impl_refresh() throw(RuntimeException)
{
m_pTable->refreshColumns();
diff --git a/connectivity/source/drivers/evoab2/NConnection.cxx b/connectivity/source/drivers/evoab2/NConnection.cxx
index d06613304489..3846fca5d041 100644
--- a/connectivity/source/drivers/evoab2/NConnection.cxx
+++ b/connectivity/source/drivers/evoab2/NConnection.cxx
@@ -33,7 +33,7 @@
using namespace connectivity::evoab;
using namespace dbtools;
-//------------------------------------------------------------------------------
+
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbcx;
@@ -64,14 +64,14 @@ OUString implGetExceptionMsg( Exception& e )
return aMsg;
}
-// --------------------------------------------------------------------------------
+
OEvoabConnection::OEvoabConnection( OEvoabDriver& _rDriver )
:OSubComponent<OEvoabConnection, OConnection_BASE>( (::cppu::OWeakObject*)(&_rDriver), this )
,m_rDriver(_rDriver)
,m_xCatalog(NULL)
{
}
-//-----------------------------------------------------------------------------
+
OEvoabConnection::~OEvoabConnection()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -82,17 +82,17 @@ OEvoabConnection::~OEvoabConnection()
}
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL OEvoabConnection::release() throw()
{
relase_ChildImpl();
}
// XServiceInfo
-// --------------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OEvoabConnection, "com.sun.star.sdbc.drivers.evoab.Connection", "com.sun.star.sdbc.Connection")
-//-----------------------------------------------------------------------------
+
void OEvoabConnection::construct(const OUString& url, const Sequence< PropertyValue >& info) throw(SQLException)
{
osl_atomic_increment( &m_refCount );
@@ -123,13 +123,13 @@ void OEvoabConnection::construct(const OUString& url, const Sequence< PropertyVa
osl_atomic_decrement( &m_refCount );
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabConnection::nativeSQL( const OUString& _sSql ) throw(SQLException, RuntimeException)
{
// when you need to transform SQL92 to you driver specific you can do it here
return _sSql;
}
-// --------------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL OEvoabConnection::getMetaData( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -144,7 +144,7 @@ Reference< XDatabaseMetaData > SAL_CALL OEvoabConnection::getMetaData( ) throw(
return xMetaData;
}
-//------------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< XTablesSupplier > OEvoabConnection::createCatalog()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -157,7 +157,7 @@ Reference< XDatabaseMetaData > SAL_CALL OEvoabConnection::getMetaData( ) throw(
}
return xTab;
}
-// --------------------------------------------------------------------------------
+
Reference< XStatement > SAL_CALL OEvoabConnection::createStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -169,7 +169,7 @@ Reference< XStatement > SAL_CALL OEvoabConnection::createStatement( ) throw(SQL
m_aStatements.push_back(WeakReferenceHelper(*pStmt));
return xStmt;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OEvoabConnection::prepareStatement( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -194,7 +194,7 @@ sal_Bool SAL_CALL OEvoabConnection::isClosed( ) throw(SQLException, RuntimeExce
return OConnection_BASE::rBHelper.bDisposed;
}
-// --------------------------------------------------------------------------------
+
// XCloseable
void SAL_CALL OEvoabConnection::close( ) throw(SQLException, RuntimeException)
{
@@ -205,7 +205,7 @@ void SAL_CALL OEvoabConnection::close( ) throw(SQLException, RuntimeException)
dispose();
}
-// --------------------------------------------------------------------------------
+
// XWarningsSupplier
Any SAL_CALL OEvoabConnection::getWarnings( ) throw(SQLException, RuntimeException)
{
@@ -215,7 +215,7 @@ void SAL_CALL OEvoabConnection::clearWarnings( ) throw(SQLException, RuntimeExc
{
m_aWarnings.clearWarnings();
}
-//------------------------------------------------------------------------------
+
void OEvoabConnection::disposing()
{
diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
index 2ae114fbccde..76039c62c77a 100644
--- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx
@@ -256,7 +256,7 @@ OEvoabDatabaseMetaData::~OEvoabDatabaseMetaData()
{
}
-// -------------------------------------------------------------------------
+
ODatabaseMetaDataResultSet::ORows& OEvoabDatabaseMetaData::getColumnRows( const OUString& columnNamePattern )
{
static ODatabaseMetaDataResultSet::ORows aRows;
@@ -317,682 +317,682 @@ ODatabaseMetaDataResultSet::ORows& OEvoabDatabaseMetaData::getColumnRows( const
return aRows ;
}
-// -------------------------------------------------------------------------
+
OUString OEvoabDatabaseMetaData::impl_getCatalogSeparator_throw( )
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxRowSize( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxCatalogNameLength( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxCharLiteralLength( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxColumnNameLength( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxColumnsInIndex( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxCursorNameLength( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxConnections( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxColumnsInTable( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 OEvoabDatabaseMetaData::impl_getMaxStatements_throw( )
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxTableNameLength( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 OEvoabDatabaseMetaData::impl_getMaxTablesInSelect_throw( )
{
// We only support a single table
return 1;
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool OEvoabDatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool OEvoabDatabaseMetaData::impl_supportsAlterTableWithAddColumn_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool OEvoabDatabaseMetaData::impl_supportsAlterTableWithDropColumn_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException)
{
OUString aVal;
return aVal;
}
-// -------------------------------------------------------------------------
+
OUString OEvoabDatabaseMetaData::impl_getIdentifierQuoteString_throw( )
{
// normally this is "
OUString aVal("\"");
return aVal;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getExtraNameCharacters( ) throw(SQLException, RuntimeException)
{
OUString aVal;
return aVal;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool OEvoabDatabaseMetaData::impl_isCatalogAtStart_throw( )
{
sal_Bool bValue = sal_False;
return bValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 /*level*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool OEvoabDatabaseMetaData::impl_supportsSchemasInDataManipulation_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException)
{
return sal_True; // should be supported at least
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool OEvoabDatabaseMetaData::impl_supportsSchemasInTableDefinitions_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool OEvoabDatabaseMetaData::impl_supportsCatalogsInTableDefinitions_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool OEvoabDatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxStatementLength( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxProcedureNameLength( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException)
{
// We allow you to select from any table.
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException)
{
// For now definitely read-only, no support for update/delete
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException)
{
// todo add Support for this.
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsConvert( sal_Int32 /*fromType*/, sal_Int32 /*toType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool OEvoabDatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( )
{
// Any case may be used
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getURL( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
return m_pConnection->getURL();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getUserName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getDriverName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getDriverVersion() throw(SQLException, RuntimeException)
{
return OUString( "1" );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getDatabaseProductVersion( ) throw(SQLException, RuntimeException)
{
return OUString( "0" );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getDatabaseProductName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getProcedureTerm( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getSchemaTerm( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getDriverMajorVersion( ) throw(RuntimeException)
{
return 1;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getDefaultTransactionIsolation( ) throw(SQLException, RuntimeException)
{
return TransactionIsolation::NONE;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getSQLKeywords( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getSearchStringEscape( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getStringFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getTimeDateFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getSystemFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDatabaseMetaData::getNumericFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxColumnsInOrderBy( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxColumnsInSelect( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDatabaseMetaData::getMaxUserNameLength( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsResultSetType( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsResultSetConcurrency( sal_Int32 /*setType*/, sal_Int32 /*concurrency*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::ownUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::ownDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::ownInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::othersUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::othersDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::othersInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::updatesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::deletesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::insertsAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
// here follow all methods which return a resultset
// the first methods is an example implementation how to use this resultset
// of course you could implement it on your and you should do this because
// the general way is more memory expensive
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException)
{
/* Dont need to change as evoab driver supports only table */
@@ -1022,7 +1022,7 @@ Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getTableTypes( ) throw
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > OEvoabDatabaseMetaData::impl_getTypeInfo_throw( )
{
/*
@@ -1069,7 +1069,7 @@ Reference< XResultSet > OEvoabDatabaseMetaData::impl_getTypeInfo_throw( )
pResultSet->setRows(aRows);
return xResultSet;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getColumns(
const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& /*tableNamePattern*/,
const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
@@ -1082,7 +1082,7 @@ Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getColumns(
return xResultSet;
}
-// -------------------------------------------------------------------------
+
bool isSourceBackend(ESource *pSource, const char *backendname)
{
if (!pSource || !e_source_has_extension (pSource, E_SOURCE_EXTENSION_ADDRESS_BOOK))
@@ -1225,12 +1225,12 @@ Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getTables(
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getUDTs( const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& /*typeNamePattern*/, const Sequence< sal_Int32 >& /*types*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XDatabaseMetaDaza::getUDTs", *this );
return NULL;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/evoab2/NDriver.cxx b/connectivity/source/drivers/evoab2/NDriver.cxx
index af4d24d6a3fc..b0f629f0cd19 100644
--- a/connectivity/source/drivers/evoab2/NDriver.cxx
+++ b/connectivity/source/drivers/evoab2/NDriver.cxx
@@ -41,16 +41,16 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::ucb;
-// --------------------------------------------------------------------------------
+
OEvoabDriver::OEvoabDriver(const Reference< XMultiServiceFactory >& _rxFactory) :
ODriver_BASE( m_aMutex ), m_xFactory( _rxFactory )
{
}
-// -----------------------------------------------------------------------------
+
OEvoabDriver::~OEvoabDriver()
{
}
-// -----------------------------------------------------------------------------
+
void OEvoabDriver::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -78,7 +78,7 @@ void OEvoabDriver::disposing()
}
// static ServiceInfo
-//------------------------------------------------------------------------------
+
OUString OEvoabDriver::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString(EVOAB_DRIVER_IMPL_NAME);
@@ -86,7 +86,7 @@ OUString OEvoabDriver::getImplementationName_Static( ) throw(RuntimeException)
// Please take care when changing it.
}
-//------------------------------------------------------------------
+
Sequence< OUString > OEvoabDriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
// which service is supported
@@ -95,7 +95,7 @@ Sequence< OUString > OEvoabDriver::getSupportedServiceNames_Static( ) throw (Ru
aSNS[0] = "com.sun.star.sdbc.Driver";
return aSNS;
}
-//------------------------------------------------------------------
+
OUString SAL_CALL OEvoabDriver::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
@@ -105,18 +105,18 @@ sal_Bool SAL_CALL OEvoabDriver::supportsService( const OUString& _rServiceName )
{
return cppu::supportsService(this, _rServiceName);
}
-//------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OEvoabDriver::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
-//------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL connectivity::evoab::OEvoabDriver_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception )
{
return *(new OEvoabDriver(_rxFactory));
}
-// --------------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OEvoabDriver::connect( const OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -133,14 +133,14 @@ Reference< XConnection > SAL_CALL OEvoabDriver::connect( const OUString& url, co
return xCon;
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabDriver::acceptsURL( const OUString& url )
throw(SQLException, RuntimeException)
{
return acceptsURL_Stat(url);
}
-// --------------------------------------------------------------------------------
+
Sequence< DriverPropertyInfo > SAL_CALL OEvoabDriver::getPropertyInfo( const OUString& url, const Sequence< PropertyValue >& /*info*/ ) throw(SQLException, RuntimeException)
{
if ( ! acceptsURL(url) )
@@ -154,21 +154,21 @@ Sequence< DriverPropertyInfo > SAL_CALL OEvoabDriver::getPropertyInfo( const OUS
return Sequence< DriverPropertyInfo >();
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDriver::getMajorVersion( ) throw(RuntimeException)
{
return 1;
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabDriver::getMinorVersion( ) throw(RuntimeException)
{
return 0;
}
-// --------------------------------------------------------------------------------
+
sal_Bool OEvoabDriver::acceptsURL_Stat( const OUString& url )
{
return ( url == "sdbc:address:evolution:local" || url == "sdbc:address:evolution:groupwise" || url == "sdbc:address:evolution:ldap" ) && EApiInit();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/evoab2/NPreparedStatement.cxx b/connectivity/source/drivers/evoab2/NPreparedStatement.cxx
index 6118a161eadc..d73229b9202b 100644
--- a/connectivity/source/drivers/evoab2/NPreparedStatement.cxx
+++ b/connectivity/source/drivers/evoab2/NPreparedStatement.cxx
@@ -50,7 +50,7 @@ OEvoabPreparedStatement::OEvoabPreparedStatement( OEvoabConnection* _pConnection
{
}
-// -----------------------------------------------------------------------------
+
void OEvoabPreparedStatement::construct( const OUString& _sql )
{
m_sSqlStatement = _sql;
@@ -65,24 +65,24 @@ void OEvoabPreparedStatement::construct( const OUString& _sql )
pMeta->setEvoabFields( m_aQueryData.xSelectColumns );
}
-// -----------------------------------------------------------------------------
+
OEvoabPreparedStatement::~OEvoabPreparedStatement()
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::acquire() throw()
{
OCommonStatement::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::release() throw()
{
OCommonStatement::release();
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL OEvoabPreparedStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OCommonStatement::queryInterface(rType);
@@ -90,12 +90,12 @@ Any SAL_CALL OEvoabPreparedStatement::queryInterface( const Type & rType ) throw
aRet = OPreparedStatement_BASE::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OEvoabPreparedStatement::getTypes( ) throw(RuntimeException)
{
return ::comphelper::concatSequences(OPreparedStatement_BASE::getTypes(),OCommonStatement::getTypes());
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL OEvoabPreparedStatement::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -106,7 +106,7 @@ Reference< XResultSetMetaData > SAL_CALL OEvoabPreparedStatement::getMetaData(
ENSURE_OR_THROW( m_xMetaData.is(), "internal error: no meta data" );
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::close( ) throw(SQLException, RuntimeException)
{
@@ -124,7 +124,7 @@ void SAL_CALL OEvoabPreparedStatement::close( ) throw(SQLException, RuntimeExce
}
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabPreparedStatement::execute( ) throw(SQLException, RuntimeException)
{
@@ -134,7 +134,7 @@ sal_Bool SAL_CALL OEvoabPreparedStatement::execute( ) throw(SQLException, Runti
Reference< XResultSet> xRS = impl_executeQuery_throw( m_aQueryData );
return xRS.is();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabPreparedStatement::executeUpdate( ) throw(SQLException, RuntimeException)
{
@@ -143,13 +143,13 @@ sal_Int32 SAL_CALL OEvoabPreparedStatement::executeUpdate( ) throw(SQLException
::dbtools::throwFeatureNotImplementedException( "XStatement::executeUpdate", *this );
return 0;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setString( sal_Int32 /*parameterIndex*/, const OUString& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setString", *this );
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OEvoabPreparedStatement::getConnection( ) throw(SQLException, RuntimeException)
{
@@ -158,7 +158,7 @@ Reference< XConnection > SAL_CALL OEvoabPreparedStatement::getConnection( ) thr
return impl_getConnection();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OEvoabPreparedStatement::executeQuery( ) throw(SQLException, RuntimeException)
{
@@ -167,104 +167,104 @@ Reference< XResultSet > SAL_CALL OEvoabPreparedStatement::executeQuery( ) throw
return impl_executeQuery_throw( m_aQueryData );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setBoolean( sal_Int32 /*parameterIndex*/, sal_Bool /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setBoolean", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setByte( sal_Int32 /*parameterIndex*/, sal_Int8 /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setByte", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setDate( sal_Int32 /*parameterIndex*/, const Date& /*aData*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setDate", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setTime( sal_Int32 /*parameterIndex*/, const Time& /*aVal*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setTime", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setTimestamp( sal_Int32 /*parameterIndex*/, const DateTime& /*aVal*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setTimestamp", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setDouble( sal_Int32 /*parameterIndex*/, double /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setDouble", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setFloat( sal_Int32 /*parameterIndex*/, float /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setFloat", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setInt( sal_Int32 /*parameterIndex*/, sal_Int32 /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setInt", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setLong( sal_Int32 /*parameterIndex*/, sal_Int64 /*aVal*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setLong", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setNull( sal_Int32 /*parameterIndex*/, sal_Int32 /*sqlType*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setNull", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setClob( sal_Int32 /*parameterIndex*/, const Reference< XClob >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setClob", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setBlob( sal_Int32 /*parameterIndex*/, const Reference< XBlob >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setBlob", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setArray( sal_Int32 /*parameterIndex*/, const Reference< XArray >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setArray", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setRef( sal_Int32 /*parameterIndex*/, const Reference< XRef >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setRef", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setObjectWithInfo( sal_Int32 /*parameterIndex*/, const Any& /*x*/, sal_Int32 /*sqlType*/, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setObjectWithInfo", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setObjectNull( sal_Int32 /*parameterIndex*/, sal_Int32 /*sqlType*/, const OUString& /*typeName*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setObjectNull", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setObject( sal_Int32 parameterIndex, const Any& x ) throw(SQLException, RuntimeException)
{
@@ -277,51 +277,51 @@ void SAL_CALL OEvoabPreparedStatement::setObject( sal_Int32 parameterIndex, cons
::dbtools::throwGenericSQLException(sError,*this);
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setShort( sal_Int32 /*parameterIndex*/, sal_Int16 /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setShort", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setBytes( sal_Int32 /*parameterIndex*/, const Sequence< sal_Int8 >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setBytes", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setCharacterStream( sal_Int32 /*parameterIndex*/, const Reference< XInputStream >& /*x*/, sal_Int32 /*length*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setCharacterStream", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::setBinaryStream( sal_Int32 /*parameterIndex*/, const Reference< XInputStream >& /*x*/, sal_Int32 /*length*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setBinaryStream", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabPreparedStatement::clearParameters( ) throw(SQLException, RuntimeException)
{
}
-// -----------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OEvoabPreparedStatement::getResultSet( ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabPreparedStatement::getUpdateCount( ) throw(SQLException, RuntimeException)
{
return 0;
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabPreparedStatement::getMoreResults( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx
index 2cc664bcfb0d..4ad700b1308c 100644
--- a/connectivity/source/drivers/evoab2/NResultSet.cxx
+++ b/connectivity/source/drivers/evoab2/NResultSet.cxx
@@ -63,12 +63,12 @@ using namespace com::sun::star::container;
using namespace com::sun::star::io;
namespace ErrorCondition = ::com::sun::star::sdb::ErrorCondition;
-//------------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabResultSet::getImplementationName( ) throw ( RuntimeException) \
{
return OUString("com.sun.star.sdbcx.evoab.ResultSet");
}
-// -------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OEvoabResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
Sequence< OUString > aSupported(1);
@@ -645,12 +645,12 @@ OEvoabResultSet::OEvoabResultSet( OCommonStatement* pStmt, OEvoabConnection *pCo
REGISTER_PROP( PROPERTY_ID_RESULTSETCONCURRENCY, m_nResultSetConcurrency );
}
-// -------------------------------------------------------------------------
+
OEvoabResultSet::~OEvoabResultSet()
{
}
-// -------------------------------------------------------------------------
+
void OEvoabResultSet::construct( const QueryData& _rData )
{
ENSURE_OR_THROW( _rData.getQuery(), "internal error: no EBookQuery" );
@@ -708,7 +708,7 @@ void OEvoabResultSet::construct( const QueryData& _rData )
pMeta->setEvoabFields( _rData.xSelectColumns );
}
-// -------------------------------------------------------------------------
+
void OEvoabResultSet::disposing(void)
{
::comphelper::OPropertyContainer::disposing();
@@ -719,7 +719,7 @@ void OEvoabResultSet::disposing(void)
m_pStatement = NULL;
m_xMetaData.clear();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OEvoabResultSet::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = ::comphelper::OPropertyContainer::queryInterface(rType);
@@ -727,7 +727,7 @@ Any SAL_CALL OEvoabResultSet::queryInterface( const Type & rType ) throw(Runtime
aRet = OResultSet_BASE::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OEvoabResultSet::getTypes( ) throw( RuntimeException)
{
return ::comphelper::concatSequences(
@@ -736,7 +736,7 @@ Sequence< Type > SAL_CALL OEvoabResultSet::getTypes( ) throw( RuntimeException)
);
}
-// -------------------------------------------------------------------------
+
// XRow Interface
/**
@@ -761,7 +761,7 @@ OUString SAL_CALL OEvoabResultSet::getString( sal_Int32 nColumnNum ) throw(SQLEx
}
return aResult;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::getBoolean( sal_Int32 nColumnNum ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -778,110 +778,110 @@ sal_Bool SAL_CALL OEvoabResultSet::getBoolean( sal_Int32 nColumnNum ) throw(SQLE
}
return bResult ? sal_True : sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL OEvoabResultSet::getLong( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getLong", *this );
return sal_Int64();
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL OEvoabResultSet::getArray( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getArray", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL OEvoabResultSet::getClob( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getClob", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL OEvoabResultSet::getBlob( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getBlob", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL OEvoabResultSet::getRef( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getRef", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OEvoabResultSet::getObject( sal_Int32 /*nColumnNum*/, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getObject", *this );
return Any();
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL OEvoabResultSet::getShort( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getShort", *this );
return 0;
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Time SAL_CALL OEvoabResultSet::getTime( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getTime", *this );
return ::com::sun::star::util::Time();
}
-// -------------------------------------------------------------------------
+
util::DateTime SAL_CALL OEvoabResultSet::getTimestamp( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getTimestamp", *this );
return ::com::sun::star::util::DateTime();
}
-// -------------------------------------------------------------------------
+
Reference< XInputStream > SAL_CALL OEvoabResultSet::getBinaryStream( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getBinaryStream", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XInputStream > SAL_CALL OEvoabResultSet::getCharacterStream( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getCharacterStream", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL OEvoabResultSet::getByte( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getByte", *this );
return 0;
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL OEvoabResultSet::getBytes( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getBytes", *this );
return Sequence< sal_Int8 >();
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Date SAL_CALL OEvoabResultSet::getDate( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getDate", *this );
return ::com::sun::star::util::Date();
}
-// -------------------------------------------------------------------------
+
double SAL_CALL OEvoabResultSet::getDouble( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getDouble", *this );
return 0;
}
-// -------------------------------------------------------------------------
+
float SAL_CALL OEvoabResultSet::getFloat( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getFloat", *this );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabResultSet::getInt( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getInt", *this );
return 0;
}
// XRow Interface Ends
-// -------------------------------------------------------------------------
+
// XResultSetMetaDataSupplier Interface
Reference< XResultSetMetaData > SAL_CALL OEvoabResultSet::getMetaData( ) throw(SQLException, RuntimeException)
@@ -894,7 +894,7 @@ Reference< XResultSetMetaData > SAL_CALL OEvoabResultSet::getMetaData( ) throw(
return m_xMetaData;
}
// XResultSetMetaDataSupplier Interface Ends
-// -------------------------------------------------------------------------
+
// XResultSet Interface
sal_Bool SAL_CALL OEvoabResultSet::next( ) throw(SQLException, RuntimeException)
@@ -908,7 +908,7 @@ sal_Bool SAL_CALL OEvoabResultSet::next( ) throw(SQLException, RuntimeException
else
return false;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::wasNull( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -916,7 +916,7 @@ sal_Bool SAL_CALL OEvoabResultSet::wasNull( ) throw(SQLException, RuntimeExcept
return m_bWasNull;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::isBeforeFirst( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -924,7 +924,7 @@ sal_Bool SAL_CALL OEvoabResultSet::isBeforeFirst( ) throw(SQLException, Runtime
return m_nIndex < 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabResultSet::getRow( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -932,7 +932,7 @@ sal_Int32 SAL_CALL OEvoabResultSet::getRow( ) throw(SQLException, RuntimeExcept
return m_nIndex;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::isAfterLast( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -940,7 +940,7 @@ sal_Bool SAL_CALL OEvoabResultSet::isAfterLast( ) throw(SQLException, RuntimeEx
return m_nIndex >= m_nLength;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::isFirst( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -948,7 +948,7 @@ sal_Bool SAL_CALL OEvoabResultSet::isFirst( ) throw(SQLException, RuntimeExcept
return m_nIndex == 0;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::isLast( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -956,7 +956,7 @@ sal_Bool SAL_CALL OEvoabResultSet::isLast( ) throw(SQLException, RuntimeExcepti
return m_nIndex == m_nLength - 1;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -964,7 +964,7 @@ void SAL_CALL OEvoabResultSet::beforeFirst( ) throw(SQLException, RuntimeExcept
m_nIndex = -1;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabResultSet::afterLast( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -972,7 +972,7 @@ void SAL_CALL OEvoabResultSet::afterLast( ) throw(SQLException, RuntimeExceptio
m_nIndex = m_nLength;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::first( ) throw(SQLException, RuntimeException)
{
@@ -982,7 +982,7 @@ sal_Bool SAL_CALL OEvoabResultSet::first( ) throw(SQLException, RuntimeExceptio
m_nIndex = 0;
return true;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::last( ) throw(SQLException, RuntimeException)
{
@@ -992,7 +992,7 @@ sal_Bool SAL_CALL OEvoabResultSet::last( ) throw(SQLException, RuntimeException
m_nIndex = m_nLength - 1;
return true;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::absolute( sal_Int32 row ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1004,7 +1004,7 @@ sal_Bool SAL_CALL OEvoabResultSet::absolute( sal_Int32 row ) throw(SQLException,
else
return false;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::relative( sal_Int32 row ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1017,7 +1017,7 @@ sal_Bool SAL_CALL OEvoabResultSet::relative( sal_Int32 row ) throw(SQLException,
else
return false;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::previous( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1030,7 +1030,7 @@ sal_Bool SAL_CALL OEvoabResultSet::previous( ) throw(SQLException, RuntimeExcep
else
return false;
}
-// -------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL OEvoabResultSet::getStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1038,7 +1038,7 @@ Reference< XInterface > SAL_CALL OEvoabResultSet::getStatement( ) throw(SQLExce
::com::sun::star::uno::WeakReferenceHelper aStatement((OWeakObject*)m_pStatement);
return aStatement.get();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::rowDeleted( ) throw(SQLException, RuntimeException)
{
@@ -1047,7 +1047,7 @@ sal_Bool SAL_CALL OEvoabResultSet::rowDeleted( ) throw(SQLException, RuntimeExc
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::rowInserted( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1055,7 +1055,7 @@ sal_Bool SAL_CALL OEvoabResultSet::rowInserted( ) throw(SQLException, RuntimeEx
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSet::rowUpdated( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1063,14 +1063,14 @@ sal_Bool SAL_CALL OEvoabResultSet::rowUpdated( ) throw(SQLException, RuntimeExc
return sal_False;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabResultSet::refreshRow( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
}
//XResult Interface ends
-// -------------------------------------------------------------------------
+
// XCancellable
void SAL_CALL OEvoabResultSet::cancel( ) throw(RuntimeException)
@@ -1093,19 +1093,19 @@ void SAL_CALL OEvoabResultSet::close( ) throw(SQLException, RuntimeException)
}
// XWarningsSupplier
-// -------------------------------------------------------------------------
+
void SAL_CALL OEvoabResultSet::clearWarnings( ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OEvoabResultSet::clearWarnings" );
m_aWarnings.clearWarnings();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OEvoabResultSet::getWarnings( ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OEvoabResultSet::getWarnings" );
return m_aWarnings.getWarnings();
}
-// -------------------------------------------------------------------------
+
//XColumnLocate Interface
sal_Int32 SAL_CALL OEvoabResultSet::findColumn( const OUString& columnName ) throw(SQLException, RuntimeException)
{
@@ -1127,38 +1127,38 @@ sal_Int32 SAL_CALL OEvoabResultSet::findColumn( const OUString& columnName ) thr
assert(false);
return 0; // Never reached
}
-// -------------------------------------------------------------------------
+
//XColumnLocate interface ends
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OEvoabResultSet::createArrayHelper( ) const
{
Sequence< Property > aProps;
describeProperties( aProps );
return new ::cppu::OPropertyArrayHelper( aProps );
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OEvoabResultSet::getInfoHelper()
{
return *const_cast<OEvoabResultSet*>(this)->getArrayHelper();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OEvoabResultSet::acquire() throw()
{
OResultSet_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OEvoabResultSet::release() throw()
{
OResultSet_BASE::release();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
OEvoabResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
} } // connectivity::evoab
diff --git a/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx b/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx
index 889c9269eccc..535b2c4f6f53 100644
--- a/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx
+++ b/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx
@@ -34,11 +34,11 @@ OEvoabResultSetMetaData::OEvoabResultSetMetaData(const OUString& _aTableName)
{
}
-// -------------------------------------------------------------------------
+
OEvoabResultSetMetaData::~OEvoabResultSetMetaData()
{
}
-// -------------------------------------------------------------------------
+
void OEvoabResultSetMetaData::setEvoabFields(const ::rtl::Reference<connectivity::OSQLColumns> &xColumns) throw(SQLException)
{
OSQLColumns::Vector::const_iterator aIter;
@@ -63,45 +63,45 @@ void OEvoabResultSetMetaData::setEvoabFields(const ::rtl::Reference<connectivity
}
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabResultSetMetaData::getColumnDisplaySize( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return 50;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabResultSetMetaData::getColumnType( sal_Int32 nColumnNum ) throw(SQLException, RuntimeException)
{
sal_uInt32 nField = m_aEvoabFields[nColumnNum - 1];
return evoab::getFieldType (nField);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabResultSetMetaData::getColumnCount( ) throw(SQLException, RuntimeException)
{
return m_aEvoabFields.size();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSetMetaData::isCaseSensitive( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabResultSetMetaData::getSchemaName( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabResultSetMetaData::getColumnName( sal_Int32 nColumnNum ) throw(SQLException, RuntimeException)
{
sal_uInt32 nField = m_aEvoabFields[nColumnNum - 1];
return evoab::getFieldName( nField );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabResultSetMetaData::getColumnTypeName( sal_Int32 nColumnNum ) throw(SQLException, RuntimeException)
{
sal_uInt32 nField = m_aEvoabFields[nColumnNum - 1];
return evoab::getFieldTypeName( nField );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabResultSetMetaData::getColumnLabel( sal_Int32 nColumnNum ) throw(SQLException, RuntimeException)
{
sal_uInt32 nField = m_aEvoabFields[nColumnNum - 1];
@@ -114,72 +114,72 @@ OUString SAL_CALL OEvoabResultSetMetaData::getColumnLabel( sal_Int32 nColumnNum
RTL_TEXTENCODING_UTF8 );
return aLabel;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabResultSetMetaData::getColumnServiceName( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabResultSetMetaData::getTableName( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return m_aTableName;//OUString("TABLE");
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OEvoabResultSetMetaData::getCatalogName( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSetMetaData::isCurrency( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSetMetaData::isAutoIncrement( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSetMetaData::isSigned( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabResultSetMetaData::getPrecision( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return 0;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabResultSetMetaData::getScale( sal_Int32 /*nColumnNum*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OEvoabResultSetMetaData::isNullable( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSetMetaData::isSearchable( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSetMetaData::isReadOnly( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSetMetaData::isDefinitelyWritable( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OEvoabResultSetMetaData::isWritable( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/evoab2/NServices.cxx b/connectivity/source/drivers/evoab2/NServices.cxx
index c5e7082dbcc2..f66e9166fc4f 100644
--- a/connectivity/source/drivers/evoab2/NServices.cxx
+++ b/connectivity/source/drivers/evoab2/NServices.cxx
@@ -36,7 +36,7 @@ typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
rtl_ModuleCount*
);
-//---------------------------------------------------------------------------------------
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
@@ -77,7 +77,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
-//---------------------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL evoab2_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/evoab2/NStatement.cxx b/connectivity/source/drivers/evoab2/NStatement.cxx
index 31612ce5674f..15332b510912 100644
--- a/connectivity/source/drivers/evoab2/NStatement.cxx
+++ b/connectivity/source/drivers/evoab2/NStatement.cxx
@@ -38,7 +38,7 @@
namespace connectivity { namespace evoab {
-//------------------------------------------------------------------------------
+
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
@@ -47,7 +47,7 @@ using namespace com::sun::star::sdbcx;
using namespace com::sun::star::container;
using namespace com::sun::star::io;
using namespace com::sun::star::util;
-//------------------------------------------------------------------------------
+
OCommonStatement::OCommonStatement(OEvoabConnection* _pConnection)
: OCommonStatement_IBase(m_aMutex)
, ::comphelper::OPropertyContainer(OCommonStatement_IBase::rBHelper)
@@ -87,11 +87,11 @@ OCommonStatement::OCommonStatement(OEvoabConnection* _pConnection)
REGISTER_PROP( PROPERTY_ID_ESCAPEPROCESSING, m_bEscapeProcessing );
REGISTER_PROP( PROPERTY_ID_RESULTSETCONCURRENCY, m_nResultSetConcurrency );
}
-// -----------------------------------------------------------------------------
+
OCommonStatement::~OCommonStatement()
{
}
-//------------------------------------------------------------------------------
+
void OCommonStatement::disposeResultSet()
{
// free the cursor if alive
@@ -100,7 +100,7 @@ void OCommonStatement::disposeResultSet()
xComp->dispose();
m_xResultSet.clear();
}
-//------------------------------------------------------------------------------
+
void OCommonStatement::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -114,7 +114,7 @@ void OCommonStatement::disposing()
dispose_ChildImpl();
OCommonStatement_IBase::disposing();
}
-//-----------------------------------------------------------------------------
+
Any SAL_CALL OCommonStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OCommonStatement_IBase::queryInterface(rType);
@@ -122,7 +122,7 @@ Any SAL_CALL OCommonStatement::queryInterface( const Type & rType ) throw(Runtim
aRet = ::comphelper::OPropertyContainer::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OCommonStatement::getTypes( ) throw(RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const Reference< XMultiPropertySet > *)0 ),
@@ -131,7 +131,7 @@ Sequence< Type > SAL_CALL OCommonStatement::getTypes( ) throw(RuntimeException)
return ::comphelper::concatSequences(aTypes.getTypes(),OCommonStatement_IBase::getTypes());
}
-// -------------------------------------------------------------------------
+
//void SAL_CALL OCommonStatement::cancel( ) throw(RuntimeException)
//{
@@ -140,7 +140,7 @@ Sequence< Type > SAL_CALL OCommonStatement::getTypes( ) throw(RuntimeException)
//// cancel the current sql statement
//}
-// -------------------------------------------------------------------------
+
void SAL_CALL OCommonStatement::close( ) throw(SQLException, RuntimeException)
{
{
@@ -150,7 +150,7 @@ void SAL_CALL OCommonStatement::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// -------------------------------------------------------------------------
+
EBookQuery *
OCommonStatement::createTrue()
@@ -170,7 +170,7 @@ OCommonStatement::createTest( const OUString &aColumnName,
eTest, sMatch.getStr() );
}
-// -------------------------------------------------------------------------
+
OUString OCommonStatement::impl_getColumnRefColumnName_throw( const OSQLParseNode& _rColumnRef )
{
@@ -205,7 +205,7 @@ OUString OCommonStatement::impl_getColumnRefColumnName_throw( const OSQLParseNod
return sColumnName;
}
-// -------------------------------------------------------------------------
+
void OCommonStatement::orderByAnalysis( const OSQLParseNode* _pOrderByClause, SortDescriptor& _out_rSort )
{
ENSURE_OR_THROW( _pOrderByClause, "NULL node" );
@@ -246,7 +246,7 @@ void OCommonStatement::orderByAnalysis( const OSQLParseNode* _pOrderByClause, So
}
}
-// -------------------------------------------------------------------------
+
EBookQuery *OCommonStatement::whereAnalysis( const OSQLParseNode* parseTree )
{
EBookQuery *pResult = NULL;
@@ -491,7 +491,7 @@ void OCommonStatement::parseSql( const OUString& sql, QueryData& _out_rQueryData
}
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OStatement::getConnection( ) throw(SQLException, RuntimeException)
{
@@ -502,7 +502,7 @@ Reference< XConnection > SAL_CALL OStatement::getConnection( ) throw(SQLExcepti
return impl_getConnection();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OCommonStatement::getWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -512,38 +512,38 @@ Any SAL_CALL OCommonStatement::getWarnings( ) throw(SQLException, RuntimeExcept
return makeAny(SQLWarning());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OCommonStatement::clearWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OCommonStatement_IBase::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OCommonStatement::createArrayHelper( ) const
{
Sequence< Property > aProps;
describeProperties( aProps );
return new ::cppu::OPropertyArrayHelper( aProps );
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OCommonStatement::getInfoHelper()
{
return *const_cast< OCommonStatement* >( this )->getArrayHelper();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OCommonStatement::acquire() throw()
{
OCommonStatement_IBase::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OCommonStatement::release() throw()
{
relase_ChildImpl();
}
-// -------------------------------------------------------------------------
+
QueryData OCommonStatement::impl_getEBookQuery_throw( const OUString& _rSql )
{
QueryData aData;
@@ -566,7 +566,7 @@ QueryData OCommonStatement::impl_getEBookQuery_throw( const OUString& _rSql )
return aData;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > OCommonStatement::impl_executeQuery_throw( const QueryData& _rQueryData )
{
// create result set
@@ -579,7 +579,7 @@ Reference< XResultSet > OCommonStatement::impl_executeQuery_throw( const QueryDa
return xRS;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > OCommonStatement::impl_executeQuery_throw( const OUString& _rSql )
{
SAL_INFO( "connectivity.evoab2", "OCommonStatement::impl_executeQuery_throw(" << _rSql << "%s)\n" );
@@ -592,7 +592,7 @@ Reference< XResultSet > OCommonStatement::impl_executeQuery_throw( const OUStrin
return impl_executeQuery_throw( impl_getEBookQuery_throw( _rSql ) );
}
-// -----------------------------------------------------------------------------
+
Reference< XPropertySetInfo > SAL_CALL OCommonStatement::getPropertySetInfo( ) throw(RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo( getInfoHelper() );
@@ -601,16 +601,16 @@ Reference< XPropertySetInfo > SAL_CALL OCommonStatement::getPropertySetInfo( )
// =============================================================================
// = OStatement
// =============================================================================
-// -----------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO( OStatement, "com.sun.star.comp.sdbcx.evoab.OStatement", "com.sun.star.sdbc.Statement" );
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( OStatement, OCommonStatement, OStatement_IBase )
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OStatement, OCommonStatement, OStatement_IBase )
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OStatement::execute( const OUString& _sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -620,7 +620,7 @@ sal_Bool SAL_CALL OStatement::execute( const OUString& _sql ) throw(SQLException
return xRS.is();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OStatement::executeQuery( const OUString& _sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -629,7 +629,7 @@ Reference< XResultSet > SAL_CALL OStatement::executeQuery( const OUString& _sql
return impl_executeQuery_throw( _sql );
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OStatement::executeUpdate( const OUString& /*sql*/ ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
diff --git a/connectivity/source/drivers/evoab2/NTable.cxx b/connectivity/source/drivers/evoab2/NTable.cxx
index 4b13fa3f8539..15510ac8c366 100644
--- a/connectivity/source/drivers/evoab2/NTable.cxx
+++ b/connectivity/source/drivers/evoab2/NTable.cxx
@@ -32,7 +32,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
using namespace connectivity::evoab;
-// -------------------------------------------------------------------------
+
OEvoabTable::OEvoabTable( sdbcx::OCollection* _pTables,
OEvoabConnection* _pConnection,
const OUString& _Name,
@@ -50,7 +50,7 @@ OEvoabTable::OEvoabTable( sdbcx::OCollection* _pTables,
{
construct();
}
-// -------------------------------------------------------------------------
+
void OEvoabTable::refreshColumns()
{
TStringVector aVector;
diff --git a/connectivity/source/drivers/evoab2/NTables.cxx b/connectivity/source/drivers/evoab2/NTables.cxx
index 208cb6b83c0d..26f424ef48dc 100644
--- a/connectivity/source/drivers/evoab2/NTables.cxx
+++ b/connectivity/source/drivers/evoab2/NTables.cxx
@@ -76,17 +76,17 @@ ObjectType OEvoabTables::createObject(const OUString& aName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void OEvoabTables::impl_refresh( ) throw(RuntimeException)
{
static_cast<OEvoabCatalog&>(m_rParent).refreshTables();
}
-// -------------------------------------------------------------------------
+
void OEvoabTables::disposing(void)
{
m_xMetaData.clear();
OCollection::disposing();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/file/FCatalog.cxx b/connectivity/source/drivers/file/FCatalog.cxx
index fff9d4b56c1c..6687ebd3572f 100644
--- a/connectivity/source/drivers/file/FCatalog.cxx
+++ b/connectivity/source/drivers/file/FCatalog.cxx
@@ -29,15 +29,15 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
-// -------------------------------------------------------------------------
+
using namespace connectivity::file;
-// -------------------------------------------------------------------------
+
OFileCatalog::OFileCatalog(OConnection* _pCon) : connectivity::sdbcx::OCatalog(_pCon)
,m_pConnection(_pCon)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileCatalog::OFileCatalog" );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OFileCatalog::disposing()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileCatalog::disposing" );
@@ -47,13 +47,13 @@ void SAL_CALL OFileCatalog::disposing()
m_xMetaData.clear();
OFileCatalog_BASE::disposing();
}
-// -----------------------------------------------------------------------------
+
OUString OFileCatalog::buildName(const Reference< XRow >& _xRow)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileCatalog::buildName" );
return _xRow->getString(3);
}
-// -------------------------------------------------------------------------
+
void OFileCatalog::refreshTables()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileCatalog::refreshTables" );
@@ -69,7 +69,7 @@ void OFileCatalog::refreshTables()
m_pTables = new OTables(m_xMetaData,*this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OFileCatalog::queryInterface( const Type & rType ) throw(RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileCatalog::queryInterface" );
@@ -82,7 +82,7 @@ Any SAL_CALL OFileCatalog::queryInterface( const Type & rType ) throw(RuntimeExc
typedef sdbcx::OCatalog OFileCatalog_BASE;
return OFileCatalog_BASE::queryInterface(rType);
}
-// -----------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OFileCatalog::getTypes( ) throw(RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileCatalog::getTypes" );
@@ -105,7 +105,7 @@ Sequence< Type > SAL_CALL OFileCatalog::getTypes( ) throw(RuntimeException)
const Type *pTypes = aOwnTypes.empty() ? 0 : &aOwnTypes[0];
return Sequence< Type >(pTypes, aOwnTypes.size());
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/file/FColumns.cxx b/connectivity/source/drivers/file/FColumns.cxx
index 1633812df86a..1f894a1e016c 100644
--- a/connectivity/source/drivers/file/FColumns.cxx
+++ b/connectivity/source/drivers/file/FColumns.cxx
@@ -74,12 +74,12 @@ sdbcx::ObjectType OColumns::createObject(const OUString& _rName)
return xRet;
}
-// -----------------------------------------------------------------------------
+
void OColumns::impl_refresh() throw(RuntimeException)
{
m_pTable->refreshColumns();
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/file/FConnection.cxx b/connectivity/source/drivers/file/FConnection.cxx
index 848873a43de7..9cb00a8dea2a 100644
--- a/connectivity/source/drivers/file/FConnection.cxx
+++ b/connectivity/source/drivers/file/FConnection.cxx
@@ -44,7 +44,7 @@
using namespace connectivity::file;
using namespace dbtools;
-//------------------------------------------------------------------------------
+
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
@@ -54,7 +54,7 @@ using namespace com::sun::star::container;
using namespace com::sun::star::ucb;
using namespace ::ucbhelper;
typedef connectivity::OMetaConnection OConnection_BASE;
-// --------------------------------------------------------------------------------
+
OConnection::OConnection(OFileDriver* _pDriver)
: OSubComponent<OConnection, OConnection_BASE>((::cppu::OWeakObject*)_pDriver, this)
, m_pDriver(_pDriver)
@@ -68,19 +68,19 @@ OConnection::OConnection(OFileDriver* _pDriver)
{
m_nTextEncoding = RTL_TEXTENCODING_DONTKNOW;
}
-//-----------------------------------------------------------------------------
+
OConnection::~OConnection()
{
if(!isClosed( ))
close();
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL OConnection::release() throw()
{
relase_ChildImpl();
}
-//-----------------------------------------------------------------------------
+
sal_Bool OConnection::matchesExtension( const OUString& _rExt ) const
{
if ( isCaseSensitveExtension() )
@@ -92,7 +92,7 @@ sal_Bool OConnection::matchesExtension( const OUString& _rExt ) const
return sMyExtension == sExt;
}
-//-----------------------------------------------------------------------------
+
void OConnection::construct(const OUString& url,const Sequence< PropertyValue >& info) throw(SQLException)
{
osl_atomic_increment( &m_refCount );
@@ -212,10 +212,10 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
osl_atomic_decrement( &m_refCount );
}
// XServiceInfo
-// --------------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OConnection, "com.sun.star.sdbc.drivers.file.Connection", "com.sun.star.sdbc.Connection")
-// --------------------------------------------------------------------------------
+
Reference< XStatement > SAL_CALL OConnection::createStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -226,7 +226,7 @@ Reference< XStatement > SAL_CALL OConnection::createStatement( ) throw(SQLExcep
m_aStatements.push_back(WeakReferenceHelper(xReturn));
return xReturn;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -239,18 +239,18 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const OU
m_aStatements.push_back(WeakReferenceHelper(*pStmt));
return pStmt;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall( const OUString& /*sql*/ ) throw(SQLException, RuntimeException)
{
throwFeatureNotImplementedException( "XConnection::prepareCall", *this );
return NULL;
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OConnection::nativeSQL( const OUString& sql ) throw(SQLException, RuntimeException)
{
return sql;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setAutoCommit( sal_Bool autoCommit ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -258,7 +258,7 @@ void SAL_CALL OConnection::setAutoCommit( sal_Bool autoCommit ) throw(SQLExcepti
m_bAutoCommit = autoCommit;
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::getAutoCommit( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -266,22 +266,22 @@ sal_Bool SAL_CALL OConnection::getAutoCommit( ) throw(SQLException, RuntimeExce
return m_bAutoCommit;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::commit( ) throw(SQLException, RuntimeException)
{
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::rollback( ) throw(SQLException, RuntimeException)
{
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::isClosed( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
return OConnection_BASE::rBHelper.bDisposed;
}
-// --------------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -297,7 +297,7 @@ Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData( ) throw(SQLEx
return xMetaData;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setReadOnly( sal_Bool readOnly ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -306,7 +306,7 @@ void SAL_CALL OConnection::setReadOnly( sal_Bool readOnly ) throw(SQLException,
m_bReadOnly = readOnly;
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::isReadOnly( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -315,36 +315,36 @@ sal_Bool SAL_CALL OConnection::isReadOnly( ) throw(SQLException, RuntimeExcepti
return m_bReadOnly;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setCatalog( const OUString& /*catalog*/ ) throw(SQLException, RuntimeException)
{
throwFeatureNotImplementedException( "XConnection::setCatalog", *this );
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OConnection::getCatalog( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setTransactionIsolation( sal_Int32 /*level*/ ) throw(SQLException, RuntimeException)
{
throwFeatureNotImplementedException( "XConnection::setTransactionIsolation", *this );
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OConnection::getTransactionIsolation( ) throw(SQLException, RuntimeException)
{
return 0;
}
-// --------------------------------------------------------------------------------
+
Reference< XNameAccess > SAL_CALL OConnection::getTypeMap( ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setTypeMap( const Reference< XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
}
-// --------------------------------------------------------------------------------
+
// XCloseable
void SAL_CALL OConnection::close( ) throw(SQLException, RuntimeException)
{
@@ -355,17 +355,17 @@ void SAL_CALL OConnection::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// --------------------------------------------------------------------------------
+
// XWarningsSupplier
Any SAL_CALL OConnection::getWarnings( ) throw(SQLException, RuntimeException)
{
return Any();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::clearWarnings( ) throw(SQLException, RuntimeException)
{
}
-//------------------------------------------------------------------------------
+
void OConnection::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -378,7 +378,7 @@ m_xContent.clear();
dispose_ChildImpl();
}
-//------------------------------------------------------------------------------
+
Reference< XTablesSupplier > OConnection::createCatalog()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -390,7 +390,7 @@ Reference< XTablesSupplier > OConnection::createCatalog()
}
return xTab;
}
-// -----------------------------------------------------------------------------
+
Reference< XDynamicResultSet > OConnection::getDir() const
{
Reference<XDynamicResultSet> xContent;
@@ -408,14 +408,14 @@ Reference< XDynamicResultSet > OConnection::getDir() const
}
return xContent;
}
-// -----------------------------------------------------------------------------
+
sal_Int64 SAL_CALL OConnection::getSomething( const Sequence< sal_Int8 >& rId ) throw (RuntimeException)
{
return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelImplementationId().getConstArray(), rId.getConstArray(), 16 ) )
? reinterpret_cast< sal_Int64 >( this )
: (sal_Int64)0;
}
-// -----------------------------------------------------------------------------
+
Sequence< sal_Int8 > OConnection::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -430,7 +430,7 @@ Sequence< sal_Int8 > OConnection::getUnoTunnelImplementationId()
}
return pId->getImplementationId();
}
-// -----------------------------------------------------------------------------
+
void OConnection::throwUrlNotValid(const OUString & _rsUrl,const OUString & _rsMessage)
{
SQLException aError;
@@ -447,7 +447,7 @@ void OConnection::throwUrlNotValid(const OUString & _rsUrl,const OUString & _rsM
throw aError;
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/file/FDatabaseMetaData.cxx b/connectivity/source/drivers/file/FDatabaseMetaData.cxx
index 058d5089ea0d..5b123cb3f23e 100644
--- a/connectivity/source/drivers/file/FDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/file/FDatabaseMetaData.cxx
@@ -52,24 +52,24 @@ ODatabaseMetaData::ODatabaseMetaData(OConnection* _pCon) : ::connectivity::OData
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::ODatabaseMetaData" );
DBG_CTOR( file_ODatabaseMetaData, NULL );
}
-// -------------------------------------------------------------------------
+
ODatabaseMetaData::~ODatabaseMetaData()
{
DBG_DTOR( file_ODatabaseMetaData, NULL );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > ODatabaseMetaData::impl_getTypeInfo_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_getTypeInfo_throw" );
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eTypeInfo );
}
-// -------------------------------------------------------------------------
+
OUString ODatabaseMetaData::impl_getCatalogSeparator_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_getCatalogSeparator_throw" );
return OUString();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& /*tableNamePattern*/,
const OUString& /*columnNamePattern*/ ) throw(SQLException, RuntimeException)
@@ -79,7 +79,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eColumns );
}
-// -------------------------------------------------------------------------
+
namespace
{
sal_Int16 isCaseSensitiveParentFolder( const OUString& _rFolderOrDoc, const OUString& _rDocName )
@@ -162,7 +162,7 @@ namespace
}
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
const Any& /*catalog*/, const OUString& /*schemaPattern*/,
const OUString& tableNamePattern, const Sequence< OUString >& types ) throw(SQLException, RuntimeException)
@@ -317,79 +317,79 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
return xRef;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxBinaryLiteralLength" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxRowSize( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxRowSize" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCatalogNameLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxCatalogNameLength" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCharLiteralLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxCharLiteralLength" );
return SAL_MAX_INT32;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnNameLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxColumnNameLength" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInIndex( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxColumnsInIndex" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCursorNameLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxCursorNameLength" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxConnections( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxConnections" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInTable( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxColumnsInTable" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaData::impl_getMaxStatements_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_getMaxStatements_throw" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTableNameLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxTableNameLength" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaData::impl_getMaxTablesInSelect_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_getMaxTablesInSelect_throw" );
return 1;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& tableNamePattern ) throw(SQLException, RuntimeException)
{
@@ -459,230 +459,230 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::doesMaxRowSizeIncludeBlobs" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::storesLowerCaseQuotedIdentifiers" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::storesLowerCaseIdentifiers" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::storesMixedCaseIdentifiers" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::storesUpperCaseQuotedIdentifiers" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::storesUpperCaseIdentifiers" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsAlterTableWithAddColumn_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_supportsAlterTableWithAddColumn_throw" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsAlterTableWithDropColumn_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_supportsAlterTableWithDropColumn_throw" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxIndexLength" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsNonNullableColumns" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getCatalogTerm" );
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString ODatabaseMetaData::impl_getIdentifierQuoteString_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_getIdentifierQuoteString_throw" );
static const OUString sQuote("\"");
return sQuote;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getExtraNameCharacters" );
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsDifferentTableCorrelationNames" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_isCatalogAtStart_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_isCatalogAtStart_throw" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::dataDefinitionIgnoredInTransactions" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::dataDefinitionCausesTransactionCommit" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsDataManipulationTransactionsOnly" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsPositionedDelete" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsPositionedUpdate" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsOpenStatementsAcrossRollback" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsOpenStatementsAcrossCommit" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsOpenCursorsAcrossCommit" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsOpenCursorsAcrossRollback" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 /*level*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsTransactionIsolationLevel" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsSchemasInDataManipulation_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_supportsSchemasInDataManipulation_throw" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsANSI92FullSQL" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsANSI92EntryLevelSQL" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsIntegrityEnhancementFacility" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsSchemasInIndexDefinitions" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsSchemasInTableDefinitions_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_supportsSchemasInTableDefinitions_throw" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsCatalogsInTableDefinitions_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_supportsCatalogsInTableDefinitions_throw" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsCatalogsInIndexDefinitions" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsOuterJoins" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getTableTypes" );
@@ -701,416 +701,416 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLE
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatementLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxStatementLength" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxProcedureNameLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxProcedureNameLength" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxSchemaNameLength" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsTransactions" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::allProceduresAreCallable" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsStoredProcedures" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsSelectForUpdate" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::allTablesAreSelectable" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::isReadOnly" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::usesLocalFiles" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::usesLocalFilePerTable" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsTypeConversion" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::nullPlusNonNullIsNull" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsColumnAliasing" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsTableCorrelationNames" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 /*fromType*/, sal_Int32 /*toType*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsConvert" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsExpressionsInOrderBy" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsGroupBy" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsGroupByBeyondSelect" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsGroupByUnrelated" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsMultipleTransactions" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsMultipleResultSets" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsLikeEscapeClause" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsOrderByUnrelated" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsUnion" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsUnionAll" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsMixedCaseIdentifiers" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( )
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::nullsAreSortedAtEnd" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::nullsAreSortedAtStart" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::nullsAreSortedHigh" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::nullsAreSortedLow" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsSchemasInProcedureCalls" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsCatalogsInProcedureCalls" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsCorrelatedSubqueries" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsSubqueriesInComparisons" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsSubqueriesInExists" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsSubqueriesInIns" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsSubqueriesInQuantifieds" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsANSI92IntermediateSQL" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getURL( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getURL" );
static const OUString aValue( "sdbc:file:" );
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getUserName( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getUserName" );
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDriverName( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getDriverName" );
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDriverVersion( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getDriverVersion" );
return OUString::number(1);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getDatabaseProductVersion" );
return OUString::number(0);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getDatabaseProductName" );
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getProcedureTerm( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getProcedureTerm" );
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSchemaTerm( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getSchemaTerm" );
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion( ) throw(RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getDriverMajorVersion" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getDefaultTransactionIsolation" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getDriverMinorVersion" );
return 0;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSQLKeywords( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getSQLKeywords" );
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getSearchStringEscape" );
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getStringFunctions( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getStringFunctions" );
return OUString("UCASE,LCASE,ASCII,LENGTH,OCTET_LENGTH,CHAR_LENGTH,CHARACTER_LENGTH,CHAR,CONCAT,LOCATE,SUBSTRING,LTRIM,RTRIM,SPACE,REPLACE,REPEAT,INSERT,LEFT,RIGHT");
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getTimeDateFunctions" );
return OUString("DAYOFWEEK,DAYOFMONTH,DAYOFYEAR,MONTH,DAYNAME,MONTHNAME,QUARTER,WEEK,YEAR,HOUR,MINUTE,SECOND,CURDATE,CURTIME,NOW");
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getSystemFunctions" );
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getNumericFunctions" );
return OUString("ABS,SIGN,MOD,FLOOR,CEILING,ROUND,EXP,LN,LOG,LOG10,POWER,SQRT,PI,COS,SIN,TAN,ACOS,ASIN,ATAN,ATAN2,DEGREES,RADIANS");
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsExtendedSQLGrammar" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsCoreSQLGrammar" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsMinimumSQLGrammar" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsFullOuterJoins" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsLimitedOuterJoins" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxColumnsInGroupBy" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInOrderBy( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxColumnsInOrderBy" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInSelect( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxColumnsInSelect" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxUserNameLength( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getMaxUserNameLength" );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsResultSetType" );
@@ -1124,7 +1124,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType( sal_Int32 setType )
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 /*concurrency*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsResultSetConcurrency" );
@@ -1138,67 +1138,67 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 set
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::ownUpdatesAreVisible" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::ownDeletesAreVisible" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::ownInsertsAreVisible" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::othersUpdatesAreVisible" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::othersDeletesAreVisible" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::othersInsertsAreVisible" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::updatesAreDetected" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::deletesAreDetected" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::insertsAreDetected" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::supportsBatchUpdates" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& /*typeNamePattern*/, const Sequence< sal_Int32 >& /*types*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ODatabaseMetaData::getUDTs" );
diff --git a/connectivity/source/drivers/file/FDateFunctions.cxx b/connectivity/source/drivers/file/FDateFunctions.cxx
index 447037f8fa2a..f6bfca8af207 100644
--- a/connectivity/source/drivers/file/FDateFunctions.cxx
+++ b/connectivity/source/drivers/file/FDateFunctions.cxx
@@ -25,7 +25,7 @@
using namespace connectivity;
using namespace connectivity::file;
-//------------------------------------------------------------------
+
ORowSetValue OOp_DayOfWeek::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -63,7 +63,7 @@ ORowSetValue OOp_DayOfWeek::operate(const ORowSetValue& lhs) const
}
return nRet;
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_DayOfMonth::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -72,7 +72,7 @@ ORowSetValue OOp_DayOfMonth::operate(const ORowSetValue& lhs) const
::com::sun::star::util::Date aD = lhs;
return static_cast<sal_Int16>(aD.Day);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_DayOfYear::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -82,7 +82,7 @@ ORowSetValue OOp_DayOfYear::operate(const ORowSetValue& lhs) const
Date aDate(aD.Day,aD.Month,aD.Year);
return static_cast<sal_Int16>(aDate.GetDayOfYear());
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Month::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -91,7 +91,7 @@ ORowSetValue OOp_Month::operate(const ORowSetValue& lhs) const
::com::sun::star::util::Date aD = lhs;
return static_cast<sal_Int16>(aD.Month);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_DayName::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -129,7 +129,7 @@ ORowSetValue OOp_DayName::operate(const ORowSetValue& lhs) const
}
return sRet;
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_MonthName::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -178,7 +178,7 @@ ORowSetValue OOp_MonthName::operate(const ORowSetValue& lhs) const
}
return sRet;
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Quarter::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -194,7 +194,7 @@ ORowSetValue OOp_Quarter::operate(const ORowSetValue& lhs) const
nRet = 4;
return nRet;
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Week::operate(const ::std::vector<ORowSetValue>& lhs) const
{
if ( lhs.empty() || lhs.size() > 2 )
@@ -211,7 +211,7 @@ ORowSetValue OOp_Week::operate(const ::std::vector<ORowSetValue>& lhs) const
return static_cast<sal_Int16>(aDate.GetWeekOfYear(static_cast<DayOfWeek>(nStartDay)));
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Year::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -220,7 +220,7 @@ ORowSetValue OOp_Year::operate(const ORowSetValue& lhs) const
::com::sun::star::util::Date aD = lhs;
return static_cast<sal_Int16>(aD.Year);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Hour::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -229,7 +229,7 @@ ORowSetValue OOp_Hour::operate(const ORowSetValue& lhs) const
::com::sun::star::util::Time aT = lhs;
return static_cast<sal_Int16>(aT.Hours);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Minute::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -238,7 +238,7 @@ ORowSetValue OOp_Minute::operate(const ORowSetValue& lhs) const
::com::sun::star::util::Time aT = lhs;
return static_cast<sal_Int16>(aT.Minutes);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Second::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -247,7 +247,7 @@ ORowSetValue OOp_Second::operate(const ORowSetValue& lhs) const
::com::sun::star::util::Time aT = lhs;
return static_cast<sal_Int16>(aT.Seconds);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_CurDate::operate(const ::std::vector<ORowSetValue>& lhs) const
{
if ( !lhs.empty() )
@@ -256,7 +256,7 @@ ORowSetValue OOp_CurDate::operate(const ::std::vector<ORowSetValue>& lhs) const
Date aCurDate( Date::SYSTEM );
return ::com::sun::star::util::Date(aCurDate.GetDay(),aCurDate.GetMonth(),aCurDate.GetYear());
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_CurTime::operate(const ::std::vector<ORowSetValue>& lhs) const
{
if ( !lhs.empty() )
@@ -267,7 +267,7 @@ ORowSetValue OOp_CurTime::operate(const ::std::vector<ORowSetValue>& lhs) const
aCurTime.GetSec(), aCurTime.GetMin(), aCurTime.GetHour(),
false);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Now::operate(const ::std::vector<ORowSetValue>& lhs) const
{
if ( !lhs.empty() )
@@ -279,6 +279,6 @@ ORowSetValue OOp_Now::operate(const ::std::vector<ORowSetValue>& lhs) const
aCurTime.GetDay(), aCurTime.GetMonth(), aCurTime.GetYear(),
false);
}
-//------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/file/FDriver.cxx b/connectivity/source/drivers/file/FDriver.cxx
index 6bb859620124..2d8ef7cb2298 100644
--- a/connectivity/source/drivers/file/FDriver.cxx
+++ b/connectivity/source/drivers/file/FDriver.cxx
@@ -35,14 +35,14 @@ using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
using namespace com::sun::star::container;
-// --------------------------------------------------------------------------------
+
OFileDriver::OFileDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext)
: ODriver_BASE(m_aMutex)
,m_xContext(_rxContext)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileDriver::OFileDriver" );
}
-// --------------------------------------------------------------------------------
+
void OFileDriver::disposing()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileDriver::disposing" );
@@ -61,12 +61,12 @@ void OFileDriver::disposing()
}
// static ServiceInfo
-//------------------------------------------------------------------------------
+
OUString OFileDriver::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString("com.sun.star.sdbc.driver.file.Driver");
}
-//------------------------------------------------------------------------------
+
Sequence< OUString > OFileDriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 2 );
@@ -75,7 +75,7 @@ Sequence< OUString > OFileDriver::getSupportedServiceNames_Static( ) throw (Run
return aSNS;
}
-//------------------------------------------------------------------
+
OUString SAL_CALL OFileDriver::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
@@ -86,13 +86,13 @@ sal_Bool SAL_CALL OFileDriver::supportsService( const OUString& _rServiceName )
return cppu::supportsService(this, _rServiceName);
}
-//------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OFileDriver::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
-// --------------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OFileDriver::connect( const OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileDriver::connect" );
@@ -106,14 +106,14 @@ Reference< XConnection > SAL_CALL OFileDriver::connect( const OUString& url, con
return xCon;
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OFileDriver::acceptsURL( const OUString& url )
throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileDriver::acceptsURL" );
return url.startsWith("sdbc:file:");
}
-// --------------------------------------------------------------------------------
+
Sequence< DriverPropertyInfo > SAL_CALL OFileDriver::getPropertyInfo( const OUString& url, const Sequence< PropertyValue >& /*info*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileDriver::getPropertyInfo" );
@@ -176,20 +176,20 @@ Sequence< DriverPropertyInfo > SAL_CALL OFileDriver::getPropertyInfo( const OUSt
} // if ( ! acceptsURL(url) )
return Sequence< DriverPropertyInfo >();
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OFileDriver::getMajorVersion( ) throw(RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileDriver::getMajorVersion" );
return 1;
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OFileDriver::getMinorVersion( ) throw(RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileDriver::getMinorVersion" );
return 0;
}
-// --------------------------------------------------------------------------------
-// --------------------------------------------------------------------------------
+
+
// XDataDefinitionSupplier
Reference< XTablesSupplier > SAL_CALL OFileDriver::getDataDefinitionByConnection( const Reference< ::com::sun::star::sdbc::XConnection >& connection ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
@@ -218,7 +218,7 @@ Reference< XTablesSupplier > SAL_CALL OFileDriver::getDataDefinitionByConnection
return xTab;
}
-// --------------------------------------------------------------------------------
+
Reference< XTablesSupplier > SAL_CALL OFileDriver::getDataDefinitionByURL( const OUString& url, const Sequence< PropertyValue >& info ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileDriver::getDataDefinitionByURL" );
@@ -231,13 +231,13 @@ Reference< XTablesSupplier > SAL_CALL OFileDriver::getDataDefinitionByURL( const
return getDataDefinitionByConnection(connect(url,info));
}
-// -----------------------------------------------------------------------------
+
OOperandAttr::OOperandAttr(sal_uInt16 _nPos,const Reference< XPropertySet>& _xColumn)
: OOperandRow(_nPos,::comphelper::getINT32(_xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))))
, m_xColumn(_xColumn)
{
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/file/FNoException.cxx b/connectivity/source/drivers/file/FNoException.cxx
index d91a5dddffbc..d456654d480c 100644
--- a/connectivity/source/drivers/file/FNoException.cxx
+++ b/connectivity/source/drivers/file/FNoException.cxx
@@ -28,7 +28,7 @@
using namespace connectivity;
using namespace connectivity::file;
-// -----------------------------------------------------------------------------
+
void OFileCatalog::refreshViews()
{}
void OFileCatalog::refreshGroups()
@@ -36,7 +36,7 @@ void OFileCatalog::refreshGroups()
void OFileCatalog::refreshUsers()
{
}
-// -----------------------------------------------------------------------------
+
OPredicateInterpreter::~OPredicateInterpreter()
{
while(!m_aStack.empty())
@@ -46,7 +46,7 @@ OPredicateInterpreter::~OPredicateInterpreter()
}
// m_aStack.clear();
}
-// -----------------------------------------------------------------------------
+
void OPredicateCompiler::Clean()
{
for(OCodeList::reverse_iterator aIter = m_aCodeList.rbegin(); aIter != m_aCodeList.rend();++aIter)
@@ -55,7 +55,7 @@ void OPredicateCompiler::Clean()
}
m_aCodeList.clear();
}
-// -----------------------------------------------------------------------------
+
void OSQLAnalyzer::bindParameterRow(OValueRefRow& _pRow)
{
OCodeList& rCodeList = m_aCompiler->m_aCodeList;
@@ -66,7 +66,7 @@ void OSQLAnalyzer::bindParameterRow(OValueRefRow& _pRow)
pParam->bindValue(_pRow);
}
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::scanParameter(OSQLParseNode* pParseNode,::std::vector< OSQLParseNode*>& _rParaNodes)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::scanParameter" );
@@ -87,7 +87,7 @@ void OPreparedStatement::scanParameter(OSQLParseNode* pParseNode,::std::vector<
for (sal_uInt32 i = 0; i < pParseNode->count(); i++)
scanParameter(pParseNode->getChild(i),_rParaNodes);
}
-// -----------------------------------------------------------------------------
+
OKeyValue* OResultSet::GetOrderbyKeyValue(OValueRefRow& _rRow)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::GetOrderbyKeyValue" );
@@ -104,6 +104,6 @@ OKeyValue* OResultSet::GetOrderbyKeyValue(OValueRefRow& _rRow)
return pKeyValue;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/file/FNumericFunctions.cxx b/connectivity/source/drivers/file/FNumericFunctions.cxx
index e4871a31ee72..99710645fc51 100644
--- a/connectivity/source/drivers/file/FNumericFunctions.cxx
+++ b/connectivity/source/drivers/file/FNumericFunctions.cxx
@@ -24,7 +24,7 @@
using namespace connectivity;
using namespace connectivity::file;
-//------------------------------------------------------------------
+
ORowSetValue OOp_Abs::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -35,7 +35,7 @@ ORowSetValue OOp_Abs::operate(const ORowSetValue& lhs) const
nVal *= -1.0;
return fabs(nVal);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Sign::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -50,7 +50,7 @@ ORowSetValue OOp_Sign::operate(const ORowSetValue& lhs) const
return nRet;
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Mod::operate(const ORowSetValue& lhs,const ORowSetValue& rhs) const
{
if ( lhs.isNull() || rhs.isNull() )
@@ -58,7 +58,7 @@ ORowSetValue OOp_Mod::operate(const ORowSetValue& lhs,const ORowSetValue& rhs) c
return fmod((double)lhs,(double)rhs);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Floor::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -66,7 +66,7 @@ ORowSetValue OOp_Floor::operate(const ORowSetValue& lhs) const
return floor((double)lhs);
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Ceiling::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -75,7 +75,7 @@ ORowSetValue OOp_Ceiling::operate(const ORowSetValue& lhs) const
double nVal(lhs);
return ceil(nVal);
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Round::operate(const ::std::vector<ORowSetValue>& lhs) const
{
if ( lhs.empty() || lhs.size() > 2 )
@@ -89,7 +89,7 @@ ORowSetValue OOp_Round::operate(const ::std::vector<ORowSetValue>& lhs) const
nDec = lhs[0];
return ::rtl::math::round(nVal,nDec);
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Exp::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -98,7 +98,7 @@ ORowSetValue OOp_Exp::operate(const ORowSetValue& lhs) const
double nVal(lhs);
return exp(nVal);
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Ln::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() || static_cast<double>(lhs) < 0.0 )
@@ -110,7 +110,7 @@ ORowSetValue OOp_Ln::operate(const ORowSetValue& lhs) const
return ORowSetValue();
return nVal;
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Log::operate(const ::std::vector<ORowSetValue>& lhs) const
{
if ( lhs.empty() || lhs.size() > 2 )
@@ -126,7 +126,7 @@ ORowSetValue OOp_Log::operate(const ::std::vector<ORowSetValue>& lhs) const
return ORowSetValue();
return nVal;
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Log10::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() || static_cast<double>(lhs) < 0.0 )
@@ -138,7 +138,7 @@ ORowSetValue OOp_Log10::operate(const ORowSetValue& lhs) const
nVal /= log(10.0);
return nVal;
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Pow::operate(const ORowSetValue& lhs,const ORowSetValue& rhs) const
{
if ( lhs.isNull() || rhs.isNull() )
@@ -146,7 +146,7 @@ ORowSetValue OOp_Pow::operate(const ORowSetValue& lhs,const ORowSetValue& rhs) c
return pow((double)lhs,(double)rhs);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Sqrt::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -157,12 +157,12 @@ ORowSetValue OOp_Sqrt::operate(const ORowSetValue& lhs) const
return ORowSetValue();
return nVal;
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Pi::operate(const ::std::vector<ORowSetValue>& /*lhs*/) const
{
return 3.141592653589793116;
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Cos::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -170,7 +170,7 @@ ORowSetValue OOp_Cos::operate(const ORowSetValue& lhs) const
return cos((double)lhs);
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Sin::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -178,7 +178,7 @@ ORowSetValue OOp_Sin::operate(const ORowSetValue& lhs) const
return sin((double)lhs);
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Tan::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -186,7 +186,7 @@ ORowSetValue OOp_Tan::operate(const ORowSetValue& lhs) const
return tan((double)lhs);
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_ACos::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -194,7 +194,7 @@ ORowSetValue OOp_ACos::operate(const ORowSetValue& lhs) const
return acos((double)lhs);
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_ASin::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -202,7 +202,7 @@ ORowSetValue OOp_ASin::operate(const ORowSetValue& lhs) const
return asin((double)lhs);
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_ATan::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -210,7 +210,7 @@ ORowSetValue OOp_ATan::operate(const ORowSetValue& lhs) const
return atan((double)lhs);
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_ATan2::operate(const ORowSetValue& lhs,const ORowSetValue& rhs) const
{
if ( lhs.isNull() || rhs.isNull() )
@@ -218,7 +218,7 @@ ORowSetValue OOp_ATan2::operate(const ORowSetValue& lhs,const ORowSetValue& rhs)
return atan2((double)lhs,(double)rhs);
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Degrees::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -227,7 +227,7 @@ ORowSetValue OOp_Degrees::operate(const ORowSetValue& lhs) const
double nLhs = lhs;
return nLhs*180*(1.0/3.141592653589793116);
}
-// -----------------------------------------------------------------------------
+
ORowSetValue OOp_Radians::operate(const ORowSetValue& lhs) const
{
if ( lhs.isNull() )
@@ -236,6 +236,6 @@ ORowSetValue OOp_Radians::operate(const ORowSetValue& lhs) const
double nLhs = lhs;
return nLhs*3.141592653589793116*(1.0/180.0);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/file/FPreparedStatement.cxx b/connectivity/source/drivers/file/FPreparedStatement.cxx
index f24748369d42..2fa3a21e2a4a 100644
--- a/connectivity/source/drivers/file/FPreparedStatement.cxx
+++ b/connectivity/source/drivers/file/FPreparedStatement.cxx
@@ -52,7 +52,7 @@ using namespace com::sun::star;
IMPLEMENT_SERVICE_INFO(OPreparedStatement,"com.sun.star.sdbc.driver.file.PreparedStatement","com.sun.star.sdbc.PreparedStatement");
DBG_NAME( file_OPreparedStatement )
-// -------------------------------------------------------------------------
+
OPreparedStatement::OPreparedStatement( OConnection* _pConnection)
: OStatement_BASE2( _pConnection )
{
@@ -60,14 +60,14 @@ OPreparedStatement::OPreparedStatement( OConnection* _pConnection)
DBG_CTOR( file_OPreparedStatement, NULL );
}
-// -------------------------------------------------------------------------
+
OPreparedStatement::~OPreparedStatement()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::~OPreparedStatement" );
DBG_DTOR( file_OPreparedStatement, NULL );
}
-// -------------------------------------------------------------------------
+
void OPreparedStatement::disposing()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::disposing" );
@@ -83,7 +83,7 @@ void OPreparedStatement::disposing()
m_aParameterRow = NULL;
}
}
-// -------------------------------------------------------------------------
+
void OPreparedStatement::construct(const OUString& sql) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::construct" );
@@ -116,7 +116,7 @@ Reference<XResultSet> OPreparedStatement::makeResultSet()
return xRS;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OPreparedStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
@@ -126,7 +126,7 @@ Any SAL_CALL OPreparedStatement::queryInterface( const Type & rType ) throw(Runt
static_cast< XParameters*>(this),
static_cast< XResultSetMetaDataSupplier*>(this));
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL OPreparedStatement::getTypes( ) throw(::com::sun::star::uno::RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const ::com::sun::star::uno::Reference< XPreparedStatement > *)0 ),
@@ -135,7 +135,7 @@ Any SAL_CALL OPreparedStatement::queryInterface( const Type & rType ) throw(Runt
return ::comphelper::concatSequences(aTypes.getTypes(),OStatement_BASE2::getTypes());
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -148,7 +148,7 @@ Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData( ) thr
m_xMetaData = new OResultSetMetaData(m_aSQLIterator.getSelectColumns(),m_aSQLIterator.getTables().begin()->first,m_pTable);
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::close( ) throw(SQLException, RuntimeException)
{
@@ -156,7 +156,7 @@ void SAL_CALL OPreparedStatement::close( ) throw(SQLException, RuntimeException
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeException)
{
@@ -173,7 +173,7 @@ sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeExc
return m_aSQLIterator.getStatementType() == SQL_STATEMENT_SELECT;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OPreparedStatement::executeUpdate( ) throw(SQLException, RuntimeException)
{
@@ -196,14 +196,14 @@ sal_Int32 SAL_CALL OPreparedStatement::executeUpdate( ) throw(SQLException, Run
else
return 0;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setString( sal_Int32 parameterIndex, const OUString& x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setString" );
setParameter(parameterIndex,x);
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OPreparedStatement::getConnection( ) throw(SQLException, RuntimeException)
{
@@ -213,7 +213,7 @@ Reference< XConnection > SAL_CALL OPreparedStatement::getConnection( ) throw(SQ
return (Reference< XConnection >)m_pConnection;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery( ) throw(SQLException, RuntimeException)
{
@@ -223,40 +223,40 @@ Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery( ) throw(SQLE
return makeResultSet();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBoolean( sal_Int32 parameterIndex, sal_Bool x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setBoolean" );
setParameter(parameterIndex,static_cast<bool>(x));
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setByte( sal_Int32 parameterIndex, sal_Int8 x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setByte" );
setParameter(parameterIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setDate( sal_Int32 parameterIndex, const util::Date& aData ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setDate" );
setParameter(parameterIndex,DBTypeConversion::toDouble(aData));
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setTime( sal_Int32 parameterIndex, const util::Time& aVal ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setTime" );
setParameter(parameterIndex,DBTypeConversion::toDouble(aVal));
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setTimestamp( sal_Int32 parameterIndex, const util::DateTime& aVal ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setTimestamp" );
setParameter(parameterIndex,DBTypeConversion::toDouble(aVal));
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setDouble( sal_Int32 parameterIndex, double x ) throw(SQLException, RuntimeException)
{
@@ -264,28 +264,28 @@ void SAL_CALL OPreparedStatement::setDouble( sal_Int32 parameterIndex, double x
setParameter(parameterIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setFloat( sal_Int32 parameterIndex, float x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setFloat" );
setParameter(parameterIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setInt( sal_Int32 parameterIndex, sal_Int32 x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setInt" );
setParameter(parameterIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setLong( sal_Int32 /*parameterIndex*/, sal_Int64 /*aVal*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setLong" );
throwFeatureNotImplementedException( "XParameters::setLong", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setNull( sal_Int32 parameterIndex, sal_Int32 /*sqlType*/ ) throw(SQLException, RuntimeException)
{
@@ -298,35 +298,35 @@ void SAL_CALL OPreparedStatement::setNull( sal_Int32 parameterIndex, sal_Int32 /
else
(m_aParameterRow->get())[parameterIndex]->setNull();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setClob( sal_Int32 /*parameterIndex*/, const Reference< XClob >& /*x*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setClob" );
throwFeatureNotImplementedException( "XParameters::setClob", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBlob( sal_Int32 /*parameterIndex*/, const Reference< XBlob >& /*x*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setBlob" );
throwFeatureNotImplementedException( "XParameters::setBlob", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setArray( sal_Int32 /*parameterIndex*/, const Reference< XArray >& /*x*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setArray" );
throwFeatureNotImplementedException( "XParameters::setArray", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setRef( sal_Int32 /*parameterIndex*/, const Reference< XRef >& /*x*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setRef" );
throwFeatureNotImplementedException( "XParameters::setRef", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, const Any& x, sal_Int32 sqlType, sal_Int32 scale ) throw(SQLException, RuntimeException)
{
@@ -342,14 +342,14 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, c
break;
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObjectNull( sal_Int32 parameterIndex, sal_Int32 sqlType, const OUString& /*typeName*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setObjectNull" );
setNull(parameterIndex,sqlType);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObject( sal_Int32 parameterIndex, const Any& x ) throw(SQLException, RuntimeException)
{
@@ -364,21 +364,21 @@ void SAL_CALL OPreparedStatement::setObject( sal_Int32 parameterIndex, const Any
}
// setObject (parameterIndex, x, sqlType, 0);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setShort( sal_Int32 parameterIndex, sal_Int16 x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setShort" );
setParameter(parameterIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBytes( sal_Int32 parameterIndex, const Sequence< sal_Int8 >& x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setBytes" );
setParameter(parameterIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setCharacterStream( sal_Int32 parameterIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
@@ -386,7 +386,7 @@ void SAL_CALL OPreparedStatement::setCharacterStream( sal_Int32 parameterIndex,
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setCharacterStream" );
setBinaryStream(parameterIndex,x,length );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBinaryStream( sal_Int32 parameterIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
@@ -398,7 +398,7 @@ void SAL_CALL OPreparedStatement::setBinaryStream( sal_Int32 parameterIndex, con
x->readBytes(aSeq,length);
setParameter(parameterIndex,aSeq);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::clearParameters( ) throw(SQLException, RuntimeException)
{
@@ -409,13 +409,13 @@ void SAL_CALL OPreparedStatement::clearParameters( ) throw(SQLException, Runtim
m_aParameterRow->get().clear();
m_aParameterRow->get().push_back(new ORowSetValueDecorator(sal_Int32(0)) );
}
-// -------------------------------------------------------------------------
+
OResultSet* OPreparedStatement::createResultSet()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::createResultSet" );
return new OResultSet(this,m_aSQLIterator);
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::initResultSet(OResultSet *pResultSet)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::initResultSet" );
@@ -428,17 +428,17 @@ void OPreparedStatement::initResultSet(OResultSet *pResultSet)
pResultSet->OpenImpl();
pResultSet->setMetaData(getMetaData());
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::acquire() throw()
{
OStatement_BASE2::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::release() throw()
{
OStatement_BASE2::release();
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::checkAndResizeParameters(sal_Int32 parameterIndex)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::checkAndResizeParameters" );
@@ -456,7 +456,7 @@ void OPreparedStatement::checkAndResizeParameters(sal_Int32 parameterIndex)
}
}
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::setParameter(sal_Int32 parameterIndex, const ORowSetValue& x)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::setParameter" );
@@ -468,7 +468,7 @@ void OPreparedStatement::setParameter(sal_Int32 parameterIndex, const ORowSetVal
else
*((m_aParameterRow->get())[parameterIndex]) = x;
}
-// -----------------------------------------------------------------------------
+
sal_uInt32 OPreparedStatement::AddParameter(OSQLParseNode * pParameter, const Reference<XPropertySet>& _xCol)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::AddParameter" );
@@ -516,7 +516,7 @@ sal_uInt32 OPreparedStatement::AddParameter(OSQLParseNode * pParameter, const Re
m_xParamColumns->get().push_back(xParaColumn);
return m_xParamColumns->get().size();
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::describeColumn(OSQLParseNode* _pParameter,OSQLParseNode* _pNode,const OSQLTable& _xTable)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::describeColumn" );
@@ -536,7 +536,7 @@ void OPreparedStatement::describeColumn(OSQLParseNode* _pParameter,OSQLParseNode
// else
// AddParameter(_pParameter,xProp);
}
-// -------------------------------------------------------------------------
+
void OPreparedStatement::describeParameter()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::describeParameter" );
@@ -557,7 +557,7 @@ void OPreparedStatement::describeParameter()
}
}
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::initializeResultSet(OResultSet* pRS)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::initializeResultSet" );
@@ -598,7 +598,7 @@ void OPreparedStatement::initializeResultSet(OResultSet* pRS)
m_pSQLAnalyzer->bindParameterRow(m_aParameterRow);
}
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::parseParamterElem(const OUString& _sColumnName, OSQLParseNode* pRow_Value_Constructor_Elem)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OPreparedStatement::parseParamterElem" );
@@ -616,7 +616,7 @@ void OPreparedStatement::parseParamterElem(const OUString& _sColumnName, OSQLPar
// Save number of parameter in the variable:
SetAssignValue(_sColumnName, OUString(), sal_True, nParameter);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx
index add766d87e25..9d7f9dc93f7b 100644
--- a/connectivity/source/drivers/file/FResultSet.cxx
+++ b/connectivity/source/drivers/file/FResultSet.cxx
@@ -71,10 +71,10 @@ namespace
::dbtools::throwGenericSQLException(sMessage ,_xContext);
}
}
-//------------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OResultSet,"com.sun.star.sdbcx.drivers.file.ResultSet","com.sun.star.sdbc.ResultSet");
DBG_NAME( file_OResultSet )
-// -------------------------------------------------------------------------
+
OResultSet::OResultSet(OStatement_Base* pStmt,OSQLParseTreeIterator& _aSQLIterator) : OResultSet_BASE(m_aMutex)
,::comphelper::OPropertyContainer(OResultSet_BASE::rBHelper)
,m_aAssignValues(NULL)
@@ -126,7 +126,7 @@ OResultSet::OResultSet(OStatement_Base* pStmt,OSQLParseTreeIterator& _aSQLIte
osl_atomic_decrement( &m_refCount );
}
-// -------------------------------------------------------------------------
+
OResultSet::~OResultSet()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::~OResultSet" );
@@ -134,7 +134,7 @@ OResultSet::~OResultSet()
disposing();
DBG_DTOR( file_OResultSet, NULL );
}
-// -------------------------------------------------------------------------
+
void OResultSet::construct()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::construct" );
@@ -143,7 +143,7 @@ void OResultSet::construct()
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FETCHDIRECTION), PROPERTY_ID_FETCHDIRECTION, 0,&m_nFetchDirection, ::getCppuType(static_cast<sal_Int32*>(0)));
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_RESULTSETCONCURRENCY), PROPERTY_ID_RESULTSETCONCURRENCY,PropertyAttribute::READONLY,&m_nResultSetConcurrency, ::getCppuType(static_cast<sal_Int32*>(0)));
}
-// -------------------------------------------------------------------------
+
void OResultSet::disposing(void)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::disposing" );
@@ -175,14 +175,14 @@ void OResultSet::disposing(void)
m_aSkipDeletedSet.clear();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeException)
{
//SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::queryInterface" );
Any aRet = OPropertySetHelper::queryInterface(rType);
return aRet.hasValue() ? aRet : OResultSet_BASE::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OResultSet::getTypes( ) throw(RuntimeException)
{
//SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getTypes" );
@@ -194,7 +194,7 @@ Sequence< Type > SAL_CALL OResultSet::getTypes( ) throw(RuntimeException)
return ::comphelper::concatSequences(aTypes.getTypes(),OResultSet_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName ) throw(SQLException, RuntimeException)
{
@@ -217,7 +217,7 @@ sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName ) throw(SQ
assert(false);
return 0; // Never reached
}
-// -----------------------------------------------------------------------------
+
const ORowSetValue& OResultSet::getValue(sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getValue" );
@@ -230,7 +230,7 @@ const ORowSetValue& OResultSet::getValue(sal_Int32 columnIndex ) throw(::com::su
m_bWasNull = (m_aSelectRow->get())[columnIndex]->getValue().isNull();
return *(m_aSelectRow->get())[columnIndex];
}
-// -----------------------------------------------------------------------------
+
void OResultSet::checkIndex(sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException)
{
//SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::checkIndex" );
@@ -238,68 +238,68 @@ void OResultSet::checkIndex(sal_Int32 columnIndex ) throw(::com::sun::star::sdbc
|| columnIndex >= m_nColumnCount )
::dbtools::throwInvalidIndexException(*this);
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getBinaryStream" );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL OResultSet::getCharacterStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getCharacterStream" );
return NULL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::getBoolean( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getBoolean" );
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL OResultSet::getByte( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getByte" );
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getBytes" );
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Date SAL_CALL OResultSet::getDate( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getDate" );
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
double SAL_CALL OResultSet::getDouble( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getDouble" );
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
float SAL_CALL OResultSet::getFloat( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getFloat" );
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::getInt( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getInt" );
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::getRow( ) throw(SQLException, RuntimeException)
{
@@ -311,14 +311,14 @@ sal_Int32 SAL_CALL OResultSet::getRow( ) throw(SQLException, RuntimeException)
return m_aSkipDeletedSet.getMappedPosition((m_aRow->get())[0]->getValue());
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL OResultSet::getLong( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getLong" );
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -331,66 +331,66 @@ Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLEx
m_xMetaData = new OResultSetMetaData(m_xColumns,m_aSQLIterator.getTables().begin()->first,m_pTable);
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getArray" );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL OResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getClob" );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL OResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getBlob" );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL OResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getRef" );
return NULL;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::getObject( sal_Int32 columnIndex, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getObject" );
return getValue(columnIndex).makeAny();
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL OResultSet::getShort( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getShort" );
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSet::getString( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
//SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getString" );
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Time SAL_CALL OResultSet::getTime( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getTime" );
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::DateTime SAL_CALL OResultSet::getTimestamp( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getTimestamp" );
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isAfterLast( ) throw(SQLException, RuntimeException)
{
@@ -401,7 +401,7 @@ sal_Bool SAL_CALL OResultSet::isAfterLast( ) throw(SQLException, RuntimeExcepti
return m_nRowPos == sal_Int32(m_pFileSet->get().size());
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isFirst( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::isFirst" );
@@ -411,7 +411,7 @@ sal_Bool SAL_CALL OResultSet::isFirst( ) throw(SQLException, RuntimeException)
return m_nRowPos == 0;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isLast( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::isLast" );
@@ -421,7 +421,7 @@ sal_Bool SAL_CALL OResultSet::isLast( ) throw(SQLException, RuntimeException)
return m_nRowPos == sal_Int32(m_pFileSet->get().size() - 1);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::beforeFirst" );
@@ -432,7 +432,7 @@ void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
if(first())
previous();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::afterLast" );
@@ -444,14 +444,14 @@ void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException)
next();
m_bEOF = sal_True;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::close( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::close" );
dispose();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::first( ) throw(SQLException, RuntimeException)
{
@@ -460,7 +460,7 @@ sal_Bool SAL_CALL OResultSet::first( ) throw(SQLException, RuntimeException)
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
return m_pTable ? m_aSkipDeletedSet.skipDeleted(IResultSetHelper::FIRST,1,sal_True) : sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::last( ) throw(SQLException, RuntimeException)
{
@@ -470,7 +470,7 @@ sal_Bool SAL_CALL OResultSet::last( ) throw(SQLException, RuntimeException)
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
return m_pTable ? m_aSkipDeletedSet.skipDeleted(IResultSetHelper::LAST,1,sal_True) : sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::absolute( sal_Int32 row ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::absolute" );
@@ -478,7 +478,7 @@ sal_Bool SAL_CALL OResultSet::absolute( sal_Int32 row ) throw(SQLException, Runt
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
return m_pTable ? m_aSkipDeletedSet.skipDeleted(IResultSetHelper::ABSOLUTE,row,sal_True) : sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::relative( sal_Int32 row ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::relative" );
@@ -486,7 +486,7 @@ sal_Bool SAL_CALL OResultSet::relative( sal_Int32 row ) throw(SQLException, Runt
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
return m_pTable ? m_aSkipDeletedSet.skipDeleted(IResultSetHelper::RELATIVE,row,sal_True) : sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::previous( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::previous" );
@@ -494,7 +494,7 @@ sal_Bool SAL_CALL OResultSet::previous( ) throw(SQLException, RuntimeException)
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
return m_pTable ? m_aSkipDeletedSet.skipDeleted(IResultSetHelper::PRIOR,0,sal_True) : sal_False;
}
-// -------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL OResultSet::getStatement( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getStatement" );
@@ -504,7 +504,7 @@ Reference< XInterface > SAL_CALL OResultSet::getStatement( ) throw(SQLException
return m_xStatement;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowDeleted( ) throw(SQLException, RuntimeException)
{
@@ -515,7 +515,7 @@ sal_Bool SAL_CALL OResultSet::rowDeleted( ) throw(SQLException, RuntimeExceptio
return m_bRowDeleted;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowInserted( ) throw(SQLException, RuntimeException)
{ ::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -523,7 +523,7 @@ sal_Bool SAL_CALL OResultSet::rowInserted( ) throw(SQLException, RuntimeExcepti
return m_bRowInserted;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowUpdated( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::rowInserted" );
@@ -533,7 +533,7 @@ sal_Bool SAL_CALL OResultSet::rowUpdated( ) throw(SQLException, RuntimeExceptio
return m_bRowUpdated;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeException)
{
@@ -544,7 +544,7 @@ sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeExcep
return m_nRowPos == -1;
}
-// -------------------------------------------------------------------------
+
// sal_Bool OResultSet::evaluate()
// {
// SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::evaluate" );
@@ -576,7 +576,7 @@ sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeExcep
// return bRet;
// }
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::next( ) throw(SQLException, RuntimeException)
{
@@ -586,7 +586,7 @@ sal_Bool SAL_CALL OResultSet::next( ) throw(SQLException, RuntimeException)
return m_pTable ? m_aSkipDeletedSet.skipDeleted(IResultSetHelper::NEXT,1,sal_True) : sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::wasNull( ) throw(SQLException, RuntimeException)
{
@@ -596,24 +596,24 @@ sal_Bool SAL_CALL OResultSet::wasNull( ) throw(SQLException, RuntimeException)
return m_bWasNull;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::cancel( ) throw(RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::cancel" );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::clearWarnings( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::clearWarnings" );
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::getWarnings( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getWarnings" );
return Any();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::insertRow( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::insertRow" );
@@ -638,7 +638,7 @@ void SAL_CALL OResultSet::insertRow( ) throw(SQLException, RuntimeException)
m_aSkipDeletedSet.insertNewPosition((m_aRow->get())[0]->getValue());
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateRow( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateRow" );
@@ -653,7 +653,7 @@ void SAL_CALL OResultSet::updateRow( ) throw(SQLException, RuntimeException)
clearInsertRow();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::deleteRow() throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::deleteRow" );
@@ -677,7 +677,7 @@ void SAL_CALL OResultSet::deleteRow() throw(SQLException, RuntimeException)
m_aSkipDeletedSet.deletePosition(nPos);
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::cancelRowUpdates( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::cancelRowUpdates" );
@@ -700,7 +700,7 @@ void SAL_CALL OResultSet::cancelRowUpdates( ) throw(SQLException, RuntimeExcept
}
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::moveToInsertRow( ) throw(SQLException, RuntimeException)
{
@@ -720,13 +720,13 @@ void SAL_CALL OResultSet::moveToInsertRow( ) throw(SQLException, RuntimeExcepti
(*aIter)->setNull();
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::moveToCurrentRow( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::moveToCurrentRow" );
}
-// -------------------------------------------------------------------------
+
void OResultSet::updateValue(sal_Int32 columnIndex ,const ORowSetValue& x) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateValue" );
@@ -739,7 +739,7 @@ void OResultSet::updateValue(sal_Int32 columnIndex ,const ORowSetValue& x) throw
(m_aInsertRow->get())[columnIndex]->setBound(true);
*(m_aInsertRow->get())[columnIndex] = x;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateNull( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -747,84 +747,84 @@ void SAL_CALL OResultSet::updateNull( sal_Int32 columnIndex ) throw(SQLException
ORowSetValue aEmpty;
updateValue(columnIndex,aEmpty);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBoolean( sal_Int32 columnIndex, sal_Bool x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateBoolean" );
updateValue(columnIndex, static_cast<bool>(x));
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateByte( sal_Int32 columnIndex, sal_Int8 x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateByte" );
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateShort( sal_Int32 columnIndex, sal_Int16 x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateShort" );
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateInt( sal_Int32 columnIndex, sal_Int32 x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateInt" );
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateLong( sal_Int32 /*columnIndex*/, sal_Int64 /*x*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateLong" );
::dbtools::throwFeatureNotImplementedException( "XRowUpdate::updateLong", *this );
}
-// -----------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateFloat( sal_Int32 columnIndex, float x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateFloat" );
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateDouble( sal_Int32 columnIndex, double x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateDouble" );
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateString( sal_Int32 columnIndex, const OUString& x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateString" );
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBytes( sal_Int32 columnIndex, const Sequence< sal_Int8 >& x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateBytes" );
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateDate( sal_Int32 columnIndex, const ::com::sun::star::util::Date& x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateDate" );
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateTime( sal_Int32 columnIndex, const ::com::sun::star::util::Time& x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateTime" );
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateTimestamp( sal_Int32 columnIndex, const ::com::sun::star::util::DateTime& x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateTimestamp" );
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBinaryStream( sal_Int32 columnIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
@@ -839,27 +839,27 @@ void SAL_CALL OResultSet::updateBinaryStream( sal_Int32 columnIndex, const Refer
x->readBytes(aSeq,length);
updateValue(columnIndex,aSeq);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateCharacterStream( sal_Int32 columnIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateCharacterStream" );
updateBinaryStream(columnIndex,x,length);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::refreshRow( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::refreshRow" );
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateObject( sal_Int32 columnIndex, const Any& x ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::updateObject" );
if (!::dbtools::implUpdateObject(this, columnIndex, x))
throw SQLException();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateNumericObject( sal_Int32 columnIndex, const Any& x, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException)
{
@@ -867,7 +867,7 @@ void SAL_CALL OResultSet::updateNumericObject( sal_Int32 columnIndex, const Any&
if (!::dbtools::implUpdateObject(this, columnIndex, x))
throw SQLException();
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper* OResultSet::createArrayHelper( ) const
{
//SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::createArrayHelper" );
@@ -875,14 +875,14 @@ IPropertyArrayHelper* OResultSet::createArrayHelper( ) const
describeProperties(aProps);
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper & OResultSet::getInfoHelper()
{
//SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getInfoHelper" );
return *const_cast<OResultSet*>(this)->getArrayHelper();
}
-//------------------------------------------------------------------
+
sal_Bool OResultSet::ExecuteRow(IResultSetHelper::Movement eFirstCursorPosition,
sal_Int32 nFirstOffset,
sal_Bool bEvaluate,
@@ -1020,7 +1020,7 @@ again:
return sal_True;
}
-//-------------------------------------------------------------------
+
sal_Bool OResultSet::Move(IResultSetHelper::Movement eCursorPosition, sal_Int32 nOffset, sal_Bool bRetrieveData)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::Move" );
@@ -1229,7 +1229,7 @@ Error:
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
void OResultSet::sortRows()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::sortRows" );
@@ -1336,7 +1336,7 @@ void OResultSet::sortRows()
}
-// -------------------------------------------------------------------------
+
sal_Bool OResultSet::OpenImpl()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::OpenImpl" );
@@ -1598,7 +1598,7 @@ sal_Bool OResultSet::OpenImpl()
return sal_True;
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > OResultSet::getUnoTunnelImplementationId()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getUnoTunnelImplementationId" );
@@ -1616,7 +1616,7 @@ Sequence< sal_Int8 > OResultSet::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OResultSet::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getSomething" );
@@ -1624,7 +1624,7 @@ sal_Int64 OResultSet::getSomething( const Sequence< sal_Int8 > & rId ) throw (Ru
? reinterpret_cast< sal_Int64 >( this )
: 0;
}
-// -----------------------------------------------------------------------------
+
void OResultSet::setBoundedColumns(const OValueRefRow& _rRow,
const OValueRefRow& _rSelectRow,
const ::rtl::Reference<connectivity::OSQLColumns>& _rxColumns,
@@ -1743,23 +1743,23 @@ void OResultSet::setBoundedColumns(const OValueRefRow& _rRow,
}
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::acquire() throw()
{
OResultSet_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::release() throw()
{
OResultSet_BASE::release();
}
-// -----------------------------------------------------------------------------
+
Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertySetInfo( ) throw(RuntimeException)
{
//SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getPropertySetInfo" );
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
void OResultSet::doTableSpecials(const OSQLTable& _xTable)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::doTableSpecials" );
@@ -1771,7 +1771,7 @@ void OResultSet::doTableSpecials(const OSQLTable& _xTable)
m_pTable->acquire();
}
}
-// -----------------------------------------------------------------------------
+
void OResultSet::clearInsertRow()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::clearInsertRow" );
@@ -1790,7 +1790,7 @@ void OResultSet::clearInsertRow()
rValue->setNull();
}
}
-// -----------------------------------------------------------------------------
+
void OResultSet::initializeRow(OValueRefRow& _rRow,sal_Int32 _nColumnCount)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::initializeRow" );
@@ -1801,37 +1801,37 @@ void OResultSet::initializeRow(OValueRefRow& _rRow,sal_Int32 _nColumnCount)
::std::for_each(_rRow->get().begin()+1,_rRow->get().end(),TSetRefBound(false));
}
}
-// -----------------------------------------------------------------------------
+
sal_Bool OResultSet::fillIndexValues(const Reference< XColumnsSupplier> &/*_xIndex*/)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::fillIndexValues" );
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OResultSet::move(IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset, sal_Bool _bRetrieveData)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::move" );
return Move(_eCursorPosition,_nOffset,_bRetrieveData);
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OResultSet::getDriverPos() const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::getDriverPos" );
return (m_aRow->get())[0]->getValue();
}
-// -----------------------------------------------------------------------------
+
sal_Bool OResultSet::deletedVisible() const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::deletedVisible" );
return m_bShowDeleted;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OResultSet::isRowDeleted() const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::isRowDeleted" );
return m_aRow->isDeleted();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::disposing( const EventObject& Source ) throw (RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSet::disposing" );
@@ -1842,6 +1842,6 @@ void SAL_CALL OResultSet::disposing( const EventObject& Source ) throw (RuntimeE
m_pTable = NULL;
}
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/file/FResultSetMetaData.cxx b/connectivity/source/drivers/file/FResultSetMetaData.cxx
index 3e33222b6b05..4f0d493f3b01 100644
--- a/connectivity/source/drivers/file/FResultSetMetaData.cxx
+++ b/connectivity/source/drivers/file/FResultSetMetaData.cxx
@@ -35,7 +35,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
OResultSetMetaData::OResultSetMetaData(const ::rtl::Reference<connectivity::OSQLColumns>& _rxColumns,const OUString& _aTableName,OFileTable* _pTable)
:m_aTableName(_aTableName)
,m_xColumns(_rxColumns)
@@ -44,25 +44,25 @@ OResultSetMetaData::OResultSetMetaData(const ::rtl::Reference<connectivity::OSQL
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::OResultSetMetaData" );
}
-// -------------------------------------------------------------------------
+
OResultSetMetaData::~OResultSetMetaData()
{
m_xColumns = NULL;
}
-// -----------------------------------------------------------------------------
+
void OResultSetMetaData::checkColumnIndex(sal_Int32 column) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::checkColumnIndex" );
if(column <= 0 || column > (sal_Int32)(sal_Int32)m_xColumns->get().size())
throwInvalidIndexException(*this);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::getColumnDisplaySize" );
return getPrecision(column);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnType( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -70,28 +70,28 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnType( sal_Int32 column ) throw(S
checkColumnIndex(column);
return getINT32((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE)));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::getColumnCount" );
return (m_xColumns->get()).size();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::isCaseSensitive" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getSchemaName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::getSchemaName" );
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -101,38 +101,38 @@ OUString SAL_CALL OResultSetMetaData::getColumnName( sal_Int32 column ) throw(SQ
Any aName((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME)));
return aName.hasValue() ? getString(aName) : getString((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME)));
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getTableName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::getTableName" );
return m_aTableName;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getCatalogName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::getCatalogName" );
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnTypeName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::getColumnTypeName" );
checkColumnIndex(column);
return getString((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPENAME)));
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnLabel( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::getColumnLabel" );
return getColumnName(column);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnServiceName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::getColumnServiceName" );
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -140,34 +140,34 @@ sal_Bool SAL_CALL OResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLEx
checkColumnIndex(column);
return getBOOL((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISCURRENCY)));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement( sal_Int32 /*setCatalogcolumn*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::isAutoIncrement" );
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isSigned( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::isSigned" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::getPrecision" );
checkColumnIndex(column);
return getINT32((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PRECISION)));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getScale( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::getScale" );
checkColumnIndex(column);
return getINT32((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_SCALE)));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::isNullable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -175,14 +175,14 @@ sal_Int32 SAL_CALL OResultSetMetaData::isNullable( sal_Int32 column ) throw(SQLE
checkColumnIndex(column);
return getINT32((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISNULLABLE)));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isSearchable( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::isSearchable" );
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isReadOnly( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -192,19 +192,19 @@ sal_Bool SAL_CALL OResultSetMetaData::isReadOnly( sal_Int32 column ) throw(SQLEx
(m_xColumns->get())[column-1]->getPropertySetInfo()->hasPropertyByName(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FUNCTION)) &&
::cppu::any2bool((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FUNCTION))));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::isDefinitelyWritable" );
return !isReadOnly(column);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OResultSetMetaData::isWritable" );
return !isReadOnly(column);
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/file/FStatement.cxx b/connectivity/source/drivers/file/FStatement.cxx
index 984a806c6636..8fb975f65d3f 100644
--- a/connectivity/source/drivers/file/FStatement.cxx
+++ b/connectivity/source/drivers/file/FStatement.cxx
@@ -42,7 +42,7 @@ namespace connectivity
namespace file
{
-//------------------------------------------------------------------------------
+
using namespace dbtools;
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
@@ -52,7 +52,7 @@ using namespace com::sun::star::sdbcx;
using namespace com::sun::star::container;
DBG_NAME( file_OStatement_Base )
-//------------------------------------------------------------------------------
+
OStatement_Base::OStatement_Base(OConnection* _pConnection )
:OStatement_BASE(m_aMutex)
,::comphelper::OPropertyContainer(OStatement_BASE::rBHelper)
@@ -92,7 +92,7 @@ OStatement_Base::OStatement_Base(OConnection* _pConnection )
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_RESULTSETCONCURRENCY), PROPERTY_ID_RESULTSETCONCURRENCY, nAttrib,&m_nResultSetConcurrency, ::getCppuType(static_cast<sal_Int32*>(0)));
}
-// -----------------------------------------------------------------------------
+
OStatement_Base::~OStatement_Base()
{
osl_atomic_increment( &m_refCount );
@@ -101,7 +101,7 @@ OStatement_Base::~OStatement_Base()
DBG_DTOR( file_OStatement_Base, NULL );
}
-//------------------------------------------------------------------------------
+
void OStatement_BASE2::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -139,24 +139,24 @@ void OStatement_BASE2::disposing()
OStatement_Base::disposing();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::acquire() throw()
{
OStatement_BASE::acquire();
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL OStatement_BASE2::release() throw()
{
relase_ChildImpl();
}
-//-----------------------------------------------------------------------------
+
Any SAL_CALL OStatement_Base::queryInterface( const Type & rType ) throw(RuntimeException)
{
//SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::queryInterface" );
const Any aRet = OStatement_BASE::queryInterface(rType);
return aRet.hasValue() ? aRet : OPropertySetHelper::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OStatement_Base::getTypes( ) throw(RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::getTypes" );
@@ -166,13 +166,13 @@ Sequence< Type > SAL_CALL OStatement_Base::getTypes( ) throw(RuntimeException)
return ::comphelper::concatSequences(aTypes.getTypes(),OStatement_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::cancel( ) throw(RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::cancel" );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::close( ) throw(SQLException, RuntimeException)
{
@@ -183,7 +183,7 @@ void SAL_CALL OStatement_Base::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// -------------------------------------------------------------------------
+
void OStatement_Base::reset() throw (SQLException)
{
@@ -195,7 +195,7 @@ void OStatement_Base::reset() throw (SQLException)
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OStatement_Base::getWarnings( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::getWarnings" );
@@ -204,7 +204,7 @@ Any SAL_CALL OStatement_Base::getWarnings( ) throw(SQLException, RuntimeExcepti
return makeAny(m_aLastWarning);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::clearWarnings( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::clearWarnings" );
@@ -213,7 +213,7 @@ void SAL_CALL OStatement_Base::clearWarnings( ) throw(SQLException, RuntimeExce
m_aLastWarning = SQLWarning();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OStatement_Base::createArrayHelper( ) const
{
//SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::createArrayHelper" );
@@ -222,31 +222,31 @@ void SAL_CALL OStatement_Base::clearWarnings( ) throw(SQLException, RuntimeExce
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OStatement_Base::getInfoHelper()
{
//SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::getInfoHelper" );
return *const_cast<OStatement_Base*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
OResultSet* OStatement::createResultSet()
{
return new OResultSet(this,m_aSQLIterator);
}
-// -------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbc.driver.file.Statement","com.sun.star.sdbc.Statement");
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement::acquire() throw()
{
OStatement_BASE2::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement::release() throw()
{
OStatement_BASE2::release();
}
-// -----------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
sal_Bool SAL_CALL OStatement::execute( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -256,7 +256,7 @@ sal_Bool SAL_CALL OStatement::execute( const OUString& sql ) throw(SQLException,
return m_aSQLIterator.getStatementType() == SQL_STATEMENT_SELECT;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OStatement::executeQuery( const OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -273,12 +273,12 @@ Reference< XResultSet > SAL_CALL OStatement::executeQuery( const OUString& sql )
return xRS;
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OStatement::getConnection( ) throw(SQLException, RuntimeException)
{
return (Reference< XConnection >)m_pConnection;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OStatement::executeUpdate( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -294,7 +294,7 @@ sal_Int32 SAL_CALL OStatement::executeUpdate( const OUString& sql ) throw(SQLExc
return pResult->getRowCountResult();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::disposing(void)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::disposing" );
@@ -306,25 +306,25 @@ void SAL_CALL OStatement_Base::disposing(void)
delete m_pEvaluationKeySet;
OStatement_BASE::disposing();
}
-// -----------------------------------------------------------------------------
+
Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OStatement_Base::getPropertySetInfo( ) throw(RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::getPropertySetInfo" );
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OStatement_XStatement::queryInterface( rType);
return aRet.hasValue() ? aRet : OStatement_BASE2::queryInterface( rType);
}
-// -----------------------------------------------------------------------------
+
OSQLAnalyzer* OStatement_Base::createAnalyzer()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::createAnalyzer" );
return new OSQLAnalyzer(m_pConnection);
}
-// -----------------------------------------------------------------------------
+
void OStatement_Base::anylizeSQL()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::anylizeSQL" );
@@ -355,7 +355,7 @@ void OStatement_Base::anylizeSQL()
}
}
}
-//------------------------------------------------------------------
+
void OStatement_Base::setOrderbyColumn( OSQLParseNode* pColumnRef,
OSQLParseNode* pAscendingDescending)
{
@@ -388,7 +388,7 @@ void OStatement_Base::setOrderbyColumn( OSQLParseNode* pColumnRef,
m_aOrderbyAscending.push_back((SQL_ISTOKEN(pAscendingDescending,DESC)) ? SQL_DESC : SQL_ASC);
}
-// -----------------------------------------------------------------------------
+
void OStatement_Base::construct(const OUString& sql) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::construct" );
@@ -467,7 +467,7 @@ void OStatement_Base::construct(const OUString& sql) throw(SQLException, Runtim
else
throw SQLException(aErr,*this,OUString(),0,Any());
}
-// -----------------------------------------------------------------------------
+
void OStatement_Base::createColumnMapping()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::createColumnMapping" );
@@ -481,7 +481,7 @@ void OStatement_Base::createColumnMapping()
// now check which columns are bound
OResultSet::setBoundedColumns(m_aRow,m_aSelectRow,xColumns,xNames,sal_True,m_xDBMetaData,m_aColMapping);
}
-// -----------------------------------------------------------------------------
+
void OStatement_Base::initializeResultSet(OResultSet* _pResult)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::initializeResultSet" );
@@ -500,7 +500,7 @@ void OStatement_Base::initializeResultSet(OResultSet* _pResult)
m_pEvaluationKeySet = m_pSQLAnalyzer->bindEvaluationRow(m_aEvaluateRow); // Set values in the code of the Compiler
_pResult->setEvaluationKeySet(m_pEvaluationKeySet);
}
-// -----------------------------------------------------------------------------
+
void OStatement_Base::GetAssignValues()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::GetAssignValues" );
@@ -648,7 +648,7 @@ void OStatement_Base::GetAssignValues()
}
}
-// -------------------------------------------------------------------------
+
void OStatement_Base::ParseAssignValues(const ::std::vector< OUString>& aColumnNameList,OSQLParseNode* pRow_Value_Constructor_Elem, sal_Int32 nIndex)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::ParseAssignValues" );
@@ -676,7 +676,7 @@ void OStatement_Base::ParseAssignValues(const ::std::vector< OUString>& aColumnN
throwFunctionSequenceException(*this);
}
}
-//------------------------------------------------------------------
+
void OStatement_Base::SetAssignValue(const OUString& aColumnName,
const OUString& aValue,
sal_Bool bSetNull,
@@ -742,7 +742,7 @@ void OStatement_Base::SetAssignValue(const OUString& aColumnName,
if(nParameter != SQL_NO_PARAMETER)
m_aParameterIndexes[nParameter] = nId;
}
-// -----------------------------------------------------------------------------
+
void OStatement_Base::parseParamterElem(const OUString& /*_sColumnName*/,OSQLParseNode* /*pRow_Value_Constructor_Elem*/)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OStatement_Base::parseParamterElem" );
@@ -752,6 +752,6 @@ void OStatement_Base::parseParamterElem(const OUString& /*_sColumnName*/,OSQLPar
} // namespace file
// =============================================================================
}// namespace connectivity
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/file/FStringFunctions.cxx b/connectivity/source/drivers/file/FStringFunctions.cxx
index a5cf7ce486ce..9459545669ab 100644
--- a/connectivity/source/drivers/file/FStringFunctions.cxx
+++ b/connectivity/source/drivers/file/FStringFunctions.cxx
@@ -23,7 +23,7 @@
using namespace connectivity;
using namespace connectivity::file;
-//------------------------------------------------------------------
+
ORowSetValue OOp_Upper::operate(const ORowSetValue& lhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_Upper::operate" );
@@ -32,7 +32,7 @@ ORowSetValue OOp_Upper::operate(const ORowSetValue& lhs) const
return lhs.getString().toAsciiUpperCase();
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Lower::operate(const ORowSetValue& lhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_Lower::operate" );
@@ -41,7 +41,7 @@ ORowSetValue OOp_Lower::operate(const ORowSetValue& lhs) const
return lhs.getString().toAsciiLowerCase();
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Ascii::operate(const ORowSetValue& lhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_Ascii::operate" );
@@ -51,7 +51,7 @@ ORowSetValue OOp_Ascii::operate(const ORowSetValue& lhs) const
sal_Int32 nAscii = sStr.toChar();
return nAscii;
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_CharLength::operate(const ORowSetValue& lhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_CharLength::operate" );
@@ -60,7 +60,7 @@ ORowSetValue OOp_CharLength::operate(const ORowSetValue& lhs) const
return lhs.getString().getLength();
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Char::operate(const ::std::vector<ORowSetValue>& lhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_Char::operate" );
@@ -82,7 +82,7 @@ ORowSetValue OOp_Char::operate(const ::std::vector<ORowSetValue>& lhs) const
return sRet;
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Concat::operate(const ::std::vector<ORowSetValue>& lhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_Concat::operate" );
@@ -102,7 +102,7 @@ ORowSetValue OOp_Concat::operate(const ::std::vector<ORowSetValue>& lhs) const
return sRet.makeStringAndClear();
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Locate::operate(const ::std::vector<ORowSetValue>& lhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_Locate::operate" );
@@ -121,7 +121,7 @@ ORowSetValue OOp_Locate::operate(const ::std::vector<ORowSetValue>& lhs) const
return lhs[1].getString().indexOf(lhs[2].getString(),lhs[0]) + 1;
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_SubString::operate(const ::std::vector<ORowSetValue>& lhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_SubString::operate" );
@@ -140,7 +140,7 @@ ORowSetValue OOp_SubString::operate(const ::std::vector<ORowSetValue>& lhs) cons
return lhs[2].getString().copy(static_cast<sal_Int32>(lhs[1])-1,lhs[0]);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_LTrim::operate(const ORowSetValue& lhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_LTrim::operate" );
@@ -151,7 +151,7 @@ ORowSetValue OOp_LTrim::operate(const ORowSetValue& lhs) const
OUString sNew = sRet.trim();
return sRet.copy(sRet.indexOf(sNew));
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_RTrim::operate(const ORowSetValue& lhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_RTrim::operate" );
@@ -162,7 +162,7 @@ ORowSetValue OOp_RTrim::operate(const ORowSetValue& lhs) const
OUString sNew = sRet.trim();
return sRet.copy(0,sRet.lastIndexOf(sNew[sNew.getLength()-1])+1);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Space::operate(const ORowSetValue& lhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_Space::operate" );
@@ -178,7 +178,7 @@ ORowSetValue OOp_Space::operate(const ORowSetValue& lhs) const
}
return sRet.makeStringAndClear();
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Replace::operate(const ::std::vector<ORowSetValue>& lhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_Replace::operate" );
@@ -197,7 +197,7 @@ ORowSetValue OOp_Replace::operate(const ::std::vector<ORowSetValue>& lhs) const
return sStr;
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Repeat::operate(const ORowSetValue& lhs,const ORowSetValue& rhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_Repeat::operate" );
@@ -212,7 +212,7 @@ ORowSetValue OOp_Repeat::operate(const ORowSetValue& lhs,const ORowSetValue& rhs
}
return sRet;
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Insert::operate(const ::std::vector<ORowSetValue>& lhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_Insert::operate" );
@@ -226,7 +226,7 @@ ORowSetValue OOp_Insert::operate(const ::std::vector<ORowSetValue>& lhs) const
nStart = 1;
return sStr.replaceAt(nStart-1,static_cast<sal_Int32>(lhs[1]),lhs[0]);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Left::operate(const ORowSetValue& lhs,const ORowSetValue& rhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_Left::operate" );
@@ -239,7 +239,7 @@ ORowSetValue OOp_Left::operate(const ORowSetValue& lhs,const ORowSetValue& rhs)
return ORowSetValue();
return sRet.copy(0,nCount);
}
-//------------------------------------------------------------------
+
ORowSetValue OOp_Right::operate(const ORowSetValue& lhs,const ORowSetValue& rhs) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_Right::operate" );
diff --git a/connectivity/source/drivers/file/FTable.cxx b/connectivity/source/drivers/file/FTable.cxx
index 7996bb678133..f687fd4ea625 100644
--- a/connectivity/source/drivers/file/FTable.cxx
+++ b/connectivity/source/drivers/file/FTable.cxx
@@ -52,7 +52,7 @@ OFileTable::OFileTable(sdbcx::OCollection* _pTables,OConnection* _pConnection)
construct();
m_aColumns = new OSQLColumns();
}
-// -------------------------------------------------------------------------
+
OFileTable::OFileTable( sdbcx::OCollection* _pTables,OConnection* _pConnection,
const OUString& _Name,
const OUString& _Type,
@@ -78,12 +78,12 @@ OFileTable::OFileTable( sdbcx::OCollection* _pTables,OConnection* _pConnection,
construct();
// refreshColumns();
}
-// -------------------------------------------------------------------------
+
OFileTable::~OFileTable( )
{
DBG_DTOR( file_OFileTable, NULL );
}
-// -------------------------------------------------------------------------
+
void OFileTable::refreshColumns()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::refreshColumns" );
@@ -103,17 +103,17 @@ void OFileTable::refreshColumns()
else
m_pColumns = new OColumns(this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
void OFileTable::refreshKeys()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::refreshKeys" );
}
-// -------------------------------------------------------------------------
+
void OFileTable::refreshIndexes()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::refreshIndexes" );
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OFileTable::queryInterface( const Type & rType ) throw(RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::queryInterface" );
@@ -126,7 +126,7 @@ Any SAL_CALL OFileTable::queryInterface( const Type & rType ) throw(RuntimeExcep
return OTable_TYPEDEF::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OFileTable::disposing(void)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::disposing" );
@@ -136,7 +136,7 @@ void SAL_CALL OFileTable::disposing(void)
FileClose();
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > OFileTable::getUnoTunnelImplementationId()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::getUnoTunnelImplementationId" );
@@ -154,7 +154,7 @@ Sequence< sal_Int8 > OFileTable::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OFileTable::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::getSomething" );
@@ -162,7 +162,7 @@ sal_Int64 OFileTable::getSomething( const Sequence< sal_Int8 > & rId ) throw (Ru
? reinterpret_cast< sal_Int64 >( this )
: OTable_TYPEDEF::getSomething(rId);
}
-// -----------------------------------------------------------------------------
+
void OFileTable::FileClose()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::FileClose" );
@@ -180,48 +180,48 @@ void OFileTable::FileClose()
m_pBuffer = NULL;
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OFileTable::acquire() throw()
{
OTable_TYPEDEF::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OFileTable::release() throw()
{
OTable_TYPEDEF::release();
}
-// -----------------------------------------------------------------------------
+
sal_Bool OFileTable::InsertRow(OValueRefVector& /*rRow*/, sal_Bool /*bFlush*/,const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess>& /*_xCols*/)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::InsertRow" );
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OFileTable::DeleteRow(const OSQLColumns& /*_rCols*/)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::DeleteRow" );
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OFileTable::UpdateRow(OValueRefVector& /*rRow*/, OValueRefRow& /*pOrgRow*/,const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess>& /*_xCols*/)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::UpdateRow" );
return sal_False;
}
-// -----------------------------------------------------------------------------
+
void OFileTable::addColumn(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& /*descriptor*/)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::addColumn" );
OSL_FAIL( "OFileTable::addColumn: not implemented!" );
}
-// -----------------------------------------------------------------------------
+
void OFileTable::dropColumn(sal_Int32 /*_nPos*/)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::dropColumn" );
OSL_FAIL( "OFileTable::addColumn: not implemented!" );
}
-// -----------------------------------------------------------------------------
+
SvStream* OFileTable::createStream_simpleError( const OUString& _rFileName, StreamMode _eOpenMode)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::createStream_simpleError" );
@@ -235,11 +235,11 @@ SvStream* OFileTable::createStream_simpleError( const OUString& _rFileName, Stre
return pReturn;
}
-// -----------------------------------------------------------------------------
+
void OFileTable::refreshHeader()
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OFileTable::refreshHeader" );
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/file/FTables.cxx b/connectivity/source/drivers/file/FTables.cxx
index cba822e2bb0f..6b3f78251a3b 100644
--- a/connectivity/source/drivers/file/FTables.cxx
+++ b/connectivity/source/drivers/file/FTables.cxx
@@ -39,18 +39,18 @@ sdbcx::ObjectType OTables::createObject(const OUString& /*_rName*/)
{
return sdbcx::ObjectType();
}
-// -------------------------------------------------------------------------
+
void OTables::impl_refresh( ) throw(RuntimeException)
{
static_cast<OFileCatalog&>(m_rParent).refreshTables();
}
-// -------------------------------------------------------------------------
+
void OTables::disposing(void)
{
m_xMetaData.clear();
OCollection::disposing();
}
-//------------------------------------------------------------------
+
Any SAL_CALL OTables::queryInterface( const Type & rType ) throw(RuntimeException)
{
if( rType == ::getCppuType((const Reference<XColumnLocate>*)0) ||
@@ -62,6 +62,6 @@ Any SAL_CALL OTables::queryInterface( const Type & rType ) throw(RuntimeExceptio
typedef sdbcx::OCollection OTables_BASE;
return OTables_BASE::queryInterface(rType);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/file/fanalyzer.cxx b/connectivity/source/drivers/file/fanalyzer.cxx
index d125c1eb5c9b..5c82068a0642 100644
--- a/connectivity/source/drivers/file/fanalyzer.cxx
+++ b/connectivity/source/drivers/file/fanalyzer.cxx
@@ -35,7 +35,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
DBG_NAME( file_OSQLAnalyzer )
-//------------------------------------------------------------------
+
OSQLAnalyzer::OSQLAnalyzer(OConnection* _pConnection)
:m_pConnection(_pConnection)
,m_bHasSelectionCode(sal_False)
@@ -46,18 +46,18 @@ OSQLAnalyzer::OSQLAnalyzer(OConnection* _pConnection)
m_aInterpreter = new OPredicateInterpreter(m_aCompiler);
}
-// -----------------------------------------------------------------------------
+
OSQLAnalyzer::~OSQLAnalyzer()
{
DBG_DTOR( file_OSQLAnalyzer, NULL );
}
-// -----------------------------------------------------------------------------
+
void OSQLAnalyzer::setIndexes(const Reference< XNameAccess>& _xIndexes)
{
m_aCompiler->m_xIndexes = _xIndexes;
}
-//------------------------------------------------------------------
+
void OSQLAnalyzer::start(OSQLParseNode* pSQLParseNode)
{
if (SQL_ISRULE(pSQLParseNode,select_statement))
@@ -120,7 +120,7 @@ void OSQLAnalyzer::start(OSQLParseNode* pSQLParseNode)
m_aCompiler->start(pSQLParseNode);
}
-//------------------------------------------------------------------
+
void OSQLAnalyzer::bindRow(OCodeList& rCodeList,const OValueRefRow& _pRow,OEvaluateSetList& _rEvaluateSetList)
{
// count criteria
@@ -153,7 +153,7 @@ void OSQLAnalyzer::bindRow(OCodeList& rCodeList,const OValueRefRow& _pRow,OEvalu
}
}
}
-//------------------------------------------------------------------
+
void OSQLAnalyzer::bindSelectRow(const OValueRefRow& _pRow)
{
// first the select part
@@ -164,7 +164,7 @@ void OSQLAnalyzer::bindSelectRow(const OValueRefRow& _pRow)
bindRow( aIter->first->m_aCodeList,_pRow,aEvaluateSetList);
}
}
-//------------------------------------------------------------------
+
::std::vector<sal_Int32>* OSQLAnalyzer::bindEvaluationRow(OValueRefRow& _pRow)
{
OEvaluateSetList aEvaluateSetList;
@@ -203,19 +203,19 @@ void OSQLAnalyzer::bindSelectRow(const OValueRefRow& _pRow)
return pKeySet;
}
-// -----------------------------------------------------------------------------
+
OOperandAttr* OSQLAnalyzer::createOperandAttr(sal_Int32 _nPos,
const Reference< XPropertySet>& _xCol,
const Reference< XNameAccess>& /*_xIndexes*/)
{
return new OOperandAttr(static_cast<sal_uInt16>(_nPos),_xCol);
}
-// -----------------------------------------------------------------------------
+
sal_Bool OSQLAnalyzer::hasRestriction() const
{
return m_aCompiler->hasCode();
}
-// -----------------------------------------------------------------------------
+
sal_Bool OSQLAnalyzer::hasFunctions() const
{
if ( m_bSelectionFirstTime )
@@ -229,7 +229,7 @@ sal_Bool OSQLAnalyzer::hasFunctions() const
}
return m_bHasSelectionCode;
}
-// -----------------------------------------------------------------------------
+
void OSQLAnalyzer::setSelectionEvaluationResult(OValueRefRow& _pRow,const ::std::vector<sal_Int32>& _rColumnMapping)
{
sal_Int32 nPos = 1;
@@ -246,7 +246,7 @@ void OSQLAnalyzer::setSelectionEvaluationResult(OValueRefRow& _pRow,const ::std:
}
}
}
-// -----------------------------------------------------------------------------
+
void OSQLAnalyzer::dispose()
{
m_aCompiler->dispose();
@@ -256,7 +256,7 @@ void OSQLAnalyzer::dispose()
aIter->first->dispose();
}
}
-// -----------------------------------------------------------------------------
+
void OSQLAnalyzer::setOrigColumns(const OFileColumns& rCols)
{
m_aCompiler->setOrigColumns(rCols);
@@ -266,6 +266,6 @@ void OSQLAnalyzer::setOrigColumns(const OFileColumns& rCols)
aIter->first->setOrigColumns(rCols);
}
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/file/fcode.cxx b/connectivity/source/drivers/file/fcode.cxx
index ba787a7cc8e4..9ce2d509a166 100644
--- a/connectivity/source/drivers/file/fcode.cxx
+++ b/connectivity/source/drivers/file/fcode.cxx
@@ -57,29 +57,29 @@ TYPEINIT1(ONthOperator, OOperator);
TYPEINIT1(OBinaryOperator, OOperator);
TYPEINIT1(OUnaryOperator, OOperator);
-//------------------------------------------------------------------
+
DBG_NAME(OCode )
OCode::OCode()
{
DBG_CTOR(OCode ,NULL);
}
-// -----------------------------------------------------------------------------
+
OCode::~OCode()
{
DBG_DTOR(OCode,NULL);
}
-//------------------------------------------------------------------
+
OEvaluateSet* OOperand::preProcess(OBoolOperator* /*pOp*/, OOperand* /*pRight*/)
{
return NULL;
}
-// -----------------------------------------------------------------------------
+
OOperandRow::OOperandRow(sal_uInt16 _nPos, sal_Int32 _rType)
: OOperand(_rType)
, m_nRowPos(_nPos)
{}
-//------------------------------------------------------------------
+
void OOperandRow::bindValue(const OValueRefRow& _pRow)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOperandRow::OOperandRow" );
@@ -88,14 +88,14 @@ void OOperandRow::bindValue(const OValueRefRow& _pRow)
OSL_ENSURE(m_pRow.is() && m_nRowPos < m_pRow->get().size(),"Invalid RowPos is >= vector.size()");
(m_pRow->get())[m_nRowPos]->setBound(true);
}
-// -----------------------------------------------------------------------------
+
void OOperandRow::setValue(const ORowSetValue& _rVal)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOperandRow::setValue" );
OSL_ENSURE(m_pRow.is() && m_nRowPos < m_pRow->get().size(),"Invalid RowPos is >= vector.size()");
(*(m_pRow->get())[m_nRowPos]) = _rVal;
}
-//------------------------------------------------------------------
+
const ORowSetValue& OOperandRow::getValue() const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOperandRow::getValue" );
@@ -103,18 +103,18 @@ const ORowSetValue& OOperandRow::getValue() const
return (m_pRow->get())[m_nRowPos]->getValue();
}
-// -----------------------------------------------------------------------------
+
void OOperandValue::setValue(const ORowSetValue& _rVal)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOperandValue::setValue" );
m_aValue = _rVal;
}
-// -------------------------------------------------------------------------
+
sal_Bool OOperandAttr::isIndexed() const
{
return sal_False;
}
-//------------------------------------------------------------------
+
OOperandParam::OOperandParam(OSQLParseNode* pNode, sal_Int32 _nPos)
: OOperandRow(static_cast<sal_uInt16>(_nPos), DataType::VARCHAR) // Standard-Type
{
@@ -144,14 +144,14 @@ OOperandParam::OOperandParam(OSQLParseNode* pNode, sal_Int32 _nPos)
}
-//------------------------------------------------------------------
+
const ORowSetValue& OOperandValue::getValue() const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOperandValue::getValue" );
return m_aValue;
}
-//------------------------------------------------------------------
+
OOperandConst::OOperandConst(const OSQLParseNode& rColumnRef, const OUString& aStrValue)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOperandConst::OOperandConst" );
@@ -192,10 +192,10 @@ OOperandConst::OOperandConst(const OSQLParseNode& rColumnRef, const OUString& aS
/////////////////////////////////////////////////////////////////////////////////////////
// Implementation of the operators
-//------------------------------------------------------------------
+
sal_uInt16 OOperator::getRequestedOperands() const {return 2;}
-//------------------------------------------------------------------
+
sal_Bool OBoolOperator::operate(const OOperand*, const OOperand*) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OBoolOperator::operate" );
@@ -203,7 +203,7 @@ sal_Bool OBoolOperator::operate(const OOperand*, const OOperand*) const
}
-//------------------------------------------------------------------
+
void OBoolOperator::Exec(OCodeStack& rCodeStack)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OBoolOperator::Exec" );
@@ -218,13 +218,13 @@ void OBoolOperator::Exec(OCodeStack& rCodeStack)
if (IS_TYPE(OOperandResult,pRight))
delete pRight;
}
-//------------------------------------------------------------------
+
sal_Bool OOp_NOT::operate(const OOperand* pLeft, const OOperand* ) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_AND::operate" );
return !pLeft->isValid();
}
-//------------------------------------------------------------------
+
void OOp_NOT::Exec(OCodeStack& rCodeStack)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_ISNULL::Exec" );
@@ -235,35 +235,35 @@ void OOp_NOT::Exec(OCodeStack& rCodeStack)
if (IS_TYPE(OOperandResult,pOperand))
delete pOperand;
}
-//------------------------------------------------------------------
+
sal_uInt16 OOp_NOT::getRequestedOperands() const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_NOT::getRequestedOperands" );
return 1;
}
-//------------------------------------------------------------------
+
sal_Bool OOp_AND::operate(const OOperand* pLeft, const OOperand* pRight) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_AND::operate" );
return pLeft->isValid() && pRight->isValid();
}
-//------------------------------------------------------------------
+
sal_Bool OOp_OR::operate(const OOperand* pLeft, const OOperand* pRight) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_OR::operate" );
return pLeft->isValid() || pRight->isValid();
}
-//------------------------------------------------------------------
+
sal_uInt16 OOp_ISNULL::getRequestedOperands() const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_ISNULL::getRequestedOperands" );
return 1;
}
-//------------------------------------------------------------------
+
void OOp_ISNULL::Exec(OCodeStack& rCodeStack)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_ISNULL::Exec" );
@@ -275,20 +275,20 @@ void OOp_ISNULL::Exec(OCodeStack& rCodeStack)
delete pOperand;
}
-//------------------------------------------------------------------
+
sal_Bool OOp_ISNULL::operate(const OOperand* pOperand, const OOperand*) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_ISNULL::operate" );
return pOperand->getValue().isNull();
}
-//------------------------------------------------------------------
+
sal_Bool OOp_ISNOTNULL::operate(const OOperand* pOperand, const OOperand*) const
{
return !OOp_ISNULL::operate(pOperand);
}
-//------------------------------------------------------------------
+
sal_Bool OOp_LIKE::operate(const OOperand* pLeft, const OOperand* pRight) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_ISNULL::operate" );
@@ -305,14 +305,14 @@ sal_Bool OOp_LIKE::operate(const OOperand* pLeft, const OOperand* pRight) const
return bMatch;
}
-//------------------------------------------------------------------
+
sal_Bool OOp_NOTLIKE::operate(const OOperand* pLeft, const OOperand* pRight) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_NOTLIKE::operate" );
return !OOp_LIKE::operate(pLeft, pRight);
}
-//------------------------------------------------------------------
+
sal_Bool OOp_COMPARE::operate(const OOperand* pLeft, const OOperand* pRight) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_COMPARE::operate" );
@@ -383,7 +383,7 @@ sal_Bool OOp_COMPARE::operate(const OOperand* pLeft, const OOperand* pRight) con
return bResult;
}
-//------------------------------------------------------------------
+
void ONumOperator::Exec(OCodeStack& rCodeStack)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ONumOperator::Exec" );
@@ -399,40 +399,40 @@ void ONumOperator::Exec(OCodeStack& rCodeStack)
if (IS_TYPE(OOperandResult,pRight))
delete pRight;
}
-//------------------------------------------------------------------
+
double OOp_ADD::operate(const double& fLeft,const double& fRight) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_ADD::operate" );
return fLeft + fRight;
}
-//------------------------------------------------------------------
+
double OOp_SUB::operate(const double& fLeft,const double& fRight) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_SUB::operate" );
return fLeft - fRight;
}
-//------------------------------------------------------------------
+
double OOp_MUL::operate(const double& fLeft,const double& fRight) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_MUL::operate" );
return fLeft * fRight;
}
-//------------------------------------------------------------------
+
double OOp_DIV::operate(const double& fLeft,const double& fRight) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOp_DIV::operate" );
return fLeft / fRight;
}
-// -----------------------------------------------------------------------------
+
OEvaluateSet* OOperandAttr::preProcess(OBoolOperator* /*pOp*/, OOperand* /*pRight*/)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OOperandAttr::preProcess" );
return NULL;
}
-//------------------------------------------------------------------
+
void ONthOperator::Exec(OCodeStack& rCodeStack)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com ONthOperator::Exec" );
@@ -460,7 +460,7 @@ void ONthOperator::Exec(OCodeStack& rCodeStack)
delete *aIter;
}
}
-//------------------------------------------------------------------
+
void OBinaryOperator::Exec(OCodeStack& rCodeStack)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OBinaryOperator::Exec" );
@@ -478,7 +478,7 @@ void OBinaryOperator::Exec(OCodeStack& rCodeStack)
if (IS_TYPE(OOperandResult,pLeft))
delete pLeft;
}
-//------------------------------------------------------------------
+
void OUnaryOperator::Exec(OCodeStack& rCodeStack)
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com OUnaryOperator::Exec" );
@@ -490,7 +490,7 @@ void OUnaryOperator::Exec(OCodeStack& rCodeStack)
if (IS_TYPE(OOperandResult,pOperand))
delete pOperand;
}
-// -----------------------------------------------------------------------------
+
sal_uInt16 OUnaryOperator::getRequestedOperands() const {return 1;}
diff --git a/connectivity/source/drivers/file/fcomp.cxx b/connectivity/source/drivers/file/fcomp.cxx
index 5b395aebcbe2..d48adc806dbb 100644
--- a/connectivity/source/drivers/file/fcomp.cxx
+++ b/connectivity/source/drivers/file/fcomp.cxx
@@ -44,7 +44,7 @@ using namespace ::com::sun::star::container;
using namespace com::sun::star;
DBG_NAME(OPredicateCompiler)
-//------------------------------------------------------------------
+
OPredicateCompiler::OPredicateCompiler(OSQLAnalyzer* pAnalyzer)//,OCursor& rCurs)
: m_pAnalyzer(pAnalyzer)
, m_nParamCounter(0)
@@ -53,13 +53,13 @@ OPredicateCompiler::OPredicateCompiler(OSQLAnalyzer* pAnalyzer)//,OCursor& rCurs
DBG_CTOR(OPredicateCompiler,NULL);
}
-//------------------------------------------------------------------
+
OPredicateCompiler::~OPredicateCompiler()
{
Clean();
DBG_DTOR(OPredicateCompiler,NULL);
}
-// -----------------------------------------------------------------------------
+
void OPredicateCompiler::dispose()
{
Clean();
@@ -137,7 +137,7 @@ void OPredicateCompiler::start(OSQLParseNode* pSQLParseNode)
}
}
-//------------------------------------------------------------------
+
OOperand* OPredicateCompiler::execute(OSQLParseNode* pPredicateNode)
{
OOperand* pOperand = NULL;
@@ -223,7 +223,7 @@ OOperand* OPredicateCompiler::execute(OSQLParseNode* pPredicateNode)
return pOperand;
}
-//------------------------------------------------------------------
+
OOperand* OPredicateCompiler::execute_COMPARE(OSQLParseNode* pPredicateNode) throw(SQLException, RuntimeException)
{
DBG_ASSERT(pPredicateNode->count() == 3,"OFILECursor: Fehler im Parse Tree");
@@ -271,7 +271,7 @@ OOperand* OPredicateCompiler::execute_COMPARE(OSQLParseNode* pPredicateNode) th
return NULL;
}
-//------------------------------------------------------------------
+
OOperand* OPredicateCompiler::execute_LIKE(OSQLParseNode* pPredicateNode) throw(SQLException, RuntimeException)
{
DBG_ASSERT(pPredicateNode->count() == 2,"OFILECursor: Fehler im Parse Tree");
@@ -321,7 +321,7 @@ OOperand* OPredicateCompiler::execute_LIKE(OSQLParseNode* pPredicateNode) throw(
return NULL;
}
-//------------------------------------------------------------------
+
OOperand* OPredicateCompiler::execute_BETWEEN(OSQLParseNode* pPredicateNode) throw(SQLException, RuntimeException)
{
DBG_ASSERT(pPredicateNode->count() == 2,"OFILECursor: Fehler im Parse Tree");
@@ -401,7 +401,7 @@ OOperand* OPredicateCompiler::execute_BETWEEN(OSQLParseNode* pPredicateNode) thr
return NULL;
}
-//------------------------------------------------------------------
+
OOperand* OPredicateCompiler::execute_ISNULL(OSQLParseNode* pPredicateNode) throw(SQLException, RuntimeException)
{
DBG_ASSERT(pPredicateNode->count() == 2,"OFILECursor: Fehler im Parse Tree");
@@ -421,7 +421,7 @@ OOperand* OPredicateCompiler::execute_ISNULL(OSQLParseNode* pPredicateNode) thro
return NULL;
}
-//------------------------------------------------------------------
+
OOperand* OPredicateCompiler::execute_Operand(OSQLParseNode* pPredicateNode) throw(SQLException, RuntimeException)
{
OOperand* pOperand = NULL;
@@ -575,7 +575,7 @@ sal_Bool OPredicateInterpreter::evaluate(OCodeList& rCodeList)
delete pOperand;
return bResult;
}
-// -----------------------------------------------------------------------------
+
void OPredicateInterpreter::evaluateSelection(OCodeList& rCodeList,ORowSetValueDecoratorRef& _rVal)
{
OCodeList::iterator aIter = rCodeList.begin();
@@ -601,7 +601,7 @@ void OPredicateInterpreter::evaluateSelection(OCodeList& rCodeList,ORowSetValueD
if (IS_TYPE(OOperandResult,pOperand))
delete pOperand;
}
-// -----------------------------------------------------------------------------
+
OOperand* OPredicateCompiler::execute_Fold(OSQLParseNode* pPredicateNode) throw(SQLException, RuntimeException)
{
DBG_ASSERT(pPredicateNode->count() >= 4,"OFILECursor: Fehler im Parse Tree");
@@ -618,7 +618,7 @@ OOperand* OPredicateCompiler::execute_Fold(OSQLParseNode* pPredicateNode) thro
m_aCodeList.push_back(pOperator);
return NULL;
}
-// -----------------------------------------------------------------------------
+
OOperand* OPredicateCompiler::executeFunction(OSQLParseNode* pPredicateNode) throw(SQLException, RuntimeException)
{
OOperator* pOperator = NULL;
@@ -906,7 +906,7 @@ OOperand* OPredicateCompiler::executeFunction(OSQLParseNode* pPredicateNode)
m_aCodeList.push_back(pOperator);
return NULL;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/file/quotedstring.cxx b/connectivity/source/drivers/file/quotedstring.cxx
index 5cbe815f9e76..84b4f9fbe8c3 100644
--- a/connectivity/source/drivers/file/quotedstring.cxx
+++ b/connectivity/source/drivers/file/quotedstring.cxx
@@ -25,7 +25,7 @@ namespace connectivity
//==================================================================
//= QuotedTokenizedString
//==================================================================
- //------------------------------------------------------------------
+
sal_Int32 QuotedTokenizedString::GetTokenCount( sal_Unicode cTok, sal_Unicode cStrDel ) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com QuotedTokenizedString::GetTokenCount" );
@@ -84,7 +84,7 @@ namespace connectivity
return nTokCount;
}
- //------------------------------------------------------------------
+
OUString QuotedTokenizedString::GetTokenSpecial(sal_Int32& nStartPos, sal_Unicode cTok, sal_Unicode cStrDel) const
{
SAL_INFO( "connectivity.drivers", "file Ocke.Janssen@sun.com QuotedTokenizedString::GetTokenCount" );
diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx
index ce5ef145cddf..41680747f0be 100644
--- a/connectivity/source/drivers/firebird/Connection.cxx
+++ b/connectivity/source/drivers/firebird/Connection.cxx
@@ -548,7 +548,7 @@ sal_Bool SAL_CALL Connection::isClosed( ) throw(SQLException, RuntimeException)
// just simple -> we are close when we are disposed taht means someone called dispose(); (XComponent)
return Connection_BASE::rBHelper.bDisposed;
}
-// --------------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL Connection::getMetaData( ) throw(SQLException, RuntimeException)
{
MutexGuard aGuard( m_aMutex );
@@ -640,19 +640,19 @@ void SAL_CALL Connection::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// --------------------------------------------------------------------------------
+
// XWarningsSupplier
Any SAL_CALL Connection::getWarnings( ) throw(SQLException, RuntimeException)
{
// when you collected some warnings -> return it
return Any();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL Connection::clearWarnings( ) throw(SQLException, RuntimeException)
{
// you should clear your collected warnings here
}
-// --------------------------------------------------------------------------------
+
// XDocumentEventListener
void SAL_CALL Connection::documentEventOccured( const DocumentEvent& _Event )
throw(RuntimeException)
@@ -690,7 +690,7 @@ void SAL_CALL Connection::disposing(const EventObject& /*rSource*/)
throw (RuntimeException)
{
}
-//--------------------------------------------------------------------
+
void Connection::buildTypeInfo() throw( SQLException)
{
SAL_INFO("connectivity.firebird", "buildTypeInfo().");
diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
index fbc82ba3d7fb..ef7af338e849 100644
--- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
+++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
@@ -211,14 +211,14 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTableNameLength() throw(SQLException
{
return 31;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTablesInSelect( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException)
{
return sal_False;
@@ -367,24 +367,24 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames()
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( ) throw(SQLException, RuntimeException)
{
OUString aVal;
return aVal;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
return sal_False;
@@ -467,34 +467,34 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation()
return TransactionIsolation::REPEATABLE_READ;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException)
{
return sal_True; // should be supported at least
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatements( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxProcedureNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 31; // TODO: confirm
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException)
{
return sal_False;
@@ -504,7 +504,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures( ) throw(SQLExcep
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException)
{
return m_pConnection->isReadOnly();
@@ -519,12 +519,12 @@ sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFilePerTable( ) throw(SQLExceptio
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException)
{
return sal_False;
@@ -547,17 +547,17 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLExcep
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException)
{
return sal_False;
@@ -572,52 +572,52 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll( ) throw(SQLException, Ru
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException)
{
return sal_False;
@@ -627,118 +627,118 @@ OUString SAL_CALL ODatabaseMetaData::getURL() throw(SQLException, RuntimeExcepti
{
return m_pConnection->getConnectionURL();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getUserName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDriverName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDriverVersion() throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getProcedureTerm( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion( ) throw(RuntimeException)
{
return 1;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSQLKeywords( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getStringFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInOrderBy( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInSelect( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxUserNameLength( ) throw(SQLException, RuntimeException)
{
return 31;
@@ -767,55 +767,55 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency(
else
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
(void) setType;
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
(void) setType;
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
(void) setType;
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
(void) setType;
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
(void) setType;
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
(void) setType;
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
(void) setType;
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
(void) setType;
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
(void) setType;
@@ -834,12 +834,12 @@ uno::Reference< XConnection > SAL_CALL ODatabaseMetaData::getConnection()
{
return (uno::Reference< XConnection >) m_pConnection;
}
-// -------------------------------------------------------------------------
+
// here follow all methods which return a resultset
// the first methods is an example implementation how to use this resultset
// of course you could implement it on your and you should do this because
// the general way is more memory expensive
-// -------------------------------------------------------------------------
+
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException)
{
OSL_FAIL("Not implemented yet!");
@@ -1409,7 +1409,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
return xResultSet;
}
-// -------------------------------------------------------------------------
+
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns(
const Any& catalog, const OUString& schemaPattern,
const OUString& procedureNamePattern, const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
@@ -1423,7 +1423,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns(
// TODO implement
return new ODatabaseMetaDataResultSet(ODatabaseMetaDataResultSet::eProcedureColumns);
}
-// -------------------------------------------------------------------------
+
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures(
const Any& catalog, const OUString& schemaPattern,
const OUString& procedureNamePattern ) throw(SQLException, RuntimeException)
@@ -1436,7 +1436,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures(
// TODO implement
return new ODatabaseMetaDataResultSet(ODatabaseMetaDataResultSet::eProcedures);
}
-// -------------------------------------------------------------------------
+
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
@@ -1448,7 +1448,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns(
// TODO implement
return new ODatabaseMetaDataResultSet(ODatabaseMetaDataResultSet::eVersionColumns);
}
-// -------------------------------------------------------------------------
+
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
@@ -1463,7 +1463,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys(
// TODO implement
return new ODatabaseMetaDataResultSet(ODatabaseMetaDataResultSet::eExportedKeys);
}
-// -------------------------------------------------------------------------
+
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
@@ -1633,7 +1633,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo(
return xResultSet;
}
-// -------------------------------------------------------------------------
+
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getBestRowIdentifier(
const Any& catalog, const OUString& schema, const OUString& table, sal_Int32 scope,
sal_Bool nullable ) throw(SQLException, RuntimeException)
@@ -1715,7 +1715,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
return xResultSet;
}
-// -------------------------------------------------------------------------
+
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference(
const Any& primaryCatalog, const OUString& primarySchema,
const OUString& primaryTable, const Any& foreignCatalog,
@@ -1731,7 +1731,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference(
// TODO implement
return new ODatabaseMetaDataResultSet(ODatabaseMetaDataResultSet::eCrossReference);
}
-// -------------------------------------------------------------------------
+
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& catalog, const OUString& schemaPattern, const OUString& typeNamePattern, const Sequence< sal_Int32 >& types ) throw(SQLException, RuntimeException)
{
(void) catalog;
@@ -1742,7 +1742,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& cat
// TODO implement
return new ODatabaseMetaDataResultSet(ODatabaseMetaDataResultSet::eUDTs);
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx
index cd53fcb2f6f5..1379f8242bd4 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.cxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx
@@ -431,7 +431,7 @@ void SAL_CALL OPreparedStatement::setTimestamp(sal_Int32 nIndex, const DateTime&
setValue< ISC_TIMESTAMP >(nIndex, aISCTimestamp, SQL_TIMESTAMP);
}
-// -------------------------------------------------------------------------
+
// void OPreaparedStatement::set
void OPreparedStatement::openBlobForWriting(isc_blob_handle& rBlobHandle, ISC_QUAD& rBlobId)
@@ -526,7 +526,7 @@ void SAL_CALL OPreparedStatement::setBlob(sal_Int32 nParameterIndex,
setValue< ISC_QUAD >(nParameterIndex, aBlobId, SQL_BLOB);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setArray( sal_Int32 parameterIndex, const Reference< XArray >& x ) throw(SQLException, RuntimeException)
{
@@ -536,7 +536,7 @@ void SAL_CALL OPreparedStatement::setArray( sal_Int32 parameterIndex, const Refe
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setRef( sal_Int32 parameterIndex, const Reference< XRef >& x ) throw(SQLException, RuntimeException)
{
@@ -546,7 +546,7 @@ void SAL_CALL OPreparedStatement::setRef( sal_Int32 parameterIndex, const Refere
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, const Any& x, sal_Int32 sqlType, sal_Int32 scale ) throw(SQLException, RuntimeException)
{
@@ -558,7 +558,7 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, c
::osl::MutexGuard aGuard( m_aMutex );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObjectNull( sal_Int32 parameterIndex, sal_Int32 sqlType, const ::rtl::OUString& typeName ) throw(SQLException, RuntimeException)
{
@@ -569,7 +569,7 @@ void SAL_CALL OPreparedStatement::setObjectNull( sal_Int32 parameterIndex, sal_I
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObject( sal_Int32 parameterIndex, const Any& x ) throw(SQLException, RuntimeException)
{
@@ -623,7 +623,7 @@ void SAL_CALL OPreparedStatement::setBytes(sal_Int32 nParameterIndex,
setValue< ISC_QUAD >(nParameterIndex, aBlobId, SQL_BLOB);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setCharacterStream( sal_Int32 parameterIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
@@ -635,7 +635,7 @@ void SAL_CALL OPreparedStatement::setCharacterStream( sal_Int32 parameterIndex,
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBinaryStream( sal_Int32 parameterIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
@@ -646,7 +646,7 @@ void SAL_CALL OPreparedStatement::setBinaryStream( sal_Int32 parameterIndex, con
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::clearParameters( ) throw(SQLException, RuntimeException)
{
@@ -671,7 +671,7 @@ Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch()
// Unsupported by firebird
return Sequence< sal_Int32 >();
}
-// -------------------------------------------------------------------------
+
void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
{
switch(nHandle)
diff --git a/connectivity/source/drivers/firebird/ResultSet.cxx b/connectivity/source/drivers/firebird/ResultSet.cxx
index a89e4609edd4..7e73cd8748b5 100644
--- a/connectivity/source/drivers/firebird/ResultSet.cxx
+++ b/connectivity/source/drivers/firebird/ResultSet.cxx
@@ -342,7 +342,7 @@ sal_Int32 SAL_CALL OResultSet::findColumn(const OUString& rColumnName)
assert(false);
return 0; // Never reached
}
-// -------------------------------------------------------------------------
+
uno::Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
(void) columnIndex;
@@ -351,7 +351,7 @@ uno::Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 c
return NULL;
}
-// -------------------------------------------------------------------------
+
uno::Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
(void) columnIndex;
@@ -630,7 +630,7 @@ DateTime SAL_CALL OResultSet::getTimestamp(sal_Int32 nIndex)
return safelyRetrieveValue< DateTime >(nIndex, SQL_TIMESTAMP);
}
-// -------------------------------------------------------------------------
+
uno::Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLException, RuntimeException)
{
MutexGuard aGuard(m_rMutex);
@@ -640,7 +640,7 @@ uno::Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(
m_xMetaData = new OResultSetMetaData(m_pConnection, m_pSqlda);
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
uno::Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
(void) columnIndex;
@@ -650,7 +650,7 @@ uno::Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 columnIndex )
return NULL;
}
-// -------------------------------------------------------------------------
+
uno::Reference< XClob > SAL_CALL OResultSet::getClob( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -674,7 +674,7 @@ uno::Reference< XBlob > SAL_CALL OResultSet::getBlob(sal_Int32 columnIndex)
return 0;
return m_pConnection->createBlob(pBlobID);
}
-// -------------------------------------------------------------------------
+
uno::Reference< XRef > SAL_CALL OResultSet::getRef( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -684,7 +684,7 @@ uno::Reference< XRef > SAL_CALL OResultSet::getRef( sal_Int32 columnIndex ) thro
return NULL;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::getObject( sal_Int32 columnIndex, const uno::Reference< ::com::sun::star::container::XNameAccess >& typeMap ) throw(SQLException, RuntimeException)
{
@@ -698,7 +698,7 @@ Any SAL_CALL OResultSet::getObject( sal_Int32 columnIndex, const uno::Reference<
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::close() throw(SQLException, RuntimeException)
{
@@ -746,7 +746,7 @@ void SAL_CALL OResultSet::refreshRow() throw(SQLException, RuntimeException)
::dbtools::throwFunctionNotSupportedException("refreshRow not supported in firebird",
*this);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::cancel( ) throw(RuntimeException)
{
@@ -781,17 +781,17 @@ IPropertyArrayHelper & OResultSet::getInfoHelper()
{
return *const_cast<OResultSet*>(this)->getArrayHelper();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::acquire() throw()
{
OResultSet_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::release() throw()
{
OResultSet_BASE::release();
}
-// -----------------------------------------------------------------------------
+
uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
diff --git a/connectivity/source/drivers/firebird/Services.cxx b/connectivity/source/drivers/firebird/Services.cxx
index f5a183026740..65bacd7439b9 100644
--- a/connectivity/source/drivers/firebird/Services.cxx
+++ b/connectivity/source/drivers/firebird/Services.cxx
@@ -46,7 +46,7 @@ typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
// It contains of 3 special functions that have to be exported.
//
-//---------------------------------------------------------------------------------------
+
void REGISTER_PROVIDER(
const OUString& aServiceImplName,
const Sequence< OUString>& Services,
@@ -62,7 +62,7 @@ void REGISTER_PROVIDER(
}
-//---------------------------------------------------------------------------------------
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
@@ -102,7 +102,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
-//---------------------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL firebird_sdbc_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/firebird/StatementCommonBase.cxx b/connectivity/source/drivers/firebird/StatementCommonBase.cxx
index dfff5d7e499c..190730f8029c 100644
--- a/connectivity/source/drivers/firebird/StatementCommonBase.cxx
+++ b/connectivity/source/drivers/firebird/StatementCommonBase.cxx
@@ -80,7 +80,7 @@ void OStatementCommonBase::freeStatementHandle()
}
}
-//-----------------------------------------------------------------------------
+
Any SAL_CALL OStatementCommonBase::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OStatementCommonBase_Base::queryInterface(rType);
@@ -88,7 +88,7 @@ Any SAL_CALL OStatementCommonBase::queryInterface( const Type & rType ) throw(Ru
aRet = OPropertySetHelper::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OStatementCommonBase::getTypes( ) throw(RuntimeException)
{
::cppu::OTypeCollection aTypes(
@@ -98,7 +98,7 @@ Sequence< Type > SAL_CALL OStatementCommonBase::getTypes( ) throw(RuntimeExcept
return concatSequences(aTypes.getTypes(),OStatementCommonBase_Base::getTypes());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatementCommonBase::cancel( ) throw(RuntimeException)
{
@@ -271,7 +271,7 @@ void SAL_CALL OStatementCommonBase::clearWarnings() throw(SQLException, RuntimeE
{
return *const_cast<OStatementCommonBase*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool OStatementCommonBase::convertFastPropertyValue(
Any & rConvertedValue,
Any & rOldValue,
@@ -287,7 +287,7 @@ sal_Bool OStatementCommonBase::convertFastPropertyValue(
// here we have to try to convert
return bConverted;
}
-// -------------------------------------------------------------------------
+
void OStatementCommonBase::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
{
(void) rValue;
@@ -308,7 +308,7 @@ void OStatementCommonBase::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,co
;
}
}
-// -------------------------------------------------------------------------
+
void OStatementCommonBase::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
{
(void) rValue;
diff --git a/connectivity/source/drivers/flat/ECatalog.cxx b/connectivity/source/drivers/flat/ECatalog.cxx
index 397bf78d5dbb..b686c40458e8 100644
--- a/connectivity/source/drivers/flat/ECatalog.cxx
+++ b/connectivity/source/drivers/flat/ECatalog.cxx
@@ -30,13 +30,13 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
-// -------------------------------------------------------------------------
+
using namespace connectivity::flat;
-// -------------------------------------------------------------------------
+
OFlatCatalog::OFlatCatalog(OFlatConnection* _pCon) : file::OFileCatalog(_pCon)
{
}
-// -------------------------------------------------------------------------
+
void OFlatCatalog::refreshTables()
{
TStringVector aVector;
@@ -55,7 +55,7 @@ void OFlatCatalog::refreshTables()
else
m_pTables = new OFlatTables(m_xMetaData,*this,m_aMutex,aVector);
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/flat/EColumns.cxx b/connectivity/source/drivers/flat/EColumns.cxx
index 0772f65bb342..f472c564b829 100644
--- a/connectivity/source/drivers/flat/EColumns.cxx
+++ b/connectivity/source/drivers/flat/EColumns.cxx
@@ -41,7 +41,7 @@ sdbcx::ObjectType OFlatColumns::createObject(const OUString& _rName)
xRet = sdbcx::ObjectType(*aIter,UNO_QUERY);
return xRet;
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/flat/EConnection.cxx b/connectivity/source/drivers/flat/EConnection.cxx
index 3ed139065eca..56e16e4fc770 100644
--- a/connectivity/source/drivers/flat/EConnection.cxx
+++ b/connectivity/source/drivers/flat/EConnection.cxx
@@ -32,14 +32,14 @@ using namespace connectivity::file;
typedef connectivity::file::OConnection OConnection_B;
-//------------------------------------------------------------------------------
+
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::lang;
-// --------------------------------------------------------------------------------
+
OFlatConnection::OFlatConnection(ODriver* _pDriver) : OConnection(_pDriver)
,m_nMaxRowsToScan(50)
,m_bHeaderLine(sal_True)
@@ -49,16 +49,16 @@ OFlatConnection::OFlatConnection(ODriver* _pDriver) : OConnection(_pDriver)
,m_cThousandDelimiter('.')
{
}
-//-----------------------------------------------------------------------------
+
OFlatConnection::~OFlatConnection()
{
}
// XServiceInfo
-// --------------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OFlatConnection, "com.sun.star.sdbc.drivers.flat.Connection", "com.sun.star.sdbc.Connection")
-//-----------------------------------------------------------------------------
+
void OFlatConnection::construct(const OUString& url,const Sequence< PropertyValue >& info) throw(SQLException)
{
osl_atomic_increment( &m_refCount );
@@ -103,7 +103,7 @@ void OFlatConnection::construct(const OUString& url,const Sequence< PropertyValu
OConnection::construct(url,info);
m_bShowDeleted = sal_True; // we do not supported rows for this type
}
-// --------------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL OFlatConnection::getMetaData( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -119,7 +119,7 @@ Reference< XDatabaseMetaData > SAL_CALL OFlatConnection::getMetaData( ) throw(S
return xMetaData;
}
-//------------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< XTablesSupplier > OFlatConnection::createCatalog()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -132,7 +132,7 @@ Reference< XDatabaseMetaData > SAL_CALL OFlatConnection::getMetaData( ) throw(S
}
return xTab;
}
-// --------------------------------------------------------------------------------
+
Reference< XStatement > SAL_CALL OFlatConnection::createStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -144,7 +144,7 @@ Reference< XStatement > SAL_CALL OFlatConnection::createStatement( ) throw(SQLE
m_aStatements.push_back(WeakReferenceHelper(*pStmt));
return xStmt;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OFlatConnection::prepareStatement( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -158,7 +158,7 @@ Reference< XPreparedStatement > SAL_CALL OFlatConnection::prepareStatement( cons
m_aStatements.push_back(WeakReferenceHelper(*pStmt));
return xStmt;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OFlatConnection::prepareCall( const OUString& /*sql*/ ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
diff --git a/connectivity/source/drivers/flat/EDatabaseMetaData.cxx b/connectivity/source/drivers/flat/EDatabaseMetaData.cxx
index 69c8fbcb7017..7a9733323307 100644
--- a/connectivity/source/drivers/flat/EDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/flat/EDatabaseMetaData.cxx
@@ -46,12 +46,12 @@ OFlatDatabaseMetaData::OFlatDatabaseMetaData(::connectivity::file::OConnection*
{
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatDatabaseMetaData::OFlatDatabaseMetaData" );
}
-// -------------------------------------------------------------------------
+
OFlatDatabaseMetaData::~OFlatDatabaseMetaData()
{
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatDatabaseMetaData::~OFlatDatabaseMetaData" );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > OFlatDatabaseMetaData::impl_getTypeInfo_throw( )
{
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatDatabaseMetaData::impl_getTypeInfo_throw" );
@@ -150,7 +150,7 @@ Reference< XResultSet > OFlatDatabaseMetaData::impl_getTypeInfo_throw( )
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OFlatDatabaseMetaData::getColumns(
const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& tableNamePattern,
const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
@@ -240,14 +240,14 @@ Reference< XResultSet > SAL_CALL OFlatDatabaseMetaData::getColumns(
return xRef;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OFlatDatabaseMetaData::getURL( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatDatabaseMetaData::getURL" );
::osl::MutexGuard aGuard( m_aMutex );
return OUString("sdbc:flat:") + m_pConnection->getURL();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/flat/EDriver.cxx b/connectivity/source/drivers/flat/EDriver.cxx
index b5c8235acc7b..418431d0e730 100644
--- a/connectivity/source/drivers/flat/EDriver.cxx
+++ b/connectivity/source/drivers/flat/EDriver.cxx
@@ -37,24 +37,24 @@ using namespace ::com::sun::star::lang;
// static ServiceInfo
-//------------------------------------------------------------------------------
+
OUString ODriver::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString("com.sun.star.comp.sdbc.flat.ODriver");
}
-//------------------------------------------------------------------
+
OUString SAL_CALL ODriver::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
}
-//------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL connectivity::flat::ODriver_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception )
{
return *(new ODriver( comphelper::getComponentContext(_rxFactory) ));
}
-// --------------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL ODriver::connect( const OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -71,13 +71,13 @@ Reference< XConnection > SAL_CALL ODriver::connect( const OUString& url, const S
return xCon;
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODriver::acceptsURL( const OUString& url )
throw(SQLException, RuntimeException)
{
return url.startsWith("sdbc:flat:");
}
-// -----------------------------------------------------------------------------
+
Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
if ( acceptsURL(url) )
@@ -131,7 +131,7 @@ Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString
::dbtools::throwGenericSQLException(sMessage ,*this);
return Sequence< DriverPropertyInfo >();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/flat/EPreparedStatement.cxx b/connectivity/source/drivers/flat/EPreparedStatement.cxx
index 322c23da7d76..2a51abb390d8 100644
--- a/connectivity/source/drivers/flat/EPreparedStatement.cxx
+++ b/connectivity/source/drivers/flat/EPreparedStatement.cxx
@@ -24,12 +24,12 @@
using namespace connectivity::flat;
using namespace connectivity::file;
using namespace ::com::sun::star::uno;
-// -------------------------------------------------------------------------
+
OResultSet* OFlatPreparedStatement::createResultSet()
{
return new OFlatResultSet(this,m_aSQLIterator);
}
-// -------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OFlatPreparedStatement,"com.sun.star.sdbc.driver.flat.PreparedStatement","com.sun.star.sdbc.PreparedStatement");
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/flat/EResultSet.cxx b/connectivity/source/drivers/flat/EResultSet.cxx
index f766ce704277..b9ce8bacc9e5 100644
--- a/connectivity/source/drivers/flat/EResultSet.cxx
+++ b/connectivity/source/drivers/flat/EResultSet.cxx
@@ -36,19 +36,19 @@ using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
-//------------------------------------------------------------------------------
+
OFlatResultSet::OFlatResultSet( OStatement_Base* pStmt,connectivity::OSQLParseTreeIterator& _aSQLIterator)
: file::OResultSet(pStmt,_aSQLIterator)
,m_bBookmarkable(sal_True)
{
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISBOOKMARKABLE), PROPERTY_ID_ISBOOKMARKABLE, PropertyAttribute::READONLY,&m_bBookmarkable, ::getBooleanCppuType());
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OFlatResultSet::getImplementationName( ) throw ( RuntimeException)
{
return OUString("com.sun.star.sdbcx.flat.ResultSet");
}
-// -------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OFlatResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
Sequence< OUString > aSupported(2);
@@ -61,7 +61,7 @@ sal_Bool SAL_CALL OFlatResultSet::supportsService( const OUString& _rServiceName
{
return cppu::supportsService(this, _rServiceName);
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OFlatResultSet::queryInterface( const Type & rType ) throw(RuntimeException)
{
if(rType == ::getCppuType((const Reference<XDeleteRows>*)0) || rType == ::getCppuType((const Reference<XResultSetUpdate>*)0)
@@ -71,7 +71,7 @@ Any SAL_CALL OFlatResultSet::queryInterface( const Type & rType ) throw(RuntimeE
const Any aRet = OResultSet::queryInterface(rType);
return aRet.hasValue() ? aRet : OFlatResultSet_BASE::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OFlatResultSet::getTypes( ) throw( RuntimeException)
{
Sequence< Type > aTypes = OResultSet::getTypes();
@@ -93,7 +93,7 @@ Sequence< Type > SAL_CALL OFlatResultSet::getTypes( ) throw( RuntimeException)
return ::comphelper::concatSequences(aRet,OFlatResultSet_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
// XRowLocate
Any SAL_CALL OFlatResultSet::getBookmark( ) throw( SQLException, RuntimeException)
{
@@ -102,7 +102,7 @@ Any SAL_CALL OFlatResultSet::getBookmark( ) throw( SQLException, RuntimeExcept
return makeAny((sal_Int32)(m_aRow->get())[0]->getValue());
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OFlatResultSet::moveToBookmark( const Any& bookmark ) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -113,7 +113,7 @@ sal_Bool SAL_CALL OFlatResultSet::moveToBookmark( const Any& bookmark ) throw(
return Move(IResultSetHelper::BOOKMARK,comphelper::getINT32(bookmark),sal_True);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OFlatResultSet::moveRelativeToBookmark( const Any& bookmark, sal_Int32 rows ) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -127,48 +127,48 @@ sal_Bool SAL_CALL OFlatResultSet::moveRelativeToBookmark( const Any& bookmark,
return relative(rows);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OFlatResultSet::compareBookmarks( const Any& lhs, const Any& rhs ) throw( SQLException, RuntimeException)
{
return (lhs == rhs) ? 0 : 2;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OFlatResultSet::hasOrderedBookmarks( ) throw( SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OFlatResultSet::hashBookmark( const Any& bookmark ) throw( SQLException, RuntimeException)
{
return comphelper::getINT32(bookmark);
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper* OFlatResultSet::createArrayHelper( ) const
{
Sequence< Property > aProps;
describeProperties(aProps);
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper & OFlatResultSet::getInfoHelper()
{
return *OFlatResultSet_BASE3::getArrayHelper();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OFlatResultSet::acquire() throw()
{
OFlatResultSet_BASE2::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OFlatResultSet::release() throw()
{
OFlatResultSet_BASE2::release();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OFlatResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/flat/EStatement.cxx b/connectivity/source/drivers/flat/EStatement.cxx
index 4701cf74a6d1..d7fb9a281d00 100644
--- a/connectivity/source/drivers/flat/EStatement.cxx
+++ b/connectivity/source/drivers/flat/EStatement.cxx
@@ -23,12 +23,12 @@
using namespace connectivity::flat;
using namespace connectivity::file;
using namespace com::sun::star::uno;
-// -------------------------------------------------------------------------
+
OResultSet* OFlatStatement::createResultSet()
{
return new OFlatResultSet(this,m_aSQLIterator);
}
-// -------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OFlatStatement,"com.sun.star.sdbc.driver.flat.Statement","com.sun.star.sdbc.Statement");
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/flat/ETable.cxx b/connectivity/source/drivers/flat/ETable.cxx
index e7c2e23abc3a..c11b23ff898d 100644
--- a/connectivity/source/drivers/flat/ETable.cxx
+++ b/connectivity/source/drivers/flat/ETable.cxx
@@ -62,7 +62,7 @@ using namespace ::com::sun::star::util;
using std::vector;
using std::lower_bound;
-// -------------------------------------------------------------------------
+
void OFlatTable::fillColumns(const ::com::sun::star::lang::Locale& _aLocale)
{
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatTable::fillColumns" );
@@ -406,7 +406,7 @@ void OFlatTable::impl_fillColumnInfo_nothrow(QuotedTokenizedString& aFirstLine,
}
}
}
-// -------------------------------------------------------------------------
+
OFlatTable::OFlatTable(sdbcx::OCollection* _pTables,OFlatConnection* _pConnection,
const OUString& _Name,
const OUString& _Type,
@@ -427,7 +427,7 @@ OFlatTable::OFlatTable(sdbcx::OCollection* _pTables,OFlatConnection* _pConnectio
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatTable::OFlatTable" );
}
-// -----------------------------------------------------------------------------
+
void OFlatTable::construct()
{
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatTable::construct" );
@@ -469,7 +469,7 @@ void OFlatTable::construct()
refreshColumns();
}
}
-// -------------------------------------------------------------------------
+
OUString OFlatTable::getEntry()
{
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatTable::getEntry" );
@@ -515,7 +515,7 @@ OUString OFlatTable::getEntry()
}
return sURL;
}
-// -------------------------------------------------------------------------
+
void OFlatTable::refreshColumns()
{
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatTable::refreshColumns" );
@@ -533,7 +533,7 @@ void OFlatTable::refreshColumns()
m_pColumns = new OFlatColumns(this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OFlatTable::disposing(void)
{
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatTable::disposing" );
@@ -541,7 +541,7 @@ void SAL_CALL OFlatTable::disposing(void)
::osl::MutexGuard aGuard(m_aMutex);
m_aColumns = NULL;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OFlatTable::getTypes( ) throw(RuntimeException)
{
Sequence< Type > aTypes = OTable_TYPEDEF::getTypes();
@@ -564,7 +564,7 @@ Sequence< Type > SAL_CALL OFlatTable::getTypes( ) throw(RuntimeException)
return Sequence< Type >(pTypes, aOwnTypes.size());
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OFlatTable::queryInterface( const Type & rType ) throw(RuntimeException)
{
if( rType == ::getCppuType((const Reference<XKeysSupplier>*)0) ||
@@ -578,7 +578,7 @@ Any SAL_CALL OFlatTable::queryInterface( const Type & rType ) throw(RuntimeExcep
return aRet.hasValue() ? aRet : ::cppu::queryInterface(rType,static_cast< ::com::sun::star::lang::XUnoTunnel*> (this));
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > OFlatTable::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -595,7 +595,7 @@ Sequence< sal_Int8 > OFlatTable::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OFlatTable::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatTable::getSomething" );
@@ -603,7 +603,7 @@ sal_Int64 OFlatTable::getSomething( const Sequence< sal_Int8 > & rId ) throw (Ru
? reinterpret_cast< sal_Int64 >( this )
: OFlatTable_BASE::getSomething(rId);
}
-//------------------------------------------------------------------
+
sal_Bool OFlatTable::fetchRow(OValueRefRow& _rRow, const OSQLColumns & _rCols, sal_Bool bIsTable, sal_Bool bRetrieveData)
{
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatTable::fetchRow" );
@@ -747,13 +747,13 @@ sal_Bool OFlatTable::fetchRow(OValueRefRow& _rRow, const OSQLColumns & _rCols, s
return result;
}
-// -----------------------------------------------------------------------------
+
void OFlatTable::refreshHeader()
{
SAL_INFO( "connectivity.drivers", "flat lionel@mamane.lu OFlatTable::refreshHeader" );
}
-// -----------------------------------------------------------------------------
+
namespace
{
template< typename Tp, typename Te> struct RangeBefore
@@ -765,12 +765,12 @@ namespace
}
};
}
-// -----------------------------------------------------------------------------
+
sal_Bool OFlatTable::seekRow(IResultSetHelper::Movement eCursorPosition, sal_Int32 nOffset, sal_Int32& nCurPos)
{
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatTable::seekRow" );
OSL_ENSURE(m_pFileStream,"OFlatTable::seekRow: FileStream is NULL!");
- // ----------------------------------------------------------
+
switch(eCursorPosition)
{
@@ -918,7 +918,7 @@ sal_Bool OFlatTable::seekRow(IResultSetHelper::Movement eCursorPosition, sal_Int
return sal_True;
}
-// -----------------------------------------------------------------------------
+
bool OFlatTable::readLine(sal_Int32 * const pEndPos, sal_Int32 * const pStartPos, const bool nonEmpty)
{
SAL_INFO( "connectivity.drivers", "flat Ocke.Janssen@sun.com OFlatTable::readLine" );
@@ -953,7 +953,7 @@ bool OFlatTable::readLine(sal_Int32 * const pEndPos, sal_Int32 * const pStartPos
return true;
}
-// -----------------------------------------------------------------------------
+
void OFlatTable::setRowPos(const vector<TRowPositionInFile>::size_type rowNum, const TRowPositionInFile &rowPos)
{
assert(m_aRowPosToFilePos.size() >= rowNum);
diff --git a/connectivity/source/drivers/flat/ETables.cxx b/connectivity/source/drivers/flat/ETables.cxx
index aee4095cb9ab..9abaf9b34740 100644
--- a/connectivity/source/drivers/flat/ETables.cxx
+++ b/connectivity/source/drivers/flat/ETables.cxx
@@ -47,6 +47,6 @@ sdbcx::ObjectType OFlatTables::createObject(const OUString& _rName)
pRet->construct();
return xRet;
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/flat/Eservices.cxx b/connectivity/source/drivers/flat/Eservices.cxx
index 3ebf8f4c2c40..29465c6cb3d2 100644
--- a/connectivity/source/drivers/flat/Eservices.cxx
+++ b/connectivity/source/drivers/flat/Eservices.cxx
@@ -35,7 +35,7 @@ typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
rtl_ModuleCount*
);
-//---------------------------------------------------------------------------------------
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
@@ -75,7 +75,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
-//---------------------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL flat_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/hsqldb/HCatalog.cxx b/connectivity/source/drivers/hsqldb/HCatalog.cxx
index 2bbdbe859970..f2e5fae3cb0a 100644
--- a/connectivity/source/drivers/hsqldb/HCatalog.cxx
+++ b/connectivity/source/drivers/hsqldb/HCatalog.cxx
@@ -26,7 +26,7 @@
#include <comphelper/types.hxx>
-// -------------------------------------------------------------------------
+
using namespace connectivity;
using namespace connectivity::hsqldb;
using namespace ::com::sun::star::uno;
@@ -35,12 +35,12 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
OHCatalog::OHCatalog(const Reference< XConnection >& _xConnection) : sdbcx::OCatalog(_xConnection)
,m_xConnection(_xConnection)
{
}
-// -----------------------------------------------------------------------------
+
void OHCatalog::refreshObjects(const Sequence< OUString >& _sKindOfObject,TStringVector& _rNames)
{
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),
@@ -49,7 +49,7 @@ void OHCatalog::refreshObjects(const Sequence< OUString >& _sKindOfObject,TStrin
_sKindOfObject);
fillNames(xResult,_rNames);
}
-// -------------------------------------------------------------------------
+
void OHCatalog::refreshTables()
{
TStringVector aVector;
@@ -67,7 +67,7 @@ void OHCatalog::refreshTables()
else
m_pTables = new OTables(m_xMetaData,*this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
void OHCatalog::refreshViews()
{
Sequence< OUString > aTypes(1);
@@ -99,11 +99,11 @@ void OHCatalog::refreshViews()
else
m_pViews = new HViews( m_xConnection, *this, m_aMutex, aVector );
}
-// -------------------------------------------------------------------------
+
void OHCatalog::refreshGroups()
{
}
-// -------------------------------------------------------------------------
+
void OHCatalog::refreshUsers()
{
TStringVector aVector;
@@ -124,7 +124,7 @@ void OHCatalog::refreshUsers()
else
m_pUsers = new OUsers(*this,m_aMutex,aVector,m_xConnection,this);
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL OHCatalog::queryInterface( const Type & rType ) throw(RuntimeException)
{
if ( rType == ::getCppuType((const Reference<XGroupsSupplier>*)0) )
@@ -132,7 +132,7 @@ Any SAL_CALL OHCatalog::queryInterface( const Type & rType ) throw(RuntimeExcept
return OCatalog::queryInterface(rType);
}
-// -----------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OHCatalog::getTypes( ) throw(RuntimeException)
{
Sequence< Type > aTypes = OCatalog::getTypes();
@@ -150,7 +150,7 @@ Sequence< Type > SAL_CALL OHCatalog::getTypes( ) throw(RuntimeException)
const Type* pTypes = aOwnTypes.empty() ? 0 : &aOwnTypes[0];
return Sequence< Type >(pTypes, aOwnTypes.size());
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/hsqldb/HColumns.cxx b/connectivity/source/drivers/hsqldb/HColumns.cxx
index 78f2eac9352d..16657cf227fb 100644
--- a/connectivity/source/drivers/hsqldb/HColumns.cxx
+++ b/connectivity/source/drivers/hsqldb/HColumns.cxx
@@ -40,35 +40,35 @@ OHSQLColumns::OHSQLColumns( ::cppu::OWeakObject& _rParent
) : OColumnsHelper(_rParent,_bCase,_rMutex,_rVector,_bUseHardRef)
{
}
-// -----------------------------------------------------------------------------
+
Reference< XPropertySet > OHSQLColumns::createDescriptor()
{
return new OHSQLColumn(sal_True);
}
-// -----------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
+
+
OHSQLColumn::OHSQLColumn( sal_Bool _bCase)
: connectivity::sdbcx::OColumn( _bCase )
{
construct();
}
-// -------------------------------------------------------------------------
+
void OHSQLColumn::construct()
{
m_sAutoIncrement = "IDENTITY";
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_AUTOINCREMENTCREATION),PROPERTY_ID_AUTOINCREMENTCREATION,0,&m_sAutoIncrement, ::getCppuType(&m_sAutoIncrement));
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OHSQLColumn::createArrayHelper( sal_Int32 /*_nId*/ ) const
{
return doCreateArrayHelper();
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & SAL_CALL OHSQLColumn::getInfoHelper()
{
return *OHSQLColumn_PROP::getArrayHelper(isNew() ? 1 : 0);
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OHSQLColumn::getSupportedServiceNames( ) throw(RuntimeException)
{
Sequence< OUString > aSupported(1);
@@ -76,6 +76,6 @@ Sequence< OUString > SAL_CALL OHSQLColumn::getSupportedServiceNames( ) throw(Ru
return aSupported;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/hsqldb/HConnection.cxx b/connectivity/source/drivers/hsqldb/HConnection.cxx
index f227e8124a82..f9499d63f143 100644
--- a/connectivity/source/drivers/hsqldb/HConnection.cxx
+++ b/connectivity/source/drivers/hsqldb/HConnection.cxx
@@ -99,7 +99,7 @@ namespace connectivity { namespace hsqldb
) SAL_THROW( ( Exception ) );
};
- // -----------------------------------------------------------------------------
+
bool FlushListeners::implTypedNotify( const Reference< XFlushListener >& _rxListener, const EventObject& _rEvent ) SAL_THROW( ( Exception ) )
{
_rxListener->flushed( _rEvent );
@@ -109,14 +109,14 @@ namespace connectivity { namespace hsqldb
// =============================================================================
// = OHsqlConnection
// =============================================================================
- // -----------------------------------------------------------------------------
+
void SAL_CALL OHsqlConnection::disposing(void)
{
m_aFlushListeners.disposeAndClear( EventObject( *this ) );
OHsqlConnection_BASE::disposing();
OConnectionWrapper::disposing();
}
- // -----------------------------------------------------------------------------
+
OHsqlConnection::OHsqlConnection( const Reference< XDriver > _rxDriver,
const Reference< XConnection >& _xConnection ,const Reference< XComponentContext >& _rxContext )
:OHsqlConnection_BASE( m_aMutex )
@@ -128,7 +128,7 @@ namespace connectivity { namespace hsqldb
{
setDelegation(_xConnection,_rxContext,m_refCount);
}
- // -----------------------------------------------------------------------------
+
OHsqlConnection::~OHsqlConnection()
{
if ( !OHsqlConnection_BASE::rBHelper.bDisposed )
@@ -137,25 +137,25 @@ namespace connectivity { namespace hsqldb
dispose();
}
}
- // -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2(OHsqlConnection,OHsqlConnection_BASE,OConnectionWrapper)
IMPLEMENT_SERVICE_INFO(OHsqlConnection, "com.sun.star.sdbc.drivers.hsqldb.OHsqlConnection", "com.sun.star.sdbc.Connection")
IMPLEMENT_FORWARD_XTYPEPROVIDER2(OHsqlConnection,OHsqlConnection_BASE,OConnectionWrapper)
- //--------------------------------------------------------------------
+
::osl::Mutex& OHsqlConnection::getMutex() const
{
return m_aMutex;
}
- //--------------------------------------------------------------------
+
void OHsqlConnection::checkDisposed() const
{
::connectivity::checkDisposed( rBHelper.bDisposed );
}
// XFlushable
- //--------------------------------------------------------------------
+
void SAL_CALL OHsqlConnection::flush( ) throw (RuntimeException)
{
MethodGuard aGuard( *this );
@@ -193,21 +193,21 @@ namespace connectivity { namespace hsqldb
}
}
- //--------------------------------------------------------------------
+
void SAL_CALL OHsqlConnection::addFlushListener( const Reference< XFlushListener >& l ) throw (RuntimeException)
{
MethodGuard aGuard( *this );
m_aFlushListeners.addInterface( l );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OHsqlConnection::removeFlushListener( const Reference< XFlushListener >& l ) throw (RuntimeException)
{
MethodGuard aGuard( *this );
m_aFlushListeners.removeInterface( l );
}
- // -------------------------------------------------------------------
+
Reference< XGraphic > SAL_CALL OHsqlConnection::getTableIcon( const OUString& _TableName, ::sal_Int32 /*_ColorMode*/ ) throw (RuntimeException)
{
MethodGuard aGuard( *this );
@@ -219,7 +219,7 @@ namespace connectivity { namespace hsqldb
return impl_getTextTableIcon_nothrow();
}
- // -------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL OHsqlConnection::getTableEditor( const Reference< XDatabaseDocumentUI >& _DocumentUI, const OUString& _TableName ) throw (IllegalArgumentException, WrappedTargetException, RuntimeException)
{
MethodGuard aGuard( *this );
@@ -246,7 +246,7 @@ namespace connectivity { namespace hsqldb
// editor not yet implemented in this CWS
}
- // -------------------------------------------------------------------
+
Reference< XNameAccess > OHsqlConnection::impl_getTableContainer_throw()
{
Reference< XNameAccess > xTables;
@@ -270,7 +270,7 @@ namespace connectivity { namespace hsqldb
}
//TODO: resource
- // -------------------------------------------------------------------
+
void OHsqlConnection::impl_checkExistingTable_throw( const OUString& _rTableName )
{
bool bDoesExist = false;
@@ -298,7 +298,7 @@ namespace connectivity { namespace hsqldb
} // if ( !bDoesExist )
}
- // -------------------------------------------------------------------
+
bool OHsqlConnection::impl_isTextTable_nothrow( const OUString& _rTableName )
{
bool bIsTextTable = false;
@@ -335,7 +335,7 @@ namespace connectivity { namespace hsqldb
return bIsTextTable;
}
- // -------------------------------------------------------------------
+
Reference< XGraphic > OHsqlConnection::impl_getTextTableIcon_nothrow()
{
Reference< XGraphic > xGraphic;
diff --git a/connectivity/source/drivers/hsqldb/HDriver.cxx b/connectivity/source/drivers/hsqldb/HDriver.cxx
index f11ca6154bc4..5bec011330bb 100644
--- a/connectivity/source/drivers/hsqldb/HDriver.cxx
+++ b/connectivity/source/drivers/hsqldb/HDriver.cxx
@@ -89,7 +89,7 @@ namespace connectivity
//====================================================================
//= ODriverDelegator
//====================================================================
- //--------------------------------------------------------------------
+
ODriverDelegator::ODriverDelegator(const Reference< XComponentContext >& _rxContext)
: ODriverDelegator_BASE(m_aMutex)
,m_xContext(_rxContext)
@@ -97,7 +97,7 @@ namespace connectivity
{
}
- //--------------------------------------------------------------------
+
ODriverDelegator::~ODriverDelegator()
{
try
@@ -109,7 +109,7 @@ namespace connectivity
}
}
- // --------------------------------------------------------------------------------
+
void SAL_CALL ODriverDelegator::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -131,7 +131,7 @@ namespace connectivity
cppu::WeakComponentImplHelperBase::disposing();
}
- //--------------------------------------------------------------------
+
Reference< XDriver > ODriverDelegator::loadDriver( )
{
if ( !m_xDriver.is() )
@@ -144,7 +144,7 @@ namespace connectivity
return m_xDriver;
}
- //--------------------------------------------------------------------
+
namespace
{
OUString lcl_getPermittedJavaMethods_nothrow( const Reference< XComponentContext >& _rxContext )
@@ -175,7 +175,7 @@ namespace connectivity
}
}
- //--------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL ODriverDelegator::connect( const OUString& url, const Sequence< PropertyValue >& info ) throw (SQLException, RuntimeException)
{
Reference< XConnection > xConnection;
@@ -394,7 +394,7 @@ namespace connectivity
return xConnection;
}
- //--------------------------------------------------------------------
+
sal_Bool SAL_CALL ODriverDelegator::acceptsURL( const OUString& url ) throw (SQLException, RuntimeException)
{
sal_Bool bEnabled = sal_False;
@@ -416,7 +416,7 @@ namespace connectivity
return bEnabled && url.equals("sdbc:embedded:hsqldb");
}
- //--------------------------------------------------------------------
+
Sequence< DriverPropertyInfo > SAL_CALL ODriverDelegator::getPropertyInfo( const OUString& url, const Sequence< PropertyValue >& /*info*/ ) throw (SQLException, RuntimeException)
{
if ( !acceptsURL(url) )
@@ -446,19 +446,19 @@ namespace connectivity
return Sequence< DriverPropertyInfo >(&aDriverInfo[0],aDriverInfo.size());
}
- //--------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODriverDelegator::getMajorVersion( ) throw (RuntimeException)
{
return 1;
}
- //--------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODriverDelegator::getMinorVersion( ) throw (RuntimeException)
{
return 0;
}
- //--------------------------------------------------------------------
+
Reference< XTablesSupplier > SAL_CALL ODriverDelegator::getDataDefinitionByConnection( const Reference< XConnection >& connection ) throw (SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -484,7 +484,7 @@ namespace connectivity
return xTab;
}
- //--------------------------------------------------------------------
+
Reference< XTablesSupplier > SAL_CALL ODriverDelegator::getDataDefinitionByURL( const OUString& url, const Sequence< PropertyValue >& info ) throw (SQLException, RuntimeException)
{
if ( ! acceptsURL(url) )
@@ -498,13 +498,13 @@ namespace connectivity
}
// XServiceInfo
- // --------------------------------------------------------------------------------
- //------------------------------------------------------------------------------
+
+
OUString ODriverDelegator::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString("com.sun.star.sdbcx.comp.hsqldb.Driver");
}
- //------------------------------------------------------------------------------
+
Sequence< OUString > ODriverDelegator::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 2 );
@@ -512,7 +512,7 @@ namespace connectivity
aSNS[1] = "com.sun.star.sdbcx.Driver";
return aSNS;
}
- //------------------------------------------------------------------
+
OUString SAL_CALL ODriverDelegator::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
@@ -522,17 +522,17 @@ namespace connectivity
{
return cppu::supportsService(this, _rServiceName);
}
- //------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL ODriverDelegator::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
- //------------------------------------------------------------------
+
void SAL_CALL ODriverDelegator::createCatalog( const Sequence< PropertyValue >& /*info*/ ) throw (SQLException, ::com::sun::star::container::ElementExistException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XCreateCatalog::createCatalog", *this );
}
- //------------------------------------------------------------------
+
void ODriverDelegator::shutdownConnection(const TWeakPairVector::iterator& _aIter )
{
OSL_ENSURE(m_aConnections.end() != _aIter,"Iterator equals .end()");
@@ -567,7 +567,7 @@ namespace connectivity
if ( !m_bInShutDownConnections )
m_aConnections.erase(_aIter);
}
- //------------------------------------------------------------------
+
void SAL_CALL ODriverDelegator::disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -598,7 +598,7 @@ namespace connectivity
}
}
}
- //------------------------------------------------------------------
+
void ODriverDelegator::shutdownConnections()
{
m_bInShutDownConnections = sal_True;
@@ -617,7 +617,7 @@ namespace connectivity
m_aConnections.clear();
m_bInShutDownConnections = sal_True;
}
- //------------------------------------------------------------------
+
void ODriverDelegator::flushConnections()
{
TWeakPairVector::iterator aEnd = m_aConnections.end();
@@ -633,7 +633,7 @@ namespace connectivity
}
}
}
- //------------------------------------------------------------------
+
void SAL_CALL ODriverDelegator::preCommit( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -674,19 +674,19 @@ namespace connectivity
}
}
}
- //------------------------------------------------------------------
+
void SAL_CALL ODriverDelegator::commited( const ::com::sun::star::lang::EventObject& /*aEvent*/ ) throw (::com::sun::star::uno::RuntimeException)
{
}
- //------------------------------------------------------------------
+
void SAL_CALL ODriverDelegator::preRevert( const ::com::sun::star::lang::EventObject& /*aEvent*/ ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException)
{
}
- //------------------------------------------------------------------
+
void SAL_CALL ODriverDelegator::reverted( const ::com::sun::star::lang::EventObject& /*aEvent*/ ) throw (::com::sun::star::uno::RuntimeException)
{
}
- //------------------------------------------------------------------
+
namespace
{
//..............................................................
@@ -875,7 +875,7 @@ namespace connectivity
return sLocaleString;
}
}
- //------------------------------------------------------------------
+
void ODriverDelegator::onConnectedNewDatabase( const Reference< XConnection >& _rxConnection )
{
try
@@ -898,8 +898,8 @@ namespace connectivity
}
}
- //------------------------------------------------------------------
- //------------------------------------------------------------------
+
+
//........................................................................
} // namespace connectivity
//........................................................................
diff --git a/connectivity/source/drivers/hsqldb/HStorageAccess.cxx b/connectivity/source/drivers/hsqldb/HStorageAccess.cxx
index 91dd98ee21fd..8416f41abaa2 100644
--- a/connectivity/source/drivers/hsqldb/HStorageAccess.cxx
+++ b/connectivity/source/drivers/hsqldb/HStorageAccess.cxx
@@ -56,7 +56,7 @@ SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAcc
StorageContainer::registerStream(env,name,key,mode);
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess
* Method: close
@@ -95,7 +95,7 @@ SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAcc
StorageContainer::revokeStream(env,name,key);
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess
* Method: getFilePointer
@@ -118,7 +118,7 @@ SAL_JNI_EXPORT jlong JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAc
#endif
return nReturn;
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess
@@ -143,7 +143,7 @@ SAL_JNI_EXPORT jlong JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAc
return nReturn;
}
-// -----------------------------------------------------------------------------
+
jint read_from_storage_stream( JNIEnv * env, jobject /*obj_this*/, jstring name, jstring key, DataLogFile* logger )
{
@@ -185,7 +185,7 @@ jint read_from_storage_stream( JNIEnv * env, jobject /*obj_this*/, jstring name,
return -1;
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess
@@ -206,7 +206,7 @@ SAL_JNI_EXPORT jint JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAcc
#endif
}
-// -----------------------------------------------------------------------------
+
jint read_from_storage_stream_into_buffer( JNIEnv * env, jobject /*obj_this*/,jstring name, jstring key, jbyteArray buffer, jint off, jint len, DataLogFile* logger )
{
@@ -258,7 +258,7 @@ jint read_from_storage_stream_into_buffer( JNIEnv * env, jobject /*obj_this*/,js
"Stream is not valid");
return -1;
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess
@@ -279,7 +279,7 @@ SAL_JNI_EXPORT jint JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAcc
#endif
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess
@@ -347,7 +347,7 @@ SAL_JNI_EXPORT jint JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAcc
"No InputStream");
return -1;
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess
@@ -414,7 +414,7 @@ SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAcc
#endif
}
}
-// -----------------------------------------------------------------------------
+
void write_to_storage_stream_from_buffer( JNIEnv* env, jobject /*obj_this*/, jstring name, jstring key, jbyteArray buffer, jint off, jint len, DataLogFile* logger )
{
@@ -459,7 +459,7 @@ void write_to_storage_stream_from_buffer( JNIEnv* env, jobject /*obj_this*/, jst
}
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess
@@ -479,7 +479,7 @@ SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_NativeStorageAcc
write_to_storage_stream_from_buffer( env, obj_this, name, key, buffer, off, len );
#endif
}
-// -----------------------------------------------------------------------------
+
void write_to_storage_stream( JNIEnv* env, jobject /*obj_this*/, jstring name, jstring key, jint v, DataLogFile* logger )
{
@@ -518,7 +518,7 @@ void write_to_storage_stream( JNIEnv* env, jobject /*obj_this*/, jstring name, j
}
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_NativeStorageAccess
diff --git a/connectivity/source/drivers/hsqldb/HStorageMap.cxx b/connectivity/source/drivers/hsqldb/HStorageMap.cxx
index 899ad14cec74..d992a35f2bb8 100644
--- a/connectivity/source/drivers/hsqldb/HStorageMap.cxx
+++ b/connectivity/source/drivers/hsqldb/HStorageMap.cxx
@@ -44,7 +44,7 @@ namespace connectivity
: m_xStream(_xStream)
{
}
- // -----------------------------------------------------------------------------
+
StreamHelper::~StreamHelper()
{
try
@@ -79,45 +79,45 @@ namespace connectivity
OSL_FAIL("Exception caught!");
}
}
- // -----------------------------------------------------------------------------
+
Reference< XInputStream> StreamHelper::getInputStream()
{
if ( !m_xInputStream.is() )
m_xInputStream = m_xStream->getInputStream();
return m_xInputStream;
}
- // -----------------------------------------------------------------------------
+
Reference< XOutputStream> StreamHelper::getOutputStream()
{
if ( !m_xOutputStream.is() )
m_xOutputStream = m_xStream->getOutputStream();
return m_xOutputStream;
}
- // -----------------------------------------------------------------------------
+
Reference< XSeekable> StreamHelper::getSeek()
{
if ( !m_xSeek.is() )
m_xSeek.set(m_xStream,UNO_QUERY);
return m_xSeek;
}
- // -----------------------------------------------------------------------------
+
TStorages& lcl_getStorageMap()
{
static TStorages s_aMap;
return s_aMap;
}
- // -----------------------------------------------------------------------------
+
OUString lcl_getNextCount()
{
static sal_Int32 s_nCount = 0;
return OUString::number(s_nCount++);
}
- // -----------------------------------------------------------------------------
+
OUString StorageContainer::removeURLPrefix(const OUString& _sURL,const OUString& _sFileURL)
{
return _sURL.copy(_sFileURL.getLength()+1);
}
- // -----------------------------------------------------------------------------
+
OUString StorageContainer::removeOldURLPrefix(const OUString& _sURL)
{
OUString sRet = _sURL;
@@ -163,7 +163,7 @@ namespace connectivity
return aStr;
}
- // -----------------------------------------------------------------------------
+
OUString StorageContainer::registerStorage(const Reference< XStorage>& _xStorage,const OUString& _sURL)
{
OSL_ENSURE(_xStorage.is(),"Storage is NULL!");
@@ -181,7 +181,7 @@ namespace connectivity
return aFind->first;
}
- // -----------------------------------------------------------------------------
+
TStorages::mapped_type StorageContainer::getRegisteredStorage(const OUString& _sKey)
{
TStorages::mapped_type aRet;
@@ -193,7 +193,7 @@ namespace connectivity
return aRet;
}
- // -----------------------------------------------------------------------------
+
OUString StorageContainer::getRegisteredKey(const Reference< XStorage>& _xStorage)
{
OUString sKey;
@@ -209,7 +209,7 @@ namespace connectivity
sKey = aFind->first;
return sKey;
}
- // -----------------------------------------------------------------------------
+
void StorageContainer::revokeStorage(const OUString& _sKey,const Reference<XTransactionListener>& _xListener)
{
TStorages& rMap = lcl_getStorageMap();
@@ -234,7 +234,7 @@ namespace connectivity
rMap.erase(aFind);
}
}
- // -----------------------------------------------------------------------------
+
TStreamMap::mapped_type StorageContainer::registerStream(JNIEnv * env,jstring name, jstring key,sal_Int32 _nMode)
{
TStreamMap::mapped_type pHelper;
@@ -305,7 +305,7 @@ namespace connectivity
}
return pHelper;
}
- // -----------------------------------------------------------------------------
+
void StorageContainer::revokeStream( JNIEnv * env,jstring name, jstring key)
{
TStorages& rMap = lcl_getStorageMap();
@@ -314,7 +314,7 @@ namespace connectivity
if ( aFind != rMap.end() )
aFind->second.second.erase(removeURLPrefix(jstring2ustring(env,name),aFind->second.first.second));
}
- // -----------------------------------------------------------------------------
+
TStreamMap::mapped_type StorageContainer::getRegisteredStream( JNIEnv * env,jstring name, jstring key)
{
TStreamMap::mapped_type pRet;
@@ -330,7 +330,7 @@ namespace connectivity
return pRet;
}
- // -----------------------------------------------------------------------------
+
void StorageContainer::throwJavaException(const Exception& _aException,JNIEnv * env)
{
if (JNI_FALSE != env->ExceptionCheck())
diff --git a/connectivity/source/drivers/hsqldb/HTable.cxx b/connectivity/source/drivers/hsqldb/HTable.cxx
index 247bbeed0c37..7a0515a2ecec 100644
--- a/connectivity/source/drivers/hsqldb/HTable.cxx
+++ b/connectivity/source/drivers/hsqldb/HTable.cxx
@@ -70,7 +70,7 @@ OHSQLTable::OHSQLTable( sdbcx::OCollection* _pTables,
Privilege::SELECT;
construct();
}
-// -------------------------------------------------------------------------
+
OHSQLTable::OHSQLTable( sdbcx::OCollection* _pTables,
const Reference< XConnection >& _xConnection,
const OUString& _Name,
@@ -91,41 +91,41 @@ OHSQLTable::OHSQLTable( sdbcx::OCollection* _pTables,
{
construct();
}
-// -------------------------------------------------------------------------
+
void OHSQLTable::construct()
{
OTableHelper::construct();
if ( !isNew() )
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PRIVILEGES), PROPERTY_ID_PRIVILEGES,PropertyAttribute::READONLY,&m_nPrivileges, ::getCppuType(&m_nPrivileges));
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OHSQLTable::createArrayHelper( sal_Int32 /*_nId*/ ) const
{
return doCreateArrayHelper();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OHSQLTable::getInfoHelper()
{
return *static_cast<OHSQLTable_PROP*>(const_cast<OHSQLTable*>(this))->getArrayHelper(isNew() ? 1 : 0);
}
-// -----------------------------------------------------------------------------
+
sdbcx::OCollection* OHSQLTable::createColumns(const TStringVector& _rNames)
{
OHSQLColumns* pColumns = new OHSQLColumns(*this,sal_True,m_aMutex,_rNames);
pColumns->setParent(this);
return pColumns;
}
-// -----------------------------------------------------------------------------
+
sdbcx::OCollection* OHSQLTable::createKeys(const TStringVector& _rNames)
{
return new OKeysHelper(this,m_aMutex,_rNames);
}
-// -----------------------------------------------------------------------------
+
sdbcx::OCollection* OHSQLTable::createIndexes(const TStringVector& _rNames)
{
return new OIndexesHelper(this,m_aMutex,_rNames);
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > OHSQLTable::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -142,14 +142,14 @@ Sequence< sal_Int8 > OHSQLTable::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OHSQLTable::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelImplementationId().getConstArray(), rId.getConstArray(), 16 ) )
? reinterpret_cast< sal_Int64 >( this )
: OTable_TYPEDEF::getSomething(rId);
}
-// -------------------------------------------------------------------------
+
// XAlterTable
void SAL_CALL OHSQLTable::alterColumnByName( const OUString& colName, const Reference< XPropertySet >& descriptor ) throw(SQLException, NoSuchElementException, RuntimeException)
{
@@ -257,7 +257,7 @@ void SAL_CALL OHSQLTable::alterColumnByName( const OUString& colName, const Refe
}
}
-// -----------------------------------------------------------------------------
+
void OHSQLTable::alterColumnType(sal_Int32 nNewType,const OUString& _rColName, const Reference<XPropertySet>& _xDescriptor)
{
OUString sSql = getAlterTableColumnPart();
@@ -288,7 +288,7 @@ void OHSQLTable::alterColumnType(sal_Int32 nNewType,const OUString& _rColName, c
sSql += ::dbtools::createStandardColumnPart(xProp,getConnection());
executeStatement(sSql);
}
-// -----------------------------------------------------------------------------
+
void OHSQLTable::alterDefaultValue(const OUString& _sNewDefault,const OUString& _rColName)
{
const OUString sQuote = getMetaData()->getIdentifierQuoteString( );
@@ -299,7 +299,7 @@ void OHSQLTable::alterDefaultValue(const OUString& _sNewDefault,const OUString&
executeStatement(sSql);
}
-// -----------------------------------------------------------------------------
+
void OHSQLTable::dropDefaultValue(const OUString& _rColName)
{
const OUString sQuote = getMetaData()->getIdentifierQuoteString( );
@@ -310,7 +310,7 @@ void OHSQLTable::dropDefaultValue(const OUString& _rColName)
executeStatement(sSql);
}
-// -----------------------------------------------------------------------------
+
OUString OHSQLTable::getAlterTableColumnPart()
{
OUString sSql( "ALTER TABLE " );
@@ -320,7 +320,7 @@ OUString OHSQLTable::getAlterTableColumnPart()
return sSql;
}
-// -----------------------------------------------------------------------------
+
void OHSQLTable::executeStatement(const OUString& _rStatement )
{
OUString sSQL = _rStatement;
@@ -339,7 +339,7 @@ void OHSQLTable::executeStatement(const OUString& _rStatement )
::comphelper::disposeComponent(xStmt);
}
}
-// -----------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OHSQLTable::getTypes( ) throw(RuntimeException)
{
if ( m_Type.equalsAscii("VIEW") )
@@ -361,7 +361,7 @@ Sequence< Type > SAL_CALL OHSQLTable::getTypes( ) throw(RuntimeException)
}
return OTableHelper::getTypes();
}
-// -------------------------------------------------------------------------
+
// XRename
void SAL_CALL OHSQLTable::rename( const OUString& newName ) throw(SQLException, ElementExistException, RuntimeException)
{
@@ -398,7 +398,7 @@ void SAL_CALL OHSQLTable::rename( const OUString& newName ) throw(SQLException,
::dbtools::qualifiedNameComponents(getMetaData(),newName,m_CatalogName,m_SchemaName,m_Name,::dbtools::eInTableDefinitions);
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OHSQLTable::queryInterface( const Type & rType ) throw(RuntimeException)
{
if( m_Type.equalsAscii("VIEW") && rType == ::getCppuType((const Reference<XRename>*)0) )
@@ -406,6 +406,6 @@ Any SAL_CALL OHSQLTable::queryInterface( const Type & rType ) throw(RuntimeExcep
return OTableHelper::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/hsqldb/HTables.cxx b/connectivity/source/drivers/hsqldb/HTables.cxx
index 1d75b8667e6a..055445f0f6aa 100644
--- a/connectivity/source/drivers/hsqldb/HTables.cxx
+++ b/connectivity/source/drivers/hsqldb/HTables.cxx
@@ -91,30 +91,30 @@ sdbcx::ObjectType OTables::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void OTables::impl_refresh( ) throw(RuntimeException)
{
static_cast<OHCatalog&>(m_rParent).refreshTables();
}
-// -------------------------------------------------------------------------
+
void OTables::disposing(void)
{
m_xMetaData.clear();
OCollection::disposing();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OTables::createDescriptor()
{
return new OHSQLTable(this,static_cast<OHCatalog&>(m_rParent).getConnection());
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OTables::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
createTable(descriptor);
return createObject( _rForName );
}
-// -------------------------------------------------------------------------
+
// XDrop
void OTables::dropObject(sal_Int32 _nPos,const OUString _sElementName)
{
@@ -155,7 +155,7 @@ void OTables::dropObject(sal_Int32 _nPos,const OUString _sElementName)
}
}
}
-// -------------------------------------------------------------------------
+
void OTables::createTable( const Reference< XPropertySet >& descriptor )
{
Reference< XConnection > xConnection = static_cast<OHCatalog&>(m_rParent).getConnection();
@@ -168,7 +168,7 @@ void OTables::createTable( const Reference< XPropertySet >& descriptor )
::comphelper::disposeComponent(xStmt);
}
}
-// -----------------------------------------------------------------------------
+
void OTables::appendNew(const OUString& _rsNewTable)
{
insertElement(_rsNewTable,NULL);
@@ -179,12 +179,12 @@ void OTables::appendNew(const OUString& _rsNewTable)
while (aListenerLoop.hasMoreElements())
static_cast<XContainerListener*>(aListenerLoop.next())->elementInserted(aEvent);
}
-// -----------------------------------------------------------------------------
+
OUString OTables::getNameForObject(const sdbcx::ObjectType& _xObject)
{
OSL_ENSURE(_xObject.is(),"OTables::getNameForObject: Object is NULL!");
return ::dbtools::composeTableName( m_xMetaData, _xObject, ::dbtools::eInDataManipulation, false, false, false );
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/hsqldb/HTools.cxx b/connectivity/source/drivers/hsqldb/HTools.cxx
index 0a24620a25b2..2ea7be02e2ea 100644
--- a/connectivity/source/drivers/hsqldb/HTools.cxx
+++ b/connectivity/source/drivers/hsqldb/HTools.cxx
@@ -25,7 +25,7 @@ namespace connectivity { namespace hsqldb
//====================================================================
//= HTools
//====================================================================
- //--------------------------------------------------------------------
+
void HTools::appendTableFilterCrit( OUStringBuffer& _inout_rBuffer, const OUString& _rCatalog,
const OUString _rSchema, const OUString _rName, bool _bShortForm )
{
diff --git a/connectivity/source/drivers/hsqldb/HUser.cxx b/connectivity/source/drivers/hsqldb/HUser.cxx
index e1c2a757d64a..3770eff149c6 100644
--- a/connectivity/source/drivers/hsqldb/HUser.cxx
+++ b/connectivity/source/drivers/hsqldb/HUser.cxx
@@ -35,13 +35,13 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
OHSQLUser::OHSQLUser( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xConnection) : connectivity::sdbcx::OUser(sal_True)
,m_xConnection(_xConnection)
{
construct();
}
-// -------------------------------------------------------------------------
+
OHSQLUser::OHSQLUser( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xConnection,
const OUString& _Name
) : connectivity::sdbcx::OUser(_Name,sal_True)
@@ -49,34 +49,34 @@ OHSQLUser::OHSQLUser( const ::com::sun::star::uno::Reference< ::com::sun::star
{
construct();
}
-// -------------------------------------------------------------------------
+
void OHSQLUser::refreshGroups()
{
}
-// -------------------------------------------------------------------------
+
OUserExtend::OUserExtend( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xConnection) : OHSQLUser(_xConnection)
{
construct();
}
-// -------------------------------------------------------------------------
+
void OUserExtend::construct()
{
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PASSWORD), PROPERTY_ID_PASSWORD,0,&m_Password,::getCppuType(static_cast< OUString*>(0)));
}
-// -----------------------------------------------------------------------------
+
cppu::IPropertyArrayHelper* OUserExtend::createArrayHelper() const
{
Sequence< Property > aProps;
describeProperties(aProps);
return new cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
cppu::IPropertyArrayHelper & OUserExtend::getInfoHelper()
{
return *OUserExtend_PROP::getArrayHelper();
}
typedef connectivity::sdbcx::OUser_BASE OUser_BASE_RBHELPER;
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OHSQLUser::getPrivileges( const OUString& objName, sal_Int32 objType ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -86,7 +86,7 @@ sal_Int32 SAL_CALL OHSQLUser::getPrivileges( const OUString& objName, sal_Int32
findPrivilegesAndGrantPrivileges(objName,objType,nRights,nRightsWithGrant);
return nRights;
}
-// -----------------------------------------------------------------------------
+
void OHSQLUser::findPrivilegesAndGrantPrivileges(const OUString& objName, sal_Int32 objType,sal_Int32& nRights,sal_Int32& nRightsWithGrant) throw(SQLException, RuntimeException)
{
nRightsWithGrant = nRights = 0;
@@ -200,7 +200,7 @@ void OHSQLUser::findPrivilegesAndGrantPrivileges(const OUString& objName, sal_In
::comphelper::disposeComponent(xRes);
}
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OHSQLUser::getGrantablePrivileges( const OUString& objName, sal_Int32 objType ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -210,7 +210,7 @@ sal_Int32 SAL_CALL OHSQLUser::getGrantablePrivileges( const OUString& objName, s
findPrivilegesAndGrantPrivileges(objName,objType,nRights,nRightsWithGrant);
return nRightsWithGrant;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OHSQLUser::grantPrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(SQLException, RuntimeException)
{
if ( objType != PrivilegeObject::TABLE )
@@ -237,7 +237,7 @@ void SAL_CALL OHSQLUser::grantPrivileges( const OUString& objName, sal_Int32 obj
::comphelper::disposeComponent(xStmt);
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OHSQLUser::revokePrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(SQLException, RuntimeException)
{
if ( objType != PrivilegeObject::TABLE )
@@ -263,7 +263,7 @@ void SAL_CALL OHSQLUser::revokePrivileges( const OUString& objName, sal_Int32 ob
::comphelper::disposeComponent(xStmt);
}
}
-// -----------------------------------------------------------------------------
+
// XUser
void SAL_CALL OHSQLUser::changePassword( const OUString& /*oldPassword*/, const OUString& newPassword ) throw(SQLException, RuntimeException)
{
@@ -287,7 +287,7 @@ void SAL_CALL OHSQLUser::changePassword( const OUString& /*oldPassword*/, const
::comphelper::disposeComponent(xStmt);
}
}
-// -----------------------------------------------------------------------------
+
OUString OHSQLUser::getPrivilegeString(sal_Int32 nRights) const
{
OUString sPrivs;
@@ -331,6 +331,6 @@ OUString OHSQLUser::getPrivilegeString(sal_Int32 nRights) const
return sPrivs;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/hsqldb/HUsers.cxx b/connectivity/source/drivers/hsqldb/HUsers.cxx
index abf698d86333..ffb34e7b00d8 100644
--- a/connectivity/source/drivers/hsqldb/HUsers.cxx
+++ b/connectivity/source/drivers/hsqldb/HUsers.cxx
@@ -47,24 +47,24 @@ OUsers::OUsers( ::cppu::OWeakObject& _rParent,
,m_pParent(_pParent)
{
}
-// -----------------------------------------------------------------------------
+
sdbcx::ObjectType OUsers::createObject(const OUString& _rName)
{
return new OHSQLUser(m_xConnection,_rName);
}
-// -------------------------------------------------------------------------
+
void OUsers::impl_refresh() throw(RuntimeException)
{
m_pParent->refreshUsers();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OUsers::createDescriptor()
{
OUserExtend* pNew = new OUserExtend(m_xConnection);
return pNew;
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OUsers::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
@@ -85,7 +85,7 @@ sdbcx::ObjectType OUsers::appendObject( const OUString& _rForName, const Referen
return createObject( _rForName );
}
-// -------------------------------------------------------------------------
+
// XDrop
void OUsers::dropObject(sal_Int32 /*nPos*/,const OUString _sElementName)
{
@@ -101,6 +101,6 @@ void OUsers::dropObject(sal_Int32 /*nPos*/,const OUString _sElementName)
}
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/hsqldb/HView.cxx b/connectivity/source/drivers/hsqldb/HView.cxx
index dc640e16c588..45fc642fdf65 100644
--- a/connectivity/source/drivers/hsqldb/HView.cxx
+++ b/connectivity/source/drivers/hsqldb/HView.cxx
@@ -58,7 +58,7 @@ namespace connectivity { namespace hsqldb
//====================================================================
//= HView
//====================================================================
- //--------------------------------------------------------------------
+
HView::HView( const Reference< XConnection >& _rxConnection, sal_Bool _bCaseSensitive,
const OUString& _rSchemaName, const OUString& _rName )
:HView_Base( _bCaseSensitive, _rName, _rxConnection->getMetaData(), 0, OUString(), _rSchemaName, OUString() )
@@ -66,16 +66,16 @@ namespace connectivity { namespace hsqldb
{
}
- //--------------------------------------------------------------------
+
HView::~HView()
{
}
- //--------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( HView, HView_Base, HView_IBASE )
IMPLEMENT_FORWARD_XTYPEPROVIDER2( HView, HView_Base, HView_IBASE )
- //--------------------------------------------------------------------
+
void SAL_CALL HView::alterCommand( const OUString& _rNewCommand ) throw (SQLException, RuntimeException)
{
// not really atomic ... as long as we do not have something like
@@ -143,7 +143,7 @@ namespace connectivity { namespace hsqldb
}
}
- //--------------------------------------------------------------------
+
void SAL_CALL HView::getFastPropertyValue( Any& _rValue, sal_Int32 _nHandle ) const
{
if ( _nHandle == PROPERTY_ID_COMMAND )
@@ -157,7 +157,7 @@ namespace connectivity { namespace hsqldb
HView_Base::getFastPropertyValue( _rValue, _nHandle );
}
- //--------------------------------------------------------------------
+
OUString HView::impl_getCommand_throw( bool _bAllowSQLException ) const
{
OUString sCommand;
diff --git a/connectivity/source/drivers/hsqldb/HViews.cxx b/connectivity/source/drivers/hsqldb/HViews.cxx
index 3a91dd8b7289..ef3922e9cdaf 100644
--- a/connectivity/source/drivers/hsqldb/HViews.cxx
+++ b/connectivity/source/drivers/hsqldb/HViews.cxx
@@ -49,7 +49,7 @@ using namespace ::com::sun::star::lang;
using namespace dbtools;
typedef connectivity::sdbcx::OCollection OCollection_TYPE;
-// -------------------------------------------------------------------------
+
HViews::HViews( const Reference< XConnection >& _rxConnection, ::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex,
const TStringVector &_rVector )
:sdbcx::OCollection( _rParent, sal_True, _rMutex, _rVector )
@@ -59,7 +59,7 @@ HViews::HViews( const Reference< XConnection >& _rxConnection, ::cppu::OWeakObje
{
}
-// -------------------------------------------------------------------------
+
sdbcx::ObjectType HViews::createObject(const OUString& _rName)
{
OUString sCatalog,sSchema,sTable;
@@ -72,32 +72,32 @@ sdbcx::ObjectType HViews::createObject(const OUString& _rName)
return new HView( m_xConnection, isCaseSensitive(), sSchema, sTable );
}
-// -------------------------------------------------------------------------
+
void HViews::impl_refresh( ) throw(RuntimeException)
{
static_cast<OHCatalog&>(m_rParent).refreshTables();
}
-// -------------------------------------------------------------------------
+
void HViews::disposing(void)
{
m_xMetaData.clear();
OCollection::disposing();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > HViews::createDescriptor()
{
Reference<XConnection> xConnection = static_cast<OHCatalog&>(m_rParent).getConnection();
connectivity::sdbcx::OView* pNew = new connectivity::sdbcx::OView(sal_True,xConnection->getMetaData());
return pNew;
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType HViews::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
createView(descriptor);
return createObject( _rForName );
}
-// -------------------------------------------------------------------------
+
// XDrop
void HViews::dropObject(sal_Int32 _nPos,const OUString /*_sElementName*/)
{
@@ -119,14 +119,14 @@ void HViews::dropObject(sal_Int32 _nPos,const OUString /*_sElementName*/)
::comphelper::disposeComponent(xStmt);
}
}
-// -----------------------------------------------------------------------------
+
void HViews::dropByNameImpl(const OUString& elementName)
{
m_bInDrop = sal_True;
OCollection_TYPE::dropByName(elementName);
m_bInDrop = sal_False;
}
-// -----------------------------------------------------------------------------
+
void HViews::createView( const Reference< XPropertySet >& descriptor )
{
Reference<XConnection> xConnection = static_cast<OHCatalog&>(m_rParent).getConnection();
@@ -153,6 +153,6 @@ void HViews::createView( const Reference< XPropertySet >& descriptor )
pTables->appendNew(sName);
}
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/hsqldb/Hservices.cxx b/connectivity/source/drivers/hsqldb/Hservices.cxx
index c96e3da55559..ccc8f28ebbc8 100644
--- a/connectivity/source/drivers/hsqldb/Hservices.cxx
+++ b/connectivity/source/drivers/hsqldb/Hservices.cxx
@@ -36,7 +36,7 @@ typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
rtl_ModuleCount*
);
-//---------------------------------------------------------------------------------------
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
@@ -76,7 +76,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
-//---------------------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL hsqldb_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/hsqldb/StorageFileAccess.cxx b/connectivity/source/drivers/hsqldb/StorageFileAccess.cxx
index e5bbab94aab4..a39f617e416f 100644
--- a/connectivity/source/drivers/hsqldb/StorageFileAccess.cxx
+++ b/connectivity/source/drivers/hsqldb/StorageFileAccess.cxx
@@ -85,7 +85,7 @@ SAL_JNI_EXPORT jboolean JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageFileA
}
return JNI_FALSE;
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageFileAccess
@@ -120,7 +120,7 @@ SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageFileAcces
}
}
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageFileAccess
@@ -163,6 +163,6 @@ SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageFileAcces
}
}
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx b/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx
index 099a6176e952..1f127c95f38e 100644
--- a/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx
+++ b/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx
@@ -67,7 +67,7 @@ SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInp
#endif
StorageContainer::registerStream(env,name,key,mode);
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream
@@ -86,7 +86,7 @@ SAL_JNI_EXPORT jint JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInp
return read_from_storage_stream( env, obj_this, name, key );
#endif
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream
@@ -105,7 +105,7 @@ SAL_JNI_EXPORT jint JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInp
return read_from_storage_stream_into_buffer(env,obj_this,name,key,buffer,off,len);
#endif
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream
@@ -125,7 +125,7 @@ SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInp
#endif
StorageContainer::revokeStream(env,name,key);
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream
@@ -191,7 +191,7 @@ SAL_JNI_EXPORT jlong JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeIn
}
return 0;
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream
@@ -233,7 +233,7 @@ SAL_JNI_EXPORT jint JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInp
}
return 0;
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream
@@ -291,6 +291,6 @@ SAL_JNI_EXPORT jint JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInp
#endif
return nBytesRead;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/hsqldb/StorageNativeOutputStream.cxx b/connectivity/source/drivers/hsqldb/StorageNativeOutputStream.cxx
index 9b677a0fd7f9..7a6765f724b5 100644
--- a/connectivity/source/drivers/hsqldb/StorageNativeOutputStream.cxx
+++ b/connectivity/source/drivers/hsqldb/StorageNativeOutputStream.cxx
@@ -50,7 +50,7 @@ using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::connectivity::hsqldb;
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream
* Method: openStream
@@ -84,7 +84,7 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_Stora
write_to_storage_stream_from_buffer( env, obj_this, name, key, buffer, off, len );
#endif
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream
* Method: write
@@ -102,7 +102,7 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_Stora
write_to_storage_stream_from_buffer( env, obj_this, name, key, buffer, 0, env->GetArrayLength( buffer ) );
#endif
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream
* Method: close
@@ -134,7 +134,7 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_Stora
#endif
StorageContainer::revokeStream(env,name,key);
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream
* Method: write
@@ -152,7 +152,7 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_Stora
write_to_storage_stream( env, obj_this, name, key, b );
#endif
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream
* Method: flush
@@ -171,7 +171,7 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_Stora
OUString sName = StorageContainer::jstring2ustring(env,name);
#endif
}
-// -----------------------------------------------------------------------------
+
/*
* Class: com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream
* Method: sync
@@ -198,6 +198,6 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_Stora
}
}
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/hsqldb/accesslog.cxx b/connectivity/source/drivers/hsqldb/accesslog.cxx
index 18b7d05d749f..880600a71d5a 100644
--- a/connectivity/source/drivers/hsqldb/accesslog.cxx
+++ b/connectivity/source/drivers/hsqldb/accesslog.cxx
@@ -37,14 +37,14 @@ namespace connectivity { namespace hsqldb
return streams;
}
- //---------------------------------------------------------------------
+
LogFile::LogFile( JNIEnv* env, jstring streamName, const sal_Char* _pAsciiSuffix )
{
m_sFileName = StorageContainer::jstring2ustring(env,streamName) +
"." + OUString::createFromAscii( _pAsciiSuffix );
}
- //---------------------------------------------------------------------
+
FILE*& LogFile::getLogFile()
{
FILE*& pLogFile = getStreams()[m_sFileName];
@@ -56,7 +56,7 @@ namespace connectivity { namespace hsqldb
return pLogFile;
}
- //---------------------------------------------------------------------
+
void LogFile::writeString( const sal_Char* _pString, bool _bEndLine )
{
FILE* pLogFile = getLogFile();
@@ -66,7 +66,7 @@ namespace connectivity { namespace hsqldb
fflush( pLogFile );
}
- //---------------------------------------------------------------------
+
void LogFile::close()
{
fclose( getLogFile() );
diff --git a/connectivity/source/drivers/jdbc/CallableStatement.cxx b/connectivity/source/drivers/jdbc/CallableStatement.cxx
index 50cce64578f8..83ab8985f93b 100644
--- a/connectivity/source/drivers/jdbc/CallableStatement.cxx
+++ b/connectivity/source/drivers/jdbc/CallableStatement.cxx
@@ -47,18 +47,18 @@ java_sql_CallableStatement::java_sql_CallableStatement( JNIEnv * pEnv, java_sql_
: java_sql_PreparedStatement( pEnv, _rCon, sql )
{
}
-// -----------------------------------------------------------------------------
+
java_sql_CallableStatement::~java_sql_CallableStatement()
{
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL java_sql_CallableStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = java_sql_PreparedStatement::queryInterface(rType);
return aRet.hasValue() ? aRet : ::cppu::queryInterface(rType,static_cast< starsdbc::XRow*>(this),static_cast< starsdbc::XOutParameters*>(this));
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL java_sql_CallableStatement::getTypes( ) throw(::com::sun::star::uno::RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const ::com::sun::star::uno::Reference< starsdbc::XRow > *)0 ),
@@ -66,7 +66,7 @@ Any SAL_CALL java_sql_CallableStatement::queryInterface( const Type & rType ) th
return ::comphelper::concatSequences(aTypes.getTypes(),java_sql_PreparedStatement::getTypes());
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_CallableStatement::wasNull( ) throw(starsdbc::SQLException, RuntimeException)
{
SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
@@ -300,17 +300,17 @@ Reference< starsdbc::XRef > SAL_CALL java_sql_CallableStatement::getRef( sal_Int
// WARNING: the caller becomes the owner of the returned pointer
return out==0 ? 0 : new java_sql_Ref( t.pEnv, out );
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL java_sql_CallableStatement::acquire() throw()
{
java_sql_PreparedStatement::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL java_sql_CallableStatement::release() throw()
{
java_sql_PreparedStatement::release();
}
-// -----------------------------------------------------------------------------
+
void java_sql_CallableStatement::createStatement(JNIEnv* /*_pEnv*/)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -347,7 +347,7 @@ void java_sql_CallableStatement::createStatement(JNIEnv* /*_pEnv*/)
object = t.pEnv->NewGlobalRef( out );
} //t.pEnv
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/jdbc/ConnectionLog.cxx b/connectivity/source/drivers/jdbc/ConnectionLog.cxx
index 0216ad23186a..c8574f2e87e7 100644
--- a/connectivity/source/drivers/jdbc/ConnectionLog.cxx
+++ b/connectivity/source/drivers/jdbc/ConnectionLog.cxx
@@ -33,7 +33,7 @@ namespace connectivity { namespace java { namespace sql {
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::XComponentContext;
- //--------------------------------------------------------------------
+
namespace
{
sal_Int32 lcl_getFreeID( ConnectionLog::ObjectType _eType )
@@ -46,21 +46,21 @@ namespace connectivity { namespace java { namespace sql {
//====================================================================
//= ConnectionLog
//====================================================================
- //--------------------------------------------------------------------
+
ConnectionLog::ConnectionLog( const ::comphelper::ResourceBasedEventLogger& _rDriverLog )
:ConnectionLog_Base( _rDriverLog )
,m_nObjectID( lcl_getFreeID( CONNECTION ) )
{
}
- //--------------------------------------------------------------------
+
ConnectionLog::ConnectionLog( const ConnectionLog& _rSourceLog )
:ConnectionLog_Base( _rSourceLog )
,m_nObjectID( _rSourceLog.m_nObjectID )
{
}
- //--------------------------------------------------------------------
+
ConnectionLog::ConnectionLog( const ConnectionLog& _rSourceLog, ConnectionLog::ObjectType _eType )
:ConnectionLog_Base( _rSourceLog )
,m_nObjectID( lcl_getFreeID( _eType ) )
@@ -82,7 +82,7 @@ namespace comphelper { namespace log { namespace convert
using ::com::sun::star::util::Time;
using ::com::sun::star::util::DateTime;
- //--------------------------------------------------------------------
+
OUString convertLogArgToString( const Date& _rDate )
{
char buffer[ 30 ];
@@ -92,7 +92,7 @@ namespace comphelper { namespace log { namespace convert
return OUString::createFromAscii( buffer );
}
- //--------------------------------------------------------------------
+
OUString convertLogArgToString( const Time& _rTime )
{
char buffer[ 30 ];
@@ -102,7 +102,7 @@ namespace comphelper { namespace log { namespace convert
return OUString::createFromAscii( buffer );
}
- //--------------------------------------------------------------------
+
OUString convertLogArgToString( const DateTime& _rDateTime )
{
char buffer[ 30 ];
diff --git a/connectivity/source/drivers/jdbc/ContextClassLoader.cxx b/connectivity/source/drivers/jdbc/ContextClassLoader.cxx
index 544fdbc5ae7f..f92c541b67fe 100644
--- a/connectivity/source/drivers/jdbc/ContextClassLoader.cxx
+++ b/connectivity/source/drivers/jdbc/ContextClassLoader.cxx
@@ -33,7 +33,7 @@ namespace connectivity { namespace jdbc
//====================================================================
//= ContextClassLoaderScope
//====================================================================
- //--------------------------------------------------------------------
+
ContextClassLoaderScope::ContextClassLoaderScope( JNIEnv& environment, const GlobalRef< jobject >& newClassLoader,
const ::comphelper::ResourceBasedEventLogger& _rLoggerForErrors, const Reference< XInterface >& _rxErrorContext )
:m_environment( environment )
@@ -95,7 +95,7 @@ namespace connectivity { namespace jdbc
}
}
- //--------------------------------------------------------------------
+
void ContextClassLoaderScope::pop( bool clearExceptions )
{
if ( isActive() )
diff --git a/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx b/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx
index f563c51b0ad4..f567486d1796 100644
--- a/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx
+++ b/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx
@@ -57,7 +57,7 @@ jclass java_sql_DatabaseMetaData::getMyClass() const
theClass = findMyClass("java/sql/DatabaseMetaData");
return theClass;
}
-// -----------------------------------------------------------------------------
+
java_sql_DatabaseMetaData::java_sql_DatabaseMetaData( JNIEnv * pEnv, jobject myObj, java_sql_Connection& _rConnection )
:ODatabaseMetaDataBase( &_rConnection,_rConnection.getConnectionInfo() )
,java_lang_Object( pEnv, myObj )
@@ -67,38 +67,38 @@ java_sql_DatabaseMetaData::java_sql_DatabaseMetaData( JNIEnv * pEnv, jobject myO
SDBThreadAttach::addRef();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > java_sql_DatabaseMetaData::impl_getTypeInfo_throw( )
{
static jmethodID mID(NULL);
return impl_callResultSetMethod( "getTypeInfo", mID );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getCatalogs( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callResultSetMethod( "getCatalogs", mID );
}
-// -------------------------------------------------------------------------
+
OUString java_sql_DatabaseMetaData::impl_getCatalogSeparator_throw( )
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getCatalogSeparator", mID );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getSchemas( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callResultSetMethod( "getSchemas", mID );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getColumnPrivileges(
const Any& catalog, const OUString& schema, const OUString& table, const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callResultSetMethodWithStrings( "getColumnPrivileges", mID, catalog, schema, table, &columnNamePattern );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getColumns(
const Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern, const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
{
@@ -106,7 +106,7 @@ Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getColumns(
return impl_callResultSetMethodWithStrings( "getColumns", mID, catalog, schemaPattern, tableNamePattern, &columnNamePattern );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getTables(
const Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern, const Sequence< OUString >& _types ) throw(SQLException, RuntimeException)
{
@@ -220,121 +220,121 @@ Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getTables(
m_aLogger.log( LogLevel::FINEST, STR_LOG_META_DATA_SUCCESS, cMethodName );
return new java_sql_ResultSet( t.pEnv, out, m_aLogger,*m_pConnection);
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getProcedureColumns(
const Any& catalog, const OUString& schemaPattern, const OUString& procedureNamePattern, const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callResultSetMethodWithStrings( "getProcedureColumns", mID, catalog, schemaPattern, procedureNamePattern, &columnNamePattern );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getProcedures( const Any&
catalog, const OUString& schemaPattern, const OUString& procedureNamePattern ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callResultSetMethodWithStrings( "getProcedures", mID, catalog, schemaPattern, procedureNamePattern );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getVersionColumns(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callResultSetMethodWithStrings( "getVersionColumns", mID, catalog, schema, table );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxBinaryLiteralLength", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxRowSize( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxRowSize", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxCatalogNameLength( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxCatalogNameLength", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxCharLiteralLength( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxCharLiteralLength", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxColumnNameLength( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxColumnNameLength", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxColumnsInIndex( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxColumnsInIndex", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxCursorNameLength( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxCursorNameLength", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxConnections( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxConnections", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxColumnsInTable( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxColumnsInTable", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxStatementLength( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxStatementLength", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxTableNameLength( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxTableNameLength", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 java_sql_DatabaseMetaData::impl_getMaxTablesInSelect_throw( )
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxTablesInSelect", mID );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getExportedKeys(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callResultSetMethodWithStrings( "getExportedKeys", mID, catalog, schema, table );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getImportedKeys(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callResultSetMethodWithStrings( "getImportedKeys", mID, catalog, schema, table );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getPrimaryKeys(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callResultSetMethodWithStrings( "getPrimaryKeys", mID, catalog, schema, table );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getIndexInfo(
const Any& catalog, const OUString& schema, const OUString& table,
sal_Bool unique, sal_Bool approximate ) throw(SQLException, RuntimeException)
@@ -375,7 +375,7 @@ Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getIndexInfo(
m_aLogger.log( LogLevel::FINEST, STR_LOG_META_DATA_SUCCESS, cMethodName );
return new java_sql_ResultSet( t.pEnv, out, m_aLogger,*m_pConnection);
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getBestRowIdentifier(
const Any& catalog, const OUString& schema, const OUString& table, sal_Int32 scope,
sal_Bool nullable ) throw(SQLException, RuntimeException)
@@ -415,7 +415,7 @@ Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getBestRowIdentifier
m_aLogger.log( LogLevel::FINEST, STR_LOG_META_DATA_SUCCESS, cMethodName );
return new java_sql_ResultSet( t.pEnv, out, m_aLogger,*m_pConnection);
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getTablePrivileges(
const Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern ) throw(SQLException, RuntimeException)
{
@@ -491,7 +491,7 @@ Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getTablePrivileges(
}
return xReturn;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getCrossReference(
const Any& primaryCatalog, const OUString& primarySchema,
const OUString& primaryTable, const Any& foreignCatalog,
@@ -541,7 +541,7 @@ Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getCrossReference(
return new java_sql_ResultSet( t.pEnv, out, m_aLogger,*m_pConnection);
}
-// -------------------------------------------------------------------------
+
sal_Bool java_sql_DatabaseMetaData::impl_callBooleanMethod( const char* _pMethodName, jmethodID& _inout_MethodID )
{
m_aLogger.log( LogLevel::FINEST, STR_LOG_META_DATA_METHOD, _pMethodName );
@@ -550,7 +550,7 @@ sal_Bool java_sql_DatabaseMetaData::impl_callBooleanMethod( const char* _pMethod
return out;
}
-// -------------------------------------------------------------------------
+
OUString java_sql_DatabaseMetaData::impl_callStringMethod( const char* _pMethodName, jmethodID& _inout_MethodID )
{
m_aLogger.log( LogLevel::FINEST, STR_LOG_META_DATA_METHOD, _pMethodName );
@@ -567,7 +567,7 @@ OUString java_sql_DatabaseMetaData::impl_callStringMethod( const char* _pMethodN
return sReturn;
}
-// -------------------------------------------------------------------------
+
sal_Int32 java_sql_DatabaseMetaData::impl_callIntMethod( const char* _pMethodName, jmethodID& _inout_MethodID )
{
m_aLogger.log( LogLevel::FINEST, STR_LOG_META_DATA_METHOD, _pMethodName );
@@ -576,7 +576,7 @@ sal_Int32 java_sql_DatabaseMetaData::impl_callIntMethod( const char* _pMethodNam
return out;
}
-// -------------------------------------------------------------------------
+
sal_Bool java_sql_DatabaseMetaData::impl_callBooleanMethodWithIntArg( const char* _pMethodName, jmethodID& _inout_MethodID, sal_Int32 _nArgument )
{
m_aLogger.log( LogLevel::FINEST, STR_LOG_META_DATA_METHOD_ARG1, _pMethodName, _nArgument );
@@ -587,7 +587,7 @@ sal_Bool java_sql_DatabaseMetaData::impl_callBooleanMethodWithIntArg( const char
return out;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > java_sql_DatabaseMetaData::impl_callResultSetMethod( const char* _pMethodName, jmethodID& _inout_MethodID )
{
SDBThreadAttach t;
@@ -597,7 +597,7 @@ Reference< XResultSet > java_sql_DatabaseMetaData::impl_callResultSetMethod( con
return new java_sql_ResultSet( t.pEnv, out, m_aLogger,*m_pConnection);
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > java_sql_DatabaseMetaData::impl_callResultSetMethodWithStrings( const char* _pMethodName, jmethodID& _inout_MethodID,
const Any& _rCatalog, const OUString& _rSchemaPattern, const OUString& _rLeastPattern,
const OUString* _pOptionalAdditionalString )
@@ -668,326 +668,326 @@ Reference< XResultSet > java_sql_DatabaseMetaData::impl_callResultSetMethodWithS
return new java_sql_ResultSet( t.pEnv, out, m_aLogger,*m_pConnection);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "doesMaxRowSizeIncludeBlobs", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "storesLowerCaseQuotedIdentifiers", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "storesLowerCaseIdentifiers", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool java_sql_DatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( )
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "storesMixedCaseQuotedIdentifiers", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "storesMixedCaseIdentifiers", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "storesUpperCaseQuotedIdentifiers", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "storesUpperCaseIdentifiers", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool java_sql_DatabaseMetaData::impl_supportsAlterTableWithAddColumn_throw( )
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsAlterTableWithAddColumn", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool java_sql_DatabaseMetaData::impl_supportsAlterTableWithDropColumn_throw( )
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsAlterTableWithDropColumn", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxIndexLength", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsNonNullableColumns", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getCatalogTerm", mID );
}
-// -------------------------------------------------------------------------
+
OUString java_sql_DatabaseMetaData::impl_getIdentifierQuoteString_throw( )
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getIdentifierQuoteString", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getExtraNameCharacters( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getExtraNameCharacters", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsDifferentTableCorrelationNames", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool java_sql_DatabaseMetaData::impl_isCatalogAtStart_throw( )
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "isCatalogAtStart", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "dataDefinitionIgnoredInTransactions", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "dataDefinitionCausesTransactionCommit", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsDataManipulationTransactionsOnly", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsDataDefinitionAndDataManipulationTransactions", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsPositionedDelete", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsPositionedUpdate", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsOpenStatementsAcrossRollback", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsOpenStatementsAcrossCommit", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsOpenCursorsAcrossCommit", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsOpenCursorsAcrossRollback", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 level ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethodWithIntArg( "supportsTransactionIsolationLevel", mID, level );
}
-// -------------------------------------------------------------------------
+
sal_Bool java_sql_DatabaseMetaData::impl_supportsSchemasInDataManipulation_throw( )
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsSchemasInDataManipulation", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsANSI92FullSQL", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsANSI92EntryLevelSQL", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsIntegrityEnhancementFacility", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsSchemasInIndexDefinitions", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool java_sql_DatabaseMetaData::impl_supportsSchemasInTableDefinitions_throw( )
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsSchemasInTableDefinitions", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool java_sql_DatabaseMetaData::impl_supportsCatalogsInTableDefinitions_throw( )
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsCatalogsInTableDefinitions", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsCatalogsInIndexDefinitions", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool java_sql_DatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( )
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsCatalogsInDataManipulation", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsOuterJoins", mID );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callResultSetMethod( "getTableTypes", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 java_sql_DatabaseMetaData::impl_getMaxStatements_throw( )
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxStatements", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxProcedureNameLength( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxProcedureNameLength", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxSchemaNameLength", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsTransactions", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "allProceduresAreCallable", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsStoredProcedures", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsSelectForUpdate", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "allTablesAreSelectable", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "isReadOnly", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "usesLocalFiles", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "usesLocalFilePerTable", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsTypeConversion", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "nullPlusNonNullIsNull", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsColumnAliasing", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsTableCorrelationNames", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsConvert( sal_Int32 fromType, sal_Int32 toType ) throw(SQLException, RuntimeException)
{
static const char* pMethodName = "supportsConvert";
@@ -1006,163 +1006,163 @@ sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsConvert( sal_Int32 fromType
m_aLogger.log< const sal_Char*, sal_Int16 >( LogLevel::FINEST, STR_LOG_META_DATA_RESULT, pMethodName, out );
return out;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsExpressionsInOrderBy", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsGroupBy", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsGroupByBeyondSelect", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsGroupByUnrelated", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsMultipleTransactions", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsMultipleResultSets", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsLikeEscapeClause", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsOrderByUnrelated", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsUnion", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsUnionAll", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsMixedCaseIdentifiers", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool java_sql_DatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( )
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsMixedCaseQuotedIdentifiers", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "nullsAreSortedAtEnd", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "nullsAreSortedAtStart", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "nullsAreSortedHigh", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "nullsAreSortedLow", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsSchemasInProcedureCalls", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsSchemasInPrivilegeDefinitions", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsCatalogsInProcedureCalls", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsCatalogsInPrivilegeDefinitions", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsCorrelatedSubqueries", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsSubqueriesInComparisons", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsSubqueriesInExists", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsSubqueriesInIns", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsSubqueriesInQuantifieds", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsANSI92IntermediateSQL", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getURL( ) throw(SQLException, RuntimeException)
{
OUString sURL = m_pConnection->getURL();
@@ -1173,163 +1173,163 @@ OUString SAL_CALL java_sql_DatabaseMetaData::getURL( ) throw(SQLException, Runt
}
return sURL;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getUserName( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getUserName", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getDriverName( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getDriverName", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getDriverVersion( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getDriverVersion", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getDatabaseProductVersion( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getDatabaseProductVersion", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getDatabaseProductName( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getDatabaseProductName", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getProcedureTerm( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getProcedureTerm", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getSchemaTerm( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getSchemaTerm", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getDriverMajorVersion( ) throw(RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getDriverMajorVersion", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getDefaultTransactionIsolation( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getDefaultTransactionIsolation", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getDriverMinorVersion", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getSQLKeywords( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getSQLKeywords", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getSearchStringEscape( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getSearchStringEscape", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getStringFunctions( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getStringFunctions", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getTimeDateFunctions( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getTimeDateFunctions", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getSystemFunctions( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getSystemFunctions", mID );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_DatabaseMetaData::getNumericFunctions( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callStringMethod( "getNumericFunctions", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsExtendedSQLGrammar", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsCoreSQLGrammar", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsMinimumSQLGrammar", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsFullOuterJoins", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsLimitedOuterJoins", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxColumnsInGroupBy", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxColumnsInOrderBy( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxColumnsInOrderBy", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxColumnsInSelect( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxColumnsInSelect", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_DatabaseMetaData::getMaxUserNameLength( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callIntMethod( "getMaxUserNameLength", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsResultSetType( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethodWithIntArg( "supportsResultSetType", mID, setType );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 concurrency ) throw(SQLException, RuntimeException)
{
static const char* pMethodName = "supportsResultSetConcurrency";
@@ -1348,67 +1348,67 @@ sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsResultSetConcurrency( sal_I
m_aLogger.log< const sal_Char*, sal_Int16 >( LogLevel::FINEST, STR_LOG_META_DATA_RESULT, pMethodName, out );
return out;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::ownUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethodWithIntArg( "ownUpdatesAreVisible", mID, setType );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::ownDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethodWithIntArg( "ownDeletesAreVisible", mID, setType );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::ownInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethodWithIntArg( "ownInsertsAreVisible", mID, setType );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::othersUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethodWithIntArg( "othersUpdatesAreVisible", mID, setType );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::othersDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethodWithIntArg( "othersDeletesAreVisible", mID, setType );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::othersInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethodWithIntArg( "othersInsertsAreVisible", mID, setType );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::updatesAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethodWithIntArg( "updatesAreDetected", mID, setType );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::deletesAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethodWithIntArg( "deletesAreDetected", mID, setType );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::insertsAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethodWithIntArg( "insertsAreDetected", mID, setType );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_callBooleanMethod( "supportsBatchUpdates", mID );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getUDTs(
const Any& catalog, const OUString& schemaPattern, const OUString& typeNamePattern,
const Sequence< sal_Int32 >& types ) throw(SQLException, RuntimeException)
@@ -1449,6 +1449,6 @@ Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getUDTs(
return out ? new java_sql_ResultSet( t.pEnv, out, m_aLogger,*m_pConnection ) : 0;
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/jdbc/Date.cxx b/connectivity/source/drivers/jdbc/Date.cxx
index c124450cdf8c..ec3f45fc6344 100644
--- a/connectivity/source/drivers/jdbc/Date.cxx
+++ b/connectivity/source/drivers/jdbc/Date.cxx
@@ -38,7 +38,7 @@ jclass java_util_Date::getMyClass() const
return theClass;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/jdbc/DriverPropertyInfo.cxx b/connectivity/source/drivers/jdbc/DriverPropertyInfo.cxx
index f510d8cc93d9..956cad32fb82 100644
--- a/connectivity/source/drivers/jdbc/DriverPropertyInfo.cxx
+++ b/connectivity/source/drivers/jdbc/DriverPropertyInfo.cxx
@@ -35,10 +35,10 @@ using namespace ::com::sun::star::lang;
//**************************************************************
jclass java_sql_DriverPropertyInfo::theClass = 0;
-// --------------------------------------------------------------------------------
+
java_sql_DriverPropertyInfo::~java_sql_DriverPropertyInfo()
{}
-// --------------------------------------------------------------------------------
+
jclass java_sql_DriverPropertyInfo::getMyClass() const
{
// the class must be fetched only once, therefore static
@@ -47,7 +47,7 @@ jclass java_sql_DriverPropertyInfo::getMyClass() const
return theClass;
}
-// --------------------------------------------------------------------------------
+
java_sql_DriverPropertyInfo::operator starsdbc::DriverPropertyInfo()
{
starsdbc::DriverPropertyInfo aInfo;
@@ -59,7 +59,7 @@ java_sql_DriverPropertyInfo::operator starsdbc::DriverPropertyInfo()
return aInfo;
}
-// --------------------------------------------------------------------------------
+
OUString java_sql_DriverPropertyInfo::name()
{
OUString aStr;
@@ -72,7 +72,7 @@ OUString java_sql_DriverPropertyInfo::name()
} //t.pEnv
return aStr;
}
-// --------------------------------------------------------------------------------
+
OUString java_sql_DriverPropertyInfo::description()
{
OUString aStr;
@@ -85,7 +85,7 @@ OUString java_sql_DriverPropertyInfo::description()
} //t.pEnv
return aStr;
}
-// --------------------------------------------------------------------------------
+
OUString java_sql_DriverPropertyInfo::value()
{
OUString aStr;
@@ -98,7 +98,7 @@ OUString java_sql_DriverPropertyInfo::value()
} //t.pEnv
return aStr;
}
-// --------------------------------------------------------------------------------
+
sal_Bool java_sql_DriverPropertyInfo::required()
{
jboolean out(0);
@@ -111,7 +111,7 @@ sal_Bool java_sql_DriverPropertyInfo::required()
} //t.pEnv
return out;
}
-// --------------------------------------------------------------------------------
+
Sequence< OUString> java_sql_DriverPropertyInfo::choices()
{
SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
@@ -127,6 +127,6 @@ Sequence< OUString> java_sql_DriverPropertyInfo::choices()
} //t.pEnv
return Sequence< OUString>();
}
-// --------------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/jdbc/InputStream.cxx b/connectivity/source/drivers/jdbc/InputStream.cxx
index 810a1aee9896..3ed09d08f1c5 100644
--- a/connectivity/source/drivers/jdbc/InputStream.cxx
+++ b/connectivity/source/drivers/jdbc/InputStream.cxx
@@ -75,7 +75,7 @@ void SAL_CALL java_io_InputStream::closeInput( ) throw(::com::sun::star::io::No
static jmethodID mID(NULL);
callVoidMethod("close",mID);
}
-// -----------------------------------------------------
+
sal_Int32 SAL_CALL java_io_InputStream::readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
{
if (nBytesToRead < 0)
diff --git a/connectivity/source/drivers/jdbc/JConnection.cxx b/connectivity/source/drivers/jdbc/JConnection.cxx
index 4c7a3a9ab0ae..7de8a6b3814a 100644
--- a/connectivity/source/drivers/jdbc/JConnection.cxx
+++ b/connectivity/source/drivers/jdbc/JConnection.cxx
@@ -249,9 +249,9 @@ bool loadClass(
}
-//------------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(java_sql_Connection,"com.sun.star.sdbcx.JConnection","com.sun.star.sdbc.Connection");
-//------------------------------------------------------------------------------
+
//**************************************************************
//************ Class: java.sql.Connection
//**************************************************************
@@ -271,7 +271,7 @@ java_sql_Connection::java_sql_Connection( const java_sql_Driver& _rDriver )
,m_bIgnoreCurrency(sal_False)
{
}
-// -----------------------------------------------------------------------------
+
java_sql_Connection::~java_sql_Connection()
{
::rtl::Reference< jvmaccess::VirtualMachine > xTest = java_lang_Object::getVM();
@@ -291,12 +291,12 @@ java_sql_Connection::~java_sql_Connection()
t.releaseRef();
}
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL java_sql_Connection::release() throw()
{
relase_ChildImpl();
}
-//------------------------------------------------------------------------------
+
void java_sql_Connection::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -312,7 +312,7 @@ void java_sql_Connection::disposing()
callVoidMethod("close",mID);
}
}
-// -------------------------------------------------------------------------
+
jclass java_sql_Connection::getMyClass() const
{
// the class must be fetched only once, therefore static
@@ -321,7 +321,7 @@ jclass java_sql_Connection::getMyClass() const
return theClass;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_Connection::getCatalog( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -330,7 +330,7 @@ OUString SAL_CALL java_sql_Connection::getCatalog( ) throw(SQLException, Runtim
static jmethodID mID(NULL);
return callStringMethod("getCatalog",mID);
}
-// -------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL java_sql_Connection::getMetaData( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -352,18 +352,18 @@ Reference< XDatabaseMetaData > SAL_CALL java_sql_Connection::getMetaData( ) thr
return xMetaData;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Connection::close( ) throw(SQLException, RuntimeException)
{
dispose();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Connection::commit( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
callVoidMethod("commit",mID);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_Connection::isClosed( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -371,7 +371,7 @@ sal_Bool SAL_CALL java_sql_Connection::isClosed( ) throw(SQLException, RuntimeE
static jmethodID mID(NULL);
return callBooleanMethod( "isClosed", mID ) && java_sql_Connection_BASE::rBHelper.bDisposed;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_Connection::isReadOnly( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -379,37 +379,37 @@ sal_Bool SAL_CALL java_sql_Connection::isReadOnly( ) throw(SQLException, Runtim
static jmethodID mID(NULL);
return callBooleanMethod( "isReadOnly", mID );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Connection::setCatalog( const OUString& catalog ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
callVoidMethodWithStringArg("setCatalog",mID,catalog);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Connection::rollback( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
callVoidMethod("rollback",mID);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_Connection::getAutoCommit( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return callBooleanMethod( "getAutoCommit", mID );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Connection::setReadOnly( sal_Bool readOnly ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
callVoidMethodWithBoolArg("setReadOnly",mID,readOnly);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Connection::setAutoCommit( sal_Bool autoCommit ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
callVoidMethodWithBoolArg("setAutoCommit",mID,autoCommit);
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::container::XNameAccess > SAL_CALL java_sql_Connection::getTypeMap( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -421,7 +421,7 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL java_sql_Connecti
// WARNING: the caller becomes the owner of the returned pointer
return 0;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Connection::setTypeMap( const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -430,7 +430,7 @@ void SAL_CALL java_sql_Connection::setTypeMap( const Reference< ::com::sun::star
::dbtools::throwFeatureNotImplementedException( "XConnection::setTypeMap", *this );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_Connection::getTransactionIsolation( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -439,7 +439,7 @@ sal_Int32 SAL_CALL java_sql_Connection::getTransactionIsolation( ) throw(SQLExc
static jmethodID mID(NULL);
return callIntMethod("getTransactionIsolation",mID);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Connection::setTransactionIsolation( sal_Int32 level ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -448,7 +448,7 @@ void SAL_CALL java_sql_Connection::setTransactionIsolation( sal_Int32 level ) th
static jmethodID mID(NULL);
callVoidMethodWithIntArg("setTransactionIsolation",mID,level);
}
-// -------------------------------------------------------------------------
+
Reference< XStatement > SAL_CALL java_sql_Connection::createStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -463,7 +463,7 @@ Reference< XStatement > SAL_CALL java_sql_Connection::createStatement( ) throw(
m_aLogger.log( LogLevel::FINE, STR_LOG_CREATED_STATEMENT_ID, pStatement->getStatementObjectID() );
return xStmt;
}
-// -----------------------------------------------------------------------------
+
OUString java_sql_Connection::transFormPreparedStatement(const OUString& _sSQL)
{
OUString sSqlStatement = _sSQL;
@@ -489,7 +489,7 @@ OUString java_sql_Connection::transFormPreparedStatement(const OUString& _sSQL)
}
return sSqlStatement;
}
-// -------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL java_sql_Connection::prepareStatement( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -507,7 +507,7 @@ Reference< XPreparedStatement > SAL_CALL java_sql_Connection::prepareStatement(
m_aLogger.log( LogLevel::FINE, STR_LOG_PREPARED_STATEMENT_ID, pStatement->getStatementObjectID() );
return xReturn;
}
-// -------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL java_sql_Connection::prepareCall( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -525,7 +525,7 @@ Reference< XPreparedStatement > SAL_CALL java_sql_Connection::prepareCall( const
m_aLogger.log( LogLevel::FINE, STR_LOG_PREPARED_CALL_ID, pStatement->getStatementObjectID() );
return xStmt;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_Connection::nativeSQL( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -553,13 +553,13 @@ OUString SAL_CALL java_sql_Connection::nativeSQL( const OUString& sql ) throw(SQ
return aStr;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Connection::clearWarnings( ) throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
callVoidMethod("clearWarnings",mID);
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL java_sql_Connection::getWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -588,7 +588,7 @@ Any SAL_CALL java_sql_Connection::getWarnings( ) throw(SQLException, RuntimeExc
return Any();
}
-// -----------------------------------------------------------------------------
+
namespace
{
OUString lcl_getDriverLoadErrorMessage( const ::connectivity::SharedResources& _aResource,const OUString& _rDriverClass, const OUString& _rDriverClassPath )
@@ -609,7 +609,7 @@ namespace
}
}
-// -----------------------------------------------------------------------------
+
namespace
{
bool lcl_setSystemProperties_nothrow( const java::sql::ConnectionLog& _rLogger,
@@ -655,7 +655,7 @@ namespace
}
}
-// -----------------------------------------------------------------------------
+
void java_sql_Connection::loadDriverFromProperties( const OUString& _sDriverClass, const OUString& _sDriverClassPath,
const Sequence< NamedValue >& _rSystemProperties )
{
@@ -755,7 +755,7 @@ void java_sql_Connection::loadDriverFromProperties( const OUString& _sDriverClas
enableAutoRetrievingEnabled( bAutoRetrievingEnabled );
setAutoRetrievingStatement( sGeneratedValueStatement );
}
-// -----------------------------------------------------------------------------
+
OUString java_sql_Connection::impl_getJavaDriverClassPath_nothrow(const OUString& _sDriverClass)
{
static const OUString s_sNodeName("org.openoffice.Office.DataAccess/JDBC/DriverClassPaths");
@@ -769,7 +769,7 @@ OUString java_sql_Connection::impl_getJavaDriverClassPath_nothrow(const OUString
}
return sURL;
}
-// -----------------------------------------------------------------------------
+
sal_Bool java_sql_Connection::construct(const OUString& url,
const Sequence< PropertyValue >& info)
{
@@ -861,6 +861,6 @@ sal_Bool java_sql_Connection::construct(const OUString& url,
} //t.pEnv
return object != NULL;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/jdbc/JDriver.cxx b/connectivity/source/drivers/jdbc/JDriver.cxx
index d867e50e784c..c1988f1ec5e9 100644
--- a/connectivity/source/drivers/jdbc/JDriver.cxx
+++ b/connectivity/source/drivers/jdbc/JDriver.cxx
@@ -40,38 +40,38 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
java_sql_Driver::java_sql_Driver(const Reference< ::com::sun::star::uno::XComponentContext >& _rxContext)
:m_aContext( _rxContext )
,m_aLogger( _rxContext, "sdbcl", "org.openoffice.sdbc.jdbcBridge" )
{
}
-// --------------------------------------------------------------------------------
+
java_sql_Driver::~java_sql_Driver()
{
}
// static ServiceInfo
-//------------------------------------------------------------------------------
+
OUString java_sql_Driver::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString("com.sun.star.comp.sdbc.JDBCDriver");
// this name is referenced in the configuration and in the jdbc.xml
// Please take care when changing it.
}
-//------------------------------------------------------------------------------
+
Sequence< OUString > java_sql_Driver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 1 );
aSNS[0] = "com.sun.star.sdbc.Driver";
return aSNS;
}
-//------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL connectivity::java_sql_Driver_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception )
{
return *(new java_sql_Driver( comphelper::getComponentContext(_rxFactory)));
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_Driver::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
@@ -82,12 +82,12 @@ sal_Bool SAL_CALL java_sql_Driver::supportsService( const OUString& _rServiceNam
return cppu::supportsService(this, _rServiceName);
}
-// --------------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL java_sql_Driver::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL java_sql_Driver::connect( const OUString& url, const
Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
@@ -105,7 +105,7 @@ Reference< XConnection > SAL_CALL java_sql_Driver::connect( const OUString& url,
}
return xOut;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_Driver::acceptsURL( const OUString& url ) throw(SQLException, RuntimeException)
{
// don't ask the real driver for the url
@@ -127,7 +127,7 @@ sal_Bool SAL_CALL java_sql_Driver::acceptsURL( const OUString& url ) throw(SQLEx
}
return bEnabled && url.startsWith("jdbc:");
}
-// -------------------------------------------------------------------------
+
Sequence< DriverPropertyInfo > SAL_CALL java_sql_Driver::getPropertyInfo( const OUString& url,
const Sequence< PropertyValue >& /*info*/ ) throw(SQLException, RuntimeException)
{
@@ -237,17 +237,17 @@ Sequence< DriverPropertyInfo > SAL_CALL java_sql_Driver::getPropertyInfo( const
::dbtools::throwGenericSQLException(sMessage ,*this);
return Sequence< DriverPropertyInfo >();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_Driver::getMajorVersion( ) throw(RuntimeException)
{
return 1;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_Driver::getMinorVersion( ) throw(RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/jdbc/JStatement.cxx b/connectivity/source/drivers/jdbc/JStatement.cxx
index c4b0f296ecda..5eba3aeb92ac 100644
--- a/connectivity/source/drivers/jdbc/JStatement.cxx
+++ b/connectivity/source/drivers/jdbc/JStatement.cxx
@@ -43,21 +43,21 @@
using namespace ::comphelper;
using namespace connectivity;
using namespace ::cppu;
-//------------------------------------------------------------------------------
+
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-//------------------------------------------------------------------------------
+
//**************************************************************
//************ Class: java.sql.Statement
//**************************************************************
jclass java_sql_Statement_Base::theClass = 0;
-// -------------------------------------------------------------------------
+
java_sql_Statement_Base::java_sql_Statement_Base( JNIEnv * pEnv, java_sql_Connection& _rCon )
:java_sql_Statement_BASE(m_aMutex)
,java_lang_Object( pEnv, NULL )
@@ -72,12 +72,12 @@ java_sql_Statement_Base::java_sql_Statement_Base( JNIEnv * pEnv, java_sql_Connec
m_pConnection->acquire();
}
-//------------------------------------------------------------------------------
+
java_sql_Statement_Base::~java_sql_Statement_Base()
{
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OStatement_BASE2::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -96,7 +96,7 @@ void SAL_CALL OStatement_BASE2::disposing()
dispose_ChildImpl();
java_sql_Statement_Base::disposing();
}
-// -------------------------------------------------------------------------
+
jclass java_sql_Statement_Base::getMyClass() const
{
// the class must be fetched only once, therefore static
@@ -104,21 +104,21 @@ jclass java_sql_Statement_Base::getMyClass() const
theClass = findMyClass("java/sql/Statement");
return theClass;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL java_sql_Statement_Base::disposing(void)
{
m_aLogger.log( LogLevel::FINE, STR_LOG_CLOSING_STATEMENT );
java_sql_Statement_BASE::disposing();
clearObject();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement_BASE2::release() throw()
{
relase_ChildImpl();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL java_sql_Statement_Base::queryInterface( const Type & rType ) throw(RuntimeException)
{
if ( m_pConnection && !m_pConnection->isAutoRetrievingEnabled() && rType == ::getCppuType( (const Reference< XGeneratedResultSet > *)0 ) )
@@ -126,7 +126,7 @@ Any SAL_CALL java_sql_Statement_Base::queryInterface( const Type & rType ) throw
Any aRet( java_sql_Statement_BASE::queryInterface(rType) );
return aRet.hasValue() ? aRet : OPropertySetHelper::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL java_sql_Statement_Base::getTypes( ) throw(RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const Reference< ::com::sun::star::beans::XMultiPropertySet > *)0 ),
@@ -143,7 +143,7 @@ Sequence< Type > SAL_CALL java_sql_Statement_Base::getTypes( ) throw(RuntimeExc
return ::comphelper::concatSequences(aTypes.getTypes(),aOldTypes);
}
-// -----------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_Statement_Base::getGeneratedValues( ) throw (SQLException, RuntimeException)
{
m_aLogger.log( LogLevel::FINE, STR_LOG_GENERATED_VALUES );
@@ -185,7 +185,7 @@ Reference< XResultSet > SAL_CALL java_sql_Statement_Base::getGeneratedValues( )
return xRes;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Statement_Base::cancel( ) throw(RuntimeException)
{
@@ -194,7 +194,7 @@ void SAL_CALL java_sql_Statement_Base::cancel( ) throw(RuntimeException)
static jmethodID mID(NULL);
callVoidMethod("cancel",mID);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Statement_Base::close( ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
@@ -205,7 +205,7 @@ void SAL_CALL java_sql_Statement_Base::close( ) throw(::com::sun::star::sdbc::S
}
dispose();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Statement::clearBatch( ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
@@ -217,7 +217,7 @@ void SAL_CALL java_sql_Statement::clearBatch( ) throw(::com::sun::star::sdbc::S
callVoidMethod("clearBatch",mID);
} //t.pEnv
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_Statement_Base::execute( const OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -251,7 +251,7 @@ sal_Bool SAL_CALL java_sql_Statement_Base::execute( const OUString& sql ) throw(
} //t.pEnv
return out;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL java_sql_Statement_Base::executeQuery( const OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -287,21 +287,21 @@ Reference< XResultSet > SAL_CALL java_sql_Statement_Base::executeQuery( const OU
// WARNING: the caller becomes the owner of the returned pointer
return out==0 ? 0 : new java_sql_ResultSet( t.pEnv, out, m_aLogger, *m_pConnection,this );
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL java_sql_Statement_Base::getConnection( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(java_sql_Statement_BASE::rBHelper.bDisposed);
return (Reference< XConnection >)m_pConnection;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL java_sql_Statement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = ::cppu::queryInterface(rType,static_cast< XBatchExecution*> (this));
return aRet.hasValue() ? aRet : java_sql_Statement_Base::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Statement::addBatch( const OUString& sql ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
@@ -314,7 +314,7 @@ void SAL_CALL java_sql_Statement::addBatch( const OUString& sql ) throw(::com::s
callVoidMethodWithStringArg("addBatch",mID,sql);
} //t.pEnv
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int32 > SAL_CALL java_sql_Statement::executeBatch( ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
@@ -334,7 +334,7 @@ Sequence< sal_Int32 > SAL_CALL java_sql_Statement::executeBatch( ) throw(::com:
}
return aSeq;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_Statement_Base::executeUpdate( const OUString& sql ) throw(SQLException, RuntimeException)
@@ -349,7 +349,7 @@ sal_Int32 SAL_CALL java_sql_Statement_Base::executeUpdate( const OUString& sql )
static jmethodID mID(NULL);
return callIntMethodWithStringArg("executeUpdate",mID,sql);
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::sdbc::XResultSet > SAL_CALL java_sql_Statement_Base::getResultSet( ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
@@ -361,7 +361,7 @@ Reference< ::com::sun::star::sdbc::XResultSet > SAL_CALL java_sql_Statement_Base
// WARNING: the caller becomes the owner of the returned pointer
return out==0 ? 0 : new java_sql_ResultSet( t.pEnv, out, m_aLogger, *m_pConnection,this );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_Statement_Base::getUpdateCount( ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
@@ -372,16 +372,16 @@ sal_Int32 SAL_CALL java_sql_Statement_Base::getUpdateCount( ) throw(::com::sun:
m_aLogger.log( LogLevel::FINER, STR_LOG_UPDATE_COUNT, (sal_Int32)out );
return out;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_Statement_Base::getMoreResults( ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return callBooleanMethod( "getMoreResults", mID );
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
Any SAL_CALL java_sql_Statement_Base::getWarnings( ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
SDBThreadAttach t;
@@ -399,7 +399,7 @@ Any SAL_CALL java_sql_Statement_Base::getWarnings( ) throw(::com::sun::star::sd
return Any();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_Statement_Base::clearWarnings( ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -412,32 +412,32 @@ void SAL_CALL java_sql_Statement_Base::clearWarnings( ) throw(::com::sun::star:
callVoidMethod("clearWarnings",mID);
}
}
-//------------------------------------------------------------------------------
+
sal_Int32 java_sql_Statement_Base::getQueryTimeOut() throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_getProperty("getQueryTimeOut",mID);
}
-//------------------------------------------------------------------------------
+
sal_Int32 java_sql_Statement_Base::getMaxRows() throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_getProperty("getMaxRows",mID);
}
-//------------------------------------------------------------------------------
+
sal_Int32 java_sql_Statement_Base::getResultSetConcurrency() throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_getProperty("getResultSetConcurrency",mID,m_nResultSetConcurrency);
}
-//------------------------------------------------------------------------------
+
sal_Int32 java_sql_Statement_Base::getResultSetType() throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_getProperty("getResultSetType",mID,m_nResultSetType);
}
-//------------------------------------------------------------------------------
+
sal_Int32 java_sql_Statement_Base::impl_getProperty(const char* _pMethodName, jmethodID& _inout_MethodID,sal_Int32 _nDefault)
{
sal_Int32 out = _nDefault;
@@ -446,7 +446,7 @@ sal_Int32 java_sql_Statement_Base::impl_getProperty(const char* _pMethodName, jm
return out;
}
-//------------------------------------------------------------------------------
+
sal_Int32 java_sql_Statement_Base::impl_getProperty(const char* _pMethodName, jmethodID& _inout_MethodID)
{
SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
@@ -454,25 +454,25 @@ sal_Int32 java_sql_Statement_Base::impl_getProperty(const char* _pMethodName, jm
return callIntMethod(_pMethodName,_inout_MethodID,true);
}
-//------------------------------------------------------------------------------
+
sal_Int32 java_sql_Statement_Base::getFetchDirection() throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_getProperty("getFetchDirection",mID);
}
-//------------------------------------------------------------------------------
+
sal_Int32 java_sql_Statement_Base::getFetchSize() throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_getProperty("getFetchSize",mID);
}
-//------------------------------------------------------------------------------
+
sal_Int32 java_sql_Statement_Base::getMaxFieldSize() throw(SQLException, RuntimeException)
{
static jmethodID mID(NULL);
return impl_getProperty("getMaxFieldSize",mID);
}
-//------------------------------------------------------------------------------
+
OUString java_sql_Statement_Base::getCursorName() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -489,7 +489,7 @@ OUString java_sql_Statement_Base::getCursorName() throw(SQLException, RuntimeExc
}
return OUString();
}
-//------------------------------------------------------------------------------
+
void java_sql_Statement_Base::setQueryTimeOut(sal_Int32 _par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -500,7 +500,7 @@ void java_sql_Statement_Base::setQueryTimeOut(sal_Int32 _par0) throw(SQLExceptio
callVoidMethodWithIntArg("setQueryTimeOut",mID,_par0,true);
}
-//------------------------------------------------------------------------------
+
void java_sql_Statement_Base::setEscapeProcessing(bool _par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -514,7 +514,7 @@ void java_sql_Statement_Base::setEscapeProcessing(bool _par0) throw(SQLException
callVoidMethodWithBoolArg("setEscapeProcessing",mID,_par0,true);
}
-//------------------------------------------------------------------------------
+
void java_sql_Statement_Base::setMaxRows(sal_Int32 _par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -524,7 +524,7 @@ void java_sql_Statement_Base::setMaxRows(sal_Int32 _par0) throw(SQLException, Ru
static jmethodID mID(NULL);
callVoidMethodWithIntArg("setMaxRows",mID,_par0,true);
}
-//------------------------------------------------------------------------------
+
void java_sql_Statement_Base::setResultSetConcurrency(sal_Int32 _par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -534,7 +534,7 @@ void java_sql_Statement_Base::setResultSetConcurrency(sal_Int32 _par0) throw(SQL
clearObject();
}
-//------------------------------------------------------------------------------
+
void java_sql_Statement_Base::setResultSetType(sal_Int32 _par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -544,7 +544,7 @@ void java_sql_Statement_Base::setResultSetType(sal_Int32 _par0) throw(SQLExcepti
clearObject();
}
-//------------------------------------------------------------------------------
+
void java_sql_Statement_Base::setFetchDirection(sal_Int32 _par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -555,7 +555,7 @@ void java_sql_Statement_Base::setFetchDirection(sal_Int32 _par0) throw(SQLExcept
static jmethodID mID(NULL);
callVoidMethodWithIntArg("setFetchDirection",mID,_par0,true);
}
-//------------------------------------------------------------------------------
+
void java_sql_Statement_Base::setFetchSize(sal_Int32 _par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -567,7 +567,7 @@ void java_sql_Statement_Base::setFetchSize(sal_Int32 _par0) throw(SQLException,
static jmethodID mID(NULL);
callVoidMethodWithIntArg("setFetchSize",mID,_par0,true);
}
-//------------------------------------------------------------------------------
+
void java_sql_Statement_Base::setMaxFieldSize(sal_Int32 _par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -577,7 +577,7 @@ void java_sql_Statement_Base::setMaxFieldSize(sal_Int32 _par0) throw(SQLExceptio
static jmethodID mID(NULL);
callVoidMethodWithIntArg("setMaxFieldSize",mID,_par0,true);
}
-//------------------------------------------------------------------------------
+
void java_sql_Statement_Base::setCursorName(const OUString &_par0) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -590,7 +590,7 @@ void java_sql_Statement_Base::setCursorName(const OUString &_par0) throw(SQLExce
} //t.pEnv
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* java_sql_Statement_Base::createArrayHelper( ) const
{
Sequence< Property > aProps(10);
@@ -610,13 +610,13 @@ void java_sql_Statement_Base::setCursorName(const OUString &_par0) throw(SQLExce
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & java_sql_Statement_Base::getInfoHelper()
{
return *const_cast<java_sql_Statement_Base*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool java_sql_Statement_Base::convertFastPropertyValue(
Any & rConvertedValue,
Any & rOldValue,
@@ -662,7 +662,7 @@ sal_Bool java_sql_Statement_Base::convertFastPropertyValue(
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
void java_sql_Statement_Base::setFastPropertyValue_NoBroadcast(
sal_Int32 nHandle,
const Any& rValue
@@ -704,7 +704,7 @@ void java_sql_Statement_Base::setFastPropertyValue_NoBroadcast(
;
}
}
-// -------------------------------------------------------------------------
+
void java_sql_Statement_Base::getFastPropertyValue(
Any& rValue,
sal_Int32 nHandle
@@ -751,7 +751,7 @@ void java_sql_Statement_Base::getFastPropertyValue(
{
}
}
-// -------------------------------------------------------------------------
+
jclass java_sql_Statement::theClass = 0;
java_sql_Statement::~java_sql_Statement()
@@ -765,7 +765,7 @@ jclass java_sql_Statement::getMyClass() const
return theClass;
}
-// -----------------------------------------------------------------------------
+
void java_sql_Statement::createStatement(JNIEnv* _pEnv)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -797,36 +797,36 @@ void java_sql_Statement::createStatement(JNIEnv* _pEnv)
object = _pEnv->NewGlobalRef( out );
} //_pEnv
}
-// -----------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(java_sql_Statement,"com.sun.star.sdbcx.JStatement","com.sun.star.sdbc.Statement");
-// -----------------------------------------------------------------------------
+
void SAL_CALL java_sql_Statement_Base::acquire() throw()
{
java_sql_Statement_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL java_sql_Statement_Base::release() throw()
{
java_sql_Statement_BASE::release();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL java_sql_Statement::acquire() throw()
{
OStatement_BASE2::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL java_sql_Statement::release() throw()
{
OStatement_BASE2::release();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL java_sql_Statement_Base::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/jdbc/Object.cxx b/connectivity/source/drivers/jdbc/Object.cxx
index f2a9ece8c85b..ef437409ba00 100644
--- a/connectivity/source/drivers/jdbc/Object.cxx
+++ b/connectivity/source/drivers/jdbc/Object.cxx
@@ -40,7 +40,7 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -----------------------------------------------------------------------------
+
::rtl::Reference< jvmaccess::VirtualMachine > getJavaVM2(const ::rtl::Reference< jvmaccess::VirtualMachine >& _rVM = ::rtl::Reference< jvmaccess::VirtualMachine >(),
sal_Bool _bSet = sal_False)
{
@@ -49,7 +49,7 @@ using namespace ::com::sun::star::lang;
s_VM = _rVM;
return s_VM;
}
-// -----------------------------------------------------------------------------
+
::rtl::Reference< jvmaccess::VirtualMachine > java_lang_Object::getVM(const Reference<XComponentContext >& _rxContext)
{
::rtl::Reference< jvmaccess::VirtualMachine > xVM = getJavaVM2();
@@ -58,7 +58,7 @@ using namespace ::com::sun::star::lang;
return xVM;
}
-// -----------------------------------------------------------------------------
+
SDBThreadAttach::SDBThreadAttach()
: m_aGuard(java_lang_Object::getVM())
, pEnv(NULL)
@@ -66,22 +66,22 @@ SDBThreadAttach::SDBThreadAttach()
pEnv = m_aGuard.getEnvironment();
OSL_ENSURE(pEnv,"Environment is nULL!");
}
-// -----------------------------------------------------------------------------
+
SDBThreadAttach::~SDBThreadAttach()
{
}
-// -----------------------------------------------------------------------------
+
oslInterlockedCount& getJavaVMRefCount()
{
static oslInterlockedCount s_nRefCount = 0;
return s_nRefCount;
}
-// -----------------------------------------------------------------------------
+
void SDBThreadAttach::addRef()
{
osl_atomic_increment(&getJavaVMRefCount());
}
-// -----------------------------------------------------------------------------
+
void SDBThreadAttach::releaseRef()
{
osl_atomic_decrement(&getJavaVMRefCount());
@@ -90,7 +90,7 @@ void SDBThreadAttach::releaseRef()
getJavaVM2(::rtl::Reference< jvmaccess::VirtualMachine >(),sal_True);
}
}
-// -----------------------------------------------------------------------------
+
// static variables of the class
jclass java_lang_Object::theClass = 0;
@@ -157,7 +157,7 @@ OUString java_lang_Object::toString() const
return callStringMethod("toString",mID);
}
-// --------------------------------------------------------------------------------
+
namespace
{
bool lcl_translateJNIExceptionToUNOException(
@@ -197,7 +197,7 @@ namespace
}
}
-// --------------------------------------------------------------------------------
+
void java_lang_Object::ThrowLoggedSQLException( const ::comphelper::ResourceBasedEventLogger& _rLogger, JNIEnv* _pEnvironment,
const Reference< XInterface >& _rxContext )
{
@@ -209,14 +209,14 @@ void java_lang_Object::ThrowLoggedSQLException( const ::comphelper::ResourceBase
}
}
-// --------------------------------------------------------------------------------
+
void java_lang_Object::ThrowSQLException( JNIEnv* _pEnvironment, const Reference< XInterface>& _rxContext )
{
SQLException aException;
if ( lcl_translateJNIExceptionToUNOException( _pEnvironment, _rxContext, aException ) )
throw aException;
}
-// -----------------------------------------------------------------------------
+
void java_lang_Object::obtainMethodId(JNIEnv* _pEnv,const char* _pMethodName, const char* _pSignature,jmethodID& _inout_MethodID) const
{
if ( !_inout_MethodID )
@@ -227,7 +227,7 @@ void java_lang_Object::obtainMethodId(JNIEnv* _pEnv,const char* _pMethodName, co
throw SQLException();
} // if ( !_inout_MethodID )
}
-// -----------------------------------------------------------------------------
+
sal_Bool java_lang_Object::callBooleanMethod( const char* _pMethodName, jmethodID& _inout_MethodID ) const
{
jboolean out( sal_False );
@@ -241,7 +241,7 @@ sal_Bool java_lang_Object::callBooleanMethod( const char* _pMethodName, jmethodI
return out;
}
-// -----------------------------------------------------------------------------
+
sal_Bool java_lang_Object::callBooleanMethodWithIntArg( const char* _pMethodName, jmethodID& _inout_MethodID, sal_Int32 _nArgument ) const
{
jboolean out( sal_False );
@@ -254,14 +254,14 @@ sal_Bool java_lang_Object::callBooleanMethodWithIntArg( const char* _pMethodName
return out;
}
-// -------------------------------------------------------------------------
+
jobject java_lang_Object::callResultSetMethod( JNIEnv& _rEnv,const char* _pMethodName, jmethodID& _inout_MethodID ) const
{
// call method
jobject out = callObjectMethod(&_rEnv,_pMethodName,"()Ljava/sql/ResultSet;", _inout_MethodID);
return out;
}
-// -------------------------------------------------------------------------
+
sal_Int32 java_lang_Object::callIntMethod( const char* _pMethodName, jmethodID& _inout_MethodID,bool _bIgnoreException ) const
{
SDBThreadAttach t;
@@ -277,7 +277,7 @@ sal_Int32 java_lang_Object::callIntMethod( const char* _pMethodName, jmethodID&
return (sal_Int32)out;
}
-// -------------------------------------------------------------------------
+
sal_Int32 java_lang_Object::callIntMethodWithIntArg( const char* _pMethodName, jmethodID& _inout_MethodID,sal_Int32 _nArgument ) const
{
SDBThreadAttach t;
@@ -289,7 +289,7 @@ sal_Int32 java_lang_Object::callIntMethodWithIntArg( const char* _pMethodName, j
return (sal_Int32)out;
}
-// -------------------------------------------------------------------------
+
void java_lang_Object::callVoidMethod( const char* _pMethodName, jmethodID& _inout_MethodID) const
{
SDBThreadAttach t;
@@ -300,7 +300,7 @@ void java_lang_Object::callVoidMethod( const char* _pMethodName, jmethodID& _ino
t.pEnv->CallVoidMethod( object, _inout_MethodID );
ThrowSQLException( t.pEnv, NULL );
}
-// -------------------------------------------------------------------------
+
void java_lang_Object::callVoidMethodWithIntArg( const char* _pMethodName, jmethodID& _inout_MethodID, sal_Int32 _nArgument,bool _bIgnoreException ) const
{
SDBThreadAttach t;
@@ -314,7 +314,7 @@ void java_lang_Object::callVoidMethodWithIntArg( const char* _pMethodName, jmeth
else
ThrowSQLException( t.pEnv, NULL );
}
-// -------------------------------------------------------------------------
+
void java_lang_Object::callVoidMethodWithBoolArg( const char* _pMethodName, jmethodID& _inout_MethodID, bool _nArgument,bool _bIgnoreException ) const
{
SDBThreadAttach t;
@@ -327,7 +327,7 @@ void java_lang_Object::callVoidMethodWithBoolArg( const char* _pMethodName, jmet
else
ThrowSQLException( t.pEnv, NULL );
}
-// -----------------------------------------------------------------------------
+
OUString java_lang_Object::callStringMethod( const char* _pMethodName, jmethodID& _inout_MethodID ) const
{
SDBThreadAttach t;
@@ -337,7 +337,7 @@ OUString java_lang_Object::callStringMethod( const char* _pMethodName, jmethodID
jstring out = (jstring)callObjectMethod(t.pEnv,_pMethodName,"()Ljava/lang/String;", _inout_MethodID);
return JavaString2String( t.pEnv, out );
}
-// -----------------------------------------------------------------------------
+
jobject java_lang_Object::callObjectMethod( JNIEnv * _pEnv,const char* _pMethodName,const char* _pSignature, jmethodID& _inout_MethodID ) const
{
// obtain method ID
@@ -348,7 +348,7 @@ jobject java_lang_Object::callObjectMethod( JNIEnv * _pEnv,const char* _pMethodN
return out;
}
-// -----------------------------------------------------------------------------
+
jobject java_lang_Object::callObjectMethodWithIntArg( JNIEnv * _pEnv,const char* _pMethodName,const char* _pSignature, jmethodID& _inout_MethodID , sal_Int32 _nArgument) const
{
obtainMethodId(_pEnv, _pMethodName,_pSignature, _inout_MethodID);
@@ -357,7 +357,7 @@ jobject java_lang_Object::callObjectMethodWithIntArg( JNIEnv * _pEnv,const char*
ThrowSQLException( _pEnv, NULL );
return out;
}
-// -----------------------------------------------------------------------------
+
OUString java_lang_Object::callStringMethodWithIntArg( const char* _pMethodName, jmethodID& _inout_MethodID , sal_Int32 _nArgument) const
{
SDBThreadAttach t;
@@ -365,7 +365,7 @@ OUString java_lang_Object::callStringMethodWithIntArg( const char* _pMethodName,
jstring out = (jstring)callObjectMethodWithIntArg(t.pEnv,_pMethodName,"(I)Ljava/lang/String;",_inout_MethodID,_nArgument);
return JavaString2String( t.pEnv, out );
}
-// -------------------------------------------------------------------------
+
void java_lang_Object::callVoidMethodWithStringArg( const char* _pMethodName, jmethodID& _inout_MethodID,const OUString& _nArgument ) const
{
SDBThreadAttach t;
@@ -377,7 +377,7 @@ void java_lang_Object::callVoidMethodWithStringArg( const char* _pMethodName, jm
t.pEnv->CallVoidMethod( object, _inout_MethodID , str.get());
ThrowSQLException( t.pEnv, NULL );
}
-// -------------------------------------------------------------------------
+
sal_Int32 java_lang_Object::callIntMethodWithStringArg( const char* _pMethodName, jmethodID& _inout_MethodID,const OUString& _nArgument ) const
{
SDBThreadAttach t;
@@ -399,7 +399,7 @@ sal_Int32 java_lang_Object::callIntMethodWithStringArg( const char* _pMethodName
ThrowSQLException( t.pEnv, NULL );
return (sal_Int32)out;
}
-// -----------------------------------------------------------------------------
+
jclass java_lang_Object::findMyClass(const char* _pClassName)
{
// the class must be fetched only once, therefore static
diff --git a/connectivity/source/drivers/jdbc/PreparedStatement.cxx b/connectivity/source/drivers/jdbc/PreparedStatement.cxx
index fa941de61820..f15bd4f45b7d 100644
--- a/connectivity/source/drivers/jdbc/PreparedStatement.cxx
+++ b/connectivity/source/drivers/jdbc/PreparedStatement.cxx
@@ -53,13 +53,13 @@ java_sql_PreparedStatement::java_sql_PreparedStatement( JNIEnv * pEnv, java_sql_
{
m_sSqlStatement = sql;
}
-// -----------------------------------------------------------------------------
+
jclass java_sql_PreparedStatement::theClass = 0;
java_sql_PreparedStatement::~java_sql_PreparedStatement()
{
}
-// -----------------------------------------------------------------------------
+
jclass java_sql_PreparedStatement::getMyClass() const
{
@@ -68,7 +68,7 @@ jclass java_sql_PreparedStatement::getMyClass() const
theClass = findMyClass("java/sql/PreparedStatement");
return theClass;
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Any SAL_CALL java_sql_PreparedStatement::queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException)
{
@@ -79,7 +79,7 @@ jclass java_sql_PreparedStatement::getMyClass() const
static_cast< XResultSetMetaDataSupplier*>(this),
static_cast< XPreparedBatchExecution*>(this));
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL java_sql_PreparedStatement::getTypes( ) throw(::com::sun::star::uno::RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const ::com::sun::star::uno::Reference< XPreparedStatement > *)0 ),
@@ -89,7 +89,7 @@ jclass java_sql_PreparedStatement::getMyClass() const
return ::comphelper::concatSequences(aTypes.getTypes(),OStatement_BASE2::getTypes());
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_PreparedStatement::execute( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -102,7 +102,7 @@ sal_Bool SAL_CALL java_sql_PreparedStatement::execute( ) throw(::com::sun::star
static jmethodID mID(NULL);
return callBooleanMethod( "execute", mID );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_PreparedStatement::executeUpdate( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -115,7 +115,7 @@ sal_Int32 SAL_CALL java_sql_PreparedStatement::executeUpdate( ) throw(::com::su
static jmethodID mID(NULL);
return callIntMethod("executeUpdate",mID);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setString( sal_Int32 parameterIndex, const OUString& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -137,13 +137,13 @@ void SAL_CALL java_sql_PreparedStatement::setString( sal_Int32 parameterIndex, c
ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
} //t.pEnv
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL java_sql_PreparedStatement::getConnection( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return (Reference< XConnection >)m_pConnection;
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > SAL_CALL java_sql_PreparedStatement::executeQuery( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -158,7 +158,7 @@ void SAL_CALL java_sql_PreparedStatement::setString( sal_Int32 parameterIndex, c
return out==0 ? 0 : new java_sql_ResultSet( t.pEnv, out, m_aLogger, *m_pConnection,this);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setBoolean( sal_Int32 parameterIndex, sal_Bool x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -171,7 +171,7 @@ void SAL_CALL java_sql_PreparedStatement::setBoolean( sal_Int32 parameterIndex,
static jmethodID mID(NULL);
callVoidMethod("setBoolean", "(IZ)V", mID, parameterIndex, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setByte( sal_Int32 parameterIndex, sal_Int8 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -184,7 +184,7 @@ void SAL_CALL java_sql_PreparedStatement::setByte( sal_Int32 parameterIndex, sal
static jmethodID mID(NULL);
callVoidMethod("setByte", "(IB)V", mID, parameterIndex, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setDate( sal_Int32 parameterIndex, const ::com::sun::star::util::Date& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -198,7 +198,7 @@ void SAL_CALL java_sql_PreparedStatement::setDate( sal_Int32 parameterIndex, con
static jmethodID mID(NULL);
callVoidMethod("setDate", "(ILjava/sql/Date;)V", mID, parameterIndex, aT.getJavaObject());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setTime( sal_Int32 parameterIndex, const ::com::sun::star::util::Time& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
@@ -213,7 +213,7 @@ void SAL_CALL java_sql_PreparedStatement::setTime( sal_Int32 parameterIndex, con
static jmethodID mID(NULL);
callVoidMethod("setTime", "(ILjava/sql/Time;)V", mID, parameterIndex, aT.getJavaObject());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setTimestamp( sal_Int32 parameterIndex, const ::com::sun::star::util::DateTime& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -227,7 +227,7 @@ void SAL_CALL java_sql_PreparedStatement::setTimestamp( sal_Int32 parameterIndex
java_sql_Timestamp aD(x);
callVoidMethod("setTimestamp", "(ILjava/sql/Timestamp;)V", mID, parameterIndex, aD.getJavaObject());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setDouble( sal_Int32 parameterIndex, double x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
m_aLogger.log( LogLevel::FINER, STR_LOG_DOUBLE_PARAMETER, parameterIndex, x );
@@ -239,7 +239,7 @@ void SAL_CALL java_sql_PreparedStatement::setDouble( sal_Int32 parameterIndex, d
static jmethodID mID(NULL);
callVoidMethod("setDouble", "(ID)V", mID, parameterIndex, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setFloat( sal_Int32 parameterIndex, float x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -252,7 +252,7 @@ void SAL_CALL java_sql_PreparedStatement::setFloat( sal_Int32 parameterIndex, fl
static jmethodID mID(NULL);
callVoidMethod("setFloat", "(IF)V", mID, parameterIndex, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setInt( sal_Int32 parameterIndex, sal_Int32 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -265,7 +265,7 @@ void SAL_CALL java_sql_PreparedStatement::setInt( sal_Int32 parameterIndex, sal_
static jmethodID mID(NULL);
callVoidMethod("setInt", "(II)V", mID, parameterIndex, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setLong( sal_Int32 parameterIndex, sal_Int64 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -278,7 +278,7 @@ void SAL_CALL java_sql_PreparedStatement::setLong( sal_Int32 parameterIndex, sal
static jmethodID mID(NULL);
callVoidMethod("setLong", "(IJ)V", mID, parameterIndex, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setNull( sal_Int32 parameterIndex, sal_Int32 sqlType ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -291,31 +291,31 @@ void SAL_CALL java_sql_PreparedStatement::setNull( sal_Int32 parameterIndex, sal
static jmethodID mID(NULL);
callVoidMethod("setNull", "(II)V", mID, parameterIndex, sqlType);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setClob( sal_Int32 /*parameterIndex*/, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XClob >& /*x*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setClob", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setBlob( sal_Int32 /*parameterIndex*/, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XBlob >& /*x*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setBlob", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setArray( sal_Int32 /*parameterIndex*/, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XArray >& /*x*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setArray", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setRef( sal_Int32 /*parameterIndex*/, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRef >& /*x*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setRef", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, const ::com::sun::star::uno::Any& x, sal_Int32 targetSqlType, sal_Int32 scale ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -374,7 +374,7 @@ void SAL_CALL java_sql_PreparedStatement::setObjectWithInfo( sal_Int32 parameter
} //mID
} //t.pEnv
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setObjectNull( sal_Int32 parameterIndex, sal_Int32 /*sqlType*/, const OUString& /*typeName*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -387,7 +387,7 @@ void SAL_CALL java_sql_PreparedStatement::setObjectNull( sal_Int32 parameterInde
static jmethodID mID(NULL);
callVoidMethod<jobject>("setObject", "(ILjava/lang/Object;)V", mID, parameterIndex, NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setObject( sal_Int32 parameterIndex, const ::com::sun::star::uno::Any& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -400,7 +400,7 @@ void SAL_CALL java_sql_PreparedStatement::setObject( sal_Int32 parameterIndex, c
::dbtools::throwGenericSQLException(sError,*this);
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setShort( sal_Int32 parameterIndex, sal_Int16 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -413,7 +413,7 @@ void SAL_CALL java_sql_PreparedStatement::setShort( sal_Int32 parameterIndex, sa
static jmethodID mID(NULL);
callVoidMethod("setShort", "(IS)V", mID, parameterIndex, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setBytes( sal_Int32 parameterIndex, const ::com::sun::star::uno::Sequence< sal_Int8 >& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -438,7 +438,7 @@ void SAL_CALL java_sql_PreparedStatement::setBytes( sal_Int32 parameterIndex, co
ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
} //t.pEnv
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setCharacterStream( sal_Int32 parameterIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -486,7 +486,7 @@ void SAL_CALL java_sql_PreparedStatement::setCharacterStream( sal_Int32 paramete
ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
} //t.pEnv
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::setBinaryStream( sal_Int32 parameterIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -535,7 +535,7 @@ void SAL_CALL java_sql_PreparedStatement::setBinaryStream( sal_Int32 parameterIn
}
} //t.pEnv
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::clearParameters( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -551,7 +551,7 @@ void SAL_CALL java_sql_PreparedStatement::clearParameters( ) throw(::com::sun::
callVoidMethod("clearParameters",mID);
} //t.pEnv
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::clearBatch( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -563,7 +563,7 @@ void SAL_CALL java_sql_PreparedStatement::clearBatch( ) throw(::com::sun::star:
callVoidMethod("clearBatch",mID);
} //t.pEnv
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::addBatch( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -576,7 +576,7 @@ void SAL_CALL java_sql_PreparedStatement::addBatch( ) throw(::com::sun::star::sd
callVoidMethod("addBatch",mID);
} //t.pEnv
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL java_sql_PreparedStatement::executeBatch( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -596,7 +596,7 @@ void SAL_CALL java_sql_PreparedStatement::addBatch( ) throw(::com::sun::star::sd
}
return aSeq;
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > SAL_CALL java_sql_PreparedStatement::getMetaData( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -608,17 +608,17 @@ void SAL_CALL java_sql_PreparedStatement::addBatch( ) throw(::com::sun::star::sd
return out==0 ? 0 : new java_sql_ResultSetMetaData( t.pEnv, out, m_aLogger,*m_pConnection );
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::acquire() throw()
{
OStatement_BASE2::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL java_sql_PreparedStatement::release() throw()
{
OStatement_BASE2::release();
}
-// -----------------------------------------------------------------------------
+
void java_sql_PreparedStatement::createStatement(JNIEnv* _pEnv)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -656,7 +656,7 @@ void java_sql_PreparedStatement::createStatement(JNIEnv* _pEnv)
object = _pEnv->NewGlobalRef( out );
} //t.pEnv
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/jdbc/Reader.cxx b/connectivity/source/drivers/jdbc/Reader.cxx
index a15066c9475e..1cf384c4ee31 100644
--- a/connectivity/source/drivers/jdbc/Reader.cxx
+++ b/connectivity/source/drivers/jdbc/Reader.cxx
@@ -77,7 +77,7 @@ void SAL_CALL java_io_Reader::closeInput( ) throw(::com::sun::star::io::NotConn
static jmethodID mID(NULL);
callVoidMethod("close",mID);
}
-// -----------------------------------------------------
+
sal_Int32 SAL_CALL java_io_Reader::readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
{
OSL_ENSURE(aData.getLength() < nBytesToRead," Sequence is smaller than BytesToRead");
diff --git a/connectivity/source/drivers/jdbc/ResultSet.cxx b/connectivity/source/drivers/jdbc/ResultSet.cxx
index 1b3c38c658c0..6912fce9b990 100644
--- a/connectivity/source/drivers/jdbc/ResultSet.cxx
+++ b/connectivity/source/drivers/jdbc/ResultSet.cxx
@@ -78,7 +78,7 @@ java_sql_ResultSet::java_sql_ResultSet( JNIEnv * pEnv, jobject myObj, const java
osl_atomic_decrement(&m_refCount);
}
-// -----------------------------------------------------------------------------
+
java_sql_ResultSet::~java_sql_ResultSet()
{
if ( !java_sql_ResultSet_BASE::rBHelper.bDisposed && !java_sql_ResultSet_BASE::rBHelper.bInDispose )
@@ -98,7 +98,7 @@ jclass java_sql_ResultSet::getMyClass() const
return theClass;
}
-// -------------------------------------------------------------------------
+
void java_sql_ResultSet::disposing(void)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::disposing" );
@@ -116,14 +116,14 @@ m_xMetaData.clear();
SDBThreadAttach::releaseRef();
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Any SAL_CALL java_sql_ResultSet::queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::queryInterface" );
::com::sun::star::uno::Any aRet = OPropertySetHelper::queryInterface(rType);
return aRet.hasValue() ? aRet : java_sql_ResultSet_BASE::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL java_sql_ResultSet::getTypes( ) throw(::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getTypes" );
@@ -133,7 +133,7 @@ m_xMetaData.clear();
return ::comphelper::concatSequences(aTypes.getTypes(),java_sql_ResultSet_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_ResultSet::findColumn( const OUString& columnName ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -141,7 +141,7 @@ sal_Int32 SAL_CALL java_sql_ResultSet::findColumn( const OUString& columnName )
static jmethodID mID(NULL);
return callIntMethodWithStringArg("findColumn",mID,columnName);
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL java_sql_ResultSet::getBinaryStream( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getBinaryStream" );
@@ -152,7 +152,7 @@ Reference< ::com::sun::star::io::XInputStream > SAL_CALL java_sql_ResultSet::get
// WARNING: the caller becomes the owner of the returned pointer
return out==0 ? 0 : new java_io_InputStream( t.pEnv, out );
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL java_sql_ResultSet::getCharacterStream( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getCharacterStream" );
@@ -163,7 +163,7 @@ Reference< ::com::sun::star::io::XInputStream > SAL_CALL java_sql_ResultSet::get
// WARNING: the caller becomes the owner of the returned pointer
return out==0 ? 0 : new java_io_Reader( t.pEnv, out );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::getBoolean( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -171,7 +171,7 @@ sal_Bool SAL_CALL java_sql_ResultSet::getBoolean( sal_Int32 columnIndex ) throw(
static jmethodID mID(NULL);
return callBooleanMethodWithIntArg( "getBoolean", mID,columnIndex );
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL java_sql_ResultSet::getByte( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -180,7 +180,7 @@ sal_Int8 SAL_CALL java_sql_ResultSet::getByte( sal_Int32 columnIndex ) throw(SQL
jbyte (JNIEnv::*pCallMethod)( jobject obj, jmethodID methodID, ... ) = &JNIEnv::CallByteMethod;
return callMethodWithIntArg<jbyte>(pCallMethod,"getByte","(I)B",mID,columnIndex);
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL java_sql_ResultSet::getBytes( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -198,7 +198,7 @@ Sequence< sal_Int8 > SAL_CALL java_sql_ResultSet::getBytes( sal_Int32 columnInde
}
return aSeq;
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Date SAL_CALL java_sql_ResultSet::getDate( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -209,7 +209,7 @@ Sequence< sal_Int8 > SAL_CALL java_sql_ResultSet::getBytes( sal_Int32 columnInde
// WARNING: the caller becomes the owner of the returned pointer
return out ? static_cast <com::sun::star::util::Date> (java_sql_Date( t.pEnv, out )) : ::com::sun::star::util::Date();
}
-// -------------------------------------------------------------------------
+
double SAL_CALL java_sql_ResultSet::getDouble( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -218,7 +218,7 @@ double SAL_CALL java_sql_ResultSet::getDouble( sal_Int32 columnIndex ) throw(SQL
jdouble (JNIEnv::*pCallMethod)( jobject obj, jmethodID methodID, ... ) = &JNIEnv::CallDoubleMethod;
return callMethodWithIntArg<double>(pCallMethod,"getDouble","(I)D",mID,columnIndex);
}
-// -------------------------------------------------------------------------
+
float SAL_CALL java_sql_ResultSet::getFloat( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -227,7 +227,7 @@ float SAL_CALL java_sql_ResultSet::getFloat( sal_Int32 columnIndex ) throw(SQLEx
jfloat (JNIEnv::*pCallMethod)( jobject obj, jmethodID methodID, ... ) = &JNIEnv::CallFloatMethod;
return callMethodWithIntArg<jfloat>(pCallMethod,"getFloat","(I)F",mID,columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_ResultSet::getInt( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -235,7 +235,7 @@ sal_Int32 SAL_CALL java_sql_ResultSet::getInt( sal_Int32 columnIndex ) throw(SQL
static jmethodID mID(NULL);
return callIntMethodWithIntArg("getInt",mID,columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_ResultSet::getRow( ) throw(SQLException, RuntimeException)
{
@@ -243,7 +243,7 @@ sal_Int32 SAL_CALL java_sql_ResultSet::getRow( ) throw(SQLException, RuntimeExc
static jmethodID mID(NULL);
return callIntMethod("getRow",mID);
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL java_sql_ResultSet::getLong( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -252,7 +252,7 @@ sal_Int64 SAL_CALL java_sql_ResultSet::getLong( sal_Int32 columnIndex ) throw(SQ
jlong (JNIEnv::*pCallMethod)( jobject obj, jmethodID methodID, ... ) = &JNIEnv::CallLongMethod;
return callMethodWithIntArg<jlong>(pCallMethod,"getLong","(I)J",mID,columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > SAL_CALL java_sql_ResultSet::getMetaData( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -263,7 +263,7 @@ sal_Int64 SAL_CALL java_sql_ResultSet::getLong( sal_Int32 columnIndex ) throw(SQ
return out==0 ? 0 : new java_sql_ResultSetMetaData( t.pEnv, out, m_aLogger,*m_pConnection );
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL java_sql_ResultSet::getArray( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getArray" );
@@ -274,7 +274,7 @@ Reference< XArray > SAL_CALL java_sql_ResultSet::getArray( sal_Int32 columnIndex
// WARNING: the caller becomes the owner of the returned pointer
return out==0 ? 0 : new java_sql_Array( t.pEnv, out );
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL java_sql_ResultSet::getClob( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -285,7 +285,7 @@ Reference< XClob > SAL_CALL java_sql_ResultSet::getClob( sal_Int32 columnIndex )
// WARNING: the caller becomes the owner of the returned pointer
return out==0 ? 0 : new java_sql_Clob( t.pEnv, out );
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL java_sql_ResultSet::getBlob( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getBlob" );
@@ -295,7 +295,7 @@ Reference< XBlob > SAL_CALL java_sql_ResultSet::getBlob( sal_Int32 columnIndex )
// WARNING: the caller becomes the owner of the returned pointer
return out==0 ? 0 : new java_sql_Blob( t.pEnv, out );
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL java_sql_ResultSet::getRef( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -307,7 +307,7 @@ Reference< XRef > SAL_CALL java_sql_ResultSet::getRef( sal_Int32 columnIndex ) t
// WARNING: the caller becomes the owner of the returned pointer
return out==0 ? 0 : new java_sql_Ref( t.pEnv, out );
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL java_sql_ResultSet::getObject( sal_Int32 columnIndex, const Reference< ::com::sun::star::container::XNameAccess >& typeMap ) throw(SQLException, RuntimeException)
{
@@ -369,7 +369,7 @@ Any SAL_CALL java_sql_ResultSet::getObject( sal_Int32 columnIndex, const Referen
} //t.pEnv
return aRet;
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL java_sql_ResultSet::getShort( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -378,7 +378,7 @@ sal_Int16 SAL_CALL java_sql_ResultSet::getShort( sal_Int32 columnIndex ) throw(S
jshort (JNIEnv::*pCallMethod)( jobject obj, jmethodID methodID, ... ) = &JNIEnv::CallShortMethod;
return callMethodWithIntArg<jshort>(pCallMethod,"getShort","(I)S",mID,columnIndex);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_ResultSet::getString( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
@@ -387,7 +387,7 @@ OUString SAL_CALL java_sql_ResultSet::getString( sal_Int32 columnIndex ) throw(S
static jmethodID mID(NULL);
return callStringMethodWithIntArg("getString",mID,columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Time SAL_CALL java_sql_ResultSet::getTime( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
@@ -399,7 +399,7 @@ OUString SAL_CALL java_sql_ResultSet::getString( sal_Int32 columnIndex ) throw(S
// WARNING: the caller becomes the owner of the returned pointer
return out ? static_cast <com::sun::star::util::Time> (java_sql_Time( t.pEnv, out )) : ::com::sun::star::util::Time();
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::DateTime SAL_CALL java_sql_ResultSet::getTimestamp( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
@@ -411,7 +411,7 @@ OUString SAL_CALL java_sql_ResultSet::getString( sal_Int32 columnIndex ) throw(S
// WARNING: the caller becomes the owner of the returned pointer
return out ? static_cast <com::sun::star::util::DateTime> (java_sql_Timestamp( t.pEnv, out )) : ::com::sun::star::util::DateTime();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::isAfterLast( ) throw(SQLException, RuntimeException)
{
@@ -419,42 +419,42 @@ sal_Bool SAL_CALL java_sql_ResultSet::isAfterLast( ) throw(SQLException, Runtim
static jmethodID mID(NULL);
return callBooleanMethod( "isAfterLast", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::isFirst( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::isFirst" );
static jmethodID mID(NULL);
return callBooleanMethod( "isFirst", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::isLast( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::isLast" );
static jmethodID mID(NULL);
return callBooleanMethod( "isLast", mID );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::beforeFirst" );
static jmethodID mID(NULL);
callVoidMethod("beforeFirst",mID);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::afterLast( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::afterLast" );
static jmethodID mID(NULL);
callVoidMethod("afterLast",mID);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::close( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::close" );
dispose();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::first( ) throw(SQLException, RuntimeException)
{
@@ -462,7 +462,7 @@ sal_Bool SAL_CALL java_sql_ResultSet::first( ) throw(SQLException, RuntimeExcep
static jmethodID mID(NULL);
return callBooleanMethod( "first", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::last( ) throw(SQLException, RuntimeException)
{
@@ -470,34 +470,34 @@ sal_Bool SAL_CALL java_sql_ResultSet::last( ) throw(SQLException, RuntimeExcept
static jmethodID mID(NULL);
return callBooleanMethod( "last", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::absolute( sal_Int32 row ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::absolute" );
static jmethodID mID(NULL);
return callBooleanMethodWithIntArg( "absolute", mID,row );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::relative( sal_Int32 row ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::relative" );
static jmethodID mID(NULL);
return callBooleanMethodWithIntArg( "relative", mID,row );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::previous( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::previous" );
static jmethodID mID(NULL);
return callBooleanMethod( "previous", mID );
}
-// -------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL java_sql_ResultSet::getStatement( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getStatement" );
return m_xStatement;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::rowDeleted( ) throw(SQLException, RuntimeException)
{
@@ -505,21 +505,21 @@ sal_Bool SAL_CALL java_sql_ResultSet::rowDeleted( ) throw(SQLException, Runtime
static jmethodID mID(NULL);
return callBooleanMethod( "rowDeleted", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::rowInserted( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::rowInserted" );
static jmethodID mID(NULL);
return callBooleanMethod( "rowInserted", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::rowUpdated( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::rowUpdated" );
static jmethodID mID(NULL);
return callBooleanMethod( "rowUpdated", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::isBeforeFirst( ) throw(SQLException, RuntimeException)
{
@@ -527,7 +527,7 @@ sal_Bool SAL_CALL java_sql_ResultSet::isBeforeFirst( ) throw(SQLException, Runt
static jmethodID mID(NULL);
return callBooleanMethod( "isBeforeFirst", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::next( ) throw(SQLException, RuntimeException)
{
@@ -535,7 +535,7 @@ sal_Bool SAL_CALL java_sql_ResultSet::next( ) throw(SQLException, RuntimeExcept
static jmethodID mID(NULL);
return callBooleanMethod( "next", mID );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSet::wasNull( ) throw(SQLException, RuntimeException)
{
@@ -543,7 +543,7 @@ sal_Bool SAL_CALL java_sql_ResultSet::wasNull( ) throw(SQLException, RuntimeExc
static jmethodID mID(NULL);
return callBooleanMethod( "wasNull", mID );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::cancel( ) throw(::com::sun::star::uno::RuntimeException)
{
@@ -551,15 +551,15 @@ void SAL_CALL java_sql_ResultSet::cancel( ) throw(::com::sun::star::uno::Runtim
static jmethodID mID(NULL);
callVoidMethod("cancel",mID);
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
void SAL_CALL java_sql_ResultSet::clearWarnings( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::clearWarnings" );
static jmethodID mID(NULL);
callVoidMethod("clearWarnings",mID);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Any SAL_CALL java_sql_ResultSet::getWarnings( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getWarnings" );
@@ -577,7 +577,7 @@ void SAL_CALL java_sql_ResultSet::clearWarnings( ) throw(::com::sun::star::sdbc
return ::com::sun::star::uno::Any();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::insertRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -585,21 +585,21 @@ void SAL_CALL java_sql_ResultSet::insertRow( ) throw(::com::sun::star::sdbc::SQ
static jmethodID mID(NULL);
callVoidMethod("insertRow",mID);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::updateRow" );
static jmethodID mID(NULL);
callVoidMethod("updateRow",mID);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::deleteRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::deleteRow" );
static jmethodID mID(NULL);
callVoidMethod("deleteRow",mID);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::cancelRowUpdates( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -607,7 +607,7 @@ void SAL_CALL java_sql_ResultSet::cancelRowUpdates( ) throw(::com::sun::star::s
static jmethodID mID(NULL);
callVoidMethod("cancelRowUpdates",mID);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::moveToInsertRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -615,7 +615,7 @@ void SAL_CALL java_sql_ResultSet::moveToInsertRow( ) throw(::com::sun::star::sd
static jmethodID mID(NULL);
callVoidMethod("moveToInsertRow",mID);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::moveToCurrentRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -623,7 +623,7 @@ void SAL_CALL java_sql_ResultSet::moveToCurrentRow( ) throw(::com::sun::star::s
static jmethodID mID(NULL);
callVoidMethod("moveToCurrentRow",mID);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateNull( sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -631,7 +631,7 @@ void SAL_CALL java_sql_ResultSet::updateNull( sal_Int32 columnIndex ) throw(::co
static jmethodID mID(NULL);
callVoidMethodWithIntArg("updateNull",mID,columnIndex);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateBoolean( sal_Int32 columnIndex, sal_Bool x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -639,14 +639,14 @@ void SAL_CALL java_sql_ResultSet::updateBoolean( sal_Int32 columnIndex, sal_Bool
static jmethodID mID(NULL);
callVoidMethod("updateBoolean", "(IZ)V", mID, columnIndex, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateByte( sal_Int32 columnIndex, sal_Int8 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::updateByte" );
static jmethodID mID(NULL);
callVoidMethod("updateByte", "(IB)V", mID, columnIndex, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateShort( sal_Int32 columnIndex, sal_Int16 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -654,30 +654,30 @@ void SAL_CALL java_sql_ResultSet::updateShort( sal_Int32 columnIndex, sal_Int16
static jmethodID mID(NULL);
callVoidMethod("updateShort", "(IS)V", mID, columnIndex, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateInt( sal_Int32 columnIndex, sal_Int32 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::updateInt" );
static jmethodID mID(NULL);
callVoidMethod("updateInt", "(II)V", mID, columnIndex, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateLong( sal_Int32 columnIndex, sal_Int64 x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::updateLong" );
static jmethodID mID(NULL);
callVoidMethod("updateLong", "(IJ)V", mID, columnIndex, x);
}
-// -------------------------------------------------------------------------
-// -----------------------------------------------------------------------
+
+
void SAL_CALL java_sql_ResultSet::updateFloat( sal_Int32 columnIndex, float x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::updateFloat" );
static jmethodID mID(NULL);
callVoidMethod("updateFloat", "(IF)V", mID, columnIndex, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateDouble( sal_Int32 columnIndex, double x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -685,7 +685,7 @@ void SAL_CALL java_sql_ResultSet::updateDouble( sal_Int32 columnIndex, double x
static jmethodID mID(NULL);
callVoidMethod("updateDouble", "(ID)V", mID, columnIndex, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateString( sal_Int32 columnIndex, const OUString& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -713,7 +713,7 @@ void SAL_CALL java_sql_ResultSet::updateString( sal_Int32 columnIndex, const OUS
}
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateBytes( sal_Int32 columnIndex, const ::com::sun::star::uno::Sequence< sal_Int8 >& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -742,7 +742,7 @@ void SAL_CALL java_sql_ResultSet::updateBytes( sal_Int32 columnIndex, const ::co
}
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateDate( sal_Int32 columnIndex, const ::com::sun::star::util::Date& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -751,7 +751,7 @@ void SAL_CALL java_sql_ResultSet::updateDate( sal_Int32 columnIndex, const ::com
static jmethodID mID(NULL);
callVoidMethod("updateDate", "(ILjava/sql/Date;)V", mID, columnIndex, aD.getJavaObject());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateTime( sal_Int32 columnIndex, const ::com::sun::star::util::Time& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -760,7 +760,7 @@ void SAL_CALL java_sql_ResultSet::updateTime( sal_Int32 columnIndex, const ::com
static jmethodID mID(NULL);
callVoidMethod("updateTime", "(ILjava/sql/Time;)V", mID, columnIndex, aD.getJavaObject());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateTimestamp( sal_Int32 columnIndex, const ::com::sun::star::util::DateTime& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -769,7 +769,7 @@ void SAL_CALL java_sql_ResultSet::updateTimestamp( sal_Int32 columnIndex, const
static jmethodID mID(NULL);
callVoidMethod("updateTimestamp", "(ILjava/sql/Timestamp;)V", mID, columnIndex, aD.getJavaObject());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateBinaryStream( sal_Int32 columnIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -802,7 +802,7 @@ void SAL_CALL java_sql_ResultSet::updateBinaryStream( sal_Int32 columnIndex, con
::dbtools::throwFeatureNotImplementedException( "XRowUpdate::updateBinaryStream", *this );
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateCharacterStream( sal_Int32 columnIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::updateCharacterStream" );
@@ -834,7 +834,7 @@ void SAL_CALL java_sql_ResultSet::updateCharacterStream( sal_Int32 columnIndex,
::dbtools::throwFeatureNotImplementedException( "XRowUpdate::updateCharacterStream", *this );
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateObject( sal_Int32 columnIndex, const ::com::sun::star::uno::Any& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::updateObject" );
@@ -848,7 +848,7 @@ void SAL_CALL java_sql_ResultSet::updateObject( sal_Int32 columnIndex, const ::c
::dbtools::throwGenericSQLException(sError,*this);
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::updateNumericObject( sal_Int32 columnIndex, const ::com::sun::star::uno::Any& x, sal_Int32 scale ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -892,35 +892,35 @@ void SAL_CALL java_sql_ResultSet::updateNumericObject( sal_Int32 columnIndex, co
updateObject( columnIndex,x);
}
}
-//------------------------------------------------------------------------------
+
sal_Int32 java_sql_ResultSet::getResultSetConcurrency() const throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getResultSetConcurrency" );
static jmethodID mID(NULL);
return callIntMethod("getConcurrency",mID,true);
}
-//------------------------------------------------------------------------------
+
sal_Int32 java_sql_ResultSet::getResultSetType() const throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getResultSetType" );
static jmethodID mID(NULL);
return callIntMethod("getType",mID,true);
}
-//------------------------------------------------------------------------------
+
sal_Int32 java_sql_ResultSet::getFetchDirection() const throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getFetchDirection" );
static jmethodID mID(NULL);
return callIntMethod("getFetchDirection",mID,true);
}
-//------------------------------------------------------------------------------
+
sal_Int32 java_sql_ResultSet::getFetchSize() const throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getFetchSize" );
static jmethodID mID(NULL);
return callIntMethod("getFetchSize",mID,true);
}
-//------------------------------------------------------------------------------
+
OUString java_sql_ResultSet::getCursorName() const throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getCursorName" );
@@ -928,28 +928,28 @@ OUString java_sql_ResultSet::getCursorName() const throw(::com::sun::star::sdbc:
return callStringMethod("getCursorName",mID);
}
-//------------------------------------------------------------------------------
+
void java_sql_ResultSet::setFetchDirection(sal_Int32 _par0) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::setFetchDirection" );
static jmethodID mID(NULL);
callVoidMethodWithIntArg("setFetchDirection",mID,_par0,true);
}
-//------------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::refreshRow( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::refreshRow" );
static jmethodID mID(NULL);
callVoidMethod("refreshRow",mID);
}
-//------------------------------------------------------------------------------
+
void java_sql_ResultSet::setFetchSize(sal_Int32 _par0) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::setFetchSize" );
static jmethodID mID(NULL);
callVoidMethodWithIntArg("setFetchSize",mID,_par0,true);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* java_sql_ResultSet::createArrayHelper( ) const
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::createArrayHelper" );
@@ -964,13 +964,13 @@ void java_sql_ResultSet::setFetchSize(sal_Int32 _par0) throw(::com::sun::star::s
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & java_sql_ResultSet::getInfoHelper()
{
//SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getInfoHelper" );
return *const_cast<java_sql_ResultSet*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool java_sql_ResultSet::convertFastPropertyValue(
::com::sun::star::uno::Any & rConvertedValue,
::com::sun::star::uno::Any & rOldValue,
@@ -997,7 +997,7 @@ sal_Bool java_sql_ResultSet::convertFastPropertyValue(
return bRet;
}
-// -------------------------------------------------------------------------
+
void java_sql_ResultSet::setFastPropertyValue_NoBroadcast(
sal_Int32 nHandle,
const ::com::sun::star::uno::Any& rValue
@@ -1021,7 +1021,7 @@ void java_sql_ResultSet::setFastPropertyValue_NoBroadcast(
;
}
}
-// -------------------------------------------------------------------------
+
void java_sql_ResultSet::getFastPropertyValue(
::com::sun::star::uno::Any& rValue,
sal_Int32 nHandle
@@ -1053,23 +1053,23 @@ void java_sql_ResultSet::getFastPropertyValue(
{
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::acquire() throw()
{
java_sql_ResultSet_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL java_sql_ResultSet::release() throw()
{
java_sql_ResultSet_BASE::release();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL java_sql_ResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSet::getPropertySetInfo" );
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/jdbc/ResultSetMetaData.cxx b/connectivity/source/drivers/jdbc/ResultSetMetaData.cxx
index b3876b187f93..2e65be4f1ebf 100644
--- a/connectivity/source/drivers/jdbc/ResultSetMetaData.cxx
+++ b/connectivity/source/drivers/jdbc/ResultSetMetaData.cxx
@@ -55,7 +55,7 @@ jclass java_sql_ResultSetMetaData::getMyClass() const
theClass = findMyClass("java/sql/ResultSetMetaData");
return theClass;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_ResultSetMetaData::getColumnDisplaySize( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -63,7 +63,7 @@ sal_Int32 SAL_CALL java_sql_ResultSetMetaData::getColumnDisplaySize( sal_Int32 c
static jmethodID mID(NULL);
return callIntMethodWithIntArg("getColumnDisplaySize",mID,column);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_ResultSetMetaData::getColumnType( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -71,7 +71,7 @@ sal_Int32 SAL_CALL java_sql_ResultSetMetaData::getColumnType( sal_Int32 column )
static jmethodID mID(NULL);
return callIntMethodWithIntArg("getColumnType",mID,column);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_ResultSetMetaData::getColumnCount( ) throw(SQLException, RuntimeException)
{
@@ -84,7 +84,7 @@ sal_Int32 SAL_CALL java_sql_ResultSetMetaData::getColumnCount( ) throw(SQLExcep
return m_nColumnCount;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSetMetaData::isCaseSensitive( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -92,14 +92,14 @@ sal_Bool SAL_CALL java_sql_ResultSetMetaData::isCaseSensitive( sal_Int32 column
static jmethodID mID(NULL);
return callBooleanMethodWithIntArg( "isCaseSensitive", mID,column );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_ResultSetMetaData::getSchemaName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSetMetaData::getSchemaName" );
static jmethodID mID(NULL);
return callStringMethodWithIntArg("getSchemaName",mID,column);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_ResultSetMetaData::getColumnName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -107,42 +107,42 @@ OUString SAL_CALL java_sql_ResultSetMetaData::getColumnName( sal_Int32 column )
static jmethodID mID(NULL);
return callStringMethodWithIntArg("getColumnName",mID,column);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_ResultSetMetaData::getTableName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSetMetaData::getTableName" );
static jmethodID mID(NULL);
return callStringMethodWithIntArg("getTableName",mID,column);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_ResultSetMetaData::getCatalogName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSetMetaData::getCatalogName" );
static jmethodID mID(NULL);
return callStringMethodWithIntArg("getCatalogName",mID,column);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_ResultSetMetaData::getColumnTypeName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSetMetaData::getColumnTypeName" );
static jmethodID mID(NULL);
return callStringMethodWithIntArg("getColumnTypeName",mID,column);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_ResultSetMetaData::getColumnLabel( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSetMetaData::getColumnLabel" );
static jmethodID mID(NULL);
return callStringMethodWithIntArg("getColumnLabel",mID,column);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL java_sql_ResultSetMetaData::getColumnServiceName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSetMetaData::getColumnServiceName" );
static jmethodID mID(NULL);
return callStringMethodWithIntArg("getColumnClassName",mID,column);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -152,7 +152,7 @@ sal_Bool SAL_CALL java_sql_ResultSetMetaData::isCurrency( sal_Int32 column ) thr
static jmethodID mID(NULL);
return callBooleanMethodWithIntArg( "isCurrency", mID,column );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSetMetaData::isAutoIncrement( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -160,7 +160,7 @@ sal_Bool SAL_CALL java_sql_ResultSetMetaData::isAutoIncrement( sal_Int32 column
static jmethodID mID(NULL);
return callBooleanMethodWithIntArg( "isAutoIncrement", mID,column );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSetMetaData::isSigned( sal_Int32 column ) throw(SQLException, RuntimeException)
@@ -169,28 +169,28 @@ sal_Bool SAL_CALL java_sql_ResultSetMetaData::isSigned( sal_Int32 column ) throw
static jmethodID mID(NULL);
return callBooleanMethodWithIntArg( "isSigned", mID,column );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_ResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSetMetaData::getPrecision" );
static jmethodID mID(NULL);
return callIntMethodWithIntArg("getPrecision",mID,column);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_ResultSetMetaData::getScale( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSetMetaData::getScale" );
static jmethodID mID(NULL);
return callIntMethodWithIntArg("getScale",mID,column);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL java_sql_ResultSetMetaData::isNullable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSetMetaData::isNullable" );
static jmethodID mID(NULL);
return callIntMethodWithIntArg("isNullable",mID,column);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSetMetaData::isSearchable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -198,7 +198,7 @@ sal_Bool SAL_CALL java_sql_ResultSetMetaData::isSearchable( sal_Int32 column ) t
static jmethodID mID(NULL);
return callBooleanMethodWithIntArg( "isSearchable", mID,column );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSetMetaData::isReadOnly( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -206,7 +206,7 @@ sal_Bool SAL_CALL java_sql_ResultSetMetaData::isReadOnly( sal_Int32 column ) thr
static jmethodID mID(NULL);
return callBooleanMethodWithIntArg( "isReadOnly", mID,column );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSetMetaData::isDefinitelyWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -214,13 +214,13 @@ sal_Bool SAL_CALL java_sql_ResultSetMetaData::isDefinitelyWritable( sal_Int32 co
static jmethodID mID(NULL);
return callBooleanMethodWithIntArg( "isDefinitelyWritable", mID,column );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL java_sql_ResultSetMetaData::isWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "jdbc Ocke.Janssen@sun.com java_sql_ResultSetMetaData::isWritable" );
static jmethodID mID(NULL);
return callBooleanMethodWithIntArg( "isWritable", mID,column );
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/jdbc/String.cxx b/connectivity/source/drivers/jdbc/String.cxx
index ce9d464ecf3e..477ab07036c2 100644
--- a/connectivity/source/drivers/jdbc/String.cxx
+++ b/connectivity/source/drivers/jdbc/String.cxx
@@ -41,7 +41,7 @@ jclass java_lang_String::st_getMyClass()
return theClass;
}
-//--------------------------------------------------------------------------
+
java_lang_String::operator OUString()
{
SDBThreadAttach t;
diff --git a/connectivity/source/drivers/jdbc/Throwable.cxx b/connectivity/source/drivers/jdbc/Throwable.cxx
index 90b4a015e673..6143ff7ec343 100644
--- a/connectivity/source/drivers/jdbc/Throwable.cxx
+++ b/connectivity/source/drivers/jdbc/Throwable.cxx
@@ -40,14 +40,14 @@ jclass java_lang_Throwable::st_getMyClass()
theClass = findMyClass("java/lang/Throwable");
return theClass;
}
-// -----------------------------------------------------------------------------
+
OUString java_lang_Throwable::getMessage() const
{
static jmethodID mID(NULL);
return callStringMethod("getMessage",mID);
}
-// -----------------------------------------------------------------------------
+
OUString java_lang_Throwable::getLocalizedMessage() const
{
diff --git a/connectivity/source/drivers/jdbc/Timestamp.cxx b/connectivity/source/drivers/jdbc/Timestamp.cxx
index c319f75679a0..20d257714514 100644
--- a/connectivity/source/drivers/jdbc/Timestamp.cxx
+++ b/connectivity/source/drivers/jdbc/Timestamp.cxx
@@ -68,7 +68,7 @@ jclass java_sql_Date::st_getMyClass()
theClass = findMyClass("java/sql/Date");
return theClass;
}
-// -----------------------------------------------------------------------------
+
java_sql_Date::operator ::com::sun::star::util::Date()
{
@@ -121,7 +121,7 @@ java_sql_Time::java_sql_Time( const ::com::sun::star::util::Time& _rOut ): java_
t.pEnv->DeleteLocalRef( tempObj );
// and clean
}
-// -----------------------------------------------------------------------------
+
java_sql_Time::operator ::com::sun::star::util::Time()
{
return ::dbtools::DBTypeConversion::toTime(toString());
@@ -176,12 +176,12 @@ java_sql_Timestamp::java_sql_Timestamp(const ::com::sun::star::util::DateTime& _
// and clean
}
-// -----------------------------------------------------------------------------
+
java_sql_Timestamp::operator ::com::sun::star::util::DateTime()
{
return ::dbtools::DBTypeConversion::toDateTime(toString());
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/jdbc/jservices.cxx b/connectivity/source/drivers/jdbc/jservices.cxx
index 438bb28b3318..600294db836a 100644
--- a/connectivity/source/drivers/jdbc/jservices.cxx
+++ b/connectivity/source/drivers/jdbc/jservices.cxx
@@ -35,7 +35,7 @@ typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
rtl_ModuleCount*
);
-//---------------------------------------------------------------------------------------
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
diff --git a/connectivity/source/drivers/jdbc/tools.cxx b/connectivity/source/drivers/jdbc/tools.cxx
index 02a8094ae36d..c443b229edcb 100644
--- a/connectivity/source/drivers/jdbc/tools.cxx
+++ b/connectivity/source/drivers/jdbc/tools.cxx
@@ -74,7 +74,7 @@ jclass java_util_Properties::getMyClass() const
return theClass;
}
-//--------------------------------------------------------------------------
+
java_util_Properties::java_util_Properties( ): java_lang_Object( NULL, (jobject)NULL )
{
SDBThreadAttach t;
@@ -91,7 +91,7 @@ java_util_Properties::java_util_Properties( ): java_lang_Object( NULL, (jobject)
t.pEnv->DeleteLocalRef( tempObj );
}
-// --------------------------------------------------------------------------------
+
jstring connectivity::convertwchar_tToJavaString(JNIEnv *pEnv,const OUString& _rTemp)
{
OSL_ENSURE(pEnv,"Environment is NULL!");
@@ -101,7 +101,7 @@ jstring connectivity::convertwchar_tToJavaString(JNIEnv *pEnv,const OUString& _r
return pStr;
}
-// --------------------------------------------------------------------------------
+
java_util_Properties* connectivity::createStringPropertyArray(const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
java_util_Properties* pProps = new java_util_Properties();
@@ -152,7 +152,7 @@ java_util_Properties* connectivity::createStringPropertyArray(const Sequence< Pr
}
return pProps;
}
-// --------------------------------------------------------------------------------
+
OUString connectivity::JavaString2String(JNIEnv *pEnv,jstring _Str)
{
OUString aStr;
@@ -169,7 +169,7 @@ OUString connectivity::JavaString2String(JNIEnv *pEnv,jstring _Str)
}
return aStr;
}
-// --------------------------------------------------------------------------------
+
jobject connectivity::convertTypeMapToJavaMap(JNIEnv* /*pEnv*/,const Reference< ::com::sun::star::container::XNameAccess > & _rMap)
{
if ( _rMap.is() )
@@ -180,7 +180,7 @@ jobject connectivity::convertTypeMapToJavaMap(JNIEnv* /*pEnv*/,const Reference<
}
return 0;
}
-// -----------------------------------------------------------------------------
+
sal_Bool connectivity::isExceptionOccurred(JNIEnv *pEnv,sal_Bool _bClear)
{
if ( !pEnv )
@@ -208,7 +208,7 @@ sal_Bool connectivity::isExceptionOccurred(JNIEnv *pEnv,sal_Bool _bClear)
return bRet;
}
-// -----------------------------------------------------------------------------
+
jobject connectivity::createByteInputStream(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& x,sal_Int32 length)
{
SDBThreadAttach t;
@@ -235,7 +235,7 @@ jobject connectivity::createByteInputStream(const ::com::sun::star::uno::Referen
t.pEnv->DeleteLocalRef((jbyteArray)pByteArray);
return out;
}
-// -----------------------------------------------------------------------------
+
jobject connectivity::createCharArrayReader(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& x,sal_Int32 length)
{
SDBThreadAttach t;
@@ -262,6 +262,6 @@ jobject connectivity::createCharArrayReader(const ::com::sun::star::uno::Referen
t.pEnv->DeleteLocalRef((jcharArray)pCharArray);
return out;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/kab/KCatalog.cxx b/connectivity/source/drivers/kab/KCatalog.cxx
index a0b22b34e6e1..3eee195ee388 100644
--- a/connectivity/source/drivers/kab/KCatalog.cxx
+++ b/connectivity/source/drivers/kab/KCatalog.cxx
@@ -31,14 +31,14 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
using namespace ::cppu;
-// -------------------------------------------------------------------------
+
KabCatalog::KabCatalog(KabConnection* _pCon)
: connectivity::sdbcx::OCatalog(_pCon),
m_pConnection(_pCon),
m_xMetaData(m_pConnection->getMetaData())
{
}
-// -------------------------------------------------------------------------
+
void KabCatalog::refreshTables()
{
TStringVector aVector;
@@ -68,19 +68,19 @@ void KabCatalog::refreshTables()
else
m_pTables = new KabTables(m_xMetaData,*this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
void KabCatalog::refreshViews()
{
}
-// -------------------------------------------------------------------------
+
void KabCatalog::refreshGroups()
{
}
-// -------------------------------------------------------------------------
+
void KabCatalog::refreshUsers()
{
}
-// -----------------------------------------------------------------------------
+
// XTablesSupplier
Reference< XNameAccess > SAL_CALL KabCatalog::getTables( ) throw(RuntimeException)
diff --git a/connectivity/source/drivers/kab/KColumns.cxx b/connectivity/source/drivers/kab/KColumns.cxx
index a73f813d357f..d3c0c8a891eb 100644
--- a/connectivity/source/drivers/kab/KColumns.cxx
+++ b/connectivity/source/drivers/kab/KColumns.cxx
@@ -34,7 +34,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
sdbcx::ObjectType KabColumns::createObject(const OUString& _rName)
{
const Any aCatalog;
@@ -77,12 +77,12 @@ sdbcx::ObjectType KabColumns::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void KabColumns::impl_refresh() throw(RuntimeException)
{
m_pTable->refreshColumns();
}
-// -------------------------------------------------------------------------
+
KabColumns::KabColumns( KabTable* _pTable,
::osl::Mutex& _rMutex,
const TStringVector &_rVector)
diff --git a/connectivity/source/drivers/kab/KConnection.cxx b/connectivity/source/drivers/kab/KConnection.cxx
index 0e0cc690083b..32d1cae21522 100644
--- a/connectivity/source/drivers/kab/KConnection.cxx
+++ b/connectivity/source/drivers/kab/KConnection.cxx
@@ -36,7 +36,7 @@ using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
IMPLEMENT_SERVICE_INFO(KabConnection, "com.sun.star.sdbc.drivers.KabConnection", "com.sun.star.sdbc.Connection")
-//-----------------------------------------------------------------------------
+
KabConnection::KabConnection(KabDriver* _pDriver)
: OMetaConnection_BASE(m_aMutex),
OSubComponent<KabConnection, KabConnection_BASE>((::cppu::OWeakObject*)_pDriver, this),
@@ -46,7 +46,7 @@ KabConnection::KabConnection(KabDriver* _pDriver)
{
m_pDriver->acquire();
}
-//-----------------------------------------------------------------------------
+
KabConnection::~KabConnection()
{
if (!isClosed())
@@ -55,12 +55,12 @@ KabConnection::~KabConnection()
m_pDriver->release();
m_pDriver = NULL;
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL KabConnection::release() throw()
{
relase_ChildImpl();
}
-// -----------------------------------------------------------------------------
+
void KabConnection::construct(const OUString&, const Sequence< PropertyValue >&) throw(SQLException)
{
osl_atomic_increment( &m_refCount );
@@ -74,7 +74,7 @@ void KabConnection::construct(const OUString&, const Sequence< PropertyValue >&)
osl_atomic_decrement( &m_refCount );
}
// XServiceInfo
-// --------------------------------------------------------------------------------
+
Reference< XStatement > SAL_CALL KabConnection::createStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -86,7 +86,7 @@ Reference< XStatement > SAL_CALL KabConnection::createStatement( ) throw(SQLExc
m_aStatements.push_back(WeakReferenceHelper(xReturn));
return xReturn;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL KabConnection::prepareStatement( const OUString& _sSql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -98,7 +98,7 @@ Reference< XPreparedStatement > SAL_CALL KabConnection::prepareStatement( const
m_aStatements.push_back(WeakReferenceHelper(xReturn));
return xReturn;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL KabConnection::prepareCall( const OUString& ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -107,7 +107,7 @@ Reference< XPreparedStatement > SAL_CALL KabConnection::prepareCall( const OUStr
// not implemented yet :-) a task to do
return NULL;
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL KabConnection::nativeSQL( const OUString& _sSql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -115,14 +115,14 @@ OUString SAL_CALL KabConnection::nativeSQL( const OUString& _sSql ) throw(SQLExc
return _sSql;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL KabConnection::setAutoCommit( sal_Bool ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabConnection_BASE::rBHelper.bDisposed);
// here you have to set your commit mode please have a look at the jdbc documentation to get a clear explanation
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabConnection::getAutoCommit( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -132,7 +132,7 @@ sal_Bool SAL_CALL KabConnection::getAutoCommit( ) throw(SQLException, RuntimeEx
return sal_True;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL KabConnection::commit( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -140,7 +140,7 @@ void SAL_CALL KabConnection::commit( ) throw(SQLException, RuntimeException)
// when you database does support transactions you should commit here
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL KabConnection::rollback( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -148,7 +148,7 @@ void SAL_CALL KabConnection::rollback( ) throw(SQLException, RuntimeException)
// same as commit but for the other case
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabConnection::isClosed( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -156,7 +156,7 @@ sal_Bool SAL_CALL KabConnection::isClosed( ) throw(SQLException, RuntimeExcepti
// just simple -> we are closed when we are disposed, that means someone called dispose(); (XComponent)
return KabConnection_BASE::rBHelper.bDisposed;
}
-// --------------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL KabConnection::getMetaData( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -173,7 +173,7 @@ Reference< XDatabaseMetaData > SAL_CALL KabConnection::getMetaData( ) throw(SQL
return xMetaData;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL KabConnection::setReadOnly( sal_Bool ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -181,7 +181,7 @@ void SAL_CALL KabConnection::setReadOnly( sal_Bool ) throw(SQLException, Runtime
// set you connection to readonly
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabConnection::isReadOnly( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -190,7 +190,7 @@ sal_Bool SAL_CALL KabConnection::isReadOnly( ) throw(SQLException, RuntimeExcep
// return if your connection to readonly
return sal_False;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL KabConnection::setCatalog( const OUString& ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -198,7 +198,7 @@ void SAL_CALL KabConnection::setCatalog( const OUString& ) throw(SQLException, R
// if your database doesn't work with catalogs you go to next method otherwise you kjnow what to do
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL KabConnection::getCatalog( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -208,7 +208,7 @@ OUString SAL_CALL KabConnection::getCatalog( ) throw(SQLException, RuntimeExcep
// return your current catalog
return OUString();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL KabConnection::setTransactionIsolation( sal_Int32 ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -217,7 +217,7 @@ void SAL_CALL KabConnection::setTransactionIsolation( sal_Int32 ) throw(SQLExcep
// set your isolation level
// please have a look at @see com.sun.star.sdbc.TransactionIsolation
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabConnection::getTransactionIsolation( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -227,7 +227,7 @@ sal_Int32 SAL_CALL KabConnection::getTransactionIsolation( ) throw(SQLException
// please have a look at @see com.sun.star.sdbc.TransactionIsolation
return TransactionIsolation::NONE;
}
-// --------------------------------------------------------------------------------
+
Reference< ::com::sun::star::container::XNameAccess > SAL_CALL KabConnection::getTypeMap( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -237,12 +237,12 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL KabConnection::ge
return NULL;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL KabConnection::setTypeMap( const Reference< ::com::sun::star::container::XNameAccess >& ) throw(SQLException, RuntimeException)
{
// the other way around
}
-// --------------------------------------------------------------------------------
+
// XCloseable
void SAL_CALL KabConnection::close( ) throw(SQLException, RuntimeException)
{
@@ -252,19 +252,19 @@ void SAL_CALL KabConnection::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// --------------------------------------------------------------------------------
+
// XWarningsSupplier
Any SAL_CALL KabConnection::getWarnings( ) throw(SQLException, RuntimeException)
{
// when you collected some warnings -> return it
return Any();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL KabConnection::clearWarnings( ) throw(SQLException, RuntimeException)
{
// you should clear your collected warnings here
}
-//------------------------------------------------------------------------------
+
void KabConnection::disposing()
{
// we noticed that we should be destroied in near future so we have to dispose our statements
@@ -289,7 +289,7 @@ void KabConnection::disposing()
dispose_ChildImpl();
KabConnection_BASE::disposing();
}
-// -----------------------------------------------------------------------------
+
Reference< XTablesSupplier > SAL_CALL KabConnection::createCatalog()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -303,12 +303,12 @@ Reference< XTablesSupplier > SAL_CALL KabConnection::createCatalog()
}
return xTab;
}
-// -----------------------------------------------------------------------------
+
::KABC::AddressBook* KabConnection::getAddressBook() const
{
return m_pAddressBook;
}
-// -----------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL createKabConnection( void* _pDriver )
{
KabConnection* pConnection = new KabConnection( static_cast< KabDriver* >( _pDriver ) );
diff --git a/connectivity/source/drivers/kab/KDEInit.cxx b/connectivity/source/drivers/kab/KDEInit.cxx
index 83f4bd98f970..411bae233d21 100644
--- a/connectivity/source/drivers/kab/KDEInit.cxx
+++ b/connectivity/source/drivers/kab/KDEInit.cxx
@@ -42,11 +42,11 @@ namespace connectivity
static void Shutdown();
};
- // ---------------------------------------------------------------
+
KApplication* KDEInit::s_pKApplication = NULL;
bool KDEInit::s_bDidInsertCatalogue = false;
- // ---------------------------------------------------------------
+
void KDEInit::Init()
{
// TODO: All this is not thread-safe
@@ -77,7 +77,7 @@ namespace connectivity
s_bDidInsertCatalogue = true;
}
- // ---------------------------------------------------------------
+
void KDEInit::Shutdown()
{
if ( s_bDidInsertCatalogue )
@@ -103,18 +103,18 @@ namespace
}
}
-// -----------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL initKApplication()
{
::connectivity::kab::KDEInit::Init();
}
-// -----------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL shutdownKApplication()
{
::connectivity::kab::KDEInit::Shutdown();
}
-// -----------------------------------------------------------------------
+
/** checks whether the KDE version on the system we're running at is supported
by the driver
diff --git a/connectivity/source/drivers/kab/KDatabaseMetaData.cxx b/connectivity/source/drivers/kab/KDatabaseMetaData.cxx
index 486eaff38e66..b2481c458983 100644
--- a/connectivity/source/drivers/kab/KDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/kab/KDatabaseMetaData.cxx
@@ -44,11 +44,11 @@ KabDatabaseMetaData::KabDatabaseMetaData(KabConnection* _pCon)
m_bUseCatalog = !(usesLocalFiles() || usesLocalFilePerTable());
osl_atomic_decrement( &m_refCount );
}
-// -------------------------------------------------------------------------
+
KabDatabaseMetaData::~KabDatabaseMetaData()
{
}
-// -------------------------------------------------------------------------
+
const OUString & KabDatabaseMetaData::getAddressBookTableName()
{
static const OUString aAddressBookTableName
@@ -56,7 +56,7 @@ const OUString & KabDatabaseMetaData::getAddressBookTableName()
return aAddressBookTableName;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getCatalogSeparator( ) throw(SQLException, RuntimeException)
{
OUString aVal;
@@ -66,73 +66,73 @@ OUString SAL_CALL KabDatabaseMetaData::getCatalogSeparator( ) throw(SQLExceptio
return aVal;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxRowSize( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxCatalogNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxCharLiteralLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxColumnNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxColumnsInIndex( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxCursorNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxConnections( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxColumnsInTable( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxStatementLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxTableNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxTablesInSelect( ) throw(SQLException, RuntimeException)
{
// MaxTablesInSelect describes how many tables can participate in the FROM part of a given SELECT statement,
@@ -140,63 +140,63 @@ sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxTablesInSelect( ) throw(SQLExcept
sal_Int32 nValue = 1;
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::storesMixedCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsAlterTableWithAddColumn( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsAlterTableWithDropColumn( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException)
{
OUString aVal;
@@ -205,25 +205,25 @@ OUString SAL_CALL KabDatabaseMetaData::getCatalogTerm( ) throw(SQLException, Ru
}
return aVal;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getIdentifierQuoteString( ) throw(SQLException, RuntimeException)
{
// normally this is "
OUString aVal("\"");
return aVal;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getExtraNameCharacters( ) throw(SQLException, RuntimeException)
{
OUString aVal;
return aVal;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::isCatalogAtStart( ) throw(SQLException, RuntimeException)
{
sal_Bool bValue = sal_False;
@@ -232,326 +232,326 @@ sal_Bool SAL_CALL KabDatabaseMetaData::isCatalogAtStart( ) throw(SQLException,
}
return bValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsSchemasInDataManipulation( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException)
{
return sal_True; // should be supported at least
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsSchemasInTableDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsCatalogsInTableDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsCatalogsInDataManipulation( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxStatements( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxProcedureNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException)
{
// for the moment, we have read-only addresses, but this might change in the future
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsConvert( sal_Int32, sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsMixedCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getURL( ) throw(SQLException, RuntimeException)
{
// if someday we support more than the default address book,
@@ -559,145 +559,145 @@ OUString SAL_CALL KabDatabaseMetaData::getURL( ) throw(SQLException, RuntimeExc
OUString aValue( "sdbc:address:kab:" );
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getUserName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getDriverName( ) throw(SQLException, RuntimeException)
{
OUString aValue( "kab" );
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getDriverVersion() throw(SQLException, RuntimeException)
{
OUString aValue(KAB_DRIVER_VERSION);
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getDatabaseProductVersion( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getDatabaseProductName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getProcedureTerm( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getSchemaTerm( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getDriverMajorVersion( ) throw(RuntimeException)
{
return KAB_DRIVER_VERSION_MAJOR;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getDefaultTransactionIsolation( ) throw(SQLException, RuntimeException)
{
return TransactionIsolation::NONE;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException)
{
return KAB_DRIVER_VERSION_MINOR;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getSQLKeywords( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getSearchStringEscape( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getStringFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getTimeDateFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getSystemFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabDatabaseMetaData::getNumericFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxColumnsInOrderBy( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxColumnsInSelect( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDatabaseMetaData::getMaxUserNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsResultSetType( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
switch (setType)
@@ -708,7 +708,7 @@ sal_Bool SAL_CALL KabDatabaseMetaData::supportsResultSetType( sal_Int32 setType
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 ) throw(SQLException, RuntimeException)
{
switch (setType)
@@ -719,62 +719,62 @@ sal_Bool SAL_CALL KabDatabaseMetaData::supportsResultSetConcurrency( sal_Int32 s
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::ownUpdatesAreVisible( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::ownDeletesAreVisible( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::ownInsertsAreVisible( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::othersUpdatesAreVisible( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::othersDeletesAreVisible( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::othersInsertsAreVisible( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::updatesAreDetected( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::deletesAreDetected( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::insertsAreDetected( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL KabDatabaseMetaData::getConnection( ) throw(SQLException, RuntimeException)
{
return (Reference< XConnection >) m_xConnection.get();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException)
{
::connectivity::ODatabaseMetaDataResultSet* pResult = new ::connectivity::ODatabaseMetaDataResultSet(::connectivity::ODatabaseMetaDataResultSet::eTableTypes);
@@ -793,7 +793,7 @@ Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getTableTypes( ) throw(SQ
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getTypeInfo( ) throw(SQLException, RuntimeException)
{
::connectivity::ODatabaseMetaDataResultSet* pResult = new ::connectivity::ODatabaseMetaDataResultSet(::connectivity::ODatabaseMetaDataResultSet::eTypeInfo);
@@ -830,24 +830,24 @@ Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getTypeInfo( ) throw(SQLE
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getCatalogs( ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eCatalogs );
}
-// -----------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getSchemas( ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eSchemas );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getColumnPrivileges(
const Any&, const OUString&, const OUString&,
const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eColumnPrivileges );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getColumns(
const Any&,
const OUString&,
@@ -917,7 +917,7 @@ Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getColumns(
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getTables(
const Any&,
const OUString&,
@@ -968,21 +968,21 @@ Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getTables(
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getProcedureColumns(
const Any&, const OUString&,
const OUString&, const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eProcedureColumns );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getProcedures(
const Any&, const OUString&,
const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eProcedures );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getVersionColumns(
const Any&, const OUString&, const OUString& table ) throw(SQLException, RuntimeException)
{
@@ -1015,45 +1015,45 @@ Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getVersionColumns(
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getExportedKeys(
const Any&, const OUString&, const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eExportedKeys );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getImportedKeys(
const Any&, const OUString&, const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eImportedKeys );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getPrimaryKeys(
const Any&, const OUString&, const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::ePrimaryKeys );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getIndexInfo(
const Any&, const OUString&, const OUString&,
sal_Bool, sal_Bool ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eIndexInfo );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getBestRowIdentifier(
const Any&, const OUString&, const OUString&, sal_Int32,
sal_Bool ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eBestRowIdentifier );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getTablePrivileges(
const Any&, const OUString&, const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eTablePrivileges );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getCrossReference(
const Any&, const OUString&,
const OUString&, const Any&,
@@ -1061,12 +1061,12 @@ Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getCrossReference(
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eCrossReference );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabDatabaseMetaData::getUDTs( const Any&, const OUString&, const OUString&, const Sequence< sal_Int32 >& ) throw(SQLException, RuntimeException)
{
OSL_FAIL("Not implemented yet!");
throw SQLException();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/kab/KDriver.cxx b/connectivity/source/drivers/kab/KDriver.cxx
index 798d7405e224..ef551d500c2c 100644
--- a/connectivity/source/drivers/kab/KDriver.cxx
+++ b/connectivity/source/drivers/kab/KDriver.cxx
@@ -45,7 +45,7 @@ using namespace connectivity::kab;
// =======================================================================
// = KabImplModule
// =======================================================================
-// --------------------------------------------------------------------------------
+
KabImplModule::KabImplModule( const Reference< XComponentContext >& _rxContext )
:m_xContext(_rxContext)
,m_bAttemptedLoadModule(false)
@@ -60,7 +60,7 @@ KabImplModule::KabImplModule( const Reference< XComponentContext >& _rxContext )
throw NullPointerException();
}
-// --------------------------------------------------------------------------------
+
bool KabImplModule::isKDEPresent()
{
if ( !impl_loadModule() )
@@ -69,7 +69,7 @@ bool KabImplModule::isKDEPresent()
return true;
}
-// --------------------------------------------------------------------------------
+
KabImplModule::KDEVersionType KabImplModule::matchKDEVersion()
{
OSL_PRECOND( m_pKDEVersionCheckFunc, "KabImplModule::matchKDEVersion: module not loaded!" );
@@ -82,7 +82,7 @@ KabImplModule::KDEVersionType KabImplModule::matchKDEVersion()
return eSupported;
}
-// --------------------------------------------------------------------------------
+
namespace
{
template< typename FUNCTION >
@@ -108,7 +108,7 @@ namespace
}
}
-// --------------------------------------------------------------------------------
+
extern "C" { void SAL_CALL thisModule() {} }
bool KabImplModule::impl_loadModule()
@@ -138,7 +138,7 @@ bool KabImplModule::impl_loadModule()
return true;
}
-// --------------------------------------------------------------------------------
+
void KabImplModule::impl_unloadModule()
{
OSL_PRECOND( m_hConnectorModule != NULL, "KabImplModule::impl_unloadModule: no module!" );
@@ -154,7 +154,7 @@ void KabImplModule::impl_unloadModule()
m_bAttemptedLoadModule = false;
}
-// --------------------------------------------------------------------------------
+
void KabImplModule::init()
{
if ( !impl_loadModule() )
@@ -176,7 +176,7 @@ void KabImplModule::init()
}
}
-// --------------------------------------------------------------------------------
+
bool KabImplModule::impl_doAllowNewKDEVersion()
{
try
@@ -206,7 +206,7 @@ bool KabImplModule::impl_doAllowNewKDEVersion()
return false;
}
-// --------------------------------------------------------------------------------
+
void KabImplModule::impl_throwNoKdeException()
{
::connectivity::SharedResources aResources;
@@ -216,7 +216,7 @@ void KabImplModule::impl_throwNoKdeException()
impl_throwGenericSQLException( sError );
}
-// --------------------------------------------------------------------------------
+
void KabImplModule::impl_throwKdeTooOldException()
{
::connectivity::SharedResources aResources;
@@ -228,7 +228,7 @@ void KabImplModule::impl_throwKdeTooOldException()
impl_throwGenericSQLException( sError );
}
-// --------------------------------------------------------------------------------
+
void KabImplModule::impl_throwGenericSQLException( const OUString& _rMessage )
{
SQLException aError;
@@ -238,7 +238,7 @@ void KabImplModule::impl_throwGenericSQLException( const OUString& _rMessage )
throw aError;
}
-// --------------------------------------------------------------------------------
+
void KabImplModule::impl_throwKdeTooNewException()
{
::connectivity::SharedResources aResources;
@@ -275,7 +275,7 @@ void KabImplModule::impl_throwKdeTooNewException()
throw aError;
}
-// --------------------------------------------------------------------------------
+
KabConnection* KabImplModule::createConnection( KabDriver* _pDriver ) const
{
OSL_PRECOND( m_hConnectorModule, "KabImplModule::createConnection: not initialized!" );
@@ -287,7 +287,7 @@ KabConnection* KabImplModule::createConnection( KabDriver* _pDriver ) const
return static_cast< KabConnection* >( pUntypedConnection );
}
-// --------------------------------------------------------------------------------
+
void KabImplModule::shutdown()
{
if ( !m_hConnectorModule )
@@ -323,7 +323,7 @@ KabDriver::KabDriver(
}
osl_atomic_decrement( &m_refCount );
}
-// --------------------------------------------------------------------------------
+
void KabDriver::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -340,12 +340,12 @@ void KabDriver::disposing()
WeakComponentImplHelperBase::disposing();
}
// static ServiceInfo
-//------------------------------------------------------------------------------
+
OUString KabDriver::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString::createFromAscii( impl_getAsciiImplementationName() );
}
-//------------------------------------------------------------------------------
+
Sequence< OUString > KabDriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
// which service is supported
@@ -355,7 +355,7 @@ Sequence< OUString > KabDriver::getSupportedServiceNames_Static( ) throw (Runti
return aSNS;
}
-//------------------------------------------------------------------
+
OUString SAL_CALL KabDriver::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
@@ -365,12 +365,12 @@ sal_Bool SAL_CALL KabDriver::supportsService( const OUString& _rServiceName ) th
{
return cppu::supportsService(this, _rServiceName);
}
-//------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL KabDriver::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
-// --------------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL KabDriver::connect( const OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -393,7 +393,7 @@ Reference< XConnection > SAL_CALL KabDriver::connect( const OUString& url, const
return xConnection;
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabDriver::acceptsURL( const OUString& url )
throw(SQLException, RuntimeException)
{
@@ -405,45 +405,45 @@ sal_Bool SAL_CALL KabDriver::acceptsURL( const OUString& url )
// here we have to look whether we support this URL format
return url.startsWith("sdbc:address:kab:");
}
-// --------------------------------------------------------------------------------
+
Sequence< DriverPropertyInfo > SAL_CALL KabDriver::getPropertyInfo( const OUString&, const Sequence< PropertyValue >& ) throw(SQLException, RuntimeException)
{
// if you have something special to say, return it here :-)
return Sequence< DriverPropertyInfo >();
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDriver::getMajorVersion( ) throw(RuntimeException)
{
return KAB_DRIVER_VERSION_MAJOR;
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabDriver::getMinorVersion( ) throw(RuntimeException)
{
return KAB_DRIVER_VERSION_MINOR;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL KabDriver::queryTermination( const EventObject& ) throw (TerminationVetoException, RuntimeException)
{
// nothing to do, nothing to veto
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL KabDriver::notifyTermination( const EventObject& ) throw (RuntimeException)
{
m_aImplModule.shutdown();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL KabDriver::disposing( const EventObject& ) throw (RuntimeException)
{
// not interested in (this is the disposing of the desktop, if any)
}
-// --------------------------------------------------------------------------------
+
const sal_Char* KabDriver::impl_getAsciiImplementationName()
{
return "com.sun.star.comp.sdbc.kab.Driver";
// this name is referenced in the configuration and in the kab.xml
// Please be careful when changing it.
}
-// --------------------------------------------------------------------------------
+
OUString KabDriver::impl_getConfigurationSettingsPath()
{
OUStringBuffer aPath;
@@ -451,7 +451,7 @@ OUString KabDriver::impl_getConfigurationSettingsPath()
aPath.appendAscii( "com.sun.star.comp.sdbc.kab.Driver" );
return aPath.makeStringAndClear();
}
-// --------------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL KabDriver::Create( const Reference< XMultiServiceFactory >& _rxFactory ) throw( Exception )
{
return *(new KabDriver( comphelper::getComponentContext(_rxFactory)));
diff --git a/connectivity/source/drivers/kab/KPreparedStatement.cxx b/connectivity/source/drivers/kab/KPreparedStatement.cxx
index 85a254b6b69c..fe9fd4952cab 100644
--- a/connectivity/source/drivers/kab/KPreparedStatement.cxx
+++ b/connectivity/source/drivers/kab/KPreparedStatement.cxx
@@ -32,7 +32,7 @@ using namespace com::sun::star::sdbc;
using namespace com::sun::star::util;
IMPLEMENT_SERVICE_INFO(KabPreparedStatement, "com.sun.star.sdbc.drivers.KabPreparedStatement", "com.sun.star.sdbc.PreparedStatement");
-// -------------------------------------------------------------------------
+
void KabPreparedStatement::checkAndResizeParameters(sal_Int32 nParams) throw(SQLException)
{
if ( !m_aParameterRow.is() )
@@ -44,7 +44,7 @@ void KabPreparedStatement::checkAndResizeParameters(sal_Int32 nParams) throw(SQL
if (nParams >= (sal_Int32) (m_aParameterRow->get()).size())
(m_aParameterRow->get()).resize(nParams);
}
-// -------------------------------------------------------------------------
+
void KabPreparedStatement::setKabFields() const throw(SQLException)
{
::rtl::Reference<connectivity::OSQLColumns> xColumns; // selected columns
@@ -60,12 +60,12 @@ void KabPreparedStatement::setKabFields() const throw(SQLException)
}
m_xMetaData->setKabFields(xColumns);
}
-// -------------------------------------------------------------------------
+
void KabPreparedStatement::resetParameters() const throw(SQLException)
{
m_nParameterIndex = 0;
}
-// -------------------------------------------------------------------------
+
void KabPreparedStatement::getNextParameter(OUString &rParameter) const throw(SQLException)
{
if (m_nParameterIndex >= (sal_Int32) (m_aParameterRow->get()).size())
@@ -81,7 +81,7 @@ void KabPreparedStatement::getNextParameter(OUString &rParameter) const throw(SQ
m_nParameterIndex++;
}
-// -------------------------------------------------------------------------
+
KabPreparedStatement::KabPreparedStatement(
KabConnection* _pConnection,
const OUString& sql)
@@ -92,11 +92,11 @@ KabPreparedStatement::KabPreparedStatement(
m_aParameterRow()
{
}
-// -------------------------------------------------------------------------
+
KabPreparedStatement::~KabPreparedStatement()
{
}
-// -------------------------------------------------------------------------
+
void KabPreparedStatement::disposing()
{
KabPreparedStatement_BASE::disposing();
@@ -107,7 +107,7 @@ void KabPreparedStatement::disposing()
m_aParameterRow = NULL;
}
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL KabPreparedStatement::getMetaData() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -121,7 +121,7 @@ Reference< XResultSetMetaData > SAL_CALL KabPreparedStatement::getMetaData() thr
Reference< XResultSetMetaData > xMetaData = m_xMetaData.get();
return xMetaData;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::close() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -139,7 +139,7 @@ void SAL_CALL KabPreparedStatement::close() throw(SQLException, RuntimeException
// Remove this Statement object from the Connection object's
// list
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabPreparedStatement::execute() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -149,7 +149,7 @@ sal_Bool SAL_CALL KabPreparedStatement::execute() throw(SQLException, RuntimeExc
return xRS.is();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabPreparedStatement::executeUpdate() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -158,7 +158,7 @@ sal_Int32 SAL_CALL KabPreparedStatement::executeUpdate() throw(SQLException, Run
// same as in statement with the difference that this statement also can contain parameter
return 0;
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL KabPreparedStatement::getConnection() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -166,7 +166,7 @@ Reference< XConnection > SAL_CALL KabPreparedStatement::getConnection() throw(SQ
return (Reference< XConnection >) m_pConnection;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabPreparedStatement::executeQuery() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -176,7 +176,7 @@ Reference< XResultSet > SAL_CALL KabPreparedStatement::executeQuery() throw(SQLE
return rs;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setNull(sal_Int32 parameterIndex, sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -186,7 +186,7 @@ void SAL_CALL KabPreparedStatement::setNull(sal_Int32 parameterIndex, sal_Int32)
(m_aParameterRow->get())[parameterIndex - 1].setNull();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setObjectNull(sal_Int32, sal_Int32, const OUString&) throw(SQLException, RuntimeException)
{
@@ -194,7 +194,7 @@ void SAL_CALL KabPreparedStatement::setObjectNull(sal_Int32, sal_Int32, const OU
::dbtools::throwFunctionNotSupportedException("setObjectNull", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setBoolean(sal_Int32, sal_Bool) throw(SQLException, RuntimeException)
{
@@ -202,7 +202,7 @@ void SAL_CALL KabPreparedStatement::setBoolean(sal_Int32, sal_Bool) throw(SQLExc
::dbtools::throwFunctionNotSupportedException("setBoolean", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setByte(sal_Int32, sal_Int8) throw(SQLException, RuntimeException)
{
@@ -210,7 +210,7 @@ void SAL_CALL KabPreparedStatement::setByte(sal_Int32, sal_Int8) throw(SQLExcept
::dbtools::throwFunctionNotSupportedException("setByte", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setShort(sal_Int32, sal_Int16) throw(SQLException, RuntimeException)
{
@@ -218,7 +218,7 @@ void SAL_CALL KabPreparedStatement::setShort(sal_Int32, sal_Int16) throw(SQLExce
::dbtools::throwFunctionNotSupportedException("setShort", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setInt(sal_Int32, sal_Int32) throw(SQLException, RuntimeException)
{
@@ -226,7 +226,7 @@ void SAL_CALL KabPreparedStatement::setInt(sal_Int32, sal_Int32) throw(SQLExcept
::dbtools::throwFunctionNotSupportedException("setInt", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setLong(sal_Int32, sal_Int64) throw(SQLException, RuntimeException)
{
@@ -234,7 +234,7 @@ void SAL_CALL KabPreparedStatement::setLong(sal_Int32, sal_Int64) throw(SQLExcep
::dbtools::throwFunctionNotSupportedException("", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setFloat(sal_Int32, float) throw(SQLException, RuntimeException)
{
@@ -242,7 +242,7 @@ void SAL_CALL KabPreparedStatement::setFloat(sal_Int32, float) throw(SQLExceptio
::dbtools::throwFunctionNotSupportedException("setFloat", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setDouble(sal_Int32, double) throw(SQLException, RuntimeException)
{
@@ -250,7 +250,7 @@ void SAL_CALL KabPreparedStatement::setDouble(sal_Int32, double) throw(SQLExcept
::dbtools::throwFunctionNotSupportedException("setDouble", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setString(sal_Int32 parameterIndex, const OUString &x) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -260,7 +260,7 @@ void SAL_CALL KabPreparedStatement::setString(sal_Int32 parameterIndex, const OU
(m_aParameterRow->get())[parameterIndex - 1] = x;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setBytes(sal_Int32, const Sequence< sal_Int8 >&) throw(SQLException, RuntimeException)
{
@@ -268,7 +268,7 @@ void SAL_CALL KabPreparedStatement::setBytes(sal_Int32, const Sequence< sal_Int8
::dbtools::throwFunctionNotSupportedException("setBytes", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setDate(sal_Int32, const Date&) throw(SQLException, RuntimeException)
{
@@ -276,7 +276,7 @@ void SAL_CALL KabPreparedStatement::setDate(sal_Int32, const Date&) throw(SQLExc
::dbtools::throwFunctionNotSupportedException("setDate", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setTime(sal_Int32, const Time&) throw(SQLException, RuntimeException)
{
@@ -284,7 +284,7 @@ void SAL_CALL KabPreparedStatement::setTime(sal_Int32, const Time&) throw(SQLExc
::dbtools::throwFunctionNotSupportedException("setTime", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setTimestamp(sal_Int32, const DateTime&) throw(SQLException, RuntimeException)
{
@@ -292,7 +292,7 @@ void SAL_CALL KabPreparedStatement::setTimestamp(sal_Int32, const DateTime&) thr
::dbtools::throwFunctionNotSupportedException("setTimestamp", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setBinaryStream(sal_Int32, const Reference< ::com::sun::star::io::XInputStream >&, sal_Int32) throw(SQLException, RuntimeException)
{
@@ -300,7 +300,7 @@ void SAL_CALL KabPreparedStatement::setBinaryStream(sal_Int32, const Reference<
::dbtools::throwFunctionNotSupportedException("setBinaryStream", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setCharacterStream(sal_Int32, const Reference< ::com::sun::star::io::XInputStream >&, sal_Int32) throw(SQLException, RuntimeException)
{
@@ -308,7 +308,7 @@ void SAL_CALL KabPreparedStatement::setCharacterStream(sal_Int32, const Referenc
::dbtools::throwFunctionNotSupportedException("setCharacterStream", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setObject(sal_Int32 parameterIndex, const Any& x) throw(SQLException, RuntimeException)
{
if(!::dbtools::implSetObject(this,parameterIndex,x))
@@ -316,7 +316,7 @@ void SAL_CALL KabPreparedStatement::setObject(sal_Int32 parameterIndex, const An
throw SQLException();
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setObjectWithInfo(sal_Int32, const Any&, sal_Int32, sal_Int32) throw(SQLException, RuntimeException)
{
@@ -324,7 +324,7 @@ void SAL_CALL KabPreparedStatement::setObjectWithInfo(sal_Int32, const Any&, sal
::dbtools::throwFunctionNotSupportedException("setObjectWithInfo", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setRef(sal_Int32, const Reference< XRef >&) throw(SQLException, RuntimeException)
{
@@ -332,7 +332,7 @@ void SAL_CALL KabPreparedStatement::setRef(sal_Int32, const Reference< XRef >&)
::dbtools::throwFunctionNotSupportedException("setRef", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setBlob(sal_Int32, const Reference< XBlob >&) throw(SQLException, RuntimeException)
{
@@ -340,7 +340,7 @@ void SAL_CALL KabPreparedStatement::setBlob(sal_Int32, const Reference< XBlob >&
::dbtools::throwFunctionNotSupportedException("setBlob", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setClob(sal_Int32, const Reference< XClob >&) throw(SQLException, RuntimeException)
{
@@ -348,7 +348,7 @@ void SAL_CALL KabPreparedStatement::setClob(sal_Int32, const Reference< XClob >&
::dbtools::throwFunctionNotSupportedException("setClob", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::setArray(sal_Int32, const Reference< XArray >&) throw(SQLException, RuntimeException)
{
@@ -356,12 +356,12 @@ void SAL_CALL KabPreparedStatement::setArray(sal_Int32, const Reference< XArray
::dbtools::throwFunctionNotSupportedException("setArray", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabPreparedStatement::clearParameters() throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException("clearParameters", NULL);
}
-// -------------------------------------------------------------------------
+
void KabPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
{
switch (nHandle)
diff --git a/connectivity/source/drivers/kab/KResultSet.cxx b/connectivity/source/drivers/kab/KResultSet.cxx
index e797274fc143..1dbeabff6599 100644
--- a/connectivity/source/drivers/kab/KResultSet.cxx
+++ b/connectivity/source/drivers/kab/KResultSet.cxx
@@ -43,7 +43,7 @@ using namespace com::sun::star::io;
namespace cssu = com::sun::star::util;
IMPLEMENT_SERVICE_INFO(KabResultSet, "com.sun.star.sdbc.drivers.KabResultSet", "com.sun.star.sdbc.ResultSet");
-// -------------------------------------------------------------------------
+
KabResultSet::KabResultSet(KabCommonStatement* pStmt)
: KabResultSet_BASE(m_aMutex),
OPropertySetHelper(KabResultSet_BASE::rBHelper),
@@ -54,11 +54,11 @@ KabResultSet::KabResultSet(KabCommonStatement* pStmt)
m_bWasNull(sal_True)
{
}
-// -------------------------------------------------------------------------
+
KabResultSet::~KabResultSet()
{
}
-// -------------------------------------------------------------------------
+
void KabResultSet::allKabAddressees()
{
KabConnection* pConnection = static_cast< KabConnection *>(m_xStatement->getConnection().get());
@@ -66,7 +66,7 @@ void KabResultSet::allKabAddressees()
m_aKabAddressees = pAddressBook->allAddressees();
}
-// -------------------------------------------------------------------------
+
void KabResultSet::someKabAddressees(const KabCondition *pCondition)
{
KabConnection* pConnection = static_cast< KabConnection *>(m_xStatement->getConnection().get());
@@ -82,7 +82,7 @@ void KabResultSet::someKabAddressees(const KabCondition *pCondition)
m_aKabAddressees.push_back(*iterator);
}
}
-// -------------------------------------------------------------------------
+
void KabResultSet::sortKabAddressees(const KabOrder *pOrder)
{
// We do not use class KAddresseeList, which has a sorting algorithm in it, because
@@ -105,7 +105,7 @@ void KabResultSet::sortKabAddressees(const KabOrder *pOrder)
}
}
}
-// -------------------------------------------------------------------------
+
void KabResultSet::disposing()
{
OPropertySetHelper::disposing();
@@ -115,7 +115,7 @@ void KabResultSet::disposing()
m_xStatement.clear();
m_xMetaData.clear();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL KabResultSet::queryInterface(const Type & rType) throw(RuntimeException)
{
Any aRet = OPropertySetHelper::queryInterface(rType);
@@ -123,17 +123,17 @@ Any SAL_CALL KabResultSet::queryInterface(const Type & rType) throw(RuntimeExcep
aRet = KabResultSet_BASE::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::acquire() throw()
{
KabResultSet_BASE::acquire();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::release() throw()
{
KabResultSet_BASE::release();
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL KabResultSet::getTypes() throw(RuntimeException)
{
OTypeCollection aTypes(
@@ -143,12 +143,12 @@ Sequence< Type > SAL_CALL KabResultSet::getTypes() throw(RuntimeException)
return comphelper::concatSequences(aTypes.getTypes(), KabResultSet_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL KabResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabResultSet::findColumn(const OUString& columnName) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -168,7 +168,7 @@ sal_Int32 SAL_CALL KabResultSet::findColumn(const OUString& columnName) throw(SQ
assert(false);
return 0; // Never reached
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabResultSet::getString(sal_Int32 columnIndex) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -205,7 +205,7 @@ return aRet;
m_bWasNull = true;
return aRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::getBoolean(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -215,7 +215,7 @@ sal_Bool SAL_CALL KabResultSet::getBoolean(sal_Int32) throw(SQLException, Runtim
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL KabResultSet::getByte(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -226,7 +226,7 @@ sal_Int8 SAL_CALL KabResultSet::getByte(sal_Int32) throw(SQLException, RuntimeEx
sal_Int8 nRet = 0;
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL KabResultSet::getShort(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -237,7 +237,7 @@ sal_Int16 SAL_CALL KabResultSet::getShort(sal_Int32) throw(SQLException, Runtime
sal_Int16 nRet = 0;
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabResultSet::getInt(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -248,7 +248,7 @@ sal_Int32 SAL_CALL KabResultSet::getInt(sal_Int32) throw(SQLException, RuntimeEx
sal_Int32 nRet = 0;
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL KabResultSet::getLong(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -258,7 +258,7 @@ sal_Int64 SAL_CALL KabResultSet::getLong(sal_Int32) throw(SQLException, RuntimeE
return sal_Int64();
}
-// -------------------------------------------------------------------------
+
float SAL_CALL KabResultSet::getFloat(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -269,7 +269,7 @@ float SAL_CALL KabResultSet::getFloat(sal_Int32) throw(SQLException, RuntimeExce
float nVal(0);
return nVal;
}
-// -------------------------------------------------------------------------
+
double SAL_CALL KabResultSet::getDouble(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -280,7 +280,7 @@ double SAL_CALL KabResultSet::getDouble(sal_Int32) throw(SQLException, RuntimeEx
double nRet = 0;
return nRet;
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL KabResultSet::getBytes(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -290,7 +290,7 @@ Sequence< sal_Int8 > SAL_CALL KabResultSet::getBytes(sal_Int32) throw(SQLExcepti
return Sequence< sal_Int8 >();
}
-// -------------------------------------------------------------------------
+
cssu::Date SAL_CALL KabResultSet::getDate(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -301,7 +301,7 @@ cssu::Date SAL_CALL KabResultSet::getDate(sal_Int32) throw(SQLException, Runtime
cssu::Date aRet;
return aRet;
}
-// -------------------------------------------------------------------------
+
cssu::Time SAL_CALL KabResultSet::getTime(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -312,7 +312,7 @@ cssu::Time SAL_CALL KabResultSet::getTime(sal_Int32) throw(SQLException, Runtime
cssu::Time nRet;
return nRet;
}
-// -------------------------------------------------------------------------
+
cssu::DateTime SAL_CALL KabResultSet::getTimestamp(sal_Int32 columnIndex) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -351,7 +351,7 @@ cssu::DateTime SAL_CALL KabResultSet::getTimestamp(sal_Int32 columnIndex) throw(
m_bWasNull = true;
return nRet;
}
-// -------------------------------------------------------------------------
+
Reference< XInputStream > SAL_CALL KabResultSet::getBinaryStream(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -361,7 +361,7 @@ Reference< XInputStream > SAL_CALL KabResultSet::getBinaryStream(sal_Int32) thro
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XInputStream > SAL_CALL KabResultSet::getCharacterStream(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -371,7 +371,7 @@ Reference< XInputStream > SAL_CALL KabResultSet::getCharacterStream(sal_Int32) t
return NULL;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL KabResultSet::getObject(sal_Int32, const Reference< ::com::sun::star::container::XNameAccess >&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -381,7 +381,7 @@ Any SAL_CALL KabResultSet::getObject(sal_Int32, const Reference< ::com::sun::sta
return Any();
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL KabResultSet::getRef(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -391,7 +391,7 @@ Reference< XRef > SAL_CALL KabResultSet::getRef(sal_Int32) throw(SQLException, R
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL KabResultSet::getBlob(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -401,7 +401,7 @@ Reference< XBlob > SAL_CALL KabResultSet::getBlob(sal_Int32) throw(SQLException,
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL KabResultSet::getClob(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -411,7 +411,7 @@ Reference< XClob > SAL_CALL KabResultSet::getClob(sal_Int32) throw(SQLException,
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL KabResultSet::getArray(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -421,7 +421,7 @@ Reference< XArray > SAL_CALL KabResultSet::getArray(sal_Int32) throw(SQLExceptio
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL KabResultSet::getMetaData() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -433,7 +433,7 @@ Reference< XResultSetMetaData > SAL_CALL KabResultSet::getMetaData() throw(SQLEx
Reference< XResultSetMetaData > xMetaData = m_xMetaData.get();
return xMetaData;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::isBeforeFirst() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -444,7 +444,7 @@ sal_Bool SAL_CALL KabResultSet::isBeforeFirst() throw(SQLException, RuntimeExcep
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::isAfterLast() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -456,7 +456,7 @@ sal_Bool SAL_CALL KabResultSet::isAfterLast() throw(SQLException, RuntimeExcepti
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::isFirst() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -467,7 +467,7 @@ sal_Bool SAL_CALL KabResultSet::isFirst() throw(SQLException, RuntimeException)
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::isLast() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -479,7 +479,7 @@ sal_Bool SAL_CALL KabResultSet::isLast() throw(SQLException, RuntimeException)
return sal_False;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::beforeFirst() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -488,7 +488,7 @@ void SAL_CALL KabResultSet::beforeFirst() throw(SQLException, RuntimeException)
// move before the first row
m_nRowPos = -1;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::afterLast() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -498,7 +498,7 @@ void SAL_CALL KabResultSet::afterLast() throw(SQLException, RuntimeException)
sal_Int32 nAddressees = m_aKabAddressees.size();
m_nRowPos = nAddressees;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::close() throw(SQLException, RuntimeException)
{
{
@@ -507,7 +507,7 @@ void SAL_CALL KabResultSet::close() throw(SQLException, RuntimeException)
}
dispose();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::first() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -520,7 +520,7 @@ sal_Bool SAL_CALL KabResultSet::first() throw(SQLException, RuntimeException)
m_nRowPos = 0;
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::last() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -533,7 +533,7 @@ sal_Bool SAL_CALL KabResultSet::last() throw(SQLException, RuntimeException)
m_nRowPos = nAddressees - 1;
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabResultSet::getRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -541,7 +541,7 @@ sal_Int32 SAL_CALL KabResultSet::getRow() throw(SQLException, RuntimeException)
return m_nRowPos;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::absolute(sal_Int32 row) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -555,7 +555,7 @@ sal_Bool SAL_CALL KabResultSet::absolute(sal_Int32 row) throw(SQLException, Runt
m_nRowPos = row;
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::relative(sal_Int32 row) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -563,7 +563,7 @@ sal_Bool SAL_CALL KabResultSet::relative(sal_Int32 row) throw(SQLException, Runt
return absolute(m_nRowPos + row);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::next() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -571,7 +571,7 @@ sal_Bool SAL_CALL KabResultSet::next() throw(SQLException, RuntimeException)
return absolute(m_nRowPos + 1);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::previous() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -579,7 +579,7 @@ sal_Bool SAL_CALL KabResultSet::previous() throw(SQLException, RuntimeException)
return absolute(m_nRowPos - 1);
}
-// -------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL KabResultSet::getStatement() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -588,7 +588,7 @@ Reference< XInterface > SAL_CALL KabResultSet::getStatement() throw(SQLException
Reference< XStatement > xStatement = m_xStatement.get();
return xStatement;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::rowDeleted() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -596,7 +596,7 @@ sal_Bool SAL_CALL KabResultSet::rowDeleted() throw(SQLException, RuntimeExceptio
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::rowInserted() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -604,7 +604,7 @@ sal_Bool SAL_CALL KabResultSet::rowInserted() throw(SQLException, RuntimeExcepti
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::rowUpdated() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -612,7 +612,7 @@ sal_Bool SAL_CALL KabResultSet::rowUpdated() throw(SQLException, RuntimeExceptio
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::wasNull() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -620,22 +620,22 @@ sal_Bool SAL_CALL KabResultSet::wasNull() throw(SQLException, RuntimeException)
return m_bWasNull;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::cancel() throw(RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::clearWarnings() throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL KabResultSet::getWarnings() throw(SQLException, RuntimeException)
{
return Any();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::insertRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -643,7 +643,7 @@ void SAL_CALL KabResultSet::insertRow() throw(SQLException, RuntimeException)
// you only have to implement this if you want to insert new rows
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -651,19 +651,19 @@ void SAL_CALL KabResultSet::updateRow() throw(SQLException, RuntimeException)
// only when you allow updates
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::deleteRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::cancelRowUpdates() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::moveToInsertRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -671,121 +671,121 @@ void SAL_CALL KabResultSet::moveToInsertRow() throw(SQLException, RuntimeExcepti
// only when you allow inserts
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::moveToCurrentRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateNull(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateBoolean(sal_Int32, sal_Bool) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateByte(sal_Int32, sal_Int8) throw(SQLException, RuntimeException)
{
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
::osl::MutexGuard aGuard( m_aMutex );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateShort(sal_Int32, sal_Int16) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateInt(sal_Int32, sal_Int32) throw(SQLException, RuntimeException)
{
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
::osl::MutexGuard aGuard( m_aMutex );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateLong(sal_Int32, sal_Int64) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -----------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateFloat(sal_Int32, float) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateDouble(sal_Int32, double) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateString(sal_Int32, const OUString&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateBytes(sal_Int32, const Sequence< sal_Int8 >&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateDate(sal_Int32, const cssu::Date&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateTime(sal_Int32, const cssu::Time&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateTimestamp(sal_Int32, const cssu::DateTime&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateBinaryStream(sal_Int32, const Reference< XInputStream >&, sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateCharacterStream(sal_Int32, const Reference< XInputStream >&, sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::refreshRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateObject(sal_Int32, const Any&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabResultSet::updateNumericObject(sal_Int32, const Any&, sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
// XRowLocate
Any SAL_CALL KabResultSet::getBookmark() throw( SQLException, RuntimeException)
{
@@ -802,7 +802,7 @@ Any SAL_CALL KabResultSet::getBookmark() throw( SQLException, RuntimeException)
}
return Any();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::moveToBookmark(const Any& bookmark) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -824,7 +824,7 @@ sal_Bool SAL_CALL KabResultSet::moveToBookmark(const Any& bookmark) throw( SQLE
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::moveRelativeToBookmark(const Any& bookmark, sal_Int32 rows) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -845,7 +845,7 @@ sal_Bool SAL_CALL KabResultSet::moveRelativeToBookmark(const Any& bookmark, sal
m_nRowPos = nRowSave;
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabResultSet::compareBookmarks(const Any& firstItem, const Any& secondItem) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -860,12 +860,12 @@ sal_Int32 SAL_CALL KabResultSet::compareBookmarks(const Any& firstItem, const
return CompareBookmark::GREATER;
return CompareBookmark::EQUAL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSet::hasOrderedBookmarks() throw( SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabResultSet::hashBookmark(const Any& bookmark) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -875,7 +875,7 @@ sal_Int32 SAL_CALL KabResultSet::hashBookmark(const Any& bookmark) throw( SQLEx
return sBookmark.hashCode();
}
-// -------------------------------------------------------------------------
+
// XDeleteRows
Sequence< sal_Int32 > SAL_CALL KabResultSet::deleteRows(const Sequence< Any >&) throw( SQLException, RuntimeException)
{
@@ -884,7 +884,7 @@ Sequence< sal_Int32 > SAL_CALL KabResultSet::deleteRows(const Sequence< Any >&
return Sequence< sal_Int32 >();
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper* KabResultSet::createArrayHelper() const
{
Sequence< Property > aProps(6);
@@ -899,12 +899,12 @@ IPropertyArrayHelper* KabResultSet::createArrayHelper() const
return new OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper & KabResultSet::getInfoHelper()
{
return *static_cast<KabResultSet*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool KabResultSet::convertFastPropertyValue(
Any &,
Any &,
@@ -927,7 +927,7 @@ sal_Bool KabResultSet::convertFastPropertyValue(
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
void KabResultSet::setFastPropertyValue_NoBroadcast(
sal_Int32 nHandle,
const Any& )
@@ -949,7 +949,7 @@ void KabResultSet::setFastPropertyValue_NoBroadcast(
;
}
}
-// -------------------------------------------------------------------------
+
void KabResultSet::getFastPropertyValue(
Any& _rValue,
sal_Int32 nHandle) const
@@ -967,6 +967,6 @@ void KabResultSet::getFastPropertyValue(
;
}
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/kab/KResultSetMetaData.cxx b/connectivity/source/drivers/kab/KResultSetMetaData.cxx
index ed384ba19801..2ef79e4fd606 100644
--- a/connectivity/source/drivers/kab/KResultSetMetaData.cxx
+++ b/connectivity/source/drivers/kab/KResultSetMetaData.cxx
@@ -31,11 +31,11 @@ using namespace com::sun::star::sdbc;
KabResultSetMetaData::KabResultSetMetaData()
{
}
-// -------------------------------------------------------------------------
+
KabResultSetMetaData::~KabResultSetMetaData()
{
}
-// -------------------------------------------------------------------------
+
void KabResultSetMetaData::setKabFields(const ::rtl::Reference<connectivity::OSQLColumns> &xColumns) throw(SQLException)
{
OSQLColumns::Vector::const_iterator aIter;
@@ -51,32 +51,32 @@ void KabResultSetMetaData::setKabFields(const ::rtl::Reference<connectivity::OSQ
m_aKabFields.push_back(nFieldNumber);
}
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabResultSetMetaData::getColumnDisplaySize(sal_Int32 column) throw(SQLException, RuntimeException)
{
return m_aKabFields[column - 1] < KAB_DATA_FIELDS? 20: 50;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabResultSetMetaData::getColumnType(sal_Int32 column) throw(SQLException, RuntimeException)
{
return m_aKabFields[column - 1] == KAB_FIELD_REVISION? DataType::TIMESTAMP: DataType::CHAR;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabResultSetMetaData::getColumnCount() throw(SQLException, RuntimeException)
{
return m_aKabFields.size();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSetMetaData::isCaseSensitive(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabResultSetMetaData::getSchemaName(sal_Int32) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabResultSetMetaData::getColumnName(sal_Int32 column) throw(SQLException, RuntimeException)
{
sal_uInt32 nFieldNumber = m_aKabFields[column - 1];
@@ -95,83 +95,83 @@ OUString SAL_CALL KabResultSetMetaData::getColumnName(sal_Int32 column) throw(SQ
return aName;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabResultSetMetaData::getTableName(sal_Int32) throw(SQLException, RuntimeException)
{
return KabDatabaseMetaData::getAddressBookTableName();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabResultSetMetaData::getCatalogName(sal_Int32) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabResultSetMetaData::getColumnTypeName(sal_Int32) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabResultSetMetaData::getColumnLabel(sal_Int32) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL KabResultSetMetaData::getColumnServiceName(sal_Int32) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSetMetaData::isCurrency(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSetMetaData::isAutoIncrement(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSetMetaData::isSigned(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabResultSetMetaData::getPrecision(sal_Int32) throw(SQLException, RuntimeException)
{
return 0;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabResultSetMetaData::getScale(sal_Int32) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabResultSetMetaData::isNullable(sal_Int32) throw(SQLException, RuntimeException)
{
return (sal_Int32) sal_True;
// KDE address book currently does not use NULL values.
// But it might do it someday
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSetMetaData::isSearchable(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSetMetaData::isReadOnly(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSetMetaData::isDefinitelyWritable(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabResultSetMetaData::isWritable(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/kab/KServices.cxx b/connectivity/source/drivers/kab/KServices.cxx
index 61cd54456ce2..dc99bce6e61f 100644
--- a/connectivity/source/drivers/kab/KServices.cxx
+++ b/connectivity/source/drivers/kab/KServices.cxx
@@ -36,7 +36,7 @@ typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
rtl_ModuleCount*
);
-//---------------------------------------------------------------------------------------
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
@@ -76,7 +76,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
-//---------------------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL kab_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/kab/KStatement.cxx b/connectivity/source/drivers/kab/KStatement.cxx
index 99a08dd58b8e..85885cbc1f12 100644
--- a/connectivity/source/drivers/kab/KStatement.cxx
+++ b/connectivity/source/drivers/kab/KStatement.cxx
@@ -58,7 +58,7 @@ namespace
}
IMPLEMENT_SERVICE_INFO(KabStatement, "com.sun.star.sdbc.drivers.KabStatement", "com.sun.star.sdbc.Statement");
-//------------------------------------------------------------------------------
+
KabCommonStatement::KabCommonStatement(KabConnection* _pConnection )
: KabCommonStatement_BASE(m_aMutex),
OPropertySetHelper(KabCommonStatement_BASE::rBHelper),
@@ -70,26 +70,26 @@ KabCommonStatement::KabCommonStatement(KabConnection* _pConnection )
{
m_pConnection->acquire();
}
-// -----------------------------------------------------------------------------
+
KabCommonStatement::~KabCommonStatement()
{
}
-// -----------------------------------------------------------------------------
+
void KabCommonStatement::disposing()
{
KabCommonStatement_BASE::disposing();
}
-// -----------------------------------------------------------------------------
+
void KabCommonStatement::resetParameters() const throw(::com::sun::star::sdbc::SQLException)
{
lcl_throwError(STR_PARA_ONLY_PREPARED);
}
-// -----------------------------------------------------------------------------
+
void KabCommonStatement::getNextParameter(OUString &) const throw(::com::sun::star::sdbc::SQLException)
{
lcl_throwError(STR_PARA_ONLY_PREPARED);
}
-// -----------------------------------------------------------------------------
+
KabCondition *KabCommonStatement::analyseWhereClause(const OSQLParseNode *pParseNode) const throw(SQLException)
{
if (pParseNode->count() == 3)
@@ -236,7 +236,7 @@ KabCondition *KabCommonStatement::analyseWhereClause(const OSQLParseNode *pParse
OSL_ASSERT(false);
return 0;
}
-// -----------------------------------------------------------------------------
+
KabOrder *KabCommonStatement::analyseOrderByClause(const OSQLParseNode *pParseNode) const throw(SQLException)
{
if (SQL_ISRULE(pParseNode, ordering_spec_commalist))
@@ -284,7 +284,7 @@ KabOrder *KabCommonStatement::analyseOrderByClause(const OSQLParseNode *pParseNo
OSL_ASSERT(false);
return 0;
}
-//------------------------------------------------------------------------------
+
sal_Bool KabCommonStatement::isTableKnown(KabResultSet *pResult) const
{
// can handle requests like SELECT * FROM addresses addresses
@@ -297,7 +297,7 @@ sal_Bool KabCommonStatement::isTableKnown(KabResultSet *pResult) const
return sal_True;
}
-//------------------------------------------------------------------------------
+
void KabCommonStatement::setKabFields(KabResultSet *pResult) const throw(SQLException)
{
::rtl::Reference<connectivity::OSQLColumns> xColumns; // selected columns
@@ -309,7 +309,7 @@ void KabCommonStatement::setKabFields(KabResultSet *pResult) const throw(SQLExce
}
pResult->getKabMetaData()->setKabFields(xColumns);
}
-// -------------------------------------------------------------------------
+
void KabCommonStatement::selectAddressees(KabResultSet *pResult) const throw(SQLException)
{
const OSQLParseNode *pParseNode;
@@ -334,7 +334,7 @@ void KabCommonStatement::selectAddressees(KabResultSet *pResult) const throw(SQL
// no WHERE clause: get all rows
pResult->allKabAddressees();
}
-// -------------------------------------------------------------------------
+
void KabCommonStatement::sortAddressees(KabResultSet *pResult) const throw(SQLException)
{
const OSQLParseNode *pParseNode;
@@ -351,7 +351,7 @@ void KabCommonStatement::sortAddressees(KabResultSet *pResult) const throw(SQLEx
}
}
}
-//-----------------------------------------------------------------------------
+
Any SAL_CALL KabCommonStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = KabCommonStatement_BASE::queryInterface(rType);
@@ -359,7 +359,7 @@ Any SAL_CALL KabCommonStatement::queryInterface( const Type & rType ) throw(Runt
aRet = OPropertySetHelper::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL KabCommonStatement::getTypes( ) throw(RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const Reference< XMultiPropertySet > *)0 ),
@@ -368,7 +368,7 @@ Sequence< Type > SAL_CALL KabCommonStatement::getTypes( ) throw(RuntimeExceptio
return comphelper::concatSequences(aTypes.getTypes(),KabCommonStatement_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabCommonStatement::cancel( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -376,7 +376,7 @@ void SAL_CALL KabCommonStatement::cancel( ) throw(RuntimeException)
checkDisposed(KabCommonStatement_BASE::rBHelper.bDisposed);
// cancel the current sql statement
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabCommonStatement::close( ) throw(SQLException, RuntimeException)
{
{
@@ -386,7 +386,7 @@ void SAL_CALL KabCommonStatement::close( ) throw(SQLException, RuntimeException
}
dispose();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL KabCommonStatement::execute(
const OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -397,7 +397,7 @@ sal_Bool SAL_CALL KabCommonStatement::execute(
return xRS.is();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL KabCommonStatement::executeQuery(
const OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -438,7 +438,7 @@ OSL_TRACE("KDE Address book - SQL Request: %s", OUtoCStr(sql));
return xRS;
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL KabCommonStatement::getConnection( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -447,7 +447,7 @@ Reference< XConnection > SAL_CALL KabCommonStatement::getConnection( ) throw(SQ
// just return our connection here
return (Reference< XConnection >) m_pConnection;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL KabCommonStatement::executeUpdate( const OUString& ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -456,7 +456,7 @@ sal_Int32 SAL_CALL KabCommonStatement::executeUpdate( const OUString& ) throw(SQ
// the return values gives information about how many rows are affected by executing the sql statement
return 0;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL KabCommonStatement::getWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -464,7 +464,7 @@ Any SAL_CALL KabCommonStatement::getWarnings( ) throw(SQLException, RuntimeExce
return makeAny(m_aLastWarning);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL KabCommonStatement::clearWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -472,7 +472,7 @@ void SAL_CALL KabCommonStatement::clearWarnings( ) throw(SQLException, RuntimeE
m_aLastWarning = SQLWarning();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* KabCommonStatement::createArrayHelper( ) const
{
// this properties are defined by the service statement
@@ -493,12 +493,12 @@ void SAL_CALL KabCommonStatement::clearWarnings( ) throw(SQLException, RuntimeE
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & KabCommonStatement::getInfoHelper()
{
return *const_cast<KabCommonStatement*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool KabCommonStatement::convertFastPropertyValue(
Any &,
Any &,
@@ -509,7 +509,7 @@ sal_Bool KabCommonStatement::convertFastPropertyValue(
// here we have to try to convert
return bConverted;
}
-// -------------------------------------------------------------------------
+
void KabCommonStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any&) throw (Exception)
{
// set the value to whatever is necessary
@@ -529,7 +529,7 @@ void KabCommonStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,cons
;
}
}
-// -------------------------------------------------------------------------
+
void KabCommonStatement::getFastPropertyValue(Any&,sal_Int32 nHandle) const
{
switch (nHandle)
@@ -548,22 +548,22 @@ void KabCommonStatement::getFastPropertyValue(Any&,sal_Int32 nHandle) const
;
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL KabCommonStatement::acquire() throw()
{
KabCommonStatement_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL KabCommonStatement::release() throw()
{
KabCommonStatement_BASE::release();
}
-// -----------------------------------------------------------------------------
+
Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL KabCommonStatement::getPropertySetInfo( ) throw(RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
KabStatement::KabStatement(KabConnection* _pConnection)
: KabStatement_BASE(_pConnection)
{
diff --git a/connectivity/source/drivers/kab/KTable.cxx b/connectivity/source/drivers/kab/KTable.cxx
index 0469acbc61bd..ca31e546f6d4 100644
--- a/connectivity/source/drivers/kab/KTable.cxx
+++ b/connectivity/source/drivers/kab/KTable.cxx
@@ -33,7 +33,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
KabTable::KabTable( sdbcx::OCollection* _pTables,
KabConnection* _pConnection,
const OUString& _Name,
@@ -51,7 +51,7 @@ KabTable::KabTable( sdbcx::OCollection* _pTables,
{
construct();
}
-// -------------------------------------------------------------------------
+
void KabTable::refreshColumns()
{
TStringVector aVector;
diff --git a/connectivity/source/drivers/kab/KTables.cxx b/connectivity/source/drivers/kab/KTables.cxx
index f0ec31cad9ba..6f910d4e25ce 100644
--- a/connectivity/source/drivers/kab/KTables.cxx
+++ b/connectivity/source/drivers/kab/KTables.cxx
@@ -67,12 +67,12 @@ sdbcx::ObjectType KabTables::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void KabTables::impl_refresh( ) throw(RuntimeException)
{
static_cast<KabCatalog&>(m_rParent).refreshTables();
}
-// -------------------------------------------------------------------------
+
void KabTables::disposing(void)
{
m_xMetaData.clear();
diff --git a/connectivity/source/drivers/kab/kcondition.cxx b/connectivity/source/drivers/kab/kcondition.cxx
index ab0273c7dbfc..1e69494f2a8f 100644
--- a/connectivity/source/drivers/kab/kcondition.cxx
+++ b/connectivity/source/drivers/kab/kcondition.cxx
@@ -24,55 +24,55 @@
using namespace ::connectivity::kab;
using namespace ::com::sun::star::sdbc;
-// -----------------------------------------------------------------------------
+
KabCondition::~KabCondition()
{
}
-// -----------------------------------------------------------------------------
+
KabConditionConstant::KabConditionConstant(const sal_Bool bValue)
: KabCondition(),
m_bValue(bValue)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionConstant::isAlwaysTrue() const
{
return m_bValue;
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionConstant::isAlwaysFalse() const
{
return !m_bValue;
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionConstant::eval(const ::KABC::Addressee &) const
{
return m_bValue;
}
-// -----------------------------------------------------------------------------
+
KabConditionColumn::KabConditionColumn(const OUString &sColumnName) throw(SQLException)
: KabCondition(),
m_nFieldNumber(findKabField(sColumnName))
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionColumn::isAlwaysTrue() const
{
// Sometimes true, sometimes false
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionColumn::isAlwaysFalse() const
{
// Sometimes true, sometimes false
return sal_False;
}
-// -----------------------------------------------------------------------------
+
KabConditionNull::KabConditionNull(const OUString &sColumnName) throw(SQLException)
: KabConditionColumn(sColumnName)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionNull::eval(const ::KABC::Addressee &aAddressee) const
{
QString aQtName = valueOfKabField(aAddressee, m_nFieldNumber);
@@ -81,12 +81,12 @@ sal_Bool KabConditionNull::eval(const ::KABC::Addressee &aAddressee) const
// KDE address book currently does not use NULL values.
// But it might do it someday
}
-// -----------------------------------------------------------------------------
+
KabConditionNotNull::KabConditionNotNull(const OUString &sColumnName) throw(SQLException)
: KabConditionColumn(sColumnName)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionNotNull::eval(const ::KABC::Addressee &aAddressee) const
{
QString aQtName = valueOfKabField(aAddressee, m_nFieldNumber);
@@ -95,18 +95,18 @@ sal_Bool KabConditionNotNull::eval(const ::KABC::Addressee &aAddressee) const
// KDE address book currently does not use NULL values.
// But it might do it someday
}
-// -----------------------------------------------------------------------------
+
KabConditionCompare::KabConditionCompare(const OUString &sColumnName, const OUString &sMatchString) throw(SQLException)
: KabConditionColumn(sColumnName),
m_sMatchString(sMatchString)
{
}
-// -----------------------------------------------------------------------------
+
KabConditionEqual::KabConditionEqual(const OUString &sColumnName, const OUString &sMatchString) throw(SQLException)
: KabConditionCompare(sColumnName, sMatchString)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionEqual::eval(const ::KABC::Addressee &aAddressee) const
{
QString aQtName = valueOfKabField(aAddressee, m_nFieldNumber);
@@ -120,12 +120,12 @@ sal_Bool KabConditionEqual::eval(const ::KABC::Addressee &aAddressee) const
OUString sValue((const sal_Unicode *) aQtName.ucs2());
return sValue == m_sMatchString;
}
-// -----------------------------------------------------------------------------
+
KabConditionDifferent::KabConditionDifferent(const OUString &sColumnName, const OUString &sMatchString) throw(SQLException)
: KabConditionCompare(sColumnName, sMatchString)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionDifferent::eval(const ::KABC::Addressee &aAddressee) const
{
QString aQtName = valueOfKabField(aAddressee, m_nFieldNumber);
@@ -135,12 +135,12 @@ sal_Bool KabConditionDifferent::eval(const ::KABC::Addressee &aAddressee) const
OUString sValue((const sal_Unicode *) aQtName.ucs2());
return sValue != m_sMatchString;
}
-// -----------------------------------------------------------------------------
+
KabConditionSimilar::KabConditionSimilar(const OUString &sColumnName, const OUString &sMatchString) throw(SQLException)
: KabConditionCompare(sColumnName, sMatchString)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionSimilar::eval(const ::KABC::Addressee &aAddressee) const
{
QString aQtName = valueOfKabField(aAddressee, m_nFieldNumber);
@@ -150,35 +150,35 @@ sal_Bool KabConditionSimilar::eval(const ::KABC::Addressee &aAddressee) const
OUString sValue((const sal_Unicode *) aQtName.ucs2());
return match(m_sMatchString, sValue, '\0');
}
-// -----------------------------------------------------------------------------
+
KabConditionBoolean::KabConditionBoolean(KabCondition *pLeft, KabCondition *pRight)
: KabCondition(),
m_pLeft(pLeft),
m_pRight(pRight)
{
}
-// -----------------------------------------------------------------------------
+
KabConditionBoolean::~KabConditionBoolean()
{
delete m_pLeft;
delete m_pRight;
}
-// -----------------------------------------------------------------------------
+
KabConditionOr::KabConditionOr(KabCondition *pLeft, KabCondition *pRight)
: KabConditionBoolean(pLeft, pRight)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionOr::isAlwaysTrue() const
{
return m_pLeft->isAlwaysTrue() || m_pRight->isAlwaysTrue();
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionOr::isAlwaysFalse() const
{
return m_pLeft->isAlwaysFalse() && m_pRight->isAlwaysFalse();
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionOr::eval(const ::KABC::Addressee &aAddressee) const
{
// We avoid evaluating terms as much as we can
@@ -190,22 +190,22 @@ sal_Bool KabConditionOr::eval(const ::KABC::Addressee &aAddressee) const
return sal_False;
}
-// -----------------------------------------------------------------------------
+
KabConditionAnd::KabConditionAnd(KabCondition *pLeft, KabCondition *pRight)
: KabConditionBoolean(pLeft, pRight)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionAnd::isAlwaysTrue() const
{
return m_pLeft->isAlwaysTrue() && m_pRight->isAlwaysTrue();
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionAnd::isAlwaysFalse() const
{
return m_pLeft->isAlwaysFalse() || m_pRight->isAlwaysFalse();
}
-// -----------------------------------------------------------------------------
+
sal_Bool KabConditionAnd::eval(const ::KABC::Addressee &aAddressee) const
{
// We avoid evaluating terms as much as we can
diff --git a/connectivity/source/drivers/kab/kfields.cxx b/connectivity/source/drivers/kab/kfields.cxx
index e1576c6a1f42..ec7d40037bd0 100644
--- a/connectivity/source/drivers/kab/kfields.cxx
+++ b/connectivity/source/drivers/kab/kfields.cxx
@@ -29,7 +29,7 @@ namespace connectivity
{
namespace kab
{
-// -----------------------------------------------------------------------------
+
// return the value of a KDE address book field, given an addressee and a field number
QString valueOfKabField(const ::KABC::Addressee &aAddressee, sal_Int32 nFieldNumber)
{
@@ -42,7 +42,7 @@ QString valueOfKabField(const ::KABC::Addressee &aAddressee, sal_Int32 nFieldNum
return aFields[nFieldNumber - KAB_DATA_FIELDS]->value(aAddressee);
}
}
-// ------------------------------------------------------------------------------
+
// search the KDE address book field number of a given column name
sal_uInt32 findKabField(const OUString& columnName) throw(SQLException)
{
@@ -79,7 +79,7 @@ sal_uInt32 findKabField(const OUString& columnName) throw(SQLException)
OSL_ASSERT(false);
return 0;
}
-// ------------------------------------------------------------------------------
+
}
}
diff --git a/connectivity/source/drivers/kab/korder.cxx b/connectivity/source/drivers/kab/korder.cxx
index 3a8e42fcebeb..cb9fe4494932 100644
--- a/connectivity/source/drivers/kab/korder.cxx
+++ b/connectivity/source/drivers/kab/korder.cxx
@@ -26,14 +26,14 @@ using namespace ::connectivity::kab;
KabOrder::~KabOrder()
{
}
-// -----------------------------------------------------------------------------
+
KabSimpleOrder::KabSimpleOrder(OUString &sColumnName, sal_Bool bAscending)
: KabOrder(),
m_nFieldNumber(findKabField(sColumnName)),
m_bAscending(bAscending)
{
}
-// -----------------------------------------------------------------------------
+
sal_Int32 KabSimpleOrder::compare(const ::KABC::Addressee &aAddressee1, const ::KABC::Addressee &aAddressee2) const
{
sal_Int32 result;
@@ -47,24 +47,24 @@ sal_Int32 KabSimpleOrder::compare(const ::KABC::Addressee &aAddressee1, const ::
return result;
}
-// -----------------------------------------------------------------------------
+
KabComplexOrder::KabComplexOrder()
: KabOrder(),
m_aOrders()
{
}
-// -----------------------------------------------------------------------------
+
KabComplexOrder::~KabComplexOrder()
{
for (sal_uInt32 i = 0; i < m_aOrders.size(); i++)
delete m_aOrders[i];
}
-// -----------------------------------------------------------------------------
+
void KabComplexOrder::addOrder(KabOrder *pOrder)
{
m_aOrders.push_back(pOrder);
}
-// -----------------------------------------------------------------------------
+
sal_Int32 KabComplexOrder::compare(const ::KABC::Addressee &aAddressee1, const ::KABC::Addressee &aAddressee2) const
{
for (sal_uInt32 i = 0; i < m_aOrders.size(); i++)
diff --git a/connectivity/source/drivers/macab/MacabAddressBook.cxx b/connectivity/source/drivers/macab/MacabAddressBook.cxx
index 3a61df373ab9..48559c810586 100644
--- a/connectivity/source/drivers/macab/MacabAddressBook.cxx
+++ b/connectivity/source/drivers/macab/MacabAddressBook.cxx
@@ -33,7 +33,7 @@
using namespace connectivity::macab;
using namespace ::com::sun::star::uno;
-// -----------------------------------------------------------------------------
+
MacabAddressBook::MacabAddressBook( )
{
m_aAddressBook = ABGetSharedAddressBook();
@@ -41,7 +41,7 @@ MacabAddressBook::MacabAddressBook( )
m_bRetrievedGroups = sal_False;
}
-// -----------------------------------------------------------------------------
+
MacabAddressBook::~MacabAddressBook()
{
if(m_xMacabRecords != NULL)
@@ -62,7 +62,7 @@ MacabAddressBook::~MacabAddressBook()
m_bRetrievedGroups = sal_False;
}
-// -----------------------------------------------------------------------------
+
/* Get the address book's default table name. This is the table name that
* refers to the table containing _all_ records in the address book.
*/
@@ -75,7 +75,7 @@ const OUString & MacabAddressBook::getDefaultTableName()
return aDefaultTableName;
}
-// -----------------------------------------------------------------------------
+
MacabRecords *MacabAddressBook::getMacabRecords()
{
/* If the MacabRecords don't exist, create them. */
@@ -89,7 +89,7 @@ MacabRecords *MacabAddressBook::getMacabRecords()
return m_xMacabRecords;
}
-// -----------------------------------------------------------------------------
+
/* Get the MacabRecords for a given name: either a group name or the
* default table name.
*/
@@ -105,7 +105,7 @@ MacabRecords *MacabAddressBook::getMacabRecords(const OUString _tableName)
}
}
-// -----------------------------------------------------------------------------
+
MacabRecords *MacabAddressBook::getMacabRecordsMatch(const OUString _tableName)
{
if(match(_tableName, getDefaultTableName(), '\0'))
@@ -116,7 +116,7 @@ MacabRecords *MacabAddressBook::getMacabRecordsMatch(const OUString _tableName)
return getMacabGroupMatch(_tableName);
}
-// -----------------------------------------------------------------------------
+
::std::vector<MacabGroup *> MacabAddressBook::getMacabGroups()
{
/* If the MacabGroups haven't been created yet, create them. */
@@ -154,7 +154,7 @@ MacabRecords *MacabAddressBook::getMacabRecordsMatch(const OUString _tableName)
return m_xMacabGroups;
}
-// -----------------------------------------------------------------------------
+
MacabGroup *MacabAddressBook::getMacabGroup(OUString _groupName)
{
// initialize groups if not already initialized
@@ -178,7 +178,7 @@ MacabGroup *MacabAddressBook::getMacabGroup(OUString _groupName)
return NULL;
}
-// -----------------------------------------------------------------------------
+
MacabGroup *MacabAddressBook::getMacabGroupMatch(OUString _groupName)
{
// initialize groups if not already initialized
@@ -202,7 +202,7 @@ MacabGroup *MacabAddressBook::getMacabGroupMatch(OUString _groupName)
return NULL;
}
-// -------------------------------------------------------------------------
+
void MacabAddressBook::manageDuplicateGroups(::std::vector<MacabGroup *> _xGroups) const
{
/* If we have two cases of groups, say, family, this makes it:
diff --git a/connectivity/source/drivers/macab/MacabCatalog.cxx b/connectivity/source/drivers/macab/MacabCatalog.cxx
index 17e7ed69cd35..62589d7a1261 100644
--- a/connectivity/source/drivers/macab/MacabCatalog.cxx
+++ b/connectivity/source/drivers/macab/MacabCatalog.cxx
@@ -31,14 +31,14 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
using namespace ::cppu;
-// -------------------------------------------------------------------------
+
MacabCatalog::MacabCatalog(MacabConnection* _pCon)
: connectivity::sdbcx::OCatalog(_pCon),
m_pConnection(_pCon),
m_xMetaData(m_pConnection->getMetaData())
{
}
-// -------------------------------------------------------------------------
+
void MacabCatalog::refreshTables()
{
TStringVector aVector;
@@ -69,25 +69,25 @@ void MacabCatalog::refreshTables()
else
m_pTables = new MacabTables(m_xMetaData,*this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
void MacabCatalog::refreshViews()
{
}
-// -------------------------------------------------------------------------
+
void MacabCatalog::refreshGroups()
{
}
-// -------------------------------------------------------------------------
+
void MacabCatalog::refreshUsers()
{
}
-// -------------------------------------------------------------------------
+
const OUString& MacabCatalog::getDot()
{
static const OUString sDot = ".";
return sDot;
}
-// -----------------------------------------------------------------------------
+
// XTablesSupplier
Reference< XNameAccess > SAL_CALL MacabCatalog::getTables( ) throw(RuntimeException)
diff --git a/connectivity/source/drivers/macab/MacabColumns.cxx b/connectivity/source/drivers/macab/MacabColumns.cxx
index 38d6e5606051..713ff04396e3 100644
--- a/connectivity/source/drivers/macab/MacabColumns.cxx
+++ b/connectivity/source/drivers/macab/MacabColumns.cxx
@@ -34,7 +34,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
sdbcx::ObjectType MacabColumns::createObject(const OUString& _rName)
{
const Any aCatalog;
@@ -77,12 +77,12 @@ sdbcx::ObjectType MacabColumns::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void MacabColumns::impl_refresh() throw(RuntimeException)
{
m_pTable->refreshColumns();
}
-// -------------------------------------------------------------------------
+
MacabColumns::MacabColumns( MacabTable* _pTable,
::osl::Mutex& _rMutex,
const TStringVector &_rVector)
diff --git a/connectivity/source/drivers/macab/MacabConnection.cxx b/connectivity/source/drivers/macab/MacabConnection.cxx
index 6932f5aea724..28bcb7c3675d 100644
--- a/connectivity/source/drivers/macab/MacabConnection.cxx
+++ b/connectivity/source/drivers/macab/MacabConnection.cxx
@@ -36,7 +36,7 @@ using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
IMPLEMENT_SERVICE_INFO(MacabConnection, "com.sun.star.sdbc.drivers.MacabConnection", "com.sun.star.sdbc.Connection")
-//-----------------------------------------------------------------------------
+
MacabConnection::MacabConnection(MacabDriver* _pDriver)
: OSubComponent<MacabConnection, MacabConnection_BASE>((::cppu::OWeakObject*)_pDriver, this),
m_pAddressBook(NULL),
@@ -44,7 +44,7 @@ MacabConnection::MacabConnection(MacabDriver* _pDriver)
{
m_pDriver->acquire();
}
-//-----------------------------------------------------------------------------
+
MacabConnection::~MacabConnection()
{
if (!isClosed())
@@ -53,12 +53,12 @@ MacabConnection::~MacabConnection()
m_pDriver->release();
m_pDriver = NULL;
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL MacabConnection::release() throw()
{
relase_ChildImpl();
}
-// -----------------------------------------------------------------------------
+
void MacabConnection::construct(const OUString&, const Sequence< PropertyValue >&) throw(SQLException)
{
osl_atomic_increment( &m_refCount );
@@ -69,7 +69,7 @@ void MacabConnection::construct(const OUString&, const Sequence< PropertyValue >
osl_atomic_decrement( &m_refCount );
}
// XServiceInfo
-// --------------------------------------------------------------------------------
+
Reference< XStatement > SAL_CALL MacabConnection::createStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -81,7 +81,7 @@ Reference< XStatement > SAL_CALL MacabConnection::createStatement( ) throw(SQLE
m_aStatements.push_back(WeakReferenceHelper(xReturn));
return xReturn;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL MacabConnection::prepareStatement( const OUString& _sSql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -93,7 +93,7 @@ Reference< XPreparedStatement > SAL_CALL MacabConnection::prepareStatement( cons
m_aStatements.push_back(WeakReferenceHelper(xReturn));
return xReturn;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL MacabConnection::prepareCall( const OUString& ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -102,7 +102,7 @@ Reference< XPreparedStatement > SAL_CALL MacabConnection::prepareCall( const OUS
// not implemented yet :-) a task to do
return NULL;
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL MacabConnection::nativeSQL( const OUString& _sSql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -110,14 +110,14 @@ OUString SAL_CALL MacabConnection::nativeSQL( const OUString& _sSql ) throw(SQLE
return _sSql;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL MacabConnection::setAutoCommit( sal_Bool ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabConnection_BASE::rBHelper.bDisposed);
// here you have to set your commit mode please have a look at the jdbc documentation to get a clear explanation
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabConnection::getAutoCommit( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -127,7 +127,7 @@ sal_Bool SAL_CALL MacabConnection::getAutoCommit( ) throw(SQLException, Runtime
return sal_True;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL MacabConnection::commit( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -135,7 +135,7 @@ void SAL_CALL MacabConnection::commit( ) throw(SQLException, RuntimeException)
// when you database does support transactions you should commit here
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL MacabConnection::rollback( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -143,7 +143,7 @@ void SAL_CALL MacabConnection::rollback( ) throw(SQLException, RuntimeException
// same as commit but for the other case
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabConnection::isClosed( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -151,7 +151,7 @@ sal_Bool SAL_CALL MacabConnection::isClosed( ) throw(SQLException, RuntimeExcep
// just simple -> we are closed when we are disposed, that means someone called dispose(); (XComponent)
return MacabConnection_BASE::rBHelper.bDisposed;
}
-// --------------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL MacabConnection::getMetaData( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -168,7 +168,7 @@ Reference< XDatabaseMetaData > SAL_CALL MacabConnection::getMetaData( ) throw(S
return xMetaData;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL MacabConnection::setReadOnly( sal_Bool ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -176,7 +176,7 @@ void SAL_CALL MacabConnection::setReadOnly( sal_Bool ) throw(SQLException, Runti
// set you connection to readonly
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabConnection::isReadOnly( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -185,7 +185,7 @@ sal_Bool SAL_CALL MacabConnection::isReadOnly( ) throw(SQLException, RuntimeExc
// return if your connection to readonly
return sal_False;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL MacabConnection::setCatalog( const OUString& ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -193,7 +193,7 @@ void SAL_CALL MacabConnection::setCatalog( const OUString& ) throw(SQLException,
// if your database doesn't work with catalogs you go to next method otherwise you kjnow what to do
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL MacabConnection::getCatalog( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -203,7 +203,7 @@ OUString SAL_CALL MacabConnection::getCatalog( ) throw(SQLException, RuntimeExc
// return your current catalog
return OUString();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL MacabConnection::setTransactionIsolation( sal_Int32 ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -212,7 +212,7 @@ void SAL_CALL MacabConnection::setTransactionIsolation( sal_Int32 ) throw(SQLExc
// set your isolation level
// please have a look at @see com.sun.star.sdbc.TransactionIsolation
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabConnection::getTransactionIsolation( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -222,7 +222,7 @@ sal_Int32 SAL_CALL MacabConnection::getTransactionIsolation( ) throw(SQLExcepti
// please have a look at @see com.sun.star.sdbc.TransactionIsolation
return TransactionIsolation::NONE;
}
-// --------------------------------------------------------------------------------
+
Reference< ::com::sun::star::container::XNameAccess > SAL_CALL MacabConnection::getTypeMap( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -232,12 +232,12 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL MacabConnection::
return NULL;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL MacabConnection::setTypeMap( const Reference< ::com::sun::star::container::XNameAccess >& ) throw(SQLException, RuntimeException)
{
// the other way around
}
-// --------------------------------------------------------------------------------
+
// XCloseable
void SAL_CALL MacabConnection::close( ) throw(SQLException, RuntimeException)
{
@@ -247,19 +247,19 @@ void SAL_CALL MacabConnection::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// --------------------------------------------------------------------------------
+
// XWarningsSupplier
Any SAL_CALL MacabConnection::getWarnings( ) throw(SQLException, RuntimeException)
{
// when you collected some warnings -> return it
return Any();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL MacabConnection::clearWarnings( ) throw(SQLException, RuntimeException)
{
// you should clear your collected warnings here
}
-//------------------------------------------------------------------------------
+
void MacabConnection::disposing()
{
// we noticed that we should be destroied in near future so we have to dispose our statements
@@ -284,7 +284,7 @@ void MacabConnection::disposing()
dispose_ChildImpl();
MacabConnection_BASE::disposing();
}
-// -----------------------------------------------------------------------------
+
Reference< XTablesSupplier > SAL_CALL MacabConnection::createCatalog()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -298,12 +298,12 @@ Reference< XTablesSupplier > SAL_CALL MacabConnection::createCatalog()
}
return xTab;
}
-// -----------------------------------------------------------------------------
+
MacabAddressBook* MacabConnection::getAddressBook() const
{
return m_pAddressBook;
}
-// -----------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL createMacabConnection( void* _pDriver )
{
MacabConnection* pConnection = new MacabConnection( static_cast< MacabDriver* >( _pDriver ) );
diff --git a/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx b/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx
index a832c33faec7..ead208d0871f 100644
--- a/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx
@@ -49,11 +49,11 @@ MacabDatabaseMetaData::MacabDatabaseMetaData(MacabConnection* _pCon)
m_bUseCatalog = !(usesLocalFiles() || usesLocalFilePerTable());
osl_atomic_decrement( &m_refCount );
}
-// -------------------------------------------------------------------------
+
MacabDatabaseMetaData::~MacabDatabaseMetaData()
{
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getCatalogSeparator( ) throw(SQLException, RuntimeException)
{
OUString aVal;
@@ -63,73 +63,73 @@ OUString SAL_CALL MacabDatabaseMetaData::getCatalogSeparator( ) throw(SQLExcept
return aVal;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxRowSize( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxCatalogNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxCharLiteralLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxColumnNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxColumnsInIndex( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxCursorNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxConnections( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxColumnsInTable( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxStatementLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxTableNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxTablesInSelect( ) throw(SQLException, RuntimeException)
{
// MaxTablesInSelect describes how many tables can participate in the FROM part of a given SELECT statement,
@@ -137,63 +137,63 @@ sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxTablesInSelect( ) throw(SQLExce
sal_Int32 nValue = 1;
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::storesMixedCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsAlterTableWithAddColumn( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsAlterTableWithDropColumn( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException)
{
OUString aVal;
@@ -202,25 +202,25 @@ OUString SAL_CALL MacabDatabaseMetaData::getCatalogTerm( ) throw(SQLException,
}
return aVal;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getIdentifierQuoteString( ) throw(SQLException, RuntimeException)
{
// normally this is "
OUString aVal("\"");
return aVal;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getExtraNameCharacters( ) throw(SQLException, RuntimeException)
{
OUString aVal;
return aVal;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::isCatalogAtStart( ) throw(SQLException, RuntimeException)
{
sal_Bool bValue = sal_False;
@@ -229,326 +229,326 @@ sal_Bool SAL_CALL MacabDatabaseMetaData::isCatalogAtStart( ) throw(SQLException
}
return bValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSchemasInDataManipulation( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException)
{
return sal_True; // should be supported at least
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSchemasInTableDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCatalogsInTableDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCatalogsInDataManipulation( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxStatements( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxProcedureNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException)
{
// for the moment, we have read-only addresses, but this might change in the future
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsConvert( sal_Int32, sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsMixedCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getURL( ) throw(SQLException, RuntimeException)
{
// if someday we support more than the default address book,
@@ -556,145 +556,145 @@ OUString SAL_CALL MacabDatabaseMetaData::getURL( ) throw(SQLException, RuntimeE
OUString aValue( "sdbc:address:macab:" );
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getUserName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getDriverName( ) throw(SQLException, RuntimeException)
{
OUString aValue( "macab" );
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getDriverVersion() throw(SQLException, RuntimeException)
{
OUString aValue(MACAB_DRIVER_VERSION);
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getDatabaseProductVersion( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getDatabaseProductName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getProcedureTerm( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getSchemaTerm( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getDriverMajorVersion( ) throw(RuntimeException)
{
return MACAB_DRIVER_VERSION_MAJOR;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getDefaultTransactionIsolation( ) throw(SQLException, RuntimeException)
{
return TransactionIsolation::NONE;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException)
{
return MACAB_DRIVER_VERSION_MINOR;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getSQLKeywords( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getSearchStringEscape( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getStringFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getTimeDateFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getSystemFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabDatabaseMetaData::getNumericFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxColumnsInOrderBy( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxColumnsInSelect( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDatabaseMetaData::getMaxUserNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsResultSetType( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
switch (setType)
@@ -705,7 +705,7 @@ sal_Bool SAL_CALL MacabDatabaseMetaData::supportsResultSetType( sal_Int32 setTyp
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 ) throw(SQLException, RuntimeException)
{
switch (setType)
@@ -716,62 +716,62 @@ sal_Bool SAL_CALL MacabDatabaseMetaData::supportsResultSetConcurrency( sal_Int32
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::ownUpdatesAreVisible( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::ownDeletesAreVisible( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::ownInsertsAreVisible( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::othersUpdatesAreVisible( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::othersDeletesAreVisible( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::othersInsertsAreVisible( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::updatesAreDetected( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::deletesAreDetected( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::insertsAreDetected( sal_Int32 ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL MacabDatabaseMetaData::getConnection( ) throw(SQLException, RuntimeException)
{
return (Reference< XConnection >) m_xConnection.get();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException)
{
::connectivity::ODatabaseMetaDataResultSet* pResult = new ::connectivity::ODatabaseMetaDataResultSet(ODatabaseMetaDataResultSet::eTableTypes);
@@ -790,7 +790,7 @@ Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getTableTypes( ) throw(
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getTypeInfo( ) throw(SQLException, RuntimeException)
{
ODatabaseMetaDataResultSet* pResult = new ODatabaseMetaDataResultSet(ODatabaseMetaDataResultSet::eTypeInfo);
@@ -846,24 +846,24 @@ Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getTypeInfo( ) throw(SQ
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getCatalogs( ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eCatalogs );
}
-// -----------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getSchemas( ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eSchemas );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getColumnPrivileges(
const Any&, const OUString&, const OUString&,
const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eColumnPrivileges );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getColumns(
const Any&,
const OUString&,
@@ -950,7 +950,7 @@ Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getColumns(
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getTables(
const Any&,
const OUString&,
@@ -1012,21 +1012,21 @@ Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getTables(
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getProcedureColumns(
const Any&, const OUString&,
const OUString&, const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eProcedureColumns );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getProcedures(
const Any&, const OUString&,
const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eProcedures );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getVersionColumns(
const Any&, const OUString&, const OUString& table ) throw(SQLException, RuntimeException)
{
@@ -1057,45 +1057,45 @@ Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getVersionColumns(
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getExportedKeys(
const Any&, const OUString&, const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eExportedKeys );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getImportedKeys(
const Any&, const OUString&, const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eImportedKeys );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getPrimaryKeys(
const Any&, const OUString&, const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::ePrimaryKeys );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getIndexInfo(
const Any&, const OUString&, const OUString&,
sal_Bool, sal_Bool ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eIndexInfo );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getBestRowIdentifier(
const Any&, const OUString&, const OUString&, sal_Int32,
sal_Bool ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eBestRowIdentifier );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getTablePrivileges(
const Any&, const OUString&, const OUString& ) throw(SQLException, RuntimeException)
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eTablePrivileges );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getCrossReference(
const Any&, const OUString&,
const OUString&, const Any&,
@@ -1103,12 +1103,12 @@ Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getCrossReference(
{
return new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eCrossReference );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabDatabaseMetaData::getUDTs( const Any&, const OUString&, const OUString&, const Sequence< sal_Int32 >& ) throw(SQLException, RuntimeException)
{
OSL_FAIL("Not implemented yet!");
throw SQLException();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/macab/MacabDriver.cxx b/connectivity/source/drivers/macab/MacabDriver.cxx
index b08e754a7e20..7a23ae394129 100644
--- a/connectivity/source/drivers/macab/MacabDriver.cxx
+++ b/connectivity/source/drivers/macab/MacabDriver.cxx
@@ -41,7 +41,7 @@ using namespace connectivity::macab;
// =======================================================================
// = MacabImplModule
// =======================================================================
-// --------------------------------------------------------------------------------
+
MacabImplModule::MacabImplModule()
:m_bAttemptedLoadModule(false)
,m_hConnectorModule(NULL)
@@ -49,13 +49,13 @@ MacabImplModule::MacabImplModule()
{
}
-// --------------------------------------------------------------------------------
+
bool MacabImplModule::isMacOSPresent()
{
return impl_loadModule();
}
-// --------------------------------------------------------------------------------
+
namespace
{
template< typename FUNCTION >
@@ -78,7 +78,7 @@ namespace
}
}
-// --------------------------------------------------------------------------------
+
extern "C" { static void SAL_CALL thisModule() {} }
bool MacabImplModule::impl_loadModule()
@@ -105,7 +105,7 @@ bool MacabImplModule::impl_loadModule()
return true;
}
-// --------------------------------------------------------------------------------
+
void MacabImplModule::impl_unloadModule()
{
OSL_PRECOND( m_hConnectorModule != NULL, "MacabImplModule::impl_unloadModule: no module!" );
@@ -118,7 +118,7 @@ void MacabImplModule::impl_unloadModule()
m_bAttemptedLoadModule = false;
}
-// --------------------------------------------------------------------------------
+
void MacabImplModule::init()
{
if ( !impl_loadModule() )
@@ -126,7 +126,7 @@ void MacabImplModule::init()
}
-// --------------------------------------------------------------------------------
+
void MacabImplModule::impl_throwNoMacOSException()
{
::connectivity::SharedResources aResources;
@@ -136,7 +136,7 @@ void MacabImplModule::impl_throwNoMacOSException()
impl_throwGenericSQLException( sError );
}
-// --------------------------------------------------------------------------------
+
void MacabImplModule::impl_throwGenericSQLException( const OUString& _rMessage )
{
SQLException aError;
@@ -146,7 +146,7 @@ void MacabImplModule::impl_throwGenericSQLException( const OUString& _rMessage )
throw aError;
}
-// --------------------------------------------------------------------------------
+
MacabConnection* MacabImplModule::createConnection( MacabDriver* _pDriver ) const
{
OSL_PRECOND( m_hConnectorModule, "MacabImplModule::createConnection: not initialized!" );
@@ -158,7 +158,7 @@ MacabConnection* MacabImplModule::createConnection( MacabDriver* _pDriver ) cons
return static_cast< MacabConnection* >( pUntypedConnection );
}
-// --------------------------------------------------------------------------------
+
void MacabImplModule::shutdown()
{
if ( !m_hConnectorModule )
@@ -191,7 +191,7 @@ MacabDriver::MacabDriver(
}
osl_atomic_decrement( &m_refCount );
}
-// --------------------------------------------------------------------------------
+
void MacabDriver::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -208,12 +208,12 @@ void MacabDriver::disposing()
WeakComponentImplHelperBase::disposing();
}
// static ServiceInfo
-//------------------------------------------------------------------------------
+
OUString MacabDriver::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString::createFromAscii( impl_getAsciiImplementationName() );
}
-//------------------------------------------------------------------------------
+
Sequence< OUString > MacabDriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
// which service is supported
@@ -223,7 +223,7 @@ Sequence< OUString > MacabDriver::getSupportedServiceNames_Static( ) throw (Run
return aSNS;
}
-//------------------------------------------------------------------
+
OUString SAL_CALL MacabDriver::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
@@ -233,12 +233,12 @@ sal_Bool SAL_CALL MacabDriver::supportsService( const OUString& _rServiceName )
{
return cppu::supportsService(this, _rServiceName);
}
-//------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL MacabDriver::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
-// --------------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL MacabDriver::connect( const OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -261,7 +261,7 @@ Reference< XConnection > SAL_CALL MacabDriver::connect( const OUString& url, con
return xConnection;
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabDriver::acceptsURL( const OUString& url )
throw(SQLException, RuntimeException)
{
@@ -273,45 +273,45 @@ sal_Bool SAL_CALL MacabDriver::acceptsURL( const OUString& url )
// here we have to look whether we support this URL format
return url.equals("sdbc:address:macab");
}
-// --------------------------------------------------------------------------------
+
Sequence< DriverPropertyInfo > SAL_CALL MacabDriver::getPropertyInfo( const OUString&, const Sequence< PropertyValue >& ) throw(SQLException, RuntimeException)
{
// if you have something special to say, return it here :-)
return Sequence< DriverPropertyInfo >();
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDriver::getMajorVersion( ) throw(RuntimeException)
{
return MACAB_DRIVER_VERSION_MAJOR;
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabDriver::getMinorVersion( ) throw(RuntimeException)
{
return MACAB_DRIVER_VERSION_MINOR;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL MacabDriver::queryTermination( const EventObject& ) throw (TerminationVetoException, RuntimeException)
{
// nothing to do, nothing to veto
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL MacabDriver::notifyTermination( const EventObject& ) throw (RuntimeException)
{
m_aImplModule.shutdown();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL MacabDriver::disposing( const EventObject& ) throw (RuntimeException)
{
// not interested in (this is the disposing of the desktop, if any)
}
-// --------------------------------------------------------------------------------
+
const sal_Char* MacabDriver::impl_getAsciiImplementationName()
{
return "com.sun.star.comp.sdbc.macab.Driver";
// this name is referenced in the configuration and in the macab.xml
// Please be careful when changing it.
}
-// --------------------------------------------------------------------------------
+
OUString MacabDriver::impl_getConfigurationSettingsPath()
{
OUStringBuffer aPath;
@@ -319,7 +319,7 @@ OUString MacabDriver::impl_getConfigurationSettingsPath()
aPath.appendAscii( "com.sun.star.comp.sdbc.macab.Driver" );
return aPath.makeStringAndClear();
}
-// --------------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL MacabDriver::Create( const Reference< XMultiServiceFactory >& _rxFactory ) throw( Exception )
{
return *(new MacabDriver(comphelper::getComponentContext(_rxFactory)));
diff --git a/connectivity/source/drivers/macab/MacabGroup.cxx b/connectivity/source/drivers/macab/MacabGroup.cxx
index a169c302f331..8911550b14d5 100644
--- a/connectivity/source/drivers/macab/MacabGroup.cxx
+++ b/connectivity/source/drivers/macab/MacabGroup.cxx
@@ -24,7 +24,7 @@
using namespace connectivity::macab;
-// -------------------------------------------------------------------------
+
/* A MacabGroup is basically a MacabRecords with a different constructor.
* It only exists as a different entity for clarification purposes (a group
* is its own entity in the Mac OS X Address Book) and because its
diff --git a/connectivity/source/drivers/macab/MacabHeader.cxx b/connectivity/source/drivers/macab/MacabHeader.cxx
index 419e35101e14..6d0eb20005eb 100644
--- a/connectivity/source/drivers/macab/MacabHeader.cxx
+++ b/connectivity/source/drivers/macab/MacabHeader.cxx
@@ -31,7 +31,7 @@ using namespace com::sun::star::sdbc;
using namespace com::sun::star::util;
using namespace ::dbtools;
-// -------------------------------------------------------------------------
+
MacabHeader::MacabHeader(const sal_Int32 _size, macabfield **_fields)
{
sal_Int32 i;
@@ -58,19 +58,19 @@ MacabHeader::MacabHeader(const sal_Int32 _size, macabfield **_fields)
}
-// -------------------------------------------------------------------------
+
MacabHeader::MacabHeader()
{
size = 0;
fields = NULL;
}
-// -------------------------------------------------------------------------
+
MacabHeader::~MacabHeader()
{
}
-// -------------------------------------------------------------------------
+
void MacabHeader::operator+= (const MacabHeader *r)
{
/* Add one MacabHeader to another. Anything not already in the header is
@@ -139,7 +139,7 @@ void MacabHeader::operator+= (const MacabHeader *r)
}
}
-// -------------------------------------------------------------------------
+
OUString MacabHeader::getString(const sal_Int32 i) const
{
OUString nRet;
@@ -158,13 +158,13 @@ OUString MacabHeader::getString(const sal_Int32 i) const
return nRet;
}
-// -------------------------------------------------------------------------
+
void MacabHeader::sortRecord()
{
sortRecord(0,size);
}
-// -------------------------------------------------------------------------
+
macabfield **MacabHeader::sortRecord(const sal_Int32 _start, const sal_Int32 _length)
{
/* Sort using mergesort. Because it uses mergesort, it is recursive and
@@ -263,7 +263,7 @@ sal_Int32 MacabHeader::compareFields(const macabfield *_field1, const macabfield
return (sal_Int32) result;
}
-// -------------------------------------------------------------------------
+
sal_Int32 MacabHeader::getColumnNumber(const OUString s) const
{
sal_Int32 i;
@@ -279,18 +279,18 @@ sal_Int32 MacabHeader::getColumnNumber(const OUString s) const
return i;
}
-// -------------------------------------------------------------------------
+
MacabHeader *MacabHeader::begin()
{
return this;
}
-// -------------------------------------------------------------------------
+
MacabHeader::iterator::iterator ()
{
}
-// -------------------------------------------------------------------------
+
MacabHeader::iterator::~iterator ()
{
}
@@ -302,31 +302,31 @@ MacabHeader::iterator& MacabHeader::iterator::operator= (MacabHeader *_record)
return *this;
}
-// -------------------------------------------------------------------------
+
void MacabHeader::iterator::operator++ ()
{
id++;
}
-// -------------------------------------------------------------------------
+
sal_Bool MacabHeader::iterator::operator!= (const sal_Int32 i) const
{
return(id != i);
}
-// -------------------------------------------------------------------------
+
sal_Bool MacabHeader::iterator::operator== (const sal_Int32 i) const
{
return(id == i);
}
-// -------------------------------------------------------------------------
+
macabfield *MacabHeader::iterator::operator* () const
{
return record->get(id);
}
-// -------------------------------------------------------------------------
+
sal_Int32 MacabHeader::end() const
{
return size;
diff --git a/connectivity/source/drivers/macab/MacabPreparedStatement.cxx b/connectivity/source/drivers/macab/MacabPreparedStatement.cxx
index 1072dacb4ac8..5f1924c759ea 100644
--- a/connectivity/source/drivers/macab/MacabPreparedStatement.cxx
+++ b/connectivity/source/drivers/macab/MacabPreparedStatement.cxx
@@ -33,7 +33,7 @@ using namespace com::sun::star::sdbc;
using namespace com::sun::star::util;
IMPLEMENT_SERVICE_INFO(MacabPreparedStatement, "com.sun.star.sdbc.drivers.MacabPreparedStatement", "com.sun.star.sdbc.PreparedStatement");
-// -------------------------------------------------------------------------
+
void MacabPreparedStatement::checkAndResizeParameters(sal_Int32 nParams) throw(SQLException)
{
if ( !m_aParameterRow.is() )
@@ -45,7 +45,7 @@ void MacabPreparedStatement::checkAndResizeParameters(sal_Int32 nParams) throw(S
if (nParams >= (sal_Int32) (m_aParameterRow->get()).size())
(m_aParameterRow->get()).resize(nParams);
}
-// -------------------------------------------------------------------------
+
void MacabPreparedStatement::setMacabFields() const throw(SQLException)
{
::rtl::Reference<connectivity::OSQLColumns> xColumns; // selected columns
@@ -61,12 +61,12 @@ void MacabPreparedStatement::setMacabFields() const throw(SQLException)
}
m_xMetaData->setMacabFields(xColumns);
}
-// -------------------------------------------------------------------------
+
void MacabPreparedStatement::resetParameters() const throw(SQLException)
{
m_nParameterIndex = 0;
}
-// -------------------------------------------------------------------------
+
void MacabPreparedStatement::getNextParameter(OUString &rParameter) const throw(SQLException)
{
if (m_nParameterIndex >= (sal_Int32) (m_aParameterRow->get()).size())
@@ -82,7 +82,7 @@ void MacabPreparedStatement::getNextParameter(OUString &rParameter) const throw(
m_nParameterIndex++;
}
-// -------------------------------------------------------------------------
+
MacabPreparedStatement::MacabPreparedStatement(
MacabConnection* _pConnection,
const OUString& sql)
@@ -94,11 +94,11 @@ MacabPreparedStatement::MacabPreparedStatement(
{
}
-// -------------------------------------------------------------------------
+
MacabPreparedStatement::~MacabPreparedStatement()
{
}
-// -------------------------------------------------------------------------
+
void MacabPreparedStatement::disposing()
{
MacabPreparedStatement_BASE::disposing();
@@ -109,7 +109,7 @@ void MacabPreparedStatement::disposing()
m_aParameterRow = NULL;
}
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL MacabPreparedStatement::getMetaData() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -134,7 +134,7 @@ Reference< XResultSetMetaData > SAL_CALL MacabPreparedStatement::getMetaData() t
Reference< XResultSetMetaData > xMetaData = m_xMetaData.get();
return xMetaData;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::close() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -152,7 +152,7 @@ void SAL_CALL MacabPreparedStatement::close() throw(SQLException, RuntimeExcepti
// Remove this Statement object from the Connection object's
// list
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabPreparedStatement::execute() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -162,7 +162,7 @@ sal_Bool SAL_CALL MacabPreparedStatement::execute() throw(SQLException, RuntimeE
return xRS.is();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabPreparedStatement::executeUpdate() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -171,7 +171,7 @@ sal_Int32 SAL_CALL MacabPreparedStatement::executeUpdate() throw(SQLException, R
// same as in statement with the difference that this statement also can contain parameter
return 0;
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL MacabPreparedStatement::getConnection() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -179,7 +179,7 @@ Reference< XConnection > SAL_CALL MacabPreparedStatement::getConnection() throw(
return (Reference< XConnection >) m_pConnection;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabPreparedStatement::executeQuery() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -189,7 +189,7 @@ Reference< XResultSet > SAL_CALL MacabPreparedStatement::executeQuery() throw(SQ
return rs;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setNull(sal_Int32 parameterIndex, sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -199,7 +199,7 @@ void SAL_CALL MacabPreparedStatement::setNull(sal_Int32 parameterIndex, sal_Int3
(m_aParameterRow->get())[parameterIndex - 1].setNull();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setObjectNull(sal_Int32, sal_Int32, const OUString&) throw(SQLException, RuntimeException)
{
@@ -207,7 +207,7 @@ void SAL_CALL MacabPreparedStatement::setObjectNull(sal_Int32, sal_Int32, const
::dbtools::throwFunctionNotSupportedException("setObjectNull", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setBoolean(sal_Int32, sal_Bool) throw(SQLException, RuntimeException)
{
@@ -215,7 +215,7 @@ void SAL_CALL MacabPreparedStatement::setBoolean(sal_Int32, sal_Bool) throw(SQLE
::dbtools::throwFunctionNotSupportedException("setBoolean", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setByte(sal_Int32, sal_Int8) throw(SQLException, RuntimeException)
{
@@ -223,7 +223,7 @@ void SAL_CALL MacabPreparedStatement::setByte(sal_Int32, sal_Int8) throw(SQLExce
::dbtools::throwFunctionNotSupportedException("setByte", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setShort(sal_Int32, sal_Int16) throw(SQLException, RuntimeException)
{
@@ -231,7 +231,7 @@ void SAL_CALL MacabPreparedStatement::setShort(sal_Int32, sal_Int16) throw(SQLEx
::dbtools::throwFunctionNotSupportedException("setShort", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setInt(sal_Int32, sal_Int32) throw(SQLException, RuntimeException)
{
@@ -239,7 +239,7 @@ void SAL_CALL MacabPreparedStatement::setInt(sal_Int32, sal_Int32) throw(SQLExce
::dbtools::throwFunctionNotSupportedException("setInt", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setLong(sal_Int32, sal_Int64) throw(SQLException, RuntimeException)
{
@@ -247,7 +247,7 @@ void SAL_CALL MacabPreparedStatement::setLong(sal_Int32, sal_Int64) throw(SQLExc
::dbtools::throwFunctionNotSupportedException("setLong", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setFloat(sal_Int32, float) throw(SQLException, RuntimeException)
{
@@ -255,7 +255,7 @@ void SAL_CALL MacabPreparedStatement::setFloat(sal_Int32, float) throw(SQLExcept
::dbtools::throwFunctionNotSupportedException("setFloat", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setDouble(sal_Int32, double) throw(SQLException, RuntimeException)
{
@@ -263,7 +263,7 @@ void SAL_CALL MacabPreparedStatement::setDouble(sal_Int32, double) throw(SQLExce
::dbtools::throwFunctionNotSupportedException("setDouble", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setString(sal_Int32 parameterIndex, const OUString &x) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -273,7 +273,7 @@ void SAL_CALL MacabPreparedStatement::setString(sal_Int32 parameterIndex, const
(m_aParameterRow->get())[parameterIndex - 1] = x;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setBytes(sal_Int32, const Sequence< sal_Int8 >&) throw(SQLException, RuntimeException)
{
@@ -281,7 +281,7 @@ void SAL_CALL MacabPreparedStatement::setBytes(sal_Int32, const Sequence< sal_In
::dbtools::throwFunctionNotSupportedException("setBytes", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setDate(sal_Int32, const Date&) throw(SQLException, RuntimeException)
{
@@ -289,7 +289,7 @@ void SAL_CALL MacabPreparedStatement::setDate(sal_Int32, const Date&) throw(SQLE
::dbtools::throwFunctionNotSupportedException("setDate", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setTime(sal_Int32, const Time&) throw(SQLException, RuntimeException)
{
@@ -297,7 +297,7 @@ void SAL_CALL MacabPreparedStatement::setTime(sal_Int32, const Time&) throw(SQLE
::dbtools::throwFunctionNotSupportedException("setTime", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setTimestamp(sal_Int32, const DateTime&) throw(SQLException, RuntimeException)
{
@@ -305,7 +305,7 @@ void SAL_CALL MacabPreparedStatement::setTimestamp(sal_Int32, const DateTime&) t
::dbtools::throwFunctionNotSupportedException("setTimestamp", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setBinaryStream(sal_Int32, const Reference< ::com::sun::star::io::XInputStream >&, sal_Int32) throw(SQLException, RuntimeException)
{
@@ -313,7 +313,7 @@ void SAL_CALL MacabPreparedStatement::setBinaryStream(sal_Int32, const Reference
::dbtools::throwFunctionNotSupportedException("setBinaryStream", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setCharacterStream(sal_Int32, const Reference< ::com::sun::star::io::XInputStream >&, sal_Int32) throw(SQLException, RuntimeException)
{
@@ -321,7 +321,7 @@ void SAL_CALL MacabPreparedStatement::setCharacterStream(sal_Int32, const Refere
::dbtools::throwFunctionNotSupportedException("setCharacterStream", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setObject(sal_Int32 parameterIndex, const Any& x) throw(SQLException, RuntimeException)
{
if(!::dbtools::implSetObject(this,parameterIndex,x))
@@ -333,7 +333,7 @@ void SAL_CALL MacabPreparedStatement::setObject(sal_Int32 parameterIndex, const
::dbtools::throwGenericSQLException(sError,*this);
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setObjectWithInfo(sal_Int32, const Any&, sal_Int32, sal_Int32) throw(SQLException, RuntimeException)
{
@@ -341,7 +341,7 @@ void SAL_CALL MacabPreparedStatement::setObjectWithInfo(sal_Int32, const Any&, s
::dbtools::throwFunctionNotSupportedException("setObjectWithInfo", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setRef(sal_Int32, const Reference< XRef >&) throw(SQLException, RuntimeException)
{
@@ -349,7 +349,7 @@ void SAL_CALL MacabPreparedStatement::setRef(sal_Int32, const Reference< XRef >&
::dbtools::throwFunctionNotSupportedException("setRef", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setBlob(sal_Int32, const Reference< XBlob >&) throw(SQLException, RuntimeException)
{
@@ -357,7 +357,7 @@ void SAL_CALL MacabPreparedStatement::setBlob(sal_Int32, const Reference< XBlob
::dbtools::throwFunctionNotSupportedException("setBlob", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setClob(sal_Int32, const Reference< XClob >&) throw(SQLException, RuntimeException)
{
@@ -365,7 +365,7 @@ void SAL_CALL MacabPreparedStatement::setClob(sal_Int32, const Reference< XClob
::dbtools::throwFunctionNotSupportedException("setClob", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::setArray(sal_Int32, const Reference< XArray >&) throw(SQLException, RuntimeException)
{
@@ -373,12 +373,12 @@ void SAL_CALL MacabPreparedStatement::setArray(sal_Int32, const Reference< XArra
::dbtools::throwFunctionNotSupportedException("setArray", NULL);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabPreparedStatement::clearParameters() throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException("clearParameters", NULL);
}
-// -------------------------------------------------------------------------
+
void MacabPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
{
switch (nHandle)
diff --git a/connectivity/source/drivers/macab/MacabRecord.cxx b/connectivity/source/drivers/macab/MacabRecord.cxx
index 2ebd7869429a..81c99ef9a3e3 100644
--- a/connectivity/source/drivers/macab/MacabRecord.cxx
+++ b/connectivity/source/drivers/macab/MacabRecord.cxx
@@ -32,14 +32,14 @@ using namespace connectivity::macab;
using namespace com::sun::star::util;
using namespace ::dbtools;
-// -------------------------------------------------------------------------
+
MacabRecord::MacabRecord()
{
size = 0;
fields = NULL;
}
-// -------------------------------------------------------------------------
+
MacabRecord::MacabRecord(const sal_Int32 _size)
{
size = _size;
@@ -49,7 +49,7 @@ MacabRecord::MacabRecord(const sal_Int32 _size)
fields[i] = NULL;
}
-// -------------------------------------------------------------------------
+
MacabRecord::~MacabRecord()
{
if(size > 0)
@@ -65,7 +65,7 @@ MacabRecord::~MacabRecord()
fields = NULL;
}
-// -------------------------------------------------------------------------
+
void MacabRecord::insertAtColumn (CFTypeRef _value, ABPropertyType _type, const sal_Int32 _column)
{
if(_column < size)
@@ -80,7 +80,7 @@ void MacabRecord::insertAtColumn (CFTypeRef _value, ABPropertyType _type, const
}
}
-// -------------------------------------------------------------------------
+
sal_Bool MacabRecord::contains (const macabfield *_field) const
{
if(_field == NULL)
@@ -89,7 +89,7 @@ sal_Bool MacabRecord::contains (const macabfield *_field) const
return contains(_field->value);
}
-// -------------------------------------------------------------------------
+
sal_Bool MacabRecord::contains (const CFTypeRef _value) const
{
sal_Int32 i;
@@ -107,13 +107,13 @@ sal_Bool MacabRecord::contains (const CFTypeRef _value) const
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 MacabRecord::getSize() const
{
return size;
}
-// -------------------------------------------------------------------------
+
macabfield *MacabRecord::copy(const sal_Int32 i) const
{
/* Note: copy(i) creates a new macabfield identical to that at
@@ -133,7 +133,7 @@ macabfield *MacabRecord::copy(const sal_Int32 i) const
return NULL;
}
-// -------------------------------------------------------------------------
+
macabfield *MacabRecord::get(const sal_Int32 i) const
{
/* Note: copy(i) creates a new macabfield identical to that at
@@ -148,7 +148,7 @@ macabfield *MacabRecord::get(const sal_Int32 i) const
return NULL;
}
-// -------------------------------------------------------------------------
+
void MacabRecord::releaseFields()
{
/* This method is, at the moment, only used in MacabHeader.cxx, but
@@ -161,7 +161,7 @@ void MacabRecord::releaseFields()
CFRelease(fields[i]->value);
}
-// -------------------------------------------------------------------------
+
sal_Int32 MacabRecord::compareFields(const macabfield *_field1, const macabfield *_field2)
{
@@ -217,7 +217,7 @@ sal_Int32 MacabRecord::compareFields(const macabfield *_field1, const macabfield
return (sal_Int32) result;
}
-// -------------------------------------------------------------------------
+
/* Create a macabfield out of an OUString and type. Together with the
* method fieldToString() (below), it is possible to switch conveniently
* between an OUString and a macabfield (for use when creating and handling
@@ -285,7 +285,7 @@ macabfield *MacabRecord::createMacabField(const OUString _newFieldString, const
return newField;
}
-// -------------------------------------------------------------------------
+
/* Create an OUString out of a macabfield. Together with the method
* createMacabField() (above), it is possible to switch conveniently
* between an OUString and a macabfield (for use when creating and handling
diff --git a/connectivity/source/drivers/macab/MacabRecords.cxx b/connectivity/source/drivers/macab/MacabRecords.cxx
index 802a15a52b55..4a86821e05ac 100644
--- a/connectivity/source/drivers/macab/MacabRecords.cxx
+++ b/connectivity/source/drivers/macab/MacabRecords.cxx
@@ -32,7 +32,7 @@
using namespace connectivity::macab;
using namespace com::sun::star::util;
-// -------------------------------------------------------------------------
+
MacabRecords::MacabRecords(const ABAddressBookRef _addressBook, MacabHeader *_header, MacabRecord **_records, sal_Int32 _numRecords)
{
/* Variables passed in... */
@@ -50,7 +50,7 @@ MacabRecords::MacabRecords(const ABAddressBookRef _addressBook, MacabHeader *_he
bootstrap_requiredProperties();
}
-// -------------------------------------------------------------------------
+
/* Creates a MacabRecords from another: copies the length, name, and
* address book of the original, but the header or the records themselves.
* The idea is that the only reason to copy a MacabRecords is to create
@@ -77,7 +77,7 @@ MacabRecords::MacabRecords(const MacabRecords *_copy)
bootstrap_requiredProperties();
}
-// -------------------------------------------------------------------------
+
MacabRecords::MacabRecords(const ABAddressBookRef _addressBook)
{
/* Variables passed in... */
@@ -95,7 +95,7 @@ MacabRecords::MacabRecords(const ABAddressBookRef _addressBook)
bootstrap_requiredProperties();
}
-// -------------------------------------------------------------------------
+
void MacabRecords::initialize()
{
@@ -145,12 +145,12 @@ void MacabRecords::initialize()
CFRelease(allRecords);
}
-// -------------------------------------------------------------------------
+
MacabRecords::~MacabRecords()
{
}
-// -------------------------------------------------------------------------
+
void MacabRecords::setHeader(MacabHeader *_header)
{
if(header != NULL)
@@ -158,13 +158,13 @@ void MacabRecords::setHeader(MacabHeader *_header)
header = _header;
}
-// -------------------------------------------------------------------------
+
MacabHeader *MacabRecords::getHeader() const
{
return header;
}
-// -------------------------------------------------------------------------
+
/* Inserts a MacabRecord at a given location. If there is already a
* MacabRecord at that location, return it.
*/
@@ -199,14 +199,14 @@ MacabRecord *MacabRecords::insertRecord(MacabRecord *_newRecord, const sal_Int32
return oldRecord;
}
-// -------------------------------------------------------------------------
+
/* Insert a record at the next available place. */
void MacabRecords::insertRecord(MacabRecord *_newRecord)
{
insertRecord(_newRecord, currentRecord);
}
-// -------------------------------------------------------------------------
+
MacabRecord *MacabRecords::getRecord(const sal_Int32 _location) const
{
if(_location >= recordsSize)
@@ -214,7 +214,7 @@ MacabRecord *MacabRecords::getRecord(const sal_Int32 _location) const
return records[_location];
}
-// -------------------------------------------------------------------------
+
macabfield *MacabRecords::getField(const sal_Int32 _recordNumber, const sal_Int32 _columnNumber) const
{
if(_recordNumber >= recordsSize)
@@ -228,7 +228,7 @@ macabfield *MacabRecords::getField(const sal_Int32 _recordNumber, const sal_Int3
return record->get(_columnNumber);
}
-// -------------------------------------------------------------------------
+
macabfield *MacabRecords::getField(const sal_Int32 _recordNumber, const OUString _columnName) const
{
if(header != NULL)
@@ -246,7 +246,7 @@ macabfield *MacabRecords::getField(const sal_Int32 _recordNumber, const OUString
}
}
-// -------------------------------------------------------------------------
+
sal_Int32 MacabRecords::getFieldNumber(const OUString _columnName) const
{
if(header != NULL)
@@ -256,7 +256,7 @@ sal_Int32 MacabRecords::getFieldNumber(const OUString _columnName) const
return -1;
}
-// -------------------------------------------------------------------------
+
/* Create the lcl_CFTypes array -- we need this because there is no
* way to get the ABType of an object from the object itself, and the
* function ABTypeOfProperty can't handle multiple levels of data
@@ -295,7 +295,7 @@ void MacabRecords::bootstrap_CF_types()
lcl_CFTypes[5].ab = kABDataProperty;
}
-// -------------------------------------------------------------------------
+
/* This is based on the possible fields required in the mail merge template
* in sw. If the fields possible there change, it would be optimal to
* change these fields as well.
@@ -313,7 +313,7 @@ void MacabRecords::bootstrap_requiredProperties()
requiredProperties[6] = kABEmailProperty;
}
-// -------------------------------------------------------------------------
+
/* Create the header for a given record type and a given array of records.
* Because the array of records and the record type are given, if you want
* to, you can run this method on the members of a group, or on any other
@@ -470,7 +470,7 @@ MacabHeader *MacabRecords::createHeaderForRecordType(const CFArrayRef _records,
return lcl_header;
}
-// -------------------------------------------------------------------------
+
/* Create a header for a single property. Basically, this method gets
* the property's value and type and then calls another method of
* the same name to do the dirty work.
@@ -499,7 +499,7 @@ MacabHeader *MacabRecords::createHeaderForProperty(const ABRecordRef _record, co
return result;
}
-// -------------------------------------------------------------------------
+
/* Create a header for a single property. This method is recursive
* because a single property might contain several sub-properties that
* we also want to treat singly.
@@ -810,7 +810,7 @@ MacabHeader *MacabRecords::createHeaderForProperty(const ABPropertyType _propert
return NULL;
}
-// -------------------------------------------------------------------------
+
void MacabRecords::manageDuplicateHeaders(macabfield **_headerNames, const sal_Int32 _length) const
{
/* If we have two cases of, say, phone: home, this makes it:
@@ -842,7 +842,7 @@ void MacabRecords::manageDuplicateHeaders(macabfield **_headerNames, const sal_I
}
}
-// -------------------------------------------------------------------------
+
/* Create a MacabRecord out of an ABRecord, using a given MacabHeader and
* the record's type. We go through each property for this record type
* then process it much like we processed the header (above), with two
@@ -889,7 +889,7 @@ MacabRecord *MacabRecords::createMacabRecord(const ABRecordRef _abrecord, const
return macabRecord;
}
-// -------------------------------------------------------------------------
+
/* Inserts a given property into a MacabRecord. This method calls another
* method by the same name after getting the property type (it only
* receives the property value). It is called when we aren't given the
@@ -904,7 +904,7 @@ void MacabRecords::insertPropertyIntoMacabRecord(MacabRecord *_abrecord, const M
insertPropertyIntoMacabRecord(ab_type, _abrecord, _header, _propertyName, _propertyValue);
}
-// -------------------------------------------------------------------------
+
/* Inserts a given property into a MacabRecord. This method is recursive
* because properties can contain many sub-properties.
*/
@@ -1105,7 +1105,7 @@ void MacabRecords::insertPropertyIntoMacabRecord(const ABPropertyType _propertyT
}
-// -------------------------------------------------------------------------
+
ABPropertyType MacabRecords::getABTypeFromCFType(const CFTypeID cf_type ) const
{
sal_Int32 i;
@@ -1120,29 +1120,29 @@ ABPropertyType MacabRecords::getABTypeFromCFType(const CFTypeID cf_type ) const
return kABErrorInProperty;
}
-// -------------------------------------------------------------------------
+
sal_Int32 MacabRecords::size() const
{
return currentRecord;
}
-// -------------------------------------------------------------------------
+
MacabRecords *MacabRecords::begin()
{
return this;
}
-// -------------------------------------------------------------------------
+
MacabRecords::iterator::iterator ()
{
}
-// -------------------------------------------------------------------------
+
MacabRecords::iterator::~iterator ()
{
}
-// -------------------------------------------------------------------------
+
MacabRecords::iterator& MacabRecords::iterator::operator= (MacabRecords *_records)
{
id = 0;
@@ -1150,37 +1150,37 @@ MacabRecords::iterator& MacabRecords::iterator::operator= (MacabRecords *_record
return *this;
}
-// -------------------------------------------------------------------------
+
void MacabRecords::iterator::operator++ ()
{
id++;
}
-// -------------------------------------------------------------------------
+
sal_Bool MacabRecords::iterator::operator!= (const sal_Int32 i) const
{
return(id != i);
}
-// -------------------------------------------------------------------------
+
sal_Bool MacabRecords::iterator::operator== (const sal_Int32 i) const
{
return(id == i);
}
-// -------------------------------------------------------------------------
+
MacabRecord *MacabRecords::iterator::operator* () const
{
return records->getRecord(id);
}
-// -------------------------------------------------------------------------
+
sal_Int32 MacabRecords::end() const
{
return currentRecord;
}
-// -------------------------------------------------------------------------
+
void MacabRecords::swap(const sal_Int32 _id1, const sal_Int32 _id2)
{
MacabRecord *swapRecord = records[_id1];
@@ -1189,13 +1189,13 @@ void MacabRecords::swap(const sal_Int32 _id1, const sal_Int32 _id2)
records[_id2] = swapRecord;
}
-// -------------------------------------------------------------------------
+
void MacabRecords::setName(const OUString _sName)
{
m_sName = _sName;
}
-// -------------------------------------------------------------------------
+
OUString MacabRecords::getName() const
{
return m_sName;
diff --git a/connectivity/source/drivers/macab/MacabResultSet.cxx b/connectivity/source/drivers/macab/MacabResultSet.cxx
index c9f866e6b992..95e3b09de90a 100644
--- a/connectivity/source/drivers/macab/MacabResultSet.cxx
+++ b/connectivity/source/drivers/macab/MacabResultSet.cxx
@@ -44,7 +44,7 @@ using namespace com::sun::star::io;
using namespace com::sun::star::util;
IMPLEMENT_SERVICE_INFO(MacabResultSet, "com.sun.star.sdbc.drivers.MacabResultSet", "com.sun.star.sdbc.ResultSet");
-// -------------------------------------------------------------------------
+
MacabResultSet::MacabResultSet(MacabCommonStatement* pStmt)
: MacabResultSet_BASE(m_aMutex),
OPropertySetHelper(MacabResultSet_BASE::rBHelper),
@@ -56,18 +56,18 @@ MacabResultSet::MacabResultSet(MacabCommonStatement* pStmt)
{
m_sTableName = MacabAddressBook::getDefaultTableName();
}
-// -------------------------------------------------------------------------
+
MacabResultSet::~MacabResultSet()
{
}
-// -------------------------------------------------------------------------
+
void MacabResultSet::allMacabRecords()
{
MacabConnection* pConnection = static_cast< MacabConnection *>(m_xStatement->getConnection().get());
m_aMacabRecords = pConnection->getAddressBook()->getMacabRecords(m_sTableName);
}
-// -------------------------------------------------------------------------
+
void MacabResultSet::someMacabRecords(const MacabCondition *pCondition)
{
MacabConnection* pConnection = static_cast< MacabConnection *>(m_xStatement->getConnection().get());
@@ -96,7 +96,7 @@ void MacabResultSet::someMacabRecords(const MacabCondition *pCondition)
m_aMacabRecords->insertRecord(*iterator);
}
}
-// -------------------------------------------------------------------------
+
void MacabResultSet::sortMacabRecords(const MacabOrder *pOrder)
{
// I do this with ints rather than an iterator because the ids will
@@ -126,12 +126,12 @@ void MacabResultSet::sortMacabRecords(const MacabOrder *pOrder)
}
}
-// -------------------------------------------------------------------------
+
void MacabResultSet::setTableName(OUString _sTableName)
{
m_sTableName = _sTableName;
}
-// -------------------------------------------------------------------------
+
void MacabResultSet::disposing()
{
OPropertySetHelper::disposing();
@@ -141,7 +141,7 @@ void MacabResultSet::disposing()
m_xStatement.clear();
m_xMetaData.clear();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL MacabResultSet::queryInterface(const Type & rType) throw(RuntimeException)
{
Any aRet = OPropertySetHelper::queryInterface(rType);
@@ -149,17 +149,17 @@ Any SAL_CALL MacabResultSet::queryInterface(const Type & rType) throw(RuntimeExc
aRet = MacabResultSet_BASE::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::acquire() throw()
{
MacabResultSet_BASE::acquire();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::release() throw()
{
MacabResultSet_BASE::release();
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL MacabResultSet::getTypes() throw(RuntimeException)
{
OTypeCollection aTypes(
@@ -169,12 +169,12 @@ Sequence< Type > SAL_CALL MacabResultSet::getTypes() throw(RuntimeException)
return comphelper::concatSequences(aTypes.getTypes(), MacabResultSet_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL MacabResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabResultSet::findColumn(const OUString& columnName) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -196,7 +196,7 @@ sal_Int32 SAL_CALL MacabResultSet::findColumn(const OUString& columnName) throw(
assert(false);
return 0; // Never reached
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabResultSet::getString(sal_Int32 columnIndex) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -223,7 +223,7 @@ OUString SAL_CALL MacabResultSet::getString(sal_Int32 columnIndex) throw(SQLExce
// Trigger an exception if m_bWasNull is true?
return aRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::getBoolean(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -233,7 +233,7 @@ sal_Bool SAL_CALL MacabResultSet::getBoolean(sal_Int32) throw(SQLException, Runt
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL MacabResultSet::getByte(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -244,7 +244,7 @@ sal_Int8 SAL_CALL MacabResultSet::getByte(sal_Int32) throw(SQLException, Runtime
sal_Int8 nRet = 0;
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL MacabResultSet::getShort(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -255,7 +255,7 @@ sal_Int16 SAL_CALL MacabResultSet::getShort(sal_Int32) throw(SQLException, Runti
sal_Int16 nRet = 0;
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabResultSet::getInt(sal_Int32 columnIndex) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -284,7 +284,7 @@ sal_Int32 SAL_CALL MacabResultSet::getInt(sal_Int32 columnIndex) throw(SQLExcept
// Trigger an exception if m_bWasNull is true?
return nRet;
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL MacabResultSet::getLong(sal_Int32 columnIndex) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -313,7 +313,7 @@ sal_Int64 SAL_CALL MacabResultSet::getLong(sal_Int32 columnIndex) throw(SQLExcep
// Trigger an exception if m_bWasNull is true?
return nRet;
}
-// -------------------------------------------------------------------------
+
float SAL_CALL MacabResultSet::getFloat(sal_Int32 columnIndex) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -342,7 +342,7 @@ float SAL_CALL MacabResultSet::getFloat(sal_Int32 columnIndex) throw(SQLExceptio
// Trigger an exception if m_bWasNull is true?
return nVal;
}
-// -------------------------------------------------------------------------
+
double SAL_CALL MacabResultSet::getDouble(sal_Int32 columnIndex) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -371,7 +371,7 @@ double SAL_CALL MacabResultSet::getDouble(sal_Int32 columnIndex) throw(SQLExcept
// Trigger an exception if m_bWasNull is true?
return nVal;
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL MacabResultSet::getBytes(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -381,7 +381,7 @@ Sequence< sal_Int8 > SAL_CALL MacabResultSet::getBytes(sal_Int32) throw(SQLExcep
return Sequence< sal_Int8 >();
}
-// -------------------------------------------------------------------------
+
Date SAL_CALL MacabResultSet::getDate(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -392,7 +392,7 @@ Date SAL_CALL MacabResultSet::getDate(sal_Int32) throw(SQLException, RuntimeExce
Date aRet;
return aRet;
}
-// -------------------------------------------------------------------------
+
Time SAL_CALL MacabResultSet::getTime(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -403,7 +403,7 @@ Time SAL_CALL MacabResultSet::getTime(sal_Int32) throw(SQLException, RuntimeExce
Time nRet;
return nRet;
}
-// -------------------------------------------------------------------------
+
DateTime SAL_CALL MacabResultSet::getTimestamp(sal_Int32 columnIndex) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -430,7 +430,7 @@ DateTime SAL_CALL MacabResultSet::getTimestamp(sal_Int32 columnIndex) throw(SQLE
// Trigger an exception if m_bWasNull is true?
return nRet;
}
-// -------------------------------------------------------------------------
+
Reference< XInputStream > SAL_CALL MacabResultSet::getBinaryStream(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -440,7 +440,7 @@ Reference< XInputStream > SAL_CALL MacabResultSet::getBinaryStream(sal_Int32) th
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XInputStream > SAL_CALL MacabResultSet::getCharacterStream(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -450,7 +450,7 @@ Reference< XInputStream > SAL_CALL MacabResultSet::getCharacterStream(sal_Int32)
return NULL;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL MacabResultSet::getObject(sal_Int32, const Reference< ::com::sun::star::container::XNameAccess >&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -460,7 +460,7 @@ Any SAL_CALL MacabResultSet::getObject(sal_Int32, const Reference< ::com::sun::s
return Any();
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL MacabResultSet::getRef(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -470,7 +470,7 @@ Reference< XRef > SAL_CALL MacabResultSet::getRef(sal_Int32) throw(SQLException,
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL MacabResultSet::getBlob(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -480,7 +480,7 @@ Reference< XBlob > SAL_CALL MacabResultSet::getBlob(sal_Int32) throw(SQLExceptio
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL MacabResultSet::getClob(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -490,7 +490,7 @@ Reference< XClob > SAL_CALL MacabResultSet::getClob(sal_Int32) throw(SQLExceptio
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL MacabResultSet::getArray(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -500,7 +500,7 @@ Reference< XArray > SAL_CALL MacabResultSet::getArray(sal_Int32) throw(SQLExcept
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL MacabResultSet::getMetaData() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -512,7 +512,7 @@ Reference< XResultSetMetaData > SAL_CALL MacabResultSet::getMetaData() throw(SQL
Reference< XResultSetMetaData > xMetaData = m_xMetaData.get();
return xMetaData;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::isBeforeFirst() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -523,7 +523,7 @@ sal_Bool SAL_CALL MacabResultSet::isBeforeFirst() throw(SQLException, RuntimeExc
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::isAfterLast() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -535,7 +535,7 @@ sal_Bool SAL_CALL MacabResultSet::isAfterLast() throw(SQLException, RuntimeExcep
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::isFirst() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -546,7 +546,7 @@ sal_Bool SAL_CALL MacabResultSet::isFirst() throw(SQLException, RuntimeException
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::isLast() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -558,7 +558,7 @@ sal_Bool SAL_CALL MacabResultSet::isLast() throw(SQLException, RuntimeException)
return sal_False;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::beforeFirst() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -567,7 +567,7 @@ void SAL_CALL MacabResultSet::beforeFirst() throw(SQLException, RuntimeException
// move before the first row
m_nRowPos = -1;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::afterLast() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -577,7 +577,7 @@ void SAL_CALL MacabResultSet::afterLast() throw(SQLException, RuntimeException)
sal_Int32 nRecords = m_aMacabRecords->size();
m_nRowPos = nRecords;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::close() throw(SQLException, RuntimeException)
{
{
@@ -586,7 +586,7 @@ void SAL_CALL MacabResultSet::close() throw(SQLException, RuntimeException)
}
dispose();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::first() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -599,7 +599,7 @@ sal_Bool SAL_CALL MacabResultSet::first() throw(SQLException, RuntimeException)
m_nRowPos = 0;
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::last() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -612,7 +612,7 @@ sal_Bool SAL_CALL MacabResultSet::last() throw(SQLException, RuntimeException)
m_nRowPos = nRecords - 1;
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabResultSet::getRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -620,7 +620,7 @@ sal_Int32 SAL_CALL MacabResultSet::getRow() throw(SQLException, RuntimeException
return m_nRowPos;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::absolute(sal_Int32 row) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -634,7 +634,7 @@ sal_Bool SAL_CALL MacabResultSet::absolute(sal_Int32 row) throw(SQLException, Ru
m_nRowPos = row;
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::relative(sal_Int32 row) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -642,7 +642,7 @@ sal_Bool SAL_CALL MacabResultSet::relative(sal_Int32 row) throw(SQLException, Ru
return absolute(m_nRowPos + row);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::next() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -650,7 +650,7 @@ sal_Bool SAL_CALL MacabResultSet::next() throw(SQLException, RuntimeException)
return absolute(m_nRowPos + 1);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::previous() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -658,7 +658,7 @@ sal_Bool SAL_CALL MacabResultSet::previous() throw(SQLException, RuntimeExceptio
return absolute(m_nRowPos - 1);
}
-// -------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL MacabResultSet::getStatement() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -667,7 +667,7 @@ Reference< XInterface > SAL_CALL MacabResultSet::getStatement() throw(SQLExcepti
Reference< XStatement > xStatement = m_xStatement.get();
return xStatement;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::rowDeleted() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -675,7 +675,7 @@ sal_Bool SAL_CALL MacabResultSet::rowDeleted() throw(SQLException, RuntimeExcept
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::rowInserted() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -683,7 +683,7 @@ sal_Bool SAL_CALL MacabResultSet::rowInserted() throw(SQLException, RuntimeExcep
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::rowUpdated() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -691,7 +691,7 @@ sal_Bool SAL_CALL MacabResultSet::rowUpdated() throw(SQLException, RuntimeExcept
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::wasNull() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -699,22 +699,22 @@ sal_Bool SAL_CALL MacabResultSet::wasNull() throw(SQLException, RuntimeException
return m_bWasNull;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::cancel() throw(RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::clearWarnings() throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL MacabResultSet::getWarnings() throw(SQLException, RuntimeException)
{
return Any();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::insertRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -722,7 +722,7 @@ void SAL_CALL MacabResultSet::insertRow() throw(SQLException, RuntimeException)
// you only have to implement this if you want to insert new rows
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -730,19 +730,19 @@ void SAL_CALL MacabResultSet::updateRow() throw(SQLException, RuntimeException)
// only when you allow updates
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::deleteRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::cancelRowUpdates() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::moveToInsertRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -750,121 +750,121 @@ void SAL_CALL MacabResultSet::moveToInsertRow() throw(SQLException, RuntimeExcep
// only when you allow inserts
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::moveToCurrentRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateNull(sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateBoolean(sal_Int32, sal_Bool) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateByte(sal_Int32, sal_Int8) throw(SQLException, RuntimeException)
{
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
::osl::MutexGuard aGuard( m_aMutex );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateShort(sal_Int32, sal_Int16) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateInt(sal_Int32, sal_Int32) throw(SQLException, RuntimeException)
{
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
::osl::MutexGuard aGuard( m_aMutex );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateLong(sal_Int32, sal_Int64) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -----------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateFloat(sal_Int32, float) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateDouble(sal_Int32, double) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateString(sal_Int32, const OUString&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateBytes(sal_Int32, const Sequence< sal_Int8 >&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateDate(sal_Int32, const Date&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateTime(sal_Int32, const Time&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateTimestamp(sal_Int32, const DateTime&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateBinaryStream(sal_Int32, const Reference< XInputStream >&, sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateCharacterStream(sal_Int32, const Reference< XInputStream >&, sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::refreshRow() throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateObject(sal_Int32, const Any&) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabResultSet::updateNumericObject(sal_Int32, const Any&, sal_Int32) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
// XRowLocate
Any SAL_CALL MacabResultSet::getBookmark() throw( SQLException, RuntimeException)
{
@@ -886,7 +886,7 @@ Any SAL_CALL MacabResultSet::getBookmark() throw( SQLException, RuntimeExceptio
}
return Any();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::moveToBookmark(const Any& bookmark) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -913,7 +913,7 @@ sal_Bool SAL_CALL MacabResultSet::moveToBookmark(const Any& bookmark) throw( SQ
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::moveRelativeToBookmark(const Any& bookmark, sal_Int32 rows) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -934,7 +934,7 @@ sal_Bool SAL_CALL MacabResultSet::moveRelativeToBookmark(const Any& bookmark, s
m_nRowPos = nRowSave;
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabResultSet::compareBookmarks(const Any& firstItem, const Any& secondItem) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -949,12 +949,12 @@ sal_Int32 SAL_CALL MacabResultSet::compareBookmarks(const Any& firstItem, const
return CompareBookmark::GREATER;
return CompareBookmark::EQUAL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSet::hasOrderedBookmarks() throw( SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabResultSet::hashBookmark(const Any& bookmark) throw( SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -964,7 +964,7 @@ sal_Int32 SAL_CALL MacabResultSet::hashBookmark(const Any& bookmark) throw( SQL
return sBookmark.hashCode();
}
-// -------------------------------------------------------------------------
+
// XDeleteRows
Sequence< sal_Int32 > SAL_CALL MacabResultSet::deleteRows(const Sequence< Any >&) throw( SQLException, RuntimeException)
{
@@ -973,7 +973,7 @@ Sequence< sal_Int32 > SAL_CALL MacabResultSet::deleteRows(const Sequence< Any
return Sequence< sal_Int32 >();
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper* MacabResultSet::createArrayHelper() const
{
Sequence< Property > aProps(6);
@@ -988,12 +988,12 @@ IPropertyArrayHelper* MacabResultSet::createArrayHelper() const
return new OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper & MacabResultSet::getInfoHelper()
{
return *static_cast<MacabResultSet*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool MacabResultSet::convertFastPropertyValue(
Any &,
Any &,
@@ -1016,7 +1016,7 @@ sal_Bool MacabResultSet::convertFastPropertyValue(
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
void MacabResultSet::setFastPropertyValue_NoBroadcast(
sal_Int32 nHandle,
const Any& )
@@ -1038,7 +1038,7 @@ void MacabResultSet::setFastPropertyValue_NoBroadcast(
;
}
}
-// -------------------------------------------------------------------------
+
void MacabResultSet::getFastPropertyValue(
Any& _rValue,
sal_Int32 nHandle) const
@@ -1056,6 +1056,6 @@ void MacabResultSet::getFastPropertyValue(
;
}
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/macab/MacabResultSetMetaData.cxx b/connectivity/source/drivers/macab/MacabResultSetMetaData.cxx
index c3199ebe8670..5da1a2811f9e 100644
--- a/connectivity/source/drivers/macab/MacabResultSetMetaData.cxx
+++ b/connectivity/source/drivers/macab/MacabResultSetMetaData.cxx
@@ -36,11 +36,11 @@ MacabResultSetMetaData::MacabResultSetMetaData(MacabConnection* _pConnection, OU
m_aMacabFields()
{
}
-// -------------------------------------------------------------------------
+
MacabResultSetMetaData::~MacabResultSetMetaData()
{
}
-// -------------------------------------------------------------------------
+
void MacabResultSetMetaData::setMacabFields(const ::rtl::Reference<connectivity::OSQLColumns> &xColumns) throw(SQLException)
{
OSQLColumns::Vector::const_iterator aIter;
@@ -69,13 +69,13 @@ void MacabResultSetMetaData::setMacabFields(const ::rtl::Reference<connectivity:
}
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabResultSetMetaData::getColumnDisplaySize(sal_Int32 /* column */) throw(SQLException, RuntimeException)
{
// For now, all columns are the same size.
return 50;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabResultSetMetaData::getColumnType(sal_Int32 column) throw(SQLException, RuntimeException)
{
MacabRecords *aRecords;
@@ -101,22 +101,22 @@ sal_Int32 SAL_CALL MacabResultSetMetaData::getColumnType(sal_Int32 column) throw
return ABTypeToDataType(aField->type);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabResultSetMetaData::getColumnCount() throw(SQLException, RuntimeException)
{
return m_aMacabFields.size();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSetMetaData::isCaseSensitive(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabResultSetMetaData::getSchemaName(sal_Int32) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabResultSetMetaData::getColumnName(sal_Int32 column) throw(SQLException, RuntimeException)
{
sal_uInt32 nFieldNumber = m_aMacabFields[column - 1];
@@ -136,81 +136,81 @@ OUString SAL_CALL MacabResultSetMetaData::getColumnName(sal_Int32 column) throw(
return aName;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabResultSetMetaData::getTableName(sal_Int32) throw(SQLException, RuntimeException)
{
return m_sTableName;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabResultSetMetaData::getCatalogName(sal_Int32) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabResultSetMetaData::getColumnTypeName(sal_Int32) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabResultSetMetaData::getColumnLabel(sal_Int32) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL MacabResultSetMetaData::getColumnServiceName(sal_Int32) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSetMetaData::isCurrency(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSetMetaData::isAutoIncrement(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSetMetaData::isSigned(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabResultSetMetaData::getPrecision(sal_Int32) throw(SQLException, RuntimeException)
{
return 0;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabResultSetMetaData::getScale(sal_Int32) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabResultSetMetaData::isNullable(sal_Int32) throw(SQLException, RuntimeException)
{
return (sal_Int32) sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSetMetaData::isSearchable(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSetMetaData::isReadOnly(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSetMetaData::isDefinitelyWritable(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabResultSetMetaData::isWritable(sal_Int32) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/macab/MacabServices.cxx b/connectivity/source/drivers/macab/MacabServices.cxx
index 6c7cd113a165..5428db736cb5 100644
--- a/connectivity/source/drivers/macab/MacabServices.cxx
+++ b/connectivity/source/drivers/macab/MacabServices.cxx
@@ -36,7 +36,7 @@ typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
rtl_ModuleCount*
);
-//---------------------------------------------------------------------------------------
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
@@ -74,7 +74,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
-//---------------------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL macab_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/macab/MacabStatement.cxx b/connectivity/source/drivers/macab/MacabStatement.cxx
index 026e69dc28cb..6b85a0ef5225 100644
--- a/connectivity/source/drivers/macab/MacabStatement.cxx
+++ b/connectivity/source/drivers/macab/MacabStatement.cxx
@@ -61,7 +61,7 @@ namespace connectivity
}
IMPLEMENT_SERVICE_INFO(MacabStatement, "com.sun.star.sdbc.drivers.MacabStatement", "com.sun.star.sdbc.Statement");
-//------------------------------------------------------------------------------
+
MacabCommonStatement::MacabCommonStatement(MacabConnection* _pConnection )
: MacabCommonStatement_BASE(m_aMutex),
OPropertySetHelper(MacabCommonStatement_BASE::rBHelper),
@@ -73,26 +73,26 @@ MacabCommonStatement::MacabCommonStatement(MacabConnection* _pConnection )
{
m_pConnection->acquire();
}
-// -----------------------------------------------------------------------------
+
MacabCommonStatement::~MacabCommonStatement()
{
}
-// -----------------------------------------------------------------------------
+
void MacabCommonStatement::disposing()
{
MacabCommonStatement_BASE::disposing();
}
-// -----------------------------------------------------------------------------
+
void MacabCommonStatement::resetParameters() const throw(::com::sun::star::sdbc::SQLException)
{
impl_throwError(STR_PARA_ONLY_PREPARED);
}
-// -----------------------------------------------------------------------------
+
void MacabCommonStatement::getNextParameter(OUString &) const throw(::com::sun::star::sdbc::SQLException)
{
impl_throwError(STR_PARA_ONLY_PREPARED);
}
-// -----------------------------------------------------------------------------
+
MacabCondition *MacabCommonStatement::analyseWhereClause(const OSQLParseNode *pParseNode) const throw(SQLException)
{
if (pParseNode->count() == 3)
@@ -237,7 +237,7 @@ MacabCondition *MacabCommonStatement::analyseWhereClause(const OSQLParseNode *pP
OSL_ASSERT(false);
return 0;
}
-// -----------------------------------------------------------------------------
+
MacabOrder *MacabCommonStatement::analyseOrderByClause(const OSQLParseNode *pParseNode) const throw(SQLException)
{
if (SQL_ISRULE(pParseNode, ordering_spec_commalist))
@@ -285,7 +285,7 @@ MacabOrder *MacabCommonStatement::analyseOrderByClause(const OSQLParseNode *pPar
OSL_ASSERT(false);
return 0;
}
-//------------------------------------------------------------------------------
+
OUString MacabCommonStatement::getTableName() const
{
const OSQLTables& xTabs = m_aSQLIterator.getTables();
@@ -299,7 +299,7 @@ OUString MacabCommonStatement::getTableName() const
return xTabs.begin()->first;
}
-//------------------------------------------------------------------------------
+
void MacabCommonStatement::setMacabFields(MacabResultSet *pResult) const throw(SQLException)
{
::rtl::Reference<connectivity::OSQLColumns> xColumns; // selected columns
@@ -317,7 +317,7 @@ void MacabCommonStatement::setMacabFields(MacabResultSet *pResult) const throw(S
pMeta = static_cast<MacabResultSetMetaData *>(pResult->getMetaData().get());
pMeta->setMacabFields(xColumns);
}
-// -------------------------------------------------------------------------
+
void MacabCommonStatement::selectRecords(MacabResultSet *pResult) const throw(SQLException)
{
const OSQLParseNode *pParseNode;
@@ -344,7 +344,7 @@ void MacabCommonStatement::selectRecords(MacabResultSet *pResult) const throw(SQ
// no WHERE clause: get all rows
pResult->allMacabRecords();
}
-// -------------------------------------------------------------------------
+
void MacabCommonStatement::sortRecords(MacabResultSet *pResult) const throw(SQLException)
{
const OSQLParseNode *pParseNode;
@@ -361,7 +361,7 @@ void MacabCommonStatement::sortRecords(MacabResultSet *pResult) const throw(SQLE
}
}
}
-//-----------------------------------------------------------------------------
+
Any SAL_CALL MacabCommonStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = MacabCommonStatement_BASE::queryInterface(rType);
@@ -369,7 +369,7 @@ Any SAL_CALL MacabCommonStatement::queryInterface( const Type & rType ) throw(Ru
aRet = OPropertySetHelper::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL MacabCommonStatement::getTypes( ) throw(RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const Reference< XMultiPropertySet > *)0 ),
@@ -378,7 +378,7 @@ Sequence< Type > SAL_CALL MacabCommonStatement::getTypes( ) throw(RuntimeExcept
return comphelper::concatSequences(aTypes.getTypes(),MacabCommonStatement_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabCommonStatement::cancel( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -386,7 +386,7 @@ void SAL_CALL MacabCommonStatement::cancel( ) throw(RuntimeException)
checkDisposed(MacabCommonStatement_BASE::rBHelper.bDisposed);
// cancel the current sql statement
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabCommonStatement::close( ) throw(SQLException, RuntimeException)
{
{
@@ -396,7 +396,7 @@ void SAL_CALL MacabCommonStatement::close( ) throw(SQLException, RuntimeExcepti
}
dispose();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL MacabCommonStatement::execute(
const OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -407,7 +407,7 @@ sal_Bool SAL_CALL MacabCommonStatement::execute(
return xRS.is();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL MacabCommonStatement::executeQuery(
const OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -467,7 +467,7 @@ OSL_TRACE("Mac OS Address book - SQL Request: %s", OUtoCStr(sql));
m_xResultSet = Reference<XResultSet>(pResult);
return xRS;
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL MacabCommonStatement::getConnection( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -476,7 +476,7 @@ Reference< XConnection > SAL_CALL MacabCommonStatement::getConnection( ) throw(
// just return our connection here
return (Reference< XConnection >) m_pConnection;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MacabCommonStatement::executeUpdate( const OUString& ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -485,7 +485,7 @@ sal_Int32 SAL_CALL MacabCommonStatement::executeUpdate( const OUString& ) throw(
// the return values gives information about how many rows are affected by executing the sql statement
return 0;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL MacabCommonStatement::getWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -493,7 +493,7 @@ Any SAL_CALL MacabCommonStatement::getWarnings( ) throw(SQLException, RuntimeEx
return makeAny(m_aLastWarning);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL MacabCommonStatement::clearWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -501,7 +501,7 @@ void SAL_CALL MacabCommonStatement::clearWarnings( ) throw(SQLException, Runtim
m_aLastWarning = SQLWarning();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* MacabCommonStatement::createArrayHelper( ) const
{
// this properties are defined by the service statement
@@ -522,12 +522,12 @@ void SAL_CALL MacabCommonStatement::clearWarnings( ) throw(SQLException, Runtim
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & MacabCommonStatement::getInfoHelper()
{
return *const_cast<MacabCommonStatement*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool MacabCommonStatement::convertFastPropertyValue(
Any &,
Any &,
@@ -538,7 +538,7 @@ sal_Bool MacabCommonStatement::convertFastPropertyValue(
// here we have to try to convert
return bConverted;
}
-// -------------------------------------------------------------------------
+
void MacabCommonStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any&) throw (Exception)
{
// set the value to whatever is necessary
@@ -558,7 +558,7 @@ void MacabCommonStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,co
;
}
}
-// -------------------------------------------------------------------------
+
void MacabCommonStatement::getFastPropertyValue(Any&,sal_Int32 nHandle) const
{
switch (nHandle)
@@ -577,22 +577,22 @@ void MacabCommonStatement::getFastPropertyValue(Any&,sal_Int32 nHandle) const
;
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL MacabCommonStatement::acquire() throw()
{
MacabCommonStatement_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL MacabCommonStatement::release() throw()
{
MacabCommonStatement_BASE::release();
}
-// -----------------------------------------------------------------------------
+
Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL MacabCommonStatement::getPropertySetInfo( ) throw(RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
MacabStatement::MacabStatement(MacabConnection* _pConnection)
: MacabStatement_BASE(_pConnection)
{
diff --git a/connectivity/source/drivers/macab/MacabTable.cxx b/connectivity/source/drivers/macab/MacabTable.cxx
index 341b2ff5e87b..26c83eb2b4d3 100644
--- a/connectivity/source/drivers/macab/MacabTable.cxx
+++ b/connectivity/source/drivers/macab/MacabTable.cxx
@@ -33,14 +33,14 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
MacabTable::MacabTable( sdbcx::OCollection* _pTables, MacabConnection* _pConnection)
: MacabTable_TYPEDEF(_pTables, sal_True),
m_pConnection(_pConnection)
{
construct();
}
-// -------------------------------------------------------------------------
+
MacabTable::MacabTable( sdbcx::OCollection* _pTables,
MacabConnection* _pConnection,
const OUString& _Name,
@@ -58,7 +58,7 @@ MacabTable::MacabTable( sdbcx::OCollection* _pTables,
{
construct();
}
-// -------------------------------------------------------------------------
+
void MacabTable::refreshColumns()
{
TStringVector aVector;
diff --git a/connectivity/source/drivers/macab/MacabTables.cxx b/connectivity/source/drivers/macab/MacabTables.cxx
index 32fd6ab96cbf..6fa6dc45c6a6 100644
--- a/connectivity/source/drivers/macab/MacabTables.cxx
+++ b/connectivity/source/drivers/macab/MacabTables.cxx
@@ -67,12 +67,12 @@ sdbcx::ObjectType MacabTables::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void MacabTables::impl_refresh( ) throw(RuntimeException)
{
static_cast<MacabCatalog&>(m_rParent).refreshTables();
}
-// -------------------------------------------------------------------------
+
void MacabTables::disposing(void)
{
m_xMetaData.clear();
diff --git a/connectivity/source/drivers/macab/macabcondition.cxx b/connectivity/source/drivers/macab/macabcondition.cxx
index 175076ea6447..186802670f8b 100644
--- a/connectivity/source/drivers/macab/macabcondition.cxx
+++ b/connectivity/source/drivers/macab/macabcondition.cxx
@@ -25,55 +25,55 @@
using namespace ::connectivity::macab;
using namespace ::com::sun::star::sdbc;
-// -----------------------------------------------------------------------------
+
MacabCondition::~MacabCondition()
{
}
-// -----------------------------------------------------------------------------
+
MacabConditionConstant::MacabConditionConstant(const sal_Bool bValue)
: MacabCondition(),
m_bValue(bValue)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionConstant::isAlwaysTrue() const
{
return m_bValue;
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionConstant::isAlwaysFalse() const
{
return !m_bValue;
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionConstant::eval(const MacabRecord *) const
{
return m_bValue;
}
-// -----------------------------------------------------------------------------
+
MacabConditionColumn::MacabConditionColumn(const MacabHeader *header, const OUString &sColumnName) throw(SQLException)
: MacabCondition(),
m_nFieldNumber(header->getColumnNumber(sColumnName))
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionColumn::isAlwaysTrue() const
{
// Sometimes true, sometimes false
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionColumn::isAlwaysFalse() const
{
// Sometimes true, sometimes false
return sal_False;
}
-// -----------------------------------------------------------------------------
+
MacabConditionNull::MacabConditionNull(const MacabHeader *header, const OUString &sColumnName) throw(SQLException)
: MacabConditionColumn(header, sColumnName)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionNull::eval(const MacabRecord *aRecord) const
{
macabfield *aValue = aRecord->get(m_nFieldNumber);
@@ -85,12 +85,12 @@ sal_Bool MacabConditionNull::eval(const MacabRecord *aRecord) const
else
return sal_False;
}
-// -----------------------------------------------------------------------------
+
MacabConditionNotNull::MacabConditionNotNull(const MacabHeader *header, const OUString &sColumnName) throw(SQLException)
: MacabConditionColumn(header, sColumnName)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionNotNull::eval(const MacabRecord *aRecord) const
{
macabfield *aValue = aRecord->get(m_nFieldNumber);
@@ -102,18 +102,18 @@ sal_Bool MacabConditionNotNull::eval(const MacabRecord *aRecord) const
else
return sal_True;
}
-// -----------------------------------------------------------------------------
+
MacabConditionCompare::MacabConditionCompare(const MacabHeader *header, const OUString &sColumnName, const OUString &sMatchString) throw(SQLException)
: MacabConditionColumn(header, sColumnName),
m_sMatchString(sMatchString)
{
}
-// -----------------------------------------------------------------------------
+
MacabConditionEqual::MacabConditionEqual(const MacabHeader *header, const OUString &sColumnName, const OUString &sMatchString) throw(SQLException)
: MacabConditionCompare(header, sColumnName, sMatchString)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionEqual::eval(const MacabRecord *aRecord) const
{
macabfield *aValue = aRecord->get(m_nFieldNumber);
@@ -131,12 +131,12 @@ sal_Bool MacabConditionEqual::eval(const MacabRecord *aRecord) const
delete aValue2;
return nReturn == 0;
}
-// -----------------------------------------------------------------------------
+
MacabConditionDifferent::MacabConditionDifferent(const MacabHeader *header, const OUString &sColumnName, const OUString &sMatchString) throw(SQLException)
: MacabConditionCompare(header, sColumnName, sMatchString)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionDifferent::eval(const MacabRecord *aRecord) const
{
macabfield *aValue = aRecord->get(m_nFieldNumber);
@@ -154,12 +154,12 @@ sal_Bool MacabConditionDifferent::eval(const MacabRecord *aRecord) const
delete aValue2;
return nReturn != 0;
}
-// -----------------------------------------------------------------------------
+
MacabConditionSimilar::MacabConditionSimilar(const MacabHeader *header, const OUString &sColumnName, const OUString &sMatchString) throw(SQLException)
: MacabConditionCompare(header, sColumnName, sMatchString)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionSimilar::eval(const MacabRecord *aRecord) const
{
macabfield *aValue = aRecord->get(m_nFieldNumber);
@@ -171,35 +171,35 @@ sal_Bool MacabConditionSimilar::eval(const MacabRecord *aRecord) const
return match(m_sMatchString, sName, '\0');
}
-// -----------------------------------------------------------------------------
+
MacabConditionBoolean::MacabConditionBoolean(MacabCondition *pLeft, MacabCondition *pRight)
: MacabCondition(),
m_pLeft(pLeft),
m_pRight(pRight)
{
}
-// -----------------------------------------------------------------------------
+
MacabConditionBoolean::~MacabConditionBoolean()
{
delete m_pLeft;
delete m_pRight;
}
-// -----------------------------------------------------------------------------
+
MacabConditionOr::MacabConditionOr(MacabCondition *pLeft, MacabCondition *pRight)
: MacabConditionBoolean(pLeft, pRight)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionOr::isAlwaysTrue() const
{
return m_pLeft->isAlwaysTrue() || m_pRight->isAlwaysTrue();
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionOr::isAlwaysFalse() const
{
return m_pLeft->isAlwaysFalse() && m_pRight->isAlwaysFalse();
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionOr::eval(const MacabRecord *aRecord) const
{
// We avoid evaluating terms as much as we can
@@ -211,22 +211,22 @@ sal_Bool MacabConditionOr::eval(const MacabRecord *aRecord) const
return sal_False;
}
-// -----------------------------------------------------------------------------
+
MacabConditionAnd::MacabConditionAnd(MacabCondition *pLeft, MacabCondition *pRight)
: MacabConditionBoolean(pLeft, pRight)
{
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionAnd::isAlwaysTrue() const
{
return m_pLeft->isAlwaysTrue() && m_pRight->isAlwaysTrue();
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionAnd::isAlwaysFalse() const
{
return m_pLeft->isAlwaysFalse() || m_pRight->isAlwaysFalse();
}
-// -----------------------------------------------------------------------------
+
sal_Bool MacabConditionAnd::eval(const MacabRecord *aRecord) const
{
// We avoid evaluating terms as much as we can
diff --git a/connectivity/source/drivers/macab/macaborder.cxx b/connectivity/source/drivers/macab/macaborder.cxx
index 79dd1c18619d..18e8def51e4c 100644
--- a/connectivity/source/drivers/macab/macaborder.cxx
+++ b/connectivity/source/drivers/macab/macaborder.cxx
@@ -27,14 +27,14 @@ using namespace ::connectivity::macab;
MacabOrder::~MacabOrder()
{
}
-// -----------------------------------------------------------------------------
+
MacabSimpleOrder::MacabSimpleOrder(MacabHeader *header, OUString &sColumnName, sal_Bool bAscending)
: MacabOrder(),
m_nFieldNumber(header->getColumnNumber(sColumnName)),
m_bAscending(bAscending)
{
}
-// -----------------------------------------------------------------------------
+
sal_Int32 MacabSimpleOrder::compare(const MacabRecord *record1, const MacabRecord *record2) const
{
sal_Int32 result;
@@ -45,24 +45,24 @@ sal_Int32 MacabSimpleOrder::compare(const MacabRecord *record1, const MacabRecor
return result;
}
-// -----------------------------------------------------------------------------
+
MacabComplexOrder::MacabComplexOrder()
: MacabOrder(),
m_aOrders()
{
}
-// -----------------------------------------------------------------------------
+
MacabComplexOrder::~MacabComplexOrder()
{
for (sal_uInt32 i = 0; i < m_aOrders.size(); i++)
delete m_aOrders[i];
}
-// -----------------------------------------------------------------------------
+
void MacabComplexOrder::addOrder(MacabOrder *pOrder)
{
m_aOrders.push_back(pOrder);
}
-// -----------------------------------------------------------------------------
+
sal_Int32 MacabComplexOrder::compare(const MacabRecord *record1, const MacabRecord *record2) const
{
for (sal_uInt32 i = 0; i < m_aOrders.size(); i++)
diff --git a/connectivity/source/drivers/mork/MCatalog.cxx b/connectivity/source/drivers/mork/MCatalog.cxx
index 663ee08d2267..1426378f48dc 100644
--- a/connectivity/source/drivers/mork/MCatalog.cxx
+++ b/connectivity/source/drivers/mork/MCatalog.cxx
@@ -24,7 +24,7 @@
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <cppuhelper/interfacecontainer.h>
-// -------------------------------------------------------------------------
+
using namespace connectivity::mork;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
@@ -34,7 +34,7 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
using namespace ::cppu;
-// -------------------------------------------------------------------------
+
OCatalog::OCatalog(OConnection* _pCon) : connectivity::sdbcx::OCatalog(_pCon)
,m_pConnection(_pCon)
,m_xMetaData(m_pConnection->getMetaData( ))
@@ -46,7 +46,7 @@ OCatalog::OCatalog(OConnection* _pCon) : connectivity::sdbcx::OCatalog(_pCon)
// refreshUsers();
// osl_atomic_decrement( &m_refCount );
}
-// -------------------------------------------------------------------------
+
void OCatalog::refreshTables()
{
TStringVector aVector;
@@ -70,19 +70,19 @@ void OCatalog::refreshTables()
else
m_pTables = new OTables(m_xMetaData,*this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
void OCatalog::refreshViews()
{
}
-// -------------------------------------------------------------------------
+
void OCatalog::refreshGroups()
{
}
-// -------------------------------------------------------------------------
+
void OCatalog::refreshUsers()
{
}
-// -----------------------------------------------------------------------------
+
// XTablesSupplier
Reference< XNameAccess > SAL_CALL OCatalog::getTables( ) throw(RuntimeException)
diff --git a/connectivity/source/drivers/mork/MColumnAlias.cxx b/connectivity/source/drivers/mork/MColumnAlias.cxx
index 96af40bf706b..0ad8a3dc8685 100644
--- a/connectivity/source/drivers/mork/MColumnAlias.cxx
+++ b/connectivity/source/drivers/mork/MColumnAlias.cxx
@@ -37,7 +37,7 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
-//------------------------------------------------------------------------------
+
OColumnAlias::OColumnAlias( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB )
{
static const sal_Char* s_pProgrammaticNames[] =
@@ -87,7 +87,7 @@ OColumnAlias::OColumnAlias( const ::com::sun::star::uno::Reference< ::com::sun::
initialize( _rxORB );
}
-//------------------------------------------------------------------------------
+
void OColumnAlias::initialize( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB )
{
Reference< XNameAccess > xAliasesNode(
@@ -125,7 +125,7 @@ void OColumnAlias::initialize( const ::com::sun::star::uno::Reference< ::com::su
}
}
-//------------------------------------------------------------------
+
OString OColumnAlias::getProgrammaticNameOrFallbackToUTF8Alias( const OUString& _rAlias ) const
{
AliasMap::const_iterator pos = m_aAliasMap.find( _rAlias );
diff --git a/connectivity/source/drivers/mork/MColumns.cxx b/connectivity/source/drivers/mork/MColumns.cxx
index 009ed6b998ad..57851ee70f70 100644
--- a/connectivity/source/drivers/mork/MColumns.cxx
+++ b/connectivity/source/drivers/mork/MColumns.cxx
@@ -82,12 +82,12 @@ sdbcx::ObjectType OColumns::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void OColumns::impl_refresh() throw(RuntimeException)
{
m_pTable->refreshColumns();
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/mork/MConnection.cxx b/connectivity/source/drivers/mork/MConnection.cxx
index 78956371372f..71b44a115648 100644
--- a/connectivity/source/drivers/mork/MConnection.cxx
+++ b/connectivity/source/drivers/mork/MConnection.cxx
@@ -32,19 +32,19 @@
using namespace dbtools;
-//------------------------------------------------------------------------------
+
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
-// --------------------------------------------------------------------------------
+
namespace connectivity { namespace mork {
static const int defaultScope = 0x80;
-// -----------------------------------------------------------------------------
+
OConnection::OConnection(MorkDriver* _pDriver)
:OSubComponent<OConnection, OConnection_BASE>((::cppu::OWeakObject*)_pDriver, this)
@@ -56,7 +56,7 @@ OConnection::OConnection(MorkDriver* _pDriver)
m_pBook = new MorkParser();
m_pHistory = new MorkParser();
}
-//-----------------------------------------------------------------------------
+
OConnection::~OConnection()
{
acquire();
@@ -68,13 +68,13 @@ OConnection::~OConnection()
delete m_pBook;
delete m_pHistory;
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL OConnection::release() throw()
{
relase_ChildImpl();
}
-// -----------------------------------------------------------------------------
-//-----------------------------------------------------------------------------
+
+
void OConnection::construct(const OUString& url,const Sequence< PropertyValue >& info) throw(SQLException)
{
(void) info; // avoid warnings
@@ -173,10 +173,10 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
}
// XServiceInfo
-// --------------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OConnection, "com.sun.star.sdbc.drivers.mork.OConnection", "com.sun.star.sdbc.Connection")
-// --------------------------------------------------------------------------------
+
Reference< XStatement > SAL_CALL OConnection::createStatement( ) throw(SQLException, RuntimeException)
{
SAL_INFO("connectivity.mork", "=> OConnection::createStatement()" );
@@ -190,7 +190,7 @@ Reference< XStatement > SAL_CALL OConnection::createStatement( ) throw(SQLExcep
m_aStatements.push_back(WeakReferenceHelper(xReturn));
return xReturn;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const OUString& _sSql ) throw(SQLException, RuntimeException)
{
SAL_INFO("connectivity.mork", "=> OConnection::prepareStatement()" );
@@ -210,7 +210,7 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const OU
m_aStatements.push_back(WeakReferenceHelper(xReturn));
return xReturn;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall( const OUString& _sSql ) throw(SQLException, RuntimeException)
{
SAL_INFO("connectivity.mork", "=> OConnection::prepareCall()" );
@@ -220,7 +220,7 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall( const OUStrin
SAL_INFO("connectivity.mork", "OConnection::prepareCall( " << _sSql << " )");
return NULL;
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OConnection::nativeSQL( const OUString& _sSql ) throw(SQLException, RuntimeException)
{
SAL_INFO("connectivity.mork", "=> OConnection::nativeSQL()" );
@@ -232,12 +232,12 @@ OUString SAL_CALL OConnection::nativeSQL( const OUString& _sSql ) throw(SQLExcep
return _sSql;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setAutoCommit( sal_Bool /*autoCommit*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::setAutoCommit", *this );
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::getAutoCommit( ) throw(SQLException, RuntimeException)
{
// you have to distinguish which if you are in autocommit mode or not
@@ -245,17 +245,17 @@ sal_Bool SAL_CALL OConnection::getAutoCommit( ) throw(SQLException, RuntimeExce
return sal_True;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::commit( ) throw(SQLException, RuntimeException)
{
// when you database does support transactions you should commit here
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::rollback( ) throw(SQLException, RuntimeException)
{
// same as commit but for the other case
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::isClosed( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -263,7 +263,7 @@ sal_Bool SAL_CALL OConnection::isClosed( ) throw(SQLException, RuntimeException
// just simple -> we are close when we are disposed that means someone called dispose(); (XComponent)
return OConnection_BASE::rBHelper.bDisposed;
}
-// --------------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData( ) throw(SQLException, RuntimeException)
{
SAL_INFO("connectivity.mork", "=> OConnection::getMetaData()" );
@@ -282,50 +282,50 @@ Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData( ) throw(SQLEx
return xMetaData;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setReadOnly( sal_Bool /*readOnly*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::setReadOnly", *this );
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::isReadOnly( ) throw(SQLException, RuntimeException)
{
// return if your connection to readonly
return sal_False;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setCatalog( const OUString& /*catalog*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::setCatalog", *this );
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OConnection::getCatalog( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setTransactionIsolation( sal_Int32 /*level*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::setTransactionIsolation", *this );
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OConnection::getTransactionIsolation( ) throw(SQLException, RuntimeException)
{
// please have a look at @see com.sun.star.sdbc.TransactionIsolation
return TransactionIsolation::NONE;
}
-// --------------------------------------------------------------------------------
+
Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OConnection::getTypeMap( ) throw(SQLException, RuntimeException)
{
// if your driver has special database types you can return it here
return NULL;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setTypeMap( const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::setTypeMap", *this );
}
-// --------------------------------------------------------------------------------
+
// XCloseable
void SAL_CALL OConnection::close( ) throw(SQLException, RuntimeException)
{
@@ -337,26 +337,26 @@ void SAL_CALL OConnection::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// --------------------------------------------------------------------------------
+
// XWarningsSupplier
Any SAL_CALL OConnection::getWarnings( ) throw(SQLException, RuntimeException)
{
// when you collected some warnings -> return it
return Any();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::clearWarnings( ) throw(SQLException, RuntimeException)
{
// you should clear your collected warnings here
}
-//------------------------------------------------------------------------------
+
void OConnection::disposing()
{
// we noticed that we should be destroied in near future so we have to dispose our statements
::osl::MutexGuard aGuard(m_aMutex);
dispose_ChildImpl();
}
-// -----------------------------------------------------------------------------
+
Reference< XTablesSupplier > SAL_CALL OConnection::createCatalog()
{
@@ -372,9 +372,9 @@ Reference< XTablesSupplier > SAL_CALL OConnection::createCatalog()
OSL_TRACE( "\tOUT OConnection::createCatalog()" );
return xTab;
}
-// -----------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
+
+
void OConnection::throwSQLException( const ErrorDescriptor& _rError, const Reference< XInterface >& _rxContext )
{
if ( _rError.getResId() != 0 )
@@ -411,7 +411,7 @@ void OConnection::throwSQLException( const ErrorDescriptor& _rError, const Refer
throwGenericSQLException( STR_UNSPECIFIED_ERROR, _rxContext );
}
-// -----------------------------------------------------------------------------
+
void OConnection::throwSQLException( const sal_uInt16 _nErrorResourceId, const Reference< XInterface >& _rxContext )
{
ErrorDescriptor aError;
diff --git a/connectivity/source/drivers/mork/MDatabaseMetaData.cxx b/connectivity/source/drivers/mork/MDatabaseMetaData.cxx
index a850bdec26dd..94be41197400 100644
--- a/connectivity/source/drivers/mork/MDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/mork/MDatabaseMetaData.cxx
@@ -52,13 +52,13 @@ ODatabaseMetaData::ODatabaseMetaData(OConnection* _pCon)
OSL_ENSURE(m_pConnection,"ODatabaseMetaData::ODatabaseMetaData: No connection set!");
m_pMetaDataHelper = new MDatabaseMetaDataHelper();
}
-// -------------------------------------------------------------------------
+
ODatabaseMetaData::~ODatabaseMetaData()
{
delete m_pMetaDataHelper;
}
-// -------------------------------------------------------------------------
+
ODatabaseMetaDataResultSet::ORows& SAL_CALL ODatabaseMetaData::getColumnRows(
const OUString& tableNamePattern,
const OUString& columnNamePattern ) throw(SQLException)
@@ -147,317 +147,317 @@ ODatabaseMetaDataResultSet::ORows& SAL_CALL ODatabaseMetaData::getColumnRows(
}
return( aRows );
}
-// -------------------------------------------------------------------------
+
OUString ODatabaseMetaData::impl_getCatalogSeparator_throw( )
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 65535; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxRowSize( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCatalogNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCharLiteralLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 254; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 20; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInIndex( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCursorNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxConnections( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInTable( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaData::impl_getMaxStatements_throw( )
{
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTableNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaData::impl_getMaxTablesInSelect_throw( )
{
// We only support a single table
return 1;
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsAlterTableWithAddColumn_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsAlterTableWithDropColumn_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException)
{
OUString aVal;
return aVal;
}
-// -------------------------------------------------------------------------
+
OUString ODatabaseMetaData::impl_getIdentifierQuoteString_throw( )
{
// normally this is "
return OUString( "\"");
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( ) throw(SQLException, RuntimeException)
{
OUString aVal;
return aVal;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_isCatalogAtStart_throw( )
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException)
{
//We support create table
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 /*level*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsSchemasInDataManipulation_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException)
{
return sal_True; // should be supported at least
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsSchemasInTableDefinitions_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsCatalogsInTableDefinitions_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatementLength( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxProcedureNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException)
{
// We allow you to select from any table.
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException)
{
//we support insert/update/delete now
@@ -465,384 +465,384 @@ sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeE
//entry to the popup menu. We should avoid them.
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException)
{
// Support added for this.
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 /*fromType*/, sal_Int32 /*toType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( )
{
// Any case may be used
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getURL( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
return m_pConnection->getURL();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getUserName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDriverName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDriverVersion() throw(SQLException, RuntimeException)
{
OUString aValue = OUString::number(1);
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion( ) throw(SQLException, RuntimeException)
{
OUString aValue = OUString::number(0);
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getProcedureTerm( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSchemaTerm( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion( ) throw(RuntimeException)
{
return 1;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation( ) throw(SQLException, RuntimeException)
{
return TransactionIsolation::NONE;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSQLKeywords( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getStringFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInOrderBy( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInSelect( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxUserNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 /*setType*/, sal_Int32 /*concurrency*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
// here follow all methods which return a resultset
// the first methods is an example implementation how to use this resultset
// of course you could implement it on your and you should do this because
// the general way is more memory expensive
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException)
{
// there exists no possibility to get table types so we have to check
@@ -876,7 +876,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLE
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > ODatabaseMetaData::impl_getTypeInfo_throw( )
{
// this returns an empty resultset where the column-names are already set
@@ -916,7 +916,7 @@ Reference< XResultSet > ODatabaseMetaData::impl_getTypeInfo_throw( )
pResultSet->setRows(aRows);
return xResultSet;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& tableNamePattern,
const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
@@ -928,7 +928,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
pResultSet->setRows( getColumnRows( tableNamePattern, columnNamePattern ));
return xResultSet;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
const Any& /*catalog*/, const OUString& /*schemaPattern*/,
const OUString& tableNamePattern, const Sequence< OUString >& /*types*/ ) throw(SQLException, RuntimeException)
@@ -954,7 +954,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
return xResultSet;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& tableNamePattern ) throw(SQLException, RuntimeException)
{
@@ -1013,11 +1013,11 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& /*typeNamePattern*/, const Sequence< sal_Int32 >& /*types*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx b/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx
index 9502919bc569..4aba2596cfd0 100644
--- a/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx
+++ b/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx
@@ -36,13 +36,13 @@ static ::osl::Mutex m_aMetaMutex;
using namespace connectivity;
using namespace connectivity::mork;
-// -------------------------------------------------------------------------
+
MDatabaseMetaDataHelper::MDatabaseMetaDataHelper()
{
SAL_INFO("connectivity.mork", "=> MDatabaseMetaDataHelper::MDatabaseMetaDataHelper()" );
}
-// -------------------------------------------------------------------------
+
MDatabaseMetaDataHelper::~MDatabaseMetaDataHelper()
{
}
diff --git a/connectivity/source/drivers/mork/MDriver.cxx b/connectivity/source/drivers/mork/MDriver.cxx
index 33a22aa90b6b..11619f08487b 100644
--- a/connectivity/source/drivers/mork/MDriver.cxx
+++ b/connectivity/source/drivers/mork/MDriver.cxx
@@ -38,13 +38,13 @@ MorkDriver::MorkDriver(css::uno::Reference< css::uno::XComponentContext > const
}
// static ServiceInfo
-//------------------------------------------------------------------------------
+
OUString MorkDriver::getImplementationName_Static( ) throw(css::uno::RuntimeException)
{
return OUString(MORK_DRIVER_IMPL_NAME);
}
-//------------------------------------------------------------------------------
+
css::uno::Sequence< OUString > MorkDriver::getSupportedServiceNames_Static( ) throw (css::uno::RuntimeException)
{
css::uno::Sequence< OUString > aSNS(1);
diff --git a/connectivity/source/drivers/mork/MNSFolders.cxx b/connectivity/source/drivers/mork/MNSFolders.cxx
index 71a01493d659..5237a9304f23 100644
--- a/connectivity/source/drivers/mork/MNSFolders.cxx
+++ b/connectivity/source/drivers/mork/MNSFolders.cxx
@@ -41,7 +41,7 @@ using namespace ::com::sun::star::mozilla;
namespace
{
- // -------------------------------------------------------------------
+
static OUString lcl_getUserDataDirectory()
{
::osl::Security aSecurity;
@@ -59,7 +59,7 @@ namespace
return aConfigPath + "/";
}
- // -------------------------------------------------------------------
+
const size_t NB_PRODUCTS = 3;
const size_t NB_CANDIDATES = 4;
@@ -87,7 +87,7 @@ namespace
"MOZILLA_THUNDERBIRD_PROFILE_ROOT",
};
- // -------------------------------------------------------------------
+
static OUString lcl_guessProfileRoot( MozillaProductType _product )
{
size_t productIndex = _product - 1;
@@ -144,7 +144,7 @@ namespace
}
}
-// -----------------------------------------------------------------------
+
OUString getRegistryDir(MozillaProductType product)
{
if (product == MozillaProductType_Default)
diff --git a/connectivity/source/drivers/mork/MPreparedStatement.cxx b/connectivity/source/drivers/mork/MPreparedStatement.cxx
index 00bf3ca1ec70..3cbc45d904e2 100644
--- a/connectivity/source/drivers/mork/MPreparedStatement.cxx
+++ b/connectivity/source/drivers/mork/MPreparedStatement.cxx
@@ -51,17 +51,17 @@ OPreparedStatement::OPreparedStatement( OConnection* _pConnection,const OUString
,m_pResultSet()
{
}
-// -----------------------------------------------------------------------------
+
OPreparedStatement::~OPreparedStatement()
{
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::lateInit()
{
if ( eSelect != parseSql( m_sSqlStatement ) )
throw SQLException();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -76,7 +76,7 @@ void SAL_CALL OPreparedStatement::disposing()
}
m_xParamColumns = NULL;
}
-// -----------------------------------------------------------------------------
+
OCommonStatement::StatementType OPreparedStatement::parseSql( const OUString& sql , sal_Bool bAdjusted )
throw ( ::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException )
@@ -98,7 +98,7 @@ OCommonStatement::StatementType OPreparedStatement::parseSql( const OUString& sq
return eStatementType;
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::initializeResultSet( OResultSet* _pResult )
{
OCommonStatement::initializeResultSet( _pResult );
@@ -106,14 +106,14 @@ void OPreparedStatement::initializeResultSet( OResultSet* _pResult )
_pResult->setParameterRow( m_aParameterRow );
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::clearCachedResultSet()
{
OCommonStatement::clearCachedResultSet();
m_pResultSet.clear();
m_xMetaData.clear();
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::cacheResultSet( const ::rtl::Reference< OResultSet >& _pResult )
{
OCommonStatement::cacheResultSet( _pResult );
@@ -121,17 +121,17 @@ void OPreparedStatement::cacheResultSet( const ::rtl::Reference< OResultSet >& _
m_pResultSet = _pResult;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::acquire() throw()
{
OCommonStatement::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::release() throw()
{
OCommonStatement::release();
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL OPreparedStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OCommonStatement::queryInterface(rType);
@@ -139,12 +139,12 @@ Any SAL_CALL OPreparedStatement::queryInterface( const Type & rType ) throw(Runt
aRet = OPreparedStatement_BASE::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL OPreparedStatement::getTypes( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::comphelper::concatSequences(OPreparedStatement_BASE::getTypes(),OCommonStatement::getTypes());
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -165,7 +165,7 @@ Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData( ) thr
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeException)
{
SAL_INFO("connectivity.mork", "=> OPreparedStatement::execute()" );
@@ -175,7 +175,7 @@ sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeExc
Reference< XResultSet> xResult = executeQuery();
return xResult.is();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OPreparedStatement::executeUpdate( ) throw(SQLException, RuntimeException)
{
@@ -184,7 +184,7 @@ sal_Int32 SAL_CALL OPreparedStatement::executeUpdate( ) throw(SQLException, Run
::dbtools::throwFeatureNotImplementedException( "XStatement::executeUpdate", *this );
return 0;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setString( sal_Int32 parameterIndex, const OUString& x ) throw(SQLException, RuntimeException)
{
@@ -194,7 +194,7 @@ void SAL_CALL OPreparedStatement::setString( sal_Int32 parameterIndex, const OUS
OSL_TRACE("prepStmt::setString( %s )", OUtoCStr( x ) );
setParameter( parameterIndex, x );
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OPreparedStatement::getConnection( ) throw(SQLException, RuntimeException)
{
@@ -203,7 +203,7 @@ Reference< XConnection > SAL_CALL OPreparedStatement::getConnection( ) throw(SQ
return (Reference< XConnection >)m_pConnection;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery( ) throw(SQLException, RuntimeException)
{
@@ -217,62 +217,62 @@ Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery( ) throw(SQLE
// stuff again. Just execute.
return impl_executeCurrentQuery();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBoolean( sal_Int32 /*parameterIndex*/, sal_Bool /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setBoolean", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setByte( sal_Int32 /*parameterIndex*/, sal_Int8 /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setByte", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setDate( sal_Int32 /*parameterIndex*/, const Date& /*aData*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setDate", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setTime( sal_Int32 /*parameterIndex*/, const Time& /*aVal*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setTime", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setTimestamp( sal_Int32 /*parameterIndex*/, const DateTime& /*aVal*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setTimestamp", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setDouble( sal_Int32 /*parameterIndex*/, double /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setDouble", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setFloat( sal_Int32 /*parameterIndex*/, float /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setFloat", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setInt( sal_Int32 /*parameterIndex*/, sal_Int32 /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setInt", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setLong( sal_Int32 /*parameterIndex*/, sal_Int64 /*aVal*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setLong", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setNull( sal_Int32 parameterIndex, sal_Int32 /*sqlType*/ ) throw(SQLException, RuntimeException)
{
@@ -283,79 +283,79 @@ void SAL_CALL OPreparedStatement::setNull( sal_Int32 parameterIndex, sal_Int32 /
(m_aParameterRow->get())[parameterIndex].setNull();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setClob( sal_Int32 /*parameterIndex*/, const Reference< XClob >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setClob", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBlob( sal_Int32 /*parameterIndex*/, const Reference< XBlob >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setBlob", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setArray( sal_Int32 /*parameterIndex*/, const Reference< XArray >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setArray", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setRef( sal_Int32 /*parameterIndex*/, const Reference< XRef >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setRef", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 /*parameterIndex*/, const Any& /*x*/, sal_Int32 /*sqlType*/, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setObjectWithInfo", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObjectNull( sal_Int32 parameterIndex, sal_Int32 sqlType, const OUString& /*typeName*/ ) throw(SQLException, RuntimeException)
{
setNull(parameterIndex,sqlType);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObject( sal_Int32 parameterIndex, const Any& x ) throw(SQLException, RuntimeException)
{
::dbtools::implSetObject(this,parameterIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setShort( sal_Int32 /*parameterIndex*/, sal_Int16 /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setShort", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBytes( sal_Int32 /*parameterIndex*/, const Sequence< sal_Int8 >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setBytes", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setCharacterStream( sal_Int32 /*parameterIndex*/, const Reference< ::com::sun::star::io::XInputStream >& /*x*/, sal_Int32 /*length*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setCharacterStream", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBinaryStream( sal_Int32 /*parameterIndex*/, const Reference< ::com::sun::star::io::XInputStream >& /*x*/, sal_Int32 /*length*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setBinaryStream", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::clearParameters( ) throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
{
switch(nHandle)
@@ -373,7 +373,7 @@ void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,cons
}
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::checkAndResizeParameters(sal_Int32 parameterIndex)
{
::connectivity::checkDisposed(OCommonStatement_IBASE::rBHelper.bDisposed);
@@ -386,7 +386,7 @@ void OPreparedStatement::checkAndResizeParameters(sal_Int32 parameterIndex)
if ((sal_Int32)(m_aParameterRow->get()).size() <= parameterIndex)
(m_aParameterRow->get()).resize(parameterIndex+1);
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::setParameter(sal_Int32 parameterIndex, const
ORowSetValue& x)
{
@@ -397,7 +397,7 @@ ORowSetValue& x)
(m_aParameterRow->get())[parameterIndex] = x;
}
-//------------------------------------------------------------------
+
size_t OPreparedStatement::AddParameter(OSQLParseNode * pParameter, const Reference<XPropertySet>& _xCol)
{
OSL_UNUSED( pParameter );
@@ -449,7 +449,7 @@ size_t OPreparedStatement::AddParameter(OSQLParseNode * pParameter, const Refere
m_xParamColumns->get().push_back(xParaColumn);
return nParameter;
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::describeColumn(OSQLParseNode*
_pParameter,OSQLParseNode* _pNode,const OSQLTable& _xTable)
{
@@ -469,7 +469,7 @@ _pParameter,OSQLParseNode* _pNode,const OSQLTable& _xTable)
// else
// AddParameter(_pParameter,xProp);
}
-// -------------------------------------------------------------------------
+
void OPreparedStatement::describeParameter()
{
::std::vector< OSQLParseNode*> aParseNodes;
@@ -491,7 +491,7 @@ aParseNodes.begin();
}
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::scanParameter(OSQLParseNode* pParseNode,::std::vector< OSQLParseNode*>& _rParaNodes)
{
OSL_ENSURE(pParseNode != NULL,"OResultSet: internal error: invalid ParseNode");
@@ -511,22 +511,22 @@ void OPreparedStatement::scanParameter(OSQLParseNode* pParseNode,::std::vector<
for (sal_uInt32 i = 0; i < pParseNode->count(); i++)
scanParameter(pParseNode->getChild(i),_rParaNodes);
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > SAL_CALL OPreparedStatement::getResultSet( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return NULL;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OPreparedStatement::getUpdateCount( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return 0;
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL OPreparedStatement::getMoreResults( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return sal_False;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mork/MQueryHelper.cxx b/connectivity/source/drivers/mork/MQueryHelper.cxx
index 05dd1219f6fc..8f09d46aacdb 100644
--- a/connectivity/source/drivers/mork/MQueryHelper.cxx
+++ b/connectivity/source/drivers/mork/MQueryHelper.cxx
@@ -92,7 +92,7 @@ MQueryHelper::~MQueryHelper()
OSL_TRACE("OUT MQueryHelper::~MQueryHelper()");
}
-// -------------------------------------------------------------------------
+
void MQueryHelper::setAddressbook(OUString &ab)
{
SAL_INFO("connectivity.mork", "MQueryHelper::setAddressbook()");
@@ -103,7 +103,7 @@ void MQueryHelper::setAddressbook(OUString &ab)
OSL_TRACE("\tOUT MQuery::setAddressbook()");
}
-// -------------------------------------------------------------------------
+
void MQueryHelper::setExpression( MQueryExpression &_expr )
{
SAL_INFO("connectivity.mork", "MQueryHelper::setExpression()");
@@ -164,7 +164,7 @@ sal_Int32 MQueryHelper::getResultCount() const
return result;
}
-// -------------------------------------------------------------------------
+
sal_Bool MQueryHelper::queryComplete() const
{
diff --git a/connectivity/source/drivers/mork/MResultSet.cxx b/connectivity/source/drivers/mork/MResultSet.cxx
index 7baac6653c6e..d2c4b1c610af 100644
--- a/connectivity/source/drivers/mork/MResultSet.cxx
+++ b/connectivity/source/drivers/mork/MResultSet.cxx
@@ -61,13 +61,13 @@ using namespace com::sun::star::container;
using namespace com::sun::star::io;
using namespace com::sun::star::util;
-//------------------------------------------------------------------------------
+
// IMPLEMENT_SERVICE_INFO(OResultSet,"com.sun.star.sdbcx.OResultSet","com.sun.star.sdbc.ResultSet");
OUString SAL_CALL OResultSet::getImplementationName( ) throw ( RuntimeException) \
{
return OUString("com.sun.star.sdbcx.mork.ResultSet");
}
-// -------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(2);
@@ -81,7 +81,7 @@ sal_Bool SAL_CALL OResultSet::supportsService( const OUString& _rServiceName ) t
return cppu::supportsService(this, _rServiceName);
}
-// -------------------------------------------------------------------------
+
OResultSet::OResultSet(OCommonStatement* pStmt, const ::boost::shared_ptr< connectivity::OSQLParseTreeIterator >& _pSQLIterator )
: OResultSet_BASE(m_aMutex)
,OPropertySetHelper(OResultSet_BASE::rBHelper)
@@ -111,12 +111,12 @@ OResultSet::OResultSet(OCommonStatement* pStmt, const ::boost::shared_ptr< conne
{
//m_aQuery.setMaxNrOfReturns(pStmt->getOwnConnection()->getMaxResultRecords());
}
-// -------------------------------------------------------------------------
+
OResultSet::~OResultSet()
{
}
-// -------------------------------------------------------------------------
+
void OResultSet::disposing(void)
{
OPropertySetHelper::disposing();
@@ -135,7 +135,7 @@ void OResultSet::disposing(void)
m_pTable = NULL;
}
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OPropertySetHelper::queryInterface(rType);
@@ -143,7 +143,7 @@ Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeExcep
aRet = OResultSet_BASE::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OResultSet::getTypes( ) throw( RuntimeException)
{
OTypeCollection aTypes( ::getCppuType( (const Reference< ::com::sun::star::beans::XMultiPropertySet > *)0 ),
@@ -152,7 +152,7 @@ Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeExcep
return ::comphelper::concatSequences(aTypes.getTypes(),OResultSet_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void OResultSet::methodEntry()
{
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -163,7 +163,7 @@ void OResultSet::methodEntry()
}
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -183,60 +183,60 @@ sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName ) throw(SQ
assert(false);
return 0; // Never reached
}
-// -------------------------------------------------------------------------
+
Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::getBoolean( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
m_bWasNull = sal_True;
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL OResultSet::getByte( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return 0;
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return Sequence< sal_Int8 >();
}
-// -------------------------------------------------------------------------
+
Date SAL_CALL OResultSet::getDate( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return Date();
}
-// -------------------------------------------------------------------------
+
double SAL_CALL OResultSet::getDouble( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return 0.0;
}
-// -------------------------------------------------------------------------
+
float SAL_CALL OResultSet::getFloat( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::getInt( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
@@ -244,7 +244,7 @@ sal_Int32 SAL_CALL OResultSet::getInt( sal_Int32 /*columnIndex*/ ) throw(SQLExce
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::getRow( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -252,14 +252,14 @@ sal_Int32 SAL_CALL OResultSet::getRow( ) throw(SQLException, RuntimeException)
OSL_TRACE("In/Out: OResultSet::getRow, return = %u", m_nRowPos );
return m_nRowPos;
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL OResultSet::getLong( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return sal_Int64();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -270,49 +270,49 @@ Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLEx
m_pSQLIterator->getSelectColumns(), m_pSQLIterator->getTables().begin()->first ,m_pTable,determineReadOnly());
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL OResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL OResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL OResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::getObject( sal_Int32 /*columnIndex*/, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
return Any();
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL OResultSet::getShort( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
void OResultSet::checkIndex(sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException)
{
if(columnIndex <= 0 || columnIndex > (sal_Int32)m_xColumns->get().size())
::dbtools::throwInvalidIndexException(*this);
}
-// -------------------------------------------------------------------------
+
sal_uInt32 OResultSet::currentRowCount()
{
if ( m_bIsAlwaysFalseQuery )
@@ -322,7 +322,7 @@ sal_uInt32 OResultSet::currentRowCount()
return m_aQueryHelper.getResultCount();
}
-// -------------------------------------------------------------------------
+
sal_Bool OResultSet::fetchCurrentRow( ) throw(SQLException, RuntimeException)
{
@@ -330,7 +330,7 @@ sal_Bool OResultSet::fetchCurrentRow( ) throw(SQLException, RuntimeException)
return fetchRow(getCurrentCardNumber());
}
-// -------------------------------------------------------------------------
+
sal_Bool OResultSet::pushCard(sal_uInt32 /*cardNumber*/) throw(SQLException, RuntimeException)
{
SAL_INFO("connectivity.mork", "=> OResultSet::pushCard()" );
@@ -360,7 +360,7 @@ sal_Bool OResultSet::pushCard(sal_uInt32 /*cardNumber*/) throw(SQLException, Run
return sal_True;
*/
}
-// -------------------------------------------------------------------------
+
sal_Bool OResultSet::fetchRow(sal_Int32 cardNumber,sal_Bool bForceReload) throw(SQLException, RuntimeException)
{
SAL_INFO("connectivity.mork", "=> OResultSet::fetchRow()" );
@@ -404,7 +404,7 @@ sal_Bool OResultSet::fetchRow(sal_Int32 cardNumber,sal_Bool bForceReload) throw(
return sal_True;
}
-// -------------------------------------------------------------------------
+
const ORowSetValue& OResultSet::getValue(sal_Int32 cardNumber, sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -419,7 +419,7 @@ const ORowSetValue& OResultSet::getValue(sal_Int32 cardNumber, sal_Int32 columnI
return (m_aRow->get())[columnIndex];
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSet::getString( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
@@ -434,14 +434,14 @@ OUString SAL_CALL OResultSet::getString( sal_Int32 columnIndex ) throw(SQLExcept
return getValue(getCurrentCardNumber(), mapColumn( columnIndex ) );
}
-// -------------------------------------------------------------------------
+
Time SAL_CALL OResultSet::getTime( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return Time();
}
-// -------------------------------------------------------------------------
+
DateTime SAL_CALL OResultSet::getTimestamp( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
@@ -449,7 +449,7 @@ DateTime SAL_CALL OResultSet::getTimestamp( sal_Int32 /*columnIndex*/ ) throw(SQ
ResultSetEntryGuard aGuard( *this );
return DateTime();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeException)
{
@@ -460,7 +460,7 @@ sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeExcep
OSL_TRACE("In/Out: OResultSet::isBeforeFirst" );
return( m_nRowPos < 1 );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isAfterLast( ) throw(SQLException, RuntimeException)
{
SAL_WARN("connectivity.mork", "OResultSet::isAfterLast() NOT IMPLEMENTED!");
@@ -470,7 +470,7 @@ sal_Bool SAL_CALL OResultSet::isAfterLast( ) throw(SQLException, RuntimeExcepti
// return sal_True;
return m_nRowPos > currentRowCount() && m_aQueryHelper.queryComplete();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isFirst( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -478,7 +478,7 @@ sal_Bool SAL_CALL OResultSet::isFirst( ) throw(SQLException, RuntimeException)
OSL_TRACE("In/Out: OResultSet::isFirst" );
return m_nRowPos == 1;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isLast( ) throw(SQLException, RuntimeException)
{
SAL_WARN("connectivity.mork", "OResultSet::isLast() NOT IMPLEMENTED!");
@@ -488,7 +488,7 @@ sal_Bool SAL_CALL OResultSet::isLast( ) throw(SQLException, RuntimeException)
// return sal_True;
return m_nRowPos == currentRowCount() && m_aQueryHelper.queryComplete();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -498,7 +498,7 @@ void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
if ( first() )
previous();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -507,47 +507,47 @@ void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException)
if(last())
next();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::close() throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::close" );
dispose();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::first( ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::first" );
return seekRow( FIRST_POS );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::last( ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::last" );
return seekRow( LAST_POS );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::absolute( sal_Int32 row ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::absolute" );
return seekRow( ABSOLUTE_POS, row );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::relative( sal_Int32 row ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::relative" );
return seekRow( RELATIVE_POS, row );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::previous( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
OSL_TRACE("In/Out: OResultSet::previous" );
return seekRow( PRIOR_POS );
}
-// -------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL OResultSet::getStatement( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -555,7 +555,7 @@ Reference< XInterface > SAL_CALL OResultSet::getStatement( ) throw(SQLException
OSL_TRACE("In/Out: OResultSet::getStatement" );
return m_xStatement;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowDeleted( ) throw(SQLException, RuntimeException)
{
@@ -564,7 +564,7 @@ sal_Bool SAL_CALL OResultSet::rowDeleted( ) throw(SQLException, RuntimeExceptio
OSL_TRACE("In/Out: OResultSet::rowDeleted, m_RowStates=%u",m_RowStates );
return sal_True;//return ((m_RowStates & RowStates_Deleted) == RowStates_Deleted) ;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowInserted( ) throw(SQLException, RuntimeException)
{
SAL_WARN("connectivity.mork", "OResultSet::rowInserted() NOT IMPLEMENTED!");
@@ -572,7 +572,7 @@ sal_Bool SAL_CALL OResultSet::rowInserted( ) throw(SQLException, RuntimeExcepti
OSL_TRACE("In/Out: OResultSet::rowInserted,m_RowStates=%u",m_RowStates );
return sal_True;//return ((m_RowStates & RowStates_Inserted) == RowStates_Inserted);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowUpdated( ) throw(SQLException, RuntimeException)
{
SAL_WARN("connectivity.mork", "OResultSet::rowUpdated() NOT IMPLEMENTED!");
@@ -580,13 +580,13 @@ sal_Bool SAL_CALL OResultSet::rowUpdated( ) throw(SQLException, RuntimeExceptio
OSL_TRACE("In/Out: OResultSet::rowUpdated,m_RowStates=%u",m_RowStates );
return sal_True;// return ((m_RowStates & RowStates_Updated) == RowStates_Updated) ;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::next( ) throw(SQLException, RuntimeException)
{
return seekRow( NEXT_POS );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::wasNull( ) throw(SQLException, RuntimeException)
{
@@ -594,7 +594,7 @@ sal_Bool SAL_CALL OResultSet::wasNull( ) throw(SQLException, RuntimeException)
return m_bWasNull;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::cancel( ) throw(RuntimeException)
{
@@ -602,18 +602,18 @@ void SAL_CALL OResultSet::cancel( ) throw(RuntimeException)
OSL_TRACE("In/Out: OResultSet::cancel" );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::clearWarnings( ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::clearWarnings" );
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::getWarnings( ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::getWarnings" );
return Any();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::refreshRow( ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::refreshRow" );
@@ -622,7 +622,7 @@ void SAL_CALL OResultSet::refreshRow( ) throw(SQLException, RuntimeException)
m_pStatement->getOwnConnection()->throwSQLException( STR_ERROR_REFRESH_ROW, *this );
}
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper* OResultSet::createArrayHelper( ) const
{
Sequence< Property > aProps(5);
@@ -636,12 +636,12 @@ IPropertyArrayHelper* OResultSet::createArrayHelper( ) const
return new OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper & OResultSet::getInfoHelper()
{
return *const_cast<OResultSet*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool OResultSet::convertFastPropertyValue(
Any & /*rConvertedValue*/,
Any & /*rOldValue*/,
@@ -663,7 +663,7 @@ sal_Bool OResultSet::convertFastPropertyValue(
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
void OResultSet::setFastPropertyValue_NoBroadcast(
sal_Int32 nHandle,
const Any& /*rValue*/
@@ -685,7 +685,7 @@ void OResultSet::setFastPropertyValue_NoBroadcast(
;
}
}
-// -------------------------------------------------------------------------
+
void OResultSet::getFastPropertyValue(
Any& rValue,
sal_Int32 nHandle
@@ -711,23 +711,23 @@ void OResultSet::getFastPropertyValue(
break;
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::acquire() throw()
{
OResultSet_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::release() throw()
{
OResultSet_BASE::release();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -------------------------------------------------------------------------
+
void OResultSet::parseParameter( const OSQLParseNode* pNode, OUString& rMatchString )
{
OSL_ENSURE(pNode->count() > 0,"Error parsing parameter in Parse Tree");
@@ -1051,7 +1051,7 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT
}
}
-// -----------------------------------------------------------------------------
+
void OResultSet::fillRowData()
throw( ::com::sun::star::sdbc::SQLException )
@@ -1123,7 +1123,7 @@ void OResultSet::fillRowData()
#endif
}
-// -----------------------------------------------------------------------------
+
static sal_Bool matchRow( OValueRow& row1, OValueRow& row2 )
{
OValueVector::Vector::iterator row1Iter = row1->get().begin();
@@ -1165,7 +1165,7 @@ sal_Int32 OResultSet::getRowForCardNumber(sal_Int32 nCardNum)
return 0;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::executeQuery() throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException)
{
@@ -1335,7 +1335,7 @@ void SAL_CALL OResultSet::executeQuery() throw( ::com::sun::star::sdbc::SQLExcep
}
}
-// -----------------------------------------------------------------------------
+
void OResultSet::setBoundedColumns(const OValueRow& _rRow,
@@ -1418,7 +1418,7 @@ void OResultSet::setBoundedColumns(const OValueRow& _rRow,
}
-// -----------------------------------------------------------------------------
+
sal_Bool OResultSet::isCount() const
{
return (m_pParseTree &&
@@ -1430,7 +1430,7 @@ sal_Bool OResultSet::isCount() const
);
}
-// -----------------------------------------------------------------------------
+
//
// Check for valid row in m_aQuery
//
@@ -1489,7 +1489,7 @@ sal_Int32 OResultSet::deletedCount()
return m_CurrentRowCount - static_cast<sal_Int32>(m_pKeySet->get().size());
}
-// -----------------------------------------------------------------------------
+
sal_Bool OResultSet::seekRow( eRowPosition pos, sal_Int32 nOffset )
{
SAL_INFO("connectivity.mork", "=> OResultSet::seekRow()" );
@@ -1559,7 +1559,7 @@ sal_Bool OResultSet::seekRow( eRowPosition pos, sal_Int32 nOffset )
fetchCurrentRow();
return sal_True;
}
-// -----------------------------------------------------------------------------
+
void OResultSet::setColumnMapping(const ::std::vector<sal_Int32>& _aColumnMapping)
{
m_aColMapping = _aColumnMapping;
@@ -1568,7 +1568,7 @@ void OResultSet::setColumnMapping(const ::std::vector<sal_Int32>& _aColumnMappin
OSL_TRACE("Set Mapped: %d -> %d", i, m_aColMapping[i] );
#endif
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Any OResultSet::getBookmark( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -1677,7 +1677,7 @@ void OResultSet::updateValue(sal_Int32 columnIndex ,const ORowSetValue& x) throw
m_nUpdatedRow = getCurrentCardNumber();
// m_RowStates = m_RowStates | RowStates_Updated;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateNull( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -1695,72 +1695,72 @@ void SAL_CALL OResultSet::updateNull( sal_Int32 columnIndex ) throw(SQLException
m_nUpdatedRow = getCurrentCardNumber();
// m_RowStates = m_RowStates | RowStates_Updated;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBoolean( sal_Int32 columnIndex, sal_Bool x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex, static_cast<bool>(x));
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateByte( sal_Int32 columnIndex, sal_Int8 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateShort( sal_Int32 columnIndex, sal_Int16 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateInt( sal_Int32 columnIndex, sal_Int32 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateLong( sal_Int32 /*columnIndex*/, sal_Int64 /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRowUpdate::updateLong", *this );
}
-// -----------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateFloat( sal_Int32 columnIndex, float x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateDouble( sal_Int32 columnIndex, double x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateString( sal_Int32 columnIndex, const OUString& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBytes( sal_Int32 columnIndex, const Sequence< sal_Int8 >& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateDate( sal_Int32 columnIndex, const ::com::sun::star::util::Date& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateTime( sal_Int32 columnIndex, const ::com::sun::star::util::Time& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateTimestamp( sal_Int32 columnIndex, const ::com::sun::star::util::DateTime& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBinaryStream( sal_Int32 columnIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
@@ -1773,12 +1773,12 @@ void SAL_CALL OResultSet::updateBinaryStream( sal_Int32 columnIndex, const Refer
x->readBytes(aSeq,length);
updateValue(columnIndex,aSeq);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateCharacterStream( sal_Int32 columnIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
updateBinaryStream(columnIndex,x,length);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateObject( sal_Int32 columnIndex, const Any& x ) throw(SQLException, RuntimeException)
{
if (!::dbtools::implUpdateObject(this, columnIndex, x))
@@ -1790,7 +1790,7 @@ void SAL_CALL OResultSet::updateObject( sal_Int32 columnIndex, const Any& x ) th
::dbtools::throwGenericSQLException(sError,*this);
} // if (!::dbtools::implUpdateObject(this, columnIndex, x))
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateNumericObject( sal_Int32 columnIndex, const Any& x, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException)
{
@@ -1805,7 +1805,7 @@ void SAL_CALL OResultSet::updateNumericObject( sal_Int32 columnIndex, const Any&
}
// XResultSetUpdate
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::insertRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -1817,27 +1817,27 @@ void SAL_CALL OResultSet::insertRow( ) throw(::com::sun::star::sdbc::SQLExcepti
//m_aQueryHelper.setRowStates(getCurrentCardNumber(),m_RowStates);
OSL_TRACE("insertRow out, m_nRowPos = %u", m_nRowPos );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
OSL_FAIL( "OResultSet::updateRow( ) not implemented" );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::deleteRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
OSL_FAIL( "OResultSet::deleteRow( ) not implemented" );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::cancelRowUpdates( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
OSL_FAIL( "OResultSet::cancelRowUpdates( ) not implemented" );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::moveToInsertRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
OSL_FAIL( "OResultSet::moveToInsertRow( ) not implemented" );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::moveToCurrentRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
diff --git a/connectivity/source/drivers/mork/MResultSetMetaData.cxx b/connectivity/source/drivers/mork/MResultSetMetaData.cxx
index 2e7763227c12..4aa8faec1542 100644
--- a/connectivity/source/drivers/mork/MResultSetMetaData.cxx
+++ b/connectivity/source/drivers/mork/MResultSetMetaData.cxx
@@ -34,48 +34,48 @@ using namespace com::sun::star::beans;
using namespace ::dbtools;
using namespace ::comphelper;
-// -------------------------------------------------------------------------
+
OResultSetMetaData::~OResultSetMetaData()
{
m_xColumns = NULL;
}
-// -----------------------------------------------------------------------------
+
void OResultSetMetaData::checkColumnIndex(sal_Int32 column) throw(SQLException, RuntimeException)
{
if(column <= 0 || column > (sal_Int32)(sal_Int32)m_xColumns->get().size())
throwInvalidIndexException(*this);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return getPrecision(column);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnType( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return DataType::VARCHAR; // at the moment there exists only this type
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount( ) throw(SQLException, RuntimeException)
{
return static_cast<sal_Int32>((m_xColumns->get()).size());
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getSchemaName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -93,70 +93,70 @@ OUString SAL_CALL OResultSetMetaData::getColumnName( sal_Int32 column ) throw(SQ
}
return sColumnName;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getTableName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return m_aTableName;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getCatalogName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnTypeName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
checkColumnIndex(column);
return getString((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPENAME)));
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnLabel( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return getColumnName(column);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnServiceName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLException, RuntimeException)
{
checkColumnIndex(column);
return getBOOL((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISCURRENCY)));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isSigned( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQLException, RuntimeException)
{
checkColumnIndex(column);
return getINT32((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PRECISION)));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getScale( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
checkColumnIndex(column);
return getINT32((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_SCALE)));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::isNullable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
checkColumnIndex(column);
return getINT32((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISNULLABLE)));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isSearchable( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
@@ -168,7 +168,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isSearchable( sal_Int32 /*column*/ ) throw
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isReadOnly( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -178,17 +178,17 @@ sal_Bool SAL_CALL OResultSetMetaData::isReadOnly( sal_Int32 column ) throw(SQLEx
return m_bReadOnly || bReadOnly || m_pTable->isReadOnly();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return !isReadOnly(column);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return !isReadOnly(column);
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mork/MStatement.cxx b/connectivity/source/drivers/mork/MStatement.cxx
index 0d719b591efb..403ae0b648b7 100644
--- a/connectivity/source/drivers/mork/MStatement.cxx
+++ b/connectivity/source/drivers/mork/MStatement.cxx
@@ -59,7 +59,7 @@ static ::osl::Mutex m_ThreadMutex;
using namespace ::comphelper;
using namespace connectivity::mork;
using namespace connectivity;
-//------------------------------------------------------------------------------
+
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
@@ -67,7 +67,7 @@ using namespace com::sun::star::sdbc;
using namespace com::sun::star::container;
using namespace com::sun::star::io;
using namespace com::sun::star::util;
-//------------------------------------------------------------------------------
+
OStatement::OStatement( OConnection* _pConnection) : OCommonStatement( _pConnection)
{
@@ -90,12 +90,12 @@ OCommonStatement::OCommonStatement(OConnection* _pConnection )
m_pConnection->acquire();
}
-// -----------------------------------------------------------------------------
+
OCommonStatement::~OCommonStatement()
{
}
-//------------------------------------------------------------------------------
+
void OCommonStatement::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -112,7 +112,7 @@ void OCommonStatement::disposing()
dispose_ChildImpl();
OCommonStatement_IBASE::disposing();
}
-//-----------------------------------------------------------------------------
+
Any SAL_CALL OCommonStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OCommonStatement_IBASE::queryInterface(rType);
@@ -120,7 +120,7 @@ Any SAL_CALL OCommonStatement::queryInterface( const Type & rType ) throw(Runtim
aRet = OPropertySetHelper::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OCommonStatement::getTypes( ) throw(RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const Reference< XMultiPropertySet > *)0 ),
@@ -129,7 +129,7 @@ Sequence< Type > SAL_CALL OCommonStatement::getTypes( ) throw(RuntimeException)
return ::comphelper::concatSequences(aTypes.getTypes(),OCommonStatement_IBASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OCommonStatement::close( ) throw(SQLException, RuntimeException)
{
{
@@ -140,7 +140,7 @@ void SAL_CALL OCommonStatement::close( ) throw(SQLException, RuntimeException)
}
-// -------------------------------------------------------------------------
+
void OCommonStatement::createTable( ) throw ( SQLException, RuntimeException )
{
SAL_INFO("connectivity.mork", "=> OCommonStatement::createTable()" );
@@ -189,7 +189,7 @@ void OCommonStatement::createTable( ) throw ( SQLException, RuntimeException )
getOwnConnection()->throwSQLException( STR_QUERY_TOO_COMPLEX, *this );
*/
}
-// -------------------------------------------------------------------------
+
OCommonStatement::StatementType OCommonStatement::parseSql( const OUString& sql , sal_Bool bAdjusted)
throw ( SQLException, RuntimeException )
{
@@ -266,7 +266,7 @@ OCommonStatement::StatementType OCommonStatement::parseSql( const OUString& sql
return eSelect;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > OCommonStatement::impl_executeCurrentQuery()
{
SAL_INFO("connectivity.mork", "=> OCommonStatement::impl_executeCurrentQuery()" );
@@ -283,7 +283,7 @@ Reference< XResultSet > OCommonStatement::impl_executeCurrentQuery()
}
-// -------------------------------------------------------------------------
+
void OCommonStatement::initializeResultSet( OResultSet* _pResult )
{
SAL_INFO("connectivity.mork", "=> OCommonStatement::initializeResultSet()" );
@@ -297,7 +297,7 @@ void OCommonStatement::initializeResultSet( OResultSet* _pResult )
_pResult->setTable(m_pTable);
}
-// -------------------------------------------------------------------------
+
void OCommonStatement::clearCachedResultSet()
{
SAL_INFO("connectivity.mork", "=> OCommonStatement::clearCachedResultSet()" );
@@ -311,14 +311,14 @@ void OCommonStatement::clearCachedResultSet()
m_xResultSet.clear();
}
-// -------------------------------------------------------------------------
+
void OCommonStatement::cacheResultSet( const ::rtl::Reference< OResultSet >& _pResult )
{
ENSURE_OR_THROW( _pResult.is(), "invalid result set" );
m_xResultSet = Reference< XResultSet >( _pResult.get() );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OCommonStatement::execute( const OUString& sql ) throw(SQLException, RuntimeException)
{
SAL_INFO("connectivity.mork", "=> OCommonStatement::execute()" );
@@ -332,7 +332,7 @@ sal_Bool SAL_CALL OCommonStatement::execute( const OUString& sql ) throw(SQLExce
// returns true when a resultset is available
return xRS.is();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery( const OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -350,7 +350,7 @@ Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery( const OUString&
return impl_executeCurrentQuery();
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OCommonStatement::getConnection( ) throw(SQLException, RuntimeException)
{
@@ -362,7 +362,7 @@ Reference< XConnection > SAL_CALL OCommonStatement::getConnection( ) throw(SQLE
// just return our connection here
return (Reference< XConnection >)m_pConnection;
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
SAL_INFO("connectivity.mork", "=> OCommonStatement::queryInterface()" );
@@ -372,14 +372,14 @@ Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeExcep
aRet = OCommonStatement::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OCommonStatement::executeUpdate( const OUString& /*sql*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XStatement::executeUpdate", *this );
return 0;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OCommonStatement::getWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -387,9 +387,9 @@ Any SAL_CALL OCommonStatement::getWarnings( ) throw(SQLException, RuntimeExcept
return makeAny(m_aLastWarning);
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
void SAL_CALL OCommonStatement::clearWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -398,7 +398,7 @@ void SAL_CALL OCommonStatement::clearWarnings( ) throw(SQLException, RuntimeExc
m_aLastWarning = SQLWarning();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OCommonStatement::createArrayHelper( ) const
{
// this properties are define by the service resultset
@@ -419,12 +419,12 @@ void SAL_CALL OCommonStatement::clearWarnings( ) throw(SQLException, RuntimeExc
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OCommonStatement::getInfoHelper()
{
return *const_cast<OCommonStatement*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool OCommonStatement::convertFastPropertyValue(
Any & /*rConvertedValue*/,
Any & /*rOldValue*/,
@@ -436,7 +436,7 @@ sal_Bool OCommonStatement::convertFastPropertyValue(
// here we have to try to convert
return bConverted;
}
-// -------------------------------------------------------------------------
+
void OCommonStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& /*rValue*/) throw (Exception)
{
// set the value to whatever is necessary
@@ -454,7 +454,7 @@ void OCommonStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const
;
}
}
-// -------------------------------------------------------------------------
+
void OCommonStatement::getFastPropertyValue(Any& /*rValue*/,sal_Int32 nHandle) const
{
switch(nHandle)
@@ -471,34 +471,34 @@ void OCommonStatement::getFastPropertyValue(Any& /*rValue*/,sal_Int32 nHandle) c
;
}
}
-// -------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbcx.OStatement","com.sun.star.sdbc.Statement");
-// -----------------------------------------------------------------------------
+
void SAL_CALL OCommonStatement::acquire() throw()
{
OCommonStatement_IBASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OCommonStatement::release() throw()
{
relase_ChildImpl();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement::acquire() throw()
{
OCommonStatement::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement::release() throw()
{
OCommonStatement::release();
}
-// -----------------------------------------------------------------------------
+
Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OCommonStatement::getPropertySetInfo( ) throw(RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
void OCommonStatement::createColumnMapping()
{
SAL_INFO("connectivity.mork", "=> OCommonStatement::createColumnMapping()" );
@@ -523,7 +523,7 @@ void OCommonStatement::createColumnMapping()
OSL_TRACE("AFTER Mapped: %d -> %d", i, m_aColMapping[i] );
#endif
}
-// -----------------------------------------------------------------------------
+
void OCommonStatement::analyseSQL()
{
@@ -549,7 +549,7 @@ void OCommonStatement::analyseSQL()
}
}
}
-//------------------------------------------------------------------
+
void OCommonStatement::setOrderbyColumn( OSQLParseNode* pColumnRef,
OSQLParseNode* pAscendingDescending)
{
@@ -576,6 +576,6 @@ void OCommonStatement::setOrderbyColumn( OSQLParseNode* pColumnRef,
// Ascending or Descending?
m_aOrderbyAscending.push_back((SQL_ISTOKEN(pAscendingDescending,DESC)) ? SQL_DESC : SQL_ASC);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mork/MTable.cxx b/connectivity/source/drivers/mork/MTable.cxx
index e90dc3cd0b85..c28d25346fc6 100644
--- a/connectivity/source/drivers/mork/MTable.cxx
+++ b/connectivity/source/drivers/mork/MTable.cxx
@@ -46,7 +46,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
OTable::OTable( sdbcx::OCollection* _pTables, OConnection* _pConnection,
const OUString& _Name, const OUString& _Type, const OUString& _Description )
:OTable_Base(_pTables, _pConnection, sal_True, _Name, _Type, _Description )
@@ -55,25 +55,25 @@ OTable::OTable( sdbcx::OCollection* _pTables, OConnection* _pConnection,
construct();
}
-//--------------------------------------------------------------------------
+
sdbcx::OCollection* OTable::createColumns( const TStringVector& _rNames )
{
return new OColumns( this, m_aMutex, _rNames );
}
-//--------------------------------------------------------------------------
+
sdbcx::OCollection* OTable::createKeys(const TStringVector& _rNames)
{
return new OKeysHelper( this, m_aMutex, _rNames );
}
-//--------------------------------------------------------------------------
+
sdbcx::OCollection* OTable::createIndexes(const TStringVector& _rNames)
{
return new OIndexesHelper( this, m_aMutex, _rNames );
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/mork/MTables.cxx b/connectivity/source/drivers/mork/MTables.cxx
index 546103ec4c40..19a3f1e25260 100644
--- a/connectivity/source/drivers/mork/MTables.cxx
+++ b/connectivity/source/drivers/mork/MTables.cxx
@@ -70,17 +70,17 @@ sdbcx::ObjectType OTables::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void OTables::impl_refresh( ) throw(RuntimeException)
{
static_cast<OCatalog&>(m_rParent).refreshTables();
}
-// -------------------------------------------------------------------------
+
void OTables::disposing(void)
{
m_xMetaData.clear();
OCollection::disposing();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mozab/MCatalog.cxx b/connectivity/source/drivers/mozab/MCatalog.cxx
index a4a288d1a70c..8fae349bfe70 100644
--- a/connectivity/source/drivers/mozab/MCatalog.cxx
+++ b/connectivity/source/drivers/mozab/MCatalog.cxx
@@ -24,7 +24,7 @@
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <cppuhelper/interfacecontainer.h>
-// -------------------------------------------------------------------------
+
using namespace connectivity::mozab;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
@@ -34,7 +34,7 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
using namespace ::cppu;
-// -------------------------------------------------------------------------
+
OCatalog::OCatalog(OConnection* _pCon) : connectivity::sdbcx::OCatalog(_pCon)
,m_pConnection(_pCon)
,m_xMetaData(m_pConnection->getMetaData( ))
@@ -46,7 +46,7 @@ OCatalog::OCatalog(OConnection* _pCon) : connectivity::sdbcx::OCatalog(_pCon)
// refreshUsers();
// osl_atomic_decrement( &m_refCount );
}
-// -------------------------------------------------------------------------
+
void OCatalog::refreshTables()
{
TStringVector aVector;
@@ -70,19 +70,19 @@ void OCatalog::refreshTables()
else
m_pTables = new OTables(m_xMetaData,*this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
void OCatalog::refreshViews()
{
}
-// -------------------------------------------------------------------------
+
void OCatalog::refreshGroups()
{
}
-// -------------------------------------------------------------------------
+
void OCatalog::refreshUsers()
{
}
-// -----------------------------------------------------------------------------
+
// XTablesSupplier
Reference< XNameAccess > SAL_CALL OCatalog::getTables( ) throw(RuntimeException)
diff --git a/connectivity/source/drivers/mozab/MColumnAlias.cxx b/connectivity/source/drivers/mozab/MColumnAlias.cxx
index df9254b3d6fc..18aa6ca90020 100644
--- a/connectivity/source/drivers/mozab/MColumnAlias.cxx
+++ b/connectivity/source/drivers/mozab/MColumnAlias.cxx
@@ -37,7 +37,7 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
-//------------------------------------------------------------------------------
+
OColumnAlias::OColumnAlias( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB )
{
static const sal_Char* s_pProgrammaticNames[] =
@@ -87,7 +87,7 @@ OColumnAlias::OColumnAlias( const ::com::sun::star::uno::Reference< ::com::sun::
initialize( _rxORB );
}
-//------------------------------------------------------------------------------
+
void OColumnAlias::initialize( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB )
{
// open our driver settings config node
@@ -157,7 +157,7 @@ void OColumnAlias::initialize( const ::com::sun::star::uno::Reference< ::com::su
}
}
-//------------------------------------------------------------------
+
OString OColumnAlias::getProgrammaticNameOrFallbackToUTF8Alias( const OUString& _rAlias ) const
{
AliasMap::const_iterator pos = m_aAliasMap.find( _rAlias );
@@ -169,7 +169,7 @@ OString OColumnAlias::getProgrammaticNameOrFallbackToUTF8Alias( const OUString&
return pos->second.programmaticAsciiName;
}
-//------------------------------------------------------------------
+
bool OColumnAlias::isColumnSearchable( const OUString _alias ) const
{
OString sProgrammatic = getProgrammaticNameOrFallbackToUTF8Alias( _alias );
diff --git a/connectivity/source/drivers/mozab/MColumns.cxx b/connectivity/source/drivers/mozab/MColumns.cxx
index a7c3b96c5758..452a34bece0a 100644
--- a/connectivity/source/drivers/mozab/MColumns.cxx
+++ b/connectivity/source/drivers/mozab/MColumns.cxx
@@ -83,12 +83,12 @@ sdbcx::ObjectType OColumns::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void OColumns::impl_refresh() throw(RuntimeException)
{
m_pTable->refreshColumns();
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/mozab/MConfigAccess.cxx b/connectivity/source/drivers/mozab/MConfigAccess.cxx
index dd4281a81bb5..53083fb4893b 100644
--- a/connectivity/source/drivers/mozab/MConfigAccess.cxx
+++ b/connectivity/source/drivers/mozab/MConfigAccess.cxx
@@ -34,7 +34,7 @@ namespace connectivity
{
namespace mozab
{
- //-----------------------------------------------------------------
+
Reference< XPropertySet > createDriverConfigNode( Reference< XMultiServiceFactory > _rxORB )
{
Reference< XPropertySet > xNode;
@@ -86,7 +86,7 @@ namespace connectivity
return xNode;
}
- //-----------------------------------------------------------------
+
namespace
{
// a private helper to accessing the point where we store the reference
@@ -98,19 +98,19 @@ namespace connectivity
}
}
- //-----------------------------------------------------------------
+
void setMozabServiceFactory( const Reference< XMultiServiceFactory >& _rxFactory )
{
accessFactoryStorage( ) = _rxFactory;
}
- //-----------------------------------------------------------------
+
const Reference< XMultiServiceFactory >& getMozabServiceFactory( )
{
return accessFactoryStorage( );
}
- //-----------------------------------------------------------------
+
OUString getDescription(const sal_Char* sNode,const OUString & sDefault)
{
OUString sPreferredName;
@@ -143,7 +143,7 @@ namespace connectivity
sDescription = sDefault;
return sDescription;
}
- //-----------------------------------------------------------------
+
OUString getPreferredProfileName( )
{
OUString sPreferredName;
@@ -174,7 +174,7 @@ namespace connectivity
//.........................................................................
-//-------------------------------------------------------------------------
+
extern "C" const sal_Unicode* SAL_CALL getUserProfile( void )
{
static sal_Bool bReadConfig = sal_False;
@@ -187,7 +187,7 @@ extern "C" const sal_Unicode* SAL_CALL getUserProfile( void )
return sUserProfile.getStr();
}
-//------------------------------------------------------------------------
+
extern "C" const sal_Char* SAL_CALL getPabDescription( void )
{
static sal_Bool bReadConfig = sal_False;
@@ -207,7 +207,7 @@ extern "C" const sal_Char* SAL_CALL getPabDescription( void )
return sPabDescription.getStr();
}
-//-------------------------------------------------------------------------
+
extern "C" const sal_Char* SAL_CALL getHisDescription( void )
{
static sal_Bool bReadConfig = sal_False;
@@ -227,7 +227,7 @@ extern "C" const sal_Char* SAL_CALL getHisDescription( void )
return sHisDescription.getStr();
}
-//-------------------------------------------------------------------------
+
// MConfigAccess was invented to allow non-UNO parts access to the configuration.
// Unfortunately, configuration access requires a XMultiServiceFactory - which the
// mozilla side does not have.
diff --git a/connectivity/source/drivers/mozab/MConnection.cxx b/connectivity/source/drivers/mozab/MConnection.cxx
index 8440d50d9770..708438f67612 100644
--- a/connectivity/source/drivers/mozab/MConnection.cxx
+++ b/connectivity/source/drivers/mozab/MConnection.cxx
@@ -54,13 +54,13 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL OMozabConnection_CreateInstance(
using namespace dbtools;
-//------------------------------------------------------------------------------
+
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
-// --------------------------------------------------------------------------------
+
namespace connectivity { namespace mozab {
@@ -72,7 +72,7 @@ struct ConnectionImplData
::boost::shared_ptr< ::comphelper::OfficeResourceBundle > pResourceBundle;
};
-// -----------------------------------------------------------------------------
+
#ifdef __MINGW32__
extern "C"
#endif
@@ -88,13 +88,13 @@ const sal_Char* getSdbcScheme( SdbcScheme _eScheme )
}
return NULL;
}
-// -----------------------------------------------------------------------------
+
OUString OConnection::getDriverImplementationName()
{
return OUString(MOZAB_DRIVER_IMPL_NAME);
}
-// -----------------------------------------------------------------------------
+
const sal_Char* getSchemeURI( MozillaScheme _eScheme )
{
switch ( _eScheme )
@@ -108,7 +108,7 @@ const sal_Char* getSchemeURI( MozillaScheme _eScheme )
return NULL;
}
-// -----------------------------------------------------------------------------
+
OConnection::OConnection(MozabDriver* _pDriver)
:OSubComponent<OConnection, OConnection_BASE>((::cppu::OWeakObject*)_pDriver, this)
@@ -123,7 +123,7 @@ OConnection::OConnection(MozabDriver* _pDriver)
m_pDriver->acquire();
}
-//-----------------------------------------------------------------------------
+
OConnection::~OConnection()
{
acquire();
@@ -132,13 +132,13 @@ OConnection::~OConnection()
m_pDriver->release();
m_pDriver = NULL;
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL OConnection::release() throw()
{
relase_ChildImpl();
}
-// -----------------------------------------------------------------------------
-//-----------------------------------------------------------------------------
+
+
void OConnection::construct(const OUString& url,const Sequence< PropertyValue >& info) throw(SQLException)
{
OSL_TRACE("IN OConnection::construct()" );
@@ -340,10 +340,10 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
}
// XServiceInfo
-// --------------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OConnection, "com.sun.star.sdbc.drivers.mozab.OConnection", "com.sun.star.sdbc.Connection")
-// --------------------------------------------------------------------------------
+
Reference< XStatement > SAL_CALL OConnection::createStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -355,7 +355,7 @@ Reference< XStatement > SAL_CALL OConnection::createStatement( ) throw(SQLExcep
m_aStatements.push_back(WeakReferenceHelper(xReturn));
return xReturn;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const OUString& _sSql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -372,7 +372,7 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const OU
m_aStatements.push_back(WeakReferenceHelper(xReturn));
return xReturn;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall( const OUString& _sSql ) throw(SQLException, RuntimeException)
{
OSL_UNUSED( _sSql );
@@ -380,7 +380,7 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall( const OUStrin
OSL_TRACE("OConnection::prepareCall( %s )", OUtoCStr( _sSql ) );
return NULL;
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OConnection::nativeSQL( const OUString& _sSql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -389,12 +389,12 @@ OUString SAL_CALL OConnection::nativeSQL( const OUString& _sSql ) throw(SQLExcep
return _sSql;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setAutoCommit( sal_Bool /*autoCommit*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::setAutoCommit", *this );
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::getAutoCommit( ) throw(SQLException, RuntimeException)
{
// you have to distinguish which if you are in autocommit mode or not
@@ -402,17 +402,17 @@ sal_Bool SAL_CALL OConnection::getAutoCommit( ) throw(SQLException, RuntimeExce
return sal_True;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::commit( ) throw(SQLException, RuntimeException)
{
// when you database does support transactions you should commit here
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::rollback( ) throw(SQLException, RuntimeException)
{
// same as commit but for the other case
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::isClosed( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -420,7 +420,7 @@ sal_Bool SAL_CALL OConnection::isClosed( ) throw(SQLException, RuntimeException
// just simple -> we are close when we are disposed that means someone called dispose(); (XComponent)
return OConnection_BASE::rBHelper.bDisposed;
}
-// --------------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -437,51 +437,51 @@ Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData( ) throw(SQLEx
return xMetaData;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setReadOnly( sal_Bool /*readOnly*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::setReadOnly", *this );
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::isReadOnly( ) throw(SQLException, RuntimeException)
{
// return if your connection to readonly
return sal_False;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setCatalog( const OUString& /*catalog*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::setCatalog", *this );
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OConnection::getCatalog( ) throw(SQLException, RuntimeException)
{
// return your current catalog
return OUString();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setTransactionIsolation( sal_Int32 /*level*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::setTransactionIsolation", *this );
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OConnection::getTransactionIsolation( ) throw(SQLException, RuntimeException)
{
// please have a look at @see com.sun.star.sdbc.TransactionIsolation
return TransactionIsolation::NONE;
}
-// --------------------------------------------------------------------------------
+
Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OConnection::getTypeMap( ) throw(SQLException, RuntimeException)
{
// if your driver has special database types you can return it here
return NULL;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setTypeMap( const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::setTypeMap", *this );
}
-// --------------------------------------------------------------------------------
+
// XCloseable
void SAL_CALL OConnection::close( ) throw(SQLException, RuntimeException)
{
@@ -493,19 +493,19 @@ void SAL_CALL OConnection::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// --------------------------------------------------------------------------------
+
// XWarningsSupplier
Any SAL_CALL OConnection::getWarnings( ) throw(SQLException, RuntimeException)
{
// when you collected some warnings -> return it
return Any();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::clearWarnings( ) throw(SQLException, RuntimeException)
{
// you should clear your collected warnings here
}
-//------------------------------------------------------------------------------
+
void OConnection::disposing()
{
// we noticed that we should be destroied in near future so we have to dispose our statements
@@ -521,7 +521,7 @@ void OConnection::disposing()
dispose_ChildImpl();
}
-// -----------------------------------------------------------------------------
+
Reference< XTablesSupplier > SAL_CALL OConnection::createCatalog()
{
@@ -537,7 +537,7 @@ Reference< XTablesSupplier > SAL_CALL OConnection::createCatalog()
OSL_TRACE( "\tOUT OConnection::createCatalog()" );
return xTab;
}
-// -----------------------------------------------------------------------------
+
MNameMapper* OConnection::getNameMapper ()
{
@@ -547,7 +547,7 @@ MNameMapper* OConnection::getNameMapper ()
return m_aNameMapper;
}
-// -----------------------------------------------------------------------------
+
void OConnection::throwSQLException( const ErrorDescriptor& _rError, const Reference< XInterface >& _rxContext )
{
if ( _rError.getResId() != 0 )
@@ -584,7 +584,7 @@ void OConnection::throwSQLException( const ErrorDescriptor& _rError, const Refer
throwGenericSQLException( STR_UNSPECIFIED_ERROR, _rxContext );
}
-// -----------------------------------------------------------------------------
+
void OConnection::throwSQLException( const sal_uInt16 _nErrorResourceId, const Reference< XInterface >& _rxContext )
{
ErrorDescriptor aError;
diff --git a/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx b/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx
index 34c640b6d5e4..ef3b63bf8801 100644
--- a/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx
@@ -64,13 +64,13 @@ ODatabaseMetaData::ODatabaseMetaData(OConnection* _pCon)
OSL_ENSURE(m_pConnection,"ODatabaseMetaData::ODatabaseMetaData: No connection set!");
m_pDbMetaDataHelper = new MDatabaseMetaDataHelper();
}
-// -------------------------------------------------------------------------
+
ODatabaseMetaData::~ODatabaseMetaData()
{
delete m_pDbMetaDataHelper;
}
-// -------------------------------------------------------------------------
+
ODatabaseMetaDataResultSet::ORows& SAL_CALL ODatabaseMetaData::getColumnRows(
const OUString& tableNamePattern,
const OUString& columnNamePattern ) throw(SQLException)
@@ -152,317 +152,317 @@ ODatabaseMetaDataResultSet::ORows& SAL_CALL ODatabaseMetaData::getColumnRows(
}
return( aRows );
}
-// -------------------------------------------------------------------------
+
OUString ODatabaseMetaData::impl_getCatalogSeparator_throw( )
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 65535; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxRowSize( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCatalogNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCharLiteralLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 254; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 20; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInIndex( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCursorNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxConnections( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInTable( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaData::impl_getMaxStatements_throw( )
{
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTableNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaData::impl_getMaxTablesInSelect_throw( )
{
// We only support a single table
return 1;
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsAlterTableWithAddColumn_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsAlterTableWithDropColumn_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException)
{
OUString aVal;
return aVal;
}
-// -------------------------------------------------------------------------
+
OUString ODatabaseMetaData::impl_getIdentifierQuoteString_throw( )
{
// normally this is "
return OUString("\"");
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( ) throw(SQLException, RuntimeException)
{
OUString aVal;
return aVal;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_isCatalogAtStart_throw( )
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException)
{
//We support create table
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 /*level*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsSchemasInDataManipulation_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException)
{
return sal_True; // should be supported at least
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsSchemasInTableDefinitions_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsCatalogsInTableDefinitions_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( )
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatementLength( ) throw(SQLException, RuntimeException)
{
return 0;// 0 means no limit
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxProcedureNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException)
{
// We allow you to select from any table.
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException)
{
//we support insert/update/delete now
@@ -470,382 +470,382 @@ sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeE
//entry to the popup menu. We should avoid them.
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException)
{
// Support added for this.
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 /*fromType*/, sal_Int32 /*toType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( )
{
// Any case may be used
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getURL( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
return m_pConnection->getURL();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getUserName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDriverName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDriverVersion() throw(SQLException, RuntimeException)
{
return OUString( "1" );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion( ) throw(SQLException, RuntimeException)
{
return OUString( "0" );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getProcedureTerm( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSchemaTerm( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion( ) throw(RuntimeException)
{
return 1;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation( ) throw(SQLException, RuntimeException)
{
return TransactionIsolation::NONE;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSQLKeywords( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape( ) throw(SQLException, RuntimeException)
{
OUString aValue;
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getStringFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInOrderBy( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInSelect( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxUserNameLength( ) throw(SQLException, RuntimeException)
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 /*setType*/, sal_Int32 /*concurrency*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
// here follow all methods which return a resultset
// the first methods is an example implementation how to use this resultset
// of course you could implement it on your and you should do this because
// the general way is more memory expensive
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException)
{
// there exists no possibility to get table types so we have to check
@@ -879,7 +879,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLE
pResult->setRows(aRows);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > ODatabaseMetaData::impl_getTypeInfo_throw( )
{
// this returns an empty resultset where the column-names are already set
@@ -919,7 +919,7 @@ Reference< XResultSet > ODatabaseMetaData::impl_getTypeInfo_throw( )
pResultSet->setRows(aRows);
return xResultSet;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& tableNamePattern,
const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
@@ -931,7 +931,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
pResultSet->setRows( getColumnRows( tableNamePattern, columnNamePattern ));
return xResultSet;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
const Any& /*catalog*/, const OUString& /*schemaPattern*/,
const OUString& tableNamePattern, const Sequence< OUString >& types ) throw(SQLException, RuntimeException)
@@ -952,7 +952,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
return xResultSet;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& tableNamePattern ) throw(SQLException, RuntimeException)
{
@@ -1007,12 +1007,12 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& /*typeNamePattern*/, const Sequence< sal_Int32 >& /*types*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/mozab/MDriver.cxx b/connectivity/source/drivers/mozab/MDriver.cxx
index 0f945dc05beb..a30fae3b3d88 100644
--- a/connectivity/source/drivers/mozab/MDriver.cxx
+++ b/connectivity/source/drivers/mozab/MDriver.cxx
@@ -36,14 +36,14 @@ namespace connectivity
{
namespace mozab
{
- //------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL MozabDriver_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception )
{
return *(new MozabDriver( _rxFactory ));
}
}
}
-// --------------------------------------------------------------------------------
+
MozabDriver::MozabDriver(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory)
: ODriver_BASE(m_aMutex), m_xMSFactory( _rxFactory )
@@ -51,11 +51,11 @@ MozabDriver::MozabDriver(
,m_pCreationFunc(NULL)
{
}
-// -----------------------------------------------------------------------------
+
MozabDriver::~MozabDriver()
{
}
-// --------------------------------------------------------------------------------
+
void MozabDriver::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -80,14 +80,14 @@ void MozabDriver::disposing()
}
// static ServiceInfo
-//------------------------------------------------------------------------------
+
OUString MozabDriver::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString(MOZAB_DRIVER_IMPL_NAME);
// this name is referenced in the configuration and in the mozab.xml
// Please take care when changing it.
}
-//------------------------------------------------------------------------------
+
Sequence< OUString > MozabDriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
// which service is supported
@@ -97,7 +97,7 @@ Sequence< OUString > MozabDriver::getSupportedServiceNames_Static( ) throw (Run
return aSNS;
}
-//------------------------------------------------------------------
+
OUString SAL_CALL MozabDriver::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
@@ -108,13 +108,13 @@ sal_Bool SAL_CALL MozabDriver::supportsService( const OUString& _rServiceName )
return cppu::supportsService(this, _rServiceName);
}
-//------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL MozabDriver::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
-// --------------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL MozabDriver::connect( const OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
if ( !ensureInit() )
@@ -150,7 +150,7 @@ Reference< XConnection > SAL_CALL MozabDriver::connect( const OUString& url, con
return xCon;
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL MozabDriver::acceptsURL( const OUString& url )
throw(SQLException, RuntimeException)
{
@@ -160,7 +160,7 @@ sal_Bool SAL_CALL MozabDriver::acceptsURL( const OUString& url )
// here we have to look if we support this url format
return impl_classifyURL(url) != Unknown;
}
-// --------------------------------------------------------------------------------
+
Sequence< DriverPropertyInfo > SAL_CALL MozabDriver::getPropertyInfo( const OUString& url, const Sequence< PropertyValue >& /*info*/ ) throw(SQLException, RuntimeException)
{
if ( !ensureInit() )
@@ -194,17 +194,17 @@ Sequence< DriverPropertyInfo > SAL_CALL MozabDriver::getPropertyInfo( const OUSt
// if you have something special to say return it here :-)
return Sequence< DriverPropertyInfo >();
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MozabDriver::getMajorVersion( ) throw(RuntimeException)
{
return 1; // depends on you
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL MozabDriver::getMinorVersion( ) throw(RuntimeException)
{
return 0; // depends on you
}
-// --------------------------------------------------------------------------------
+
EDriverType MozabDriver::impl_classifyURL( const OUString& url )
{
// Skip 'sdbc:mozab: part of URL
@@ -252,7 +252,7 @@ EDriverType MozabDriver::impl_classifyURL( const OUString& url )
return Unknown;
}
-// --------------------------------------------------------------------------------
+
namespace
{
template< typename FUNCTION >
@@ -277,7 +277,7 @@ namespace
}
}
-// -----------------------------------------------------------------------------
+
extern "C" { static void SAL_CALL thisModule() {} }
bool MozabDriver::ensureInit()
@@ -314,6 +314,6 @@ bool MozabDriver::ensureInit()
return true;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mozab/MPreparedStatement.cxx b/connectivity/source/drivers/mozab/MPreparedStatement.cxx
index 346c6bda8ff1..e8ace7cf11ce 100644
--- a/connectivity/source/drivers/mozab/MPreparedStatement.cxx
+++ b/connectivity/source/drivers/mozab/MPreparedStatement.cxx
@@ -61,17 +61,17 @@ OPreparedStatement::OPreparedStatement( OConnection* _pConnection,const OUString
,m_pResultSet()
{
}
-// -----------------------------------------------------------------------------
+
OPreparedStatement::~OPreparedStatement()
{
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::lateInit()
{
if ( eSelect != parseSql( m_sSqlStatement ) )
throw SQLException();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -86,7 +86,7 @@ void SAL_CALL OPreparedStatement::disposing()
}
m_xParamColumns = NULL;
}
-// -----------------------------------------------------------------------------
+
OCommonStatement::StatementType OPreparedStatement::parseSql( const OUString& sql , sal_Bool bAdjusted )
throw ( ::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException )
@@ -106,7 +106,7 @@ OCommonStatement::StatementType OPreparedStatement::parseSql( const OUString& sq
return eStatementType;
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::initializeResultSet( OResultSet* _pResult )
{
OCommonStatement::initializeResultSet( _pResult );
@@ -114,14 +114,14 @@ void OPreparedStatement::initializeResultSet( OResultSet* _pResult )
_pResult->setParameterRow( m_aParameterRow );
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::clearCachedResultSet()
{
OCommonStatement::clearCachedResultSet();
m_pResultSet.clear();
m_xMetaData.clear();
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::cacheResultSet( const ::rtl::Reference< OResultSet >& _pResult )
{
OCommonStatement::cacheResultSet( _pResult );
@@ -129,17 +129,17 @@ void OPreparedStatement::cacheResultSet( const ::rtl::Reference< OResultSet >& _
m_pResultSet = _pResult;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::acquire() throw()
{
OCommonStatement::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::release() throw()
{
OCommonStatement::release();
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL OPreparedStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OCommonStatement::queryInterface(rType);
@@ -147,12 +147,12 @@ Any SAL_CALL OPreparedStatement::queryInterface( const Type & rType ) throw(Runt
aRet = OPreparedStatement_BASE::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL OPreparedStatement::getTypes( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::comphelper::concatSequences(OPreparedStatement_BASE::getTypes(),OCommonStatement::getTypes());
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -171,7 +171,7 @@ Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData( ) thr
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -180,14 +180,14 @@ sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeExc
Reference< XResultSet> xResult = executeQuery();
return xResult.is();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OPreparedStatement::executeUpdate( ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XStatement::executeUpdate", *this );
return 0;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setString( sal_Int32 parameterIndex, const OUString& x ) throw(SQLException, RuntimeException)
{
@@ -197,7 +197,7 @@ void SAL_CALL OPreparedStatement::setString( sal_Int32 parameterIndex, const OUS
OSL_TRACE("prepStmt::setString( %s )", OUtoCStr( x ) );
setParameter( parameterIndex, x );
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OPreparedStatement::getConnection( ) throw(SQLException, RuntimeException)
{
@@ -206,7 +206,7 @@ Reference< XConnection > SAL_CALL OPreparedStatement::getConnection( ) throw(SQ
return (Reference< XConnection >)m_pConnection;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery( ) throw(SQLException, RuntimeException)
{
@@ -218,62 +218,62 @@ Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery( ) throw(SQLE
// stuff again. Just execute.
return impl_executeCurrentQuery();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBoolean( sal_Int32 /*parameterIndex*/, sal_Bool /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setBoolean", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setByte( sal_Int32 /*parameterIndex*/, sal_Int8 /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setByte", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setDate( sal_Int32 /*parameterIndex*/, const Date& /*aData*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setDate", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setTime( sal_Int32 /*parameterIndex*/, const Time& /*aVal*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setTime", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setTimestamp( sal_Int32 /*parameterIndex*/, const DateTime& /*aVal*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setTimestamp", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setDouble( sal_Int32 /*parameterIndex*/, double /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setDouble", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setFloat( sal_Int32 /*parameterIndex*/, float /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setFloat", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setInt( sal_Int32 /*parameterIndex*/, sal_Int32 /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setInt", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setLong( sal_Int32 /*parameterIndex*/, sal_Int64 /*aVal*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setLong", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setNull( sal_Int32 parameterIndex, sal_Int32 /*sqlType*/ ) throw(SQLException, RuntimeException)
{
@@ -284,79 +284,79 @@ void SAL_CALL OPreparedStatement::setNull( sal_Int32 parameterIndex, sal_Int32 /
(m_aParameterRow->get())[parameterIndex].setNull();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setClob( sal_Int32 /*parameterIndex*/, const Reference< XClob >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setClob", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBlob( sal_Int32 /*parameterIndex*/, const Reference< XBlob >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setBlob", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setArray( sal_Int32 /*parameterIndex*/, const Reference< XArray >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setArray", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setRef( sal_Int32 /*parameterIndex*/, const Reference< XRef >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setRef", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 /*parameterIndex*/, const Any& /*x*/, sal_Int32 /*sqlType*/, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setObjectWithInfo", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObjectNull( sal_Int32 parameterIndex, sal_Int32 sqlType, const OUString& /*typeName*/ ) throw(SQLException, RuntimeException)
{
setNull(parameterIndex,sqlType);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObject( sal_Int32 parameterIndex, const Any& x ) throw(SQLException, RuntimeException)
{
::dbtools::implSetObject(this,parameterIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setShort( sal_Int32 /*parameterIndex*/, sal_Int16 /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setShort", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBytes( sal_Int32 /*parameterIndex*/, const Sequence< sal_Int8 >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setBytes", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setCharacterStream( sal_Int32 /*parameterIndex*/, const Reference< ::com::sun::star::io::XInputStream >& /*x*/, sal_Int32 /*length*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setCharacterStream", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBinaryStream( sal_Int32 /*parameterIndex*/, const Reference< ::com::sun::star::io::XInputStream >& /*x*/, sal_Int32 /*length*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XParameters::setBinaryStream", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::clearParameters( ) throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
{
switch(nHandle)
@@ -374,7 +374,7 @@ void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,cons
}
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::checkAndResizeParameters(sal_Int32 parameterIndex)
{
::connectivity::checkDisposed(OCommonStatement_IBASE::rBHelper.bDisposed);
@@ -387,7 +387,7 @@ void OPreparedStatement::checkAndResizeParameters(sal_Int32 parameterIndex)
if ((sal_Int32)(m_aParameterRow->get()).size() <= parameterIndex)
(m_aParameterRow->get()).resize(parameterIndex+1);
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::setParameter(sal_Int32 parameterIndex, const
ORowSetValue& x)
{
@@ -398,7 +398,7 @@ ORowSetValue& x)
(m_aParameterRow->get())[parameterIndex] = x;
}
-//------------------------------------------------------------------
+
size_t OPreparedStatement::AddParameter(OSQLParseNode * pParameter, const Reference<XPropertySet>& _xCol)
{
OSL_UNUSED( pParameter );
@@ -450,7 +450,7 @@ size_t OPreparedStatement::AddParameter(OSQLParseNode * pParameter, const Refere
m_xParamColumns->get().push_back(xParaColumn);
return nParameter;
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::describeColumn(OSQLParseNode*
_pParameter,OSQLParseNode* _pNode,const OSQLTable& _xTable)
{
@@ -470,7 +470,7 @@ _pParameter,OSQLParseNode* _pNode,const OSQLTable& _xTable)
// else
// AddParameter(_pParameter,xProp);
}
-// -------------------------------------------------------------------------
+
void OPreparedStatement::describeParameter()
{
::std::vector< OSQLParseNode*> aParseNodes;
@@ -492,7 +492,7 @@ aParseNodes.begin();
}
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::scanParameter(OSQLParseNode* pParseNode,::std::vector< OSQLParseNode*>& _rParaNodes)
{
OSL_ENSURE(pParseNode != NULL,"OResultSet: internal error: invalid ParseNode");
@@ -512,22 +512,22 @@ void OPreparedStatement::scanParameter(OSQLParseNode* pParseNode,::std::vector<
for (sal_uInt32 i = 0; i < pParseNode->count(); i++)
scanParameter(pParseNode->getChild(i),_rParaNodes);
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > SAL_CALL OPreparedStatement::getResultSet( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return NULL;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OPreparedStatement::getUpdateCount( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return 0;
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL OPreparedStatement::getMoreResults( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return sal_False;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mozab/MResultSet.cxx b/connectivity/source/drivers/mozab/MResultSet.cxx
index aeb5bea51dd0..49c9ff05f76e 100644
--- a/connectivity/source/drivers/mozab/MResultSet.cxx
+++ b/connectivity/source/drivers/mozab/MResultSet.cxx
@@ -60,13 +60,13 @@ using namespace com::sun::star::container;
using namespace com::sun::star::io;
using namespace com::sun::star::util;
-//------------------------------------------------------------------------------
+
// IMPLEMENT_SERVICE_INFO(OResultSet,"com.sun.star.sdbcx.OResultSet","com.sun.star.sdbc.ResultSet");
OUString SAL_CALL OResultSet::getImplementationName( ) throw ( RuntimeException) \
{
return OUString("com.sun.star.sdbcx.mozab.ResultSet");
}
-// -------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(2);
@@ -80,7 +80,7 @@ sal_Bool SAL_CALL OResultSet::supportsService( const OUString& _rServiceName ) t
return cppu::supportsService(this, _rServiceName);
}
-// -------------------------------------------------------------------------
+
OResultSet::OResultSet(OCommonStatement* pStmt, const ::boost::shared_ptr< connectivity::OSQLParseTreeIterator >& _pSQLIterator )
: OResultSet_BASE(m_aMutex)
,OPropertySetHelper(OResultSet_BASE::rBHelper)
@@ -109,12 +109,12 @@ OResultSet::OResultSet(OCommonStatement* pStmt, const ::boost::shared_ptr< conne
m_aQuery.setMaxNrOfReturns(pStmt->getOwnConnection()->getMaxResultRecords());
}
-// -------------------------------------------------------------------------
+
OResultSet::~OResultSet()
{
}
-// -------------------------------------------------------------------------
+
void OResultSet::disposing(void)
{
OPropertySetHelper::disposing();
@@ -133,7 +133,7 @@ void OResultSet::disposing(void)
m_pTable = NULL;
}
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OPropertySetHelper::queryInterface(rType);
@@ -141,7 +141,7 @@ Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeExcep
aRet = OResultSet_BASE::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OResultSet::getTypes( ) throw( RuntimeException)
{
OTypeCollection aTypes( ::getCppuType( (const Reference< ::com::sun::star::beans::XMultiPropertySet > *)0 ),
@@ -150,7 +150,7 @@ Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeExcep
return ::comphelper::concatSequences(aTypes.getTypes(),OResultSet_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void OResultSet::methodEntry()
{
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -161,7 +161,7 @@ void OResultSet::methodEntry()
}
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -181,60 +181,60 @@ sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName ) throw(SQ
assert(false);
return 0; // Never reached
}
-// -------------------------------------------------------------------------
+
Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::getBoolean( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
m_bWasNull = sal_True;
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL OResultSet::getByte( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return 0;
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return Sequence< sal_Int8 >();
}
-// -------------------------------------------------------------------------
+
Date SAL_CALL OResultSet::getDate( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return Date();
}
-// -------------------------------------------------------------------------
+
double SAL_CALL OResultSet::getDouble( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return 0.0;
}
-// -------------------------------------------------------------------------
+
float SAL_CALL OResultSet::getFloat( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::getInt( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
@@ -242,7 +242,7 @@ sal_Int32 SAL_CALL OResultSet::getInt( sal_Int32 /*columnIndex*/ ) throw(SQLExce
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::getRow( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -250,14 +250,14 @@ sal_Int32 SAL_CALL OResultSet::getRow( ) throw(SQLException, RuntimeException)
OSL_TRACE("In/Out: OResultSet::getRow, return = %u", m_nRowPos );
return m_nRowPos;
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL OResultSet::getLong( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return sal_Int64();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -268,49 +268,49 @@ Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLEx
m_pSQLIterator->getSelectColumns(), m_pSQLIterator->getTables().begin()->first ,m_pTable,determineReadOnly());
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL OResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL OResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL OResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::getObject( sal_Int32 /*columnIndex*/, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
return Any();
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL OResultSet::getShort( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
void OResultSet::checkIndex(sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException)
{
if(columnIndex <= 0 || columnIndex > (sal_Int32)m_xColumns->get().size())
::dbtools::throwInvalidIndexException(*this);
}
-// -------------------------------------------------------------------------
+
sal_uInt32 OResultSet::currentRowCount()
{
if ( m_bIsAlwaysFalseQuery )
@@ -318,7 +318,7 @@ sal_uInt32 OResultSet::currentRowCount()
return m_aQuery.getRealRowCount() - deletedCount();
}
-// -------------------------------------------------------------------------
+
sal_Bool OResultSet::fetchCurrentRow( ) throw(SQLException, RuntimeException)
{
@@ -326,7 +326,7 @@ sal_Bool OResultSet::fetchCurrentRow( ) throw(SQLException, RuntimeException)
return fetchRow(getCurrentCardNumber());
}
-// -------------------------------------------------------------------------
+
sal_Bool OResultSet::pushCard(sal_uInt32 cardNumber) throw(SQLException, RuntimeException)
{
if (cardNumber == 0)
@@ -353,7 +353,7 @@ sal_Bool OResultSet::pushCard(sal_uInt32 cardNumber) throw(SQLException, Runtime
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool OResultSet::fetchRow(sal_Int32 cardNumber,sal_Bool bForceReload) throw(SQLException, RuntimeException)
{
OSL_TRACE("fetchRow, cardNumber = %u", cardNumber );
@@ -394,7 +394,7 @@ sal_Bool OResultSet::fetchRow(sal_Int32 cardNumber,sal_Bool bForceReload) throw(
}
return sal_True;
}
-// -------------------------------------------------------------------------
+
const ORowSetValue& OResultSet::getValue(sal_Int32 cardNumber, sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -409,7 +409,7 @@ const ORowSetValue& OResultSet::getValue(sal_Int32 cardNumber, sal_Int32 columnI
return (m_aRow->get())[columnIndex];
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSet::getString( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
@@ -424,14 +424,14 @@ OUString SAL_CALL OResultSet::getString( sal_Int32 columnIndex ) throw(SQLExcept
return getValue(getCurrentCardNumber(), mapColumn( columnIndex ) );
}
-// -------------------------------------------------------------------------
+
Time SAL_CALL OResultSet::getTime( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
return Time();
}
-// -------------------------------------------------------------------------
+
DateTime SAL_CALL OResultSet::getTimestamp( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
@@ -439,7 +439,7 @@ DateTime SAL_CALL OResultSet::getTimestamp( sal_Int32 /*columnIndex*/ ) throw(SQ
ResultSetEntryGuard aGuard( *this );
return DateTime();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeException)
{
@@ -450,7 +450,7 @@ sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeExcep
OSL_TRACE("In/Out: OResultSet::isBeforeFirst" );
return( m_nRowPos < 1 );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isAfterLast( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -458,7 +458,7 @@ sal_Bool SAL_CALL OResultSet::isAfterLast( ) throw(SQLException, RuntimeExcepti
OSL_TRACE("In/Out: OResultSet::isAfterLast" );
return m_nRowPos > currentRowCount() && m_aQuery.queryComplete();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isFirst( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -466,7 +466,7 @@ sal_Bool SAL_CALL OResultSet::isFirst( ) throw(SQLException, RuntimeException)
OSL_TRACE("In/Out: OResultSet::isFirst" );
return m_nRowPos == 1;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isLast( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -474,7 +474,7 @@ sal_Bool SAL_CALL OResultSet::isLast( ) throw(SQLException, RuntimeException)
OSL_TRACE("In/Out: OResultSet::isLast" );
return m_nRowPos == currentRowCount() && m_aQuery.queryComplete();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -484,7 +484,7 @@ void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
if ( first() )
previous();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -493,7 +493,7 @@ void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException)
if(last())
next();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::close( ) throw(SQLException, RuntimeException)
{
@@ -501,40 +501,40 @@ void SAL_CALL OResultSet::close( ) throw(SQLException, RuntimeException)
OSL_TRACE("In/Out: OResultSet::close" );
dispose();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::first( ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::first" );
return seekRow( FIRST_POS );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::last( ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::last" );
return seekRow( LAST_POS );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::absolute( sal_Int32 row ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::absolute" );
return seekRow( ABSOLUTE_POS, row );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::relative( sal_Int32 row ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::relative" );
return seekRow( RELATIVE_POS, row );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::previous( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
OSL_TRACE("In/Out: OResultSet::previous" );
return seekRow( PRIOR_POS );
}
-// -------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL OResultSet::getStatement( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -542,7 +542,7 @@ Reference< XInterface > SAL_CALL OResultSet::getStatement( ) throw(SQLException
OSL_TRACE("In/Out: OResultSet::getStatement" );
return m_xStatement;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowDeleted( ) throw(SQLException, RuntimeException)
{
@@ -550,27 +550,27 @@ sal_Bool SAL_CALL OResultSet::rowDeleted( ) throw(SQLException, RuntimeExceptio
OSL_TRACE("In/Out: OResultSet::rowDeleted, m_RowStates=%u",m_RowStates );
return ((m_RowStates & RowStates_Deleted) == RowStates_Deleted) ;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowInserted( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
OSL_TRACE("In/Out: OResultSet::rowInserted,m_RowStates=%u",m_RowStates );
return ((m_RowStates & RowStates_Inserted) == RowStates_Inserted);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowUpdated( ) throw(SQLException, RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
OSL_TRACE("In/Out: OResultSet::rowUpdated,m_RowStates=%u",m_RowStates );
return ((m_RowStates & RowStates_Updated) == RowStates_Updated) ;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::next( ) throw(SQLException, RuntimeException)
{
return seekRow( NEXT_POS );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::wasNull( ) throw(SQLException, RuntimeException)
{
@@ -578,7 +578,7 @@ sal_Bool SAL_CALL OResultSet::wasNull( ) throw(SQLException, RuntimeException)
return m_bWasNull;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::cancel( ) throw(RuntimeException)
{
@@ -586,25 +586,25 @@ void SAL_CALL OResultSet::cancel( ) throw(RuntimeException)
OSL_TRACE("In/Out: OResultSet::cancel" );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::clearWarnings( ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::clearWarnings" );
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::getWarnings( ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::getWarnings" );
return Any();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::refreshRow( ) throw(SQLException, RuntimeException)
{
OSL_TRACE("In/Out: OResultSet::refreshRow" );
if (fetchRow(getCurrentCardNumber(),sal_True)) //force fetch current row will cause we lose all change to the current row
m_pStatement->getOwnConnection()->throwSQLException( STR_ERROR_REFRESH_ROW, *this );
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper* OResultSet::createArrayHelper( ) const
{
Sequence< Property > aProps(5);
@@ -618,12 +618,12 @@ IPropertyArrayHelper* OResultSet::createArrayHelper( ) const
return new OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper & OResultSet::getInfoHelper()
{
return *const_cast<OResultSet*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool OResultSet::convertFastPropertyValue(
Any & /*rConvertedValue*/,
Any & /*rOldValue*/,
@@ -645,7 +645,7 @@ sal_Bool OResultSet::convertFastPropertyValue(
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
void OResultSet::setFastPropertyValue_NoBroadcast(
sal_Int32 nHandle,
const Any& /*rValue*/
@@ -667,7 +667,7 @@ void OResultSet::setFastPropertyValue_NoBroadcast(
;
}
}
-// -------------------------------------------------------------------------
+
void OResultSet::getFastPropertyValue(
Any& rValue,
sal_Int32 nHandle
@@ -693,23 +693,23 @@ void OResultSet::getFastPropertyValue(
break;
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::acquire() throw()
{
OResultSet_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::release() throw()
{
OResultSet_BASE::release();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -------------------------------------------------------------------------
+
void OResultSet::parseParameter( const OSQLParseNode* pNode, OUString& rMatchString )
{
OSL_ENSURE(pNode->count() > 0,"Error parsing parameter in Parse Tree");
@@ -1032,7 +1032,7 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT
}
-// -----------------------------------------------------------------------------
+
void OResultSet::fillRowData()
throw( ::com::sun::star::sdbc::SQLException )
@@ -1122,7 +1122,7 @@ void OResultSet::fillRowData()
#endif
}
-// -----------------------------------------------------------------------------
+
static sal_Bool matchRow( OValueRow& row1, OValueRow& row2 )
{
OValueVector::Vector::iterator row1Iter = row1->get().begin();
@@ -1162,7 +1162,7 @@ sal_Int32 OResultSet::getRowForCardNumber(sal_Int32 nCardNum)
return 0;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::executeQuery() throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException)
{
@@ -1337,7 +1337,7 @@ void SAL_CALL OResultSet::executeQuery() throw( ::com::sun::star::sdbc::SQLExcep
}
}
-// -----------------------------------------------------------------------------
+
void OResultSet::setBoundedColumns(const OValueRow& _rRow,
const ::rtl::Reference<connectivity::OSQLColumns>& _rxColumns,
@@ -1419,7 +1419,7 @@ void OResultSet::setBoundedColumns(const OValueRow& _rRow,
}
-// -----------------------------------------------------------------------------
+
sal_Bool OResultSet::isCount() const
{
return (m_pParseTree &&
@@ -1431,7 +1431,7 @@ sal_Bool OResultSet::isCount() const
);
}
-// -----------------------------------------------------------------------------
+
//
// Check for valid row in m_aQuery
//
@@ -1483,7 +1483,7 @@ sal_Int32 OResultSet::deletedCount()
return m_CurrentRowCount - static_cast<sal_Int32>(m_pKeySet->get().size());
}
-// -----------------------------------------------------------------------------
+
sal_Bool OResultSet::seekRow( eRowPosition pos, sal_Int32 nOffset )
{
ResultSetEntryGuard aGuard( *this );
@@ -1560,7 +1560,7 @@ sal_Bool OResultSet::seekRow( eRowPosition pos, sal_Int32 nOffset )
fetchCurrentRow();
return sal_True;
}
-// -----------------------------------------------------------------------------
+
void OResultSet::setColumnMapping(const ::std::vector<sal_Int32>& _aColumnMapping)
{
m_aColMapping = _aColumnMapping;
@@ -1569,7 +1569,7 @@ void OResultSet::setColumnMapping(const ::std::vector<sal_Int32>& _aColumnMappin
OSL_TRACE("Set Mapped: %d -> %d", i, m_aColMapping[i] );
#endif
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Any OResultSet::getBookmark( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -1673,7 +1673,7 @@ void OResultSet::updateValue(sal_Int32 columnIndex ,const ORowSetValue& x) throw
m_nUpdatedRow = getCurrentCardNumber();
m_RowStates = m_RowStates | RowStates_Updated;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateNull( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -1691,72 +1691,72 @@ void SAL_CALL OResultSet::updateNull( sal_Int32 columnIndex ) throw(SQLException
m_nUpdatedRow = getCurrentCardNumber();
m_RowStates = m_RowStates | RowStates_Updated;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBoolean( sal_Int32 columnIndex, sal_Bool x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex, static_cast<bool>(x));
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateByte( sal_Int32 columnIndex, sal_Int8 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateShort( sal_Int32 columnIndex, sal_Int16 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateInt( sal_Int32 columnIndex, sal_Int32 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateLong( sal_Int32 /*columnIndex*/, sal_Int64 /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRowUpdate::updateLong", *this );
}
-// -----------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateFloat( sal_Int32 columnIndex, float x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateDouble( sal_Int32 columnIndex, double x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateString( sal_Int32 columnIndex, const OUString& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBytes( sal_Int32 columnIndex, const Sequence< sal_Int8 >& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateDate( sal_Int32 columnIndex, const ::com::sun::star::util::Date& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateTime( sal_Int32 columnIndex, const ::com::sun::star::util::Time& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateTimestamp( sal_Int32 columnIndex, const ::com::sun::star::util::DateTime& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBinaryStream( sal_Int32 columnIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
@@ -1769,12 +1769,12 @@ void SAL_CALL OResultSet::updateBinaryStream( sal_Int32 columnIndex, const Refer
x->readBytes(aSeq,length);
updateValue(columnIndex,aSeq);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateCharacterStream( sal_Int32 columnIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
updateBinaryStream(columnIndex,x,length);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateObject( sal_Int32 columnIndex, const Any& x ) throw(SQLException, RuntimeException)
{
if (!::dbtools::implUpdateObject(this, columnIndex, x))
@@ -1786,7 +1786,7 @@ void SAL_CALL OResultSet::updateObject( sal_Int32 columnIndex, const Any& x ) th
::dbtools::throwGenericSQLException(sError,*this);
} // if (!::dbtools::implUpdateObject(this, columnIndex, x))
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateNumericObject( sal_Int32 columnIndex, const Any& x, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException)
{
@@ -1801,7 +1801,7 @@ void SAL_CALL OResultSet::updateNumericObject( sal_Int32 columnIndex, const Any&
}
// XResultSetUpdate
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::insertRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -1813,7 +1813,7 @@ void SAL_CALL OResultSet::insertRow( ) throw(::com::sun::star::sdbc::SQLExcepti
m_aQuery.setRowStates(getCurrentCardNumber(),m_RowStates);
OSL_TRACE("insertRow out, m_nRowPos = %u", m_nRowPos );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
OSL_TRACE("updateRow in, m_nRowPos = %u", m_nRowPos );
@@ -1842,7 +1842,7 @@ void SAL_CALL OResultSet::updateRow( ) throw(::com::sun::star::sdbc::SQLExcepti
fetchCurrentRow();
OSL_TRACE("updateRow out, m_nRowPos = %u", m_nRowPos );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::deleteRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
OSL_TRACE("deleteRow, m_nRowPos = %u", m_nRowPos );
@@ -1864,7 +1864,7 @@ void SAL_CALL OResultSet::deleteRow( ) throw(::com::sun::star::sdbc::SQLExcepti
m_RowStates = RowStates_Deleted;
OSL_TRACE("deleteRow out, m_nRowPos = %u", m_nRowPos );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::cancelRowUpdates( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
@@ -1872,7 +1872,7 @@ void SAL_CALL OResultSet::cancelRowUpdates( ) throw(::com::sun::star::sdbc::SQL
if (fetchRow(getCurrentCardNumber(),sal_True)) //force fetch current row will cause we lose all change to the current row
m_pStatement->getOwnConnection()->throwSQLException( STR_CAN_NOT_CANCEL_ROW_UPDATE, *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::moveToInsertRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
OSL_TRACE("moveToInsertRow in, m_nRowPos = %u", m_nRowPos );
@@ -1902,7 +1902,7 @@ void SAL_CALL OResultSet::moveToInsertRow( ) throw(::com::sun::star::sdbc::SQLE
fetchCurrentRow();
OSL_TRACE("moveToInsertRow out, m_nRowPos = %u", m_nRowPos );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::moveToCurrentRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
ResultSetEntryGuard aGuard( *this );
diff --git a/connectivity/source/drivers/mozab/MResultSetMetaData.cxx b/connectivity/source/drivers/mozab/MResultSetMetaData.cxx
index 48a888d4316a..d43eda83a0c8 100644
--- a/connectivity/source/drivers/mozab/MResultSetMetaData.cxx
+++ b/connectivity/source/drivers/mozab/MResultSetMetaData.cxx
@@ -34,48 +34,48 @@ using namespace com::sun::star::beans;
using namespace ::dbtools;
using namespace ::comphelper;
-// -------------------------------------------------------------------------
+
OResultSetMetaData::~OResultSetMetaData()
{
m_xColumns = NULL;
}
-// -----------------------------------------------------------------------------
+
void OResultSetMetaData::checkColumnIndex(sal_Int32 column) throw(SQLException, RuntimeException)
{
if(column <= 0 || column > (sal_Int32)(sal_Int32)m_xColumns->get().size())
throwInvalidIndexException(*this);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return getPrecision(column);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnType( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return DataType::VARCHAR; // at the moment there exists only this type
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount( ) throw(SQLException, RuntimeException)
{
return static_cast<sal_Int32>((m_xColumns->get()).size());
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getSchemaName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -93,70 +93,70 @@ OUString SAL_CALL OResultSetMetaData::getColumnName( sal_Int32 column ) throw(SQ
}
return sColumnName;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getTableName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return m_aTableName;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getCatalogName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnTypeName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
checkColumnIndex(column);
return getString((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPENAME)));
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnLabel( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return getColumnName(column);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnServiceName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLException, RuntimeException)
{
checkColumnIndex(column);
return getBOOL((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISCURRENCY)));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isSigned( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQLException, RuntimeException)
{
checkColumnIndex(column);
return getINT32((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PRECISION)));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getScale( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
checkColumnIndex(column);
return getINT32((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_SCALE)));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::isNullable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
checkColumnIndex(column);
return getINT32((m_xColumns->get())[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISNULLABLE)));
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isSearchable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -177,7 +177,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isSearchable( sal_Int32 column ) throw(SQL
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isReadOnly( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -187,17 +187,17 @@ sal_Bool SAL_CALL OResultSetMetaData::isReadOnly( sal_Int32 column ) throw(SQLEx
return m_bReadOnly || bReadOnly || m_pTable->isReadOnly();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return !isReadOnly(column);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return !isReadOnly(column);
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mozab/MServices.cxx b/connectivity/source/drivers/mozab/MServices.cxx
index 3469a62b75a0..cbe2f70fee1c 100644
--- a/connectivity/source/drivers/mozab/MServices.cxx
+++ b/connectivity/source/drivers/mozab/MServices.cxx
@@ -41,7 +41,7 @@ typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
rtl_ModuleCount*
);
-//---------------------------------------------------------------------------------------
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
@@ -79,7 +79,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
-//---------------------------------------------------------------------------------------
+
typedef void* (SAL_CALL * OMozillaBootstrap_CreateInstanceFunction)(const Reference< XMultiServiceFactory >& _rxFactory );
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createMozillaBootstrap(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception )
{
@@ -109,7 +109,7 @@ typedef void* (SAL_CALL * OMozillaBootstrap_CreateInstanceFunction)(const Refere
}
return NULL;
}
-//---------------------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL mozab_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/mozab/MStatement.cxx b/connectivity/source/drivers/mozab/MStatement.cxx
index 14d154ebf1ae..2632bf8b5737 100644
--- a/connectivity/source/drivers/mozab/MStatement.cxx
+++ b/connectivity/source/drivers/mozab/MStatement.cxx
@@ -58,7 +58,7 @@ static ::osl::Mutex m_ThreadMutex;
using namespace ::comphelper;
using namespace connectivity::mozab;
using namespace connectivity;
-//------------------------------------------------------------------------------
+
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
@@ -66,7 +66,7 @@ using namespace com::sun::star::sdbc;
using namespace com::sun::star::container;
using namespace com::sun::star::io;
using namespace com::sun::star::util;
-//------------------------------------------------------------------------------
+
OCommonStatement::OCommonStatement(OConnection* _pConnection )
:OCommonStatement_IBASE(m_aMutex)
,OPropertySetHelper(OCommonStatement_IBASE::rBHelper)
@@ -83,12 +83,12 @@ OCommonStatement::OCommonStatement(OConnection* _pConnection )
m_pConnection->acquire();
OSL_TRACE("In/Out: OCommonStatement::OCommonStatement" );
}
-// -----------------------------------------------------------------------------
+
OCommonStatement::~OCommonStatement()
{
}
-//------------------------------------------------------------------------------
+
void OCommonStatement::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -105,7 +105,7 @@ void OCommonStatement::disposing()
dispose_ChildImpl();
OCommonStatement_IBASE::disposing();
}
-//-----------------------------------------------------------------------------
+
Any SAL_CALL OCommonStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OCommonStatement_IBASE::queryInterface(rType);
@@ -113,7 +113,7 @@ Any SAL_CALL OCommonStatement::queryInterface( const Type & rType ) throw(Runtim
aRet = OPropertySetHelper::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OCommonStatement::getTypes( ) throw(RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const Reference< XMultiPropertySet > *)0 ),
@@ -122,7 +122,7 @@ Sequence< Type > SAL_CALL OCommonStatement::getTypes( ) throw(RuntimeException)
return ::comphelper::concatSequences(aTypes.getTypes(),OCommonStatement_IBASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OCommonStatement::close( ) throw(SQLException, RuntimeException)
{
{
@@ -133,7 +133,7 @@ void SAL_CALL OCommonStatement::close( ) throw(SQLException, RuntimeException)
}
-// -------------------------------------------------------------------------
+
void OCommonStatement::createTable( ) throw ( SQLException, RuntimeException )
{
if(m_pParseTree)
@@ -178,7 +178,7 @@ void OCommonStatement::createTable( ) throw ( SQLException, RuntimeException )
else
getOwnConnection()->throwSQLException( STR_QUERY_TOO_COMPLEX, *this );
}
-// -------------------------------------------------------------------------
+
OCommonStatement::StatementType OCommonStatement::parseSql( const OUString& sql , sal_Bool bAdjusted)
throw ( SQLException, RuntimeException )
{
@@ -250,7 +250,7 @@ OCommonStatement::StatementType OCommonStatement::parseSql( const OUString& sql
return eSelect;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > OCommonStatement::impl_executeCurrentQuery()
{
clearCachedResultSet();
@@ -265,7 +265,7 @@ Reference< XResultSet > OCommonStatement::impl_executeCurrentQuery()
}
-// -------------------------------------------------------------------------
+
void OCommonStatement::initializeResultSet( OResultSet* _pResult )
{
ENSURE_OR_THROW( _pResult, "invalid result set" );
@@ -277,7 +277,7 @@ void OCommonStatement::initializeResultSet( OResultSet* _pResult )
_pResult->setTable(m_pTable);
}
-// -------------------------------------------------------------------------
+
void OCommonStatement::clearCachedResultSet()
{
Reference< XResultSet > xResultSet( m_xResultSet.get(), UNO_QUERY );
@@ -297,14 +297,14 @@ void OCommonStatement::clearCachedResultSet()
m_xResultSet.clear();
}
-// -------------------------------------------------------------------------
+
void OCommonStatement::cacheResultSet( const ::rtl::Reference< OResultSet >& _pResult )
{
ENSURE_OR_THROW( _pResult.is(), "invalid result set" );
m_xResultSet = Reference< XResultSet >( _pResult.get() );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OCommonStatement::execute( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -316,7 +316,7 @@ sal_Bool SAL_CALL OCommonStatement::execute( const OUString& sql ) throw(SQLExce
// returns true when a resultset is available
return xRS.is();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery( const OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -332,7 +332,7 @@ Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery( const OUString&
return impl_executeCurrentQuery();
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OCommonStatement::getConnection( ) throw(SQLException, RuntimeException)
{
@@ -342,7 +342,7 @@ Reference< XConnection > SAL_CALL OCommonStatement::getConnection( ) throw(SQLE
// just return our connection here
return (Reference< XConnection >)m_pConnection;
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = ::cppu::queryInterface(rType,static_cast< XServiceInfo*> (this));
@@ -350,14 +350,14 @@ Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeExcep
aRet = OCommonStatement::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OCommonStatement::executeUpdate( const OUString& /*sql*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XStatement::executeUpdate", *this );
return 0;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OCommonStatement::getWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -365,9 +365,9 @@ Any SAL_CALL OCommonStatement::getWarnings( ) throw(SQLException, RuntimeExcept
return makeAny(m_aLastWarning);
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
void SAL_CALL OCommonStatement::clearWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -376,7 +376,7 @@ void SAL_CALL OCommonStatement::clearWarnings( ) throw(SQLException, RuntimeExc
m_aLastWarning = SQLWarning();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OCommonStatement::createArrayHelper( ) const
{
// this properties are define by the service resultset
@@ -397,12 +397,12 @@ void SAL_CALL OCommonStatement::clearWarnings( ) throw(SQLException, RuntimeExc
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OCommonStatement::getInfoHelper()
{
return *const_cast<OCommonStatement*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool OCommonStatement::convertFastPropertyValue(
Any & /*rConvertedValue*/,
Any & /*rOldValue*/,
@@ -414,7 +414,7 @@ sal_Bool OCommonStatement::convertFastPropertyValue(
// here we have to try to convert
return bConverted;
}
-// -------------------------------------------------------------------------
+
void OCommonStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& /*rValue*/) throw (Exception)
{
// set the value to whatever is necessary
@@ -432,7 +432,7 @@ void OCommonStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const
;
}
}
-// -------------------------------------------------------------------------
+
void OCommonStatement::getFastPropertyValue(Any& /*rValue*/,sal_Int32 nHandle) const
{
switch(nHandle)
@@ -449,34 +449,34 @@ void OCommonStatement::getFastPropertyValue(Any& /*rValue*/,sal_Int32 nHandle) c
;
}
}
-// -------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbcx.OStatement","com.sun.star.sdbc.Statement");
-// -----------------------------------------------------------------------------
+
void SAL_CALL OCommonStatement::acquire() throw()
{
OCommonStatement_IBASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OCommonStatement::release() throw()
{
relase_ChildImpl();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement::acquire() throw()
{
OCommonStatement::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement::release() throw()
{
OCommonStatement::release();
}
-// -----------------------------------------------------------------------------
+
Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OCommonStatement::getPropertySetInfo( ) throw(RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
void OCommonStatement::createColumnMapping()
{
size_t i;
@@ -499,7 +499,7 @@ void OCommonStatement::createColumnMapping()
OSL_TRACE("AFTER Mapped: %d -> %d", i, m_aColMapping[i] );
#endif
}
-// -----------------------------------------------------------------------------
+
void OCommonStatement::analyseSQL()
{
@@ -525,7 +525,7 @@ void OCommonStatement::analyseSQL()
}
}
}
-//------------------------------------------------------------------
+
void OCommonStatement::setOrderbyColumn( OSQLParseNode* pColumnRef,
OSQLParseNode* pAscendingDescending)
{
@@ -550,6 +550,6 @@ void OCommonStatement::setOrderbyColumn( OSQLParseNode* pColumnRef,
// Ascending or Descending?
m_aOrderbyAscending.push_back((SQL_ISTOKEN(pAscendingDescending,DESC)) ? SQL_DESC : SQL_ASC);
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mozab/MTable.cxx b/connectivity/source/drivers/mozab/MTable.cxx
index 4abecfa5ba64..e0939535352d 100644
--- a/connectivity/source/drivers/mozab/MTable.cxx
+++ b/connectivity/source/drivers/mozab/MTable.cxx
@@ -46,7 +46,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
OTable::OTable( sdbcx::OCollection* _pTables, OConnection* _pConnection,
const OUString& _Name, const OUString& _Type, const OUString& _Description )
:OTable_Base(_pTables, _pConnection, sal_True, _Name, _Type, _Description )
@@ -55,25 +55,25 @@ OTable::OTable( sdbcx::OCollection* _pTables, OConnection* _pConnection,
construct();
}
-//--------------------------------------------------------------------------
+
sdbcx::OCollection* OTable::createColumns( const TStringVector& _rNames )
{
return new OColumns( this, m_aMutex, _rNames );
}
-//--------------------------------------------------------------------------
+
sdbcx::OCollection* OTable::createKeys(const TStringVector& _rNames)
{
return new OKeysHelper( this, m_aMutex, _rNames );
}
-//--------------------------------------------------------------------------
+
sdbcx::OCollection* OTable::createIndexes(const TStringVector& _rNames)
{
return new OIndexesHelper( this, m_aMutex, _rNames );
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/mozab/MTables.cxx b/connectivity/source/drivers/mozab/MTables.cxx
index 91bd7da14abe..7a3ee5b9451a 100644
--- a/connectivity/source/drivers/mozab/MTables.cxx
+++ b/connectivity/source/drivers/mozab/MTables.cxx
@@ -70,17 +70,17 @@ sdbcx::ObjectType OTables::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void OTables::impl_refresh( ) throw(RuntimeException)
{
static_cast<OCatalog&>(m_rParent).refreshTables();
}
-// -------------------------------------------------------------------------
+
void OTables::disposing(void)
{
m_xMetaData.clear();
OCollection::disposing();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx
index d97e4a6ef157..a59240723db4 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx
@@ -51,11 +51,11 @@ MozillaBootstrap::MozillaBootstrap(
m_ProfileAccess(NULL), m_ProfileManager(NULL)
{
}
-// -----------------------------------------------------------------------------
+
MozillaBootstrap::~MozillaBootstrap()
{
}
-// -----------------------------------------------------------------------------
+
void MozillaBootstrap::Init()
{
sal_Bool aProfileExists=sal_False;
@@ -72,7 +72,7 @@ void MozillaBootstrap::Init()
bootupProfile(::com::sun::star::mozilla::MozillaProductType_Mozilla,OUString());
}
-// --------------------------------------------------------------------------------
+
void MozillaBootstrap::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -80,12 +80,12 @@ void MozillaBootstrap::disposing()
}
// static ServiceInfo
-//------------------------------------------------------------------------------
+
OUString MozillaBootstrap::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString(MOZAB_MozillaBootstrap_IMPL_NAME);
}
-//------------------------------------------------------------------------------
+
Sequence< OUString > MozillaBootstrap::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
// which service is supported
@@ -95,7 +95,7 @@ Sequence< OUString > MozillaBootstrap::getSupportedServiceNames_Static( ) throw
return aSNS;
}
-//------------------------------------------------------------------
+
OUString SAL_CALL MozillaBootstrap::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
@@ -106,7 +106,7 @@ sal_Bool SAL_CALL MozillaBootstrap::supportsService( const OUString& _rServiceNa
return cppu::supportsService(this, _rServiceName);
}
-//------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL MozillaBootstrap::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx b/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx
index 71a01493d659..5237a9304f23 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx
@@ -41,7 +41,7 @@ using namespace ::com::sun::star::mozilla;
namespace
{
- // -------------------------------------------------------------------
+
static OUString lcl_getUserDataDirectory()
{
::osl::Security aSecurity;
@@ -59,7 +59,7 @@ namespace
return aConfigPath + "/";
}
- // -------------------------------------------------------------------
+
const size_t NB_PRODUCTS = 3;
const size_t NB_CANDIDATES = 4;
@@ -87,7 +87,7 @@ namespace
"MOZILLA_THUNDERBIRD_PROFILE_ROOT",
};
- // -------------------------------------------------------------------
+
static OUString lcl_guessProfileRoot( MozillaProductType _product )
{
size_t productIndex = _product - 1;
@@ -144,7 +144,7 @@ namespace
}
}
-// -----------------------------------------------------------------------
+
OUString getRegistryDir(MozillaProductType product)
{
if (product == MozillaProductType_Default)
diff --git a/connectivity/source/drivers/mozab/mozillasrc/MDatabaseMetaDataHelper.cxx b/connectivity/source/drivers/mozab/mozillasrc/MDatabaseMetaDataHelper.cxx
index 77a9020a7207..e71d28ba965a 100644
--- a/connectivity/source/drivers/mozab/mozillasrc/MDatabaseMetaDataHelper.cxx
+++ b/connectivity/source/drivers/mozab/mozillasrc/MDatabaseMetaDataHelper.cxx
@@ -87,7 +87,7 @@ namespace connectivity
extern sal_Bool MNS_Init(sal_Bool& aProfileExists);
-// -------------------------------------------------------------------------
+
MDatabaseMetaDataHelper::MDatabaseMetaDataHelper()
:m_bProfileExists(sal_False)
{
@@ -96,7 +96,7 @@ MDatabaseMetaDataHelper::MDatabaseMetaDataHelper()
OSL_TRACE( "\tOUT MDatabaseMetaDataHelper::MDatabaseMetaDataHelper()" );
}
-// -------------------------------------------------------------------------
+
MDatabaseMetaDataHelper::~MDatabaseMetaDataHelper()
{
m_aTableNames.clear();
@@ -198,7 +198,7 @@ static nsresult insertPABDescription()
{0xa2, 0xda, 0x0, 0x10, 0x83, 0x0, 0x3d, 0xc} \
}
-// -------------------------------------------------------------------------
+
// Case where we get a parent uri, and need to list its children.
static nsresult getSubsFromParent(const OString& aParent, nsIEnumerator **aSubs)
{
diff --git a/connectivity/source/drivers/mozab/mozillasrc/MLdapAttributeMap.cxx b/connectivity/source/drivers/mozab/mozillasrc/MLdapAttributeMap.cxx
index add19e6852ba..1324d7822a97 100644
--- a/connectivity/source/drivers/mozab/mozillasrc/MLdapAttributeMap.cxx
+++ b/connectivity/source/drivers/mozab/mozillasrc/MLdapAttributeMap.cxx
@@ -141,21 +141,21 @@ namespace connectivity { namespace mozab {
//====================================================================
//= MLdapAttributeMap
//====================================================================
- // -------------------------------------------------------------------
+
MLdapAttributeMap::MLdapAttributeMap()
:m_pData( new AttributeMap_Data )
{
}
- // -------------------------------------------------------------------
+
MLdapAttributeMap::~MLdapAttributeMap()
{
}
- // -------------------------------------------------------------------
+
NS_IMPL_THREADSAFE_ISUPPORTS1( MLdapAttributeMap, nsIAbLDAPAttributeMap )
- // -------------------------------------------------------------------
+
NS_IMETHODIMP MLdapAttributeMap::GetAttributeList(const nsACString & aProperty, nsACString & _retval)
{
OString sProperty( MTypeConverter::nsACStringToOString( aProperty ) );
@@ -175,7 +175,7 @@ namespace connectivity { namespace mozab {
return NS_OK;
}
- // -------------------------------------------------------------------
+
NS_IMETHODIMP MLdapAttributeMap::GetAttributes(const nsACString & aProperty, PRUint32* aCount, char*** aAttrs)
{
OSL_FAIL( "MLdapAttributeMap::GetAttributes: not implemented!" );
@@ -185,7 +185,7 @@ namespace connectivity { namespace mozab {
return NS_ERROR_NOT_IMPLEMENTED;
}
- // -------------------------------------------------------------------
+
NS_IMETHODIMP MLdapAttributeMap::GetFirstAttribute(const nsACString & aProperty, nsACString & _retval)
{
OString sProperty( MTypeConverter::nsACStringToOString( aProperty ) );
@@ -207,7 +207,7 @@ namespace connectivity { namespace mozab {
return NS_OK;
}
- // -------------------------------------------------------------------
+
NS_IMETHODIMP MLdapAttributeMap::SetAttributeList(const nsACString & aProperty, const nsACString & aAttributeList, PRBool allowInconsistencies)
{
OSL_FAIL( "MLdapAttributeMap::SetAttributeList: not implemented!" );
@@ -217,7 +217,7 @@ namespace connectivity { namespace mozab {
return NS_ERROR_NOT_IMPLEMENTED;
}
- // -------------------------------------------------------------------
+
NS_IMETHODIMP MLdapAttributeMap::GetProperty(const nsACString & aAttribute, nsACString & _retval)
{
OSL_FAIL( "MLdapAttributeMap::GetProperty: not implemented!" );
@@ -226,7 +226,7 @@ namespace connectivity { namespace mozab {
return NS_ERROR_NOT_IMPLEMENTED;
}
- // -------------------------------------------------------------------
+
NS_IMETHODIMP MLdapAttributeMap::GetAllCardAttributes(nsACString & _retval)
{
const MapPropertiesToAttributes& rPropertyMap( lcl_getPropertyMap() );
@@ -246,14 +246,14 @@ namespace connectivity { namespace mozab {
return NS_OK;
}
- // -------------------------------------------------------------------
+
NS_IMETHODIMP MLdapAttributeMap::CheckState(void)
{
// we do not allow modifying the map, so we're always in a valid state
return NS_OK;
}
- // -------------------------------------------------------------------
+
NS_IMETHODIMP MLdapAttributeMap::SetFromPrefs(const nsACString & aPrefBranchName)
{
OSL_FAIL( "MLdapAttributeMap::SetFromPrefs: not implemented!" );
@@ -261,7 +261,7 @@ namespace connectivity { namespace mozab {
return NS_ERROR_NOT_IMPLEMENTED;
}
- // -------------------------------------------------------------------
+
NS_IMETHODIMP MLdapAttributeMap::SetCardPropertiesFromLDAPMessage(nsILDAPMessage* aMessage, nsIAbCard* aCard)
{
NS_ENSURE_ARG_POINTER( aMessage );
@@ -313,7 +313,7 @@ namespace connectivity { namespace mozab {
return NS_OK;
}
- // -------------------------------------------------------------------
+
namespace
{
struct PreferMailFormatType
@@ -347,7 +347,7 @@ namespace connectivity { namespace mozab {
}
}
- // -------------------------------------------------------------------
+
void MLdapAttributeMap::fillCardFromResult( nsIAbCard& _card, const MQueryHelperResultEntry& _result )
{
_card.SetPreferMailFormat( nsIAbPreferMailFormat::unknown );
@@ -391,7 +391,7 @@ namespace connectivity { namespace mozab {
}
}
- // -------------------------------------------------------------------
+
void MLdapAttributeMap::fillResultFromCard( MQueryHelperResultEntry& _result, nsIAbCard& _card )
{
nsXPIDLString value;
diff --git a/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx b/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx
index 039db52576f5..9cd96b40acdc 100644
--- a/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx
+++ b/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx
@@ -191,7 +191,7 @@ nsresult MNSMozabProxy::QueryHelperStub()
}
return rv;
}
-//-------------------------------------------------------------------
+
#define NS_LDAPCONNECTION_CONTRACTID "@mozilla.org/network/ldap-connection;1"
#define NS_LDAPOPERATION_CONTRACTID "@mozilla.org/network/ldap-operation;1"
@@ -287,7 +287,7 @@ NS_IMETHODIMP MLDAPMessageListener::OnLDAPMessage( nsILDAPMessage* aMessage )
return NS_OK;
}
-//-------------------------------------------------------------------
+
nsresult
MNSMozabProxy::testLDAPConnection( )
diff --git a/connectivity/source/drivers/mozab/mozillasrc/MNSTerminateListener.cxx b/connectivity/source/drivers/mozab/mozillasrc/MNSTerminateListener.cxx
index be8d8e637ae2..4325f4e31892 100644
--- a/connectivity/source/drivers/mozab/mozillasrc/MNSTerminateListener.cxx
+++ b/connectivity/source/drivers/mozab/mozillasrc/MNSTerminateListener.cxx
@@ -28,33 +28,33 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::frame;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XTerminateListener> MNSTerminateListener::mxTerminateListener = new MNSTerminateListener();
-// -----------------------------------------
+
// - MNSTerminateListener -
-// -----------------------------------------
+
MNSTerminateListener::MNSTerminateListener( )
{
}
-// -----------------------------------------------------------------------------
+
MNSTerminateListener::~MNSTerminateListener()
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL MNSTerminateListener::disposing( const EventObject& /*Source*/ ) throw( RuntimeException )
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL MNSTerminateListener::queryTermination( const EventObject& /*aEvent*/ ) throw( TerminationVetoException, RuntimeException )
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL MNSTerminateListener::notifyTermination( const EventObject& /*aEvent*/ ) throw( RuntimeException )
{
diff --git a/connectivity/source/drivers/mozab/mozillasrc/MQuery.cxx b/connectivity/source/drivers/mozab/mozillasrc/MQuery.cxx
index 3a618fa8c62a..2395bd0009b0 100644
--- a/connectivity/source/drivers/mozab/mozillasrc/MQuery.cxx
+++ b/connectivity/source/drivers/mozab/mozillasrc/MQuery.cxx
@@ -50,7 +50,7 @@ using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbc;
using namespace connectivity;
-// -------------------------------------------------------------------------
+
// Used to store an nsIAbDirectoryQuery member without the need to use Mozilla
// types in the MQuery.hxx file.
//
@@ -65,7 +65,7 @@ namespace connectivity {
}
}
-// -------------------------------------------------------------------------
+
MQuery::MQuery( const OColumnAlias& _ca )
:m_rColumnAlias( _ca )
{
@@ -79,7 +79,7 @@ MQuery::MQuery( const OColumnAlias& _ca )
OSL_TRACE( "\tOUT MQuery::MQuery( ca )" );
}
-// -------------------------------------------------------------------------
+
MQuery::~MQuery()
{
OSL_TRACE("IN MQuery::~MQuery()");
@@ -98,7 +98,7 @@ MQuery::~MQuery()
OSL_TRACE("\tOUT MQuery::~MQuery()");
}
-// -----------------------------------------------------------------------------
+
void MQuery::construct()
{
// Set default values. (For now just as a reminder).
@@ -113,7 +113,7 @@ void MQuery::construct()
m_aQueryHelper = new MQueryHelper();
NS_IF_ADDREF( m_aQueryHelper);
}
-// -------------------------------------------------------------------------
+
void MQuery::setAddressbook(OUString &ab)
{
OSL_TRACE("IN MQuery::setAddressbook()");
@@ -123,7 +123,7 @@ void MQuery::setAddressbook(OUString &ab)
OSL_TRACE("\tOUT MQuery::setAddressbook()");
}
-// -------------------------------------------------------------------------
+
void MQuery::setMaxNrOfReturns(const sal_Int32 mnr)
{
OSL_TRACE( "IN MQuery::setMaxNrOfReturns()" );
@@ -132,7 +132,7 @@ void MQuery::setMaxNrOfReturns(const sal_Int32 mnr)
m_nMaxNrOfReturns = mnr;
OSL_TRACE("\tOUT MQuery::setMaxNrOfReturns()" );
}
-// -------------------------------------------------------------------------
+
void MQuery::setExpression( MQueryExpression &_expr )
{
OSL_TRACE("IN MQuery::setExpression()");
@@ -142,7 +142,7 @@ void MQuery::setExpression( MQueryExpression &_expr )
OSL_TRACE("\tOUT MQuery::setExpression()");
}
-// -------------------------------------------------------------------------
+
static sal_Int32 generateExpression( MQuery* _aQuery, MQueryExpression* _aExpr,
nsIAbBooleanExpression* queryExpression )
{
@@ -312,7 +312,7 @@ sal_Bool isProfileLocked(OConnection* _pCon)
}
-// -------------------------------------------------------------------------
+
sal_Int32 getDirectoryType(const nsIAbDirectory* directory)
{
nsresult retCode;
@@ -349,7 +349,7 @@ sal_Int32 getDirectoryType(const nsIAbDirectory* directory)
return SDBCAddress::Unknown;
}
-// -------------------------------------------------------------------------
+
sal_Bool isForceQueryProxyUsed(const nsIAbDirectory* directory)
{
sal_Int32 nType = getDirectoryType(directory);
@@ -357,7 +357,7 @@ sal_Bool isForceQueryProxyUsed(const nsIAbDirectory* directory)
return sal_True;
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 MQuery::commitRow(const sal_Int32 rowIndex)
{
if (!m_aQueryHelper || !m_aQueryDirectory || !m_aQueryDirectory->directoryQuery)
@@ -374,7 +374,7 @@ sal_Int32 MQuery::commitRow(const sal_Int32 rowIndex)
return rv;
}
-// -------------------------------------------------------------------------
+
sal_Int32 MQuery::deleteRow(const sal_Int32 rowIndex)
{
if (!m_aQueryHelper || !m_aQueryDirectory || !m_aQueryDirectory->directoryQuery)
@@ -392,7 +392,7 @@ sal_Int32 MQuery::deleteRow(const sal_Int32 rowIndex)
}
-// -------------------------------------------------------------------------
+
sal_Int32 MQuery::executeQuery(OConnection* _pCon)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -410,7 +410,7 @@ sal_Int32 MQuery::executeQuery(OConnection* _pCon)
rv = xMProxy.StartProxy(&args,m_Product,m_Profile);
return rv;
}
-// -------------------------------------------------------------------------
+
sal_Int32 MQuery::executeQueryProxied(OConnection* _pCon)
{
#if OSL_DEBUG_LEVEL > 0
@@ -563,7 +563,7 @@ sal_Int32 MQuery::executeQueryProxied(OConnection* _pCon)
return(0);
}
-// -------------------------------------------------------------------------
+
//
//
// If the query executed is being done asynchronously then this may return
@@ -575,7 +575,7 @@ MQuery::getRowCount()
return( m_aQueryHelper->getResultCount() );
}
-// -------------------------------------------------------------------------
+
//
//
// As opposed to getRowCount() this returns the actual number of rows fetched
@@ -606,7 +606,7 @@ MQuery::waitForQueryComplete( void )
return( sal_False );
}
-// -------------------------------------------------------------------------
+
sal_Bool
MQuery::checkRowAvailable( sal_Int32 nDBRow )
@@ -619,7 +619,7 @@ MQuery::checkRowAvailable( sal_Int32 nDBRow )
return( getRowCount() > nDBRow );
}
-// -------------------------------------------------------------------------
+
sal_Bool
MQuery::setRowValue( ORowSetValue& rValue, sal_Int32 nDBRow,const OUString& aDBColumnName, sal_Int32 nType ) const
{
@@ -644,7 +644,7 @@ MQuery::setRowValue( ORowSetValue& rValue, sal_Int32 nDBRow,const OUString& aDBC
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Bool
MQuery::getRowValue( ORowSetValue& rValue, sal_Int32 nDBRow,const OUString& aDBColumnName, sal_Int32 nType ) const
{
@@ -670,7 +670,7 @@ MQuery::getRowValue( ORowSetValue& rValue, sal_Int32 nDBRow,const OUString& aDBC
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Int32
MQuery::getRowStates(sal_Int32 nDBRow)
{
@@ -728,7 +728,7 @@ MQuery::createNewCard()
NS_ENSURE_SUCCESS(rv,0);
return nNumber;
}
-// -------------------------------------------------------------------------
+
MNameMapper*
MQuery::CreateNameMapper()
@@ -736,13 +736,13 @@ MQuery::CreateNameMapper()
return( new MNameMapper() );
}
-// -------------------------------------------------------------------------
+
void
MQuery::FreeNameMapper( MNameMapper* _ptr )
{
delete _ptr;
}
-// -------------------------------------------------------------------------
+
sal_Bool MQuery::isWritable(OConnection* _pCon)
{
if ( !m_aQueryDirectory )
diff --git a/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx b/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx
index 6ef6759e2bbb..0e9264a39fad 100644
--- a/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx
+++ b/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx
@@ -290,7 +290,7 @@ MQueryHelper::waitForRow( sal_Int32 rowNum )
return( sal_True );
}
-// -------------------------------------------------------------------------
+
sal_Int32
MQueryHelper::getResultCount() const
@@ -308,7 +308,7 @@ MQueryHelper::getResultCount() const
}
}
-// -------------------------------------------------------------------------
+
sal_uInt32
MQueryHelper::getRealCount() const
@@ -317,7 +317,7 @@ MQueryHelper::getRealCount() const
return static_cast<sal_Int32>(m_aResults.size());
}
-// -------------------------------------------------------------------------
+
NS_IMETHODIMP MQueryHelper::OnQueryItem(nsIAbDirectoryQueryResult *result)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -398,7 +398,7 @@ NS_IMETHODIMP MQueryHelper::OnQueryItem(nsIAbDirectoryQueryResult *result)
return(NS_OK);
}
-// -----------------------------------------------------------------------------
+
void MQueryHelper::notifyQueryError()
{
m_bQueryComplete = sal_True ;
@@ -591,7 +591,7 @@ sal_Bool MQueryHelper::resyncRow(sal_uInt32 rowIndex)
getCardValues(card,rowIndex);
return sal_True;
}
-// -------------------------------------------------------------------------
+
sal_Int32 MQueryHelper::createNewCard()
{
::osl::MutexGuard aGuard( m_aMutex );
diff --git a/connectivity/source/drivers/mozab/mozillasrc/MTypeConverter.cxx b/connectivity/source/drivers/mozab/mozillasrc/MTypeConverter.cxx
index 813d67b09179..5272a6b61cab 100644
--- a/connectivity/source/drivers/mozab/mozillasrc/MTypeConverter.cxx
+++ b/connectivity/source/drivers/mozab/mozillasrc/MTypeConverter.cxx
@@ -24,7 +24,7 @@
using namespace connectivity::mozab;
-// -------------------------------------------------------------------------
+
void MTypeConverter::ouStringToNsString(OUString const &ous, nsString &nss)
{
// Convert to OString (utf-8 encoding).
@@ -37,20 +37,20 @@ void MTypeConverter::ouStringToNsString(OUString const &ous, nsString &nss)
//const PRUnichar* uniMozString = (const PRUnichar*) mozString;
nss = mozString; // temp.
}
-// -------------------------------------------------------------------------
+
OString MTypeConverter::nsACStringToOString( const nsACString& _source )
{
const char* buffer = _source.BeginReading();
const char* bufferEnd = _source.EndReading();
return OString( buffer, static_cast<sal_Int32>(bufferEnd - buffer) );
}
-// -------------------------------------------------------------------------
+
void MTypeConverter::asciiToNsACString( const sal_Char* _asciiString, nsACString& _dest )
{
_dest.Truncate();
_dest.AppendASCII( _asciiString );
}
-// -------------------------------------------------------------------------
+
void MTypeConverter::nsStringToOUString(nsString const &nss, OUString &ous)
{
// Get clone of buffer.
@@ -64,7 +64,7 @@ void MTypeConverter::nsStringToOUString(nsString const &nss, OUString &ous)
nsMemory::Free(uc);
}
-// -------------------------------------------------------------------------
+
void MTypeConverter::prUnicharToOUString(PRUnichar const *pru, OUString &ous)
{
// TODO, specify length.
@@ -72,7 +72,7 @@ void MTypeConverter::prUnicharToOUString(PRUnichar const *pru, OUString &ous)
OUString _ous(reinterpret_cast_mingw_only<const sal_Unicode *>(pru));
ous = _ous;
}
-// -------------------------------------------------------------------------
+
char *MTypeConverter::ouStringToCCharStringAscii(OUString const &ous)
{
// Convert OUString to OString,
@@ -80,6 +80,6 @@ char *MTypeConverter::ouStringToCCharStringAscii(OUString const &ous)
return(strdup(os.getStr()));
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mysql/YCatalog.cxx b/connectivity/source/drivers/mysql/YCatalog.cxx
index df97f2db4fcc..d70c750ecbea 100644
--- a/connectivity/source/drivers/mysql/YCatalog.cxx
+++ b/connectivity/source/drivers/mysql/YCatalog.cxx
@@ -26,7 +26,7 @@
#include <comphelper/types.hxx>
-// -------------------------------------------------------------------------
+
using namespace connectivity;
using namespace connectivity::mysql;
using namespace connectivity::sdbcx;
@@ -36,12 +36,12 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
OMySQLCatalog::OMySQLCatalog(const Reference< XConnection >& _xConnection) : OCatalog(_xConnection)
,m_xConnection(_xConnection)
{
}
-// -----------------------------------------------------------------------------
+
void OMySQLCatalog::refreshObjects(const Sequence< OUString >& _sKindOfObject,TStringVector& _rNames)
{
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),
@@ -50,7 +50,7 @@ void OMySQLCatalog::refreshObjects(const Sequence< OUString >& _sKindOfObject,TS
_sKindOfObject);
fillNames(xResult,_rNames);
}
-// -------------------------------------------------------------------------
+
void OMySQLCatalog::refreshTables()
{
TStringVector aVector;
@@ -70,7 +70,7 @@ void OMySQLCatalog::refreshTables()
else
m_pTables = new OTables(m_xMetaData,*this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
void OMySQLCatalog::refreshViews()
{
Sequence< OUString > aTypes(1);
@@ -91,11 +91,11 @@ void OMySQLCatalog::refreshViews()
else
m_pViews = new OViews(m_xMetaData,*this,m_aMutex,aVector);
}
-// -------------------------------------------------------------------------
+
void OMySQLCatalog::refreshGroups()
{
}
-// -------------------------------------------------------------------------
+
void OMySQLCatalog::refreshUsers()
{
TStringVector aVector;
@@ -116,7 +116,7 @@ void OMySQLCatalog::refreshUsers()
else
m_pUsers = new OUsers(*this,m_aMutex,aVector,m_xConnection,this);
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL OMySQLCatalog::queryInterface( const Type & rType ) throw(RuntimeException)
{
if ( rType == ::getCppuType((const Reference<XGroupsSupplier>*)0) )
@@ -125,7 +125,7 @@ Any SAL_CALL OMySQLCatalog::queryInterface( const Type & rType ) throw(RuntimeEx
return OCatalog::queryInterface(rType);
}
-// -----------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OMySQLCatalog::getTypes( ) throw(RuntimeException)
{
Sequence< Type > aTypes = OCatalog::getTypes();
@@ -143,7 +143,7 @@ Sequence< Type > SAL_CALL OMySQLCatalog::getTypes( ) throw(RuntimeException)
const Type* pTypes = aOwnTypes.empty() ? 0 : &aOwnTypes[0];
return Sequence< Type >(pTypes, aOwnTypes.size());
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mysql/YColumns.cxx b/connectivity/source/drivers/mysql/YColumns.cxx
index f936432e76e7..d0dba8c9ca4e 100644
--- a/connectivity/source/drivers/mysql/YColumns.cxx
+++ b/connectivity/source/drivers/mysql/YColumns.cxx
@@ -40,35 +40,35 @@ OMySQLColumns::OMySQLColumns( ::cppu::OWeakObject& _rParent
) : OColumnsHelper(_rParent,_bCase,_rMutex,_rVector,_bUseHardRef)
{
}
-// -----------------------------------------------------------------------------
+
Reference< XPropertySet > OMySQLColumns::createDescriptor()
{
return new OMySQLColumn(sal_True);
}
-// -----------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
+
+
OMySQLColumn::OMySQLColumn( sal_Bool _bCase)
: connectivity::sdbcx::OColumn( _bCase )
{
construct();
}
-// -------------------------------------------------------------------------
+
void OMySQLColumn::construct()
{
m_sAutoIncrement = "auto_increment";
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_AUTOINCREMENTCREATION),PROPERTY_ID_AUTOINCREMENTCREATION,0,&m_sAutoIncrement, ::getCppuType(&m_sAutoIncrement));
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OMySQLColumn::createArrayHelper( sal_Int32 /*_nId*/ ) const
{
return doCreateArrayHelper();
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & SAL_CALL OMySQLColumn::getInfoHelper()
{
return *OMySQLColumn_PROP::getArrayHelper(isNew() ? 1 : 0);
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OMySQLColumn::getSupportedServiceNames( ) throw(RuntimeException)
{
Sequence< OUString > aSupported(1);
@@ -76,6 +76,6 @@ Sequence< OUString > SAL_CALL OMySQLColumn::getSupportedServiceNames( ) throw(R
return aSupported;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mysql/YDriver.cxx b/connectivity/source/drivers/mysql/YDriver.cxx
index 10af859d0dcd..f99166b1a641 100644
--- a/connectivity/source/drivers/mysql/YDriver.cxx
+++ b/connectivity/source/drivers/mysql/YDriver.cxx
@@ -63,14 +63,14 @@ namespace connectivity
//====================================================================
//= ODriverDelegator
//====================================================================
- //--------------------------------------------------------------------
+
ODriverDelegator::ODriverDelegator(const Reference< XComponentContext >& _rxContext)
: ODriverDelegator_BASE(m_aMutex)
,m_xContext(_rxContext)
{
}
- //--------------------------------------------------------------------
+
ODriverDelegator::~ODriverDelegator()
{
try
@@ -87,7 +87,7 @@ namespace connectivity
}
}
- // --------------------------------------------------------------------------------
+
void ODriverDelegator::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -117,12 +117,12 @@ namespace connectivity
{
return _sUrl.copy(0,16) == "sdbc:mysql:odbc:";
}
- //--------------------------------------------------------------------
+
sal_Bool isNativeUrl(const OUString& _sUrl)
{
return (!_sUrl.compareTo(OUString("sdbc:mysql:mysqlc:"), sizeof("sdbc:mysql:mysqlc:")-1));
}
- //--------------------------------------------------------------------
+
T_DRIVERTYPE lcl_getDriverType(const OUString& _sUrl)
{
T_DRIVERTYPE eRet = D_JDBC;
@@ -132,7 +132,7 @@ namespace connectivity
eRet = D_NATIVE;
return eRet;
}
- //--------------------------------------------------------------------
+
OUString transformUrl(const OUString& _sUrl)
{
OUString sNewUrl = _sUrl.copy(11);
@@ -146,14 +146,14 @@ namespace connectivity
}
return sNewUrl;
}
- //--------------------------------------------------------------------
+
Reference< XDriver > lcl_loadDriver(const Reference< XComponentContext >& _rxContext,const OUString& _sUrl)
{
Reference<XDriverManager2> xDriverAccess = DriverManager::create(_rxContext);
Reference< XDriver > xDriver = xDriverAccess->getDriverByURL(_sUrl);
return xDriver;
}
- //--------------------------------------------------------------------
+
Sequence< PropertyValue > lcl_convertProperties(T_DRIVERTYPE _eType,const Sequence< PropertyValue >& info,const OUString& _sUrl)
{
::std::vector<PropertyValue> aProps;
@@ -222,7 +222,7 @@ namespace connectivity
return Sequence< PropertyValue >(pProps, aProps.size());
}
}
- //--------------------------------------------------------------------
+
Reference< XDriver > ODriverDelegator::loadDriver( const OUString& url, const Sequence< PropertyValue >& info )
{
Reference< XDriver > xDriver;
@@ -252,7 +252,7 @@ namespace connectivity
return xDriver;
}
- //--------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL ODriverDelegator::connect( const OUString& url, const Sequence< PropertyValue >& info ) throw (SQLException, RuntimeException)
{
Reference< XConnection > xConnection;
@@ -314,7 +314,7 @@ namespace connectivity
return xConnection;
}
- //--------------------------------------------------------------------
+
sal_Bool SAL_CALL ODriverDelegator::acceptsURL( const OUString& url ) throw (SQLException, RuntimeException)
{
Sequence< PropertyValue > info;
@@ -327,7 +327,7 @@ namespace connectivity
return bOK;
}
- //--------------------------------------------------------------------
+
Sequence< DriverPropertyInfo > SAL_CALL ODriverDelegator::getPropertyInfo( const OUString& url, const Sequence< PropertyValue >& info ) throw (SQLException, RuntimeException)
{
::std::vector< DriverPropertyInfo > aDriverInfo;
@@ -385,19 +385,19 @@ namespace connectivity
return Sequence< DriverPropertyInfo >(&aDriverInfo[0],aDriverInfo.size());
}
- //--------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODriverDelegator::getMajorVersion( ) throw (RuntimeException)
{
return 1;
}
- //--------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODriverDelegator::getMinorVersion( ) throw (RuntimeException)
{
return 0;
}
- //--------------------------------------------------------------------
+
Reference< XTablesSupplier > SAL_CALL ODriverDelegator::getDataDefinitionByConnection( const Reference< XConnection >& connection ) throw (SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -447,7 +447,7 @@ namespace connectivity
return xTab;
}
- //--------------------------------------------------------------------
+
Reference< XTablesSupplier > SAL_CALL ODriverDelegator::getDataDefinitionByURL( const OUString& url, const Sequence< PropertyValue >& info ) throw (SQLException, RuntimeException)
{
if ( ! acceptsURL(url) )
@@ -461,13 +461,13 @@ namespace connectivity
}
// XServiceInfo
- // --------------------------------------------------------------------------------
- //------------------------------------------------------------------------------
+
+
OUString ODriverDelegator::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString("org.openoffice.comp.drivers.MySQL.Driver");
}
- //------------------------------------------------------------------------------
+
Sequence< OUString > ODriverDelegator::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 2 );
@@ -475,7 +475,7 @@ namespace connectivity
aSNS[1] = "com.sun.star.sdbcx.Driver";
return aSNS;
}
- //------------------------------------------------------------------
+
OUString SAL_CALL ODriverDelegator::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
@@ -485,12 +485,12 @@ namespace connectivity
{
return cppu::supportsService(this, _rServiceName);
}
- //------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL ODriverDelegator::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
- //------------------------------------------------------------------
+
//........................................................................
} // namespace connectivity
//........................................................................
diff --git a/connectivity/source/drivers/mysql/YTable.cxx b/connectivity/source/drivers/mysql/YTable.cxx
index aabd1517ac5b..ba17a0993aac 100644
--- a/connectivity/source/drivers/mysql/YTable.cxx
+++ b/connectivity/source/drivers/mysql/YTable.cxx
@@ -58,7 +58,7 @@ namespace connectivity
class OMySQLKeysHelper : public OKeysHelper
{
protected:
- // -----------------------------------------------------------------------------
+
virtual OUString getDropForeignKey() const
{
return OUString(" DROP FOREIGN KEY ");
@@ -89,7 +89,7 @@ OMySQLTable::OMySQLTable( sdbcx::OCollection* _pTables,
Privilege::SELECT;
construct();
}
-// -------------------------------------------------------------------------
+
OMySQLTable::OMySQLTable( sdbcx::OCollection* _pTables,
const Reference< XConnection >& _xConnection,
const OUString& _Name,
@@ -110,41 +110,41 @@ OMySQLTable::OMySQLTable( sdbcx::OCollection* _pTables,
{
construct();
}
-// -------------------------------------------------------------------------
+
void OMySQLTable::construct()
{
OTableHelper::construct();
if ( !isNew() )
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PRIVILEGES), PROPERTY_ID_PRIVILEGES,PropertyAttribute::READONLY,&m_nPrivileges, ::getCppuType(&m_nPrivileges));
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OMySQLTable::createArrayHelper( sal_Int32 /*_nId*/ ) const
{
return doCreateArrayHelper();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OMySQLTable::getInfoHelper()
{
return *static_cast<OMySQLTable_PROP*>(const_cast<OMySQLTable*>(this))->getArrayHelper(isNew() ? 1 : 0);
}
-// -----------------------------------------------------------------------------
+
sdbcx::OCollection* OMySQLTable::createColumns(const TStringVector& _rNames)
{
OMySQLColumns* pColumns = new OMySQLColumns(*this,sal_True,m_aMutex,_rNames);
pColumns->setParent(this);
return pColumns;
}
-// -----------------------------------------------------------------------------
+
sdbcx::OCollection* OMySQLTable::createKeys(const TStringVector& _rNames)
{
return new OMySQLKeysHelper(this,m_aMutex,_rNames);
}
-// -----------------------------------------------------------------------------
+
sdbcx::OCollection* OMySQLTable::createIndexes(const TStringVector& _rNames)
{
return new OIndexesHelper(this,m_aMutex,_rNames);
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > OMySQLTable::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -161,14 +161,14 @@ Sequence< sal_Int8 > OMySQLTable::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OMySQLTable::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelImplementationId().getConstArray(), rId.getConstArray(), 16 ) )
? reinterpret_cast< sal_Int64 >( this )
: OTable_TYPEDEF::getSomething(rId);
}
-// -------------------------------------------------------------------------
+
// XAlterTable
void SAL_CALL OMySQLTable::alterColumnByName( const OUString& colName, const Reference< XPropertySet >& descriptor ) throw(SQLException, NoSuchElementException, RuntimeException)
{
@@ -289,7 +289,7 @@ void SAL_CALL OMySQLTable::alterColumnByName( const OUString& colName, const Ref
}
}
-// -----------------------------------------------------------------------------
+
void OMySQLTable::alterColumnType(sal_Int32 nNewType,const OUString& _rColName, const Reference<XPropertySet>& _xDescriptor)
{
const OUString sQuote = getMetaData()->getIdentifierQuoteString( );
@@ -305,13 +305,13 @@ void OMySQLTable::alterColumnType(sal_Int32 nNewType,const OUString& _rColName,
sSql += OTables::adjustSQL(::dbtools::createStandardColumnPart(xProp,getConnection(),static_cast<OTables*>(m_pTables),getTypeCreatePattern()));
executeStatement(sSql);
}
-// -----------------------------------------------------------------------------
+
OUString OMySQLTable::getTypeCreatePattern() const
{
static const OUString s_sCreatePattern("(M,D)");
return s_sCreatePattern;
}
-// -----------------------------------------------------------------------------
+
void OMySQLTable::alterDefaultValue(const OUString& _sNewDefault,const OUString& _rColName)
{
const OUString sQuote = getMetaData()->getIdentifierQuoteString( );
@@ -321,7 +321,7 @@ void OMySQLTable::alterDefaultValue(const OUString& _sNewDefault,const OUString&
executeStatement(sSql);
}
-// -----------------------------------------------------------------------------
+
void OMySQLTable::dropDefaultValue(const OUString& _rColName)
{
const OUString sQuote = getMetaData()->getIdentifierQuoteString( );
@@ -331,7 +331,7 @@ void OMySQLTable::dropDefaultValue(const OUString& _rColName)
executeStatement(sSql);
}
-// -----------------------------------------------------------------------------
+
OUString OMySQLTable::getAlterTableColumnPart()
{
OUString sSql( "ALTER TABLE " );
@@ -342,7 +342,7 @@ OUString OMySQLTable::getAlterTableColumnPart()
return sSql;
}
-// -----------------------------------------------------------------------------
+
void OMySQLTable::executeStatement(const OUString& _rStatement )
{
OUString sSQL = _rStatement;
@@ -356,7 +356,7 @@ void OMySQLTable::executeStatement(const OUString& _rStatement )
::comphelper::disposeComponent(xStmt);
}
}
-// -----------------------------------------------------------------------------
+
OUString OMySQLTable::getRenameStart() const
{
return OUString("RENAME TABLE ");
diff --git a/connectivity/source/drivers/mysql/YTables.cxx b/connectivity/source/drivers/mysql/YTables.cxx
index 08957989a178..eb9156aab7d2 100644
--- a/connectivity/source/drivers/mysql/YTables.cxx
+++ b/connectivity/source/drivers/mysql/YTables.cxx
@@ -96,30 +96,30 @@ sdbcx::ObjectType OTables::createObject(const OUString& _rName)
return xRet;
}
-// -------------------------------------------------------------------------
+
void OTables::impl_refresh( ) throw(RuntimeException)
{
static_cast<OMySQLCatalog&>(m_rParent).refreshTables();
}
-// -------------------------------------------------------------------------
+
void OTables::disposing(void)
{
m_xMetaData.clear();
OCollection::disposing();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OTables::createDescriptor()
{
return new OMySQLTable(this,static_cast<OMySQLCatalog&>(m_rParent).getConnection());
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OTables::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
createTable(descriptor);
return createObject( _rForName );
}
-// -------------------------------------------------------------------------
+
// XDrop
void OTables::dropObject(sal_Int32 _nPos,const OUString _sElementName)
{
@@ -160,7 +160,7 @@ void OTables::dropObject(sal_Int32 _nPos,const OUString _sElementName)
}
}
}
-// -------------------------------------------------------------------------
+
OUString OTables::adjustSQL(const OUString& _sSql)
{
OUString sSQL = _sSql;
@@ -176,7 +176,7 @@ OUString OTables::adjustSQL(const OUString& _sSql)
}
return sSQL;
}
-// -------------------------------------------------------------------------
+
void OTables::createTable( const Reference< XPropertySet >& descriptor )
{
const Reference< XConnection > xConnection = static_cast<OMySQLCatalog&>(m_rParent).getConnection();
@@ -189,7 +189,7 @@ void OTables::createTable( const Reference< XPropertySet >& descriptor )
::comphelper::disposeComponent(xStmt);
}
}
-// -----------------------------------------------------------------------------
+
void OTables::appendNew(const OUString& _rsNewTable)
{
insertElement(_rsNewTable,NULL);
@@ -200,13 +200,13 @@ void OTables::appendNew(const OUString& _rsNewTable)
while (aListenerLoop.hasMoreElements())
static_cast<XContainerListener*>(aListenerLoop.next())->elementInserted(aEvent);
}
-// -----------------------------------------------------------------------------
+
OUString OTables::getNameForObject(const sdbcx::ObjectType& _xObject)
{
OSL_ENSURE(_xObject.is(),"OTables::getNameForObject: Object is NULL!");
return ::dbtools::composeTableName( m_xMetaData, _xObject, ::dbtools::eInDataManipulation, false, false, false );
}
-// -----------------------------------------------------------------------------
+
void OTables::addComment(const Reference< XPropertySet >& descriptor,OUStringBuffer& _rOut)
{
OUString sDesc;
diff --git a/connectivity/source/drivers/mysql/YUser.cxx b/connectivity/source/drivers/mysql/YUser.cxx
index aff9841f8dee..e3f760b76208 100644
--- a/connectivity/source/drivers/mysql/YUser.cxx
+++ b/connectivity/source/drivers/mysql/YUser.cxx
@@ -35,13 +35,13 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -------------------------------------------------------------------------
+
OMySQLUser::OMySQLUser( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xConnection) : connectivity::sdbcx::OUser(sal_True)
,m_xConnection(_xConnection)
{
construct();
}
-// -------------------------------------------------------------------------
+
OMySQLUser::OMySQLUser( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xConnection,
const OUString& _Name
) : connectivity::sdbcx::OUser(_Name,sal_True)
@@ -49,34 +49,34 @@ OMySQLUser::OMySQLUser( const ::com::sun::star::uno::Reference< ::com::sun::st
{
construct();
}
-// -------------------------------------------------------------------------
+
void OMySQLUser::refreshGroups()
{
}
-// -------------------------------------------------------------------------
+
OUserExtend::OUserExtend( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xConnection) : OMySQLUser(_xConnection)
{
construct();
}
-// -------------------------------------------------------------------------
+
void OUserExtend::construct()
{
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PASSWORD), PROPERTY_ID_PASSWORD,0,&m_Password,::getCppuType(static_cast< OUString*>(0)));
}
-// -----------------------------------------------------------------------------
+
cppu::IPropertyArrayHelper* OUserExtend::createArrayHelper() const
{
Sequence< Property > aProps;
describeProperties(aProps);
return new cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
cppu::IPropertyArrayHelper & OUserExtend::getInfoHelper()
{
return *OUserExtend_PROP::getArrayHelper();
}
typedef connectivity::sdbcx::OUser_BASE OUser_BASE_RBHELPER;
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OMySQLUser::getPrivileges( const OUString& objName, sal_Int32 objType ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -86,7 +86,7 @@ sal_Int32 SAL_CALL OMySQLUser::getPrivileges( const OUString& objName, sal_Int32
findPrivilegesAndGrantPrivileges(objName,objType,nRights,nRightsWithGrant);
return nRights;
}
-// -----------------------------------------------------------------------------
+
void OMySQLUser::findPrivilegesAndGrantPrivileges(const OUString& objName, sal_Int32 objType,sal_Int32& nRights,sal_Int32& nRightsWithGrant) throw(SQLException, RuntimeException)
{
nRightsWithGrant = nRights = 0;
@@ -200,7 +200,7 @@ void OMySQLUser::findPrivilegesAndGrantPrivileges(const OUString& objName, sal_I
::comphelper::disposeComponent(xRes);
}
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OMySQLUser::getGrantablePrivileges( const OUString& objName, sal_Int32 objType ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -210,7 +210,7 @@ sal_Int32 SAL_CALL OMySQLUser::getGrantablePrivileges( const OUString& objName,
findPrivilegesAndGrantPrivileges(objName,objType,nRights,nRightsWithGrant);
return nRightsWithGrant;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OMySQLUser::grantPrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(SQLException, RuntimeException)
{
if ( objType != PrivilegeObject::TABLE )
@@ -236,7 +236,7 @@ void SAL_CALL OMySQLUser::grantPrivileges( const OUString& objName, sal_Int32 ob
::comphelper::disposeComponent(xStmt);
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OMySQLUser::revokePrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(SQLException, RuntimeException)
{
if ( objType != PrivilegeObject::TABLE )
@@ -262,7 +262,7 @@ void SAL_CALL OMySQLUser::revokePrivileges( const OUString& objName, sal_Int32 o
::comphelper::disposeComponent(xStmt);
}
}
-// -----------------------------------------------------------------------------
+
// XUser
void SAL_CALL OMySQLUser::changePassword( const OUString& /*oldPassword*/, const OUString& newPassword ) throw(SQLException, RuntimeException)
{
@@ -280,7 +280,7 @@ void SAL_CALL OMySQLUser::changePassword( const OUString& /*oldPassword*/, const
::comphelper::disposeComponent(xStmt);
}
}
-// -----------------------------------------------------------------------------
+
OUString OMySQLUser::getPrivilegeString(sal_Int32 nRights) const
{
OUString sPrivs;
@@ -324,6 +324,6 @@ OUString OMySQLUser::getPrivilegeString(sal_Int32 nRights) const
return sPrivs;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mysql/YUsers.cxx b/connectivity/source/drivers/mysql/YUsers.cxx
index f71549ddcf0e..6791435eaac0 100644
--- a/connectivity/source/drivers/mysql/YUsers.cxx
+++ b/connectivity/source/drivers/mysql/YUsers.cxx
@@ -47,24 +47,24 @@ OUsers::OUsers( ::cppu::OWeakObject& _rParent,
,m_pParent(_pParent)
{
}
-// -----------------------------------------------------------------------------
+
sdbcx::ObjectType OUsers::createObject(const OUString& _rName)
{
return new OMySQLUser(m_xConnection,_rName);
}
-// -------------------------------------------------------------------------
+
void OUsers::impl_refresh() throw(RuntimeException)
{
m_pParent->refreshUsers();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OUsers::createDescriptor()
{
OUserExtend* pNew = new OUserExtend(m_xConnection);
return pNew;
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OUsers::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
@@ -89,7 +89,7 @@ sdbcx::ObjectType OUsers::appendObject( const OUString& _rForName, const Referen
return createObject( _rForName );
}
-// -------------------------------------------------------------------------
+
// XDrop
void OUsers::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName)
{
@@ -103,6 +103,6 @@ void OUsers::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName)
::comphelper::disposeComponent(xStmt);
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mysql/YViews.cxx b/connectivity/source/drivers/mysql/YViews.cxx
index a2378d1382cb..12fa1daad23f 100644
--- a/connectivity/source/drivers/mysql/YViews.cxx
+++ b/connectivity/source/drivers/mysql/YViews.cxx
@@ -66,32 +66,32 @@ sdbcx::ObjectType OViews::createObject(const OUString& _rName)
sCatalog
);
}
-// -------------------------------------------------------------------------
+
void OViews::impl_refresh( ) throw(RuntimeException)
{
static_cast<OMySQLCatalog&>(m_rParent).refreshTables();
}
-// -------------------------------------------------------------------------
+
void OViews::disposing(void)
{
m_xMetaData.clear();
OCollection::disposing();
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > OViews::createDescriptor()
{
Reference<XConnection> xConnection = static_cast<OMySQLCatalog&>(m_rParent).getConnection();
connectivity::sdbcx::OView* pNew = new connectivity::sdbcx::OView(sal_True,xConnection->getMetaData());
return pNew;
}
-// -------------------------------------------------------------------------
+
// XAppend
sdbcx::ObjectType OViews::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
createView(descriptor);
return createObject( _rForName );
}
-// -------------------------------------------------------------------------
+
// XDrop
void OViews::dropObject(sal_Int32 _nPos,const OUString /*_sElementName*/)
{
@@ -113,14 +113,14 @@ void OViews::dropObject(sal_Int32 _nPos,const OUString /*_sElementName*/)
::comphelper::disposeComponent(xStmt);
}
}
-// -----------------------------------------------------------------------------
+
void OViews::dropByNameImpl(const OUString& elementName)
{
m_bInDrop = sal_True;
OCollection_TYPE::dropByName(elementName);
m_bInDrop = sal_False;
}
-// -----------------------------------------------------------------------------
+
void OViews::createView( const Reference< XPropertySet >& descriptor )
{
Reference<XConnection> xConnection = static_cast<OMySQLCatalog&>(m_rParent).getConnection();
diff --git a/connectivity/source/drivers/mysql/Yservices.cxx b/connectivity/source/drivers/mysql/Yservices.cxx
index 136a74019f58..950418751a66 100644
--- a/connectivity/source/drivers/mysql/Yservices.cxx
+++ b/connectivity/source/drivers/mysql/Yservices.cxx
@@ -35,7 +35,7 @@ typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
rtl_ModuleCount*
);
-//---------------------------------------------------------------------------------------
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
@@ -75,7 +75,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
-//---------------------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL mysql_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/odbc/OConnection.cxx b/connectivity/source/drivers/odbc/OConnection.cxx
index 03942e561bd3..4ada11bb59f1 100644
--- a/connectivity/source/drivers/odbc/OConnection.cxx
+++ b/connectivity/source/drivers/odbc/OConnection.cxx
@@ -39,12 +39,12 @@ using namespace connectivity::odbc;
using namespace connectivity;
using namespace dbtools;
-//------------------------------------------------------------------------------
+
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
-// --------------------------------------------------------------------------------
+
OConnection::OConnection(const SQLHANDLE _pDriverHandle,ODBCDriver* _pDriver)
: OSubComponent<OConnection, OConnection_BASE>((::cppu::OWeakObject*)_pDriver, this)
,m_pDriver(_pDriver)
@@ -61,7 +61,7 @@ OConnection::OConnection(const SQLHANDLE _pDriverHandle,ODBCDriver* _pDriver)
{
m_pDriver->acquire();
}
-//-----------------------------------------------------------------------------
+
OConnection::~OConnection()
{
if(!isClosed( ))
@@ -84,18 +84,18 @@ OConnection::~OConnection()
m_pDriver->release();
m_pDriver = NULL;
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL OConnection::release() throw()
{
relase_ChildImpl();
}
-// -----------------------------------------------------------------------------
+
oslGenericFunction OConnection::getOdbcFunction(sal_Int32 _nIndex) const
{
OSL_ENSURE(m_pDriver,"OConnection::getOdbcFunction: m_pDriver is null!");
return m_pDriver->getOdbcFunction(_nIndex);
}
-//-----------------------------------------------------------------------------
+
SQLRETURN OConnection::OpenConnection(const OUString& aConnectStr,sal_Int32 nTimeOut, sal_Bool bSilent)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -176,7 +176,7 @@ SQLRETURN OConnection::OpenConnection(const OUString& aConnectStr,sal_Int32 nTim
return nSQLRETURN;
}
-//-----------------------------------------------------------------------------
+
SQLRETURN OConnection::Construct(const OUString& url,const Sequence< PropertyValue >& info) throw(SQLException)
{
m_aConnectionHandle = SQL_NULL_HANDLE;
@@ -278,10 +278,10 @@ SQLRETURN OConnection::Construct(const OUString& url,const Sequence< PropertyVal
return nSQLRETURN;
}
// XServiceInfo
-// --------------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OConnection, "com.sun.star.sdbc.drivers.odbc.OConnection", "com.sun.star.sdbc.Connection")
-// --------------------------------------------------------------------------------
+
Reference< XStatement > SAL_CALL OConnection::createStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -291,7 +291,7 @@ Reference< XStatement > SAL_CALL OConnection::createStatement( ) throw(SQLExcep
m_aStatements.push_back(WeakReferenceHelper(xReturn));
return xReturn;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -301,13 +301,13 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const OU
m_aStatements.push_back(WeakReferenceHelper(xReturn));
return xReturn;
}
-// --------------------------------------------------------------------------------
+
Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall( const OUString& /*sql*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::prepareCall", *this );
return NULL;
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OConnection::nativeSQL( const OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -318,7 +318,7 @@ OUString SAL_CALL OConnection::nativeSQL( const OUString& sql ) throw(SQLExcepti
OTools::ThrowException(this,N3SQLNativeSql(m_aConnectionHandle,(SDB_ODBC_CHAR*)aSql.getStr(),aSql.getLength(),(SDB_ODBC_CHAR*)pOut,sizeof pOut - 1,&nOutLen),m_aConnectionHandle,SQL_HANDLE_DBC,*this);
return OUString(pOut,nOutLen,getTextEncoding());
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setAutoCommit( sal_Bool autoCommit ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -330,7 +330,7 @@ void SAL_CALL OConnection::setAutoCommit( sal_Bool autoCommit ) throw(SQLExcepti
(SQLPOINTER)((autoCommit) ? SQL_AUTOCOMMIT_ON : SQL_AUTOCOMMIT_OFF) ,SQL_IS_INTEGER),
m_aConnectionHandle,SQL_HANDLE_DBC,*this);
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::getAutoCommit( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -342,7 +342,7 @@ sal_Bool SAL_CALL OConnection::getAutoCommit( ) throw(SQLException, RuntimeExce
SQL_ATTR_AUTOCOMMIT, &nOption,0,0),m_aConnectionHandle,SQL_HANDLE_DBC,*this);
return nOption == SQL_AUTOCOMMIT_ON ;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::commit( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -351,7 +351,7 @@ void SAL_CALL OConnection::commit( ) throw(SQLException, RuntimeException)
OTools::ThrowException(this,N3SQLEndTran(SQL_HANDLE_DBC,m_aConnectionHandle,SQL_COMMIT),m_aConnectionHandle,SQL_HANDLE_DBC,*this);
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::rollback( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -360,14 +360,14 @@ void SAL_CALL OConnection::rollback( ) throw(SQLException, RuntimeException)
OTools::ThrowException(this,N3SQLEndTran(SQL_HANDLE_DBC,m_aConnectionHandle,SQL_ROLLBACK),m_aConnectionHandle,SQL_HANDLE_DBC,*this);
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::isClosed( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
return OConnection_BASE::rBHelper.bDisposed;
}
-// --------------------------------------------------------------------------------
+
Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -382,7 +382,7 @@ Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData( ) throw(SQLEx
return xMetaData;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setReadOnly( sal_Bool readOnly ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -393,13 +393,13 @@ void SAL_CALL OConnection::setReadOnly( sal_Bool readOnly ) throw(SQLException,
N3SQLSetConnectAttr(m_aConnectionHandle,SQL_ATTR_ACCESS_MODE,reinterpret_cast< SQLPOINTER >( readOnly ),SQL_IS_INTEGER),
m_aConnectionHandle,SQL_HANDLE_DBC,*this);
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OConnection::isReadOnly() throw(SQLException, RuntimeException)
{
// const member which will initialized only once
return m_bReadOnly;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setCatalog( const OUString& catalog ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -411,7 +411,7 @@ void SAL_CALL OConnection::setCatalog( const OUString& catalog ) throw(SQLExcept
N3SQLSetConnectAttr(m_aConnectionHandle,SQL_ATTR_CURRENT_CATALOG,(SDB_ODBC_CHAR*)aCat.getStr(),SQL_NTS),
m_aConnectionHandle,SQL_HANDLE_DBC,*this);
}
-// --------------------------------------------------------------------------------
+
OUString SAL_CALL OConnection::getCatalog( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -426,7 +426,7 @@ OUString SAL_CALL OConnection::getCatalog( ) throw(SQLException, RuntimeExcepti
return OUString(pCat,nValueLen,getTextEncoding());
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setTransactionIsolation( sal_Int32 level ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -438,7 +438,7 @@ void SAL_CALL OConnection::setTransactionIsolation( sal_Int32 level ) throw(SQLE
(SQLPOINTER)(sal_IntPtr)level,SQL_IS_INTEGER),
m_aConnectionHandle,SQL_HANDLE_DBC,*this);
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OConnection::getTransactionIsolation( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -452,7 +452,7 @@ sal_Int32 SAL_CALL OConnection::getTransactionIsolation( ) throw(SQLException,
m_aConnectionHandle,SQL_HANDLE_DBC,*this);
return nTxn;
}
-// --------------------------------------------------------------------------------
+
Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OConnection::getTypeMap( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -461,12 +461,12 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OConnection::getT
return NULL;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::setTypeMap( const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XConnection::setTypeMap", *this );
}
-// --------------------------------------------------------------------------------
+
// XCloseable
void SAL_CALL OConnection::close( ) throw(SQLException, RuntimeException)
{
@@ -477,17 +477,17 @@ void SAL_CALL OConnection::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// --------------------------------------------------------------------------------
+
// XWarningsSupplier
Any SAL_CALL OConnection::getWarnings( ) throw(SQLException, RuntimeException)
{
return Any();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OConnection::clearWarnings( ) throw(SQLException, RuntimeException)
{
}
-//------------------------------------------------------------------------------
+
void OConnection::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -505,12 +505,12 @@ void OConnection::disposing()
dispose_ChildImpl();
}
-// -----------------------------------------------------------------------------
+
OConnection* OConnection::cloneConnection()
{
return new OConnection(m_pDriverHandleCopy,m_pDriver);
}
-// -----------------------------------------------------------------------------
+
SQLHANDLE OConnection::createStatementHandle()
{
OConnection* pConnectionTemp = this;
@@ -541,7 +541,7 @@ SQLHANDLE OConnection::createStatementHandle()
return aStatementHandle;
}
-// -----------------------------------------------------------------------------
+
void OConnection::freeStatementHandle(SQLHANDLE& _pHandle)
{
if( SQL_NULL_HANDLE == _pHandle )
@@ -563,7 +563,7 @@ void OConnection::freeStatementHandle(SQLHANDLE& _pHandle)
}
--m_nStatementCount;
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx b/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx
index 63f20e2ee020..0a9888d67ae9 100644
--- a/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx
+++ b/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx
@@ -59,11 +59,11 @@ ODatabaseMetaData::ODatabaseMetaData(const SQLHANDLE _pHandle,OConnection* _pCon
osl_atomic_decrement( &m_refCount );
}
}
-// -------------------------------------------------------------------------
+
ODatabaseMetaData::~ODatabaseMetaData()
{
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > ODatabaseMetaData::impl_getTypeInfo_throw( )
{
Reference< XResultSet > xRef;
@@ -80,7 +80,7 @@ Reference< XResultSet > ODatabaseMetaData::impl_getTypeInfo_throw( )
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs( ) throw(SQLException, RuntimeException)
{
Reference< XResultSet > xRef;
@@ -104,7 +104,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs( ) throw(SQLExc
return xRef;
}
-// -------------------------------------------------------------------------
+
OUString ODatabaseMetaData::impl_getCatalogSeparator_throw( )
{
OUString aVal;
@@ -113,7 +113,7 @@ OUString ODatabaseMetaData::impl_getCatalogSeparator_throw( )
return aVal;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getSchemas( ) throw(SQLException, RuntimeException)
{
Reference< XResultSet > xRef;
@@ -129,7 +129,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getSchemas( ) throw(SQLExce
}
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges(
const Any& catalog, const OUString& schema, const OUString& table,
const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
@@ -147,7 +147,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges(
}
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
const Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern,
const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
@@ -165,7 +165,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
}
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
const Any& catalog, const OUString& schemaPattern,
const OUString& tableNamePattern, const Sequence< OUString >& types ) throw(SQLException, RuntimeException)
@@ -183,7 +183,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
}
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns(
const Any& catalog, const OUString& schemaPattern,
const OUString& procedureNamePattern, const OUString& columnNamePattern ) throw(SQLException, RuntimeException)
@@ -201,7 +201,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns(
}
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures(
const Any& catalog, const OUString& schemaPattern,
const OUString& procedureNamePattern ) throw(SQLException, RuntimeException)
@@ -219,7 +219,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures(
}
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
@@ -246,91 +246,91 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns(
return xRef;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_BINARY_LITERAL_LEN,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxRowSize( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_ROW_SIZE,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCatalogNameLength( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_CATALOG_NAME_LEN,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCharLiteralLength( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_CHAR_LITERAL_LEN,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnNameLength( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_COLUMN_NAME_LEN,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInIndex( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_COLUMNS_IN_INDEX,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCursorNameLength( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_CURSOR_NAME_LEN,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxConnections( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_DRIVER_CONNECTIONS/*SQL_ACTIVE_CONNECTIONS*/,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInTable( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_COLUMNS_IN_TABLE,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatementLength( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_STATEMENT_LEN,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTableNameLength( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_TABLE_NAME_LEN,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaData::impl_getMaxTablesInSelect_throw( )
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_TABLES_IN_SELECT,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
@@ -347,7 +347,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys(
}
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
@@ -364,7 +364,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys(
}
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
@@ -381,7 +381,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys(
}
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo(
const Any& catalog, const OUString& schema, const OUString& table,
sal_Bool unique, sal_Bool approximate ) throw(SQLException, RuntimeException)
@@ -399,7 +399,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo(
}
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getBestRowIdentifier(
const Any& catalog, const OUString& schema, const OUString& table, sal_Int32 scope,
sal_Bool nullable ) throw(SQLException, RuntimeException)
@@ -417,7 +417,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getBestRowIdentifier(
}
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
const Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern ) throw(SQLException, RuntimeException)
{
@@ -430,7 +430,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
pResult->openTablePrivileges(m_bUseCatalog ? catalog : Any(),schemaPattern,tableNamePattern);
return xRef;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference(
const Any& primaryCatalog, const OUString& primarySchema,
const OUString& primaryTable, const Any& foreignCatalog,
@@ -450,63 +450,63 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference(
}
return xRef;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException)
{
OUString aVal;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_ROW_SIZE_INCLUDES_LONG,aVal,*this,m_pConnection->getTextEncoding());
return aVal.toChar() == 'Y';
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_QUOTED_IDENTIFIER_CASE,nValue,*this);
return nValue == SQL_IC_LOWER;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_IDENTIFIER_CASE,nValue,*this);
return nValue == SQL_IC_LOWER;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw( )
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_QUOTED_IDENTIFIER_CASE,nValue,*this);
return nValue == SQL_IC_MIXED;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_IDENTIFIER_CASE,nValue,*this);
return nValue == SQL_IC_MIXED;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_QUOTED_IDENTIFIER_CASE,nValue,*this);
return nValue == SQL_IC_UPPER;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_IDENTIFIER_CASE,nValue,*this);
return nValue == SQL_IC_UPPER;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsAlterTableWithAddColumn_throw( )
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_ALTER_TABLE,nValue,*this);
return (nValue & SQL_AT_ADD_COLUMN) == SQL_AT_ADD_COLUMN;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsAlterTableWithDropColumn_throw( )
{
SQLUINTEGER nValue;
@@ -515,21 +515,21 @@ sal_Bool ODatabaseMetaData::impl_supportsAlterTableWithDropColumn_throw( )
((nValue & SQL_AT_DROP_COLUMN_CASCADE) == SQL_AT_DROP_COLUMN_CASCADE) ||
((nValue & SQL_AT_DROP_COLUMN_RESTRICT) == SQL_AT_DROP_COLUMN_RESTRICT);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_INDEX_SIZE,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_NON_NULLABLE_COLUMNS,nValue,*this);
return nValue == SQL_NNC_NON_NULL;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException)
{
OUString aVal;
@@ -537,28 +537,28 @@ OUString SAL_CALL ODatabaseMetaData::getCatalogTerm( ) throw(SQLException, Runt
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CATALOG_TERM,aVal,*this,m_pConnection->getTextEncoding());
return aVal;
}
-// -------------------------------------------------------------------------
+
OUString ODatabaseMetaData::impl_getIdentifierQuoteString_throw( )
{
OUString aVal;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_IDENTIFIER_QUOTE_CHAR,aVal,*this,m_pConnection->getTextEncoding());
return aVal;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( ) throw(SQLException, RuntimeException)
{
OUString aVal;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SPECIAL_CHARACTERS,aVal,*this,m_pConnection->getTextEncoding());
return aVal;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CORRELATION_NAME,nValue,*this);
return nValue != SQL_CN_NONE;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_isCatalogAtStart_throw( )
{
SQLUSMALLINT nValue=0;
@@ -566,126 +566,126 @@ sal_Bool ODatabaseMetaData::impl_isCatalogAtStart_throw( )
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CATALOG_LOCATION,nValue,*this);
return nValue == SQL_CL_START;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_TXN_CAPABLE,nValue,*this);
return nValue == SQL_TC_DDL_IGNORE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_TXN_CAPABLE,nValue,*this);
return nValue == SQL_TC_DDL_COMMIT;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_TXN_CAPABLE,nValue,*this);
return nValue == SQL_TC_DML;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_TXN_CAPABLE,nValue,*this);
return nValue == SQL_TC_ALL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_DYNAMIC_CURSOR_ATTRIBUTES1,nValue,*this);
return (nValue & SQL_CA1_POS_DELETE) == SQL_CA1_POS_DELETE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_DYNAMIC_CURSOR_ATTRIBUTES1,nValue,*this);
return (nValue & SQL_CA1_POS_UPDATE) == SQL_CA1_POS_UPDATE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CURSOR_ROLLBACK_BEHAVIOR,nValue,*this);
return nValue == SQL_CB_PRESERVE || nValue == SQL_CB_CLOSE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CURSOR_COMMIT_BEHAVIOR,nValue,*this);
return nValue == SQL_CB_PRESERVE || nValue == SQL_CB_CLOSE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CURSOR_COMMIT_BEHAVIOR,nValue,*this);
return nValue == SQL_CB_PRESERVE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CURSOR_ROLLBACK_BEHAVIOR,nValue,*this);
return nValue == SQL_CB_PRESERVE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 level ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_TXN_ISOLATION_OPTION,nValue,*this);
return (nValue & static_cast<SQLUINTEGER>(level)) == static_cast<SQLUINTEGER>(level);
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsSchemasInDataManipulation_throw( )
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SCHEMA_USAGE,nValue,*this);
return (nValue & SQL_SU_DML_STATEMENTS) == SQL_SU_DML_STATEMENTS;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SQL_CONFORMANCE,nValue,*this);
return nValue == SQL_SC_SQL92_FULL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SQL_CONFORMANCE,nValue,*this);
return nValue == SQL_SC_SQL92_ENTRY;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException)
{
OUString aStr;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_INTEGRITY,aStr,*this,m_pConnection->getTextEncoding());
return aStr.toChar() == 'Y';
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SCHEMA_USAGE,nValue,*this);
return (nValue & SQL_SU_INDEX_DEFINITION) == SQL_SU_INDEX_DEFINITION;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsSchemasInTableDefinitions_throw( )
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SCHEMA_USAGE,nValue,*this);
return (nValue & SQL_SU_TABLE_DEFINITION) == SQL_SU_TABLE_DEFINITION;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsCatalogsInTableDefinitions_throw( )
{
SQLUINTEGER nValue=0;
@@ -693,7 +693,7 @@ sal_Bool ODatabaseMetaData::impl_supportsCatalogsInTableDefinitions_throw( )
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CATALOG_USAGE,nValue,*this);
return (nValue & SQL_CU_TABLE_DEFINITION) == SQL_CU_TABLE_DEFINITION;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue=0;
@@ -701,7 +701,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions( ) thro
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CATALOG_USAGE,nValue,*this);
return (nValue & SQL_CU_INDEX_DEFINITION) == SQL_CU_INDEX_DEFINITION;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( )
{
SQLUINTEGER nValue=0;
@@ -709,14 +709,14 @@ sal_Bool ODatabaseMetaData::impl_supportsCatalogsInDataManipulation_throw( )
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CATALOG_USAGE,nValue,*this);
return (nValue & SQL_CU_DML_STATEMENTS) == SQL_CU_DML_STATEMENTS;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_OJ_CAPABILITIES,nValue,*this);
return ((nValue & (SQL_OJ_FULL|SQL_OJ_LEFT|SQL_OJ_RIGHT|SQL_OJ_NESTED|SQL_OJ_NOT_ORDERED|SQL_OJ_ALL_COMPARISON_OPS|SQL_OJ_INNER)) != 0);
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException)
{
Reference< XResultSet > xRef;
@@ -732,110 +732,110 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLE
}
return xRef;
}
-// -------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaData::impl_getMaxStatements_throw( )
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_CONCURRENT_ACTIVITIES,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxProcedureNameLength( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_PROCEDURE_NAME_LEN,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_SCHEMA_NAME_LEN,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_TXN_CAPABLE,nValue,*this);
return nValue != SQL_TC_NONE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_ACCESSIBLE_PROCEDURES,aValue,*this,m_pConnection->getTextEncoding());
return aValue.toChar() == 'Y';
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_PROCEDURES,aValue,*this,m_pConnection->getTextEncoding());
return aValue.toChar() == 'Y';
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_DYNAMIC_CURSOR_ATTRIBUTES1,nValue,*this);
return (nValue & SQL_CA1_POSITIONED_UPDATE) == SQL_CA1_POSITIONED_UPDATE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_ACCESSIBLE_TABLES,aValue,*this,m_pConnection->getTextEncoding());
return aValue.toChar() == 'Y';
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException)
{
return m_pConnection->isReadOnly();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_FILE_USAGE,nValue,*this);
return nValue == SQL_FILE_CATALOG;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_FILE_USAGE,nValue,*this);
return nValue == SQL_FILE_TABLE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CONVERT_FUNCTIONS,nValue,*this);
return (nValue & SQL_FN_CVT_CONVERT) == SQL_FN_CVT_CONVERT;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CONCAT_NULL_BEHAVIOR,nValue,*this);
return nValue == SQL_CB_NULL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_COLUMN_ALIAS,aValue,*this,m_pConnection->getTextEncoding());
return aValue.toChar() == 'Y';
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CORRELATION_NAME,nValue,*this);
return nValue != SQL_CN_NONE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 fromType, sal_Int32 toType ) throw(SQLException, RuntimeException)
{
if(fromType == toType)
@@ -991,133 +991,133 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 fromType, sal_In
return bConvert;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_EXPRESSIONS_IN_ORDERBY,aValue,*this,m_pConnection->getTextEncoding());
return aValue.toChar() == 'Y';
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_GROUP_BY,nValue,*this);
return nValue != SQL_GB_NOT_SUPPORTED;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_GROUP_BY,nValue,*this);
return nValue != SQL_GB_GROUP_BY_CONTAINS_SELECT;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_GROUP_BY,nValue,*this);
return nValue == SQL_GB_NO_RELATION;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MULTIPLE_ACTIVE_TXN,aValue,*this,m_pConnection->getTextEncoding());
return aValue.toChar() == 'Y';
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MULT_RESULT_SETS,aValue,*this,m_pConnection->getTextEncoding());
return aValue.toChar() == 'Y';
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_LIKE_ESCAPE_CLAUSE,aValue,*this,m_pConnection->getTextEncoding());
return aValue.toChar() == 'Y';
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_ORDER_BY_COLUMNS_IN_SELECT,aValue,*this,m_pConnection->getTextEncoding());
return aValue.toChar() == 'N';
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_UNION,nValue,*this);
return (nValue & SQL_U_UNION) == SQL_U_UNION;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_UNION,nValue,*this);
return (nValue & SQL_U_UNION_ALL) == SQL_U_UNION_ALL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_IDENTIFIER_CASE,nValue,*this);
return nValue == SQL_IC_MIXED;
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw( )
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_QUOTED_IDENTIFIER_CASE,nValue,*this);
return nValue == SQL_IC_MIXED;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_NULL_COLLATION,nValue,*this);
return nValue == SQL_NC_END;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_NULL_COLLATION,nValue,*this);
return nValue == SQL_NC_START;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_NULL_COLLATION,nValue,*this);
return nValue == SQL_NC_HIGH;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_NULL_COLLATION,nValue,*this);
return nValue == SQL_NC_LOW;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SCHEMA_USAGE,nValue,*this);
return (nValue & SQL_SU_PROCEDURE_INVOCATION) == SQL_SU_PROCEDURE_INVOCATION;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SCHEMA_USAGE,nValue,*this);
return (nValue & SQL_SU_PRIVILEGE_DEFINITION) == SQL_SU_PRIVILEGE_DEFINITION;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue=0;
@@ -1125,7 +1125,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CATALOG_USAGE,nValue,*this);
return (nValue & SQL_CU_PROCEDURE_INVOCATION) == SQL_CU_PROCEDURE_INVOCATION;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue=0;
@@ -1133,56 +1133,56 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( )
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CATALOG_USAGE,nValue,*this);
return (nValue & SQL_CU_PRIVILEGE_DEFINITION) == SQL_CU_PRIVILEGE_DEFINITION;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SUBQUERIES,nValue,*this);
return (nValue & SQL_SQ_CORRELATED_SUBQUERIES) == SQL_SQ_CORRELATED_SUBQUERIES;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SUBQUERIES,nValue,*this);
return (nValue & SQL_SQ_COMPARISON) == SQL_SQ_COMPARISON;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SUBQUERIES,nValue,*this);
return (nValue & SQL_SQ_EXISTS) == SQL_SQ_EXISTS;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SUBQUERIES,nValue,*this);
return (nValue & SQL_SQ_IN) == SQL_SQ_IN;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SUBQUERIES,nValue,*this);
return (nValue & SQL_SQ_QUANTIFIED) == SQL_SQ_QUANTIFIED;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SQL_CONFORMANCE,nValue,*this);
return nValue == SQL_SC_SQL92_INTERMEDIATE;
}
-// -----------------------------------------------------------------------------
+
OUString ODatabaseMetaData::getURLImpl()
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_DATA_SOURCE_NAME,aValue,*this,m_pConnection->getTextEncoding());
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getURL( ) throw(SQLException, RuntimeException)
{
OUString aValue = m_pConnection->getURL();
@@ -1192,91 +1192,91 @@ OUString SAL_CALL ODatabaseMetaData::getURL( ) throw(SQLException, RuntimeExcep
}
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getUserName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_USER_NAME,aValue,*this,m_pConnection->getTextEncoding());
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDriverName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_DRIVER_NAME,aValue,*this,m_pConnection->getTextEncoding());
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDriverVersion() throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_DRIVER_ODBC_VER,aValue,*this,m_pConnection->getTextEncoding());
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_DRIVER_VER,aValue,*this,m_pConnection->getTextEncoding());
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_DBMS_NAME,aValue,*this,m_pConnection->getTextEncoding());
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getProcedureTerm( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_PROCEDURE_TERM,aValue,*this,m_pConnection->getTextEncoding());
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSchemaTerm( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SCHEMA_TERM,aValue,*this,m_pConnection->getTextEncoding());
return aValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion( ) throw(RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_DRIVER_VER,aValue,*this,m_pConnection->getTextEncoding());
return aValue.copy(0,aValue.indexOf('.')).toInt32();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SUBQUERIES,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_DRIVER_VER,aValue,*this,m_pConnection->getTextEncoding());
return aValue.copy(0,aValue.lastIndexOf('.')).toInt32();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSQLKeywords( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_KEYWORDS,aValue,*this,m_pConnection->getTextEncoding());
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape( ) throw(SQLException, RuntimeException)
{
OUString aValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_SEARCH_PATTERN_ESCAPE,aValue,*this,m_pConnection->getTextEncoding());
return aValue;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getStringFunctions( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
@@ -1337,7 +1337,7 @@ OUString SAL_CALL ODatabaseMetaData::getStringFunctions( ) throw(SQLException,
return aValue.makeStringAndClear();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
@@ -1392,7 +1392,7 @@ OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions( ) throw(SQLException
return aValue.makeStringAndClear();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
@@ -1411,7 +1411,7 @@ OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( ) throw(SQLException,
return aValue.makeStringAndClear();
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
@@ -1472,7 +1472,7 @@ OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( ) throw(SQLException,
return aValue.makeStringAndClear();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
@@ -1487,7 +1487,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLExc
return nValue == SQL_OAC_LEVEL2;
}
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
@@ -1502,7 +1502,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLExcepti
return nValue == SQL_OSC_CORE || nValue == SQL_OAC_LEVEL1 || nValue == SQL_OAC_LEVEL2;
}
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
@@ -1517,54 +1517,54 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLExce
return nValue == SQL_OAC_LEVEL1 || nValue == SQL_OAC_LEVEL2;
}
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_OJ_CAPABILITIES,nValue,*this);
return (nValue & SQL_OJ_FULL) == SQL_OJ_FULL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException)
{
return supportsFullOuterJoins( );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_COLUMNS_IN_GROUP_BY,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInOrderBy( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_COLUMNS_IN_ORDER_BY,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInSelect( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_COLUMNS_IN_SELECT,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxUserNameLength( ) throw(SQLException, RuntimeException)
{
SQLUSMALLINT nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_MAX_USER_NAME_LEN,nValue,*this);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_CURSOR_SENSITIVITY,nValue,*this);
return (nValue & static_cast<SQLUINTEGER>(setType)) == static_cast<SQLUINTEGER>(setType);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 concurrency ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
@@ -1596,7 +1596,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 set
}
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
@@ -1618,7 +1618,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 setType ) t
OTools::GetInfo(m_pConnection,m_aConnectionHandle,nAskFor,nValue,*this);
return (nValue & SQL_CA2_SENSITIVITY_UPDATES) == SQL_CA2_SENSITIVITY_UPDATES;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
@@ -1640,7 +1640,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 setType ) t
OTools::GetInfo(m_pConnection,m_aConnectionHandle,nAskFor,nValue,*this);
return (nValue & SQL_CA2_SENSITIVITY_DELETIONS) != SQL_CA2_SENSITIVITY_DELETIONS;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
SQLUINTEGER nValue;
@@ -1662,46 +1662,46 @@ sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 setType ) t
OTools::GetInfo(m_pConnection,m_aConnectionHandle,nAskFor,nValue,*this);
return (nValue & SQL_CA2_SENSITIVITY_ADDITIONS) == SQL_CA2_SENSITIVITY_ADDITIONS;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
return ownUpdatesAreVisible(setType);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
return ownDeletesAreVisible(setType);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)
{
return ownInsertsAreVisible(setType);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 /*setType*/ ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& /*typeNamePattern*/, const Sequence< sal_Int32 >& /*types*/ ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx b/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx
index 5d944287f81c..e5b6535a6942 100644
--- a/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx
+++ b/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx
@@ -42,14 +42,14 @@ using namespace ::comphelper;
using namespace connectivity::odbc;
using namespace cppu;
-//------------------------------------------------------------------------------
+
using namespace ::com::sun::star::lang;
using namespace com::sun::star::uno;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::util;
-// -------------------------------------------------------------------------
+
ODatabaseMetaDataResultSet::ODatabaseMetaDataResultSet(OConnection* _pConnection)
:ODatabaseMetaDataResultSet_BASE(m_aMutex)
,OPropertySetHelper(ODatabaseMetaDataResultSet_BASE::rBHelper)
@@ -77,7 +77,7 @@ ODatabaseMetaDataResultSet::ODatabaseMetaDataResultSet(OConnection* _pConnection
// allocBuffer();
}
-// -------------------------------------------------------------------------
+
ODatabaseMetaDataResultSet::~ODatabaseMetaDataResultSet()
{
OSL_ENSURE(ODatabaseMetaDataResultSet_BASE::rBHelper.bDisposed,"Object wasn't disposed!");
@@ -88,7 +88,7 @@ ODatabaseMetaDataResultSet::~ODatabaseMetaDataResultSet()
}
delete [] m_pRowStatusArray;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::disposing(void)
{
OPropertySetHelper::disposing();
@@ -101,28 +101,28 @@ void ODatabaseMetaDataResultSet::disposing(void)
m_xMetaData.clear();
m_pConnection->release();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL ODatabaseMetaDataResultSet::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OPropertySetHelper::queryInterface(rType);
return aRet.hasValue() ? aRet : ODatabaseMetaDataResultSet_BASE::queryInterface(rType);
}
-// -----------------------------------------------------------------------------
+
Reference< XPropertySetInfo > SAL_CALL ODatabaseMetaDataResultSet::getPropertySetInfo( ) throw(RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::acquire() throw()
{
ODatabaseMetaDataResultSet_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::release() throw()
{
ODatabaseMetaDataResultSet_BASE::release();
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL ODatabaseMetaDataResultSet::getTypes( ) throw(RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const Reference< XMultiPropertySet > *)0 ),
@@ -131,7 +131,7 @@ Sequence< Type > SAL_CALL ODatabaseMetaDataResultSet::getTypes( ) throw(Runtime
return ::comphelper::concatSequences(aTypes.getTypes(),ODatabaseMetaDataResultSet_BASE::getTypes());
}
-// -----------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaDataResultSet::mapColumn (sal_Int32 column)
{
sal_Int32 map = column;
@@ -144,7 +144,7 @@ sal_Int32 ODatabaseMetaDataResultSet::mapColumn (sal_Int32 column)
return map;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::findColumn( const OUString& columnName ) throw(SQLException, RuntimeException)
{
@@ -192,20 +192,20 @@ template < typename T, SQLSMALLINT sqlTypeId > T ODatabaseMetaDataResultSet::get
return nVal;
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL ODatabaseMetaDataResultSet::getBinaryStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getBinaryStream", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL ODatabaseMetaDataResultSet::getCharacterStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getCharacterStream", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::getBoolean( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -233,13 +233,13 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::getBoolean( sal_Int32 columnIndex
}
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL ODatabaseMetaDataResultSet::getByte( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getInteger<sal_Int8, SQL_C_STINYINT>( columnIndex );
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL ODatabaseMetaDataResultSet::getBytes( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -268,7 +268,7 @@ Sequence< sal_Int8 > SAL_CALL ODatabaseMetaDataResultSet::getBytes( sal_Int32 co
m_bWasNull = sal_True;
return Sequence<sal_Int8>();
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Date SAL_CALL ODatabaseMetaDataResultSet::getDate( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -290,7 +290,7 @@ Sequence< sal_Int8 > SAL_CALL ODatabaseMetaDataResultSet::getBytes( sal_Int32 co
m_bWasNull = sal_True;
return Date();
}
-// -------------------------------------------------------------------------
+
double SAL_CALL ODatabaseMetaDataResultSet::getDouble( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -307,7 +307,7 @@ double SAL_CALL ODatabaseMetaDataResultSet::getDouble( sal_Int32 columnIndex ) t
m_bWasNull = sal_True;
return nValue;
}
-// -------------------------------------------------------------------------
+
float SAL_CALL ODatabaseMetaDataResultSet::getFloat( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -324,25 +324,25 @@ float SAL_CALL ODatabaseMetaDataResultSet::getFloat( sal_Int32 columnIndex ) thr
m_bWasNull = sal_True;
return nVal;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::getInt( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getInteger<sal_Int32, SQL_C_SLONG>( columnIndex );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::getRow( ) throw(SQLException, RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL ODatabaseMetaDataResultSet::getLong( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getInteger<sal_Int64, SQL_C_SBIGINT>( columnIndex );
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL ODatabaseMetaDataResultSet::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -350,45 +350,45 @@ Reference< XResultSetMetaData > SAL_CALL ODatabaseMetaDataResultSet::getMetaData
::osl::MutexGuard aGuard( m_aMutex );
return m_xMetaData.is() ? m_xMetaData : (m_xMetaData = new OResultSetMetaData(m_pConnection,m_aStatementHandle));
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL ODatabaseMetaDataResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getArray", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL ODatabaseMetaDataResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getClob", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL ODatabaseMetaDataResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getBlob", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL ODatabaseMetaDataResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getRef", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL ODatabaseMetaDataResultSet::getObject( sal_Int32 /*columnIndex*/, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getObject", *this );
return Any();
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL ODatabaseMetaDataResultSet::getShort( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getInteger<sal_Int16, SQL_C_SSHORT>( columnIndex );
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL ODatabaseMetaDataResultSet::getString( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -407,7 +407,7 @@ OUString SAL_CALL ODatabaseMetaDataResultSet::getString( sal_Int32 columnIndex )
return aVal;
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Time SAL_CALL ODatabaseMetaDataResultSet::getTime( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
@@ -425,7 +425,7 @@ OUString SAL_CALL ODatabaseMetaDataResultSet::getString( sal_Int32 columnIndex )
m_bWasNull = sal_True;
return Time(0, aTime.second,aTime.minute,aTime.hour, false);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::DateTime SAL_CALL ODatabaseMetaDataResultSet::getTimestamp( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
@@ -444,7 +444,7 @@ OUString SAL_CALL ODatabaseMetaDataResultSet::getString( sal_Int32 columnIndex )
return DateTime(aTime.fraction, aTime.second, aTime.minute, aTime.hour,
aTime.day, aTime.month, aTime.year, false);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isAfterLast( ) throw(SQLException, RuntimeException)
{
@@ -455,7 +455,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isAfterLast( ) throw(SQLException
return m_nCurrentFetchState == SQL_NO_DATA;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isFirst( ) throw(SQLException, RuntimeException)
{
@@ -465,7 +465,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isFirst( ) throw(SQLException, Ru
return m_nRowPos == 1;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isLast( ) throw(SQLException, RuntimeException)
{
@@ -475,7 +475,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isLast( ) throw(SQLException, Run
return m_bEOF && m_nCurrentFetchState != SQL_NO_DATA;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
{
@@ -487,7 +487,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::beforeFirst( ) throw(SQLException, Ru
previous();
m_nCurrentFetchState = SQL_SUCCESS;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::afterLast( ) throw(SQLException, RuntimeException)
{
@@ -498,7 +498,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::afterLast( ) throw(SQLException, Runt
if(last())
next();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::close( ) throw(SQLException, RuntimeException)
{
@@ -510,7 +510,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::close( ) throw(SQLException, RuntimeE
}
dispose();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::first( ) throw(SQLException, RuntimeException)
{
@@ -527,7 +527,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::first( ) throw(SQLException, Runt
m_nRowPos = 1;
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::last( ) throw(SQLException, RuntimeException)
{
@@ -543,7 +543,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::last( ) throw(SQLException, Runti
m_bEOF = sal_True;
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::absolute( sal_Int32 row ) throw(SQLException, RuntimeException)
{
@@ -559,7 +559,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::absolute( sal_Int32 row ) throw(SQ
m_nRowPos = row;
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::relative( sal_Int32 row ) throw(SQLException, RuntimeException)
{
@@ -575,7 +575,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::relative( sal_Int32 row ) throw(SQ
m_nRowPos += row;
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::previous( ) throw(SQLException, RuntimeException)
{
@@ -593,12 +593,12 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::previous( ) throw(SQLException, R
m_nRowPos = 0;
return bRet;
}
-// -------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL ODatabaseMetaDataResultSet::getStatement( ) throw(SQLException, RuntimeException)
{
return NULL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowDeleted( ) throw(SQLException, RuntimeException)
{
@@ -609,7 +609,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowDeleted( ) throw(SQLException,
return m_pRowStatusArray[0] == SQL_ROW_DELETED;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowInserted( ) throw(SQLException, RuntimeException)
{
checkDisposed(ODatabaseMetaDataResultSet_BASE::rBHelper.bDisposed);
@@ -618,7 +618,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowInserted( ) throw(SQLException
return m_pRowStatusArray[0] == SQL_ROW_ADDED;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowUpdated( ) throw(SQLException, RuntimeException)
{
@@ -628,7 +628,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::rowUpdated( ) throw(SQLException,
return m_pRowStatusArray[0] == SQL_ROW_UPDATED;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isBeforeFirst( ) throw(SQLException, RuntimeException)
{
@@ -639,7 +639,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::isBeforeFirst( ) throw(SQLExcepti
return m_nRowPos == 0;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::next( ) throw(SQLException, RuntimeException)
{
@@ -658,7 +658,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::next( ) throw(SQLException, Runti
++m_nRowPos;
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::wasNull( ) throw(SQLException, RuntimeException)
{
@@ -669,7 +669,7 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSet::wasNull( ) throw(SQLException, Ru
return m_bWasNull;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::refreshRow( ) throw(SQLException, RuntimeException)
{
@@ -677,7 +677,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::refreshRow( ) throw(SQLException, Run
::osl::MutexGuard aGuard( m_aMutex );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::cancel( ) throw(RuntimeException)
{
@@ -688,43 +688,43 @@ void SAL_CALL ODatabaseMetaDataResultSet::cancel( ) throw(RuntimeException)
OTools::ThrowException(m_pConnection,N3SQLCancel(m_aStatementHandle),m_aStatementHandle,SQL_HANDLE_STMT,*this);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL ODatabaseMetaDataResultSet::clearWarnings( ) throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL ODatabaseMetaDataResultSet::getWarnings( ) throw(SQLException, RuntimeException)
{
return Any();
}
-//------------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaDataResultSet::getResultSetConcurrency() const throw(SQLException, RuntimeException)
{
return ResultSetConcurrency::READ_ONLY;
}
-//------------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaDataResultSet::getResultSetType() const throw(SQLException, RuntimeException)
{
return ResultSetType::FORWARD_ONLY;
}
-//------------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaDataResultSet::getFetchDirection() const throw(SQLException, RuntimeException)
{
return FetchDirection::FORWARD;
}
-//------------------------------------------------------------------------------
+
sal_Int32 ODatabaseMetaDataResultSet::getFetchSize() const throw(SQLException, RuntimeException)
{
sal_Int32 nValue=1;
return nValue;
}
-//------------------------------------------------------------------------------
+
OUString ODatabaseMetaDataResultSet::getCursorName() const throw(SQLException, RuntimeException)
{
return OUString();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* ODatabaseMetaDataResultSet::createArrayHelper( ) const
{
@@ -739,12 +739,12 @@ OUString ODatabaseMetaDataResultSet::getCursorName() const throw(SQLException, R
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & ODatabaseMetaDataResultSet::getInfoHelper()
{
return *const_cast<ODatabaseMetaDataResultSet*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool ODatabaseMetaDataResultSet::convertFastPropertyValue(
Any & rConvertedValue,
Any & rOldValue,
@@ -767,7 +767,7 @@ sal_Bool ODatabaseMetaDataResultSet::convertFastPropertyValue(
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const Any& /*rValue*/ ) throw (Exception)
{
switch(nHandle)
@@ -782,7 +782,7 @@ void ODatabaseMetaDataResultSet::setFastPropertyValue_NoBroadcast( sal_Int32 nHa
OSL_FAIL("setFastPropertyValue_NoBroadcast: Illegal handle value!");
}
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) const
{
switch(nHandle)
@@ -804,7 +804,7 @@ void ODatabaseMetaDataResultSet::getFastPropertyValue( Any& rValue, sal_Int32 nH
break;
}
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openTypeInfo() throw(SQLException, RuntimeException)
{
TInt2IntMap aMap;
@@ -846,7 +846,7 @@ void ODatabaseMetaDataResultSet::openTypeInfo() throw(SQLException, RuntimeExcep
OTools::ThrowException(m_pConnection,N3SQLGetTypeInfo(m_aStatementHandle, SQL_ALL_TYPES),m_aStatementHandle,SQL_HANDLE_STMT,*this);
checkColumnCount();
}
-//-----------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openTables(const Any& catalog, const OUString& schemaPattern,
const OUString& tableNamePattern,
const Sequence< OUString >& types ) throw(SQLException, RuntimeException)
@@ -895,7 +895,7 @@ void ODatabaseMetaDataResultSet::openTables(const Any& catalog, const OUString&
checkColumnCount();
}
-//-----------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openTablesTypes( ) throw(SQLException, RuntimeException)
{
SQLRETURN nRetcode = N3SQLTables(m_aStatementHandle,
@@ -911,7 +911,7 @@ void ODatabaseMetaDataResultSet::openTablesTypes( ) throw(SQLException, RuntimeE
m_xMetaData = new OResultSetMetaData(m_pConnection,m_aStatementHandle,m_aColMapping);
checkColumnCount();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openCatalogs() throw(SQLException, RuntimeException)
{
SQLRETURN nRetcode = N3SQLTables(m_aStatementHandle,
@@ -928,7 +928,7 @@ void ODatabaseMetaDataResultSet::openCatalogs() throw(SQLException, RuntimeExcep
m_xMetaData = new OResultSetMetaData(m_pConnection,m_aStatementHandle,m_aColMapping);
checkColumnCount();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openSchemas() throw(SQLException, RuntimeException)
{
SQLRETURN nRetcode = N3SQLTables(m_aStatementHandle,
@@ -944,7 +944,7 @@ void ODatabaseMetaDataResultSet::openSchemas() throw(SQLException, RuntimeExcept
m_xMetaData = new OResultSetMetaData(m_pConnection,m_aStatementHandle,m_aColMapping);
checkColumnCount();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openColumnPrivileges( const Any& catalog, const OUString& schema,
const OUString& table, const OUString& columnNamePattern )
throw(SQLException, RuntimeException)
@@ -979,7 +979,7 @@ void ODatabaseMetaDataResultSet::openColumnPrivileges( const Any& catalog, cons
checkColumnCount();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openColumns( const Any& catalog, const OUString& schemaPattern,
const OUString& tableNamePattern, const OUString& columnNamePattern )
throw(SQLException, RuntimeException)
@@ -1047,7 +1047,7 @@ void ODatabaseMetaDataResultSet::openColumns( const Any& catalog,
m_aValueRange[5] = aMap;
checkColumnCount();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openProcedureColumns( const Any& catalog, const OUString& schemaPattern,
const OUString& procedureNamePattern,const OUString& columnNamePattern )
throw(SQLException, RuntimeException)
@@ -1081,7 +1081,7 @@ void ODatabaseMetaDataResultSet::openProcedureColumns( const Any& catalog,
OTools::ThrowException(m_pConnection,nRetcode,m_aStatementHandle,SQL_HANDLE_STMT,*this);
checkColumnCount();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openProcedures(const Any& catalog, const OUString& schemaPattern,
const OUString& procedureNamePattern)
throw(SQLException, RuntimeException)
@@ -1112,7 +1112,7 @@ void ODatabaseMetaDataResultSet::openProcedures(const Any& catalog, const OUStri
OTools::ThrowException(m_pConnection,nRetcode,m_aStatementHandle,SQL_HANDLE_STMT,*this);
checkColumnCount();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openSpecialColumns(sal_Bool _bRowVer,const Any& catalog, const OUString& schema,
const OUString& table,sal_Int32 scope, sal_Bool nullable )
throw(SQLException, RuntimeException)
@@ -1157,19 +1157,19 @@ void ODatabaseMetaDataResultSet::openSpecialColumns(sal_Bool _bRowVer,const Any&
OTools::ThrowException(m_pConnection,nRetcode,m_aStatementHandle,SQL_HANDLE_STMT,*this);
checkColumnCount();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openVersionColumns(const Any& catalog, const OUString& schema,
const OUString& table) throw(SQLException, RuntimeException)
{
openSpecialColumns(sal_True,catalog,schema,table,SQL_SCOPE_TRANSACTION,sal_False);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openBestRowIdentifier( const Any& catalog, const OUString& schema,
const OUString& table,sal_Int32 scope,sal_Bool nullable ) throw(SQLException, RuntimeException)
{
openSpecialColumns(sal_False,catalog,schema,table,scope,nullable);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openForeignKeys( const Any& catalog, const OUString* schema,
const OUString* table,
const Any& catalog2, const OUString* schema2,
@@ -1200,20 +1200,20 @@ void ODatabaseMetaDataResultSet::openForeignKeys( const Any& catalog, const OUSt
OTools::ThrowException(m_pConnection,nRetcode,m_aStatementHandle,SQL_HANDLE_STMT,*this);
checkColumnCount();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openImportedKeys(const Any& catalog, const OUString& schema,
const OUString& table) throw(SQLException, RuntimeException)
{
openForeignKeys(Any(),NULL,NULL,catalog, schema.equalsAscii("%") ? &schema : NULL, &table);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openExportedKeys(const Any& catalog, const OUString& schema,
const OUString& table) throw(SQLException, RuntimeException)
{
openForeignKeys(catalog, schema.equalsAscii("%") ? &schema : NULL, &table,Any(),NULL,NULL);
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openPrimaryKeys(const Any& catalog, const OUString& schema,
const OUString& table) throw(SQLException, RuntimeException)
{
@@ -1242,7 +1242,7 @@ void ODatabaseMetaDataResultSet::openPrimaryKeys(const Any& catalog, const OUStr
OTools::ThrowException(m_pConnection,nRetcode,m_aStatementHandle,SQL_HANDLE_STMT,*this);
checkColumnCount();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openTablePrivileges(const Any& catalog, const OUString& schemaPattern,
const OUString& tableNamePattern) throw(SQLException, RuntimeException)
{
@@ -1271,7 +1271,7 @@ void ODatabaseMetaDataResultSet::openTablePrivileges(const Any& catalog, const O
OTools::ThrowException(m_pConnection,nRetcode,m_aStatementHandle,SQL_HANDLE_STMT,*this);
checkColumnCount();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::openIndexInfo( const Any& catalog, const OUString& schema,
const OUString& table,sal_Bool unique,sal_Bool approximate )
throw(SQLException, RuntimeException)
@@ -1303,14 +1303,14 @@ void ODatabaseMetaDataResultSet::openIndexInfo( const Any& catalog, const OUStri
OTools::ThrowException(m_pConnection,nRetcode,m_aStatementHandle,SQL_HANDLE_STMT,*this);
checkColumnCount();
}
-// -------------------------------------------------------------------------
+
void ODatabaseMetaDataResultSet::checkColumnCount()
{
sal_Int16 nNumResultCols=0;
OTools::ThrowException(m_pConnection,N3SQLNumResultCols(m_aStatementHandle,&nNumResultCols),m_aStatementHandle,SQL_HANDLE_STMT,*this);
m_nDriverColumnCount = nNumResultCols;
}
-// -----------------------------------------------------------------------------
+
SWORD ODatabaseMetaDataResultSet::impl_getColumnType_nothrow(sal_Int32 columnIndex)
{
diff --git a/connectivity/source/drivers/odbc/ODriver.cxx b/connectivity/source/drivers/odbc/ODriver.cxx
index 091efa9a696c..d82362129042 100644
--- a/connectivity/source/drivers/odbc/ODriver.cxx
+++ b/connectivity/source/drivers/odbc/ODriver.cxx
@@ -31,14 +31,14 @@ using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
-// --------------------------------------------------------------------------------
+
ODBCDriver::ODBCDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory)
:ODriver_BASE(m_aMutex)
,m_xORB(_rxFactory)
,m_pDriverHandle(SQL_NULL_HANDLE)
{
}
-// --------------------------------------------------------------------------------
+
void ODBCDriver::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -56,7 +56,7 @@ void ODBCDriver::disposing()
}
// static ServiceInfo
-//------------------------------------------------------------------------------
+
OUString ODBCDriver::getImplementationName_Static( ) throw(RuntimeException)
{
return OUString("com.sun.star.comp.sdbc.ODBCDriver");
@@ -64,7 +64,7 @@ OUString ODBCDriver::getImplementationName_Static( ) throw(RuntimeException)
// Please take care when changing it.
}
-//------------------------------------------------------------------------------
+
Sequence< OUString > ODBCDriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 1 );
@@ -72,7 +72,7 @@ Sequence< OUString > ODBCDriver::getSupportedServiceNames_Static( ) throw (Runt
return aSNS;
}
-//------------------------------------------------------------------
+
OUString SAL_CALL ODBCDriver::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_Static();
@@ -83,13 +83,13 @@ sal_Bool SAL_CALL ODBCDriver::supportsService( const OUString& _rServiceName ) t
return cppu::supportsService(this, _rServiceName);
}
-//------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL ODBCDriver::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_Static();
}
-// --------------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL ODBCDriver::connect( const OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)
{
if ( ! acceptsURL(url) )
@@ -108,13 +108,13 @@ Reference< XConnection > SAL_CALL ODBCDriver::connect( const OUString& url, cons
return xCon;
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODBCDriver::acceptsURL( const OUString& url )
throw(SQLException, RuntimeException)
{
return url.startsWith("sdbc:odbc:");
}
-// --------------------------------------------------------------------------------
+
Sequence< DriverPropertyInfo > SAL_CALL ODBCDriver::getPropertyInfo( const OUString& url, const Sequence< PropertyValue >& /*info*/ ) throw(SQLException, RuntimeException)
{
if ( acceptsURL(url) )
@@ -196,18 +196,18 @@ Sequence< DriverPropertyInfo > SAL_CALL ODBCDriver::getPropertyInfo( const OUStr
::dbtools::throwGenericSQLException(sMessage ,*this);
return Sequence< DriverPropertyInfo >();
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODBCDriver::getMajorVersion( ) throw(RuntimeException)
{
return 1;
}
-// --------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL ODBCDriver::getMinorVersion( ) throw(RuntimeException)
{
return 0;
}
-// --------------------------------------------------------------------------------
-//-----------------------------------------------------------------------------
+
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/odbc/OFunctions.cxx b/connectivity/source/drivers/odbc/OFunctions.cxx
index 6e6f6ce2de48..4dea825c7b4a 100644
--- a/connectivity/source/drivers/odbc/OFunctions.cxx
+++ b/connectivity/source/drivers/odbc/OFunctions.cxx
@@ -80,7 +80,7 @@ T3SQLGetCursorName pODBC3SQLGetCursorName;
T3SQLNativeSql pODBC3SQLNativeSql;
sal_Bool LoadFunctions(oslModule pODBCso);
-// -------------------------------------------------------------------------
+
// Take care of Dynamicly loading of the DLL/shared lib and Addresses:
// Returns sal_True at success
sal_Bool LoadLibrary_ODBC3(OUString &_rPath)
@@ -111,7 +111,7 @@ sal_Bool LoadLibrary_ODBC3(OUString &_rPath)
return bLoaded = LoadFunctions(pODBCso);
}
-// -------------------------------------------------------------------------
+
sal_Bool LoadFunctions(oslModule pODBCso)
{
@@ -227,7 +227,7 @@ sal_Bool LoadFunctions(oslModule pODBCso)
return sal_True;
}
-// -------------------------------------------------------------------------
+
}
diff --git a/connectivity/source/drivers/odbc/OPreparedStatement.cxx b/connectivity/source/drivers/odbc/OPreparedStatement.cxx
index c5a3bdf0bc74..49aa2fd2aa28 100644
--- a/connectivity/source/drivers/odbc/OPreparedStatement.cxx
+++ b/connectivity/source/drivers/odbc/OPreparedStatement.cxx
@@ -91,28 +91,28 @@ OPreparedStatement::OPreparedStatement( OConnection* _pConnection,const OUString
{
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::acquire() throw()
{
OStatement_BASE2::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::release() throw()
{
OStatement_BASE2::release();
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL OPreparedStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OStatement_BASE2::queryInterface(rType);
return aRet.hasValue() ? aRet : OPreparedStatement_BASE::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL OPreparedStatement::getTypes( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::comphelper::concatSequences(OPreparedStatement_BASE::getTypes(),OStatement_BASE2::getTypes());
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -126,7 +126,7 @@ Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData( ) thr
m_xMetaData = new OResultSetMetaData(getOwnConnection(),m_aStatementHandle);
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::close( ) throw(SQLException, RuntimeException)
{
@@ -151,7 +151,7 @@ void SAL_CALL OPreparedStatement::close( ) throw(SQLException, RuntimeException
// Remove this Statement object from the Connection object's
// list
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeException)
{
@@ -217,7 +217,7 @@ sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeExc
return getColumnCount() > 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OPreparedStatement::executeUpdate( ) throw(SQLException, RuntimeException)
{
@@ -240,13 +240,13 @@ sal_Int32 SAL_CALL OPreparedStatement::executeUpdate( ) throw(SQLException, Run
}
return numRows;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setString( sal_Int32 parameterIndex, const OUString& x ) throw(SQLException, RuntimeException)
{
setParameter(parameterIndex, DataType::CHAR, invalid_scale, x);
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OPreparedStatement::getConnection( ) throw(SQLException, RuntimeException)
{
@@ -255,7 +255,7 @@ Reference< XConnection > SAL_CALL OPreparedStatement::getConnection( ) throw(SQ
return (Reference< XConnection >)m_pConnection;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery( ) throw(SQLException, RuntimeException)
{
@@ -275,14 +275,14 @@ Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery( ) throw(SQLE
}
return rs;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBoolean( sal_Int32 parameterIndex, sal_Bool x ) throw(SQLException, RuntimeException)
{
// Set the parameter as if it were an integer
setInt (parameterIndex, x ? 1 : 0 );
}
-// -------------------------------------------------------------------------
+
// The MutexGuard must _already_ be taken!
void OPreparedStatement::setParameterPre(sal_Int32 parameterIndex)
{
@@ -291,7 +291,7 @@ void OPreparedStatement::setParameterPre(sal_Int32 parameterIndex)
checkParameterIndex(parameterIndex);
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
}
-// -------------------------------------------------------------------------
+
template <typename T> void OPreparedStatement::setScalarParameter(const sal_Int32 parameterIndex, const sal_Int32 i_nType, const SQLULEN i_nColSize, const T i_Value)
{
@@ -305,7 +305,7 @@ template <typename T> void OPreparedStatement::setScalarParameter(const sal_Int3
setParameter(parameterIndex, i_nType, i_nColSize, invalid_scale, bindBuf, sizeof(i_Value), sizeof(i_Value));
}
-// -------------------------------------------------------------------------
+
void OPreparedStatement::setParameter(const sal_Int32 parameterIndex, const sal_Int32 _nType, const sal_Int16 _nScale, const OUString &_sData)
{
@@ -352,7 +352,7 @@ void OPreparedStatement::setParameter(const sal_Int32 parameterIndex, const sal_
setParameter( parameterIndex, _nType, nCharLen, _nScale, pData, nByteLen, nByteLen );
}
-// -------------------------------------------------------------------------
+
void OPreparedStatement::setParameter(const sal_Int32 parameterIndex, const sal_Int32 _nType, const Sequence< sal_Int8 > &x)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -367,7 +367,7 @@ void OPreparedStatement::setParameter(const sal_Int32 parameterIndex, const sal_
setParameter( parameterIndex, _nType, x.getLength(), invalid_scale, x.getConstArray(), x.getLength(), x.getLength() );
}
-// -------------------------------------------------------------------------
+
void OPreparedStatement::setParameter(const sal_Int32 parameterIndex, const sal_Int32 _nType, const SQLULEN _nColumnSize, const sal_Int32 _nScale, const void* const _pData, const SQLULEN _nDataLen, const SQLLEN _nDataAllocLen)
{
SQLSMALLINT fCType, fSqlType;
@@ -393,12 +393,12 @@ void OPreparedStatement::setParameter(const sal_Int32 parameterIndex, const sal_
OTools::ThrowException(m_pConnection, nRetcode, m_aStatementHandle, SQL_HANDLE_STMT, *this);
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setByte( const sal_Int32 parameterIndex, const sal_Int8 x ) throw(SQLException, RuntimeException)
{
setScalarParameter(parameterIndex, DataType::TINYINT, 3, x);
}
-// -------------------------------------------------------------------------
+
// For older compilers (that do not support partial specialisation of class templates)
// uncomment if necessary (safe also on compilers that *do* support partial specialisation)
//BOOST_BROKEN_COMPILER_TYPE_TRAITS_SPECIALIZATION(DATE_STRUCT);
@@ -408,7 +408,7 @@ void SAL_CALL OPreparedStatement::setDate( sal_Int32 parameterIndex, const Date&
DATE_STRUCT x(OTools::DateToOdbcDate(aData));
setScalarParameter<DATE_STRUCT&>(parameterIndex, DataType::DATE, 10, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setTime( sal_Int32 parameterIndex, const Time& aVal ) throw(SQLException, RuntimeException)
{
@@ -436,7 +436,7 @@ void SAL_CALL OPreparedStatement::setTime( sal_Int32 parameterIndex, const Time&
TIME_STRUCT x(OTools::TimeToOdbcTime(aVal));
setScalarParameter<TIME_STRUCT&>(parameterIndex, DataType::TIME, nColSize, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setTimestamp( sal_Int32 parameterIndex, const DateTime& aVal ) throw(SQLException, RuntimeException)
{
@@ -470,26 +470,26 @@ void SAL_CALL OPreparedStatement::setTimestamp( sal_Int32 parameterIndex, const
TIMESTAMP_STRUCT x(OTools::DateTimeToTimestamp(aVal));
setScalarParameter<TIMESTAMP_STRUCT&>(parameterIndex, DataType::TIMESTAMP, nColSize, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setDouble( sal_Int32 parameterIndex, double x ) throw(SQLException, RuntimeException)
{
setScalarParameter(parameterIndex, DataType::DOUBLE, 15, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setFloat( sal_Int32 parameterIndex, float x ) throw(SQLException, RuntimeException)
{
setScalarParameter(parameterIndex, DataType::FLOAT, 15, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setInt( sal_Int32 parameterIndex, sal_Int32 x ) throw(SQLException, RuntimeException)
{
setScalarParameter(parameterIndex, DataType::INTEGER, 10, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setLong( sal_Int32 parameterIndex, sal_Int64 x ) throw(SQLException, RuntimeException)
{
@@ -502,7 +502,7 @@ void SAL_CALL OPreparedStatement::setLong( sal_Int32 parameterIndex, sal_Int64 x
setString(parameterIndex, ORowSetValue(x));
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setNull( sal_Int32 parameterIndex, const sal_Int32 _nType ) throw(SQLException, RuntimeException)
{
@@ -536,33 +536,33 @@ void SAL_CALL OPreparedStatement::setNull( sal_Int32 parameterIndex, const sal_I
);
OTools::ThrowException(m_pConnection,nReturn,m_aStatementHandle,SQL_HANDLE_STMT,*this);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setClob( sal_Int32 parameterIndex, const Reference< XClob >& x ) throw(SQLException, RuntimeException)
{
if ( x.is() )
setStream(parameterIndex, x->getCharacterStream(), x->length(), DataType::LONGVARCHAR);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBlob( sal_Int32 parameterIndex, const Reference< XBlob >& x ) throw(SQLException, RuntimeException)
{
if ( x.is() )
setStream(parameterIndex, x->getBinaryStream(), x->length(), DataType::LONGVARBINARY);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setArray( sal_Int32 /*parameterIndex*/, const Reference< XArray >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setArray", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setRef( sal_Int32 /*parameterIndex*/, const Reference< XRef >& /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XParameters::setRef", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, const Any& x, sal_Int32 sqlType, sal_Int32 scale ) throw(SQLException, RuntimeException)
{
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
@@ -602,13 +602,13 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, c
::dbtools::setObjectWithInfo(this,parameterIndex,x,sqlType,scale);
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObjectNull( sal_Int32 parameterIndex, sal_Int32 sqlType, const OUString& /*typeName*/ ) throw(SQLException, RuntimeException)
{
setNull(parameterIndex,sqlType);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setObject( sal_Int32 parameterIndex, const Any& x ) throw(SQLException, RuntimeException)
{
@@ -617,19 +617,19 @@ void SAL_CALL OPreparedStatement::setObject( sal_Int32 parameterIndex, const Any
throw SQLException();
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setShort( sal_Int32 parameterIndex, sal_Int16 x ) throw(SQLException, RuntimeException)
{
setScalarParameter(parameterIndex, DataType::SMALLINT, 5, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBytes( sal_Int32 parameterIndex, const Sequence< sal_Int8 >& x ) throw(SQLException, RuntimeException)
{
setParameter(parameterIndex, DataType::BINARY, x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setCharacterStream( sal_Int32 parameterIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
@@ -638,13 +638,13 @@ void SAL_CALL OPreparedStatement::setCharacterStream( sal_Int32 parameterIndex,
// The XInputStream provides *bytes*, not characters.
setStream(parameterIndex, x, length, DataType::LONGVARCHAR);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::setBinaryStream( sal_Int32 parameterIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
setStream(parameterIndex, x, length, DataType::LONGVARBINARY);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::clearParameters( ) throw(SQLException, RuntimeException)
{
@@ -655,20 +655,20 @@ void SAL_CALL OPreparedStatement::clearParameters( ) throw(SQLException, Runtim
nRet = N3SQLFreeStmt (m_aStatementHandle, SQL_UNBIND);
OSL_UNUSED(nRet);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::clearBatch( ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XPreparedBatchExecution::clearBatch", *this );
// clearParameters( );
// m_aBatchList.erase();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OPreparedStatement::addBatch( ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XPreparedBatchExecution::addBatch", *this );
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch( ) throw(SQLException, RuntimeException)
{
@@ -676,16 +676,16 @@ Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch( ) throw(SQLExc
// not reached, but keep -Werror happy
return Sequence< sal_Int32 > ();
}
-// -------------------------------------------------------------------------
+
//====================================================================
// methods
//====================================================================
-//--------------------------------------------------------------------
+
// initBoundParam
// Initialize the bound parameter objects
-//--------------------------------------------------------------------
+
void OPreparedStatement::initBoundParam () throw(SQLException)
{
@@ -705,13 +705,13 @@ void OPreparedStatement::initBoundParam () throw(SQLException)
}
}
-// -------------------------------------------------------------------------
-//--------------------------------------------------------------------
+
+
// allocBindBuf
// Allocate storage for the permanent data buffer for the bound
// parameter.
-//--------------------------------------------------------------------
+
void* OPreparedStatement::allocBindBuf( sal_Int32 index,sal_Int32 bufLen)
{
@@ -726,12 +726,12 @@ void* OPreparedStatement::allocBindBuf( sal_Int32 index,sal_Int32 bufLen)
return b;
}
-// -------------------------------------------------------------------------
-//--------------------------------------------------------------------
+
+
// getLengthBuf
// Gets the length buffer for the given parameter index
-//--------------------------------------------------------------------
+
SQLLEN* OPreparedStatement::getLengthBuf (sal_Int32 index)
{
@@ -747,13 +747,13 @@ SQLLEN* OPreparedStatement::getLengthBuf (sal_Int32 index)
return b;
}
-// -------------------------------------------------------------------------
-//--------------------------------------------------------------------
+
+
// putParamData
// Puts parameter data from a previously bound input stream. The
// input stream was bound using SQL_LEN_DATA_AT_EXEC.
-//--------------------------------------------------------------------
+
void OPreparedStatement::putParamData (sal_Int32 index) throw(SQLException)
{
@@ -815,12 +815,12 @@ void OPreparedStatement::putParamData (sal_Int32 index) throw(SQLException)
throw SQLException(ex.Message,*this,OUString(),0,Any());
}
}
-// -------------------------------------------------------------------------
-//--------------------------------------------------------------------
+
+
// setStream
// Sets an input stream as a parameter, using the given SQL type
-//--------------------------------------------------------------------
+
void OPreparedStatement::setStream(
sal_Int32 ParameterIndex,
@@ -869,9 +869,9 @@ void OPreparedStatement::setStream(
// Save the input stream
boundParams[ParameterIndex - 1].setInputStream (x, length);
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
void OPreparedStatement::FreeParams()
{
@@ -879,7 +879,7 @@ void OPreparedStatement::FreeParams()
delete [] boundParams;
boundParams = NULL;
}
-// -------------------------------------------------------------------------
+
void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
{
try
@@ -911,7 +911,7 @@ void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,cons
// throw Exception(e.Message,*this);
}
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::prepareStatement()
{
if(!isPrepared())
@@ -924,7 +924,7 @@ void OPreparedStatement::prepareStatement()
initBoundParam();
}
}
-// -----------------------------------------------------------------------------
+
void OPreparedStatement::checkParameterIndex(sal_Int32 _parameterIndex)
{
if( _parameterIndex > numParams ||
@@ -941,13 +941,13 @@ void OPreparedStatement::checkParameterIndex(sal_Int32 _parameterIndex)
::dbtools::throwInvalidIndexException(*this,makeAny(aNext));
}
}
-// -----------------------------------------------------------------------------
+
OResultSet* OPreparedStatement::createResulSet()
{
OResultSet* pReturn = new OResultSet(m_aStatementHandle,this);
pReturn->setMetaData(getMetaData());
return pReturn;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/odbc/ORealDriver.cxx b/connectivity/source/drivers/odbc/ORealDriver.cxx
index c1c2ceec58a3..e2d586967678 100644
--- a/connectivity/source/drivers/odbc/ORealDriver.cxx
+++ b/connectivity/source/drivers/odbc/ORealDriver.cxx
@@ -102,7 +102,7 @@ namespace connectivity
ORealObdcDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) : ODBCDriver(_rxFactory) {}
};
- //------------------------------------------------------------------
+
oslGenericFunction ORealObdcDriver::getOdbcFunction(sal_Int32 _nIndex) const
{
oslGenericFunction pFunction = NULL;
@@ -324,12 +324,12 @@ oslGenericFunction ORealObdcDriver::getOdbcFunction(sal_Int32 _nIndex) const
return pFunction;
}
-//------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ODBCDriver_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception )
{
return *(new ORealObdcDriver(_rxFactory));
}
-// -----------------------------------------------------------------------------
+
// ODBC Environment (common for all Connections):
SQLHANDLE ORealObdcDriver::EnvironmentHandle(OUString &_rPath)
{
@@ -352,7 +352,7 @@ SQLHANDLE ORealObdcDriver::EnvironmentHandle(OUString &_rPath)
return m_pDriverHandle;
}
-// -----------------------------------------------------------------------------
+
}
}
diff --git a/connectivity/source/drivers/odbc/OResultSet.cxx b/connectivity/source/drivers/odbc/OResultSet.cxx
index 1812e8722765..cc59ed22e704 100644
--- a/connectivity/source/drivers/odbc/OResultSet.cxx
+++ b/connectivity/source/drivers/odbc/OResultSet.cxx
@@ -65,13 +65,13 @@ namespace
const SQLLEN nMaxBookmarkLen = 20;
}
-//------------------------------------------------------------------------------
+
// IMPLEMENT_SERVICE_INFO(OResultSet,"com.sun.star.sdbcx.OResultSet","com.sun.star.sdbc.ResultSet");
OUString SAL_CALL OResultSet::getImplementationName( ) throw ( RuntimeException)
{
return OUString("com.sun.star.sdbcx.odbc.ResultSet");
}
-// -------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
Sequence< OUString > aSupported(2);
@@ -85,7 +85,7 @@ sal_Bool SAL_CALL OResultSet::supportsService( const OUString& _rServiceName ) t
return cppu::supportsService(this, _rServiceName);
}
-// -------------------------------------------------------------------------
+
OResultSet::OResultSet(SQLHANDLE _pStatementHandle ,OStatement_Base* pStmt) : OResultSet_BASE(m_aMutex)
,OPropertySetHelper(OResultSet_BASE::rBHelper)
,m_bFetchDataInOrder(sal_True)
@@ -169,20 +169,20 @@ OResultSet::OResultSet(SQLHANDLE _pStatementHandle ,OStatement_Base* pStmt) :
osl_atomic_decrement( &m_refCount );
}
-// -------------------------------------------------------------------------
+
OResultSet::~OResultSet()
{
delete [] m_pRowStatusArray;
delete m_pSkipDeletedSet;
}
-// -----------------------------------------------------------------------------
+
void OResultSet::construct()
{
osl_atomic_increment( &m_refCount );
allocBuffer();
osl_atomic_decrement( &m_refCount );
}
-// -------------------------------------------------------------------------
+
void OResultSet::disposing(void)
{
SQLRETURN nRet = N3SQLCloseCursor(m_aStatementHandle);
@@ -197,7 +197,7 @@ void OResultSet::disposing(void)
m_xStatement.clear();
m_xMetaData.clear();
}
-// -------------------------------------------------------------------------
+
SQLRETURN OResultSet::unbind(sal_Bool _bUnbindHandle)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::unbind" );
@@ -268,7 +268,7 @@ SQLRETURN OResultSet::unbind(sal_Bool _bUnbindHandle)
}
return nRet;
}
-// -------------------------------------------------------------------------
+
TVoidPtr OResultSet::allocBindColumn(sal_Int32 _nType,sal_Int32 _nColumnIndex)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::allocBindColumn" );
@@ -330,7 +330,7 @@ TVoidPtr OResultSet::allocBindColumn(sal_Int32 _nType,sal_Int32 _nColumnIndex)
}
return aPair;
}
-// -------------------------------------------------------------------------
+
void OResultSet::allocBuffer()
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::allocBuffer" );
@@ -351,20 +351,20 @@ void OResultSet::allocBuffer()
}
m_aLengthVector.resize(nLen + 1);
}
-// -------------------------------------------------------------------------
+
void OResultSet::releaseBuffer()
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::releaseBuffer" );
unbind(sal_False);
m_aLengthVector.clear();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OPropertySetHelper::queryInterface(rType);
return aRet.hasValue() ? aRet : OResultSet_BASE::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OResultSet::getTypes( ) throw( RuntimeException)
{
OTypeCollection aTypes( ::getCppuType( (const Reference< ::com::sun::star::beans::XMultiPropertySet > *)0 ),
@@ -373,7 +373,7 @@ Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeExcep
return ::comphelper::concatSequences(aTypes.getTypes(),OResultSet_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName ) throw(SQLException, RuntimeException)
{
@@ -397,7 +397,7 @@ sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName ) throw(SQ
assert(false);
return 0; // Never reached
}
-// -------------------------------------------------------------------------
+
void OResultSet::ensureCacheForColumn(sal_Int32 columnIndex)
{
SAL_INFO( "connectivity.drivers", "odbc lionel@mamane.lu OResultSet::ensureCacheForColumn" );
@@ -427,7 +427,7 @@ void OResultSet::invalidateCache()
i->setBound(false);
}
}
-// -------------------------------------------------------------------------
+
Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -437,7 +437,7 @@ Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 /*colu
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -447,7 +447,7 @@ Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream( sal_Int32 /*c
return NULL;
}
-// -----------------------------------------------------------------------------
+
template < typename T > T OResultSet::impl_getValue( const sal_Int32 _nColumnIndex, SQLSMALLINT nType )
{
T val;
@@ -456,13 +456,13 @@ template < typename T > T OResultSet::impl_getValue( const sal_Int32 _nColumnInd
return val;
}
-// -------------------------------------------------------------------------
+
// this function exists for the implicit conversion to sal_Bool (compared to a direct call to impl_getValue)
sal_Bool OResultSet::impl_getBoolean( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return impl_getValue<sal_Int8>(columnIndex, SQL_C_BIT);
}
-// -------------------------------------------------------------------------
+
template < typename T > T OResultSet::getValue( sal_Int32 columnIndex )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -475,12 +475,12 @@ sal_Bool SAL_CALL OResultSet::getBoolean( sal_Int32 columnIndex ) throw(SQLExcep
{
return getValue<sal_Bool>( columnIndex );
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL OResultSet::getByte( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue<sal_Int8>( columnIndex );
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
@@ -526,7 +526,7 @@ Sequence< sal_Int8 > OResultSet::impl_getBytes( sal_Int32 columnIndex ) throw(SQ
return OTools::getBytesValue(m_pStatement->getOwnConnection(),m_aStatementHandle,columnIndex,SQL_C_BINARY,m_bWasNull,**this);
}
}
-// -------------------------------------------------------------------------
+
Date OResultSet::impl_getDate( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
DATE_STRUCT aDate = impl_getValue< DATE_STRUCT> ( columnIndex,
@@ -534,34 +534,34 @@ Date OResultSet::impl_getDate( sal_Int32 columnIndex ) throw(SQLException, Runti
return Date(aDate.day, aDate.month, aDate.year);
}
-// -------------------------------------------------------------------------
+
Date SAL_CALL OResultSet::getDate( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue<Date>( columnIndex );
}
-// -------------------------------------------------------------------------
+
double SAL_CALL OResultSet::getDouble( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue<double>( columnIndex );
}
-// -------------------------------------------------------------------------
+
float SAL_CALL OResultSet::getFloat( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue<float>( columnIndex );
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL OResultSet::getShort( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue<sal_Int16>( columnIndex );
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::getInt( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue<sal_Int32>( columnIndex );
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL OResultSet::getLong( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue<sal_Int64>( columnIndex );
@@ -577,7 +577,7 @@ sal_Int64 OResultSet::impl_getLong( sal_Int32 columnIndex ) throw(SQLException,
return getString(columnIndex).toInt64();
}
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::getRow( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -585,7 +585,7 @@ sal_Int32 SAL_CALL OResultSet::getRow( ) throw(SQLException, RuntimeException)
return m_pSkipDeletedSet ? m_pSkipDeletedSet->getMappedPosition(getDriverPos()) : getDriverPos();
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::getMetaData" );
@@ -597,40 +597,40 @@ Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLEx
m_xMetaData = new OResultSetMetaData(m_pStatement->getOwnConnection(),m_aStatementHandle);
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getArray", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL OResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getClob", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL OResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getBlob", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL OResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRow::getRef", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::getObject( sal_Int32 columnIndex, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
return getValue<ORowSetValue>( columnIndex ).makeAny();
}
-// -------------------------------------------------------------------------
+
OUString OResultSet::impl_getString( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -641,7 +641,7 @@ OUString OResultSet::getString( sal_Int32 columnIndex ) throw(SQLException, Runt
{
return getValue<OUString>( columnIndex );
}
-// -------------------------------------------------------------------------
+
Time OResultSet::impl_getTime( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
TIME_STRUCT aTime = impl_getValue< TIME_STRUCT > ( columnIndex,
@@ -653,7 +653,7 @@ Time SAL_CALL OResultSet::getTime( sal_Int32 columnIndex ) throw(SQLException, R
{
return getValue<Time>( columnIndex );
}
-// -------------------------------------------------------------------------
+
DateTime OResultSet::impl_getTimestamp( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
TIMESTAMP_STRUCT aTime = impl_getValue< TIMESTAMP_STRUCT > ( columnIndex,
@@ -672,14 +672,14 @@ DateTime SAL_CALL OResultSet::getTimestamp( sal_Int32 columnIndex ) throw(SQLExc
{
return getValue<DateTime>( columnIndex );
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
return m_nRowPos == 0;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isAfterLast( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -687,7 +687,7 @@ sal_Bool SAL_CALL OResultSet::isAfterLast( ) throw(SQLException, RuntimeExcepti
return m_nRowPos != 0 && m_nCurrentFetchState == SQL_NO_DATA;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isFirst( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -695,7 +695,7 @@ sal_Bool SAL_CALL OResultSet::isFirst( ) throw(SQLException, RuntimeException)
return m_nRowPos == 1;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isLast( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -704,7 +704,7 @@ sal_Bool SAL_CALL OResultSet::isLast( ) throw(SQLException, RuntimeException)
return m_bEOF && m_nCurrentFetchState != SQL_NO_DATA;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::beforeFirst" );
@@ -716,7 +716,7 @@ void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
previous();
m_nCurrentFetchState = SQL_SUCCESS;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::afterLast" );
@@ -727,7 +727,7 @@ void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException)
next();
m_bEOF = sal_True;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::close( ) throw(SQLException, RuntimeException)
{
@@ -738,46 +738,46 @@ void SAL_CALL OResultSet::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::first( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::first" );
return moveImpl(IResultSetHelper::FIRST,0,sal_True);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::last( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::last" );
return moveImpl(IResultSetHelper::LAST,0,sal_True);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::absolute( sal_Int32 row ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::absolute" );
return moveImpl(IResultSetHelper::ABSOLUTE,row,sal_True);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::relative( sal_Int32 row ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::relative" );
return moveImpl(IResultSetHelper::RELATIVE,row,sal_True);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::previous( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::previous" );
return moveImpl(IResultSetHelper::PRIOR,0,sal_True);
}
-// -------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL OResultSet::getStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
return m_xStatement;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowDeleted() throw(SQLException, RuntimeException)
{
@@ -790,7 +790,7 @@ sal_Bool SAL_CALL OResultSet::rowDeleted() throw(SQLException, RuntimeException)
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowInserted( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::rowInserted" );
@@ -802,7 +802,7 @@ sal_Bool SAL_CALL OResultSet::rowInserted( ) throw(SQLException, RuntimeExcepti
return bInserted;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowUpdated( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::rowUpdated" );
@@ -812,14 +812,14 @@ sal_Bool SAL_CALL OResultSet::rowUpdated( ) throw(SQLException, RuntimeExceptio
return m_pRowStatusArray[0] == SQL_ROW_UPDATED;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::next( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::next" );
return moveImpl(IResultSetHelper::NEXT,1,sal_True);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::wasNull( ) throw(SQLException, RuntimeException)
{
@@ -829,7 +829,7 @@ sal_Bool SAL_CALL OResultSet::wasNull( ) throw(SQLException, RuntimeException)
return m_bWasNull;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::cancel( ) throw(RuntimeException)
{
@@ -839,16 +839,16 @@ void SAL_CALL OResultSet::cancel( ) throw(RuntimeException)
OTools::ThrowException(m_pStatement->getOwnConnection(),N3SQLCancel(m_aStatementHandle),m_aStatementHandle,SQL_HANDLE_STMT,*this);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::clearWarnings( ) throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::getWarnings( ) throw(SQLException, RuntimeException)
{
return Any();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::insertRow( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::insertRow" );
@@ -925,7 +925,7 @@ void SAL_CALL OResultSet::insertRow( ) throw(SQLException, RuntimeException)
m_bRowInserted = sal_True;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateRow( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::updateRow" );
@@ -976,7 +976,7 @@ void SAL_CALL OResultSet::updateRow( ) throw(SQLException, RuntimeException)
throw;
}
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::deleteRow( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::deleteRow" );
@@ -1002,12 +1002,12 @@ void SAL_CALL OResultSet::deleteRow( ) throw(SQLException, RuntimeException)
if ( m_pSkipDeletedSet )
m_pSkipDeletedSet->deletePosition(nPos);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::cancelRowUpdates( ) throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::moveToInsertRow( ) throw(SQLException, RuntimeException)
{
@@ -1022,13 +1022,13 @@ void SAL_CALL OResultSet::moveToInsertRow( ) throw(SQLException, RuntimeExcepti
// SQLRETURN nRet = N3SQLSetStmtAttr(m_aStatementHandle,SQL_ATTR_ROW_ARRAY_SIZE ,(SQLPOINTER)1,SQL_IS_INTEGER);
m_bInserting = sal_True;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::moveToCurrentRow( ) throw(SQLException, RuntimeException)
{
invalidateCache();
}
-// -------------------------------------------------------------------------
+
void OResultSet::updateValue(sal_Int32 columnIndex,SQLSMALLINT _nType,void* _pValue) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::updateValue" );
@@ -1050,7 +1050,7 @@ void OResultSet::updateValue(sal_Int32 columnIndex,SQLSMALLINT _nType,void* _pVa
m_nTextEncoding,
m_pStatement->getOwnConnection()->useOldDateFormat());
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateNull( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1060,45 +1060,45 @@ void SAL_CALL OResultSet::updateNull( sal_Int32 columnIndex ) throw(SQLException
void* pData = reinterpret_cast<void*>(m_aBindVector.rbegin()->first);
OTools::bindValue(m_pStatement->getOwnConnection(),m_aStatementHandle,columnIndex,SQL_CHAR,0,(sal_Int8*)NULL,pData,&m_aLengthVector[columnIndex],**this,m_nTextEncoding,m_pStatement->getOwnConnection()->useOldDateFormat());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBoolean( sal_Int32 columnIndex, sal_Bool x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,SQL_BIT,&x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateByte( sal_Int32 columnIndex, sal_Int8 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,SQL_CHAR,&x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateShort( sal_Int32 columnIndex, sal_Int16 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,SQL_TINYINT,&x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateInt( sal_Int32 columnIndex, sal_Int32 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,SQL_INTEGER,&x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateLong( sal_Int32 /*columnIndex*/, sal_Int64 /*x*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRowUpdate::updateLong", *this );
}
-// -----------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateFloat( sal_Int32 columnIndex, float x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,SQL_REAL,&x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateDouble( sal_Int32 columnIndex, double x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,SQL_DOUBLE,&x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateString( sal_Int32 columnIndex, const OUString& x ) throw(SQLException, RuntimeException)
{
sal_Int32 nType = m_aRow[columnIndex].getTypeKind();
@@ -1108,7 +1108,7 @@ void SAL_CALL OResultSet::updateString( sal_Int32 columnIndex, const OUString& x
m_aRow[columnIndex].setBound(true);
updateValue(columnIndex,nOdbcType,(void*)&x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBytes( sal_Int32 columnIndex, const Sequence< sal_Int8 >& x ) throw(SQLException, RuntimeException)
{
sal_Int32 nType = m_aRow[columnIndex].getTypeKind();
@@ -1118,27 +1118,27 @@ void SAL_CALL OResultSet::updateBytes( sal_Int32 columnIndex, const Sequence< sa
m_aRow[columnIndex].setBound(true);
updateValue(columnIndex,nOdbcType,(void*)&x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateDate( sal_Int32 columnIndex, const Date& x ) throw(SQLException, RuntimeException)
{
DATE_STRUCT aVal = OTools::DateToOdbcDate(x);
updateValue(columnIndex,SQL_DATE,&aVal);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateTime( sal_Int32 columnIndex, const Time& x ) throw(SQLException, RuntimeException)
{
TIME_STRUCT aVal = OTools::TimeToOdbcTime(x);
updateValue(columnIndex,SQL_TIME,&aVal);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateTimestamp( sal_Int32 columnIndex, const DateTime& x ) throw(SQLException, RuntimeException)
{
TIMESTAMP_STRUCT aVal = OTools::DateTimeToTimestamp(x);
updateValue(columnIndex,SQL_TIMESTAMP,&aVal);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBinaryStream( sal_Int32 columnIndex, const Reference< XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
@@ -1149,12 +1149,12 @@ void SAL_CALL OResultSet::updateBinaryStream( sal_Int32 columnIndex, const Refer
x->readBytes(aSeq,length);
updateBytes(columnIndex,aSeq);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateCharacterStream( sal_Int32 columnIndex, const Reference< XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
updateBinaryStream(columnIndex,x,length);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::refreshRow( ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::refreshRow" );
@@ -1166,20 +1166,20 @@ void SAL_CALL OResultSet::refreshRow( ) throw(SQLException, RuntimeException)
m_nCurrentFetchState = N3SQLFetchScroll(m_aStatementHandle,SQL_FETCH_RELATIVE,0);
OTools::ThrowException(m_pStatement->getOwnConnection(),m_nCurrentFetchState,m_aStatementHandle,SQL_HANDLE_STMT,*this);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateObject( sal_Int32 columnIndex, const Any& x ) throw(SQLException, RuntimeException)
{
if (!::dbtools::implUpdateObject(this, columnIndex, x))
throw SQLException();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateNumericObject( sal_Int32 columnIndex, const Any& x, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException)
{
if (!::dbtools::implUpdateObject(this, columnIndex, x))
throw SQLException();
}
-// -------------------------------------------------------------------------
+
// XRowLocate
Any SAL_CALL OResultSet::getBookmark( ) throw( SQLException, RuntimeException)
{
@@ -1215,7 +1215,7 @@ Sequence<sal_Int8> OResultSet::impl_getBookmark( ) throw( SQLException, Runtim
return aFind->first;
}
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::moveToBookmark( const Any& bookmark ) throw( SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::moveToBookmark" );
@@ -1244,7 +1244,7 @@ sal_Bool SAL_CALL OResultSet::moveToBookmark( const Any& bookmark ) throw( SQLE
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::moveRelativeToBookmark( const Any& bookmark, sal_Int32 rows ) throw( SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::moveRelativeToBookmark" );
@@ -1262,7 +1262,7 @@ sal_Bool SAL_CALL OResultSet::moveRelativeToBookmark( const Any& bookmark, sal_
OTools::ThrowException(m_pStatement->getOwnConnection(),m_nCurrentFetchState,m_aStatementHandle,SQL_HANDLE_STMT,*this);
return m_nCurrentFetchState == SQL_SUCCESS || m_nCurrentFetchState == SQL_SUCCESS_WITH_INFO;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::compareBookmarks( const Any& lhs, const Any& rhs ) throw( SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::compareBookmarks" );
@@ -1271,18 +1271,18 @@ sal_Int32 SAL_CALL OResultSet::compareBookmarks( const Any& lhs, const Any& rhs
return (lhs == rhs) ? CompareBookmark::EQUAL : CompareBookmark::NOT_EQUAL;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::hasOrderedBookmarks( ) throw( SQLException, RuntimeException)
{
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::hashBookmark( const Any& /*bookmark*/ ) throw( SQLException, RuntimeException)
{
::dbtools::throwFunctionNotSupportedException( "XRowLocate::hashBookmark", *this );
return 0;
}
-// -------------------------------------------------------------------------
+
// XDeleteRows
Sequence< sal_Int32 > SAL_CALL OResultSet::deleteRows( const Sequence< Any >& rows ) throw( SQLException, RuntimeException)
{
@@ -1309,7 +1309,7 @@ Sequence< sal_Int32 > SAL_CALL OResultSet::deleteRows( const Sequence< Any >&
}
return aRet;
}
-//------------------------------------------------------------------------------
+
template < typename T, SQLINTEGER BufferLength > T OResultSet::getStmtOption (SQLINTEGER fOption, T dflt) const
{
T result (dflt);
@@ -1323,7 +1323,7 @@ template < typename T, SQLINTEGER BufferLength > SQLRETURN OResultSet::setStmtOp
SQLPOINTER sv = reinterpret_cast<SQLPOINTER>(value);
return N3SQLSetStmtAttr(m_aStatementHandle, fOption, sv, BufferLength);
}
-//------------------------------------------------------------------------------
+
sal_Int32 OResultSet::getResultSetConcurrency() const
{
sal_uInt32 nValue = getStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_CONCURRENCY);
@@ -1334,7 +1334,7 @@ sal_Int32 OResultSet::getResultSetConcurrency() const
return nValue;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OResultSet::getResultSetType() const
{
sal_uInt32 nValue = getStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_CURSOR_SENSITIVITY);
@@ -1356,17 +1356,17 @@ sal_Int32 OResultSet::getResultSetType() const
}
return nValue;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OResultSet::getFetchDirection() const
{
return FetchDirection::FORWARD;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OResultSet::getFetchSize() const
{
return getStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_ROW_ARRAY_SIZE);
}
-//------------------------------------------------------------------------------
+
OUString OResultSet::getCursorName() const
{
SQLCHAR pName[258];
@@ -1374,7 +1374,7 @@ OUString OResultSet::getCursorName() const
N3SQLGetCursorName(m_aStatementHandle,(SQLCHAR*)pName,256,&nRealLen);
return OUString::createFromAscii((const char*)pName);
}
-// -------------------------------------------------------------------------
+
sal_Bool OResultSet::isBookmarkable() const
{
if(!m_aConnectionHandle)
@@ -1412,7 +1412,7 @@ sal_Bool OResultSet::isBookmarkable() const
return (m_nUseBookmarks != SQL_UB_OFF) && (nAttr & SQL_CA1_BOOKMARK) == SQL_CA1_BOOKMARK;
}
-//------------------------------------------------------------------------------
+
void OResultSet::setFetchDirection(sal_Int32 _par0)
{
::dbtools::throwFunctionNotSupportedException( "setFetchDirection", *this );
@@ -1423,7 +1423,7 @@ void OResultSet::setFetchDirection(sal_Int32 _par0)
setStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_CURSOR_TYPE, _par0);
}
}
-//------------------------------------------------------------------------------
+
void OResultSet::setFetchSize(sal_Int32 _par0)
{
OSL_ENSURE(_par0>0,"Illegal fetch size!");
@@ -1440,7 +1440,7 @@ void OResultSet::setFetchSize(sal_Int32 _par0)
setStmtOption<SQLUSMALLINT*, SQL_IS_POINTER>(SQL_ATTR_ROW_STATUS_PTR, m_pRowStatusArray);
}
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper* OResultSet::createArrayHelper( ) const
{
Sequence< Property > aProps(6);
@@ -1455,12 +1455,12 @@ IPropertyArrayHelper* OResultSet::createArrayHelper( ) const
return new OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
IPropertyArrayHelper & OResultSet::getInfoHelper()
{
return *const_cast<OResultSet*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool OResultSet::convertFastPropertyValue(
Any & rConvertedValue,
Any & rOldValue,
@@ -1484,7 +1484,7 @@ sal_Bool OResultSet::convertFastPropertyValue(
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
void OResultSet::setFastPropertyValue_NoBroadcast(
sal_Int32 nHandle,
const Any& rValue
@@ -1508,7 +1508,7 @@ void OResultSet::setFastPropertyValue_NoBroadcast(
;
}
}
-// -------------------------------------------------------------------------
+
void OResultSet::getFastPropertyValue(
Any& rValue,
sal_Int32 nHandle
@@ -1536,7 +1536,7 @@ void OResultSet::getFastPropertyValue(
break;
}
}
-// -------------------------------------------------------------------------
+
void OResultSet::fillColumn(const sal_Int32 _nColumn)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::fillColumn" );
@@ -1656,22 +1656,22 @@ void OResultSet::fillColumn(const sal_Int32 _nColumn)
}
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::acquire() throw()
{
OResultSet_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::release() throw()
{
OResultSet_BASE::release();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
sal_Bool OResultSet::move(IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset, sal_Bool /*_bRetrieveData*/)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::move" );
@@ -1777,24 +1777,24 @@ sal_Bool OResultSet::move(IResultSetHelper::Movement _eCursorPosition, sal_Int32
return bSuccess;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OResultSet::getDriverPos() const
{
sal_Int32 nValue = getStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_ROW_NUMBER);
OSL_TRACE( __FILE__": OResultSet::getDriverPos() = RowNum = %d, RowPos = %d", nValue, m_nRowPos);
return nValue ? nValue : m_nRowPos;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OResultSet::deletedVisible() const
{
return sal_False;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OResultSet::isRowDeleted() const
{
return m_pRowStatusArray[0] == SQL_ROW_DELETED;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OResultSet::moveImpl(IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset, sal_Bool _bRetrieveData)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1803,7 +1803,7 @@ sal_Bool OResultSet::moveImpl(IResultSetHelper::Movement _eCursorPosition, sal_I
? m_pSkipDeletedSet->skipDeleted(_eCursorPosition,_nOffset,_bRetrieveData)
: move(_eCursorPosition,_nOffset,_bRetrieveData);
}
-// -----------------------------------------------------------------------------
+
void OResultSet::fillNeededData(SQLRETURN _nRet)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSet::fillNeededData" );
@@ -1853,7 +1853,7 @@ void OResultSet::fillNeededData(SQLRETURN _nRet)
while (nRet == SQL_NEED_DATA);
}
}
-// -----------------------------------------------------------------------------
+
SWORD OResultSet::impl_getColumnType_nothrow(sal_Int32 columnIndex)
{
::std::map<sal_Int32,SWORD>::iterator aFind = m_aODBCColumnTypes.find(columnIndex);
diff --git a/connectivity/source/drivers/odbc/OResultSetMetaData.cxx b/connectivity/source/drivers/odbc/OResultSetMetaData.cxx
index 15ab4e63584f..5ef770f4a3c1 100644
--- a/connectivity/source/drivers/odbc/OResultSetMetaData.cxx
+++ b/connectivity/source/drivers/odbc/OResultSetMetaData.cxx
@@ -25,11 +25,11 @@ using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::sdbc;
-// -------------------------------------------------------------------------
+
OResultSetMetaData::~OResultSetMetaData()
{
}
-// -------------------------------------------------------------------------
+
OUString OResultSetMetaData::getCharColAttrib(sal_Int32 _column,sal_Int32 ident) throw(SQLException, RuntimeException)
{
sal_Int32 column = _column;
@@ -75,7 +75,7 @@ OUString OResultSetMetaData::getCharColAttrib(sal_Int32 _column,sal_Int32 ident)
return sValue;
}
-// -------------------------------------------------------------------------
+
SQLLEN OResultSetMetaData::getNumColAttrib(OConnection* _pConnection
,SQLHANDLE _aStatementHandle
,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface
@@ -92,7 +92,7 @@ SQLLEN OResultSetMetaData::getNumColAttrib(OConnection* _pConnection
&nValue),_aStatementHandle,SQL_HANDLE_STMT,_xInterface);
return nValue;
}
-// -------------------------------------------------------------------------
+
sal_Int32 OResultSetMetaData::getNumColAttrib(sal_Int32 _column,sal_Int32 ident) throw(SQLException, RuntimeException)
{
sal_Int32 column = _column;
@@ -101,12 +101,12 @@ sal_Int32 OResultSetMetaData::getNumColAttrib(sal_Int32 _column,sal_Int32 ident)
return getNumColAttrib(m_pConnection,m_aStatementHandle,*this,column,ident);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return getNumColAttrib(column,SQL_DESC_DISPLAY_SIZE);
}
-// -------------------------------------------------------------------------
+
SQLSMALLINT OResultSetMetaData::getColumnODBCType(OConnection* _pConnection
,SQLHANDLE _aStatementHandle
,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface
@@ -127,7 +127,7 @@ SQLSMALLINT OResultSetMetaData::getColumnODBCType(OConnection* _pConnection
return nType;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnType( sal_Int32 column ) throw(SQLException, RuntimeException)
{
::std::map<sal_Int32,sal_Int32>::iterator aFind = m_aColumnTypes.find(column);
@@ -157,7 +157,7 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnType( sal_Int32 column ) throw(S
return aFind->second;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount( ) throw(SQLException, RuntimeException)
{
@@ -168,65 +168,65 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount( ) throw(SQLException, Ru
OTools::ThrowException(m_pConnection,N3SQLNumResultCols(m_aStatementHandle,&nNumResultCols),m_aStatementHandle,SQL_HANDLE_STMT,*this);
return m_nColCount = nNumResultCols;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return getNumColAttrib(column,SQL_DESC_CASE_SENSITIVE) == SQL_TRUE;
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getSchemaName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return getCharColAttrib(column,SQL_DESC_SCHEMA_NAME);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return getCharColAttrib(column,SQL_DESC_NAME);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getTableName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return getCharColAttrib(column,SQL_DESC_TABLE_NAME);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getCatalogName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return getCharColAttrib(column,SQL_DESC_CATALOG_NAME);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnTypeName( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSetMetaData::getColumnTypeName" );
return getCharColAttrib(column,SQL_DESC_TYPE_NAME);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnLabel( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSetMetaData::getColumnLabel" );
return getCharColAttrib(column,SQL_DESC_LABEL);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSetMetaData::getColumnServiceName( sal_Int32 /*column*/ ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSetMetaData::getColumnServiceName" );
return OUString();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return getNumColAttrib(column,SQL_DESC_FIXED_PREC_SCALE) == SQL_TRUE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement( sal_Int32 column ) throw(SQLException, RuntimeException)
{
return getNumColAttrib(column,SQL_DESC_AUTO_UNIQUE_VALUE) == SQL_TRUE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isSigned( sal_Int32 column ) throw(SQLException, RuntimeException)
@@ -234,7 +234,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isSigned( sal_Int32 column ) throw(SQLExce
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSetMetaData::isSigned" );
return getNumColAttrib(column,SQL_DESC_UNSIGNED) == SQL_FALSE;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSetMetaData::getPrecision" );
@@ -250,7 +250,7 @@ sal_Int32 SAL_CALL OResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQ
}
return nType;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::getScale( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSetMetaData::getScale" );
@@ -266,28 +266,28 @@ sal_Int32 SAL_CALL OResultSetMetaData::getScale( sal_Int32 column ) throw(::com:
}
return nType;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSetMetaData::isNullable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSetMetaData::isNullable" );
return getNumColAttrib(column,SQL_DESC_NULLABLE);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isSearchable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSetMetaData::isSearchable" );
return getNumColAttrib(column,SQL_DESC_SEARCHABLE) != SQL_PRED_NONE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isReadOnly( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSetMetaData::isReadOnly" );
return getNumColAttrib(column,SQL_DESC_UPDATABLE) == SQL_ATTR_READONLY;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
@@ -295,12 +295,12 @@ sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable( sal_Int32 column ) t
return getNumColAttrib(column,SQL_DESC_UPDATABLE) == SQL_ATTR_WRITE;
;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSetMetaData::isWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OResultSetMetaData::isWritable" );
return getNumColAttrib(column,SQL_DESC_UPDATABLE) == SQL_ATTR_WRITE;
}
-// -------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/odbc/OStatement.cxx b/connectivity/source/drivers/odbc/OStatement.cxx
index bd55cc168c90..26cd84a81721 100644
--- a/connectivity/source/drivers/odbc/OStatement.cxx
+++ b/connectivity/source/drivers/odbc/OStatement.cxx
@@ -48,7 +48,7 @@ using namespace ::comphelper;
using namespace connectivity::odbc;
-//------------------------------------------------------------------------------
+
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
@@ -57,7 +57,7 @@ using namespace com::sun::star::sdbcx;
using namespace com::sun::star::container;
using namespace com::sun::star::io;
using namespace com::sun::star::util;
-//------------------------------------------------------------------------------
+
OStatement_Base::OStatement_Base(OConnection* _pConnection )
:OStatement_BASE(m_aMutex)
,OPropertySetHelper(OStatement_BASE::rBHelper)
@@ -82,12 +82,12 @@ OStatement_Base::OStatement_Base(OConnection* _pConnection )
osl_atomic_decrement( &m_refCount );
}
-// -----------------------------------------------------------------------------
+
OStatement_Base::~OStatement_Base()
{
OSL_ENSURE(!m_aStatementHandle,"Sohould ne null here!");
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::disposeResultSet()
{
// free the cursor if alive
@@ -96,7 +96,7 @@ void OStatement_Base::disposeResultSet()
xComp->dispose();
m_xResultSet.clear();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::disposing(void)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -115,7 +115,7 @@ void SAL_CALL OStatement_Base::disposing(void)
OStatement_BASE::disposing();
}
-//------------------------------------------------------------------------------
+
void OStatement_BASE2::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -123,12 +123,12 @@ void OStatement_BASE2::disposing()
dispose_ChildImpl();
OStatement_Base::disposing();
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL OStatement_BASE2::release() throw()
{
relase_ChildImpl();
}
-//-----------------------------------------------------------------------------
+
Any SAL_CALL OStatement_Base::queryInterface( const Type & rType ) throw(RuntimeException)
{
if ( m_pConnection && !m_pConnection->isAutoRetrievingEnabled() && rType == ::getCppuType( (const Reference< XGeneratedResultSet > *)0 ) )
@@ -136,7 +136,7 @@ Any SAL_CALL OStatement_Base::queryInterface( const Type & rType ) throw(Runtime
Any aRet = OStatement_BASE::queryInterface(rType);
return aRet.hasValue() ? aRet : OPropertySetHelper::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OStatement_Base::getTypes( ) throw(RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const Reference< XMultiPropertySet > *)0 ),
@@ -152,7 +152,7 @@ Sequence< Type > SAL_CALL OStatement_Base::getTypes( ) throw(RuntimeException)
return ::comphelper::concatSequences(aTypes.getTypes(),aOldTypes);
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OStatement_Base::getGeneratedValues( ) throw (SQLException, RuntimeException)
{
OSL_ENSURE( m_pConnection && m_pConnection->isAutoRetrievingEnabled(),"Illegal call here. isAutoRetrievingEnabled is false!");
@@ -169,7 +169,7 @@ Reference< XResultSet > SAL_CALL OStatement_Base::getGeneratedValues( ) throw (
}
return xRes;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::cancel( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -178,7 +178,7 @@ void SAL_CALL OStatement_Base::cancel( ) throw(RuntimeException)
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
OTools::ThrowException(m_pConnection,N3SQLCancel(m_aStatementHandle),m_aStatementHandle,SQL_HANDLE_STMT,*this);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::close( ) throw(SQLException, RuntimeException)
{
@@ -189,13 +189,13 @@ void SAL_CALL OStatement_Base::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement::clearBatch( ) throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
void OStatement_Base::reset() throw (SQLException)
{
@@ -214,10 +214,10 @@ void OStatement_Base::reset() throw (SQLException)
THROW_SQL(N3SQLFreeStmt(m_aStatementHandle, SQL_CLOSE));
}
}
-//--------------------------------------------------------------------
+
// clearMyResultSet
// If a ResultSet was created for this Statement, close it
-//--------------------------------------------------------------------
+
void OStatement_Base::clearMyResultSet () throw (SQLException)
{
@@ -234,7 +234,7 @@ void OStatement_Base::clearMyResultSet () throw (SQLException)
m_xResultSet.clear();
}
-//--------------------------------------------------------------------
+
SQLLEN OStatement_Base::getRowCount () throw( SQLException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -251,12 +251,12 @@ SQLLEN OStatement_Base::getRowCount () throw( SQLException)
}
return numRows;
}
-//--------------------------------------------------------------------
+
// lockIfNecessary
// If the given SQL statement contains a 'FOR UPDATE' clause, change
// the concurrency to lock so that the row can then be updated. Returns
// true if the concurrency has been changed
-//--------------------------------------------------------------------
+
sal_Bool OStatement_Base::lockIfNecessary (const OUString& sql) throw( SQLException)
{
@@ -291,10 +291,10 @@ sal_Bool OStatement_Base::lockIfNecessary (const OUString& sql) throw( SQLExcept
return rc;
}
-//--------------------------------------------------------------------
+
// setWarning
// Sets the warning
-//--------------------------------------------------------------------
+
void OStatement_Base::setWarning (const SQLWarning &ex) throw( SQLException)
{
@@ -305,10 +305,10 @@ void OStatement_Base::setWarning (const SQLWarning &ex) throw( SQLException)
m_aLastWarning = ex;
}
-//--------------------------------------------------------------------
+
// getColumnCount
// Return the number of columns in the ResultSet
-//--------------------------------------------------------------------
+
sal_Int32 OStatement_Base::getColumnCount () throw( SQLException)
{
@@ -327,7 +327,7 @@ sal_Int32 OStatement_Base::getColumnCount () throw( SQLException)
}
return numCols;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OStatement_Base::execute( const OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -375,11 +375,11 @@ sal_Bool SAL_CALL OStatement_Base::execute( const OUString& sql ) throw(SQLExcep
return hasResultSet;
}
-//--------------------------------------------------------------------
+
// getResultSet
// getResultSet returns the current result as a ResultSet. It
// returns NULL if the current result is not a ResultSet.
-//--------------------------------------------------------------------
+
Reference< XResultSet > OStatement_Base::getResultSet (sal_Bool checkCount) throw( SQLException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -419,10 +419,10 @@ Reference< XResultSet > OStatement_Base::getResultSet (sal_Bool checkCount) thro
return pRs;
}
-//--------------------------------------------------------------------
+
// getStmtOption
// Invoke SQLGetStmtOption with the given option.
-//--------------------------------------------------------------------
+
template < typename T, SQLINTEGER BufferLength > T OStatement_Base::getStmtOption (SQLINTEGER fOption, T dflt) const
{
@@ -437,7 +437,7 @@ template < typename T, SQLINTEGER BufferLength > SQLRETURN OStatement_Base::setS
SQLPOINTER sv = reinterpret_cast<SQLPOINTER>(value);
return N3SQLSetStmtAttr(m_aStatementHandle, fOption, sv, BufferLength);
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OStatement_Base::executeQuery( const OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -462,7 +462,7 @@ Reference< XResultSet > SAL_CALL OStatement_Base::executeQuery( const OUString&
}
return xRS;
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OStatement_Base::getConnection( ) throw(SQLException, RuntimeException)
{
@@ -471,14 +471,14 @@ Reference< XConnection > SAL_CALL OStatement_Base::getConnection( ) throw(SQLEx
return (Reference< XConnection >)m_pConnection;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = ::cppu::queryInterface(rType,static_cast< XBatchExecution*> (this));
return aRet.hasValue() ? aRet : OStatement_Base::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement::addBatch( const OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -488,7 +488,7 @@ void SAL_CALL OStatement::addBatch( const OUString& sql ) throw(SQLException, Ru
m_aBatchList.push_back(sql);
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -520,7 +520,7 @@ Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch( ) throw(SQLException,
}
return aRet;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OStatement_Base::executeUpdate( const OUString& sql ) throw(SQLException, RuntimeException)
@@ -549,7 +549,7 @@ sal_Int32 SAL_CALL OStatement_Base::executeUpdate( const OUString& sql ) throw(S
return numRows;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OStatement_Base::getResultSet( ) throw(SQLException, RuntimeException)
{
@@ -560,7 +560,7 @@ Reference< XResultSet > SAL_CALL OStatement_Base::getResultSet( ) throw(SQLExce
m_xResultSet = getResultSet(sal_True);
return m_xResultSet;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OStatement_Base::getUpdateCount( ) throw(SQLException, RuntimeException)
{
@@ -578,7 +578,7 @@ sal_Int32 SAL_CALL OStatement_Base::getUpdateCount( ) throw(SQLException, Runti
return rowCount;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OStatement_Base::getMoreResults( ) throw(SQLException, RuntimeException)
{
@@ -629,9 +629,9 @@ sal_Bool SAL_CALL OStatement_Base::getMoreResults( ) throw(SQLException, Runtim
return hasResultSet;
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
Any SAL_CALL OStatement_Base::getWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -640,9 +640,9 @@ Any SAL_CALL OStatement_Base::getWarnings( ) throw(SQLException, RuntimeExcepti
return makeAny(m_aLastWarning);
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
void SAL_CALL OStatement_Base::clearWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -651,18 +651,18 @@ void SAL_CALL OStatement_Base::clearWarnings( ) throw(SQLException, RuntimeExce
m_aLastWarning = SQLWarning();
}
-// -------------------------------------------------------------------------
-//------------------------------------------------------------------------------
+
+
sal_Int64 OStatement_Base::getQueryTimeOut() const
{
return getStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_QUERY_TIMEOUT);
}
-//------------------------------------------------------------------------------
+
sal_Int64 OStatement_Base::getMaxRows() const
{
return getStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_MAX_ROWS);
}
-//------------------------------------------------------------------------------
+
sal_Int32 OStatement_Base::getResultSetConcurrency() const
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
@@ -673,7 +673,7 @@ sal_Int32 OStatement_Base::getResultSetConcurrency() const
nValue = ResultSetConcurrency::UPDATABLE;
return nValue;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OStatement_Base::getResultSetType() const
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
@@ -696,7 +696,7 @@ sal_Int32 OStatement_Base::getResultSetType() const
return nValue;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OStatement_Base::getFetchDirection() const
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
@@ -713,18 +713,18 @@ sal_Int32 OStatement_Base::getFetchDirection() const
return nValue;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OStatement_Base::getFetchSize() const
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
return getStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_ROW_ARRAY_SIZE);
}
-//------------------------------------------------------------------------------
+
sal_Int64 OStatement_Base::getMaxFieldSize() const
{
return getStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_MAX_LENGTH);
}
-//------------------------------------------------------------------------------
+
OUString OStatement_Base::getCursorName() const
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
@@ -734,19 +734,19 @@ OUString OStatement_Base::getCursorName() const
OSL_UNUSED( nRetCode );
return OUString::createFromAscii((const char*)pName);
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setQueryTimeOut(sal_Int64 seconds)
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
setStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_QUERY_TIMEOUT,seconds);
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setMaxRows(sal_Int64 _par0)
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
setStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_MAX_ROWS, _par0);
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setResultSetConcurrency(sal_Int32 _par0)
{
SQLULEN nSet;
@@ -758,7 +758,7 @@ void OStatement_Base::setResultSetConcurrency(sal_Int32 _par0)
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
setStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_CONCURRENCY, nSet);
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setResultSetType(sal_Int32 _par0)
{
@@ -814,7 +814,7 @@ void OStatement_Base::setResultSetType(sal_Int32 _par0)
setStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_CURSOR_SENSITIVITY, nSet);
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setEscapeProcessing( const sal_Bool _bEscapeProc )
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
@@ -822,7 +822,7 @@ void OStatement_Base::setEscapeProcessing( const sal_Bool _bEscapeProc )
setStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_NOSCAN, nEscapeProc);
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setFetchDirection(sal_Int32 _par0)
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
@@ -835,7 +835,7 @@ void OStatement_Base::setFetchDirection(sal_Int32 _par0)
setStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_CURSOR_SCROLLABLE, SQL_SCROLLABLE);
}
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setFetchSize(sal_Int32 _par0)
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
@@ -850,39 +850,39 @@ void OStatement_Base::setFetchSize(sal_Int32 _par0)
setStmtOption<SQLUSMALLINT*, SQL_IS_POINTER>(SQL_ATTR_ROW_STATUS_PTR, m_pRowStatusArray);
}
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setMaxFieldSize(sal_Int64 _par0)
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
setStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_MAX_LENGTH, _par0);
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::setCursorName(const OUString &_par0)
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
OString aName(OUStringToOString(_par0,getOwnConnection()->getTextEncoding()));
N3SQLSetCursorName(m_aStatementHandle,(SDB_ODBC_CHAR*)aName.getStr(),(SQLSMALLINT)aName.getLength());
}
-// -------------------------------------------------------------------------
+
sal_Bool OStatement_Base::isUsingBookmarks() const
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
return SQL_UB_OFF != getStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_USE_BOOKMARKS, SQL_UB_OFF);
}
-// -------------------------------------------------------------------------
+
sal_Bool OStatement_Base::getEscapeProcessing() const
{
OSL_ENSURE( m_aStatementHandle, "StatementHandle is null!" );
return SQL_NOSCAN_OFF == getStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_USE_BOOKMARKS, SQL_NOSCAN_OFF);;
}
-// -------------------------------------------------------------------------
+
void OStatement_Base::setUsingBookmarks(sal_Bool _bUseBookmark)
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
SQLULEN nValue = _bUseBookmark ? SQL_UB_VARIABLE : SQL_UB_OFF;
setStmtOption<SQLULEN, SQL_IS_UINTEGER>(SQL_ATTR_USE_BOOKMARKS, nValue);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OStatement_Base::createArrayHelper( ) const
{
Sequence< Property > aProps(10);
@@ -902,12 +902,12 @@ void OStatement_Base::setUsingBookmarks(sal_Bool _bUseBookmark)
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OStatement_Base::getInfoHelper()
{
return *const_cast<OStatement_Base*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool OStatement_Base::convertFastPropertyValue(
Any & rConvertedValue,
Any & rOldValue,
@@ -968,7 +968,7 @@ sal_Bool OStatement_Base::convertFastPropertyValue(
}
return bConverted;
}
-// -------------------------------------------------------------------------
+
void OStatement_Base::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
{
try
@@ -1015,7 +1015,7 @@ void OStatement_Base::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const A
// throw Exception(e.Message,*this);
}
}
-// -------------------------------------------------------------------------
+
void OStatement_Base::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
{
switch(nHandle)
@@ -1055,39 +1055,39 @@ void OStatement_Base::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
break;
}
}
-// -------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbcx.OStatement","com.sun.star.sdbc.Statement");
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::acquire() throw()
{
OStatement_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::release() throw()
{
OStatement_BASE::release();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement::acquire() throw()
{
OStatement_BASE2::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement::release() throw()
{
OStatement_BASE2::release();
}
-// -----------------------------------------------------------------------------
+
OResultSet* OStatement_Base::createResulSet()
{
return new OResultSet(m_aStatementHandle,this);
}
-// -----------------------------------------------------------------------------
+
Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OStatement_Base::getPropertySetInfo( ) throw(RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
SQLUINTEGER OStatement_Base::getCursorProperties(SQLINTEGER _nCursorType,sal_Bool bFirst)
{
SQLUINTEGER nValueLen = 0;
@@ -1112,6 +1112,6 @@ SQLUINTEGER OStatement_Base::getCursorProperties(SQLINTEGER _nCursorType,sal_Boo
}
return nValueLen;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/odbc/OTools.cxx b/connectivity/source/drivers/odbc/OTools.cxx
index 4c7ad027c576..03663f77aeb8 100644
--- a/connectivity/source/drivers/odbc/OTools.cxx
+++ b/connectivity/source/drivers/odbc/OTools.cxx
@@ -149,7 +149,7 @@ void OTools::getValue( OConnection* _pConnection,
_aStatementHandle,SQL_HANDLE_STMT,_xInterface,sal_False);
_bWasNull = pcbValue == SQL_NULL_DATA;
}
-// -------------------------------------------------------------------------
+
void OTools::bindValue( OConnection* _pConnection,
SQLHANDLE _aStatementHandle,
sal_Int32 columnIndex,
@@ -289,7 +289,7 @@ void OTools::bindValue( OConnection* _pConnection,
OTools::ThrowException(_pConnection,nRetcode,_aStatementHandle,SQL_HANDLE_STMT,_xInterface);
}
-// -----------------------------------------------------------------------------
+
void OTools::ThrowException(const OConnection* _pConnection,
const SQLRETURN _rRetCode,
const SQLHANDLE _pContext,
@@ -349,7 +349,7 @@ void OTools::ThrowException(const OConnection* _pConnection,
);
}
-// -------------------------------------------------------------------------
+
Sequence<sal_Int8> OTools::getBytesValue(const OConnection* _pConnection,
const SQLHANDLE _aStatementHandle,
const sal_Int32 columnIndex,
@@ -402,7 +402,7 @@ Sequence<sal_Int8> OTools::getBytesValue(const OConnection* _pConnection,
}
return aData;
}
-// -------------------------------------------------------------------------
+
OUString OTools::getStringValue(OConnection* _pConnection,
SQLHANDLE _aStatementHandle,
sal_Int32 columnIndex,
@@ -516,7 +516,7 @@ OUString OTools::getStringValue(OConnection* _pConnection,
return aData.makeStringAndClear();
}
-// -------------------------------------------------------------------------
+
void OTools::GetInfo(OConnection* _pConnection,
SQLHANDLE _aConnectionHandle,
SQLUSMALLINT _nInfo,
@@ -532,7 +532,7 @@ void OTools::GetInfo(OConnection* _pConnection,
_rValue = OUString(aValue,nValueLen,_nTextEncoding);
}
-// -------------------------------------------------------------------------
+
void OTools::GetInfo(OConnection* _pConnection,
SQLHANDLE _aConnectionHandle,
SQLUSMALLINT _nInfo,
@@ -545,7 +545,7 @@ void OTools::GetInfo(OConnection* _pConnection,
(*(T3SQLGetInfo)_pConnection->getOdbcFunction(ODBC3SQLGetInfo))(_aConnectionHandle,_nInfo,&_rValue,sizeof _rValue,&nValueLen),
_aConnectionHandle,SQL_HANDLE_DBC,_xInterface);
}
-// -------------------------------------------------------------------------
+
void OTools::GetInfo(OConnection* _pConnection,
SQLHANDLE _aConnectionHandle,
SQLUSMALLINT _nInfo,
@@ -558,7 +558,7 @@ void OTools::GetInfo(OConnection* _pConnection,
(*(T3SQLGetInfo)_pConnection->getOdbcFunction(ODBC3SQLGetInfo))(_aConnectionHandle,_nInfo,&_rValue,sizeof _rValue,&nValueLen),
_aConnectionHandle,SQL_HANDLE_DBC,_xInterface);
}
-// -------------------------------------------------------------------------
+
void OTools::GetInfo(OConnection* _pConnection,
SQLHANDLE _aConnectionHandle,
SQLUSMALLINT _nInfo,
@@ -571,7 +571,7 @@ void OTools::GetInfo(OConnection* _pConnection,
(*(T3SQLGetInfo)_pConnection->getOdbcFunction(ODBC3SQLGetInfo))(_aConnectionHandle,_nInfo,&_rValue,sizeof _rValue,&nValueLen),
_aConnectionHandle,SQL_HANDLE_DBC,_xInterface);
}
-// -------------------------------------------------------------------------
+
void OTools::GetInfo(OConnection* _pConnection,
SQLHANDLE _aConnectionHandle,
SQLUSMALLINT _nInfo,
@@ -583,7 +583,7 @@ void OTools::GetInfo(OConnection* _pConnection,
(*(T3SQLGetInfo)_pConnection->getOdbcFunction(ODBC3SQLGetInfo))(_aConnectionHandle,_nInfo,&_rValue,sizeof _rValue,&nValueLen),
_aConnectionHandle,SQL_HANDLE_DBC,_xInterface);
}
-// -------------------------------------------------------------------------
+
sal_Int32 OTools::MapOdbcType2Jdbc(SQLSMALLINT _nType)
{
sal_Int32 nValue = DataType::VARCHAR;
@@ -658,10 +658,10 @@ sal_Int32 OTools::MapOdbcType2Jdbc(SQLSMALLINT _nType)
}
return nValue;
}
-//--------------------------------------------------------------------
+
// jdbcTypeToOdbc
// Convert the JDBC SQL type to the correct ODBC type
-//--------------------------------------------------------------------
+
SQLSMALLINT OTools::jdbcTypeToOdbc(sal_Int32 jdbcType)
{
SAL_INFO( "connectivity.drivers", "odbc Ocke.Janssen@sun.com OTools::jdbcTypeToOdbc" );
@@ -692,7 +692,7 @@ SQLSMALLINT OTools::jdbcTypeToOdbc(sal_Int32 jdbcType)
return odbcType;
}
-//-----------------------------------------------------------------------------
+
void OTools::getBindTypes(sal_Bool _bUseWChar,
sal_Bool _bUseOldTimeDate,
SQLSMALLINT _nOdbcType,
diff --git a/connectivity/source/drivers/odbc/oservices.cxx b/connectivity/source/drivers/odbc/oservices.cxx
index 423a11065057..aa19997fc71a 100644
--- a/connectivity/source/drivers/odbc/oservices.cxx
+++ b/connectivity/source/drivers/odbc/oservices.cxx
@@ -36,7 +36,7 @@ typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc)
rtl_ModuleCount*
);
-//---------------------------------------------------------------------------------------
+
struct ProviderRequest
{
Reference< XSingleServiceFactory > xRet;
@@ -76,7 +76,7 @@ struct ProviderRequest
void* getProvider() const { return xRet.get(); }
};
-//---------------------------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL odbc_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,
diff --git a/connectivity/source/drivers/postgresql/pq_xcolumns.cxx b/connectivity/source/drivers/postgresql/pq_xcolumns.cxx
index d62583e3ec53..17120f36771b 100644
--- a/connectivity/source/drivers/postgresql/pq_xcolumns.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xcolumns.cxx
@@ -569,7 +569,7 @@ Reference< com::sun::star::container::XNameAccess > Columns::create(
}
-//_____________________________________________________________________________________
+
ColumnDescriptors::ColumnDescriptors(
const ::rtl::Reference< RefCountedMutex > & refMutex,
const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & origin,
diff --git a/connectivity/source/drivers/postgresql/pq_xindex.cxx b/connectivity/source/drivers/postgresql/pq_xindex.cxx
index 779157fee0b1..3788a4a3d0a1 100644
--- a/connectivity/source/drivers/postgresql/pq_xindex.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xindex.cxx
@@ -160,7 +160,7 @@ Any Index::queryInterface( const Type & reqType ) throw (RuntimeException)
}
-//___________________________________________________________________________________
+
IndexDescriptor::IndexDescriptor(
const ::rtl::Reference< RefCountedMutex > & refMutex,
const Reference< com::sun::star::sdbc::XConnection > & connection,
diff --git a/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx b/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx
index 55e9e3d9007e..4cc2eb1971ab 100644
--- a/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx
@@ -269,7 +269,7 @@ Reference< com::sun::star::container::XNameAccess > IndexColumns::create(
return ret;
}
-//_________________________________________________________________________________________
+
IndexColumnDescriptors::IndexColumnDescriptors(
const ::rtl::Reference< RefCountedMutex > & refMutex,
const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & origin,
diff --git a/connectivity/source/drivers/postgresql/pq_xindexes.cxx b/connectivity/source/drivers/postgresql/pq_xindexes.cxx
index 18a2d7b3ec18..7aa98928b98d 100644
--- a/connectivity/source/drivers/postgresql/pq_xindexes.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xindexes.cxx
@@ -301,7 +301,7 @@ Reference< com::sun::star::container::XNameAccess > Indexes::create(
}
-//_________________________________________________________________________________________
+
IndexDescriptors::IndexDescriptors(
const ::rtl::Reference< RefCountedMutex > & refMutex,
const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & origin,
diff --git a/connectivity/source/drivers/postgresql/pq_xkey.cxx b/connectivity/source/drivers/postgresql/pq_xkey.cxx
index 3e36d498de81..3d2c5f40def0 100644
--- a/connectivity/source/drivers/postgresql/pq_xkey.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xkey.cxx
@@ -162,7 +162,7 @@ Any Key::queryInterface( const Type & reqType ) throw (RuntimeException)
}
-//_____________________________________________________________________________
+
KeyDescriptor::KeyDescriptor( const ::rtl::Reference< RefCountedMutex > & refMutex,
const Reference< com::sun::star::sdbc::XConnection > & connection,
ConnectionSettings *pSettings )
diff --git a/connectivity/source/drivers/postgresql/pq_xkeycolumns.cxx b/connectivity/source/drivers/postgresql/pq_xkeycolumns.cxx
index b7f05970ac6c..8e9d19d26520 100644
--- a/connectivity/source/drivers/postgresql/pq_xkeycolumns.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xkeycolumns.cxx
@@ -369,7 +369,7 @@ Reference< com::sun::star::container::XNameAccess > KeyColumns::create(
return ret;
}
-//_______________________________________________________________________________________
+
KeyColumnDescriptors::KeyColumnDescriptors(
const ::rtl::Reference< RefCountedMutex > & refMutex,
const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & origin,
diff --git a/connectivity/source/drivers/postgresql/pq_xkeys.cxx b/connectivity/source/drivers/postgresql/pq_xkeys.cxx
index e6f60b9c5973..40e82b67bf5c 100644
--- a/connectivity/source/drivers/postgresql/pq_xkeys.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xkeys.cxx
@@ -285,7 +285,7 @@ Reference< com::sun::star::container::XIndexAccess > Keys::create(
return ret;
}
-//_________________________________________________________________________________________
+
KeyDescriptors::KeyDescriptors(
const ::rtl::Reference< RefCountedMutex > & refMutex,
const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & origin,
diff --git a/connectivity/source/drivers/postgresql/pq_xtable.cxx b/connectivity/source/drivers/postgresql/pq_xtable.cxx
index a76d90db04f8..d802ac9634b3 100644
--- a/connectivity/source/drivers/postgresql/pq_xtable.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xtable.cxx
@@ -347,7 +347,7 @@ void Table::setName( const OUString& aName ) throw (::com::sun::star::uno::Runti
-//________________________________________________________________________
+
TableDescriptor::TableDescriptor(
const ::rtl::Reference< RefCountedMutex > & refMutex,
const Reference< com::sun::star::sdbc::XConnection > & connection,
diff --git a/connectivity/source/drivers/postgresql/pq_xuser.cxx b/connectivity/source/drivers/postgresql/pq_xuser.cxx
index b32fb9721365..01ebaea86335 100644
--- a/connectivity/source/drivers/postgresql/pq_xuser.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xuser.cxx
@@ -198,7 +198,7 @@ void User::revokePrivileges( const OUString& objName, sal_Int32 objType, sal_Int
*this, OUString(), 1, Any() );
}
-//______________________________________________________________________________________
+
UserDescriptor::UserDescriptor(
const ::rtl::Reference< RefCountedMutex > & refMutex,
const Reference< com::sun::star::sdbc::XConnection > & connection,
diff --git a/connectivity/source/drivers/postgresql/pq_xview.cxx b/connectivity/source/drivers/postgresql/pq_xview.cxx
index b71f36f5c963..a40846702468 100644
--- a/connectivity/source/drivers/postgresql/pq_xview.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xview.cxx
@@ -226,7 +226,7 @@ void View::setName( const OUString& aName ) throw (::com::sun::star::uno::Runtim
rename( aName );
}
-//____________________________________________________________________________________________
+
ViewDescriptor::ViewDescriptor(
const ::rtl::Reference< RefCountedMutex > & refMutex,
diff --git a/connectivity/source/manager/mdrivermanager.cxx b/connectivity/source/manager/mdrivermanager.cxx
index 02f3a9ce4001..484af4a08106 100644
--- a/connectivity/source/manager/mdrivermanager.cxx
+++ b/connectivity/source/manager/mdrivermanager.cxx
@@ -81,25 +81,25 @@ public:
virtual Any SAL_CALL nextElement( ) throw(NoSuchElementException, WrappedTargetException, RuntimeException);
};
-//--------------------------------------------------------------------------
+
ODriverEnumeration::ODriverEnumeration(const DriverArray& _rDriverSequence)
:m_aDrivers( _rDriverSequence )
,m_aPos( m_aDrivers.begin() )
{
}
-//--------------------------------------------------------------------------
+
ODriverEnumeration::~ODriverEnumeration()
{
}
-//--------------------------------------------------------------------------
+
sal_Bool SAL_CALL ODriverEnumeration::hasMoreElements( ) throw(RuntimeException)
{
return m_aPos != m_aDrivers.end();
}
-//--------------------------------------------------------------------------
+
Any SAL_CALL ODriverEnumeration::nextElement( ) throw(NoSuchElementException, WrappedTargetException, RuntimeException)
{
if ( !hasMoreElements() )
@@ -247,7 +247,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) throw(NoSuchElementException, W
//==========================================================================
//= OSDBCDriverManager
//==========================================================================
-//--------------------------------------------------------------------------
+
OSDBCDriverManager::OSDBCDriverManager( const Reference< XComponentContext >& _rxContext )
:m_xContext( _rxContext )
,m_aEventLogger( _rxContext, "org.openoffice.logging.sdbc.DriverManager" )
@@ -261,7 +261,7 @@ OSDBCDriverManager::OSDBCDriverManager( const Reference< XComponentContext >& _r
initializeDriverPrecedence();
}
-//---------------------------------------------------------------------
+
OSDBCDriverManager::~OSDBCDriverManager()
{
}
@@ -336,7 +336,7 @@ void OSDBCDriverManager::bootstrapDrivers()
}
}
-//--------------------------------------------------------------------------
+
void OSDBCDriverManager::initializeDriverPrecedence()
{
if ( m_aDriversBS.empty() )
@@ -408,7 +408,7 @@ void OSDBCDriverManager::initializeDriverPrecedence()
}
}
-//--------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OSDBCDriverManager::getConnection( const OUString& _rURL ) throw(SQLException, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -434,7 +434,7 @@ Reference< XConnection > SAL_CALL OSDBCDriverManager::getConnection( const OUStr
return xConnection;
}
-//--------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OSDBCDriverManager::getConnectionWithInfo( const OUString& _rURL, const Sequence< PropertyValue >& _rInfo ) throw(SQLException, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -460,21 +460,21 @@ Reference< XConnection > SAL_CALL OSDBCDriverManager::getConnectionWithInfo( con
return xConnection;
}
-//--------------------------------------------------------------------------
+
void SAL_CALL OSDBCDriverManager::setLoginTimeout( sal_Int32 seconds ) throw(RuntimeException)
{
MutexGuard aGuard(m_aMutex);
m_nLoginTimeout = seconds;
}
-//--------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OSDBCDriverManager::getLoginTimeout( ) throw(RuntimeException)
{
MutexGuard aGuard(m_aMutex);
return m_nLoginTimeout;
}
-//--------------------------------------------------------------------------
+
Reference< XEnumeration > SAL_CALL OSDBCDriverManager::createEnumeration( ) throw(RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -503,20 +503,20 @@ Reference< XEnumeration > SAL_CALL OSDBCDriverManager::createEnumeration( ) thr
return new ODriverEnumeration( aDrivers );
}
-//--------------------------------------------------------------------------
+
::com::sun::star::uno::Type SAL_CALL OSDBCDriverManager::getElementType( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::getCppuType(static_cast< Reference< XDriver >* >(NULL));
}
-//--------------------------------------------------------------------------
+
sal_Bool SAL_CALL OSDBCDriverManager::hasElements( ) throw(::com::sun::star::uno::RuntimeException)
{
MutexGuard aGuard(m_aMutex);
return !(m_aDriversBS.empty() && m_aDriversRT.empty());
}
-//--------------------------------------------------------------------------
+
OUString SAL_CALL OSDBCDriverManager::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_static();
@@ -527,25 +527,25 @@ sal_Bool SAL_CALL OSDBCDriverManager::supportsService( const OUString& _rService
return cppu::supportsService(this, _rServiceName);
}
-//--------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OSDBCDriverManager::getSupportedServiceNames( ) throw(RuntimeException)
{
return getSupportedServiceNames_static();
}
-//--------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL OSDBCDriverManager::Create( const Reference< XMultiServiceFactory >& _rxFactory )
{
return *( new OSDBCDriverManager( comphelper::getComponentContext(_rxFactory) ) );
}
-//--------------------------------------------------------------------------
+
OUString SAL_CALL OSDBCDriverManager::getImplementationName_static( ) throw(RuntimeException)
{
return OUString("com.sun.star.comp.sdbc.OSDBCDriverManager");
}
-//--------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OSDBCDriverManager::getSupportedServiceNames_static( ) throw(RuntimeException)
{
Sequence< OUString > aSupported(1);
@@ -553,13 +553,13 @@ Sequence< OUString > SAL_CALL OSDBCDriverManager::getSupportedServiceNames_stati
return aSupported;
}
-//--------------------------------------------------------------------------
+
OUString SAL_CALL OSDBCDriverManager::getSingletonName_static( ) throw(RuntimeException)
{
return OUString( "com.sun.star.sdbc.DriverManager" );
}
-//--------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL OSDBCDriverManager::getRegisteredObject( const OUString& _rName ) throw(Exception, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -570,7 +570,7 @@ Reference< XInterface > SAL_CALL OSDBCDriverManager::getRegisteredObject( const
return aSearch->second.get();
}
-//--------------------------------------------------------------------------
+
void SAL_CALL OSDBCDriverManager::registerObject( const OUString& _rName, const Reference< XInterface >& _rxObject ) throw(Exception, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -598,7 +598,7 @@ void SAL_CALL OSDBCDriverManager::registerObject( const OUString& _rName, const
);
}
-//--------------------------------------------------------------------------
+
void SAL_CALL OSDBCDriverManager::revokeObject( const OUString& _rName ) throw(Exception, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -620,7 +620,7 @@ void SAL_CALL OSDBCDriverManager::revokeObject( const OUString& _rName ) throw(E
);
}
-//--------------------------------------------------------------------------
+
Reference< XDriver > SAL_CALL OSDBCDriverManager::getDriverByURL( const OUString& _rURL ) throw(RuntimeException)
{
m_aEventLogger.log( LogLevel::INFO,
@@ -639,7 +639,7 @@ Reference< XDriver > SAL_CALL OSDBCDriverManager::getDriverByURL( const OUString
return xDriver;
}
-//--------------------------------------------------------------------------
+
Reference< XDriver > OSDBCDriverManager::implGetDriverForURL(const OUString& _rURL)
{
Reference< XDriver > xReturn;
diff --git a/connectivity/source/manager/mregistration.cxx b/connectivity/source/manager/mregistration.cxx
index ce712f303eec..745ce6efb551 100644
--- a/connectivity/source/manager/mregistration.cxx
+++ b/connectivity/source/manager/mregistration.cxx
@@ -33,7 +33,7 @@ using namespace ::com::sun::star::lang;
extern "C"
{
-//---------------------------------------------------------------------------------------
+
SAL_DLLPUBLIC_EXPORT void* SAL_CALL sdbc2_component_getFactory(const sal_Char* _pImplName, ::com::sun::star::lang::XMultiServiceFactory* _pServiceManager, void* /*_pRegistryKey*/)
{
void* pRet = NULL;
diff --git a/connectivity/source/parse/PColumn.cxx b/connectivity/source/parse/PColumn.cxx
index 6e5cdb91f0cc..8cf17f19d19f 100644
--- a/connectivity/source/parse/PColumn.cxx
+++ b/connectivity/source/parse/PColumn.cxx
@@ -34,7 +34,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
-// -------------------------------------------------------------------------
+
OParseColumn::OParseColumn(const Reference<XPropertySet>& _xColumn,sal_Bool _bCase)
: connectivity::sdbcx::OColumn( getString(_xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME)))
, getString(_xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPENAME)))
@@ -60,7 +60,7 @@ OParseColumn::OParseColumn(const Reference<XPropertySet>& _xColumn,sal_Bool
construct();
}
-// -------------------------------------------------------------------------
+
OParseColumn::OParseColumn( const OUString& _Name,
const OUString& _TypeName,
const OUString& _DefaultValue,
@@ -98,7 +98,7 @@ OParseColumn::OParseColumn( const OUString& _Name,
construct();
}
-// -------------------------------------------------------------------------
+
::rtl::Reference< OSQLColumns > OParseColumn::createColumnsForResultSet( const Reference< XResultSetMetaData >& _rxResMetaData,
const Reference< XDatabaseMetaData >& _rxDBMetaData,const Reference< XNameAccess>& i_xQueryColumns )
{
@@ -123,7 +123,7 @@ OParseColumn::OParseColumn( const OUString& _Name,
return aReturn;
}
-// -------------------------------------------------------------------------
+
OParseColumn* OParseColumn::createColumnForResultSet( const Reference< XResultSetMetaData >& _rxResMetaData,
const Reference< XDatabaseMetaData >& _rxDBMetaData, sal_Int32 _nColumnPos, StringMap& _rColumns )
{
@@ -163,11 +163,11 @@ OParseColumn* OParseColumn::createColumnForResultSet( const Reference< XResultSe
return pColumn;
}
-// -------------------------------------------------------------------------
+
OParseColumn::~OParseColumn()
{
}
-// -------------------------------------------------------------------------
+
void OParseColumn::construct()
{
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FUNCTION), PROPERTY_ID_FUNCTION, 0, &m_bFunction, ::getCppuType(&m_bFunction));
@@ -177,19 +177,19 @@ void OParseColumn::construct()
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISSEARCHABLE), PROPERTY_ID_ISSEARCHABLE, 0, &m_bIsSearchable, ::getCppuType(&m_bIsSearchable));
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_LABEL), PROPERTY_ID_LABEL, 0, &m_sLabel, ::getCppuType(&m_sLabel));
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OParseColumn::createArrayHelper() const
{
return doCreateArrayHelper();
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & SAL_CALL OParseColumn::getInfoHelper()
{
OSL_ENSURE( !isNew(), "OParseColumn::getInfoHelper: a *new* ParseColumn?" );
return *OParseColumn_PROP::getArrayHelper();
}
-// -----------------------------------------------------------------------------
+
OOrderColumn::OOrderColumn( const Reference<XPropertySet>& _xColumn, const OUString& i_rOriginatingTableName,
sal_Bool _bCase, sal_Bool _bAscending )
: connectivity::sdbcx::OColumn(
@@ -214,7 +214,7 @@ OOrderColumn::OOrderColumn( const Reference<XPropertySet>& _xColumn, const OUStr
construct();
}
-// -----------------------------------------------------------------------------
+
OOrderColumn::OOrderColumn( const Reference<XPropertySet>& _xColumn, sal_Bool _bCase, sal_Bool _bAscending )
: connectivity::sdbcx::OColumn(
getString(_xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME))),
@@ -238,29 +238,29 @@ OOrderColumn::OOrderColumn( const Reference<XPropertySet>& _xColumn, sal_Bool _b
construct();
}
-// -------------------------------------------------------------------------
+
OOrderColumn::~OOrderColumn()
{
}
-// -------------------------------------------------------------------------
+
void OOrderColumn::construct()
{
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISASCENDING), PROPERTY_ID_ISASCENDING,
PropertyAttribute::READONLY, const_cast< sal_Bool* >( &m_bAscending ), ::getCppuType( &m_bAscending ) );
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OOrderColumn::createArrayHelper() const
{
return doCreateArrayHelper();
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & SAL_CALL OOrderColumn::getInfoHelper()
{
OSL_ENSURE( !isNew(), "OOrderColumn::getInfoHelper: a *new* OrderColumn?" );
return *OOrderColumn_PROP::getArrayHelper();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< OUString > SAL_CALL OOrderColumn::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
@@ -268,6 +268,6 @@ void OOrderColumn::construct()
return aSupported;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/parse/internalnode.cxx b/connectivity/source/parse/internalnode.cxx
index 19caebb8cf0e..e6ea846b7cfe 100644
--- a/connectivity/source/parse/internalnode.cxx
+++ b/connectivity/source/parse/internalnode.cxx
@@ -24,7 +24,7 @@
using namespace connectivity;
-//-----------------------------------------------------------------------------
+
OSQLInternalNode::OSQLInternalNode(const sal_Char* pNewValue,
SQLNodeType eNodeType,
sal_uInt32 nNodeID)
@@ -34,7 +34,7 @@ OSQLInternalNode::OSQLInternalNode(const sal_Char* pNewValue,
(*OSQLParser::s_pGarbageCollector)->push_back(this);
}
-//-----------------------------------------------------------------------------
+
OSQLInternalNode::OSQLInternalNode(const OString &_NewValue,
SQLNodeType eNodeType,
sal_uInt32 nNodeID)
@@ -44,7 +44,7 @@ OSQLInternalNode::OSQLInternalNode(const OString &_NewValue,
(*OSQLParser::s_pGarbageCollector)->push_back(this);
}
-//-----------------------------------------------------------------------------
+
OSQLInternalNode::OSQLInternalNode(const OUString &_NewValue,
SQLNodeType eNodeType,
sal_uInt32 nNodeID)
@@ -55,7 +55,7 @@ OSQLInternalNode::OSQLInternalNode(const OUString &_NewValue,
}
-//-----------------------------------------------------------------------------
+
OSQLInternalNode::~OSQLInternalNode()
{
// remove the node from the garbage list
diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx
index f896a1ec10df..506f51eac32b 100644
--- a/connectivity/source/parse/sqliterator.cxx
+++ b/connectivity/source/parse/sqliterator.cxx
@@ -110,7 +110,7 @@ namespace connectivity
}
};
- //-------------------------------------------------------------------------
+
/** helper class for temporarily adding a query name to a list of forbidden query names
*/
class ForbidQueryName
@@ -134,7 +134,7 @@ namespace connectivity
}
};
}
-//-----------------------------------------------------------------------------
+
OSQLParseTreeIterator::OSQLParseTreeIterator(const Reference< XConnection >& _rxConnection,
const Reference< XNameAccess >& _rxTables,
const OSQLParser& _rParser,
@@ -146,7 +146,7 @@ OSQLParseTreeIterator::OSQLParseTreeIterator(const Reference< XConnection >& _rx
setParseTree(pRoot);
}
-//-----------------------------------------------------------------------------
+
OSQLParseTreeIterator::OSQLParseTreeIterator( const OSQLParseTreeIterator& _rParentIterator, const OSQLParser& _rParser, const OSQLParseNode* pRoot )
:m_rParser( _rParser )
,m_pImpl( new OSQLParseTreeIteratorImpl( _rParentIterator.m_pImpl->m_xConnection, _rParentIterator.m_pImpl->m_xTableContainer ) )
@@ -156,27 +156,27 @@ OSQLParseTreeIterator::OSQLParseTreeIterator( const OSQLParseTreeIterator& _rPar
setParseTree( pRoot );
}
-//-----------------------------------------------------------------------------
+
OSQLParseTreeIterator::~OSQLParseTreeIterator()
{
dispose();
}
-// -----------------------------------------------------------------------------
+
const OSQLTables& OSQLParseTreeIterator::getTables() const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getTables" );
return *m_pImpl->m_pTables;
}
-// -----------------------------------------------------------------------------
+
bool OSQLParseTreeIterator::isCaseSensitive() const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::isCaseSensitive" );
return m_pImpl->m_bIsCaseSensitive;
}
-// -----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::dispose()
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::dispose" );
@@ -190,7 +190,7 @@ void OSQLParseTreeIterator::dispose()
m_pImpl->m_pTables->clear();
m_pImpl->m_pSubTables->clear();
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::setParseTree(const OSQLParseNode * pNewParseTree)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::setParseTree" );
@@ -251,7 +251,7 @@ void OSQLParseTreeIterator::setParseTree(const OSQLParseNode * pNewParseTree)
}
}
-//-----------------------------------------------------------------------------
+
namespace
{
//.........................................................................
@@ -309,7 +309,7 @@ namespace
}
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::impl_getQueryParameterColumns( const OSQLTable& _rQuery )
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::impl_getQueryParameterColumns" );
@@ -358,7 +358,7 @@ void OSQLParseTreeIterator::impl_getQueryParameterColumns( const OSQLTable& _rQu
::std::insert_iterator< OSQLColumns::Vector >( m_aParameters->get(), m_aParameters->get().end() ) );
}
-//-----------------------------------------------------------------------------
+
OSQLTable OSQLParseTreeIterator::impl_locateRecordSource( const OUString& _rComposedName )
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::impl_locateRecordSource" );
@@ -436,7 +436,7 @@ OSQLTable OSQLParseTreeIterator::impl_locateRecordSource( const OUString& _rComp
return aReturn;
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::traverseOneTableName( OSQLTables& _rTables,const OSQLParseNode * pTableName, const OUString & rTableRange )
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::traverseOneTableName" );
@@ -470,7 +470,7 @@ void OSQLParseTreeIterator::traverseOneTableName( OSQLTables& _rTables,const OSQ
if ( aTable.is() )
_rTables[ aTableRange ] = aTable;
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::impl_fillJoinConditions(const OSQLParseNode* i_pJoinCondition)
{
if (i_pJoinCondition->count() == 3 && // Expression with brackets
@@ -501,12 +501,12 @@ void OSQLParseTreeIterator::impl_fillJoinConditions(const OSQLParseNode* i_pJoin
}
}
}
-//-----------------------------------------------------------------------------
+
::std::vector< TNodePair >& OSQLParseTreeIterator::getJoinConditions() const
{
return m_pImpl->m_aJoinConditions;
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::getQualified_join( OSQLTables& _rTables, const OSQLParseNode *pTableRef, OUString& aTableRange )
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getQualified_join" );
@@ -549,7 +549,7 @@ void OSQLParseTreeIterator::getQualified_join( OSQLTables& _rTables, const OSQLP
if ( isTableNode( pNode ) )
traverseOneTableName( _rTables, pNode, aTableRange );
}
-//-----------------------------------------------------------------------------
+
const OSQLParseNode* OSQLParseTreeIterator::getTableNode( OSQLTables& _rTables, const OSQLParseNode *pTableRef,OUString& rTableRange )
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getTableNode" );
@@ -614,7 +614,7 @@ const OSQLParseNode* OSQLParseTreeIterator::getTableNode( OSQLTables& _rTables,
return pTableNameNode;
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::getSelect_statement(OSQLTables& _rTables,const OSQLParseNode* pSelect)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getSelect_statement" );
@@ -670,7 +670,7 @@ void OSQLParseTreeIterator::getSelect_statement(OSQLTables& _rTables,const OSQLP
// if (! aIteratorStatus.IsSuccessful()) break;
}
}
-//-----------------------------------------------------------------------------
+
bool OSQLParseTreeIterator::traverseTableNames(OSQLTables& _rTables)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::traverseTableNames" );
@@ -706,7 +706,7 @@ bool OSQLParseTreeIterator::traverseTableNames(OSQLTables& _rTables)
return !hasErrors();
}
-//-----------------------------------------------------------------------------
+
OUString OSQLParseTreeIterator::getColumnAlias(const OSQLParseNode* _pDerivedColumn)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getColumnAlias" );
@@ -719,7 +719,7 @@ OUString OSQLParseTreeIterator::getColumnAlias(const OSQLParseNode* _pDerivedCol
return sColumnAlias;
}
-// -----------------------------------------------------------------------------
+
namespace
{
void lcl_getColumnRange( const OSQLParseNode* _pColumnRef, const Reference< XConnection >& _rxConnection,
@@ -774,7 +774,7 @@ namespace
}
}
-// -----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::getColumnRange( const OSQLParseNode* _pColumnRef,
OUString& _rColumnName,
OUString& _rTableRange) const
@@ -784,7 +784,7 @@ void OSQLParseTreeIterator::getColumnRange( const OSQLParseNode* _pColumnRef,
lcl_getColumnRange( _pColumnRef, m_pImpl->m_xConnection, _rColumnName, _rTableRange, NULL, sDummy );
}
-// -----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::getColumnRange( const OSQLParseNode* _pColumnRef,
OUString& _rColumnName,
OUString& _rTableRange,
@@ -794,7 +794,7 @@ void OSQLParseTreeIterator::getColumnRange( const OSQLParseNode* _pColumnRef,
lcl_getColumnRange( _pColumnRef, m_pImpl->m_xConnection, _rColumnName, _rTableRange, &*m_aSelectColumns, _out_rColumnAliasIfPresent );
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::getColumnRange( const OSQLParseNode* _pColumnRef,
const Reference< XConnection >& _rxConnection, OUString& _out_rColumnName, OUString& _out_rTableRange )
{
@@ -803,7 +803,7 @@ void OSQLParseTreeIterator::getColumnRange( const OSQLParseNode* _pColumnRef,
lcl_getColumnRange( _pColumnRef, _rxConnection, _out_rColumnName, _out_rTableRange, NULL, sDummy );
}
-//-----------------------------------------------------------------------------
+
bool OSQLParseTreeIterator::getColumnTableRange(const OSQLParseNode* pNode, OUString &rTableRange) const
{
OUString tmp;
@@ -870,7 +870,7 @@ bool OSQLParseTreeIterator::impl_getColumnTableRange(const OSQLParseNode* pNode,
return true;
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::traverseCreateColumns(const OSQLParseNode* pSelectNode)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::traverseCreateColumns" );
@@ -931,7 +931,7 @@ void OSQLParseTreeIterator::traverseCreateColumns(const OSQLParseNode* pSelectNo
}
}
-//-----------------------------------------------------------------------------
+
bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSelectNode)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::traverseSelectColumnNames" );
@@ -1036,14 +1036,14 @@ bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSele
}
-//-----------------------------------------------------------------------------
+
bool OSQLParseTreeIterator::traverseOrderByColumnNames(const OSQLParseNode* pSelectNode)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::traverseOrderByColumnNames" );
traverseByColumnNames( pSelectNode, sal_True );
return !hasErrors();
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::traverseByColumnNames(const OSQLParseNode* pSelectNode,sal_Bool _bOrder)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::traverseByColumnNames" );
@@ -1128,7 +1128,7 @@ void OSQLParseTreeIterator::traverseByColumnNames(const OSQLParseNode* pSelectNo
setGroupByColumnName(sColumnName, aTableRange);
}
}
-//-----------------------------------------------------------------------------
+
bool OSQLParseTreeIterator::traverseGroupByColumnNames(const OSQLParseNode* pSelectNode)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::traverseGroupByColumnNames" );
@@ -1136,7 +1136,7 @@ bool OSQLParseTreeIterator::traverseGroupByColumnNames(const OSQLParseNode* pSel
return !hasErrors();
}
-// -----------------------------------------------------------------------------
+
namespace
{
OUString lcl_generateParameterName( const OSQLParseNode& _rParentNode, const OSQLParseNode& _rParamNode )
@@ -1155,7 +1155,7 @@ namespace
}
}
-// -----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::traverseParameters(const OSQLParseNode* _pNode)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::traverseParameters" );
@@ -1209,7 +1209,7 @@ void OSQLParseTreeIterator::traverseParameters(const OSQLParseNode* _pNode)
traverseParameters( pChild );
}
}
-//-----------------------------------------------------------------------------
+
bool OSQLParseTreeIterator::traverseSelectionCriteria(const OSQLParseNode* pSelectNode)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::traverseSelectionCriteria" );
@@ -1272,7 +1272,7 @@ bool OSQLParseTreeIterator::traverseSelectionCriteria(const OSQLParseNode* pSele
return !hasErrors();
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::traverseSearchCondition(OSQLParseNode * pSearchCondition)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::traverseSearchCondition" );
@@ -1401,7 +1401,7 @@ void OSQLParseTreeIterator::traverseSearchCondition(OSQLParseNode * pSearchCondi
}
// Just pass on the error
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::traverseParameter(const OSQLParseNode* _pParseNode
,const OSQLParseNode* _pParentNode
,const OUString& _aColumnName
@@ -1542,7 +1542,7 @@ void OSQLParseTreeIterator::traverseParameter(const OSQLParseNode* _pParseNode
}
}
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::traverseOnePredicate(
OSQLParseNode * pColumnRef,
OUString& rValue,
@@ -1569,21 +1569,21 @@ void OSQLParseTreeIterator::traverseOnePredicate(
}
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::traverseSome( sal_uInt32 _nIncludeMask )
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::traverseSome" );
impl_traverse( _nIncludeMask );
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::traverseAll()
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::traverseAll" );
impl_traverse( All );
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::impl_traverse( sal_uInt32 _nIncludeMask )
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::impl_traverse" );
@@ -1624,7 +1624,7 @@ void OSQLParseTreeIterator::impl_traverse( sal_uInt32 _nIncludeMask )
// Dummy implementations
-//-----------------------------------------------------------------------------
+
OSQLTable OSQLParseTreeIterator::impl_createTableObject( const OUString& rTableName,
const OUString& rCatalogName, const OUString& rSchemaName )
{
@@ -1645,7 +1645,7 @@ OSQLTable OSQLParseTreeIterator::impl_createTableObject( const OUString& rTableN
);
return aReturnTable;
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::appendColumns(::rtl::Reference<OSQLColumns>& _rColumns,const OUString& _rTableAlias,const OSQLTable& _rTable)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::appendColumns" );
@@ -1692,7 +1692,7 @@ void OSQLParseTreeIterator::appendColumns(::rtl::Reference<OSQLColumns>& _rColum
impl_appendError( IParseContext::ERROR_INVALID_COLUMN, pBegin, &_rTableAlias );
}
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::setSelectColumnName(::rtl::Reference<OSQLColumns>& _rColumns,const OUString & rColumnName,const OUString & rColumnAlias, const OUString & rTableRange,sal_Bool bFkt,sal_Int32 _nType,sal_Bool bAggFkt)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::setSelectColumnName" );
@@ -1848,7 +1848,7 @@ void OSQLParseTreeIterator::setSelectColumnName(::rtl::Reference<OSQLColumns>& _
}
}
}
-//-----------------------------------------------------------------------------
+
OUString OSQLParseTreeIterator::getUniqueColumnName(const OUString & rColumnName) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getUniqueColumnName" );
@@ -1873,7 +1873,7 @@ OUString OSQLParseTreeIterator::getUniqueColumnName(const OUString & rColumnName
}
return aAlias;
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::setOrderByColumnName(const OUString & rColumnName, OUString & rTableRange, sal_Bool bAscending)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::setOrderByColumnName" );
@@ -1897,7 +1897,7 @@ void OSQLParseTreeIterator::setOrderByColumnName(const OUString & rColumnName, O
<< "\n";
#endif
}
-//-----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::setGroupByColumnName(const OUString & rColumnName, OUString & rTableRange)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::setGroupByColumnName" );
@@ -1920,7 +1920,7 @@ void OSQLParseTreeIterator::setGroupByColumnName(const OUString & rColumnName, O
#endif
}
-//-----------------------------------------------------------------------------
+
const OSQLParseNode* OSQLParseTreeIterator::getWhereTree() const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getWhereTree" );
@@ -1952,7 +1952,7 @@ const OSQLParseNode* OSQLParseTreeIterator::getWhereTree() const
return pWhereClause;
}
-//-----------------------------------------------------------------------------
+
const OSQLParseNode* OSQLParseTreeIterator::getOrderTree() const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getOrderTree" );
@@ -1976,7 +1976,7 @@ const OSQLParseNode* OSQLParseTreeIterator::getOrderTree() const
pOrderClause = NULL;
return pOrderClause;
}
-//-----------------------------------------------------------------------------
+
const OSQLParseNode* OSQLParseTreeIterator::getGroupByTree() const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getGroupByTree" );
@@ -1998,7 +1998,7 @@ const OSQLParseNode* OSQLParseTreeIterator::getGroupByTree() const
pGroupClause = NULL;
return pGroupClause;
}
-//-----------------------------------------------------------------------------
+
const OSQLParseNode* OSQLParseTreeIterator::getHavingTree() const
{
if (!m_pParseTree || getStatementType() != SQL_STATEMENT_SELECT)
@@ -2019,7 +2019,7 @@ const OSQLParseNode* OSQLParseTreeIterator::getHavingTree() const
pHavingClause = NULL;
return pHavingClause;
}
-// -----------------------------------------------------------------------------
+
sal_Bool OSQLParseTreeIterator::isTableNode(const OSQLParseNode* _pTableNode) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::isTableNode" );
@@ -2027,28 +2027,28 @@ sal_Bool OSQLParseTreeIterator::isTableNode(const OSQLParseNode* _pTableNode) co
SQL_ISRULE(_pTableNode,schema_name) ||
SQL_ISRULE(_pTableNode,table_name));
}
-// -----------------------------------------------------------------------------
+
const OSQLParseNode* OSQLParseTreeIterator::getSimpleWhereTree() const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getSimpleWhereTree" );
const OSQLParseNode* pNode = getWhereTree();
return pNode ? pNode->getChild(1) : NULL;
}
-// -----------------------------------------------------------------------------
+
const OSQLParseNode* OSQLParseTreeIterator::getSimpleOrderTree() const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getSimpleOrderTree" );
const OSQLParseNode* pNode = getOrderTree();
return pNode ? pNode->getChild(2) : NULL;
}
-// -----------------------------------------------------------------------------
+
const OSQLParseNode* OSQLParseTreeIterator::getSimpleGroupByTree() const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getSimpleGroupByTree" );
const OSQLParseNode* pNode = getGroupByTree();
return pNode ? pNode->getChild(2) : NULL;
}
-// -----------------------------------------------------------------------------
+
const OSQLParseNode* OSQLParseTreeIterator::getSimpleHavingTree() const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getSimpleHavingTree" );
@@ -2056,7 +2056,7 @@ const OSQLParseNode* OSQLParseTreeIterator::getSimpleHavingTree() const
return pNode ? pNode->getChild(1) : NULL;
}
-// -----------------------------------------------------------------------------
+
Reference< XPropertySet > OSQLParseTreeIterator::findSelectColumn( const OUString & rColumnName )
{
SAL_INFO( "connectivity.parse", "parse lionel@mamane.lu OSQLParseTreeIterator::findSelectColumn" );
@@ -2080,7 +2080,7 @@ Reference< XPropertySet > OSQLParseTreeIterator::findSelectColumn( const OUStrin
return NULL;
}
-// -----------------------------------------------------------------------------
+
Reference< XPropertySet > OSQLParseTreeIterator::findColumn( const OUString & rColumnName, OUString & rTableRange, bool _bLookInSubTables )
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::findColumn" );
@@ -2090,7 +2090,7 @@ Reference< XPropertySet > OSQLParseTreeIterator::findColumn( const OUString & rC
return xColumn;
}
-// -----------------------------------------------------------------------------
+
Reference< XPropertySet > OSQLParseTreeIterator::findColumn(const OSQLTables& _rTables, const OUString & rColumnName, OUString & rTableRange)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::findColumn" );
@@ -2127,7 +2127,7 @@ Reference< XPropertySet > OSQLParseTreeIterator::findColumn(const OSQLTables& _r
return xColumn;
}
-// -----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::impl_appendError( IParseContext::ErrorCode _eError, const OUString* _pReplaceToken1, const OUString* _pReplaceToken2 )
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::impl_appendError" );
@@ -2147,7 +2147,7 @@ void OSQLParseTreeIterator::impl_appendError( IParseContext::ErrorCode _eError,
sErrorMessage, NULL, getStandardSQLState( SQL_GENERAL_ERROR ), 1000, Any() ) );
}
-// -----------------------------------------------------------------------------
+
void OSQLParseTreeIterator::impl_appendError( const SQLException& _rError )
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::impl_appendError" );
@@ -2161,7 +2161,7 @@ void OSQLParseTreeIterator::impl_appendError( const SQLException& _rError )
else
m_aErrors = _rError;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OSQLParseTreeIterator::getFunctionReturnType(const OSQLParseNode* _pNode )
{
sal_Int32 nType = DataType::OTHER;
diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx
index 5ac2712bed11..1456a8588b31 100644
--- a/connectivity/source/parse/sqlnode.cxx
+++ b/connectivity/source/parse/sqlnode.cxx
@@ -76,7 +76,7 @@ connectivity::OSQLParser* xxx_pGLOBAL_SQLPARSER;
namespace
{
- // -----------------------------------------------------------------------------
+
sal_Bool lcl_saveConvertToNumber(const Reference< XNumberFormatter > & _xFormatter,sal_Int32 _nKey,const OUString& _sValue,double& _nrValue)
{
sal_Bool bRet = sal_False;
@@ -90,14 +90,14 @@ namespace
}
return bRet;
}
- // -----------------------------------------------------------------------------
+
void replaceAndReset(connectivity::OSQLParseNode*& _pResetNode,connectivity::OSQLParseNode* _pNewNode)
{
_pResetNode->getParent()->replace(_pResetNode, _pNewNode);
delete _pResetNode;
_pResetNode = _pNewNode;
}
- // -----------------------------------------------------------------------------
+
/** quotes a string and search for quotes inside the string and replace them with the new quote
@param rValue
The value to be quoted.
@@ -195,7 +195,7 @@ namespace connectivity
//=============================================================================
//= SQLParseNodeParameter
//=============================================================================
-//-----------------------------------------------------------------------------
+
SQLParseNodeParameter::SQLParseNodeParameter( const Reference< XConnection >& _rxConnection,
const Reference< XNumberFormatter >& _xFormatter, const Reference< XPropertySet >& _xField,
const OUString &_sPredicateTableAlias,
@@ -217,7 +217,7 @@ SQLParseNodeParameter::SQLParseNodeParameter( const Reference< XConnection >& _r
{
}
-//-----------------------------------------------------------------------------
+
SQLParseNodeParameter::~SQLParseNodeParameter()
{
}
@@ -225,7 +225,7 @@ SQLParseNodeParameter::~SQLParseNodeParameter()
//=============================================================================
//= OSQLParseNode
//=============================================================================
-//-----------------------------------------------------------------------------
+
OUString OSQLParseNode::convertDateString(const SQLParseNodeParameter& rParam, const OUString& rString) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::convertDateString" );
@@ -238,7 +238,7 @@ OUString OSQLParseNode::convertDateString(const SQLParseNodeParameter& rParam, c
return rParam.xFormatter->convertNumberToString(nKey, fDate);
}
-//-----------------------------------------------------------------------------
+
OUString OSQLParseNode::convertDateTimeString(const SQLParseNodeParameter& rParam, const OUString& rString) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::convertDateTimeString" );
@@ -251,7 +251,7 @@ OUString OSQLParseNode::convertDateTimeString(const SQLParseNodeParameter& rPara
return rParam.xFormatter->convertNumberToString(nKey, fDateTime);
}
-//-----------------------------------------------------------------------------
+
OUString OSQLParseNode::convertTimeString(const SQLParseNodeParameter& rParam, const OUString& rString) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::convertTimeString" );
@@ -265,7 +265,7 @@ OUString OSQLParseNode::convertTimeString(const SQLParseNodeParameter& rParam, c
return rParam.xFormatter->convertNumberToString(nKey, fTime);
}
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::parseNodeToStr(OUString& rString,
const Reference< XConnection >& _rxConnection,
const IParseContext* pContext,
@@ -280,7 +280,7 @@ void OSQLParseNode::parseNodeToStr(OUString& rString,
pContext, _bIntl, _bQuote, '.', false, false );
}
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::parseNodeToPredicateStr(OUString& rString,
const Reference< XConnection >& _rxConnection,
const Reference< XNumberFormatter > & xFormatter,
@@ -296,7 +296,7 @@ void OSQLParseNode::parseNodeToPredicateStr(OUString& rString,
parseNodeToStr(rString, _rxConnection, xFormatter, NULL, OUString(), rIntl, pContext, true, true, _cDec, true, false);
}
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::parseNodeToPredicateStr(OUString& rString,
const Reference< XConnection > & _rxConnection,
const Reference< XNumberFormatter > & xFormatter,
@@ -314,7 +314,7 @@ void OSQLParseNode::parseNodeToPredicateStr(OUString& rString,
parseNodeToStr( rString, _rxConnection, xFormatter, _xField, _sPredicateTableAlias, rIntl, pContext, true, true, _cDec, true, false );
}
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::parseNodeToStr(OUString& rString,
const Reference< XConnection > & _rxConnection,
const Reference< XNumberFormatter > & xFormatter,
@@ -354,7 +354,7 @@ void OSQLParseNode::parseNodeToStr(OUString& rString,
rString = sBuffer.makeStringAndClear();
}
}
-//-----------------------------------------------------------------------------
+
bool OSQLParseNode::parseNodeToExecutableStatement( OUString& _out_rString, const Reference< XConnection >& _rxConnection,
OSQLParser& _rParser, ::com::sun::star::sdbc::SQLException* _pErrorHolder ) const
{
@@ -390,7 +390,7 @@ bool OSQLParseNode::parseNodeToExecutableStatement( OUString& _out_rString, cons
return bSuccess;
}
-//-----------------------------------------------------------------------------
+
namespace
{
bool lcl_isAliasNamePresent( const OSQLParseNode& _rTableNameNode )
@@ -399,7 +399,7 @@ namespace
}
}
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::impl_parseNodeToString_throw(OUStringBuffer& rString, const SQLParseNodeParameter& rParam, bool bSimple) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::impl_parseNodeToString_throw" );
@@ -633,7 +633,7 @@ void OSQLParseNode::impl_parseNodeToString_throw(OUStringBuffer& rString, const
}
}
-//-----------------------------------------------------------------------------
+
bool OSQLParseNode::impl_parseTableNameNodeToString_throw( OUStringBuffer& rString, const SQLParseNodeParameter& rParam ) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::impl_parseTableNameNodeToString_throw" );
@@ -731,7 +731,7 @@ bool OSQLParseNode::impl_parseTableNameNodeToString_throw( OUStringBuffer& rStri
return false;
}
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::impl_parseTableRangeNodeToString_throw(OUStringBuffer& rString, const SQLParseNodeParameter& rParam) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::impl_parseTableRangeNodeToString_throw" );
@@ -742,7 +742,7 @@ void OSQLParseNode::impl_parseTableRangeNodeToString_throw(OUStringBuffer& rStri
boost::bind( &OSQLParseNode::impl_parseNodeToString_throw, _1, boost::ref( rString ), boost::cref( rParam ), false ));
}
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::impl_parseLikeNodeToString_throw( OUStringBuffer& rString, const SQLParseNodeParameter& rParam, bool bSimple ) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::impl_parseLikeNodeToString_throw" );
@@ -777,7 +777,7 @@ void OSQLParseNode::impl_parseLikeNodeToString_throw( OUStringBuffer& rString, c
}
-// -----------------------------------------------------------------------------
+
sal_Bool OSQLParseNode::getTableComponents(const OSQLParseNode* _pTableNode,
::com::sun::star::uno::Any &_rCatalog,
OUString &_rSchema,
@@ -822,7 +822,7 @@ sal_Bool OSQLParseNode::getTableComponents(const OSQLParseNode* _pTableNode,
}
return !_rTable.isEmpty();
}
-// -----------------------------------------------------------------------------
+
void OSQLParser::killThousandSeparator(OSQLParseNode* pLiteral)
{
if ( pLiteral )
@@ -837,7 +837,7 @@ void OSQLParser::killThousandSeparator(OSQLParseNode* pLiteral)
pLiteral->m_aNodeValue = pLiteral->m_aNodeValue.replace(',', sal_Unicode());
}
}
-// -----------------------------------------------------------------------------
+
OSQLParseNode* OSQLParser::convertNode(sal_Int32 nType,OSQLParseNode*const& pLiteral)
{
if ( !pLiteral )
@@ -955,7 +955,7 @@ OSQLParseNode* OSQLParser::convertNode(sal_Int32 nType,OSQLParseNode*const& pLit
}
return pReturn;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 OSQLParser::buildPredicateRule(OSQLParseNode*& pAppend,OSQLParseNode* const pLiteral,OSQLParseNode*const & pCompare,OSQLParseNode* pLiteral2)
{
OSL_ENSURE(inPredicateCheck(),"Only in predicate check allowed!");
@@ -984,7 +984,7 @@ sal_Int16 OSQLParser::buildPredicateRule(OSQLParseNode*& pAppend,OSQLParseNode*
delete pCompare;
return nErg;
}
-// -----------------------------------------------------------------------------
+
sal_Int16 OSQLParser::buildLikeRule(OSQLParseNode* const& pAppend, OSQLParseNode*& pLiteral, const OSQLParseNode* pEscape)
{
sal_Int16 nErg = 0;
@@ -1059,7 +1059,7 @@ sal_Int16 OSQLParser::buildLikeRule(OSQLParseNode* const& pAppend, OSQLParseNode
}
return nErg;
}
-//-----------------------------------------------------------------------------
+
OSQLParseNode* OSQLParser::buildNode_Date(const double& fValue, sal_Int32 nType)
{
OUString aEmptyString;
@@ -1108,7 +1108,7 @@ OSQLParseNode* OSQLParser::buildNode_Date(const double& fValue, sal_Int32 nType)
return pNewNode;
}
-// -----------------------------------------------------------------------------
+
OSQLParseNode* OSQLParser::buildNode_STR_NUM(OSQLParseNode*& _pLiteral)
{
OSQLParseNode* pReturn = NULL;
@@ -1136,7 +1136,7 @@ OSQLParseNode* OSQLParser::buildNode_STR_NUM(OSQLParseNode*& _pLiteral)
}
return pReturn;
}
-// -----------------------------------------------------------------------------
+
OUString OSQLParser::stringToDouble(const OUString& _rValue,sal_Int16 _nScale)
{
OUString aValue;
@@ -1163,7 +1163,7 @@ OUString OSQLParser::stringToDouble(const OUString& _rValue,sal_Int16 _nScale)
}
return aValue;
}
-// -----------------------------------------------------------------------------
+
::osl::Mutex& OSQLParser::getMutex()
{
@@ -1171,7 +1171,7 @@ OUString OSQLParser::stringToDouble(const OUString& _rValue,sal_Int16 _nScale)
return aMutex;
}
-//-----------------------------------------------------------------------------
+
OSQLParseNode* OSQLParser::predicateTree(OUString& rErrorMessage, const OUString& rStatement,
const Reference< ::com::sun::star::util::XNumberFormatter > & xFormatter,
const Reference< XPropertySet > & xField)
@@ -1326,7 +1326,7 @@ OSQLParseNode* OSQLParser::predicateTree(OUString& rErrorMessage, const OUString
}
//=============================================================================
-//-----------------------------------------------------------------------------
+
OSQLParser::OSQLParser(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext, const IParseContext* _pContext)
:m_pContext(_pContext)
,m_pParseTree(NULL)
@@ -1491,7 +1491,7 @@ OSQLParser::OSQLParser(const ::com::sun::star::uno::Reference< ::com::sun::star:
m_pData->aLocale = m_pContext->getPreferredLocale();
}
-//-----------------------------------------------------------------------------
+
OSQLParser::~OSQLParser()
{
{
@@ -1514,7 +1514,7 @@ OSQLParser::~OSQLParser()
m_pParseTree = NULL;
}
}
-// -----------------------------------------------------------------------------
+
void OSQLParseNode::substituteParameterNames(OSQLParseNode* _pNode)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::substituteParameterNames" );
@@ -1535,7 +1535,7 @@ void OSQLParseNode::substituteParameterNames(OSQLParseNode* _pNode)
}
}
-// -----------------------------------------------------------------------------
+
bool OSQLParser::extractDate(OSQLParseNode* pLiteral,double& _rfValue)
{
Reference< XNumberFormatsSupplier > xFormatSup = m_xFormatter->getNumberFormatsSupplier();
@@ -1584,7 +1584,7 @@ bool OSQLParser::extractDate(OSQLParseNode* pLiteral,double& _rfValue)
}
return bSuccess;
}
-// -----------------------------------------------------------------------------
+
OSQLParseNode* OSQLParser::buildDate(sal_Int32 _nType,OSQLParseNode*& pLiteral)
{
// try converting the string into a date, according to our format key
@@ -1602,8 +1602,8 @@ OSQLParseNode* OSQLParser::buildDate(sal_Int32 _nType,OSQLParseNode*& pLiteral)
return pFCTNode;
}
-// -----------------------------------------------------------------------------
-//-----------------------------------------------------------------------------
+
+
OSQLParseNode::OSQLParseNode(const sal_Char * pNewValue,
SQLNodeType eNewNodeType,
sal_uInt32 nNewNodeID)
@@ -1616,7 +1616,7 @@ OSQLParseNode::OSQLParseNode(const sal_Char * pNewValue,
OSL_ENSURE(m_eNodeType >= SQL_NODE_RULE && m_eNodeType <= SQL_NODE_CONCAT,"OSQLParseNode: created with invalid NodeType");
}
-//-----------------------------------------------------------------------------
+
OSQLParseNode::OSQLParseNode(const OString &_rNewValue,
SQLNodeType eNewNodeType,
sal_uInt32 nNewNodeID)
@@ -1629,7 +1629,7 @@ OSQLParseNode::OSQLParseNode(const OString &_rNewValue,
OSL_ENSURE(m_eNodeType >= SQL_NODE_RULE && m_eNodeType <= SQL_NODE_CONCAT,"OSQLParseNode: created with invalid NodeType");
}
-//-----------------------------------------------------------------------------
+
OSQLParseNode::OSQLParseNode(const OUString &_rNewValue,
SQLNodeType eNewNodeType,
sal_uInt32 nNewNodeID)
@@ -1642,7 +1642,7 @@ OSQLParseNode::OSQLParseNode(const OUString &_rNewValue,
OSL_ENSURE(m_eNodeType >= SQL_NODE_RULE && m_eNodeType <= SQL_NODE_CONCAT,"OSQLParseNode: created with invalid NodeType");
}
-//-----------------------------------------------------------------------------
+
OSQLParseNode::OSQLParseNode(const OSQLParseNode& rParseNode)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::OSQLParseNode" );
@@ -1666,8 +1666,8 @@ OSQLParseNode::OSQLParseNode(const OSQLParseNode& rParseNode)
i != rParseNode.m_aChildren.end(); ++i)
append(new OSQLParseNode(**i));
}
-// -----------------------------------------------------------------------------
-//-----------------------------------------------------------------------------
+
+
OSQLParseNode& OSQLParseNode::operator=(const OSQLParseNode& rParseNode)
{
if (this != &rParseNode)
@@ -1690,7 +1690,7 @@ OSQLParseNode& OSQLParseNode::operator=(const OSQLParseNode& rParseNode)
return *this;
}
-//-----------------------------------------------------------------------------
+
sal_Bool OSQLParseNode::operator==(OSQLParseNode& rParseNode) const
{
// The members must be equal
@@ -1709,7 +1709,7 @@ sal_Bool OSQLParseNode::operator==(OSQLParseNode& rParseNode) const
return bResult;
}
-//-----------------------------------------------------------------------------
+
OSQLParseNode::~OSQLParseNode()
{
for (OSQLParseNodes::const_iterator i = m_aChildren.begin();
@@ -1718,7 +1718,7 @@ OSQLParseNode::~OSQLParseNode()
m_aChildren.clear();
}
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::append(OSQLParseNode* pNewNode)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::append" );
@@ -1733,7 +1733,7 @@ void OSQLParseNode::append(OSQLParseNode* pNewNode)
// and attach the SubTree at the end
m_aChildren.push_back(pNewNode);
}
-// -----------------------------------------------------------------------------
+
sal_Bool OSQLParseNode::addDateValue(OUStringBuffer& rString, const SQLParseNodeParameter& rParam) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::addDateValue" );
@@ -1787,7 +1787,7 @@ sal_Bool OSQLParseNode::addDateValue(OUStringBuffer& rString, const SQLParseNode
}
return sal_False;
}
-// -----------------------------------------------------------------------------
+
void OSQLParseNode::replaceNodeValue(const OUString& rTableAlias, const OUString& rColumnName)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::replaceNodeValue" );
@@ -1804,7 +1804,7 @@ void OSQLParseNode::replaceNodeValue(const OUString& rTableAlias, const OUString
getChild(i)->replaceNodeValue(rTableAlias,rColumnName);
}
}
-//-----------------------------------------------------------------------------
+
OSQLParseNode* OSQLParseNode::getByRule(OSQLParseNode::Rule eRule) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::getByRule" );
@@ -1819,7 +1819,7 @@ OSQLParseNode* OSQLParseNode::getByRule(OSQLParseNode::Rule eRule) const
}
return pRetNode;
}
-//-----------------------------------------------------------------------------
+
OSQLParseNode* MakeANDNode(OSQLParseNode *pLeftLeaf,OSQLParseNode *pRightLeaf)
{
OSQLParseNode* pNewNode = new OSQLParseNode(OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::boolean_term));
@@ -1828,7 +1828,7 @@ OSQLParseNode* MakeANDNode(OSQLParseNode *pLeftLeaf,OSQLParseNode *pRightLeaf)
pNewNode->append(pRightLeaf);
return pNewNode;
}
-//-----------------------------------------------------------------------------
+
OSQLParseNode* MakeORNode(OSQLParseNode *pLeftLeaf,OSQLParseNode *pRightLeaf)
{
OSQLParseNode* pNewNode = new OSQLParseNode(OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::search_condition));
@@ -1837,7 +1837,7 @@ OSQLParseNode* MakeORNode(OSQLParseNode *pLeftLeaf,OSQLParseNode *pRightLeaf)
pNewNode->append(pRightLeaf);
return pNewNode;
}
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::disjunctiveNormalForm(OSQLParseNode*& pSearchCondition)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::disjunctiveNormalForm" );
@@ -1914,7 +1914,7 @@ void OSQLParseNode::disjunctiveNormalForm(OSQLParseNode*& pSearchCondition)
pSearchCondition->replace(pRight, pRight->removeAt(1));
}
}
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::negateSearchCondition(OSQLParseNode*& pSearchCondition, sal_Bool bNegate)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::negateSearchCondition" );
@@ -2067,7 +2067,7 @@ void OSQLParseNode::negateSearchCondition(OSQLParseNode*& pSearchCondition, sal_
delete pNot;
}
}
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::eraseBraces(OSQLParseNode*& pSearchCondition)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::eraseBraces" );
@@ -2086,7 +2086,7 @@ void OSQLParseNode::eraseBraces(OSQLParseNode*& pSearchCondition)
}
}
}
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::absorptions(OSQLParseNode*& pSearchCondition)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::absorptions" );
@@ -2190,7 +2190,7 @@ void OSQLParseNode::absorptions(OSQLParseNode*& pSearchCondition)
}
eraseBraces(pSearchCondition);
}
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::compress(OSQLParseNode *&pSearchCondition)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::compress" );
@@ -2296,7 +2296,7 @@ void OSQLParseNode::compress(OSQLParseNode *&pSearchCondition)
}
}
#if OSL_DEBUG_LEVEL > 1
-// -----------------------------------------------------------------------------
+
void OSQLParseNode::showParseTree( OUString& rString ) const
{
OUStringBuffer aBuf;
@@ -2304,7 +2304,7 @@ void OSQLParseNode::showParseTree( OUString& rString ) const
rString = aBuf.makeStringAndClear();
}
-// -----------------------------------------------------------------------------
+
void OSQLParseNode::showParseTree( OUStringBuffer& _inout_rBuffer, sal_uInt32 nLevel ) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::showParseTree" );
@@ -2421,9 +2421,9 @@ void OSQLParseNode::showParseTree( OUStringBuffer& _inout_rBuffer, sal_uInt32 nL
}
}
#endif // OSL_DEBUG_LEVEL > 0
-// -----------------------------------------------------------------------------
+
// Insert methods
-//-----------------------------------------------------------------------------
+
void OSQLParseNode::insert(sal_uInt32 nPos, OSQLParseNode* pNewSubTree)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::insert" );
@@ -2436,7 +2436,7 @@ void OSQLParseNode::insert(sal_uInt32 nPos, OSQLParseNode* pNewSubTree)
}
// removeAt methods
-//-----------------------------------------------------------------------------
+
OSQLParseNode* OSQLParseNode::removeAt(sal_uInt32 nPos)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::removeAt" );
@@ -2452,7 +2452,7 @@ OSQLParseNode* OSQLParseNode::removeAt(sal_uInt32 nPos)
}
// Replace methods
-//-----------------------------------------------------------------------------
+
OSQLParseNode* OSQLParseNode::replace (OSQLParseNode* pOldSubNode, OSQLParseNode* pNewSubNode )
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::replace " );
@@ -2468,7 +2468,7 @@ OSQLParseNode* OSQLParseNode::replace (OSQLParseNode* pOldSubNode, OSQLParseNode
::std::replace(m_aChildren.begin(), m_aChildren.end(), pOldSubNode, pNewSubNode);
return pOldSubNode;
}
-// -----------------------------------------------------------------------------
+
void OSQLParseNode::parseLeaf(OUStringBuffer& rString, const SQLParseNodeParameter& rParam) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::parseLeaf" );
@@ -2563,7 +2563,7 @@ void OSQLParseNode::parseLeaf(OUStringBuffer& rString, const SQLParseNodeParamet
}
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OSQLParser::getFunctionReturnType(const OUString& _sFunctionName, const IParseContext* pContext)
{
sal_Int32 nType = DataType::VARCHAR;
@@ -2653,7 +2653,7 @@ sal_Int32 OSQLParser::getFunctionReturnType(const OUString& _sFunctionName, cons
return nType;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 OSQLParser::getFunctionParameterType(sal_uInt32 _nTokenId, sal_uInt32 _nPos)
{
sal_Int32 nType = DataType::VARCHAR;
@@ -2761,20 +2761,20 @@ sal_Int32 OSQLParser::getFunctionParameterType(sal_uInt32 _nTokenId, sal_uInt32
return nType;
}
-// -----------------------------------------------------------------------------
+
const SQLError& OSQLParser::getErrorHelper() const
{
return m_pData->aErrors;
}
-// -----------------------------------------------------------------------------
+
OSQLParseNode::Rule OSQLParseNode::getKnownRuleID() const
{
if ( !isRule() )
return UNKNOWN_RULE;
return OSQLParser::RuleIDToRule( getRuleID() );
}
-// -----------------------------------------------------------------------------
+
OUString OSQLParseNode::getTableRange(const OSQLParseNode* _pTableRef)
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseNode::getTableRange" );
@@ -2793,21 +2793,21 @@ OUString OSQLParseNode::getTableRange(const OSQLParseNode* _pTableRef)
return sTableRange;
}
-// -----------------------------------------------------------------------------
+
OSQLParseNodesContainer::OSQLParseNodesContainer()
{
}
-// -----------------------------------------------------------------------------
+
OSQLParseNodesContainer::~OSQLParseNodesContainer()
{
}
-// -----------------------------------------------------------------------------
+
void OSQLParseNodesContainer::push_back(OSQLParseNode* _pNode)
{
::osl::MutexGuard aGuard(m_aMutex);
m_aNodes.push_back(_pNode);
}
-// -----------------------------------------------------------------------------
+
void OSQLParseNodesContainer::erase(OSQLParseNode* _pNode)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -2818,13 +2818,13 @@ void OSQLParseNodesContainer::erase(OSQLParseNode* _pNode)
m_aNodes.erase(aFind);
}
}
-// -----------------------------------------------------------------------------
+
void OSQLParseNodesContainer::clear()
{
::osl::MutexGuard aGuard(m_aMutex);
m_aNodes.clear();
}
-// -----------------------------------------------------------------------------
+
void OSQLParseNodesContainer::clearAndDelete()
{
::osl::MutexGuard aGuard(m_aMutex);
diff --git a/connectivity/source/resource/sharedresources.cxx b/connectivity/source/resource/sharedresources.cxx
index 4de9d4c1d10a..7cd77737f165 100644
--- a/connectivity/source/resource/sharedresources.cxx
+++ b/connectivity/source/resource/sharedresources.cxx
@@ -68,11 +68,11 @@ namespace connectivity
}
};
- //--------------------------------------------------------------------
+
SharedResources_Impl* SharedResources_Impl::s_pInstance( NULL );
oslInterlockedCount SharedResources_Impl::s_nClients( 0 );
- //--------------------------------------------------------------------
+
SharedResources_Impl::SharedResources_Impl()
{
try
@@ -87,7 +87,7 @@ namespace connectivity
}
}
- //--------------------------------------------------------------------
+
OUString SharedResources_Impl::getResourceString( ResourceId _nId )
{
if ( m_pResourceBundle.get() == NULL )
@@ -98,13 +98,13 @@ namespace connectivity
return m_pResourceBundle->loadString( _nId );
}
- //--------------------------------------------------------------------
+
void SharedResources_Impl::registerClient()
{
osl_atomic_increment( &s_nClients );
}
- //--------------------------------------------------------------------
+
void SharedResources_Impl::revokeClient()
{
::osl::MutexGuard aGuard( getMutex() );
@@ -115,7 +115,7 @@ namespace connectivity
}
}
- //--------------------------------------------------------------------
+
SharedResources_Impl& SharedResources_Impl::getInstance()
{
::osl::MutexGuard aGuard( getMutex() );
@@ -152,25 +152,25 @@ namespace connectivity
//====================================================================
//= SharedResources
//====================================================================
- //--------------------------------------------------------------------
+
SharedResources::SharedResources()
{
SharedResources_Impl::registerClient();
}
- //--------------------------------------------------------------------
+
SharedResources::~SharedResources()
{
SharedResources_Impl::revokeClient();
}
- //--------------------------------------------------------------------
+
OUString SharedResources::getResourceString( ResourceId _nResId ) const
{
return SharedResources_Impl::getInstance().getResourceString( _nResId );
}
- //--------------------------------------------------------------------
+
OUString SharedResources::getResourceStringWithSubstitution( ResourceId _nResId,
const sal_Char* _pAsciiPatternToReplace, const OUString& _rStringToSubstitute ) const
{
@@ -179,7 +179,7 @@ namespace connectivity
return sString;
}
- //--------------------------------------------------------------------
+
OUString SharedResources::getResourceStringWithSubstitution( ResourceId _nResId,
const sal_Char* _pAsciiPatternToReplace1, const OUString& _rStringToSubstitute1,
const sal_Char* _pAsciiPatternToReplace2, const OUString& _rStringToSubstitute2 ) const
@@ -190,7 +190,7 @@ namespace connectivity
return sString;
}
- //--------------------------------------------------------------------
+
OUString SharedResources::getResourceStringWithSubstitution( ResourceId _nResId,
const sal_Char* _pAsciiPatternToReplace1, const OUString& _rStringToSubstitute1,
const sal_Char* _pAsciiPatternToReplace2, const OUString& _rStringToSubstitute2,
@@ -202,7 +202,7 @@ namespace connectivity
OSL_VERIFY( lcl_substitute( sString, _pAsciiPatternToReplace3, _rStringToSubstitute3 ) );
return sString;
}
- //--------------------------------------------------------------------
+
OUString SharedResources::getResourceStringWithSubstitution( ResourceId _nResId,
const ::std::list< ::std::pair<const sal_Char* , OUString > > _aStringToSubstitutes) const
{
diff --git a/connectivity/source/sdbcx/VCatalog.cxx b/connectivity/source/sdbcx/VCatalog.cxx
index cf5ffb284bb5..0721300bf87b 100644
--- a/connectivity/source/sdbcx/VCatalog.cxx
+++ b/connectivity/source/sdbcx/VCatalog.cxx
@@ -33,9 +33,9 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-//------------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OCatalog,"com.sun.star.comp.connectivity.OCatalog","com.sun.star.sdbcx.DatabaseDefinition")
-//------------------------------------------------------------------------------
+
OCatalog::OCatalog(const Reference< XConnection> &_xConnection) : OCatalog_BASE(m_aMutex)
,connectivity::OSubComponent<OCatalog, OCatalog_BASE>(_xConnection, this)
,m_pTables(NULL)
@@ -52,7 +52,7 @@ OCatalog::OCatalog(const Reference< XConnection> &_xConnection) : OCatalog_BASE(
OSL_FAIL("No Metadata available!");
}
}
-//-----------------------------------------------------------------------------
+
OCatalog::~OCatalog()
{
delete m_pTables;
@@ -60,18 +60,18 @@ OCatalog::~OCatalog()
delete m_pGroups;
delete m_pUsers;
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL OCatalog::acquire() throw()
{
OCatalog_BASE::acquire();
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OCatalog::release() throw()
{
relase_ChildImpl();
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OCatalog::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -88,7 +88,7 @@ void SAL_CALL OCatalog::disposing()
dispose_ChildImpl();
OCatalog_BASE::disposing();
}
-//------------------------------------------------------------------------------
+
// XTablesSupplier
Reference< XNameAccess > SAL_CALL OCatalog::getTables( ) throw(RuntimeException)
{
@@ -112,7 +112,7 @@ Reference< XNameAccess > SAL_CALL OCatalog::getTables( ) throw(RuntimeException
return m_pTables;
}
-// -------------------------------------------------------------------------
+
// XViewsSupplier
Reference< XNameAccess > SAL_CALL OCatalog::getViews( ) throw(RuntimeException)
{
@@ -136,7 +136,7 @@ Reference< XNameAccess > SAL_CALL OCatalog::getViews( ) throw(RuntimeException)
return m_pViews;
}
-// -------------------------------------------------------------------------
+
// XUsersSupplier
Reference< XNameAccess > SAL_CALL OCatalog::getUsers( ) throw(RuntimeException)
{
@@ -160,7 +160,7 @@ Reference< XNameAccess > SAL_CALL OCatalog::getUsers( ) throw(RuntimeException)
return m_pUsers;
}
-// -------------------------------------------------------------------------
+
// XGroupsSupplier
Reference< XNameAccess > SAL_CALL OCatalog::getGroups( ) throw(RuntimeException)
{
@@ -184,7 +184,7 @@ Reference< XNameAccess > SAL_CALL OCatalog::getGroups( ) throw(RuntimeException
return m_pGroups;
}
-// -----------------------------------------------------------------------------
+
OUString OCatalog::buildName(const Reference< XRow >& _xRow)
{
OUString sCatalog = _xRow->getString(1);
@@ -201,7 +201,7 @@ OUString OCatalog::buildName(const Reference< XRow >& _xRow)
::dbtools::composeTableName( m_xMetaData, sCatalog, sSchema, sTable, sal_False, ::dbtools::eInDataManipulation ) );
return sComposedName;
}
-// -----------------------------------------------------------------------------
+
void OCatalog::fillNames(Reference< XResultSet >& _xResult,TStringVector& _rNames)
{
if ( _xResult.is() )
@@ -216,16 +216,16 @@ void OCatalog::fillNames(Reference< XResultSet >& _xResult,TStringVector& _rName
::comphelper::disposeComponent(_xResult);
}
}
-// -------------------------------------------------------------------------
+
void ODescriptor::construct()
{
sal_Int32 nAttrib = isNew() ? 0 : ::com::sun::star::beans::PropertyAttribute::READONLY;
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME), PROPERTY_ID_NAME ,nAttrib,&m_Name,::getCppuType(static_cast< OUString*>(0)));
}
-// -------------------------------------------------------------------------
+
ODescriptor::~ODescriptor()
{
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/sdbcx/VCollection.cxx b/connectivity/source/sdbcx/VCollection.cxx
index 694a2727ff15..1924675c2d6a 100644
--- a/connectivity/source/sdbcx/VCollection.cxx
+++ b/connectivity/source/sdbcx/VCollection.cxx
@@ -68,23 +68,23 @@ namespace
{
m_aElements.reserve(nLength);
}
- // -----------------------------------------------------------------------------
+
virtual bool exists(const OUString& _sName )
{
return m_aNameMap.find(_sName) != m_aNameMap.end();
}
- // -----------------------------------------------------------------------------
+
virtual bool empty()
{
return m_aNameMap.empty();
}
- // -----------------------------------------------------------------------------
+
virtual void swapAll()
{
::std::vector< ObjectIter >(m_aElements).swap(m_aElements);
ObjectMap(m_aNameMap).swap(m_aNameMap);
}
- // -----------------------------------------------------------------------------
+
virtual void swap()
{
::std::vector< ObjectIter >().swap(m_aElements);
@@ -97,18 +97,18 @@ namespace
// default constructed (instead of being constructed from the same instance in m_aNameMap), and
// it's case-sensitive flag would have an unpredictable value.
}
- // -----------------------------------------------------------------------------
+
virtual void clear()
{
m_aElements.clear();
m_aNameMap.clear();
}
- // -----------------------------------------------------------------------------
+
virtual void insert(const OUString& _sName,const ObjectType& _xObject)
{
m_aElements.push_back(m_aNameMap.insert(m_aNameMap.begin(), ObjectEntry(_sName,_xObject)));
}
- // -----------------------------------------------------------------------------
+
virtual void reFill(const TStringVector &_rVector)
{
OSL_ENSURE(!m_aNameMap.size(),"OCollection::reFill: collection isn't empty");
@@ -117,7 +117,7 @@ namespace
for(TStringVector::const_iterator i=_rVector.begin(); i != _rVector.end();++i)
m_aElements.push_back(m_aNameMap.insert(m_aNameMap.begin(), ObjectEntry(*i,ObjectType())));
}
- // -----------------------------------------------------------------------------
+
virtual bool rename(const OUString _sOldName,const OUString _sNewName)
{
bool bRet = false;
@@ -135,12 +135,12 @@ namespace
}
return bRet;
}
- // -----------------------------------------------------------------------------
+
virtual sal_Int32 size()
{
return static_cast<sal_Int32>(m_aNameMap.size());
}
- // -----------------------------------------------------------------------------
+
virtual Sequence< OUString > getElementNames()
{
Sequence< OUString > aNameList(m_aElements.size());
@@ -152,12 +152,12 @@ namespace
return aNameList;
}
- // -----------------------------------------------------------------------------
+
virtual OUString getName(sal_Int32 _nIndex)
{
return m_aElements[_nIndex]->first;
}
- // -----------------------------------------------------------------------------
+
virtual void disposeAndErase(sal_Int32 _nIndex)
{
OSL_ENSURE(_nIndex >= 0 && _nIndex < static_cast<sal_Int32>(m_aElements.size()),"Illegal argument!");
@@ -169,7 +169,7 @@ namespace
m_aElements.erase(m_aElements.begin()+_nIndex);
m_aNameMap.erase(sName);
}
- // -----------------------------------------------------------------------------
+
virtual void disposeElements()
{
for( ObjectIter aIter = m_aNameMap.begin(); aIter != m_aNameMap.end(); ++aIter)
@@ -184,42 +184,42 @@ namespace
m_aElements.clear();
m_aNameMap.clear();
}
- // -----------------------------------------------------------------------------
+
virtual sal_Int32 findColumn( const OUString& columnName )
{
ObjectIter aIter = m_aNameMap.find(columnName);
OSL_ENSURE(aIter != m_aNameMap.end(),"findColumn:: Illegal name!");
return m_aElements.size() - (m_aElements.end() - ::std::find(m_aElements.begin(),m_aElements.end(),aIter));
}
- // -----------------------------------------------------------------------------
+
virtual OUString findColumnAtIndex( sal_Int32 _nIndex)
{
OSL_ENSURE(_nIndex >= 0 && _nIndex < static_cast<sal_Int32>(m_aElements.size()),"Illegal argument!");
return m_aElements[_nIndex]->first;
}
- // -----------------------------------------------------------------------------
+
virtual ObjectType getObject(sal_Int32 _nIndex)
{
OSL_ENSURE(_nIndex >= 0 && _nIndex < static_cast<sal_Int32>(m_aElements.size()),"Illegal argument!");
return m_aElements[_nIndex]->second;
}
- // -----------------------------------------------------------------------------
+
virtual ObjectType getObject(const OUString& columnName)
{
return m_aNameMap.find(columnName)->second;
}
- // -----------------------------------------------------------------------------
+
virtual void setObject(sal_Int32 _nIndex,const ObjectType& _xObject)
{
OSL_ENSURE(_nIndex >= 0 && _nIndex < static_cast<sal_Int32>(m_aElements.size()),"Illegal argument!");
m_aElements[_nIndex]->second = _xObject;
}
- // -----------------------------------------------------------------------------
+
sal_Bool isCaseSensitive() const
{
return m_aNameMap.key_comp().isCaseSensitive();
}
- // -----------------------------------------------------------------------------
+
};
}
@@ -249,11 +249,11 @@ OCollection::OCollection(::cppu::OWeakObject& _rParent
}
m_pElements->reFill(_rVector);
}
-// -------------------------------------------------------------------------
+
OCollection::~OCollection()
{
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL OCollection::queryInterface( const Type & rType ) throw (RuntimeException)
{
if ( m_bUseIndexOnly && rType == ::getCppuType(static_cast< Reference< XNameAccess > *> (NULL)) )
@@ -262,7 +262,7 @@ Any SAL_CALL OCollection::queryInterface( const Type & rType ) throw (RuntimeExc
}
return OCollectionBase::queryInterface( rType );
}
-// -----------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OCollection::getTypes() throw (RuntimeException)
{
if ( m_bUseIndexOnly )
@@ -284,7 +284,7 @@ Sequence< Type > SAL_CALL OCollection::getTypes() throw (RuntimeException)
}
return OCollectionBase::getTypes( );
}
-// -------------------------------------------------------------------------
+
void OCollection::clear_NoDispose()
{
::osl::MutexGuard aGuard(m_rMutex);
@@ -293,7 +293,7 @@ void OCollection::clear_NoDispose()
m_pElements->swapAll();
}
-// -------------------------------------------------------------------------
+
void OCollection::disposing(void)
{
m_aContainerListeners.disposeAndClear(EventObject(static_cast<XTypeProvider*>(this)));
@@ -305,7 +305,7 @@ void OCollection::disposing(void)
m_pElements->swap();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OCollection::getByIndex( sal_Int32 Index ) throw(IndexOutOfBoundsException, WrappedTargetException, RuntimeException)
{
::osl::MutexGuard aGuard(m_rMutex);
@@ -314,7 +314,7 @@ Any SAL_CALL OCollection::getByIndex( sal_Int32 Index ) throw(IndexOutOfBoundsEx
return makeAny(getObject(Index));
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OCollection::getByName( const OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException)
{
::osl::MutexGuard aGuard(m_rMutex);
@@ -331,13 +331,13 @@ Any SAL_CALL OCollection::getByName( const OUString& aName ) throw(NoSuchElement
return makeAny(getObject(m_pElements->findColumn(aName)));
}
-// -------------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OCollection::getElementNames( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard(m_rMutex);
return m_pElements->getElementNames();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OCollection::refresh( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard(m_rMutex);
@@ -348,12 +348,12 @@ void SAL_CALL OCollection::refresh( ) throw(RuntimeException)
EventObject aEvt(static_cast<XTypeProvider*>(this));
m_aRefreshListeners.notifyEach( &XRefreshListener::refreshed, aEvt );
}
-// -----------------------------------------------------------------------------
+
void OCollection::reFill(const TStringVector &_rVector)
{
m_pElements->reFill(_rVector);
}
-// -------------------------------------------------------------------------
+
// XDataDescriptorFactory
Reference< XPropertySet > SAL_CALL OCollection::createDataDescriptor( ) throw(RuntimeException)
{
@@ -361,7 +361,7 @@ Reference< XPropertySet > SAL_CALL OCollection::createDataDescriptor( ) throw(R
return createDescriptor();
}
-// -----------------------------------------------------------------------------
+
OUString OCollection::getNameForObject(const ObjectType& _xObject)
{
OSL_ENSURE(_xObject.is(),"OCollection::getNameForObject: Object is NULL!");
@@ -369,7 +369,7 @@ OUString OCollection::getNameForObject(const ObjectType& _xObject)
_xObject->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME)) >>= sName;
return sName;
}
-// -------------------------------------------------------------------------
+
// XAppend
void SAL_CALL OCollection::appendByDescriptor( const Reference< XPropertySet >& descriptor ) throw(SQLException, ElementExistException, RuntimeException)
{
@@ -397,7 +397,7 @@ void SAL_CALL OCollection::appendByDescriptor( const Reference< XPropertySet >&
aGuard.clear();
m_aContainerListeners.notifyEach( &XContainerListener::elementInserted, aEvent );
}
-// -------------------------------------------------------------------------
+
// XDrop
void SAL_CALL OCollection::dropByName( const OUString& elementName ) throw(SQLException, NoSuchElementException, RuntimeException)
{
@@ -408,7 +408,7 @@ void SAL_CALL OCollection::dropByName( const OUString& elementName ) throw(SQLEx
dropImpl(m_pElements->findColumn(elementName));
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OCollection::dropByIndex( sal_Int32 index ) throw(SQLException, IndexOutOfBoundsException, RuntimeException)
{
::osl::MutexGuard aGuard(m_rMutex);
@@ -417,7 +417,7 @@ void SAL_CALL OCollection::dropByIndex( sal_Int32 index ) throw(SQLException, In
dropImpl(index);
}
-// -----------------------------------------------------------------------------
+
void OCollection::dropImpl(sal_Int32 _nIndex,sal_Bool _bReallyDrop)
{
OUString elementName = m_pElements->getName(_nIndex);
@@ -430,7 +430,7 @@ void OCollection::dropImpl(sal_Int32 _nIndex,sal_Bool _bReallyDrop)
// notify our container listeners
notifyElementRemoved(elementName);
}
-// -----------------------------------------------------------------------------
+
void OCollection::notifyElementRemoved(const OUString& _sName)
{
ContainerEvent aEvent(static_cast<XContainer*>(this), makeAny(_sName), Any(), Any());
@@ -439,7 +439,7 @@ void OCollection::notifyElementRemoved(const OUString& _sName)
while (aListenerLoop.hasMoreElements())
static_cast<XContainerListener*>(aListenerLoop.next())->elementRemoved(aEvent);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OCollection::findColumn( const OUString& columnName ) throw(SQLException, RuntimeException)
{
if ( !m_pElements->exists(columnName) )
@@ -450,74 +450,74 @@ sal_Int32 SAL_CALL OCollection::findColumn( const OUString& columnName ) throw(S
return m_pElements->findColumn(columnName) + 1; // because columns start at one
}
-// -------------------------------------------------------------------------
+
Reference< XEnumeration > SAL_CALL OCollection::createEnumeration( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard(m_rMutex);
return new OEnumerationByIndex( static_cast< XIndexAccess*>(this));
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OCollection::addContainerListener( const Reference< XContainerListener >& _rxListener ) throw(RuntimeException)
{
m_aContainerListeners.addInterface(_rxListener);
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OCollection::removeContainerListener( const Reference< XContainerListener >& _rxListener ) throw(RuntimeException)
{
m_aContainerListeners.removeInterface(_rxListener);
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OCollection::acquire() throw()
{
m_rParent.acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OCollection::release() throw()
{
m_rParent.release();
}
-// -----------------------------------------------------------------------------
+
Type SAL_CALL OCollection::getElementType( ) throw(RuntimeException)
{
return::getCppuType(static_cast< Reference< XPropertySet>*>(NULL));
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL OCollection::hasElements( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard(m_rMutex);
return !m_pElements->empty();
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OCollection::getCount( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard(m_rMutex);
return m_pElements->size();
}
-// -----------------------------------------------------------------------------
+
sal_Bool SAL_CALL OCollection::hasByName( const OUString& aName ) throw(RuntimeException)
{
::osl::MutexGuard aGuard(m_rMutex);
return m_pElements->exists(aName);
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OCollection::addRefreshListener( const Reference< XRefreshListener >& l ) throw(RuntimeException)
{
m_aRefreshListeners.addInterface(l);
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OCollection::removeRefreshListener( const Reference< XRefreshListener >& l ) throw(RuntimeException)
{
m_aRefreshListeners.removeInterface(l);
}
-// -----------------------------------------------------------------------------
+
void OCollection::insertElement(const OUString& _sElementName,const ObjectType& _xElement)
{
OSL_ENSURE(!m_pElements->exists(_sElementName),"Element already exists");
if ( !m_pElements->exists(_sElementName) )
m_pElements->insert(_sElementName,_xElement);
}
-// -----------------------------------------------------------------------------
+
void OCollection::renameObject(const OUString _sOldName,const OUString _sNewName)
{
OSL_ENSURE(m_pElements->exists(_sOldName),"Element doesn't exist");
@@ -534,7 +534,7 @@ void OCollection::renameObject(const OUString _sOldName,const OUString _sNewName
static_cast<XContainerListener*>(aListenerLoop.next())->elementReplaced(aEvent);
}
}
-// -----------------------------------------------------------------------------
+
ObjectType OCollection::getObject(sal_Int32 _nIndex)
{
ObjectType xName = m_pElements->getObject(_nIndex);
@@ -559,33 +559,33 @@ ObjectType OCollection::getObject(sal_Int32 _nIndex)
}
return xName;
}
-// -----------------------------------------------------------------------------
+
void OCollection::disposeElements()
{
m_pElements->disposeElements();
}
-// -----------------------------------------------------------------------------
+
Reference< XPropertySet > OCollection::createDescriptor()
{
OSL_FAIL("Need to be overloaded when used!");
throw SQLException();
}
-// -----------------------------------------------------------------------------
+
ObjectType OCollection::cloneDescriptor( const ObjectType& _descriptor )
{
ObjectType xNewDescriptor( createDescriptor() );
::comphelper::copyProperties( _descriptor, xNewDescriptor );
return xNewDescriptor;
}
-// -----------------------------------------------------------------------------
+
ObjectType OCollection::appendObject( const OUString& /*_rForName*/, const Reference< XPropertySet >& descriptor )
{
return cloneDescriptor( descriptor );
}
-// -----------------------------------------------------------------------------
+
void OCollection::dropObject(sal_Int32 /*_nPos*/,const OUString /*_sElementName*/)
{
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/sdbcx/VColumn.cxx b/connectivity/source/sdbcx/VColumn.cxx
index c3058d033a89..59cf69a87e09 100644
--- a/connectivity/source/sdbcx/VColumn.cxx
+++ b/connectivity/source/sdbcx/VColumn.cxx
@@ -23,7 +23,7 @@
#include <cppuhelper/supportsservice.hxx>
#include "TConnection.hxx"
#include <com/sun/star/sdbc/ColumnValue.hpp>
-// -------------------------------------------------------------------------
+
using namespace connectivity;
using namespace connectivity::sdbcx;
using namespace cppu;
@@ -32,14 +32,14 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::sdbc;
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OColumn::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException)
{
if(isNew())
return OUString("com.sun.star.sdbcx.VColumnDescription");
return OUString("com.sun.star.sdbcx.VColumn");
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< OUString > SAL_CALL OColumn::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
@@ -55,7 +55,7 @@ sal_Bool SAL_CALL OColumn::supportsService( const OUString& _rServiceName ) thro
{
return cppu::supportsService(this, _rServiceName);
}
-// -------------------------------------------------------------------------
+
OColumn::OColumn(sal_Bool _bCase)
:OColumnDescriptor_BASE(m_aMutex)
,ODescriptor(OColumnDescriptor_BASE::rBHelper,_bCase,sal_True)
@@ -69,7 +69,7 @@ OColumn::OColumn(sal_Bool _bCase)
{
construct();
}
-// -------------------------------------------------------------------------
+
OColumn::OColumn( const OUString& _Name,
const OUString& _TypeName,
const OUString& _DefaultValue,
@@ -105,31 +105,31 @@ OColumn::OColumn( const OUString& _Name,
construct();
}
-// -------------------------------------------------------------------------
+
OColumn::~OColumn()
{
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OColumn::createArrayHelper( sal_Int32 /*_nId*/ ) const
{
return doCreateArrayHelper();
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper& SAL_CALL OColumn::getInfoHelper()
{
return *OColumn_PROP::getArrayHelper(isNew() ? 1 : 0);
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OColumn::acquire() throw()
{
OColumnDescriptor_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OColumn::release() throw()
{
OColumnDescriptor_BASE::release();
}
-// -----------------------------------------------------------------------------
+
Any SAL_CALL OColumn::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = ODescriptor::queryInterface( rType);
@@ -142,7 +142,7 @@ Any SAL_CALL OColumn::queryInterface( const Type & rType ) throw(RuntimeExceptio
}
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OColumn::getTypes( ) throw(RuntimeException)
{
if(isNew())
@@ -150,7 +150,7 @@ Sequence< Type > SAL_CALL OColumn::getTypes( ) throw(RuntimeException)
return ::comphelper::concatSequences(ODescriptor::getTypes(),OColumn_BASE::getTypes(),OColumnDescriptor_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void OColumn::construct()
{
ODescriptor::construct();
@@ -171,7 +171,7 @@ void OColumn::construct()
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_SCHEMANAME), PROPERTY_ID_SCHEMANAME, nAttrib, &m_SchemaName, ::getCppuType(&m_SchemaName));
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TABLENAME), PROPERTY_ID_TABLENAME, nAttrib, &m_TableName, ::getCppuType(&m_TableName));
}
-// -------------------------------------------------------------------------
+
void OColumn::disposing(void)
{
OPropertySetHelper::disposing();
@@ -180,7 +180,7 @@ void OColumn::disposing(void)
checkDisposed(OColumnDescriptor_BASE::rBHelper.bDisposed);
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > SAL_CALL OColumn::createDataDescriptor( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -205,22 +205,22 @@ Reference< XPropertySet > SAL_CALL OColumn::createDataDescriptor( ) throw(Runti
pNewColumn->setNew(sal_True);
return pNewColumn;
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OColumn::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
// XNamed
OUString SAL_CALL OColumn::getName( ) throw(::com::sun::star::uno::RuntimeException)
{
return m_Name;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OColumn::setName( const OUString& aName ) throw(::com::sun::star::uno::RuntimeException)
{
m_Name = aName;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/sdbcx/VDescriptor.cxx b/connectivity/source/sdbcx/VDescriptor.cxx
index 9993dd6f3020..153a14401b03 100644
--- a/connectivity/source/sdbcx/VDescriptor.cxx
+++ b/connectivity/source/sdbcx/VDescriptor.cxx
@@ -35,7 +35,7 @@ namespace connectivity
// =========================================================================
// = ODescriptor
// =========================================================================
- // -------------------------------------------------------------------------
+
ODescriptor::ODescriptor(::cppu::OBroadcastHelper& _rBHelper,sal_Bool _bCase, sal_Bool _bNew)
:ODescriptor_PBASE(_rBHelper)
,m_aCase(_bCase)
@@ -43,7 +43,7 @@ namespace connectivity
{
}
- // -------------------------------------------------------------------------
+
// com::sun::star::lang::XUnoTunnel
sal_Int64 SAL_CALL ODescriptor::getSomething( const Sequence< sal_Int8 >& rId ) throw(RuntimeException)
{
@@ -52,7 +52,7 @@ namespace connectivity
: 0;
}
- // -----------------------------------------------------------------------------
+
ODescriptor* ODescriptor::getImplementation( const Reference< XInterface >& _rxSomeComp )
{
Reference< XUnoTunnel > xTunnel( _rxSomeComp, UNO_QUERY );
@@ -61,7 +61,7 @@ namespace connectivity
return NULL;
}
- // -----------------------------------------------------------------------------
+
namespace
{
struct ResetROAttribute : public ::std::unary_function< Property, void >
@@ -80,7 +80,7 @@ namespace connectivity
};
}
- // -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* ODescriptor::doCreateArrayHelper() const
{
Sequence< Property > aProperties;
@@ -94,14 +94,14 @@ namespace connectivity
return new ::cppu::OPropertyArrayHelper( aProperties );
}
- // -----------------------------------------------------------------------------
+
sal_Bool ODescriptor::isNew( const Reference< XInterface >& _rxDescriptor )
{
ODescriptor* pImplementation = getImplementation( _rxDescriptor );
return pImplementation != NULL ? pImplementation->isNew() : sal_False;
}
- // -----------------------------------------------------------------------------
+
Sequence< sal_Int8 > ODescriptor::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -117,20 +117,20 @@ namespace connectivity
return pId->getImplementationId();
}
- // -----------------------------------------------------------------------------
+
Any SAL_CALL ODescriptor::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = ::cppu::queryInterface(rType,static_cast< XUnoTunnel*> (this));
return aRet.hasValue() ? aRet : ODescriptor_PBASE::queryInterface(rType);
}
- // -----------------------------------------------------------------------------
+
void ODescriptor::setNew(sal_Bool _bNew)
{
m_bNew = _bNew;
}
- // -----------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL ODescriptor::getTypes( ) throw(RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const Reference< XMultiPropertySet > *)0 ),
diff --git a/connectivity/source/sdbcx/VGroup.cxx b/connectivity/source/sdbcx/VGroup.cxx
index 72a2be7ddb19..140a298782e1 100644
--- a/connectivity/source/sdbcx/VGroup.cxx
+++ b/connectivity/source/sdbcx/VGroup.cxx
@@ -26,7 +26,7 @@
#include <comphelper/sequence.hxx>
#include <connectivity/dbexception.hxx>
-// -------------------------------------------------------------------------
+
using namespace ::connectivity::sdbcx;
using namespace ::connectivity;
using namespace ::dbtools;
@@ -37,36 +37,36 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
IMPLEMENT_SERVICE_INFO(OGroup,"com.sun.star.sdbcx.VGroup","com.sun.star.sdbcx.Group");
-// -------------------------------------------------------------------------
+
OGroup::OGroup(sal_Bool _bCase) : OGroup_BASE(m_aMutex)
, ODescriptor(OGroup_BASE::rBHelper,_bCase)
, m_pUsers(NULL)
{
}
-// -------------------------------------------------------------------------
+
OGroup::OGroup(const OUString& _Name,sal_Bool _bCase) : OGroup_BASE(m_aMutex)
,ODescriptor(OGroup_BASE::rBHelper,_bCase)
,m_pUsers(NULL)
{
m_Name = _Name;
}
-// -------------------------------------------------------------------------
+
OGroup::~OGroup()
{
delete m_pUsers;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OGroup::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = ODescriptor::queryInterface( rType);
return aRet.hasValue() ? aRet : OGroup_BASE::queryInterface( rType);
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OGroup::getTypes( ) throw(RuntimeException)
{
return ::comphelper::concatSequences(ODescriptor::getTypes(),OGroup_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void OGroup::disposing(void)
{
OPropertySetHelper::disposing();
@@ -76,19 +76,19 @@ void OGroup::disposing(void)
if(m_pUsers)
m_pUsers->disposing();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OGroup::createArrayHelper( ) const
{
Sequence< Property > aProps;
describeProperties(aProps);
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OGroup::getInfoHelper()
{
return *const_cast<OGroup*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
Reference< XNameAccess > SAL_CALL OGroup::getUsers( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -111,7 +111,7 @@ Reference< XNameAccess > SAL_CALL OGroup::getUsers( ) throw(RuntimeException)
return const_cast<OGroup*>(this)->m_pUsers;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OGroup::getPrivileges( const OUString& /*objName*/, sal_Int32 /*objType*/ ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
@@ -120,7 +120,7 @@ sal_Int32 SAL_CALL OGroup::getPrivileges( const OUString& /*objName*/, sal_Int32
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OGroup::getGrantablePrivileges( const OUString& /*objName*/, sal_Int32 /*objType*/ ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -128,47 +128,47 @@ sal_Int32 SAL_CALL OGroup::getGrantablePrivileges( const OUString& /*objName*/,
return 0;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OGroup::grantPrivileges( const OUString& /*objName*/, sal_Int32 /*objType*/, sal_Int32 /*objPrivileges*/ ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
checkDisposed(OGroup_BASE::rBHelper.bDisposed);
throwFeatureNotImplementedException( "XAuthorizable::grantPrivileges", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OGroup::revokePrivileges( const OUString& /*objName*/, sal_Int32 /*objType*/, sal_Int32 /*objPrivileges*/ ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
checkDisposed(OGroup_BASE::rBHelper.bDisposed);
throwFeatureNotImplementedException( "XAuthorizable::revokePrivileges", *this );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OGroup::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OGroup::getName( ) throw(::com::sun::star::uno::RuntimeException)
{
return m_Name;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OGroup::setName( const OUString& /*aName*/ ) throw(::com::sun::star::uno::RuntimeException)
{
throwFeatureNotImplementedException( "XNamed::setName", *this );
}
-// -----------------------------------------------------------------------------
+
// XInterface
void SAL_CALL OGroup::acquire() throw()
{
OGroup_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OGroup::release() throw()
{
OGroup_BASE::release();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/sdbcx/VIndex.cxx b/connectivity/source/sdbcx/VIndex.cxx
index 23f662c74aac..7c5d9c0369fc 100644
--- a/connectivity/source/sdbcx/VIndex.cxx
+++ b/connectivity/source/sdbcx/VIndex.cxx
@@ -37,14 +37,14 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OIndex::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException)
{
if(isNew())
return OUString("com.sun.star.sdbcx.VIndexDescriptor");
return OUString("com.sun.star.sdbcx.VIndex");
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< OUString > SAL_CALL OIndex::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
@@ -60,7 +60,7 @@ sal_Bool SAL_CALL OIndex::supportsService( const OUString& _rServiceName ) throw
{
return cppu::supportsService(this, _rServiceName);
}
-// -------------------------------------------------------------------------
+
OIndex::OIndex(sal_Bool _bCase) : ODescriptor_BASE(m_aMutex)
, ODescriptor(ODescriptor_BASE::rBHelper,_bCase,sal_True)
,m_IsUnique(sal_False)
@@ -69,7 +69,7 @@ OIndex::OIndex(sal_Bool _bCase) : ODescriptor_BASE(m_aMutex)
,m_pColumns(NULL)
{
}
-// -------------------------------------------------------------------------
+
OIndex::OIndex( const OUString& _Name,
const OUString& _Catalog,
sal_Bool _isUnique,
@@ -85,22 +85,22 @@ OIndex::OIndex( const OUString& _Name,
{
m_Name = _Name;
}
-// -------------------------------------------------------------------------
+
OIndex::~OIndex( )
{
delete m_pColumns;
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OIndex::createArrayHelper( sal_Int32 /*_nId*/ ) const
{
return doCreateArrayHelper();
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper& SAL_CALL OIndex::getInfoHelper()
{
return *OIndex_PROP::getArrayHelper(isNew() ? 1 : 0);
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OIndex::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = ODescriptor::queryInterface( rType);
@@ -113,14 +113,14 @@ Any SAL_CALL OIndex::queryInterface( const Type & rType ) throw(RuntimeException
}
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OIndex::getTypes( ) throw(RuntimeException)
{
if(isNew())
return ::comphelper::concatSequences(ODescriptor::getTypes(),ODescriptor_BASE::getTypes());
return ::comphelper::concatSequences(ODescriptor::getTypes(),ODescriptor_BASE::getTypes(),OIndex_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void OIndex::construct()
{
ODescriptor::construct();
@@ -132,7 +132,7 @@ void OIndex::construct()
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISPRIMARYKEYINDEX),PROPERTY_ID_ISPRIMARYKEYINDEX, nAttrib,&m_IsPrimaryKeyIndex, ::getBooleanCppuType());
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISCLUSTERED), PROPERTY_ID_ISCLUSTERED, nAttrib,&m_IsClustered, ::getBooleanCppuType());
}
-// -------------------------------------------------------------------------
+
void OIndex::disposing(void)
{
OPropertySetHelper::disposing();
@@ -142,7 +142,7 @@ void OIndex::disposing(void)
if(m_pColumns)
m_pColumns->disposing();
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OIndex::getColumns( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -165,7 +165,7 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OIndex::getColumn
return const_cast<OIndex*>(this)->m_pColumns;
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > SAL_CALL OIndex::createDataDescriptor( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -174,35 +174,35 @@ Reference< XPropertySet > SAL_CALL OIndex::createDataDescriptor( ) throw(Runtim
return this;
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OIndex::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OIndex::getName( ) throw(::com::sun::star::uno::RuntimeException)
{
return m_Name;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OIndex::setName( const OUString& /*aName*/ ) throw(::com::sun::star::uno::RuntimeException)
{
}
-// -----------------------------------------------------------------------------
+
// XInterface
void SAL_CALL OIndex::acquire() throw()
{
ODescriptor_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OIndex::release() throw()
{
ODescriptor_BASE::release();
}
-// -----------------------------------------------------------------------------
+
void OIndex::refreshColumns()
{
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/sdbcx/VIndexColumn.cxx b/connectivity/source/sdbcx/VIndexColumn.cxx
index ebb83ba0188e..9bdc3215ceeb 100644
--- a/connectivity/source/sdbcx/VIndexColumn.cxx
+++ b/connectivity/source/sdbcx/VIndexColumn.cxx
@@ -25,14 +25,14 @@ using namespace connectivity;
using namespace connectivity::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::uno;
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OIndexColumn::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException)
{
if(isNew())
return OUString("com.sun.star.sdbcx.VIndexColumnDescription");
return OUString("com.sun.star.sdbcx.VIndex");
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< OUString > SAL_CALL OIndexColumn::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
@@ -48,13 +48,13 @@ sal_Bool SAL_CALL OIndexColumn::supportsService( const OUString& _rServiceName )
{
return cppu::supportsService(this, _rServiceName);
}
-// -----------------------------------------------------------------------------
+
OIndexColumn::OIndexColumn(sal_Bool _bCase) : OColumn(_bCase), m_IsAscending(sal_True)
{
construct();
}
-// -------------------------------------------------------------------------
+
OIndexColumn::OIndexColumn( sal_Bool _IsAscending,
const OUString& _Name,
const OUString& _TypeName,
@@ -89,23 +89,23 @@ OIndexColumn::OIndexColumn( sal_Bool _IsAscending,
{
construct();
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OIndexColumn::createArrayHelper( sal_Int32 /*_nId*/ ) const
{
return doCreateArrayHelper();
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper& SAL_CALL OIndexColumn::getInfoHelper()
{
return *OIndexColumn_PROP::getArrayHelper(isNew() ? 1 : 0);
}
-// -------------------------------------------------------------------------
+
void OIndexColumn::construct()
{
sal_Int32 nAttrib = isNew() ? 0 : PropertyAttribute::READONLY;
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISASCENDING), PROPERTY_ID_ISASCENDING, nAttrib,&m_IsAscending, ::getBooleanCppuType());
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/sdbcx/VKey.cxx b/connectivity/source/sdbcx/VKey.cxx
index 61da3eb3375e..e5117a07d543 100644
--- a/connectivity/source/sdbcx/VKey.cxx
+++ b/connectivity/source/sdbcx/VKey.cxx
@@ -35,14 +35,14 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OKey::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException)
{
if(isNew())
return OUString("com.sun.star.sdbcx.VKeyDescription");
return OUString("com.sun.star.sdbcx.VKey");
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< OUString > SAL_CALL OKey::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
@@ -58,14 +58,14 @@ sal_Bool SAL_CALL OKey::supportsService( const OUString& _rServiceName ) throw(:
{
return cppu::supportsService(this, _rServiceName);
}
-// -------------------------------------------------------------------------
+
OKey::OKey(sal_Bool _bCase) : ODescriptor_BASE(m_aMutex)
, ODescriptor(ODescriptor_BASE::rBHelper,_bCase,sal_True)
, m_aProps(new KeyProperties())
, m_pColumns(NULL)
{
}
-// -------------------------------------------------------------------------
+
OKey::OKey(const OUString& _Name,const TKeyProperties& _rProps,sal_Bool _bCase)
: ODescriptor_BASE(m_aMutex)
,ODescriptor(ODescriptor_BASE::rBHelper,_bCase)
@@ -89,12 +89,12 @@ OKey::OKey(const OUString& _Name,const TKeyProperties& _rProps,sal_Bool _bCase)
//{
// m_Name = _Name;
//}
-// -------------------------------------------------------------------------
+
OKey::~OKey( )
{
delete m_pColumns;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OKey::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = ODescriptor::queryInterface( rType);
@@ -108,7 +108,7 @@ Any SAL_CALL OKey::queryInterface( const Type & rType ) throw(RuntimeException)
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OKey::getTypes( ) throw(RuntimeException)
{
if(isNew())
@@ -116,7 +116,7 @@ Sequence< Type > SAL_CALL OKey::getTypes( ) throw(RuntimeException)
return ::comphelper::concatSequences(ODescriptor::getTypes(),ODescriptor_BASE::getTypes(),OKey_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void OKey::construct()
{
ODescriptor::construct();
@@ -128,7 +128,7 @@ void OKey::construct()
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_UPDATERULE), PROPERTY_ID_UPDATERULE, nAttrib,&m_aProps->m_UpdateRule, ::getCppuType(static_cast<sal_Int32*>(0)));
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_DELETERULE), PROPERTY_ID_DELETERULE, nAttrib,&m_aProps->m_DeleteRule, ::getCppuType(static_cast<sal_Int32*>(0)));
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OKey::disposing()
{
OPropertySetHelper::disposing();
@@ -140,17 +140,17 @@ void SAL_CALL OKey::disposing()
ODescriptor_BASE::disposing();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OKey::createArrayHelper( sal_Int32 /*_nId*/ ) const
{
return doCreateArrayHelper();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OKey::getInfoHelper()
{
return *const_cast<OKey*>(this)->getArrayHelper(isNew() ? 1 : 0);
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OKey::getColumns( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -173,7 +173,7 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OKey::getColumns(
return const_cast<OKey*>(this)->m_pColumns;
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > SAL_CALL OKey::createDataDescriptor( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -182,31 +182,31 @@ Reference< XPropertySet > SAL_CALL OKey::createDataDescriptor( ) throw(RuntimeE
return this;
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OKey::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OKey::getName( ) throw(::com::sun::star::uno::RuntimeException)
{
return m_Name;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OKey::setName( const OUString& /*aName*/ ) throw(::com::sun::star::uno::RuntimeException)
{
}
-// -----------------------------------------------------------------------------
+
// XInterface
void SAL_CALL OKey::acquire() throw()
{
ODescriptor_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OKey::release() throw()
{
ODescriptor_BASE::release();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/sdbcx/VKeyColumn.cxx b/connectivity/source/sdbcx/VKeyColumn.cxx
index db8929dcaaed..3935f128f2cb 100644
--- a/connectivity/source/sdbcx/VKeyColumn.cxx
+++ b/connectivity/source/sdbcx/VKeyColumn.cxx
@@ -26,14 +26,14 @@ using namespace connectivity::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::uno;
using namespace cppu;
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OKeyColumn::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException)
{
if(isNew())
return OUString("com.sun.star.sdbcx.VKeyColumnDescription");
return OUString("com.sun.star.sdbcx.VKeyColumn");
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< OUString > SAL_CALL OKeyColumn::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
@@ -49,12 +49,12 @@ sal_Bool SAL_CALL OKeyColumn::supportsService( const OUString& _rServiceName ) t
{
return cppu::supportsService(this, _rServiceName);
}
-// -------------------------------------------------------------------------
+
OKeyColumn::OKeyColumn(sal_Bool _bCase) : OColumn(_bCase)
{
construct();
}
-// -------------------------------------------------------------------------
+
OKeyColumn::OKeyColumn( const OUString& _ReferencedColumn,
const OUString& _Name,
const OUString& _TypeName,
@@ -89,27 +89,27 @@ OKeyColumn::OKeyColumn( const OUString& _ReferencedColumn,
{
construct();
}
-// -------------------------------------------------------------------------
+
OKeyColumn::~OKeyColumn()
{
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OKeyColumn::createArrayHelper( sal_Int32 /*_nId*/ ) const
{
return doCreateArrayHelper();
}
-// -----------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper& SAL_CALL OKeyColumn::getInfoHelper()
{
return *OKeyColumn_PROP::getArrayHelper(isNew() ? 1 : 0);
}
-// -------------------------------------------------------------------------
+
void OKeyColumn::construct()
{
sal_Int32 nAttrib = isNew() ? 0 : PropertyAttribute::READONLY;
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_RELATEDCOLUMN), PROPERTY_ID_RELATEDCOLUMN, nAttrib,&m_ReferencedColumn, ::getCppuType(static_cast< OUString*>(0)));
}
-// -----------------------------------------------------------------------------
+
diff --git a/connectivity/source/sdbcx/VTable.cxx b/connectivity/source/sdbcx/VTable.cxx
index b4f1338ce670..95e15dc7a9dd 100644
--- a/connectivity/source/sdbcx/VTable.cxx
+++ b/connectivity/source/sdbcx/VTable.cxx
@@ -39,7 +39,7 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OTable::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException)
{
if(isNew())
@@ -47,7 +47,7 @@ OUString SAL_CALL OTable::getImplementationName( ) throw (::com::sun::star::uno
return OUString("com.sun.star.sdbcx.Table");
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< OUString > SAL_CALL OTable::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
@@ -63,7 +63,7 @@ sal_Bool SAL_CALL OTable::supportsService( const OUString& _rServiceName ) throw
{
return cppu::supportsService(this, _rServiceName);
}
-// -------------------------------------------------------------------------
+
OTable::OTable(OCollection* _pTables,
sal_Bool _bCase)
: OTableDescriptor_BASE(m_aMutex)
@@ -74,7 +74,7 @@ OTable::OTable(OCollection* _pTables,
,m_pTables(_pTables)
{
}
-// -----------------------------------------------------------------------------
+
OTable::OTable( OCollection* _pTables,
sal_Bool _bCase,
const OUString& _Name, const OUString& _Type,
@@ -92,14 +92,14 @@ OTable::OTable( OCollection* _pTables,
{
m_Name = _Name;
}
-// -------------------------------------------------------------------------
+
OTable::~OTable()
{
delete m_pKeys;
delete m_pColumns;
delete m_pIndexes;
}
-// -------------------------------------------------------------------------
+
void OTable::construct()
{
ODescriptor::construct();
@@ -111,18 +111,18 @@ void OTable::construct()
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_DESCRIPTION), PROPERTY_ID_DESCRIPTION,nAttrib,&m_Description, ::getCppuType(static_cast< OUString*>(0)));
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE), PROPERTY_ID_TYPE, nAttrib,&m_Type, ::getCppuType(static_cast< OUString*>(0)));
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OTable::acquire() throw()
{
OTableDescriptor_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OTable::release() throw()
{
OTableDescriptor_BASE::release();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OTable::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = ODescriptor::queryInterface( rType);
@@ -137,14 +137,14 @@ Any SAL_CALL OTable::queryInterface( const Type & rType ) throw(RuntimeException
}
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OTable::getTypes( ) throw(RuntimeException)
{
if(isNew())
return ::comphelper::concatSequences(ODescriptor::getTypes(),OTableDescriptor_BASE::getTypes());
return ::comphelper::concatSequences(ODescriptor::getTypes(),OTableDescriptor_BASE::getTypes(),OTable_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OTable::disposing(void)
{
ODescriptor::disposing();
@@ -160,7 +160,7 @@ void SAL_CALL OTable::disposing(void)
m_pTables = NULL;
}
-// -----------------------------------------------------------------------------
+
// XColumnsSupplier
Reference< XNameAccess > SAL_CALL OTable::getColumns( ) throw(RuntimeException)
{
@@ -185,7 +185,7 @@ Reference< XNameAccess > SAL_CALL OTable::getColumns( ) throw(RuntimeException)
return m_pColumns;
}
-// -------------------------------------------------------------------------
+
// XKeysSupplier
Reference< XIndexAccess > SAL_CALL OTable::getKeys( ) throw(RuntimeException)
{
@@ -212,17 +212,17 @@ Reference< XIndexAccess > SAL_CALL OTable::getKeys( ) throw(RuntimeException)
return xKeys;
}
-// -----------------------------------------------------------------------------
+
cppu::IPropertyArrayHelper* OTable::createArrayHelper( sal_Int32 /*_nId*/ ) const
{
return doCreateArrayHelper();
}
-// -------------------------------------------------------------------------
+
cppu::IPropertyArrayHelper & OTable::getInfoHelper()
{
return *const_cast<OTable*>(this)->getArrayHelper(isNew() ? 1 : 0);
}
-// -------------------------------------------------------------------------
+
Reference< XPropertySet > SAL_CALL OTable::createDataDescriptor( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -232,7 +232,7 @@ Reference< XPropertySet > SAL_CALL OTable::createDataDescriptor( ) throw(Runtim
pTable->setNew(sal_True);
return pTable;
}
-// -------------------------------------------------------------------------
+
// XIndexesSupplier
Reference< XNameAccess > SAL_CALL OTable::getIndexes( ) throw(RuntimeException)
{
@@ -256,7 +256,7 @@ Reference< XNameAccess > SAL_CALL OTable::getIndexes( ) throw(RuntimeException)
return m_pIndexes;
}
-// -------------------------------------------------------------------------
+
// XRename
void SAL_CALL OTable::rename( const OUString& newName ) throw(SQLException, ElementExistException, RuntimeException)
{
@@ -272,28 +272,28 @@ void SAL_CALL OTable::rename( const OUString& newName ) throw(SQLException, Elem
m_pTables->renameObject(sOldComposedName,newName);
}
-// -----------------------------------------------------------------------------
+
Reference< XDatabaseMetaData> OTable::getMetaData() const
{
return NULL;
}
-// -------------------------------------------------------------------------
+
// XAlterTable
void SAL_CALL OTable::alterColumnByName( const OUString& /*colName*/, const Reference< XPropertySet >& /*descriptor*/ ) throw(SQLException, NoSuchElementException, RuntimeException)
{
throwFeatureNotImplementedException( "XAlterTable::alterColumnByName", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OTable::alterColumnByIndex( sal_Int32 /*index*/, const Reference< XPropertySet >& /*descriptor*/ ) throw(SQLException, ::com::sun::star::lang::IndexOutOfBoundsException, RuntimeException)
{
throwFeatureNotImplementedException( "XAlterTable::alterColumnByIndex", *this );
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OTable::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OTable::getName() throw(::com::sun::star::uno::RuntimeException)
{
// this is only correct for tables who haven't a schema or catalog name
@@ -301,22 +301,22 @@ OUString SAL_CALL OTable::getName() throw(::com::sun::star::uno::RuntimeExceptio
OSL_ENSURE(m_SchemaName.isEmpty(),"getName(): forgot to overload getName()!");
return m_Name;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OTable::setName( const OUString& /*aName*/ ) throw(::com::sun::star::uno::RuntimeException)
{
}
-// -----------------------------------------------------------------------------
+
void OTable::refreshColumns()
{
}
-// -----------------------------------------------------------------------------
+
void OTable::refreshKeys()
{
}
-// -----------------------------------------------------------------------------
+
void OTable::refreshIndexes()
{
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/sdbcx/VUser.cxx b/connectivity/source/sdbcx/VUser.cxx
index f7f8176e34cc..c4b5e05ee84d 100644
--- a/connectivity/source/sdbcx/VUser.cxx
+++ b/connectivity/source/sdbcx/VUser.cxx
@@ -28,7 +28,7 @@
#include <connectivity/dbexception.hxx>
#include <comphelper/sequence.hxx>
-// -------------------------------------------------------------------------
+
using namespace connectivity;
using namespace connectivity::sdbcx;
using namespace ::com::sun::star::sdbc;
@@ -38,25 +38,25 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
IMPLEMENT_SERVICE_INFO(OUser,"com.sun.star.sdbcx.VUser","com.sun.star.sdbcx.User");
-// -------------------------------------------------------------------------
+
OUser::OUser(sal_Bool _bCase) : OUser_BASE(m_aMutex)
, ODescriptor(OUser_BASE::rBHelper,_bCase,sal_True)
, m_pGroups(NULL)
{
}
-// -------------------------------------------------------------------------
+
OUser::OUser(const OUString& _Name,sal_Bool _bCase) : OUser_BASE(m_aMutex)
,ODescriptor(OUser_BASE::rBHelper,_bCase)
,m_pGroups(NULL)
{
m_Name = _Name;
}
-// -------------------------------------------------------------------------
+
OUser::~OUser( )
{
delete m_pGroups;
}
-// -------------------------------------------------------------------------
+
void OUser::disposing(void)
{
OPropertySetHelper::disposing();
@@ -64,18 +64,18 @@ void OUser::disposing(void)
if(m_pGroups)
m_pGroups->disposing();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OUser::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = ODescriptor::queryInterface( rType);
return aRet.hasValue() ? aRet : OUser_BASE::queryInterface( rType);
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OUser::getTypes( ) throw(RuntimeException)
{
return ::comphelper::concatSequences(ODescriptor::getTypes(),OUser_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OUser::createArrayHelper( ) const
{
Sequence< Property > aProps;
@@ -83,12 +83,12 @@ Sequence< Type > SAL_CALL OUser::getTypes( ) throw(RuntimeException)
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OUser::getInfoHelper()
{
return *const_cast<OUser*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
// XUser
void SAL_CALL OUser::changePassword( const OUString& /*objPassword*/, const OUString& /*newPassword*/ ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
@@ -96,7 +96,7 @@ void SAL_CALL OUser::changePassword( const OUString& /*objPassword*/, const OUSt
checkDisposed(OUser_BASE::rBHelper.bDisposed);
::dbtools::throwFeatureNotImplementedException( "XUser::changePassword", *this );
}
-// -------------------------------------------------------------------------
+
// XGroupsSupplier
Reference< XNameAccess > SAL_CALL OUser::getGroups( ) throw(RuntimeException)
{
@@ -120,7 +120,7 @@ Reference< XNameAccess > SAL_CALL OUser::getGroups( ) throw(RuntimeException)
return const_cast<OUser*>(this)->m_pGroups;
}
-// -------------------------------------------------------------------------
+
SAL_WNOUNREACHABLE_CODE_PUSH
@@ -131,7 +131,7 @@ sal_Int32 SAL_CALL OUser::getPrivileges( const OUString& /*objName*/, sal_Int32
::dbtools::throwFeatureNotImplementedException( "XAuthorizable::changePassword", *this );
return 0;
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OUser::getGrantablePrivileges( const OUString& /*objName*/, sal_Int32 /*objType*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -142,48 +142,48 @@ sal_Int32 SAL_CALL OUser::getGrantablePrivileges( const OUString& /*objName*/, s
SAL_WNOUNREACHABLE_CODE_POP
-// -------------------------------------------------------------------------
+
void SAL_CALL OUser::grantPrivileges( const OUString& /*objName*/, sal_Int32 /*objType*/, sal_Int32 /*objPrivileges*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
checkDisposed(OUser_BASE::rBHelper.bDisposed);
::dbtools::throwFeatureNotImplementedException( "XAuthorizable::grantPrivileges", *this );
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OUser::revokePrivileges( const OUString& /*objName*/, sal_Int32 /*objType*/, sal_Int32 /*objPrivileges*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
::osl::MutexGuard aGuard(m_aMutex);
checkDisposed(OUser_BASE::rBHelper.bDisposed);
::dbtools::throwFeatureNotImplementedException( "XAuthorizable::revokePrivileges", *this );
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OUser::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OUser::getName( ) throw(::com::sun::star::uno::RuntimeException)
{
return m_Name;
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OUser::setName( const OUString& /*aName*/ ) throw(::com::sun::star::uno::RuntimeException)
{
OSL_FAIL( "OUser::setName: not implemented!" );
// not allowed to throw an SQLException here ...
}
-// -----------------------------------------------------------------------------
+
// XInterface
void SAL_CALL OUser::acquire() throw()
{
OUser_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OUser::release() throw()
{
OUser_BASE::release();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/sdbcx/VView.cxx b/connectivity/source/sdbcx/VView.cxx
index 28aeb4aa03be..d4a5c18cd2b9 100644
--- a/connectivity/source/sdbcx/VView.cxx
+++ b/connectivity/source/sdbcx/VView.cxx
@@ -23,7 +23,7 @@
#include "connectivity/dbtools.hxx"
#include "TConnection.hxx"
-// -------------------------------------------------------------------------
+
using namespace connectivity;
using namespace connectivity::sdbcx;
using namespace ::com::sun::star::beans;
@@ -33,7 +33,7 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
IMPLEMENT_SERVICE_INFO(OView,"com.sun.star.sdbcx.VView","com.sun.star.sdbcx.View");
-// -------------------------------------------------------------------------
+
OView::OView(sal_Bool _bCase,
const OUString& _Name,
const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >& _xMetaData,
@@ -51,18 +51,18 @@ OView::OView(sal_Bool _bCase,
m_Name = _Name;
construct();
}
-// -------------------------------------------------------------------------
+
OView::OView(sal_Bool _bCase,const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >& _xMetaData)
: ODescriptor(::comphelper::OMutexAndBroadcastHelper::m_aBHelper,_bCase,sal_True)
,m_xMetaData(_xMetaData)
{
construct();
}
-// -------------------------------------------------------------------------
+
OView::~OView()
{
}
-// -------------------------------------------------------------------------
+
void OView::construct()
{
ODescriptor::construct();
@@ -74,35 +74,35 @@ void OView::construct()
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_COMMAND), PROPERTY_ID_COMMAND, nAttrib,&m_Command, ::getCppuType(static_cast< OUString*>(0)));
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_CHECKOPTION), PROPERTY_ID_CHECKOPTION,nAttrib,&m_CheckOption, ::getCppuType(static_cast< sal_Int32*>(0)));
}
-// -------------------------------------------------------------------------
+
void OView::disposing(void)
{
OPropertySetHelper::disposing();
::osl::MutexGuard aGuard(m_aMutex);
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OView::getTypes( ) throw(RuntimeException)
{
return ::comphelper::concatSequences(ODescriptor::getTypes(),OView_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OView::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OView_BASE::queryInterface( rType);
return aRet.hasValue() ? aRet : ODescriptor::queryInterface( rType);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OView::createArrayHelper( sal_Int32 /*_nId*/ ) const
{
return doCreateArrayHelper();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OView::getInfoHelper()
{
return *const_cast<OView*>(this)->getArrayHelper(isNew() ? 1 : 0);
}
-// -----------------------------------------------------------------------------
+
OUString SAL_CALL OView::getName() throw(::com::sun::star::uno::RuntimeException)
{
OUString sComposedName;
@@ -116,26 +116,26 @@ OUString SAL_CALL OView::getName() throw(::com::sun::star::uno::RuntimeException
}
return sComposedName;
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OView::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OView::setName( const OUString& ) throw(::com::sun::star::uno::RuntimeException)
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OView::acquire() throw()
{
OView_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OView::release() throw()
{
OView_BASE::release();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/simpledbt/charset_s.cxx b/connectivity/source/simpledbt/charset_s.cxx
index 64afb1c4870a..58365a98db8a 100644
--- a/connectivity/source/simpledbt/charset_s.cxx
+++ b/connectivity/source/simpledbt/charset_s.cxx
@@ -29,19 +29,19 @@ namespace connectivity
//====================================================================
//= ODataAccessCharSet
//====================================================================
- //----------------------------------------------------------------
+
oslInterlockedCount SAL_CALL ODataAccessCharSet::acquire()
{
return ORefBase::acquire();
}
- //----------------------------------------------------------------
+
oslInterlockedCount SAL_CALL ODataAccessCharSet::release()
{
return ORefBase::release();
}
- //--------------------------------------------------------------------
+
sal_Int32 ODataAccessCharSet::getSupportedTextEncodings( ::std::vector< rtl_TextEncoding >& _rEncs ) const
{
_rEncs.clear();
diff --git a/connectivity/source/simpledbt/dbtfactory.cxx b/connectivity/source/simpledbt/dbtfactory.cxx
index acaa5a934754..12dcb8bfdfdf 100644
--- a/connectivity/source/simpledbt/dbtfactory.cxx
+++ b/connectivity/source/simpledbt/dbtfactory.cxx
@@ -45,7 +45,7 @@ namespace connectivity
//================================================================
//= ODataAccessToolsFactory
//================================================================
- //----------------------------------------------------------------
+
ODataAccessToolsFactory::ODataAccessToolsFactory()
{
ODataAccessStaticTools* pStaticTools = new ODataAccessStaticTools;
@@ -53,37 +53,37 @@ namespace connectivity
m_xToolsHelper = pStaticTools;
}
- //----------------------------------------------------------------
+
oslInterlockedCount SAL_CALL ODataAccessToolsFactory::acquire()
{
return ORefBase::acquire();
}
- //----------------------------------------------------------------
+
oslInterlockedCount SAL_CALL ODataAccessToolsFactory::release()
{
return ORefBase::release();
}
- //----------------------------------------------------------------
+
::rtl::Reference< simple::IDataAccessTypeConversion > ODataAccessToolsFactory::getTypeConversionHelper()
{
return m_xTypeConversionHelper;
}
- //----------------------------------------------------------------
+
::rtl::Reference< simple::IDataAccessCharSet > ODataAccessToolsFactory::createCharsetHelper( ) const
{
return new ODataAccessCharSet;
}
- //----------------------------------------------------------------
+
::rtl::Reference< simple::IDataAccessTools > ODataAccessToolsFactory::getDataAccessTools()
{
return m_xToolsHelper;
}
- //----------------------------------------------------------------
+
SAL_WNODEPRECATED_DECLARATIONS_PUSH
::std::auto_ptr< ::dbtools::FormattedColumnValue > ODataAccessToolsFactory::createFormattedColumnValue(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext,
@@ -94,7 +94,7 @@ namespace connectivity
}
SAL_WNODEPRECATED_DECLARATIONS_POP
- //----------------------------------------------------------------
+
::rtl::Reference< simple::ISQLParser > ODataAccessToolsFactory::createSQLParser(const Reference< XComponentContext >& rxContext, const IParseContext* _pContext) const
{
return new OSimpleSQLParser(rxContext, _pContext);
diff --git a/connectivity/source/simpledbt/parsenode_s.cxx b/connectivity/source/simpledbt/parsenode_s.cxx
index 92cd3a23c212..8539f0524f59 100644
--- a/connectivity/source/simpledbt/parsenode_s.cxx
+++ b/connectivity/source/simpledbt/parsenode_s.cxx
@@ -35,7 +35,7 @@ namespace connectivity
//================================================================
//= OSimpleParseNode
//================================================================
- //----------------------------------------------------------------
+
OSimpleParseNode::OSimpleParseNode(const OSQLParseNode* _pNode, sal_Bool _bTakeOwnership)
:m_pFullNode(_pNode)
,m_bOwner(_bTakeOwnership)
@@ -43,32 +43,32 @@ namespace connectivity
OSL_ENSURE(m_pFullNode, "OSimpleParseNode::OSimpleParseNode: invalid node given!");
}
- //----------------------------------------------------------------
+
OSimpleParseNode::~OSimpleParseNode()
{
if (m_bOwner)
delete m_pFullNode;
}
- //----------------------------------------------------------------
+
oslInterlockedCount SAL_CALL OSimpleParseNode::acquire()
{
return ORefBase::acquire();
}
- //----------------------------------------------------------------
+
oslInterlockedCount SAL_CALL OSimpleParseNode::release()
{
return ORefBase::release();
}
- //----------------------------------------------------------------
+
void OSimpleParseNode::parseNodeToStr(OUString& _rString, const Reference< XConnection >& _rxConnection,const IParseContext* _pContext) const
{
m_pFullNode->parseNodeToStr( _rString, _rxConnection, _pContext );
}
- //----------------------------------------------------------------
+
void OSimpleParseNode::parseNodeToPredicateStr(OUString& _rString, const Reference< XConnection >& _rxConnection,
const Reference< XNumberFormatter >& _rxFormatter, const Reference< XPropertySet >& _rxField,
const OUString &_sPredicateTableAlias,
diff --git a/connectivity/source/simpledbt/parser_s.cxx b/connectivity/source/simpledbt/parser_s.cxx
index b8168c7c4841..fcd25251fbb3 100644
--- a/connectivity/source/simpledbt/parser_s.cxx
+++ b/connectivity/source/simpledbt/parser_s.cxx
@@ -34,31 +34,31 @@ namespace connectivity
//================================================================
//= OSimpleSQLParser
//================================================================
- //----------------------------------------------------------------
+
OSimpleSQLParser::OSimpleSQLParser(const Reference< XComponentContext >& rxContext, const IParseContext* _pContext)
:m_aFullParser(rxContext, _pContext)
{
}
- //----------------------------------------------------------------
+
oslInterlockedCount SAL_CALL OSimpleSQLParser::acquire()
{
return ORefBase::acquire();
}
- //----------------------------------------------------------------
+
oslInterlockedCount SAL_CALL OSimpleSQLParser::release()
{
return ORefBase::release();
}
- //----------------------------------------------------------------
+
const IParseContext& OSimpleSQLParser::getContext() const
{
return m_aFullParser.getContext();
}
- //----------------------------------------------------------------
+
::rtl::Reference< simple::ISQLParseNode > OSimpleSQLParser::predicateTree(OUString& rErrorMessage, const OUString& rStatement,
const Reference< XNumberFormatter >& _rxFormatter, const Reference< XPropertySet >& _rxField) const
{
diff --git a/connectivity/source/simpledbt/refbase.cxx b/connectivity/source/simpledbt/refbase.cxx
index 7c9fe5e6b550..5ece9c208508 100644
--- a/connectivity/source/simpledbt/refbase.cxx
+++ b/connectivity/source/simpledbt/refbase.cxx
@@ -27,18 +27,18 @@ namespace connectivity
//================================================================
//= ORefBase
//================================================================
- //----------------------------------------------------------------
+
ORefBase::~ORefBase()
{
}
- //----------------------------------------------------------------
+
oslInterlockedCount SAL_CALL ORefBase::acquire()
{
return osl_atomic_increment(&m_refCount);
}
- //----------------------------------------------------------------
+
oslInterlockedCount SAL_CALL ORefBase::release()
{
oslInterlockedCount nNewRefCount = osl_atomic_decrement(&m_refCount);
diff --git a/connectivity/source/simpledbt/staticdbtools_s.cxx b/connectivity/source/simpledbt/staticdbtools_s.cxx
index 9a7485ce9a6f..2a06624f6033 100644
--- a/connectivity/source/simpledbt/staticdbtools_s.cxx
+++ b/connectivity/source/simpledbt/staticdbtools_s.cxx
@@ -39,64 +39,64 @@ namespace connectivity
//================================================================
//= ODataAccessStaticTools
//================================================================
- //----------------------------------------------------------------
+
ODataAccessStaticTools::ODataAccessStaticTools()
{
}
- //----------------------------------------------------------------
+
Date ODataAccessStaticTools::getStandardDate() const
{
return ::dbtools::DBTypeConversion::getStandardDate();
}
- //----------------------------------------------------------------
+
double ODataAccessStaticTools::getValue(const Reference< XColumn>& _rxVariant, const Date& rNullDate ) const
{
return ::dbtools::DBTypeConversion::getValue( _rxVariant, rNullDate );
}
- //----------------------------------------------------------------
+
OUString ODataAccessStaticTools::getFormattedValue(const Reference< XColumn >& _rxColumn, const Reference< XNumberFormatter >& _rxFormatter,
const Date& _rNullDate, sal_Int32 _nKey, sal_Int16 _nKeyType) const
{
return ::dbtools::DBTypeConversion::getFormattedValue(_rxColumn, _rxFormatter, _rNullDate, _nKey, _nKeyType);
}
- //----------------------------------------------------------------
+
OUString ODataAccessStaticTools::getFormattedValue( const Reference< XPropertySet>& _rxColumn, const Reference< XNumberFormatter>& _rxFormatter,
const Locale& _rLocale, const Date& _rNullDate ) const
{
return ::dbtools::DBTypeConversion::getFormattedValue( _rxColumn, _rxFormatter, _rLocale, _rNullDate );
}
- //----------------------------------------------------------------
+
oslInterlockedCount SAL_CALL ODataAccessStaticTools::acquire()
{
return ORefBase::acquire();
}
- //----------------------------------------------------------------
+
oslInterlockedCount SAL_CALL ODataAccessStaticTools::release()
{
return ORefBase::release();
}
- //----------------------------------------------------------------
+
Reference< XConnection> ODataAccessStaticTools::getConnection_withFeedback(const OUString& _rDataSourceName, const OUString& _rUser,
const OUString& _rPwd, const Reference< XComponentContext>& _rxContext) const SAL_THROW ( (SQLException) )
{
return ::dbtools::getConnection_withFeedback(_rDataSourceName, _rUser, _rPwd, _rxContext);
}
- //----------------------------------------------------------------
+
Reference< XConnection> ODataAccessStaticTools::connectRowset(const Reference< XRowSet>& _rxRowSet, const Reference< XComponentContext >& _rxContext, sal_Bool _bSetAsActiveConnection) const
SAL_THROW ( (SQLException, WrappedTargetException, RuntimeException) )
{
return ::dbtools::connectRowset( _rxRowSet, _rxContext, _bSetAsActiveConnection);
}
- // ------------------------------------------------
+
Reference< XConnection> ODataAccessStaticTools::getRowSetConnection(
const Reference< XRowSet>& _rxRowSet)
const SAL_THROW ( (RuntimeException) )
@@ -104,75 +104,75 @@ namespace connectivity
return ::dbtools::getConnection(_rxRowSet);
}
- //----------------------------------------------------------------
+
Reference< XNumberFormatsSupplier> ODataAccessStaticTools::getNumberFormats(const Reference< XConnection>& _rxConn, sal_Bool _bAllowDefault) const
{
return ::dbtools::getNumberFormats(_rxConn, _bAllowDefault);
}
- //----------------------------------------------------------------
+
sal_Int32 ODataAccessStaticTools::getDefaultNumberFormat( const Reference< XPropertySet >& _rxColumn, const Reference< XNumberFormatTypes >& _rxTypes,
const Locale& _rLocale ) const
{
return ::dbtools::getDefaultNumberFormat( _rxColumn, _rxTypes, _rLocale );
}
- //----------------------------------------------------------------
+
void ODataAccessStaticTools::TransferFormComponentProperties(const Reference< XPropertySet>& _rxOld, const Reference< XPropertySet>& _rxNew, const Locale& _rLocale) const
{
::dbtools::TransferFormComponentProperties(_rxOld, _rxNew, _rLocale);
}
- //----------------------------------------------------------------
+
OUString ODataAccessStaticTools::quoteName(const OUString& _rQuote, const OUString& _rName) const
{
return ::dbtools::quoteName(_rQuote, _rName);
}
- //----------------------------------------------------------------
+
OUString ODataAccessStaticTools::composeTableNameForSelect( const Reference< XConnection >& _rxConnection, const OUString& _rCatalog, const OUString& _rSchema, const OUString& _rName ) const
{
return ::dbtools::composeTableNameForSelect( _rxConnection, _rCatalog, _rSchema, _rName );
}
- //----------------------------------------------------------------
+
OUString ODataAccessStaticTools::composeTableNameForSelect( const Reference< XConnection >& _rxConnection, const Reference< XPropertySet>& _xTable ) const
{
return ::dbtools::composeTableNameForSelect( _rxConnection, _xTable );
}
- //----------------------------------------------------------------
+
SQLContext ODataAccessStaticTools::prependContextInfo(SQLException& _rException, const Reference< XInterface >& _rxContext,
const OUString& _rContextDescription, const OUString& _rContextDetails) const
{
return ::dbtools::prependContextInfo(_rException, _rxContext, _rContextDescription, _rContextDetails);
}
- //----------------------------------------------------------------
+
Reference< XDataSource > ODataAccessStaticTools::getDataSource( const OUString& _rsRegisteredName, const Reference< XComponentContext>& _rxContext ) const
{
return ::dbtools::getDataSource( _rsRegisteredName, _rxContext );
}
- //----------------------------------------------------------------
+
sal_Bool ODataAccessStaticTools::canInsert(const Reference< XPropertySet>& _rxCursorSet) const
{
return ::dbtools::canInsert( _rxCursorSet );
}
- //----------------------------------------------------------------
+
sal_Bool ODataAccessStaticTools::canUpdate(const Reference< XPropertySet>& _rxCursorSet) const
{
return ::dbtools::canUpdate( _rxCursorSet );
}
- //----------------------------------------------------------------
+
sal_Bool ODataAccessStaticTools::canDelete(const Reference< XPropertySet>& _rxCursorSet) const
{
return ::dbtools::canDelete( _rxCursorSet );
}
- //----------------------------------------------------------------
+
Reference< XNameAccess > ODataAccessStaticTools::getFieldsByCommandDescriptor( const Reference< XConnection >& _rxConnection,
const sal_Int32 _nCommandType, const OUString& _rCommand,
Reference< XComponent >& _rxKeepFieldsAlive, ::dbtools::SQLExceptionInfo* _pErrorInfo ) SAL_THROW( ( ) )
@@ -181,7 +181,7 @@ namespace connectivity
_rxKeepFieldsAlive, _pErrorInfo );
}
- //----------------------------------------------------------------
+
Sequence< OUString > ODataAccessStaticTools::getFieldNamesByCommandDescriptor(
const Reference< XConnection >& _rxConnection, const sal_Int32 _nCommandType,
const OUString& _rCommand, ::dbtools::SQLExceptionInfo* _pErrorInfo ) SAL_THROW( ( ) )
@@ -190,7 +190,7 @@ namespace connectivity
_rCommand, _pErrorInfo );
}
- // ------------------------------------------------
+
bool ODataAccessStaticTools::isEmbeddedInDatabase( const Reference< XInterface >& _rxComponent, Reference< XConnection >& _rxActualConnection )
{
return ::dbtools::isEmbeddedInDatabase( _rxComponent, _rxActualConnection );
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index 9f3635e02bae..663c47592048 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -243,7 +243,7 @@ namespace cppcanvas
namespace internal
{
// state stack manipulators
- // ------------------------
+
void VectorOfOutDevStates::clearStateStack()
{
m_aStates.clear();
@@ -527,7 +527,7 @@ namespace cppcanvas
// setup start/end color values
- // ----------------------------
+
// scale color coefficients with gradient intensities
const sal_uInt16 nStartIntensity( rGradient.GetStartIntensity() );
@@ -1143,7 +1143,7 @@ namespace cppcanvas
// sweep line implementation is done.
// general case: convert to polygon and clip
- // -----------------------------------------
+
// convert rect to polygon beforehand, must revert
// to general polygon clipping here.
@@ -1239,13 +1239,13 @@ namespace cppcanvas
switch( pCurrAct->GetType() )
{
- // ------------------------------------------------------------
+
// In the first part of this monster-switch, we
// handle all state-changing meta actions. These
// are all handled locally.
- // ------------------------------------------------------------
+
case META_PUSH_ACTION:
{
@@ -1534,14 +1534,14 @@ namespace cppcanvas
}
break;
- // ------------------------------------------------------------
+
// In the second part of this monster-switch, we
// handle all recursing meta actions. These are the
// ones generating a metafile by themselves, which is
// then processed by recursively calling this method.
- // ------------------------------------------------------------
+
case META_GRADIENT_ACTION:
{
@@ -1798,14 +1798,14 @@ namespace cppcanvas
}
break;
- // ------------------------------------------------------------
+
// In the third part of this monster-switch, we
// handle all 'acting' meta actions. These are all
// processed by constructing function objects for
// them, which will later ease caching.
- // ------------------------------------------------------------
+
case META_POINT_ACTION:
{
diff --git a/cppcanvas/source/mtfrenderer/polypolyaction.cxx b/cppcanvas/source/mtfrenderer/polypolyaction.cxx
index af08d65435b1..c86757847652 100644
--- a/cppcanvas/source/mtfrenderer/polypolyaction.cxx
+++ b/cppcanvas/source/mtfrenderer/polypolyaction.cxx
@@ -229,7 +229,7 @@ namespace cppcanvas
}
- // -------------------------------------------------------------------------------
+
class TexturedPolyPolyAction : public CachedPrimitiveBase
{
@@ -343,7 +343,7 @@ namespace cppcanvas
return 1;
}
- // -------------------------------------------------------------------------------
+
class StrokedPolyPolyAction : public CachedPrimitiveBase
{
diff --git a/cppcanvas/source/mtfrenderer/textaction.cxx b/cppcanvas/source/mtfrenderer/textaction.cxx
index 4cd4ab6dd30e..4e446648db6c 100644
--- a/cppcanvas/source/mtfrenderer/textaction.cxx
+++ b/cppcanvas/source/mtfrenderer/textaction.cxx
@@ -325,7 +325,7 @@ namespace cppcanvas
// adapt render state, to move text output to given offset
- // -------------------------------------------------------
+
// TODO(F1): Strictly speaking, we also have to adapt
// the clip here, which normally should _not_ move
@@ -352,7 +352,7 @@ namespace cppcanvas
// reduce DX array to given substring
- // ----------------------------------
+
const sal_Int32 nNewElements( rSubset.mnSubsetEnd - rSubset.mnSubsetBegin );
uno::Sequence< double > aAdaptedOffsets( nNewElements );
@@ -380,7 +380,7 @@ namespace cppcanvas
const uno::Reference< rendering::XTextLayout >& rOrigTextLayout )
{
// create temporary new text layout with subset string
- // ---------------------------------------------------
+
const sal_Int32 nNewStartPos( rOrigContext.StartPosition + ::std::min(
rSubset.mnSubsetBegin, rOrigContext.Length-1 ) );
@@ -611,7 +611,7 @@ namespace cppcanvas
}
- // -------------------------------------------------------------------------
+
class TextAction : public Action, private ::boost::noncopyable
{
@@ -764,7 +764,7 @@ namespace cppcanvas
}
- // -------------------------------------------------------------------------
+
class EffectTextAction :
public Action,
@@ -1005,7 +1005,7 @@ namespace cppcanvas
}
- // -------------------------------------------------------------------------
+
class TextArrayAction : public Action, private ::boost::noncopyable
{
@@ -1183,7 +1183,7 @@ namespace cppcanvas
}
- // -------------------------------------------------------------------------
+
class EffectTextArrayAction :
public Action,
@@ -1521,7 +1521,7 @@ namespace cppcanvas
}
- // -------------------------------------------------------------------------
+
class OutlineAction :
public Action,
@@ -2079,7 +2079,7 @@ namespace cppcanvas
} // namespace
- // ---------------------------------------------------------------------------------
+
ActionSharedPtr TextActionFactory::createTextAction( const ::Point& rStartPoint,
const ::Size& rReliefOffset,
diff --git a/cppu/source/threadpool/current.cxx b/cppu/source/threadpool/current.cxx
index 0b8f5ab70b04..bb64202fd170 100644
--- a/cppu/source/threadpool/current.cxx
+++ b/cppu/source/threadpool/current.cxx
@@ -108,13 +108,13 @@ public:
inline ThreadKey( oslThreadKeyCallbackFunction pCallback ) SAL_THROW(());
inline ~ThreadKey() SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
inline ThreadKey::ThreadKey( oslThreadKeyCallbackFunction pCallback ) SAL_THROW(())
: _bInit( false )
, _pCallback( pCallback )
{
}
-//__________________________________________________________________________________________________
+
inline ThreadKey::~ThreadKey() SAL_THROW(())
{
if (_bInit)
@@ -122,7 +122,7 @@ inline ThreadKey::~ThreadKey() SAL_THROW(())
::osl_destroyThreadKey( _hThreadKey );
}
}
-//__________________________________________________________________________________________________
+
inline oslThreadKey ThreadKey::getThreadKey() SAL_THROW(())
{
if (! _bInit)
diff --git a/cppu/source/threadpool/thread.cxx b/cppu/source/threadpool/thread.cxx
index e8a64c685390..3cab23d50aa2 100644
--- a/cppu/source/threadpool/thread.cxx
+++ b/cppu/source/threadpool/thread.cxx
@@ -35,7 +35,7 @@ using namespace osl;
namespace cppu_threadpool {
-// ----------------------------------------------------------------------------------
+
ThreadAdmin::ThreadAdmin(): m_disposed(false) {}
ThreadAdmin::~ThreadAdmin()
@@ -99,7 +99,7 @@ namespace cppu_threadpool {
}
}
-// ----------------------------------------------------------------------------------
+
ORequestThread::ORequestThread( ThreadPoolHolder const &aThreadPool,
JobQueue *pQueue,
const ByteSequence &aThreadId,
diff --git a/cppu/source/threadpool/threadpool.cxx b/cppu/source/threadpool/threadpool.cxx
index 493ab25f6abd..787977ff7421 100644
--- a/cppu/source/threadpool/threadpool.cxx
+++ b/cppu/source/threadpool/threadpool.cxx
@@ -98,7 +98,7 @@ namespace cppu_threadpool
}
- //-------------------------------------------------------------------------------
+
ThreadPool::ThreadPool()
{
diff --git a/cppu/source/typelib/static_types.cxx b/cppu/source/typelib/static_types.cxx
index c53d21a90cf6..8f46cec3ff66 100644
--- a/cppu/source/typelib/static_types.cxx
+++ b/cppu/source/typelib/static_types.cxx
@@ -40,19 +40,19 @@ using ::rtl::OUStringBuffer;
extern "C"
{
-//------------------------------------------------------------------------
+
sal_Int32 SAL_CALL typelib_typedescription_getAlignedUnoSize(
const typelib_TypeDescription * pTypeDescription,
sal_Int32 nOffset,
sal_Int32 & rMaxIntegralTypeSize )
SAL_THROW_EXTERN_C();
-//------------------------------------------------------------------------
+
void SAL_CALL typelib_typedescription_newEmpty(
typelib_TypeDescription ** ppRet,
typelib_TypeClass eTypeClass,
rtl_uString * pTypeName )
SAL_THROW_EXTERN_C();
-//-----------------------------------------------------------------------------
+
void SAL_CALL typelib_typedescriptionreference_getByName(
typelib_TypeDescriptionReference ** ppRet,
rtl_uString * pName )
@@ -107,7 +107,7 @@ static inline sal_Int32 newAlignedSize(
return (OldSize + NeededAlignment -1) / NeededAlignment * NeededAlignment + ElementSize;
}
-//--------------------------------------------------------------------------------------------------
+
namespace
{
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 25123c59b65a..24ef0bf8e904 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -151,19 +151,19 @@ static inline sal_Int32 getDescriptionSize( typelib_TypeClass eTypeClass )
}
-//-----------------------------------------------------------------------------
+
extern "C" void SAL_CALL typelib_typedescriptionreference_getByName(
typelib_TypeDescriptionReference ** ppRet, rtl_uString * pName )
SAL_THROW_EXTERN_C();
-//-----------------------------------------------------------------------------
+
struct equalStr_Impl
{
bool operator()(const sal_Unicode * const & s1, const sal_Unicode * const & s2) const SAL_THROW(())
{ return 0 == rtl_ustr_compare( s1, s2 ); }
};
-//-----------------------------------------------------------------------------
+
struct hashStr_Impl
{
size_t operator()(const sal_Unicode * const & s) const SAL_THROW(())
@@ -171,7 +171,7 @@ struct hashStr_Impl
};
-//-----------------------------------------------------------------------------
+
// Heavy hack, the const sal_Unicode * is hold by the typedescription reference
typedef boost::unordered_map< const sal_Unicode *, typelib_TypeDescriptionReference *,
hashStr_Impl, equalStr_Impl > WeakMap_Impl;
@@ -225,7 +225,7 @@ struct TypeDescriptor_Init_Impl
~TypeDescriptor_Init_Impl() SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
inline Mutex & TypeDescriptor_Init_Impl::getMutex() SAL_THROW(())
{
if( !pMutex )
@@ -236,7 +236,7 @@ inline Mutex & TypeDescriptor_Init_Impl::getMutex() SAL_THROW(())
}
return * pMutex;
}
-//__________________________________________________________________________________________________
+
inline void TypeDescriptor_Init_Impl::callChain(
typelib_TypeDescription ** ppRet, rtl_uString * pName )
SAL_THROW(())
@@ -257,7 +257,7 @@ inline void TypeDescriptor_Init_Impl::callChain(
}
}
-//__________________________________________________________________________________________________
+
TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl() SAL_THROW(())
{
if( pCache )
@@ -359,7 +359,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_registerCallback
rInit.pCallbacks->push_back( CallbackEntry( pContext, pCallback ) );
}
-//------------------------------------------------------------------------
+
extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_revokeCallback(
void * pContext, typelib_typedescription_Callback pCallback )
SAL_THROW_EXTERN_C()
@@ -391,7 +391,7 @@ extern "C" sal_Int32 SAL_CALL typelib_typedescription_getAlignedUnoSize(
sal_Int32 nOffset, sal_Int32 & rMaxIntegralTypeSize )
SAL_THROW_EXTERN_C();
-//------------------------------------------------------------------------
+
static inline void typelib_typedescription_initTables(
typelib_TypeDescription * pTD )
SAL_THROW(())
@@ -563,7 +563,7 @@ bool complete(typelib_TypeDescription ** ppTypeDescr, bool initTables) {
}
-//------------------------------------------------------------------------
+
extern "C" void SAL_CALL typelib_typedescription_newEmpty(
typelib_TypeDescription ** ppRet,
typelib_TypeClass eTypeClass, rtl_uString * pTypeName )
@@ -723,7 +723,7 @@ extern "C" void SAL_CALL typelib_typedescription_newEmpty(
*ppRet = pRet;
}
-//------------------------------------------------------------------------
+
namespace {
void newTypeDescription(
@@ -874,7 +874,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newStruct(
pMembers);
}
-//------------------------------------------------------------------------
+
extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newEnum(
typelib_TypeDescription ** ppRet,
rtl_uString * pTypeName,
@@ -903,7 +903,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newEnum(
(*ppRet)->nAlignment = adjustAlignment( (*ppRet)->nAlignment );
}
-//------------------------------------------------------------------------
+
extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newInterface(
typelib_InterfaceTypeDescription ** ppRet,
rtl_uString * pTypeName,
@@ -920,7 +920,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newInterface(
&pBaseInterface, nMembers, ppMembers);
}
-//------------------------------------------------------------------------
+
namespace {
@@ -1101,7 +1101,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newMIInterface(
*ppRet = pITD;
}
-//------------------------------------------------------------------------
+
namespace {
@@ -1203,7 +1203,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newInterfaceMeth
}
-//------------------------------------------------------------------------
+
extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newInterfaceAttribute(
typelib_InterfaceAttributeTypeDescription ** ppRet,
sal_Int32 nAbsolutePosition,
@@ -1218,7 +1218,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newInterfaceAttr
pAttributeTypeName, bReadOnly, 0, 0, 0, 0);
}
-//------------------------------------------------------------------------
+
extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newExtendedInterfaceAttribute(
typelib_InterfaceAttributeTypeDescription ** ppRet,
sal_Int32 nAbsolutePosition,
@@ -1281,7 +1281,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newExtendedInter
pTmp->pWeakRef = (typelib_TypeDescriptionReference *)pTmp;
}
-//------------------------------------------------------------------------
+
extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_acquire(
typelib_TypeDescription * pTypeDescription )
SAL_THROW_EXTERN_C()
@@ -1289,7 +1289,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_acquire(
osl_atomic_increment( &pTypeDescription->nRefCount );
}
-//------------------------------------------------------------------------
+
namespace {
@@ -1411,7 +1411,7 @@ static inline void typelib_typedescription_destructExtendedMembers(
}
}
-//------------------------------------------------------------------------
+
extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_release(
typelib_TypeDescription * pTD )
SAL_THROW_EXTERN_C()
@@ -1482,7 +1482,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_release(
}
}
-//------------------------------------------------------------------------
+
extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_register(
typelib_TypeDescription ** ppNewDescription )
SAL_THROW_EXTERN_C()
@@ -1616,7 +1616,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_register(
OSL_ASSERT( pTDR->eTypeClass == (*ppNewDescription)->eTypeClass );
}
-//------------------------------------------------------------------------
+
static inline bool type_equals(
typelib_TypeDescriptionReference * p1, typelib_TypeDescriptionReference * p2 )
SAL_THROW(())
@@ -1634,7 +1634,7 @@ extern "C" CPPU_DLLPUBLIC sal_Bool SAL_CALL typelib_typedescription_equals(
(typelib_TypeDescriptionReference *)p1, (typelib_TypeDescriptionReference *)p2 );
}
-//------------------------------------------------------------------------
+
extern "C" sal_Int32 SAL_CALL typelib_typedescription_getAlignedUnoSize(
const typelib_TypeDescription * pTypeDescription,
sal_Int32 nOffset, sal_Int32 & rMaxIntegralTypeSize )
@@ -1771,7 +1771,7 @@ extern "C" sal_Int32 SAL_CALL typelib_typedescription_getAlignedUnoSize(
return newAlignedSize( nOffset, nSize, rMaxIntegralTypeSize );
}
-//------------------------------------------------------------------------
+
namespace {
@@ -2079,7 +2079,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescriptionreference_newByAs
OUString aTypeName( OUString::createFromAscii( pTypeName ) );
typelib_typedescriptionreference_new( ppTDR, eTypeClass, aTypeName.pData );
}
-//------------------------------------------------------------------------
+
extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescriptionreference_new(
typelib_TypeDescriptionReference ** ppTDR,
typelib_TypeClass eTypeClass, rtl_uString * pTypeName )
@@ -2176,7 +2176,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescriptionreference_new(
rInit.pWeakMap->operator[]( (*ppTDR)->pTypeName->buffer ) = *ppTDR;
}
-//------------------------------------------------------------------------
+
extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescriptionreference_acquire(
typelib_TypeDescriptionReference * pRef )
SAL_THROW_EXTERN_C()
@@ -2184,7 +2184,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescriptionreference_acquire
osl_atomic_increment( &pRef->nRefCount );
}
-//------------------------------------------------------------------------
+
extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescriptionreference_release(
typelib_TypeDescriptionReference * pRef )
SAL_THROW_EXTERN_C()
@@ -2220,7 +2220,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescriptionreference_release
}
}
-//------------------------------------------------------------------------
+
extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescriptionreference_getDescription(
typelib_TypeDescription ** ppRet, typelib_TypeDescriptionReference * pRef )
SAL_THROW_EXTERN_C()
@@ -2269,7 +2269,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescriptionreference_getDesc
pRef->pType = *ppRet;
}
-//------------------------------------------------------------------------
+
extern "C" void SAL_CALL typelib_typedescriptionreference_getByName(
typelib_TypeDescriptionReference ** ppRet, rtl_uString * pName )
SAL_THROW_EXTERN_C()
@@ -2303,7 +2303,7 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_getByName(
}
}
-//------------------------------------------------------------------------
+
extern "C" CPPU_DLLPUBLIC sal_Bool SAL_CALL typelib_typedescriptionreference_equals(
const typelib_TypeDescriptionReference * p1,
const typelib_TypeDescriptionReference * p2 )
diff --git a/cppu/source/uno/data.cxx b/cppu/source/uno/data.cxx
index da358d62a141..f7d8a76fc045 100644
--- a/cppu/source/uno/data.cxx
+++ b/cppu/source/uno/data.cxx
@@ -46,7 +46,7 @@ namespace cppu
uno_Sequence g_emptySeq = { 1, 0, { 0 } };
typelib_TypeDescriptionReference * g_pVoidType = 0;
-//--------------------------------------------------------------------------------------------------
+
void * binuno_queryInterface( void * pUnoI, typelib_TypeDescriptionReference * pDestType )
{
// init queryInterface() td
diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx
index 5b45be29d411..9f7cc77325bd 100644
--- a/cppu/source/uno/lbenv.cxx
+++ b/cppu/source/uno/lbenv.cxx
@@ -51,7 +51,7 @@ using ::rtl::OUString;
namespace
{
-//------------------------------------------------------------------------------
+
inline static bool td_equals( typelib_InterfaceTypeDescription * pTD1,
typelib_InterfaceTypeDescription * pTD2 )
{
@@ -66,7 +66,7 @@ inline static bool td_equals( typelib_InterfaceTypeDescription * pTD1,
struct ObjectEntry;
struct uno_DefaultEnvironment;
-//------------------------------------------------------------------------------
+
struct InterfaceEntry
{
sal_Int32 refCount;
@@ -93,7 +93,7 @@ struct ObjectEntry
inline sal_Int32 find( void * iface_ptr, ::std::size_t pos );
};
-//------------------------------------------------------------------------------
+
struct FctPtrHash :
public ::std::unary_function< const void *, ::std::size_t >
{
@@ -101,7 +101,7 @@ struct FctPtrHash :
{ return (::std::size_t) pKey; }
};
-//------------------------------------------------------------------------------
+
struct FctOUStringHash :
public ::std::unary_function< const OUString &, ::std::size_t >
{
@@ -163,7 +163,7 @@ struct uno_DefaultEnvironment : public uno_ExtEnvironment
~uno_DefaultEnvironment();
};
-//______________________________________________________________________________
+
inline ObjectEntry::ObjectEntry( OUString const & rOId_ )
: oid( rOId_ ),
nRef( 0 ),
@@ -172,7 +172,7 @@ inline ObjectEntry::ObjectEntry( OUString const & rOId_ )
aInterfaces.reserve( 2 );
}
-//______________________________________________________________________________
+
inline void ObjectEntry::append(
uno_DefaultEnvironment * pEnv,
void * pInterface, typelib_InterfaceTypeDescription * pTypeDescr,
@@ -198,7 +198,7 @@ inline void ObjectEntry::append(
aInterfaces.push_back( aNewEntry );
}
-//______________________________________________________________________________
+
inline InterfaceEntry * ObjectEntry::find(
typelib_InterfaceTypeDescription * pTypeDescr_ )
{
@@ -230,7 +230,7 @@ inline InterfaceEntry * ObjectEntry::find(
return 0;
}
-//______________________________________________________________________________
+
inline sal_Int32 ObjectEntry::find(
void * iface_ptr, ::std::size_t pos )
{
@@ -246,7 +246,7 @@ inline sal_Int32 ObjectEntry::find(
extern "C"
{
-//------------------------------------------------------------------------------
+
static void SAL_CALL defenv_registerInterface(
uno_ExtEnvironment * pEnv, void ** ppInterface,
rtl_uString * pOId, typelib_InterfaceTypeDescription * pTypeDescr )
@@ -293,7 +293,7 @@ static void SAL_CALL defenv_registerInterface(
}
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL defenv_registerProxyInterface(
uno_ExtEnvironment * pEnv, void ** ppInterface, uno_freeProxyFunc freeProxy,
rtl_uString * pOId, typelib_InterfaceTypeDescription * pTypeDescr )
@@ -351,7 +351,7 @@ static void SAL_CALL defenv_registerProxyInterface(
}
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL s_stub_defenv_revokeInterface(va_list * pParam)
{
uno_ExtEnvironment * pEnv = va_arg(*pParam, uno_ExtEnvironment *);
@@ -447,7 +447,7 @@ static void SAL_CALL defenv_revokeInterface(uno_ExtEnvironment * pEnv, void * pI
uno_Environment_invoke(&pEnv->aBase, s_stub_defenv_revokeInterface, pEnv, pInterface);
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL defenv_getObjectIdentifier(
uno_ExtEnvironment * pEnv, rtl_uString ** ppOId, void * pInterface )
{
@@ -477,7 +477,7 @@ static void SAL_CALL defenv_getObjectIdentifier(
}
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL defenv_getRegisteredInterface(
uno_ExtEnvironment * pEnv, void ** ppInterface,
rtl_uString * pOId, typelib_InterfaceTypeDescription * pTypeDescr )
@@ -507,7 +507,7 @@ static void SAL_CALL defenv_getRegisteredInterface(
}
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL defenv_getRegisteredInterfaces(
uno_ExtEnvironment * pEnv, void *** pppInterfaces, sal_Int32 * pnLen,
uno_memAlloc memAlloc )
@@ -533,7 +533,7 @@ static void SAL_CALL defenv_getRegisteredInterfaces(
*pnLen = nLen;
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL defenv_acquire( uno_Environment * pEnv )
{
uno_DefaultEnvironment * that = (uno_DefaultEnvironment *)pEnv;
@@ -541,7 +541,7 @@ static void SAL_CALL defenv_acquire( uno_Environment * pEnv )
osl_atomic_increment( &that->nRef );
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL defenv_release( uno_Environment * pEnv )
{
uno_DefaultEnvironment * that = (uno_DefaultEnvironment *)pEnv;
@@ -562,14 +562,14 @@ static void SAL_CALL defenv_release( uno_Environment * pEnv )
}
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL defenv_acquireWeak( uno_Environment * pEnv )
{
uno_DefaultEnvironment * that = (uno_DefaultEnvironment *)pEnv;
osl_atomic_increment( &that->nWeakRef );
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL defenv_releaseWeak( uno_Environment * pEnv )
{
uno_DefaultEnvironment * that = (uno_DefaultEnvironment *)pEnv;
@@ -579,7 +579,7 @@ static void SAL_CALL defenv_releaseWeak( uno_Environment * pEnv )
}
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL defenv_harden(
uno_Environment ** ppHardEnv, uno_Environment * pEnv )
{
@@ -607,13 +607,13 @@ static void SAL_CALL defenv_harden(
*ppHardEnv = pEnv;
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL defenv_dispose( SAL_UNUSED_PARAMETER uno_Environment * )
{
}
}
-//______________________________________________________________________________
+
uno_DefaultEnvironment::uno_DefaultEnvironment(
const OUString & rEnvDcp_, void * pContext_ )
: nRef( 0 ),
@@ -647,7 +647,7 @@ uno_DefaultEnvironment::uno_DefaultEnvironment(
}
-//______________________________________________________________________________
+
uno_DefaultEnvironment::~uno_DefaultEnvironment()
{
::rtl_uString_release( ((uno_Environment *) this)->pTypeName );
@@ -851,7 +851,7 @@ namespace
class theStaticOIdPart : public rtl::Static<makeOIdPart, theStaticOIdPart> {};
}
-//------------------------------------------------------------------------------
+
inline static const OUString & unoenv_getStaticOIdPart()
{
return theStaticOIdPart::get().getOIdPart();
@@ -860,7 +860,7 @@ inline static const OUString & unoenv_getStaticOIdPart()
extern "C"
{
-//------------------------------------------------------------------------------
+
static void SAL_CALL unoenv_computeObjectIdentifier(
uno_ExtEnvironment * pEnv, rtl_uString ** ppOId, void * pInterface )
{
@@ -912,7 +912,7 @@ static void SAL_CALL unoenv_releaseInterface(
}
}
-//______________________________________________________________________________
+
EnvironmentsData::~EnvironmentsData()
{
::osl::MutexGuard guard( mutex );
@@ -937,7 +937,7 @@ EnvironmentsData::~EnvironmentsData()
}
}
-//______________________________________________________________________________
+
inline void EnvironmentsData::getEnvironment(
uno_Environment ** ppEnv, const OUString & rEnvDcp, void * pContext )
{
@@ -961,7 +961,7 @@ inline void EnvironmentsData::getEnvironment(
}
}
-//______________________________________________________________________________
+
inline void EnvironmentsData::registerEnvironment( uno_Environment ** ppEnv )
{
OSL_ENSURE( ppEnv, "### null ptr!" );
@@ -1001,7 +1001,7 @@ inline void EnvironmentsData::registerEnvironment( uno_Environment ** ppEnv )
}
}
-//______________________________________________________________________________
+
inline void EnvironmentsData::getRegisteredEnvironments(
uno_Environment *** pppEnvs, sal_Int32 * pnLen, uno_memAlloc memAlloc,
const OUString & rEnvDcp )
@@ -1091,7 +1091,7 @@ static bool loadEnv(OUString const & cLibStem,
extern "C"
{
-//------------------------------------------------------------------------------
+
static uno_Environment * initDefaultEnvironment(
const OUString & rEnvDcp, void * pContext )
{
diff --git a/cppu/source/uno/lbmap.cxx b/cppu/source/uno/lbmap.cxx
index aa8cde9dde7c..ef8a0eec7bea 100644
--- a/cppu/source/uno/lbmap.cxx
+++ b/cppu/source/uno/lbmap.cxx
@@ -71,27 +71,27 @@ public:
inline bool SAL_CALL is() const SAL_THROW(())
{ return (_pMapping != 0); }
};
-//__________________________________________________________________________________________________
+
inline Mapping::Mapping( uno_Mapping * pMapping ) SAL_THROW(())
: _pMapping( pMapping )
{
if (_pMapping)
(*_pMapping->acquire)( _pMapping );
}
-//__________________________________________________________________________________________________
+
inline Mapping::Mapping( const Mapping & rMapping ) SAL_THROW(())
: _pMapping( rMapping._pMapping )
{
if (_pMapping)
(*_pMapping->acquire)( _pMapping );
}
-//__________________________________________________________________________________________________
+
inline Mapping::~Mapping() SAL_THROW(())
{
if (_pMapping)
(*_pMapping->release)( _pMapping );
}
-//__________________________________________________________________________________________________
+
inline Mapping & Mapping::operator = ( uno_Mapping * pMapping ) SAL_THROW(())
{
if (pMapping)
@@ -120,13 +120,13 @@ struct MappingEntry
, aMappingName( rMappingName_ )
{}
};
-//--------------------------------------------------------------------------------------------------
+
struct FctOUStringHash : public std::unary_function< const OUString &, size_t >
{
size_t operator()( const OUString & rKey ) const SAL_THROW(())
{ return (size_t)rKey.hashCode(); }
};
-//--------------------------------------------------------------------------------------------------
+
struct FctPtrHash : public std::unary_function< uno_Mapping *, size_t >
{
size_t operator()( uno_Mapping * pKey ) const SAL_THROW(())
@@ -154,7 +154,7 @@ struct MappingsData
Mutex aNegativeLibsMutex;
t_OUStringSet aNegativeLibs;
};
-//--------------------------------------------------------------------------------------------------
+
static MappingsData & getMappingsData() SAL_THROW(())
{
static MappingsData * s_p = 0;
@@ -195,13 +195,13 @@ struct uno_Mediate_Mapping : public uno_Mapping
};
extern "C"
{
-//--------------------------------------------------------------------------------------------------
+
static void SAL_CALL mediate_free( uno_Mapping * pMapping )
SAL_THROW(())
{
delete static_cast< uno_Mediate_Mapping * >( pMapping );
}
-//--------------------------------------------------------------------------------------------------
+
static void SAL_CALL mediate_acquire( uno_Mapping * pMapping )
SAL_THROW(())
{
@@ -215,7 +215,7 @@ static void SAL_CALL mediate_acquire( uno_Mapping * pMapping )
static_cast< uno_Mediate_Mapping * >( pMapping )->aAddPurpose.pData );
}
}
-//--------------------------------------------------------------------------------------------------
+
static void SAL_CALL mediate_release( uno_Mapping * pMapping )
SAL_THROW(())
{
@@ -225,7 +225,7 @@ static void SAL_CALL mediate_release( uno_Mapping * pMapping )
uno_revokeMapping( pMapping );
}
}
-//--------------------------------------------------------------------------------------------------
+
static void SAL_CALL mediate_mapInterface(
uno_Mapping * pMapping,
void ** ppOut, void * pInterface,
@@ -261,7 +261,7 @@ static void SAL_CALL mediate_mapInterface(
}
}
}
-//__________________________________________________________________________________________________
+
uno_Mediate_Mapping::uno_Mediate_Mapping(
const Environment & rFrom_, const Environment & rTo_,
const Mapping & rFrom2Uno_, const Mapping & rUno2To_,
@@ -487,7 +487,7 @@ static Mapping getDirectMapping(
return Mapping();
}
-//--------------------------------------------------------------------------------------------------
+
static inline Mapping createMediateMapping(
const Environment & rFrom, const Environment & rTo,
const Mapping & rFrom2Uno, const Mapping & rUno2To,
diff --git a/cppu/source/uno/sequence.cxx b/cppu/source/uno/sequence.cxx
index 03198c175353..007e5a801d8f 100644
--- a/cppu/source/uno/sequence.cxx
+++ b/cppu/source/uno/sequence.cxx
@@ -40,7 +40,7 @@ using namespace cppu;
namespace cppu
{
-//------------------------------------------------------------------------------
+
static inline uno_Sequence * reallocSeq(
uno_Sequence * pReallocate, sal_Size nElementSize, sal_Int32 nElements )
{
@@ -67,7 +67,7 @@ static inline uno_Sequence * reallocSeq(
return pNew;
}
-//------------------------------------------------------------------------------
+
static inline bool idefaultConstructElements(
uno_Sequence ** ppSeq,
typelib_TypeDescriptionReference * pElementType,
@@ -309,7 +309,7 @@ static inline bool idefaultConstructElements(
}
}
-//------------------------------------------------------------------------------
+
static inline bool icopyConstructFromElements(
uno_Sequence ** ppSeq, void * pSourceElements,
typelib_TypeDescriptionReference * pElementType,
@@ -587,7 +587,7 @@ static inline bool icopyConstructFromElements(
}
}
-//------------------------------------------------------------------------------
+
static inline bool ireallocSequence(
uno_Sequence ** ppSequence,
typelib_TypeDescriptionReference * pElementType,
diff --git a/cppuhelper/source/access_control.cxx b/cppuhelper/source/access_control.cxx
index 1df5d2d21c30..fcac34619aae 100644
--- a/cppuhelper/source/access_control.cxx
+++ b/cppuhelper/source/access_control.cxx
@@ -41,7 +41,7 @@ namespace
namespace cppu
{
-//__________________________________________________________________________________________________
+
AccessControl::AccessControl( Reference< XComponentContext > const & xContext )
SAL_THROW( (RuntimeException) )
{
@@ -51,7 +51,7 @@ AccessControl::AccessControl( Reference< XComponentContext > const & xContext )
"no access controller!", Reference< XInterface >() );
}
}
-//__________________________________________________________________________________________________
+
AccessControl::AccessControl(
Reference< security::XAccessController > const & xController )
SAL_THROW( (RuntimeException) )
@@ -63,7 +63,7 @@ AccessControl::AccessControl(
"no access controller!", Reference< XInterface >() );
}
}
-//__________________________________________________________________________________________________
+
AccessControl::AccessControl( AccessControl const & ac )
SAL_THROW( (RuntimeException) )
: m_xController( ac.m_xController )
@@ -88,7 +88,7 @@ AccessControl::AccessControl( AccessControl const & ac )
#pragma pack(pop)
#endif
-//--------------------------------------------------------------------------------------------------
+
inline void __checkPermission(
Reference< security::XAccessController > const & xController,
Type const & type, rtl_uString * str1, rtl_uString * str2 )
@@ -104,7 +104,7 @@ inline void __checkPermission(
xController->checkPermission( * static_cast< Any * >( &a ) );
}
-//__________________________________________________________________________________________________
+
void AccessControl::checkRuntimePermission(
OUString const & name )
SAL_THROW( (RuntimeException) )
@@ -113,7 +113,7 @@ void AccessControl::checkRuntimePermission(
m_xController,
::getCppuType( (security::RuntimePermission *)0 ), name.pData, 0 );
}
-//__________________________________________________________________________________________________
+
void AccessControl::checkFilePermission(
OUString const & url,
OUString const & actions )
@@ -123,7 +123,7 @@ void AccessControl::checkFilePermission(
m_xController,
::getCppuType( (io::FilePermission *)0 ), url.pData, actions.pData );
}
-//__________________________________________________________________________________________________
+
void AccessControl::checkSocketPermission(
OUString const & host,
OUString const & actions )
diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx
index f19e243a92d8..b1983ee34fe8 100644
--- a/cppuhelper/source/component_context.cxx
+++ b/cppuhelper/source/component_context.cxx
@@ -70,7 +70,7 @@ namespace cppu
{
#ifdef CONTEXT_DIAG
-//--------------------------------------------------------------------------------------------------
+
static OUString val2str( void const * pVal, typelib_TypeDescriptionReference * pTypeRef )
{
OSL_ASSERT( pVal );
@@ -255,7 +255,7 @@ static OUString val2str( void const * pVal, typelib_TypeDescriptionReference * p
return buf.makeStringAndClear();
}
-//--------------------------------------------------------------------------------------------------
+
static void dumpEntry( OUString const & key, Any const & value )
{
OUString val( val2str( value.getValue(), value.getValueTypeRef() ) );
@@ -264,7 +264,7 @@ static void dumpEntry( OUString const & key, Any const & value )
::fprintf( stderr, "| %s = %s\n", key_str.getStr(), val_str.getStr() );
}
#endif
-//--------------------------------------------------------------------------------------------------
+
static inline void try_dispose( Reference< XInterface > const & xInstance )
SAL_THROW( (RuntimeException) )
{
@@ -274,7 +274,7 @@ static inline void try_dispose( Reference< XInterface > const & xInstance )
xComp->dispose();
}
}
-//--------------------------------------------------------------------------------------------------
+
static inline void try_dispose( Reference< lang::XComponent > const & xComp )
SAL_THROW( (RuntimeException) )
{
@@ -305,7 +305,7 @@ public:
virtual void SAL_CALL disposing( lang::EventObject const & rSource )
throw (RuntimeException);
};
-//__________________________________________________________________________________________________
+
inline void DisposingForwarder::listen(
Reference< lang::XComponent > const & xSource,
Reference< lang::XComponent > const & xTarget )
@@ -316,7 +316,7 @@ inline void DisposingForwarder::listen(
xSource->addEventListener( new DisposingForwarder( xTarget ) );
}
}
-//__________________________________________________________________________________________________
+
void DisposingForwarder::disposing( lang::EventObject const & )
throw (RuntimeException)
{
@@ -400,7 +400,7 @@ public:
};
// XNameContainer
-//______________________________________________________________________________
+
void ComponentContext::insertByName(
OUString const & name, Any const & element )
throw (lang::IllegalArgumentException, container::ElementExistException,
@@ -421,7 +421,7 @@ void ComponentContext::insertByName(
static_cast<OWeakObject *>(this) );
}
-//______________________________________________________________________________
+
void ComponentContext::removeByName( OUString const & name )
throw (container::NoSuchElementException,
lang::WrappedTargetException, RuntimeException)
@@ -438,7 +438,7 @@ void ComponentContext::removeByName( OUString const & name )
}
// XNameReplace
-//______________________________________________________________________________
+
void ComponentContext::replaceByName(
OUString const & name, Any const & element )
throw (lang::IllegalArgumentException,container::NoSuchElementException,
@@ -464,7 +464,7 @@ void ComponentContext::replaceByName(
}
// XNameAccess
-//______________________________________________________________________________
+
Any ComponentContext::getByName( OUString const & name )
throw (container::NoSuchElementException,
lang::WrappedTargetException, RuntimeException)
@@ -472,7 +472,7 @@ Any ComponentContext::getByName( OUString const & name )
return getValueByName( name );
}
-//______________________________________________________________________________
+
Sequence<OUString> ComponentContext::getElementNames()
throw (RuntimeException)
{
@@ -487,7 +487,7 @@ Sequence<OUString> ComponentContext::getElementNames()
return ret;
}
-//______________________________________________________________________________
+
sal_Bool ComponentContext::hasByName( OUString const & name )
throw (RuntimeException)
{
@@ -496,20 +496,20 @@ sal_Bool ComponentContext::hasByName( OUString const & name )
}
// XElementAccess
-//______________________________________________________________________________
+
Type ComponentContext::getElementType() throw (RuntimeException)
{
return ::getVoidCppuType();
}
-//______________________________________________________________________________
+
sal_Bool ComponentContext::hasElements() throw (RuntimeException)
{
MutexGuard guard( m_mutex );
return ! m_map.empty();
}
-//__________________________________________________________________________________________________
+
Any ComponentContext::lookupMap( OUString const & rName )
SAL_THROW( (RuntimeException) )
{
@@ -629,7 +629,7 @@ Any ComponentContext::lookupMap( OUString const & rName )
return ret;
}
-//__________________________________________________________________________________________________
+
Any ComponentContext::getValueByName( OUString const & rName )
throw (RuntimeException)
{
@@ -649,7 +649,7 @@ Any ComponentContext::getValueByName( OUString const & rName )
}
return ret;
}
-//__________________________________________________________________________________________________
+
Reference< lang::XMultiComponentFactory > ComponentContext::getServiceManager()
throw (RuntimeException)
{
@@ -661,7 +661,7 @@ Reference< lang::XMultiComponentFactory > ComponentContext::getServiceManager()
}
return m_xSMgr;
}
-//__________________________________________________________________________________________________
+
ComponentContext::~ComponentContext()
SAL_THROW(())
{
@@ -674,7 +674,7 @@ ComponentContext::~ComponentContext()
delete iPos->second;
m_map.clear();
}
-//__________________________________________________________________________________________________
+
void ComponentContext::disposing()
{
#ifdef CONTEXT_DIAG
@@ -739,7 +739,7 @@ void ComponentContext::disposing()
delete iPos->second;
m_map.clear();
}
-//__________________________________________________________________________________________________
+
ComponentContext::ComponentContext(
ContextEntry_Init const * pEntries, sal_Int32 nEntries,
Reference< XComponentContext > const & xDelegate )
diff --git a/cppuhelper/source/exc_thrower.cxx b/cppuhelper/source/exc_thrower.cxx
index 70a227410cf5..0e18f5d070d0 100644
--- a/cppuhelper/source/exc_thrower.cxx
+++ b/cppuhelper/source/exc_thrower.cxx
@@ -67,12 +67,12 @@ struct ExceptionThrower : public uno_Interface, XExceptionThrower
extern "C"
{
-//------------------------------------------------------------------------------
+
static void SAL_CALL ExceptionThrower_acquire_release_nop(
SAL_UNUSED_PARAMETER uno_Interface * )
{}
-//------------------------------------------------------------------------------
+
static void SAL_CALL ExceptionThrower_dispatch(
uno_Interface * pUnoI, typelib_TypeDescription const * pMemberType,
void * pReturn, void * pArgs [], uno_Any ** ppException )
@@ -131,7 +131,7 @@ static void SAL_CALL ExceptionThrower_dispatch(
} // extern "C"
-//______________________________________________________________________________
+
Any ExceptionThrower::queryInterface( Type const & type )
throw (RuntimeException)
{
@@ -145,29 +145,29 @@ Any ExceptionThrower::queryInterface( Type const & type )
return Any();
}
-//______________________________________________________________________________
+
void ExceptionThrower::acquire() throw ()
{
}
-//______________________________________________________________________________
+
void ExceptionThrower::release() throw ()
{
}
-//______________________________________________________________________________
+
void ExceptionThrower::throwException( Any const & exc ) throw (Exception)
{
OSL_FAIL( "unexpected!" );
throwException( exc );
}
-//______________________________________________________________________________
+
void ExceptionThrower::rethrowException() throw (Exception)
{
throw;
}
-//______________________________________________________________________________
+
inline ExceptionThrower::ExceptionThrower()
{
uno_Interface::acquire = ExceptionThrower_acquire_release_nop;
diff --git a/cppuhelper/source/factory.cxx b/cppuhelper/source/factory.cxx
index 85a231880a2b..b2d18af32aaa 100644
--- a/cppuhelper/source/factory.cxx
+++ b/cppuhelper/source/factory.cxx
@@ -140,7 +140,7 @@ OSingleFactoryHelper::~OSingleFactoryHelper()
}
-//-----------------------------------------------------------------------------
+
Any OSingleFactoryHelper::queryInterface( const Type & rType )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -195,14 +195,14 @@ Reference<XInterface > OSingleFactoryHelper::createInstanceWithArguments(
}
// XSingleComponentFactory
-//__________________________________________________________________________________________________
+
Reference< XInterface > OSingleFactoryHelper::createInstanceWithContext(
Reference< XComponentContext > const & xContext )
throw (Exception, RuntimeException)
{
return createInstanceEveryTime( xContext );
}
-//__________________________________________________________________________________________________
+
Reference< XInterface > OSingleFactoryHelper::createInstanceWithArgumentsAndContext(
Sequence< Any > const & rArguments,
Reference< XComponentContext > const & xContext )
@@ -413,7 +413,7 @@ Reference<XInterface > OFactoryComponentHelper::createInstanceWithArguments(
}
// XSingleComponentFactory
-//__________________________________________________________________________________________________
+
Reference< XInterface > OFactoryComponentHelper::createInstanceWithContext(
Reference< XComponentContext > const & xContext )
throw (Exception, RuntimeException)
@@ -431,7 +431,7 @@ Reference< XInterface > OFactoryComponentHelper::createInstanceWithContext(
}
return OSingleFactoryHelper::createInstanceWithContext( xContext );
}
-//__________________________________________________________________________________________________
+
Reference< XInterface > OFactoryComponentHelper::createInstanceWithArgumentsAndContext(
Sequence< Any > const & rArguments,
Reference< XComponentContext > const & xContext )
@@ -564,7 +564,7 @@ protected:
};
// XInterface
-//______________________________________________________________________________
+
Any SAL_CALL ORegistryFactoryHelper::queryInterface(
Type const & type ) throw (RuntimeException)
{
@@ -575,20 +575,20 @@ Any SAL_CALL ORegistryFactoryHelper::queryInterface(
return OPropertySetHelper::queryInterface( type );
}
-//______________________________________________________________________________
+
void ORegistryFactoryHelper::acquire() throw ()
{
OFactoryComponentHelper::acquire();
}
-//______________________________________________________________________________
+
void ORegistryFactoryHelper::release() throw ()
{
OFactoryComponentHelper::release();
}
// XTypeProvider
-//______________________________________________________________________________
+
Sequence< Type > ORegistryFactoryHelper::getTypes() throw (RuntimeException)
{
Sequence< Type > types( OFactoryComponentHelper::getTypes() );
@@ -605,7 +605,7 @@ Sequence< Type > ORegistryFactoryHelper::getTypes() throw (RuntimeException)
}
// XPropertySet
-//______________________________________________________________________________
+
Reference< beans::XPropertySetInfo >
ORegistryFactoryHelper::getPropertySetInfo() throw (RuntimeException)
{
@@ -616,7 +616,7 @@ ORegistryFactoryHelper::getPropertySetInfo() throw (RuntimeException)
}
// OPropertySetHelper
-//______________________________________________________________________________
+
IPropertyArrayHelper & ORegistryFactoryHelper::getInfoHelper()
{
::osl::MutexGuard guard( aMutex );
@@ -634,7 +634,7 @@ IPropertyArrayHelper & ORegistryFactoryHelper::getInfoHelper()
return *m_property_array_helper.get();
}
-//______________________________________________________________________________
+
sal_Bool ORegistryFactoryHelper::convertFastPropertyValue(
Any &, Any &, sal_Int32, Any const & )
throw (lang::IllegalArgumentException)
@@ -643,7 +643,7 @@ sal_Bool ORegistryFactoryHelper::convertFastPropertyValue(
return false;
}
-//______________________________________________________________________________
+
void ORegistryFactoryHelper::setFastPropertyValue_NoBroadcast(
sal_Int32, Any const & )
throw (Exception)
@@ -653,7 +653,7 @@ void ORegistryFactoryHelper::setFastPropertyValue_NoBroadcast(
static_cast< OWeakObject * >(this) );
}
-//______________________________________________________________________________
+
void ORegistryFactoryHelper::getFastPropertyValue(
Any & rValue, sal_Int32 nHandle ) const
{
diff --git a/cppuhelper/source/implbase.cxx b/cppuhelper/source/implbase.cxx
index 983622ca5bfd..ecf7f9a36b15 100644
--- a/cppuhelper/source/implbase.cxx
+++ b/cppuhelper/source/implbase.cxx
@@ -48,7 +48,7 @@ Mutex & SAL_CALL getImplHelperInitMutex(void) SAL_THROW(())
}
// ClassDataBase
-//__________________________________________________________________________________________________
+
ClassDataBase::ClassDataBase() SAL_THROW(())
: bOffsetsInit( sal_False )
, nType2Offset( 0 )
@@ -57,7 +57,7 @@ ClassDataBase::ClassDataBase() SAL_THROW(())
, pId( 0 )
{
}
-//__________________________________________________________________________________________________
+
ClassDataBase::ClassDataBase( sal_Int32 nClassCode_ ) SAL_THROW(())
: bOffsetsInit( sal_False )
, nType2Offset( 0 )
@@ -66,7 +66,7 @@ ClassDataBase::ClassDataBase( sal_Int32 nClassCode_ ) SAL_THROW(())
, pId( 0 )
{
}
-//__________________________________________________________________________________________________
+
ClassDataBase::~ClassDataBase() SAL_THROW(())
{
delete pTypes;
@@ -80,7 +80,7 @@ ClassDataBase::~ClassDataBase() SAL_THROW(())
}
// ClassData
-//__________________________________________________________________________________________________
+
void ClassData::writeTypeOffset( const Type & rType, sal_Int32 nOffset ) SAL_THROW(())
{
arType2Offset[nType2Offset].nOffset = nOffset;
@@ -100,7 +100,7 @@ void ClassData::writeTypeOffset( const Type & rType, sal_Int32 nOffset ) SAL_THR
}
#endif
}
-//__________________________________________________________________________________________________
+
void ClassData::initTypeProvider() SAL_THROW(())
{
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
@@ -141,14 +141,14 @@ void ClassData::initTypeProvider() SAL_THROW(())
pTypes = types;
}
}
-//__________________________________________________________________________________________________
+
Sequence< Type > ClassData::getTypes() SAL_THROW(())
{
if (! pTypes)
initTypeProvider();
return *pTypes;
}
-//__________________________________________________________________________________________________
+
Sequence< sal_Int8 > ClassData::getImplementationId() SAL_THROW(())
{
if (! pTypes)
@@ -156,7 +156,7 @@ Sequence< sal_Int8 > ClassData::getImplementationId() SAL_THROW(())
return *pId;
}
-//--------------------------------------------------------------------------------------------------
+
static inline bool td_equals(
typelib_TypeDescription * pTD, typelib_TypeDescriptionReference * pType )
SAL_THROW(())
@@ -165,7 +165,7 @@ static inline bool td_equals(
(pTD->pTypeName->length == pType->pTypeName->length &&
rtl_ustr_compare( pTD->pTypeName->buffer, pType->pTypeName->buffer ) == 0));
}
-//__________________________________________________________________________________________________
+
Any ClassData::query( const Type & rType, lang::XTypeProvider * pBase ) SAL_THROW(())
{
if (rType == ::getCppuType( (const Reference< XInterface > *)0 ))
@@ -196,22 +196,22 @@ Any ClassData::query( const Type & rType, lang::XTypeProvider * pBase ) SAL_THRO
//##################################################################################################
// WeakComponentImplHelperBase
-//__________________________________________________________________________________________________
+
WeakComponentImplHelperBase::WeakComponentImplHelperBase( Mutex & rMutex )
SAL_THROW(())
: rBHelper( rMutex )
{
}
-//__________________________________________________________________________________________________
+
WeakComponentImplHelperBase::~WeakComponentImplHelperBase()
SAL_THROW(())
{
}
-//__________________________________________________________________________________________________
+
void WeakComponentImplHelperBase::disposing()
{
}
-//__________________________________________________________________________________________________
+
Any WeakComponentImplHelperBase::queryInterface( Type const & rType )
throw (RuntimeException)
{
@@ -222,13 +222,13 @@ Any WeakComponentImplHelperBase::queryInterface( Type const & rType )
}
return OWeakObject::queryInterface( rType );
}
-//__________________________________________________________________________________________________
+
void WeakComponentImplHelperBase::acquire()
throw ()
{
OWeakObject::acquire();
}
-//__________________________________________________________________________________________________
+
void WeakComponentImplHelperBase::release()
throw ()
{
@@ -252,7 +252,7 @@ void WeakComponentImplHelperBase::release()
OWeakObject::release();
}
}
-//__________________________________________________________________________________________________
+
void WeakComponentImplHelperBase::dispose()
throw (RuntimeException)
{
@@ -296,7 +296,7 @@ void WeakComponentImplHelperBase::dispose()
}
}
}
-//__________________________________________________________________________________________________
+
void WeakComponentImplHelperBase::addEventListener(
Reference< lang::XEventListener > const & xListener )
throw (RuntimeException)
@@ -313,7 +313,7 @@ void WeakComponentImplHelperBase::addEventListener(
rBHelper.addListener( ::getCppuType( &xListener ), xListener );
}
}
-//__________________________________________________________________________________________________
+
void WeakComponentImplHelperBase::removeEventListener(
Reference< lang::XEventListener > const & xListener )
throw (RuntimeException)
@@ -322,28 +322,28 @@ void WeakComponentImplHelperBase::removeEventListener(
}
// WeakAggComponentImplHelperBase
-//__________________________________________________________________________________________________
+
WeakAggComponentImplHelperBase::WeakAggComponentImplHelperBase( Mutex & rMutex )
SAL_THROW(())
: rBHelper( rMutex )
{
}
-//__________________________________________________________________________________________________
+
WeakAggComponentImplHelperBase::~WeakAggComponentImplHelperBase()
SAL_THROW(())
{
}
-//__________________________________________________________________________________________________
+
void WeakAggComponentImplHelperBase::disposing()
{
}
-//__________________________________________________________________________________________________
+
Any WeakAggComponentImplHelperBase::queryInterface( Type const & rType )
throw (RuntimeException)
{
return OWeakAggObject::queryInterface( rType );
}
-//__________________________________________________________________________________________________
+
Any WeakAggComponentImplHelperBase::queryAggregation( Type const & rType )
throw (RuntimeException)
{
@@ -354,13 +354,13 @@ Any WeakAggComponentImplHelperBase::queryAggregation( Type const & rType )
}
return OWeakAggObject::queryAggregation( rType );
}
-//__________________________________________________________________________________________________
+
void WeakAggComponentImplHelperBase::acquire()
throw ()
{
OWeakAggObject::acquire();
}
-//__________________________________________________________________________________________________
+
void WeakAggComponentImplHelperBase::release()
throw ()
{
@@ -388,7 +388,7 @@ void WeakAggComponentImplHelperBase::release()
OWeakAggObject::release();
}
}
-//__________________________________________________________________________________________________
+
void WeakAggComponentImplHelperBase::dispose()
throw (RuntimeException)
{
@@ -432,7 +432,7 @@ void WeakAggComponentImplHelperBase::dispose()
}
}
}
-//__________________________________________________________________________________________________
+
void WeakAggComponentImplHelperBase::addEventListener(
Reference< lang::XEventListener > const & xListener )
throw (RuntimeException)
@@ -449,7 +449,7 @@ void WeakAggComponentImplHelperBase::addEventListener(
rBHelper.addListener( ::getCppuType( &xListener ), xListener );
}
}
-//__________________________________________________________________________________________________
+
void WeakAggComponentImplHelperBase::removeEventListener(
Reference< lang::XEventListener > const & xListener )
throw (RuntimeException)
diff --git a/cppuhelper/source/implbase_ex.cxx b/cppuhelper/source/implbase_ex.cxx
index c2a87fb72fb3..e7a01ad1a680 100644
--- a/cppuhelper/source/implbase_ex.cxx
+++ b/cppuhelper/source/implbase_ex.cxx
@@ -45,7 +45,7 @@ namespace cppu
*/
::osl::Mutex & SAL_CALL getImplHelperInitMutex(void) SAL_THROW(());
-//--------------------------------------------------------------------------------------------------
+
static inline void checkInterface( Type const & rType )
SAL_THROW( (RuntimeException) )
{
@@ -56,17 +56,17 @@ static inline void checkInterface( Type const & rType )
throw RuntimeException( msg, Reference< XInterface >() );
}
}
-//--------------------------------------------------------------------------------------------------
+
static inline bool isXInterface( rtl_uString * pStr ) SAL_THROW(())
{
return (*((OUString const *)&pStr) == "com.sun.star.uno.XInterface");
}
-//--------------------------------------------------------------------------------------------------
+
static inline void * makeInterface( sal_IntPtr nOffset, void * that ) SAL_THROW(())
{
return (((char *)that) + nOffset);
}
-//--------------------------------------------------------------------------------------------------
+
static inline bool __td_equals(
typelib_TypeDescriptionReference const * pTDR1,
typelib_TypeDescriptionReference const * pTDR2 )
@@ -75,7 +75,7 @@ static inline bool __td_equals(
return ((pTDR1 == pTDR2) ||
((OUString const *)&pTDR1->pTypeName)->equals( *(OUString const *)&pTDR2->pTypeName ));
}
-//--------------------------------------------------------------------------------------------------
+
static inline type_entry * __getTypeEntries( class_data * cd )
SAL_THROW( (RuntimeException) )
{
@@ -106,7 +106,7 @@ static inline type_entry * __getTypeEntries( class_data * cd )
}
return pEntries;
}
-//--------------------------------------------------------------------------------------------------
+
static inline void __fillTypes( Type * types, class_data * cd )
SAL_THROW( (RuntimeException) )
{
@@ -116,7 +116,7 @@ static inline void __fillTypes( Type * types, class_data * cd )
types[ n ] = pEntries[ n ].m_type.typeRef;
}
}
-//--------------------------------------------------------------------------------------------------
+
namespace {
bool recursivelyFindType(
diff --git a/cppuhelper/source/macro_expander.cxx b/cppuhelper/source/macro_expander.cxx
index 45742962fb0a..f290fb71982e 100644
--- a/cppuhelper/source/macro_expander.cxx
+++ b/cppuhelper/source/macro_expander.cxx
@@ -144,27 +144,27 @@ public:
throw (RuntimeException);
};
-//__________________________________________________________________________________________________
+
void Bootstrap_MacroExpander::disposing()
{}
-//__________________________________________________________________________________________________
+
Bootstrap_MacroExpander::~Bootstrap_MacroExpander() SAL_THROW(())
{}
// XServiceInfo impl
-//__________________________________________________________________________________________________
+
OUString Bootstrap_MacroExpander::getImplementationName()
throw (RuntimeException)
{
return s_impl_name();
}
-//__________________________________________________________________________________________________
+
sal_Bool Bootstrap_MacroExpander::supportsService( OUString const & serviceName )
throw (RuntimeException)
{
return cppu::supportsService(this, serviceName);
}
-//__________________________________________________________________________________________________
+
Sequence< OUString > Bootstrap_MacroExpander::getSupportedServiceNames()
throw (RuntimeException)
{
@@ -172,7 +172,7 @@ Sequence< OUString > Bootstrap_MacroExpander::getSupportedServiceNames()
}
// XMacroExpander impl
-//__________________________________________________________________________________________________
+
OUString Bootstrap_MacroExpander::expandMacros( OUString const & exp )
throw (lang::IllegalArgumentException)
{
diff --git a/cppuhelper/source/propshlp.cxx b/cppuhelper/source/propshlp.cxx
index 8953767cc7af..d276a9b5eb9c 100644
--- a/cppuhelper/source/propshlp.cxx
+++ b/cppuhelper/source/propshlp.cxx
@@ -588,7 +588,7 @@ Any OPropertySetHelper::getFastPropertyValue( sal_Int32 nHandle )
return aRet;
}
-//--------------------------------------------------------------------------
+
void OPropertySetHelper::impl_fireAll( sal_Int32* i_handles, const Any* i_newValues, const Any* i_oldValues, sal_Int32 i_count )
{
ClearableMutexGuard aGuard( rBHelper.rMutex );
@@ -624,7 +624,7 @@ void OPropertySetHelper::impl_fireAll( sal_Int32* i_handles, const Any* i_newVal
fire( &allHandles[0], &allNewValues[0], &allOldValues[0], additionalEvents + i_count, sal_False );
}
-//--------------------------------------------------------------------------
+
void OPropertySetHelper::fire
(
sal_Int32 * pnHandles,
diff --git a/cppuhelper/source/tdmgr.cxx b/cppuhelper/source/tdmgr.cxx
index 8e614d2ce39c..582e3f5699dc 100644
--- a/cppuhelper/source/tdmgr.cxx
+++ b/cppuhelper/source/tdmgr.cxx
@@ -628,7 +628,7 @@ public:
virtual void SAL_CALL disposing( lang::EventObject const & rEvt )
throw (RuntimeException);
};
-//__________________________________________________________________________________________________
+
void EventListenerImpl::disposing( lang::EventObject const & rEvt )
throw (RuntimeException)
{
diff --git a/cppuhelper/source/typeprovider.cxx b/cppuhelper/source/typeprovider.cxx
index ad8586f5eda8..29dd5a233948 100644
--- a/cppuhelper/source/typeprovider.cxx
+++ b/cppuhelper/source/typeprovider.cxx
@@ -27,12 +27,12 @@ using namespace com::sun::star::uno;
namespace cppu
{
-//__________________________________________________________________________________________________
+
OImplementationId::~OImplementationId() SAL_THROW(())
{
delete _pSeq;
}
-//__________________________________________________________________________________________________
+
Sequence< sal_Int8 > OImplementationId::getImplementationId() const SAL_THROW(())
{
if (! _pSeq)
@@ -48,7 +48,7 @@ Sequence< sal_Int8 > OImplementationId::getImplementationId() const SAL_THROW(()
return *_pSeq;
}
-//--------------------------------------------------------------------------------------------------
+
static inline void copy( Sequence< Type > & rDest, const Sequence< Type > & rSource, sal_Int32 nOffset )
SAL_THROW(())
{
@@ -59,7 +59,7 @@ static inline void copy( Sequence< Type > & rDest, const Sequence< Type > & rSou
pDest[nOffset+ nPos] = pSource[nPos];
}
-//__________________________________________________________________________________________________
+
OTypeCollection::OTypeCollection(
const Type & rType1,
const Sequence< Type > & rAddTypes )
@@ -69,7 +69,7 @@ OTypeCollection::OTypeCollection(
_aTypes[0] = rType1;
copy( _aTypes, rAddTypes, 1 );
}
-//__________________________________________________________________________________________________
+
OTypeCollection::OTypeCollection(
const Type & rType1,
const Type & rType2,
@@ -81,7 +81,7 @@ OTypeCollection::OTypeCollection(
_aTypes[1] = rType2;
copy( _aTypes, rAddTypes, 2 );
}
-//__________________________________________________________________________________________________
+
OTypeCollection::OTypeCollection(
const Type & rType1,
const Type & rType2,
@@ -95,7 +95,7 @@ OTypeCollection::OTypeCollection(
_aTypes[2] = rType3;
copy( _aTypes, rAddTypes, 3 );
}
-//__________________________________________________________________________________________________
+
OTypeCollection::OTypeCollection(
const Type & rType1,
const Type & rType2,
@@ -111,7 +111,7 @@ OTypeCollection::OTypeCollection(
_aTypes[3] = rType4;
copy( _aTypes, rAddTypes, 4 );
}
-//__________________________________________________________________________________________________
+
OTypeCollection::OTypeCollection(
const Type & rType1,
const Type & rType2,
@@ -129,7 +129,7 @@ OTypeCollection::OTypeCollection(
_aTypes[4] = rType5;
copy( _aTypes, rAddTypes, 5 );
}
-//__________________________________________________________________________________________________
+
OTypeCollection::OTypeCollection(
const Type & rType1,
const Type & rType2,
@@ -149,7 +149,7 @@ OTypeCollection::OTypeCollection(
_aTypes[5] = rType6;
copy( _aTypes, rAddTypes, 6 );
}
-//__________________________________________________________________________________________________
+
OTypeCollection::OTypeCollection(
const Type & rType1,
const Type & rType2,
@@ -171,7 +171,7 @@ OTypeCollection::OTypeCollection(
_aTypes[6] = rType7;
copy( _aTypes, rAddTypes, 7 );
}
-//__________________________________________________________________________________________________
+
OTypeCollection::OTypeCollection(
const Type & rType1,
const Type & rType2,
@@ -195,7 +195,7 @@ OTypeCollection::OTypeCollection(
_aTypes[7] = rType8;
copy( _aTypes, rAddTypes, 8 );
}
-//__________________________________________________________________________________________________
+
OTypeCollection::OTypeCollection(
const Type & rType1,
const Type & rType2,
@@ -221,7 +221,7 @@ OTypeCollection::OTypeCollection(
_aTypes[8] = rType9;
copy( _aTypes, rAddTypes, 9 );
}
-//__________________________________________________________________________________________________
+
OTypeCollection::OTypeCollection(
const Type & rType1,
const Type & rType2,
@@ -249,7 +249,7 @@ OTypeCollection::OTypeCollection(
_aTypes[9] = rType10;
copy( _aTypes, rAddTypes, 10 );
}
-//__________________________________________________________________________________________________
+
OTypeCollection::OTypeCollection(
const Type & rType1,
const Type & rType2,
@@ -279,7 +279,7 @@ OTypeCollection::OTypeCollection(
_aTypes[10] = rType11;
copy( _aTypes, rAddTypes, 11 );
}
-//__________________________________________________________________________________________________
+
OTypeCollection::OTypeCollection(
const Type & rType1,
const Type & rType2,
diff --git a/cppuhelper/source/weak.cxx b/cppuhelper/source/weak.cxx
index 1429f64c81ba..857f64d50a4b 100644
--- a/cppuhelper/source/weak.cxx
+++ b/cppuhelper/source/weak.cxx
@@ -38,9 +38,9 @@ inline static Mutex & getWeakMutex() SAL_THROW(())
return *s_pMutex;
}
-//------------------------------------------------------------------------
+
//-- OWeakConnectionPoint ----------------------------------------------------
-//------------------------------------------------------------------------
+
class OWeakConnectionPoint : public XAdapter
{
public:
@@ -166,9 +166,9 @@ void SAL_CALL OWeakConnectionPoint::removeReference(const Reference< XReference
}
-//------------------------------------------------------------------------
+
//-- OWeakObject -------------------------------------------------------
-//------------------------------------------------------------------------
+
#ifdef _MSC_VER
// Accidentally occurs in msvc mapfile = > had to be outlined.
@@ -247,9 +247,9 @@ Reference< XAdapter > SAL_CALL OWeakObject::queryAdapter()
return m_pWeakConnectionPoint;
}
-//------------------------------------------------------------------------
+
//-- OWeakAggObject ----------------------------------------------------
-//------------------------------------------------------------------------
+
OWeakAggObject::~OWeakAggObject() SAL_THROW( (RuntimeException) )
{
}
@@ -313,9 +313,9 @@ namespace uno
{
-//------------------------------------------------------------------------
+
//-- OWeakRefListener -----------------------------------------------------
-//------------------------------------------------------------------------
+
class OWeakRefListener : public XReference
{
public:
@@ -428,9 +428,9 @@ void SAL_CALL OWeakRefListener::dispose()
xAdp->removeReference((XReference*)this);
}
-//------------------------------------------------------------------------
+
//-- WeakReferenceHelper ----------------------------------------------------------
-//------------------------------------------------------------------------
+
WeakReferenceHelper::WeakReferenceHelper(const Reference< XInterface >& xInt) SAL_THROW(())
: m_pImpl( 0 )
{
diff --git a/cppuhelper/test/cfg_test.cxx b/cppuhelper/test/cfg_test.cxx
index c031fb7cbefa..b3eec0af67d3 100644
--- a/cppuhelper/test/cfg_test.cxx
+++ b/cppuhelper/test/cfg_test.cxx
@@ -50,24 +50,24 @@ using namespace ::com::sun::star::uno;
namespace cfg_test
{
-//--------------------------------------------------------------------------------------------------
+
static Sequence< OUString > impl0_getSupportedServiceNames()
{
OUString str("com.sun.star.bootstrap.TestComponent0");
return Sequence< OUString >( &str, 1 );
}
-//--------------------------------------------------------------------------------------------------
+
static OUString impl0_getImplementationName()
{
return OUString("com.sun.star.comp.bootstrap.TestComponent0");
}
-//--------------------------------------------------------------------------------------------------
+
static Sequence< OUString > impl1_getSupportedServiceNames()
{
OUString str("com.sun.star.bootstrap.TestComponent1");
return Sequence< OUString >( &str, 1 );
}
-//--------------------------------------------------------------------------------------------------
+
static OUString impl1_getImplementationName()
{
return OUString("com.sun.star.comp.bootstrap.TestComponent1");
@@ -90,7 +90,7 @@ public:
virtual OUString SAL_CALL getImplementationName() throw (RuntimeException);
virtual sal_Bool SAL_CALL supportsService( const OUString & rServiceName ) throw (RuntimeException);
};
-//__________________________________________________________________________________________________
+
ServiceImpl0::ServiceImpl0( Reference< XComponentContext > const & xContext ) SAL_THROW(())
: m_xContext( xContext )
{
@@ -113,7 +113,7 @@ ServiceImpl0::ServiceImpl0( Reference< XComponentContext > const & xContext ) SA
OSL_VERIFY( val == "value of implprop1" );
}
// XInitialization
-//__________________________________________________________________________________________________
+
void ServiceImpl0::initialize( const Sequence< Any >& rArgs )
throw (Exception, RuntimeException)
{
@@ -128,19 +128,19 @@ void ServiceImpl0::initialize( const Sequence< Any >& rArgs )
OSL_VERIFY( val == "third argument" );
}
// XServiceInfo
-//__________________________________________________________________________________________________
+
OUString ServiceImpl0::getImplementationName()
throw(::com::sun::star::uno::RuntimeException)
{
return impl0_getImplementationName();
}
-//__________________________________________________________________________________________________
+
Sequence< OUString > ServiceImpl0::getSupportedServiceNames()
throw(::com::sun::star::uno::RuntimeException)
{
return impl0_getSupportedServiceNames();
}
-//__________________________________________________________________________________________________
+
sal_Bool ServiceImpl0::supportsService( const OUString & rServiceName )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -159,13 +159,13 @@ public:
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (RuntimeException);
virtual OUString SAL_CALL getImplementationName() throw (RuntimeException);
};
-//__________________________________________________________________________________________________
+
OUString ServiceImpl1::getImplementationName()
throw(::com::sun::star::uno::RuntimeException)
{
return impl1_getImplementationName();
}
-//__________________________________________________________________________________________________
+
Sequence< OUString > ServiceImpl1::getSupportedServiceNames()
throw(::com::sun::star::uno::RuntimeException)
{
diff --git a/cppuhelper/test/testpropshlp.cxx b/cppuhelper/test/testpropshlp.cxx
index a20413461a5d..0919146b51fa 100644
--- a/cppuhelper/test/testpropshlp.cxx
+++ b/cppuhelper/test/testpropshlp.cxx
@@ -293,9 +293,9 @@ void test_PropertyArrayHelper()
-//----------------------------------------------------
+
// test_OPropertySetHelper
-//----------------------------------------------------
+
struct MutexContainer
{
Mutex aMutex;
@@ -384,9 +384,9 @@ protected:
void SAL_CALL getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) const throw(RuntimeException);
};
-//----------------------------------------------------------------------
+
//------ The Properties of this implementation -------------------------
-//----------------------------------------------------------------------
+
// Id must be the index into the array
#define PROPERTY_BOOL 0
#define PROPERTY_INT16 1
@@ -421,9 +421,9 @@ Property * getBasicProps()
}
-//----------------------------------------------------
+
// test_OPropertySetHelper_Listener
-//----------------------------------------------------
+
class test_OPropertySetHelper_Listener
: public WeakImplHelper3< XPropertyChangeListener, XPropertiesChangeListener, XVetoableChangeListener >
{
@@ -744,7 +744,7 @@ void test_OPropertySetHelper::setFastPropertyValue_NoBroadcast
}
}
-//--------------------------
+
void test_OPropertySetHelper::getFastPropertyValue( Any & rRet, sal_Int32 nHandle ) const
throw(RuntimeException)
{
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx
index 4199a7580ada..b25ec7b1fdb9 100644
--- a/cui/source/customize/acccfg.cxx
+++ b/cui/source/customize/acccfg.cxx
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-//-----------------------------------------------
+
// include own files
#include "acccfg.hxx"
@@ -39,7 +39,7 @@
#include <svx/svxids.hrc>
-//-----------------------------------------------
+
// include interface declarations
#include <com/sun/star/awt/KeyModifier.hpp>
#include <com/sun/star/embed/StorageFactory.hpp>
@@ -60,7 +60,7 @@
#include <com/sun/star/ui/XUIConfigurationManager.hpp>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
-//-----------------------------------------------
+
// include other projects
#include <comphelper/processfactory.hxx>
#include <svtools/acceleratorexecute.hxx>
@@ -70,13 +70,13 @@
#include <rtl/ustrbuf.hxx>
#include <comphelper/sequenceashashmap.hxx>
-//-----------------------------------------------
+
// namespaces
using namespace com::sun::star;
-//-----------------------------------------------
+
static OUString MODULEPROP_SHORTNAME ("ooSetupFactoryShortName" );
static OUString MODULEPROP_UINAME ("ooSetupFactoryUIName" );
@@ -87,7 +87,7 @@ static OUString FOLDERNAME_UICONFIG ("Configurations2"
static OUString MEDIATYPE_PROPNAME ("MediaType" );
static OUString MEDIATYPE_UICONFIG ("application/vnd.sun.xml.ui.configuration");
-//-----------------------------------------------
+
static const sal_uInt16 KEYCODE_ARRAY[] =
{
KEY_F1 ,
@@ -602,7 +602,7 @@ static const sal_uInt16 KEYCODE_ARRAY[] =
static const sal_uInt16 KEYCODE_ARRAY_SIZE = SAL_N_ELEMENTS(KEYCODE_ARRAY);
-//-----------------------------------------------
+
// seems to be needed to layout the list box, which shows all
// assignable shortcuts
static long AccCfgTabs[] =
@@ -612,7 +612,7 @@ static long AccCfgTabs[] =
120 // Function
};
-//-----------------------------------------------
+
class SfxAccCfgLBoxString_Impl : public SvLBoxString
{
public:
@@ -626,7 +626,7 @@ class SfxAccCfgLBoxString_Impl : public SvLBoxString
const Point& aPos, SvTreeListBox& rDevice, const SvViewDataEntry* pView, const SvTreeListEntry* pEntry);
};
-//-----------------------------------------------
+
SfxAccCfgLBoxString_Impl::SfxAccCfgLBoxString_Impl( SvTreeListEntry* pEntry,
sal_uInt16 nFlags,
const OUString& sText )
@@ -634,7 +634,7 @@ SfxAccCfgLBoxString_Impl::SfxAccCfgLBoxString_Impl( SvTreeListEntry* pEntry
{
}
-//-----------------------------------------------
+
SfxAccCfgLBoxString_Impl::~SfxAccCfgLBoxString_Impl()
{
}
@@ -656,7 +656,7 @@ void SfxAccCfgLBoxString_Impl::Paint(
}
-//-----------------------------------------------
+
void SfxAccCfgTabListBox_Impl::InitEntry(SvTreeListEntry* pEntry,
const OUString& rText,
const Image& rImage1,
@@ -666,7 +666,7 @@ void SfxAccCfgTabListBox_Impl::InitEntry(SvTreeListEntry* pEntry,
SvTabListBox::InitEntry(pEntry, rText, rImage1, rImage2, eButtonKind);
}
-//-----------------------------------------------
+
/** select the entry, which match the current key input ... excepting
keys, which are used for the dialog itself.
*/
@@ -712,7 +712,7 @@ void SfxAccCfgTabListBox_Impl::KeyInput(const KeyEvent& aKey)
SvTabListBox::KeyInput(aKey);
}
-//-----------------------------------------------
+
SfxAcceleratorConfigPage::SfxAcceleratorConfigPage( Window* pParent, const SfxItemSet& aSet )
: SfxTabPage (pParent, CUI_RES(RID_SVXPAGE_KEYBOARD), aSet)
, m_pMacroInfoItem ()
@@ -788,7 +788,7 @@ SfxAcceleratorConfigPage::SfxAcceleratorConfigPage( Window* pParent, const SfxIt
aKeyBox.SetStyle(aKeyBox.GetStyle()|WB_CLIPCHILDREN|WB_HSCROLL|WB_SORT);
}
-//-----------------------------------------------
+
SfxAcceleratorConfigPage::~SfxAcceleratorConfigPage()
{
// free memory - remove all dynamic user data
@@ -818,7 +818,7 @@ SfxAcceleratorConfigPage::~SfxAcceleratorConfigPage()
delete pFunctionBox;
}
-//-----------------------------------------------
+
void SfxAcceleratorConfigPage::InitAccCfg()
{
// already initialized ?
@@ -864,7 +864,7 @@ void SfxAcceleratorConfigPage::InitAccCfg()
{ m_xContext.clear(); }
}
-//-----------------------------------------------
+
/** Initialize text columns with own class to enable custom painting
This is needed as we have to paint disabled entries by ourself. No support for that in the
original SvTabListBox!
@@ -880,7 +880,7 @@ void SfxAcceleratorConfigPage::CreateCustomItems( SvTreeListEntry* pEntry,
pEntry->ReplaceItem(pStringItem, 2);
}
-//-----------------------------------------------
+
void SfxAcceleratorConfigPage::Init(const css::uno::Reference< css::ui::XAcceleratorConfiguration >& xAccMgr)
{
if (!xAccMgr.is())
@@ -965,7 +965,7 @@ void SfxAcceleratorConfigPage::Init(const css::uno::Reference< css::ui::XAcceler
}
}
-//-----------------------------------------------
+
void SfxAcceleratorConfigPage::Apply(const css::uno::Reference< css::ui::XAcceleratorConfiguration >& xAccMgr)
{
if (!xAccMgr.is())
@@ -1003,13 +1003,13 @@ void SfxAcceleratorConfigPage::Apply(const css::uno::Reference< css::ui::XAccele
}
}
-//-----------------------------------------------
+
void SfxAcceleratorConfigPage::ResetConfig()
{
aEntriesBox.Clear();
}
-//-----------------------------------------------
+
IMPL_LINK_NOARG(SfxAcceleratorConfigPage, Load)
{
// ask for filename, where we should load the new config data from
@@ -1017,14 +1017,14 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, Load)
return 0;
}
-//-----------------------------------------------
+
IMPL_LINK_NOARG(SfxAcceleratorConfigPage, Save)
{
StartFileDialog( WB_SAVEAS, aSaveAccelConfigStr );
return 0;
}
-//-----------------------------------------------
+
IMPL_LINK_NOARG(SfxAcceleratorConfigPage, Default)
{
css::uno::Reference< css::form::XReset > xReset(m_xAct, css::uno::UNO_QUERY);
@@ -1041,7 +1041,7 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, Default)
return 0;
}
-//-----------------------------------------------
+
IMPL_LINK_NOARG(SfxAcceleratorConfigPage, ChangeHdl)
{
sal_uInt16 nPos = (sal_uInt16) aEntriesBox.GetModel()->GetRelPos( aEntriesBox.FirstSelected() );
@@ -1059,7 +1059,7 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, ChangeHdl)
return 0;
}
-//-----------------------------------------------
+
IMPL_LINK_NOARG(SfxAcceleratorConfigPage, RemoveHdl)
{
// get selected entry
@@ -1075,7 +1075,7 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, RemoveHdl)
return 0;
}
-//-----------------------------------------------
+
IMPL_LINK( SfxAcceleratorConfigPage, SelectHdl, Control*, pListBox )
{
// disable help
@@ -1164,7 +1164,7 @@ IMPL_LINK( SfxAcceleratorConfigPage, SelectHdl, Control*, pListBox )
return 0;
}
-//-----------------------------------------------
+
IMPL_LINK_NOARG(SfxAcceleratorConfigPage, RadioHdl)
{
css::uno::Reference< css::ui::XAcceleratorConfiguration > xOld = m_xAct;
@@ -1198,7 +1198,7 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, RadioHdl)
return 1L;
}
-//-----------------------------------------------
+
IMPL_LINK_NOARG(SfxAcceleratorConfigPage, LoadHdl)
{
assert(m_pFileDlg);
@@ -1282,7 +1282,7 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, LoadHdl)
return 0;
}
-//-----------------------------------------------
+
IMPL_LINK_NOARG(SfxAcceleratorConfigPage, SaveHdl)
{
assert(m_pFileDlg);
@@ -1383,7 +1383,7 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, SaveHdl)
return 0;
}
-//-----------------------------------------------
+
void SfxAcceleratorConfigPage::StartFileDialog( WinBits nBits, const OUString& rTitle )
{
bool bSave = ( ( nBits & WB_SAVEAS ) == WB_SAVEAS );
@@ -1403,7 +1403,7 @@ void SfxAcceleratorConfigPage::StartFileDialog( WinBits nBits, const OUString& r
m_pFileDlg->StartExecuteModal( aDlgClosedLink );
}
-//-----------------------------------------------
+
sal_Bool SfxAcceleratorConfigPage::FillItemSet( SfxItemSet& )
{
Apply(m_xAct);
@@ -1419,7 +1419,7 @@ sal_Bool SfxAcceleratorConfigPage::FillItemSet( SfxItemSet& )
return sal_True;
}
-//-----------------------------------------------
+
void SfxAcceleratorConfigPage::Reset( const SfxItemSet& rSet )
{
// open accelerator configs
@@ -1461,7 +1461,7 @@ void SfxAcceleratorConfigPage::Reset( const SfxItemSet& rSet )
}
}
-//-----------------------------------------------
+
sal_uInt16 SfxAcceleratorConfigPage::MapKeyCodeToPos(const KeyCode& aKey) const
{
sal_uInt16 nCode1 = aKey.GetCode()+aKey.GetModifier();
@@ -1484,7 +1484,7 @@ sal_uInt16 SfxAcceleratorConfigPage::MapKeyCodeToPos(const KeyCode& aKey) const
return LISTBOX_ENTRY_NOTFOUND;
}
-//-----------------------------------------------
+
OUString SfxAcceleratorConfigPage::GetLabel4Command(const OUString& sCommand)
{
try
@@ -1522,7 +1522,7 @@ SfxTabPage* SfxAcceleratorConfigPage::Create( Window* pParent, const SfxItemSet&
return new SfxAcceleratorConfigPage( pParent, rAttrSet );
}
-//-----------------------------------------------
+
css::uno::Reference< css::frame::XModel > SfxAcceleratorConfigPage::SearchForAlreadyLoadedDoc(const OUString& /*sName*/)
{
return css::uno::Reference< css::frame::XModel >();
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index dd768be7da09..d42203fd5af7 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -1525,7 +1525,7 @@ SvxDescriptionEdit::SvxDescriptionEdit( Window* pParent, const ResId& _rId ) :
SetBorderStyle( WINDOW_BORDER_MONO );
}
-// -----------------------------------------------------------------------
+
void SvxDescriptionEdit::SetNewText( const OUString& _rText )
{
@@ -4663,7 +4663,7 @@ SvTreeListEntry* SvxToolbarConfigPage::AddFunction(
return pNewLBEntry;
}
-// -----------------------------------------------------------------------
+
SvxToolbarEntriesListBox::SvxToolbarEntriesListBox(
Window* pParent, const ResId& aResId )
@@ -4676,14 +4676,14 @@ SvxToolbarEntriesListBox::SvxToolbarEntriesListBox(
EnableCheckButton( m_pButtonData );
}
-// --------------------------------------------------------
+
SvxToolbarEntriesListBox::~SvxToolbarEntriesListBox()
{
delete m_pButtonData;
}
-// --------------------------------------------------------
+
void SvxToolbarEntriesListBox::BuildCheckBoxButtonImages( SvLBoxButtonData* pData )
{
@@ -4753,7 +4753,7 @@ void SvxToolbarEntriesListBox::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-// --------------------------------------------------------
+
void SvxToolbarEntriesListBox::ChangeVisibility( SvTreeListEntry* pEntry )
{
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx
index a6e468e532f3..1f52c537d8bb 100644
--- a/cui/source/customize/cfgutil.cxx
+++ b/cui/source/customize/cfgutil.cxx
@@ -481,7 +481,7 @@ void SfxConfigGroupListBox::SetStylesInfo(SfxStylesInfo_Impl* pStyles)
pStylesInfo = pStyles;
}
-//-----------------------------------------------
+
void SfxConfigGroupListBox::InitModule()
{
try
@@ -517,17 +517,17 @@ void SfxConfigGroupListBox::InitModule()
{}
}
-//-----------------------------------------------
+
void SfxConfigGroupListBox::InitBasic()
{
}
-//-----------------------------------------------
+
void SfxConfigGroupListBox::InitStyles()
{
}
-//-----------------------------------------------
+
namespace
{
//...........................................
@@ -580,7 +580,7 @@ namespace
}
}
-//-----------------------------------------------
+
void SfxConfigGroupListBox::Init(const css::uno::Reference< css::uno::XComponentContext >& xContext,
const css::uno::Reference< css::frame::XFrame >& xFrame,
const OUString& sModuleLongName,
@@ -845,7 +845,7 @@ SfxConfigGroupListBox::getDocumentModel( Reference< XComponentContext >& xCtx, O
return xModel;
}
-//-----------------------------------------------
+
OUString SfxConfigGroupListBox::MapCommand2UIName(const OUString& sCommand)
{
OUString sUIName;
@@ -873,7 +873,7 @@ OUString SfxConfigGroupListBox::MapCommand2UIName(const OUString& sCommand)
return sUIName;
}
-//-----------------------------------------------
+
void SfxConfigGroupListBox::GroupSelected()
/* Description
A function group or a basic module has been selected.
diff --git a/cui/source/customize/eventdlg.cxx b/cui/source/customize/eventdlg.cxx
index 397a493bfe1e..ea10378a8594 100644
--- a/cui/source/customize/eventdlg.cxx
+++ b/cui/source/customize/eventdlg.cxx
@@ -53,7 +53,7 @@
using namespace ::com::sun::star;
-// -----------------------------------------------------------------------
+
SvxEventConfigPage::SvxEventConfigPage( Window *pParent, const SfxItemSet& rSet, SvxEventConfigPage::EarlyInit ) :
@@ -94,7 +94,7 @@ SvxEventConfigPage::SvxEventConfigPage( Window *pParent, const SfxItemSet& rSet,
aSaveInListBox.SelectEntryPos( nPos, true );
}
-// -----------------------------------------------------------------------
+
void SvxEventConfigPage::LateInit( const uno::Reference< frame::XFrame >& _rxFrame )
{
SetFrame( _rxFrame );
@@ -105,7 +105,7 @@ void SvxEventConfigPage::LateInit( const uno::Reference< frame::XFrame >& _rxFra
SelectHdl_Impl( NULL );
}
-// -----------------------------------------------------------------------
+
SvxEventConfigPage::~SvxEventConfigPage()
{
@@ -126,7 +126,7 @@ SvxEventConfigPage::~SvxEventConfigPage()
delete mpImpl->pDeletePB;
}
-// -----------------------------------------------------------------------
+
void SvxEventConfigPage::ImplInitDocument()
{
@@ -174,7 +174,7 @@ void SvxEventConfigPage::ImplInitDocument()
}
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxEventConfigPage, SelectHdl_Impl, ListBox *, pBox )
{
@@ -221,7 +221,7 @@ IMPL_LINK( SvxEventConfigPage, SelectHdl_Impl, ListBox *, pBox )
return sal_True;
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxEventConfigPage::FillItemSet( SfxItemSet& rSet )
{
diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx
index e3fcb2b1ca64..e4536547cc15 100644
--- a/cui/source/customize/macropg.cxx
+++ b/cui/source/customize/macropg.cxx
@@ -253,7 +253,7 @@ _SvxMacroTabPage::~_SvxMacroTabPage()
{
DELETEZ( mpImpl );
}
-// -----------------------------------------------------------------------------
+
void _SvxMacroTabPage::InitResources()
{
// Note: the order here controls the order in which the events are displayed in the UI!
@@ -907,7 +907,7 @@ AssignComponentDialog::~AssignComponentDialog()
{
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxMacroAssignSingleTabDialog, OKHdl_Impl, Button *, pButton )
{
@@ -917,7 +917,7 @@ IMPL_LINK( SvxMacroAssignSingleTabDialog, OKHdl_Impl, Button *, pButton )
return 0;
}
-// -----------------------------------------------------------------------
+
SvxMacroAssignSingleTabDialog::SvxMacroAssignSingleTabDialog(Window *pParent,
const SfxItemSet& rSet)
diff --git a/cui/source/customize/selector.cxx b/cui/source/customize/selector.cxx
index 46565fc5f6a7..18f0c0559644 100644
--- a/cui/source/customize/selector.cxx
+++ b/cui/source/customize/selector.cxx
@@ -236,7 +236,7 @@ void SvxConfigGroupListBox::ClearAll()
Clear();
}
-//-----------------------------------------------
+
namespace
{
//...........................................
diff --git a/cui/source/dialogs/SpellAttrib.cxx b/cui/source/dialogs/SpellAttrib.cxx
index 5a6894126cce..be09cce60c51 100644
--- a/cui/source/dialogs/SpellAttrib.cxx
+++ b/cui/source/dialogs/SpellAttrib.cxx
@@ -26,7 +26,7 @@ using namespace com::sun::star::linguistic2;
using namespace com::sun::star::uno;
-//-----------------------------------------------------------------------
+
SpellErrorAttrib::SpellErrorAttrib( const SpellErrorDescription& rDesc ) :
TextAttrib(TEXTATTR_SPELL_ERROR),
m_aSpellErrorDescription( rDesc )
@@ -34,107 +34,107 @@ SpellErrorAttrib::SpellErrorAttrib( const SpellErrorDescription& rDesc ) :
}
-//-----------------------------------------------------------------------
+
SpellErrorAttrib::SpellErrorAttrib( const SpellErrorAttrib& rAttr ) :
TextAttrib(TEXTATTR_SPELL_ERROR),
m_aSpellErrorDescription( rAttr.m_aSpellErrorDescription )
{
}
-//-----------------------------------------------------------------------
+
SpellErrorAttrib::~SpellErrorAttrib()
{
}
-//-----------------------------------------------------------------------
+
void SpellErrorAttrib::SetFont( Font& ) const
{
//this attribute doesn't have a visual effect
}
-//-----------------------------------------------------------------------
+
TextAttrib* SpellErrorAttrib::Clone() const
{
return new SpellErrorAttrib(*this);
}
-//-----------------------------------------------------------------------
+
bool SpellErrorAttrib::operator==( const TextAttrib& rAttr ) const
{
return Which() == rAttr.Which() &&
m_aSpellErrorDescription == static_cast<const SpellErrorAttrib&>(rAttr).m_aSpellErrorDescription;
}
-//-----------------------------------------------------------------------
+
SpellLanguageAttrib::SpellLanguageAttrib(LanguageType eLang) :
TextAttrib(TEXTATTR_SPELL_LANGUAGE),
m_eLanguage(eLang)
{
}
-//-----------------------------------------------------------------------
+
SpellLanguageAttrib::SpellLanguageAttrib( const SpellLanguageAttrib& rAttr ) :
TextAttrib(TEXTATTR_SPELL_LANGUAGE),
m_eLanguage(rAttr.m_eLanguage)
{
}
-//-----------------------------------------------------------------------
+
SpellLanguageAttrib::~SpellLanguageAttrib()
{
}
-//-----------------------------------------------------------------------
+
void SpellLanguageAttrib::SetFont( Font& ) const
{
//no visual effect
}
-//-----------------------------------------------------------------------
+
TextAttrib* SpellLanguageAttrib::Clone() const
{
return new SpellLanguageAttrib(*this);
}
-//-----------------------------------------------------------------------
+
bool SpellLanguageAttrib::operator==( const TextAttrib& rAttr ) const
{
return Which() == rAttr.Which() &&
m_eLanguage == static_cast<const SpellLanguageAttrib&>(rAttr).m_eLanguage;
}
-//-----------------------------------------------------------------------
+
SpellBackgroundAttrib::SpellBackgroundAttrib(const Color& rCol) :
TextAttrib(TEXTATTR_SPELL_BACKGROUND),
m_aBackgroundColor(rCol)
{
}
-//-----------------------------------------------------------------------
+
SpellBackgroundAttrib::SpellBackgroundAttrib( const SpellBackgroundAttrib& rAttr ) :
TextAttrib(TEXTATTR_SPELL_BACKGROUND),
m_aBackgroundColor(rAttr.m_aBackgroundColor)
{
}
-//-----------------------------------------------------------------------
+
SpellBackgroundAttrib::~SpellBackgroundAttrib()
{
}
-//-----------------------------------------------------------------------
+
void SpellBackgroundAttrib::SetFont( Font& rFont ) const
{
rFont.SetFillColor(m_aBackgroundColor);
}
-//-----------------------------------------------------------------------
+
TextAttrib* SpellBackgroundAttrib::Clone() const
{
return new SpellBackgroundAttrib(*this);
}
-//-----------------------------------------------------------------------
+
bool SpellBackgroundAttrib::operator==( const TextAttrib& rAttr ) const
{
return Which() == rAttr.Which() &&
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index c28f120ef5de..aeae64d3c98d 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -72,7 +72,7 @@ struct SpellDialog_Impl
{
Sequence< Reference< XDictionary > > aDics;
};
-// -----------------------------------------------------------------------
+
#define SPELLUNDO_START 200
@@ -161,18 +161,18 @@ public:
}//namespace svx
using namespace ::svx;
-//-----------------------------------------------------------------------
+
SpellUndoAction_Impl::~SpellUndoAction_Impl()
{
}
-//-----------------------------------------------------------------------
+
void SpellUndoAction_Impl::Undo()
{
m_rActionLink.Call(this);
}
-//-----------------------------------------------------------------------
+
sal_uInt16 SpellUndoAction_Impl::GetId()const
{
return m_nId;
@@ -248,7 +248,7 @@ SpellDialog::SpellDialog(SpellDialogChildWindow* pChildWindow,
this, SpellDialog, InitHdl ) );
}
-// -----------------------------------------------------------------------
+
SpellDialog::~SpellDialog()
{
@@ -262,7 +262,7 @@ SpellDialog::~SpellDialog()
delete pImpl;
}
-// -----------------------------------------------------------------------
+
void SpellDialog::Init_Impl()
{
@@ -297,7 +297,7 @@ void SpellDialog::Init_Impl()
SvxGetChangeAllList()->clear();
}
-// -----------------------------------------------------------------------
+
void SpellDialog::UpdateBoxes_Impl()
{
@@ -379,7 +379,7 @@ void SpellDialog::UpdateBoxes_Impl()
if (bOldShowExplain != (bool) m_pExplainLink->IsVisible() || bOldShowGrammar != (bool) m_pCheckGrammarCB->IsVisible())
setOptimalLayoutSize();
}
-// -----------------------------------------------------------------------
+
void SpellDialog::SpellContinue_Impl(bool bUseSavedSentence, bool bIgnoreCurrentError )
{
@@ -450,7 +450,7 @@ IMPL_STATIC_LINK( SpellDialog, InitHdl, SpellDialog *, EMPTYARG )
return 0;
};
-// -----------------------------------------------------------------------
+
IMPL_LINK( SpellDialog, ExtClickHdl, Button *, pBtn )
{
@@ -484,7 +484,7 @@ IMPL_LINK( SpellDialog, ExtClickHdl, Button *, pBtn )
}
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SpellDialog, CheckGrammarHdl, CheckBox*, pBox )
{
rParent.SetGrammarChecking( pBox->IsChecked() );
@@ -551,7 +551,7 @@ OUString SpellDialog::getReplacementString() const
return getDotReplacementString(sOrigString, sReplacement);
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SpellDialog, ChangeHdl)
{
@@ -573,7 +573,7 @@ IMPL_LINK_NOARG(SpellDialog, ChangeHdl)
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SpellDialog, ChangeAllHdl)
{
@@ -604,7 +604,7 @@ IMPL_LINK_NOARG(SpellDialog, ChangeAllHdl)
m_pSentenceED->UndoActionEnd();
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SpellDialog, IgnoreAllHdl, Button *, pButton )
{
@@ -653,7 +653,7 @@ IMPL_LINK( SpellDialog, IgnoreAllHdl, Button *, pButton )
return 1;
}
-//-----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SpellDialog, UndoHdl)
{
m_pSentenceED->Undo();
@@ -662,7 +662,7 @@ IMPL_LINK_NOARG(SpellDialog, UndoHdl)
return 0;
}
-//-----------------------------------------------------------------------
+
IMPL_LINK( SpellDialog, DialogUndoHdl, SpellUndoAction_Impl*, pAction )
{
switch(pAction->GetId())
@@ -709,7 +709,7 @@ IMPL_LINK( SpellDialog, DialogUndoHdl, SpellUndoAction_Impl*, pAction )
return 0;
}
-// -----------------------------------------------------------------------
+
void SpellDialog::Impl_Restore()
{
//clear the "ChangeAllList"
@@ -740,7 +740,7 @@ IMPL_LINK_NOARG(SpellDialog, IgnoreHdl)
return 1;
}
-// -----------------------------------------------------------------------
+
bool SpellDialog::Close()
{
@@ -749,14 +749,14 @@ bool SpellDialog::Close()
SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD);
return true;
}
-// -----------------------------------------------------------------------
+
void SpellDialog::SetSelectedLang_Impl( LanguageType nLang )
{
m_pLanguageLB->SelectLanguage( nLang );
}
-// -----------------------------------------------------------------------
+
LanguageType SpellDialog::GetSelectedLang_Impl() const
{
@@ -764,7 +764,7 @@ LanguageType SpellDialog::GetSelectedLang_Impl() const
return nLang;
}
-//-------------------------------------------------
+
IMPL_LINK(SpellDialog, LanguageSelectHdl, SvxLanguageBox*, pBox)
{
//If selected language changes, then add->list should be regenerated to
@@ -793,7 +793,7 @@ IMPL_LINK(SpellDialog, LanguageSelectHdl, SvxLanguageBox*, pBox)
SpellDialog::UpdateBoxes_Impl();
return 0;
}
-// -----------------------------------------------------------------------
+
void SpellDialog::SetLanguage( sal_uInt16 nLang )
/*
@@ -886,19 +886,19 @@ int SpellDialog::InitUserDicts()
return nDicts;
}
-//-----------------------------------------------------------------------
+
IMPL_LINK(SpellDialog, AddToDictClickHdl, PushButton*, EMPTYARG )
{
return AddToDictionaryExecute(1, m_pAddToDictMB->GetPopupMenu());
}
-//-----------------------------------------------------------------------
+
IMPL_LINK(SpellDialog, AddToDictSelectHdl, MenuButton*, pButton )
{
return AddToDictionaryExecute(pButton->GetCurItemId(), pButton->GetPopupMenu());
}
-//-----------------------------------------------------------------------
+
int SpellDialog::AddToDictionaryExecute( sal_uInt16 nItemId, PopupMenu *pMenu )
{
m_pSentenceED->UndoActionStart( SPELLUNDO_CHANGE_GROUP );
@@ -947,7 +947,7 @@ int SpellDialog::AddToDictionaryExecute( sal_uInt16 nItemId, PopupMenu *pMenu )
return 0;
}
-//-----------------------------------------------------------------------
+
IMPL_LINK(SpellDialog, ModifyHdl, SentenceEditWindow_Impl*, pEd)
{
if (m_pSentenceED == pEd)
@@ -973,7 +973,7 @@ IMPL_LINK(SpellDialog, ModifyHdl, SentenceEditWindow_Impl*, pEd)
return 0;
};
-//-----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SpellDialog, CancelHdl)
{
//apply changes and ignored text parts first - if there are any
@@ -982,7 +982,7 @@ IMPL_LINK_NOARG(SpellDialog, CancelHdl)
return 0;
}
-//-----------------------------------------------------------------------
+
bool SpellDialog::Notify( NotifyEvent& rNEvt )
{
/* #i38338#
@@ -1010,7 +1010,7 @@ bool SpellDialog::Notify( NotifyEvent& rNEvt )
return SfxModelessDialog::Notify(rNEvt);
}
-//-------------------------------------------------
+
void SpellDialog::InvalidateDialog()
{
if( bFocusLocked )
@@ -1043,7 +1043,7 @@ void SpellDialog::InvalidateDialog()
SfxModelessDialog::Deactivate();
}
-//-----------------------------------------------------------------------
+
bool SpellDialog::GetNextSentence_Impl(bool bUseSavedSentence, bool bRecheck)
{
bool bRet = false;
@@ -1185,7 +1185,7 @@ bool SpellDialog::ApplyChangeAllList_Impl(SpellPortions& rSentence, bool &bHasRe
return bRet;
}
-//-----------------------------------------------------------------------
+
SentenceEditWindow_Impl::SentenceEditWindow_Impl(Window * pParent, WinBits nBits)
: VclMultiLineEdit(pParent, nBits)
, m_nErrorStart(0)
@@ -1201,7 +1201,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSentenceEditWindow(Window *
return new SentenceEditWindow_Impl(pParent, WB_BORDER|WB_VSCROLL|WB_IGNORETAB);
}
-//-----------------------------------------------------------------------
+
SentenceEditWindow_Impl::~SentenceEditWindow_Impl()
{
}
@@ -1545,7 +1545,7 @@ bool SentenceEditWindow_Impl::PreNotify( NotifyEvent& rNEvt )
return bChange || VclMultiLineEdit::PreNotify(rNEvt);
}
-//-----------------------------------------------------------------------
+
bool SentenceEditWindow_Impl::MarkNextError( bool bIgnoreCurrentError, com::sun::star::uno::Reference<com::sun::star::linguistic2::XSpellChecker1> xSpell )
{
if (bIgnoreCurrentError)
@@ -1637,7 +1637,7 @@ bool SentenceEditWindow_Impl::MarkNextError( bool bIgnoreCurrentError, com::sun:
return bRet;
}
-//-----------------------------------------------------------------------
+
void SentenceEditWindow_Impl::MoveErrorMarkTo(sal_uInt16 nStart, sal_uInt16 nEnd, bool bGrammarError)
{
TextEngine* pTextEngine = GetTextEngine();
@@ -1649,7 +1649,7 @@ void SentenceEditWindow_Impl::MoveErrorMarkTo(sal_uInt16 nStart, sal_uInt16 nEnd
m_nErrorEnd = nEnd;
}
-//-----------------------------------------------------------------------
+
void SentenceEditWindow_Impl::ChangeMarkedWord(const OUString& rNewWord, LanguageType eLanguage)
{
//calculate length changes
@@ -1712,13 +1712,13 @@ void SentenceEditWindow_Impl::ChangeMarkedWord(const OUString& rNewWord, Languag
pTextEngine->UndoActionEnd();
}
-//-------------------------------------------------
+
OUString SentenceEditWindow_Impl::GetErrorText() const
{
return GetTextEngine()->GetText(TextSelection(TextPaM(0, m_nErrorStart), TextPaM(0, m_nErrorEnd) ));
}
-//-----------------------------------------------------------------------
+
const SpellErrorDescription* SentenceEditWindow_Impl::GetAlternatives()
{
TextPaM aCursor(0, m_nErrorStart);
@@ -1727,7 +1727,7 @@ const SpellErrorDescription* SentenceEditWindow_Impl::GetAlternatives()
return pAttrib ? &pAttrib->GetErrorDescription() : 0;
}
-//-----------------------------------------------------------------------
+
void SentenceEditWindow_Impl::RestoreCurrentError()
{
TextPaM aCursor(0, m_nErrorStart);
@@ -1741,7 +1741,7 @@ void SentenceEditWindow_Impl::RestoreCurrentError()
}
}
-//-----------------------------------------------------------------------
+
void SentenceEditWindow_Impl::SetAlternatives( Reference< XSpellAlternatives> xAlt )
{
TextPaM aCursor(0, m_nErrorStart);
@@ -1765,20 +1765,20 @@ void SentenceEditWindow_Impl::SetAlternatives( Reference< XSpellAlternatives> xA
GetTextEngine()->SetAttrib( SpellErrorAttrib(aDesc), 0, m_nErrorStart, m_nErrorEnd );
}
-//-----------------------------------------------------------------------
+
void SentenceEditWindow_Impl::SetAttrib( const TextAttrib& rAttr, sal_uLong nPara, sal_uInt16 nStart, sal_uInt16 nEnd )
{
GetTextEngine()->SetAttrib(rAttr, nPara, nStart, nEnd);
}
-//-----------------------------------------------------------------------
+
void SentenceEditWindow_Impl::SetText( const OUString& rStr )
{
m_nErrorStart = m_nErrorEnd = 0;
GetTextEngine()->SetText(rStr);
}
-//-----------------------------------------------------------------------
+
struct LanguagePosition_Impl
{
sal_uInt16 nPosition;
@@ -1919,7 +1919,7 @@ svx::SpellPortions SentenceEditWindow_Impl::CreateSpellPortions( bool bSetIgnore
return aRet;
}
-//-----------------------------------------------------------------------
+
void SentenceEditWindow_Impl::Undo()
{
::svl::IUndoManager& rUndoMgr = GetTextEngine()->GetUndoManager();
@@ -1939,13 +1939,13 @@ void SentenceEditWindow_Impl::Undo()
GetSpellDialog()->UpdateBoxes_Impl();
}
-//-----------------------------------------------------------------------
+
void SentenceEditWindow_Impl::ResetUndo()
{
GetTextEngine()->ResetUndo();
}
-//-----------------------------------------------------------------------
+
void SentenceEditWindow_Impl::AddUndoAction( SfxUndoAction *pAction, sal_Bool bTryMerg )
{
::svl::IUndoManager& rUndoMgr = GetTextEngine()->GetUndoManager();
@@ -1953,25 +1953,25 @@ void SentenceEditWindow_Impl::AddUndoAction( SfxUndoAction *pAction, sal_Bool bT
GetSpellDialog()->m_pUndoPB->Enable();
}
-//-----------------------------------------------------------------------
+
sal_uInt16 SentenceEditWindow_Impl::GetUndoActionCount()
{
return GetTextEngine()->GetUndoManager().GetUndoActionCount();
}
-//-----------------------------------------------------------------------
+
void SentenceEditWindow_Impl::UndoActionStart( sal_uInt16 nId )
{
GetTextEngine()->UndoActionStart(nId);
}
-//-----------------------------------------------------------------------
+
void SentenceEditWindow_Impl::UndoActionEnd()
{
GetTextEngine()->UndoActionEnd();
}
-//-----------------------------------------------------------------------
+
void SentenceEditWindow_Impl::MoveErrorEnd(long nOffset)
{
if(nOffset > 0)
@@ -1980,7 +1980,7 @@ void SentenceEditWindow_Impl::MoveErrorEnd(long nOffset)
m_nErrorEnd = m_nErrorEnd -(sal_uInt16)- nOffset;
}
-//-----------------------------------------------------------------------
+
void SentenceEditWindow_Impl::SetUndoEditMode(bool bSet)
{
DBG_ASSERT(!bSet || m_bIsUndoEditMode != bSet, "SetUndoEditMode with equal values?");
diff --git a/cui/source/dialogs/commonlingui.cxx b/cui/source/dialogs/commonlingui.cxx
index 012895d388cf..a4b1ffab7dd5 100644
--- a/cui/source/dialogs/commonlingui.cxx
+++ b/cui/source/dialogs/commonlingui.cxx
@@ -30,7 +30,7 @@
// SvxClickInfoCtr
//=============================================================================
-//-----------------------------------------------------------------------------
+
SvxClickInfoCtr::SvxClickInfoCtr( Window* pParent, const ResId& rResId ) :
Control( pParent, rResId ),
aFixedInfo( this)
@@ -39,13 +39,13 @@ SvxClickInfoCtr::SvxClickInfoCtr( Window* pParent, const ResId& rResId ) :
aFixedInfo.Show();
}
-//-----------------------------------------------------------------------------
+
void SvxClickInfoCtr::MouseButtonDown( const MouseEvent& )
{
aActivateLink.Call(this);
}
-//-----------------------------------------------------------------------------
+
bool SvxClickInfoCtr::PreNotify( NotifyEvent& rNEvt )
{
if(rNEvt.GetType()==EVENT_GETFOCUS || rNEvt.GetType()==EVENT_MOUSEBUTTONDOWN)
@@ -56,19 +56,19 @@ bool SvxClickInfoCtr::PreNotify( NotifyEvent& rNEvt )
return Control::PreNotify(rNEvt);
}
-//-----------------------------------------------------------------------------
+
void SvxClickInfoCtr::SetText( const OUString& rStr )
{
aFixedInfo.SetText(rStr );
}
-//-----------------------------------------------------------------------------
+
OUString SvxClickInfoCtr::GetText() const
{
return aFixedInfo.GetText();
}
-//-----------------------------------------------------------------------------
+
SvxClickInfoCtr::~SvxClickInfoCtr()
{
}
@@ -76,7 +76,7 @@ SvxClickInfoCtr::~SvxClickInfoCtr()
//=============================================================================
// SvxCommonLinguisticControl
//=============================================================================
-//-----------------------------------------------------------------------------
+
SvxCommonLinguisticControl::SvxCommonLinguisticControl( ModalDialog* _pParent )
:Window( _pParent, CUI_RES( RID_SVX_WND_COMMON_LINGU ) )
,aWordText ( this, CUI_RES( FT_WORD ) )
@@ -100,7 +100,7 @@ SvxCommonLinguisticControl::SvxCommonLinguisticControl( ModalDialog* _pParent )
Show();
}
-// -----------------------------------------------------------------------
+
PushButton* SvxCommonLinguisticControl::implGetButton( ButtonType _eType ) const
{
const PushButton* pButton = NULL;
@@ -116,7 +116,7 @@ PushButton* SvxCommonLinguisticControl::implGetButton( ButtonType _eType ) cons
return const_cast< PushButton* >( pButton );
}
-// -----------------------------------------------------------------------
+
void SvxCommonLinguisticControl::SetButtonHandler( ButtonType _eType, const Link& _rHandler )
{
Button* pButton = GetButton( _eType );
@@ -124,7 +124,7 @@ void SvxCommonLinguisticControl::SetButtonHandler( ButtonType _eType, const Link
pButton->SetClickHdl( _rHandler );
}
-// -----------------------------------------------------------------------
+
void SvxCommonLinguisticControl::EnableButton( ButtonType _eType, sal_Bool _bEnable )
{
Button* pButton = GetButton( _eType );
@@ -132,7 +132,7 @@ void SvxCommonLinguisticControl::EnableButton( ButtonType _eType, sal_Bool _bEna
pButton->Enable( _bEnable );
}
-// -----------------------------------------------------------------------
+
void SvxCommonLinguisticControl::InsertControlGroup( Window& _rFirstGroupWindow, Window& _rLastGroupWindow, ControlGroup _eInsertAfter )
{
Window* pInsertAfter = NULL; // will be the last window of our own "undividable" group, after which we insert the foreign group
@@ -170,7 +170,7 @@ void SvxCommonLinguisticControl::InsertControlGroup( Window& _rFirstGroupWindow,
// (FirstWindow, LastWindow) was no valid control group
}
-//-----------------------------------------------------------------------------
+
void SvxCommonLinguisticControl::Paint( const Rectangle& rRect )
{
Window::Paint(rRect );
@@ -181,7 +181,7 @@ void SvxCommonLinguisticControl::Paint( const Rectangle& rRect )
aDecoView.DrawButton( aRect, BUTTON_DRAW_NOFILL );
}
-//-----------------------------------------------------------------------------
+
void SvxCommonLinguisticControl::Enlarge( sal_Int32 _nX, sal_Int32 _nY )
{
Size aSize;
diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx
index 4159a31eaa33..207bef33cb98 100644
--- a/cui/source/dialogs/cuicharmap.cxx
+++ b/cui/source/dialogs/cuicharmap.cxx
@@ -104,34 +104,34 @@ SvxCharacterMap::SvxCharacterMap( Window* pParent, sal_Bool bOne_, const SfxItem
CreateOutputItemSet( pSet ? *pSet->GetPool() : SFX_APP()->GetPool() );
}
-// -----------------------------------------------------------------------
+
SvxCharacterMap::~SvxCharacterMap()
{
}
-// -----------------------------------------------------------------------
+
const Font& SvxCharacterMap::GetCharFont() const
{
return aFont;
}
-// -----------------------------------------------------------------------
+
void SvxCharacterMap::SetChar( sal_UCS4 c )
{
m_pShowSet->SelectCharacter( c );
}
-// -----------------------------------------------------------------------
+
sal_UCS4 SvxCharacterMap::GetChar() const
{
return m_pShowSet->GetSelectCharacter();
}
-// -----------------------------------------------------------------------
+
OUString SvxCharacterMap::GetCharacters() const
{
@@ -139,7 +139,7 @@ OUString SvxCharacterMap::GetCharacters() const
}
-// -----------------------------------------------------------------------
+
void SvxCharacterMap::DisableFontSelection()
{
@@ -182,7 +182,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxShowText(Window *pParent
return new SvxShowText(pParent);
}
-// -----------------------------------------------------------------------
+
void SvxShowText::Paint( const Rectangle& )
{
@@ -266,7 +266,7 @@ void SvxShowText::Paint( const Rectangle& )
Control::SetFont(aOrigFont);
}
-// -----------------------------------------------------------------------
+
void SvxShowText::SetFont( const Font& rFont )
{
@@ -296,7 +296,7 @@ void SvxShowText::Resize()
SetFont(GetFont()); //force recalculation of size
}
-// -----------------------------------------------------------------------
+
void SvxShowText::SetText( const OUString& rText )
{
@@ -304,7 +304,7 @@ void SvxShowText::SetText( const OUString& rText )
Invalidate();
}
-// -----------------------------------------------------------------------
+
SvxShowText::~SvxShowText()
{}
@@ -382,7 +382,7 @@ void SvxCharacterMap::init()
m_pOKBtn->Enable();
}
-// -----------------------------------------------------------------------
+
void SvxCharacterMap::SetCharFont( const Font& rFont )
{
@@ -401,7 +401,7 @@ void SvxCharacterMap::SetCharFont( const Font& rFont )
ModalDialog::SetFont( aFont );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharacterMap, OKHdl)
{
@@ -430,7 +430,7 @@ void SvxCharacterMap::fillAllSubsets(ListBox &rListBox)
}
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharacterMap, FontSelectHdl)
{
@@ -485,7 +485,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, FontSelectHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharacterMap, SubsetSelectHdl)
{
@@ -500,7 +500,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, SubsetSelectHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharacterMap, CharDoubleClickHdl)
{
@@ -513,7 +513,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, CharDoubleClickHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharacterMap, CharSelectHdl)
{
@@ -535,7 +535,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, CharSelectHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharacterMap, CharHighlightHdl)
{
@@ -574,7 +574,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, CharHighlightHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharacterMap, CharPreSelectHdl)
{
@@ -591,7 +591,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, CharPreSelectHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharacterMap, DeleteLastHdl)
{
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index dcd508d4f82d..b176f40b9568 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -52,9 +52,9 @@
#include <svx/dialmgr.hxx>
-// --------------
+
// - Namespaces -
-// --------------
+
using namespace ::ucbhelper;
using namespace ::rtl;
@@ -65,9 +65,9 @@ using namespace ::com::sun::star::ucb;
using namespace ::com::sun::star::ui::dialogs;
using namespace ::com::sun::star::uno;
-// ----------------
+
// - SearchThread -
-// ----------------
+
SearchThread::SearchThread( SearchProgress* pProgess,
TPGalleryThemeProperties* pBrowser,
@@ -79,13 +79,13 @@ SearchThread::SearchThread( SearchProgress* pProgess,
{
}
-// ------------------------------------------------------------------------
+
SearchThread::~SearchThread()
{
}
-// ------------------------------------------------------------------------
+
void SearchThread::execute()
{
@@ -114,7 +114,7 @@ void SearchThread::execute()
Application::PostUserEvent( LINK( mpProgress, SearchProgress, CleanUpHdl ) );
}
-// ------------------------------------------------------------------------
+
void SearchThread::ImplSearch( const INetURLObject& rStartURL,
const ::std::vector< OUString >& rFormats,
@@ -200,9 +200,9 @@ void SearchThread::ImplSearch( const INetURLObject& rStartURL,
}
}
-// ------------------
+
// - SearchProgress -
-// ------------------
+
SearchProgress::SearchProgress( Window* pParent, const INetURLObject& rStartURL )
: ModalDialog(pParent, "GallerySearchProgress", "cui/ui/gallerysearchprogress.ui")
@@ -216,7 +216,7 @@ SearchProgress::SearchProgress( Window* pParent, const INetURLObject& rStartURL
m_pBtnCancel->SetClickHdl( LINK( this, SearchProgress, ClickCancelBtn ) );
}
-// ------------------------------------------------------------------------
+
void SearchProgress::Terminate()
{
@@ -224,7 +224,7 @@ void SearchProgress::Terminate()
maSearchThread->terminate();
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SearchProgress, ClickCancelBtn)
{
@@ -232,7 +232,7 @@ IMPL_LINK_NOARG(SearchProgress, ClickCancelBtn)
return 0L;
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SearchProgress, CleanUpHdl)
{
@@ -245,7 +245,7 @@ IMPL_LINK_NOARG(SearchProgress, CleanUpHdl)
return 0L;
}
-// ------------------------------------------------------------------------
+
short SearchProgress::Execute()
{
@@ -255,7 +255,7 @@ short SearchProgress::Execute()
return RET_CANCEL;
}
-// ------------------------------------------------------------------------
+
void SearchProgress::StartExecuteModal( const Link& rEndDialogHdl )
{
@@ -266,9 +266,9 @@ void SearchProgress::StartExecuteModal( const Link& rEndDialogHdl )
ModalDialog::StartExecuteModal( rEndDialogHdl );
}
-// --------------
+
// - TakeThread -
-// --------------
+
TakeThread::TakeThread(
TakeProgress* pProgess,
@@ -282,13 +282,13 @@ TakeThread::TakeThread(
{
}
-// ------------------------------------------------------------------------
+
TakeThread::~TakeThread()
{
}
-// ------------------------------------------------------------------------
+
void TakeThread::execute()
{
@@ -334,9 +334,9 @@ void TakeThread::execute()
Application::PostUserEvent( LINK( mpProgress, TakeProgress, CleanUpHdl ) );
}
-// ----------------
+
// - TakeProgress -
-// ----------------
+
TakeProgress::TakeProgress( Window* pWindow ) :
ModalDialog ( pWindow, CUI_RES( RID_SVXDLG_GALLERY_TAKE_PROGRESS ) ),
@@ -349,7 +349,7 @@ TakeProgress::TakeProgress( Window* pWindow ) :
aBtnCancel.SetClickHdl( LINK( this, TakeProgress, ClickCancelBtn ) );
}
-// ------------------------------------------------------------------------
+
void TakeProgress::Terminate()
@@ -358,7 +358,7 @@ void TakeProgress::Terminate()
maTakeThread->terminate();
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(TakeProgress, ClickCancelBtn)
{
@@ -366,7 +366,7 @@ IMPL_LINK_NOARG(TakeProgress, ClickCancelBtn)
return 0L;
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(TakeProgress, CleanUpHdl)
{
@@ -420,7 +420,7 @@ IMPL_LINK_NOARG(TakeProgress, CleanUpHdl)
return 0L;
}
-// ------------------------------------------------------------------------
+
short TakeProgress::Execute()
{
@@ -430,7 +430,7 @@ short TakeProgress::Execute()
return RET_CANCEL;
}
-// ------------------------------------------------------------------------
+
void TakeProgress::StartExecuteModal( const Link& rEndDialogHdl )
{
@@ -441,9 +441,9 @@ void TakeProgress::StartExecuteModal( const Link& rEndDialogHdl )
ModalDialog::StartExecuteModal( rEndDialogHdl );
}
-// ---------------------
+
// - ActualizeProgress -
-// ---------------------
+
ActualizeProgress::ActualizeProgress( Window* pWindow, GalleryTheme* pThm ) :
ModalDialog ( pWindow, CUI_RES( RID_SVXDLG_GALLERY_ACTUALIZE_PROGRESS ) ),
@@ -457,7 +457,7 @@ ActualizeProgress::ActualizeProgress( Window* pWindow, GalleryTheme* pThm ) :
aBtnCancel.SetClickHdl( LINK( this, ActualizeProgress, ClickCancelBtn ) );
}
-// ------------------------------------------------------------------------
+
short ActualizeProgress::Execute()
{
@@ -477,7 +477,7 @@ short ActualizeProgress::Execute()
return nRet;
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(ActualizeProgress, ClickCancelBtn)
{
@@ -487,7 +487,7 @@ IMPL_LINK_NOARG(ActualizeProgress, ClickCancelBtn)
return 0L;
}
-// ------------------------------------------------------------------------
+
IMPL_LINK( ActualizeProgress, TimeoutHdl, Timer*, _pTimer )
{
@@ -503,7 +503,7 @@ IMPL_LINK( ActualizeProgress, TimeoutHdl, Timer*, _pTimer )
return 0;
}
-// ------------------------------------------------------------------------
+
IMPL_LINK( ActualizeProgress, ActualizeHdl, INetURLObject*, pURL )
{
@@ -531,9 +531,9 @@ TitleDialog::TitleDialog(Window* pParent, const OUString& rOldTitle)
m_pEdit->GrabFocus();
}
-// -------------------
+
// - GalleryIdDialog -
-// -------------------
+
GalleryIdDialog::GalleryIdDialog( Window* pParent, GalleryTheme* _pThm )
: ModalDialog(pParent, "GalleryThemeIDDialog", "cui/ui/gallerythemeiddialog.ui")
@@ -552,7 +552,7 @@ GalleryIdDialog::GalleryIdDialog( Window* pParent, GalleryTheme* _pThm )
m_pBtnOk->SetClickHdl( LINK( this, GalleryIdDialog, ClickOkHdl ) );
}
-// -----------------------------------------------------------------------------
+
IMPL_LINK_NOARG(GalleryIdDialog, ClickOkHdl)
{
@@ -586,9 +586,9 @@ IMPL_LINK_NOARG(GalleryIdDialog, ClickOkHdl)
}
-// --------------------------
+
// - GalleryThemeProperties -
-// --------------------------
+
GalleryThemeProperties::GalleryThemeProperties(Window* pParent,
ExchangeData* _pData, SfxItemSet* pItemSet)
@@ -614,7 +614,7 @@ GalleryThemeProperties::GalleryThemeProperties(Window* pParent,
SetText( aText );
}
-// ------------------------------------------------------------------------
+
void GalleryThemeProperties::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
{
@@ -624,9 +624,9 @@ void GalleryThemeProperties::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
( (TPGalleryThemeProperties&) rPage ).SetXChgData( pData );
}
-// -------------------------
+
// - TPGalleryThemeGeneral -
-// -------------------------
+
TPGalleryThemeGeneral::TPGalleryThemeGeneral( Window* pParent, const SfxItemSet& rSet ) :
SfxTabPage ( pParent, CUI_RES( RID_SVXTABPAGE_GALLERY_GENERAL ), rSet ),
@@ -652,7 +652,7 @@ TPGalleryThemeGeneral::TPGalleryThemeGeneral( Window* pParent, const SfxItemSet&
aEdtMSName.SetAccessibleRelationLabeledBy( &aFiMSImage );
}
-// ------------------------------------------------------------------------
+
void TPGalleryThemeGeneral::SetXChgData( ExchangeData* _pData )
{
@@ -711,7 +711,7 @@ void TPGalleryThemeGeneral::SetXChgData( ExchangeData* _pData )
aFiMSImage.SetImage( Image( Bitmap( CUI_RES( nId ) ), COL_LIGHTMAGENTA ) );
}
-// ------------------------------------------------------------------------
+
sal_Bool TPGalleryThemeGeneral::FillItemSet( SfxItemSet& /*rSet*/ )
{
@@ -719,16 +719,16 @@ sal_Bool TPGalleryThemeGeneral::FillItemSet( SfxItemSet& /*rSet*/ )
return sal_True;
}
-// ------------------------------------------------------------------------
+
SfxTabPage* TPGalleryThemeGeneral::Create( Window* pParent, const SfxItemSet& rSet )
{
return new TPGalleryThemeGeneral( pParent, rSet );
}
-// ----------------------------
+
// - TPGalleryThemeProperties -
-// ----------------------------
+
TPGalleryThemeProperties::TPGalleryThemeProperties( Window* pWindow, const SfxItemSet& rSet ) :
SfxTabPage ( pWindow, CUI_RES( RID_SVXTABPAGE_GALLERYTHEME_FILES ), rSet ),
@@ -755,7 +755,7 @@ TPGalleryThemeProperties::TPGalleryThemeProperties( Window* pWindow, const SfxIt
aLbxFound.SetAccessibleRelationLabeledBy(&aLbxFound);
}
-// ------------------------------------------------------------------------
+
void TPGalleryThemeProperties::SetXChgData( ExchangeData* _pData )
{
@@ -781,7 +781,7 @@ void TPGalleryThemeProperties::SetXChgData( ExchangeData* _pData )
aCbxPreview.Disable();
}
-// ------------------------------------------------------------------------
+
void TPGalleryThemeProperties::StartSearchFiles( const OUString& _rFolderURL, short _nDlgResult )
{
@@ -795,7 +795,7 @@ void TPGalleryThemeProperties::StartSearchFiles( const OUString& _rFolderURL, sh
nCurFilterPos = aCbbFileType.GetEntryPos( aCbbFileType.GetText() );
}
-// ------------------------------------------------------------------------
+
TPGalleryThemeProperties::~TPGalleryThemeProperties()
{
@@ -807,14 +807,14 @@ TPGalleryThemeProperties::~TPGalleryThemeProperties()
}
}
-// ------------------------------------------------------------------------
+
SfxTabPage* TPGalleryThemeProperties::Create( Window* pParent, const SfxItemSet& rSet )
{
return new TPGalleryThemeProperties( pParent, rSet );
}
-// ------------------------------------------------------------------------
+
OUString TPGalleryThemeProperties::addExtension( const OUString& _rDisplayText, const OUString& _rExtension )
{
@@ -833,7 +833,7 @@ OUString TPGalleryThemeProperties::addExtension( const OUString& _rDisplayText,
return sRet;
}
-// ------------------------------------------------------------------------
+
void TPGalleryThemeProperties::FillFilterList()
{
@@ -975,7 +975,7 @@ void TPGalleryThemeProperties::FillFilterList()
aCbbFileType.SetText( pFilterEntry->aFilterName );
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(TPGalleryThemeProperties, SelectFileTypeHdl)
{
@@ -992,7 +992,7 @@ IMPL_LINK_NOARG(TPGalleryThemeProperties, SelectFileTypeHdl)
return 0L;
}
-// ------------------------------------------------------------------------
+
void TPGalleryThemeProperties::SearchFiles()
{
@@ -1008,7 +1008,7 @@ void TPGalleryThemeProperties::SearchFiles()
pProgress->StartExecuteModal( LINK( this, TPGalleryThemeProperties, EndSearchProgressHdl ) );
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(TPGalleryThemeProperties, ClickSearchHdl)
{
@@ -1049,7 +1049,7 @@ IMPL_LINK_NOARG(TPGalleryThemeProperties, ClickSearchHdl)
return 0L;
}
-// ------------------------------------------------------------------------
+
void TPGalleryThemeProperties::TakeFiles()
{
@@ -1064,7 +1064,7 @@ void TPGalleryThemeProperties::TakeFiles()
}
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(TPGalleryThemeProperties, ClickPreviewHdl)
{
@@ -1086,7 +1086,7 @@ IMPL_LINK_NOARG(TPGalleryThemeProperties, ClickPreviewHdl)
return 0;
}
-// ------------------------------------------------------------------------
+
void TPGalleryThemeProperties::DoPreview()
{
@@ -1115,7 +1115,7 @@ void TPGalleryThemeProperties::DoPreview()
}
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(TPGalleryThemeProperties, ClickTakeHdl)
{
@@ -1142,7 +1142,7 @@ IMPL_LINK_NOARG(TPGalleryThemeProperties, ClickTakeHdl)
return 0L;
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(TPGalleryThemeProperties, ClickTakeAllHdl)
{
@@ -1156,7 +1156,7 @@ IMPL_LINK_NOARG(TPGalleryThemeProperties, ClickTakeAllHdl)
return 0L;
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(TPGalleryThemeProperties, SelectFoundHdl)
{
@@ -1189,7 +1189,7 @@ IMPL_LINK_NOARG(TPGalleryThemeProperties, SelectFoundHdl)
return 0;
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(TPGalleryThemeProperties, DClickFoundHdl)
{
@@ -1204,7 +1204,7 @@ IMPL_LINK_NOARG(TPGalleryThemeProperties, DClickFoundHdl)
return 0;
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(TPGalleryThemeProperties, PreviewTimerHdl)
{
@@ -1213,7 +1213,7 @@ IMPL_LINK_NOARG(TPGalleryThemeProperties, PreviewTimerHdl)
return 0L;
}
-// ------------------------------------------------------------------------
+
IMPL_LINK_NOARG(TPGalleryThemeProperties, EndSearchProgressHdl)
{
@@ -1234,7 +1234,7 @@ IMPL_LINK_NOARG(TPGalleryThemeProperties, EndSearchProgressHdl)
return 0L;
}
-// ------------------------------------------------------------------------
+
IMPL_LINK( TPGalleryThemeProperties, DialogClosedHdl, ::com::sun::star::ui::dialogs::DialogClosedEvent*, pEvt )
{
diff --git a/cui/source/dialogs/cuigrfflt.cxx b/cui/source/dialogs/cuigrfflt.cxx
index c67d06439f47..ae2ada60750b 100644
--- a/cui/source/dialogs/cuigrfflt.cxx
+++ b/cui/source/dialogs/cuigrfflt.cxx
@@ -54,7 +54,7 @@ Size GraphicPreviewWindow::GetOptimalSize() const
return LogicToPixel(Size(81, 73), MAP_APPFONT);
}
-// -----------------------------------------------------------------------------
+
void GraphicPreviewWindow::Paint( const Rectangle& rRect )
{
@@ -78,7 +78,7 @@ void GraphicPreviewWindow::Paint( const Rectangle& rRect )
}
}
-// -----------------------------------------------------------------------------
+
void GraphicPreviewWindow::SetPreview( const Graphic& rGraphic )
{
@@ -154,7 +154,7 @@ GraphicFilterDialog::GraphicFilterDialog(Window* pParent,
mpPreview->init(&rGraphic, maModifyHdl);
}
-// -----------------------------------------------------------------------------
+
IMPL_LINK_NOARG(GraphicFilterDialog, ImplPreviewTimeoutHdl)
{
@@ -165,7 +165,7 @@ IMPL_LINK_NOARG(GraphicFilterDialog, ImplPreviewTimeoutHdl)
return 0;
}
-// -----------------------------------------------------------------------------
+
IMPL_LINK_NOARG(GraphicFilterDialog, ImplModifyHdl)
{
@@ -178,9 +178,9 @@ IMPL_LINK_NOARG(GraphicFilterDialog, ImplModifyHdl)
return 0;
}
-// ----------------
+
// - FilterMosaic -
-// ----------------
+
GraphicFilterMosaic::GraphicFilterMosaic( Window* pParent, const Graphic& rGraphic,
sal_uInt16 nTileWidth, sal_uInt16 nTileHeight, sal_Bool bEnhanceEdges )
@@ -205,7 +205,7 @@ GraphicFilterMosaic::GraphicFilterMosaic( Window* pParent, const Graphic& rGraph
mpMtrWidth->GrabFocus();
}
-// -----------------------------------------------------------------------------
+
Graphic GraphicFilterMosaic::GetFilteredGraphic( const Graphic& rGraphic,
double fScaleX, double fScaleY )
@@ -243,9 +243,9 @@ Graphic GraphicFilterMosaic::GetFilteredGraphic( const Graphic& rGraphic,
return aRet;
}
-// ------------------
+
// - GraphicFilterSmooth -
-// ------------------
+
GraphicFilterSmooth::GraphicFilterSmooth( Window* pParent, const Graphic& rGraphic, double nRadius)
: GraphicFilterDialog(pParent, "SmoothDialog",
@@ -258,7 +258,7 @@ GraphicFilterSmooth::GraphicFilterSmooth( Window* pParent, const Graphic& rGraph
mpMtrRadius->GrabFocus();
}
-// -----------------------------------------------------------------------------
+
Graphic GraphicFilterSmooth::GetFilteredGraphic( const Graphic& rGraphic, double /*fScaleX*/, double /*fScaleY*/ )
{
@@ -287,9 +287,9 @@ Graphic GraphicFilterSmooth::GetFilteredGraphic( const Graphic& rGraphic, double
return aRet;
}
-// ------------------
+
// - GraphicFilterSolarize -
-// ------------------
+
GraphicFilterSolarize::GraphicFilterSolarize( Window* pParent, const Graphic& rGraphic,
sal_uInt8 cGreyThreshold, sal_Bool bInvert )
@@ -306,7 +306,7 @@ GraphicFilterSolarize::GraphicFilterSolarize( Window* pParent, const Graphic& rG
mpCbxInvert->SetToggleHdl( GetModifyHdl() );
}
-// -----------------------------------------------------------------------------
+
Graphic GraphicFilterSolarize::GetFilteredGraphic( const Graphic& rGraphic,
double /*fScaleX*/, double /*fScaleY*/ )
@@ -342,9 +342,9 @@ Graphic GraphicFilterSolarize::GetFilteredGraphic( const Graphic& rGraphic,
return aRet;
}
-// ----------------------
+
// - GraphicFilterSepia -
-// ----------------------
+
GraphicFilterSepia::GraphicFilterSepia( Window* pParent, const Graphic& rGraphic,
sal_uInt16 nSepiaPercent )
@@ -357,7 +357,7 @@ GraphicFilterSepia::GraphicFilterSepia( Window* pParent, const Graphic& rGraphic
mpMtrSepia->SetModifyHdl( GetModifyHdl() );
}
-// -----------------------------------------------------------------------------
+
Graphic GraphicFilterSepia::GetFilteredGraphic( const Graphic& rGraphic,
double /*fScaleX*/, double /*fScaleY*/ )
@@ -383,9 +383,9 @@ Graphic GraphicFilterSepia::GetFilteredGraphic( const Graphic& rGraphic,
return aRet;
}
-// -----------------------
+
// - GraphicFilterPoster -
-// -----------------------
+
GraphicFilterPoster::GraphicFilterPoster(Window* pParent, const Graphic& rGraphic,
sal_uInt16 nPosterCount)
@@ -400,7 +400,7 @@ GraphicFilterPoster::GraphicFilterPoster(Window* pParent, const Graphic& rGraphi
mpNumPoster->SetModifyHdl( GetModifyHdl() );
}
-// -----------------------------------------------------------------------------
+
Graphic GraphicFilterPoster::GetFilteredGraphic( const Graphic& rGraphic,
double /*fScaleX*/, double /*fScaleY*/ )
@@ -426,9 +426,9 @@ Graphic GraphicFilterPoster::GetFilteredGraphic( const Graphic& rGraphic,
return aRet;
}
-// -----------------------
+
// - GraphicFilterEmboss -
-// -----------------------
+
void EmbossControl::MouseButtonDown( const MouseEvent& rEvt )
{
@@ -450,7 +450,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeEmbossControl(Window *pPare
return new EmbossControl(pParent);
}
-// -----------------------------------------------------------------------------
+
GraphicFilterEmboss::GraphicFilterEmboss(Window* pParent,
const Graphic& rGraphic, RECT_POINT eLightSource)
@@ -463,7 +463,7 @@ GraphicFilterEmboss::GraphicFilterEmboss(Window* pParent,
mpCtlLight->GrabFocus();
}
-// -----------------------------------------------------------------------------
+
Graphic GraphicFilterEmboss::GetFilteredGraphic( const Graphic& rGraphic,
double /*fScaleX*/, double /*fScaleY*/ )
diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx
index 0f1efdaf8b50..666863ce0537 100644
--- a/cui/source/dialogs/cuihyperdlg.cxx
+++ b/cui/source/dialogs/cuihyperdlg.cxx
@@ -66,7 +66,7 @@ void SvxHlinkCtrl::StateChanged( sal_uInt16 nSID, SfxItemState eState,
-// -----------------------------------------------------------------------
+
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx
index ededbf44c363..d0bdd78a68e6 100644
--- a/cui/source/dialogs/hangulhanjadlg.cxx
+++ b/cui/source/dialogs/hangulhanjadlg.cxx
@@ -53,7 +53,7 @@ namespace svx
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
- //-------------------------------------------------------------------------
+
namespace
{
class FontSwitch
@@ -103,7 +103,7 @@ namespace svx
::vcl::ControlLayoutData* _pLayoutData = NULL );
};
- //-------------------------------------------------------------------------
+
PseudoRubyText::PseudoRubyText( const OUString& _rPrimary, const OUString& _rSecondary, const RubyPosition _ePosition )
:m_sPrimaryText( _rPrimary )
,m_sSecondaryText( _rSecondary )
@@ -111,7 +111,7 @@ namespace svx
{
}
- //-------------------------------------------------------------------------
+
void PseudoRubyText::Paint( OutputDevice& _rDevice, const Rectangle& _rRect, sal_uInt16 _nTextStyle,
Rectangle* _pPrimaryLocation, Rectangle* _pSecondaryLocation, ::vcl::ControlLayoutData* _pLayoutData )
{
@@ -220,7 +220,7 @@ namespace svx
virtual void Paint( const Rectangle& _rRect );
};
- //-------------------------------------------------------------------------
+
RubyRadioButton::RubyRadioButton( Window* _pParent, const ResId& _rId,
const OUString& _rSecondary, const PseudoRubyText::RubyPosition _ePosition )
:RadioButton( _pParent, _rId )
@@ -228,7 +228,7 @@ namespace svx
{
}
- //-------------------------------------------------------------------------
+
void RubyRadioButton::Paint( const Rectangle& )
{
HideFocus();
@@ -300,7 +300,7 @@ namespace svx
//=========================================================================
//= SuggestionSet
//=========================================================================
- //-------------------------------------------------------------------------
+
SuggestionSet::SuggestionSet( Window* pParent )
: ValueSet( pParent, pParent->GetStyle() | WB_BORDER )
@@ -334,7 +334,7 @@ namespace svx
//=========================================================================
//= SuggestionDisplay
//=========================================================================
- //-------------------------------------------------------------------------
+
SuggestionDisplay::SuggestionDisplay( Window* pParent, const ResId& rResId )
: Control( pParent, rResId )
@@ -498,7 +498,7 @@ namespace svx
//=========================================================================
//= HangulHanjaConversionDialog
//=========================================================================
- //-------------------------------------------------------------------------
+
HangulHanjaConversionDialog::HangulHanjaConversionDialog( Window* _pParent, HHC::ConversionDirection _ePrimaryDirection )
:ModalDialog( _pParent, CUI_RES( RID_SVX_MDLG_HANGULHANJA ) )
,m_pPlayground( new SvxCommonLinguisticControl( this ) )
@@ -607,12 +607,12 @@ namespace svx
m_aSuggestions.SetHelpIds();
}
- //-------------------------------------------------------------------------
+
HangulHanjaConversionDialog::~HangulHanjaConversionDialog( )
{
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::FillSuggestions( const ::com::sun::star::uno::Sequence< OUString >& _rSuggestions )
{
m_aSuggestions.Clear();
@@ -634,43 +634,43 @@ namespace svx
OnSuggestionModified( &m_pPlayground->GetWordInputControl() );
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::SetOptionsChangedHdl( const Link& _rHdl )
{
m_aOptionsChangedLink = _rHdl;
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::SetIgnoreHdl( const Link& _rHdl )
{
m_pPlayground->SetButtonHandler( SvxCommonLinguisticControl::eIgnore, _rHdl );
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::SetIgnoreAllHdl( const Link& _rHdl )
{
m_pPlayground->SetButtonHandler( SvxCommonLinguisticControl::eIgnoreAll, _rHdl );
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::SetChangeHdl( const Link& _rHdl )
{
m_pPlayground->SetButtonHandler( SvxCommonLinguisticControl::eChange, _rHdl );
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::SetChangeAllHdl( const Link& _rHdl )
{
m_pPlayground->SetButtonHandler( SvxCommonLinguisticControl::eChangeAll, _rHdl );
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::SetFindHdl( const Link& _rHdl )
{
m_aFind.SetClickHdl( _rHdl );
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::SetConversionFormatChangedHdl( const Link& _rHdl )
{
m_aSimpleConversion.SetClickHdl( _rHdl );
@@ -682,13 +682,13 @@ namespace svx
m_pHangulBelow->SetClickHdl( _rHdl );
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::SetClickByCharacterHdl( const Link& _rHdl )
{
m_aClickByCharacterLink = _rHdl;
}
- //-------------------------------------------------------------------------
+
IMPL_LINK_NOARG(HangulHanjaConversionDialog, OnSuggestionSelected)
{
m_pPlayground->GetWordInputControl().SetText( m_aSuggestions.GetSelectEntry() );
@@ -696,7 +696,7 @@ namespace svx
return 0L;
}
- //-------------------------------------------------------------------------
+
IMPL_LINK_NOARG(HangulHanjaConversionDialog, OnSuggestionModified)
{
m_aFind.Enable( m_pPlayground->GetWordInputControl().GetSavedValue() != m_pPlayground->GetWordInputControl().GetText() );
@@ -708,7 +708,7 @@ namespace svx
return 0L;
}
- //-------------------------------------------------------------------------
+
IMPL_LINK( HangulHanjaConversionDialog, ClickByCharacterHdl, CheckBox *, pBox )
{
m_aClickByCharacterLink.Call(pBox);
@@ -719,7 +719,7 @@ namespace svx
return 0L;
}
- //-------------------------------------------------------------------------
+
IMPL_LINK( HangulHanjaConversionDialog, OnConversionDirectionClicked, CheckBox *, pBox )
{
CheckBox *pOtherBox = 0;
@@ -738,7 +738,7 @@ namespace svx
return 0L;
}
- //-------------------------------------------------------------------------
+
IMPL_LINK_NOARG(HangulHanjaConversionDialog, OnClose)
{
Close();
@@ -753,19 +753,19 @@ namespace svx
return 0L;
}
- //-------------------------------------------------------------------------
+
OUString HangulHanjaConversionDialog::GetCurrentString( ) const
{
return m_pPlayground->GetCurrentText( );
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::FocusSuggestion( )
{
m_pPlayground->GetWordInputControl().GrabFocus();
}
- //-------------------------------------------------------------------------
+
namespace
{
void lcl_modifyWindowStyle( Window* _pWin, WinBits _nSet, WinBits _nReset )
@@ -776,7 +776,7 @@ namespace svx
}
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::SetCurrentString( const OUString& _rNewString,
const Sequence< OUString >& _rSuggestions, bool _bOriginatesFromDocument )
{
@@ -821,20 +821,20 @@ namespace svx
}
}
- //-------------------------------------------------------------------------
+
OUString HangulHanjaConversionDialog::GetCurrentSuggestion( ) const
{
return m_pPlayground->GetWordInputControl().GetText();
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::SetByCharacter( bool _bByCharacter )
{
m_aReplaceByChar.Check( _bByCharacter );
m_aSuggestions.DisplayListBox( !_bByCharacter );
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::SetConversionDirectionState(
bool _bTryBothDirections,
HHC::ConversionDirection _ePrimaryConversionDirection )
@@ -854,13 +854,13 @@ namespace svx
}
}
- //-------------------------------------------------------------------------
+
bool HangulHanjaConversionDialog::GetUseBothDirections( ) const
{
return !m_aHangulOnly.IsChecked() && !m_aHanjaOnly.IsChecked();
}
- //-------------------------------------------------------------------------
+
HHC::ConversionDirection HangulHanjaConversionDialog::GetDirection(
HHC::ConversionDirection eDefaultDirection ) const
{
@@ -872,7 +872,7 @@ namespace svx
return eDirection;
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::SetConversionFormat( HHC::ConversionFormat _eType )
{
switch ( _eType )
@@ -889,7 +889,7 @@ namespace svx
}
}
- //-------------------------------------------------------------------------
+
HHC::ConversionFormat HangulHanjaConversionDialog::GetConversionFormat( ) const
{
if ( m_aSimpleConversion.IsChecked() )
@@ -911,7 +911,7 @@ namespace svx
return HHC::eSimpleConversion;
}
- //-------------------------------------------------------------------------
+
void HangulHanjaConversionDialog::EnableRubySupport( bool bVal )
{
m_pHanjaAbove->Enable( bVal );
@@ -924,7 +924,7 @@ namespace svx
//=========================================================================
//= HangulHanjaOptionsDialog
//=========================================================================
- //-------------------------------------------------------------------------
+
void HangulHanjaOptionsDialog::Init( void )
{
@@ -1174,7 +1174,7 @@ namespace svx
//=========================================================================
//= HangulHanjaNewDictDialog
//=========================================================================
- //-------------------------------------------------------------------------
+
IMPL_LINK_NOARG(HangulHanjaNewDictDialog, OKHdl)
{
@@ -1219,7 +1219,7 @@ namespace svx
//=========================================================================
//= HangulHanjaEditDictDialog
//=========================================================================
- //-------------------------------------------------------------------------
+
class SuggestionList
{
diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx
index 9b812960cfbe..a88ea1a55e43 100644
--- a/cui/source/dialogs/iconcdlg.cxx
+++ b/cui/source/dialogs/iconcdlg.cxx
@@ -76,7 +76,7 @@ IconChoicePage::IconChoicePage( Window *pParent, const ResId &rResId,
SetStyle ( GetStyle() | WB_DIALOGCONTROL | WB_HIDE );
}
-// -----------------------------------------------------------------------
+
IconChoicePage::~IconChoicePage()
{
@@ -92,7 +92,7 @@ void IconChoicePage::ActivatePage( const SfxItemSet& )
{
}
-// -----------------------------------------------------------------------
+
int IconChoicePage::DeactivatePage( SfxItemSet* )
{
@@ -109,14 +109,14 @@ void IconChoicePage::FillUserData()
{
}
-// -----------------------------------------------------------------------
+
sal_Bool IconChoicePage::IsReadOnly() const
{
return sal_False;
}
-// -----------------------------------------------------------------------
+
sal_Bool IconChoicePage::QueryClose()
{
@@ -152,7 +152,7 @@ void IconChoicePage::ImplInitSettings()
}
}
-// -----------------------------------------------------------------------
+
void IconChoicePage::StateChanged( StateChangedType nType )
{
@@ -165,7 +165,7 @@ void IconChoicePage::StateChanged( StateChangedType nType )
}
}
-// -----------------------------------------------------------------------
+
void IconChoicePage::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -248,7 +248,7 @@ IconChoiceDialog::IconChoiceDialog ( Window* pParent, const ResId &rResId,
SetPosSizeCtrls ( sal_True );
}
-// -----------------------------------------------------------------------
+
IconChoiceDialog ::~IconChoiceDialog ()
{
@@ -396,7 +396,7 @@ void IconChoiceDialog::ShowPageImpl ( IconChoicePageData* pData )
pData->pPage->Show();
}
-// -----------------------------------------------------------------------
+
void IconChoiceDialog::HidePageImpl ( IconChoicePageData* pData )
{
@@ -404,7 +404,7 @@ void IconChoiceDialog::HidePageImpl ( IconChoicePageData* pData )
pData->pPage->Hide();
}
-// -----------------------------------------------------------------------
+
void IconChoiceDialog::ShowPage( sal_uInt16 nId )
{
@@ -680,7 +680,7 @@ IMPL_LINK_NOARG(IconChoiceDialog, OkHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(IconChoiceDialog, ResetHdl)
{
@@ -702,7 +702,7 @@ IMPL_LINK_NOARG(IconChoiceDialog, ResetHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(IconChoiceDialog, CancelHdl)
{
@@ -774,7 +774,7 @@ void IconChoiceDialog::ActivatePageImpl ()
}
-// -----------------------------------------------------------------------
+
sal_Bool IconChoiceDialog::DeActivatePageImpl ()
{
@@ -841,7 +841,7 @@ sal_Bool IconChoiceDialog::DeActivatePageImpl ()
return sal_False;
}
-// -----------------------------------------------------------------------
+
void IconChoiceDialog::ResetPageImpl ()
{
@@ -912,7 +912,7 @@ const sal_uInt16* IconChoiceDialog::GetInputRanges( const SfxItemPool& rPool )
return pRanges;
}
-// -----------------------------------------------------------------------
+
void IconChoiceDialog::SetInputSet( const SfxItemSet* pInSet )
{
@@ -927,14 +927,14 @@ void IconChoiceDialog::SetInputSet( const SfxItemSet* pInSet )
}
}
-// -----------------------------------------------------------------------
+
void IconChoiceDialog::PageCreated( sal_uInt16 /*nId*/, IconChoicePage& /*rPage*/ )
{
// not interested in
}
-// -----------------------------------------------------------------------
+
SfxItemSet* IconChoiceDialog::CreateInputItemSet( sal_uInt16 )
{
@@ -959,7 +959,7 @@ short IconChoiceDialog::Execute()
return Dialog::Execute();
}
-// -----------------------------------------------------------------------
+
void IconChoiceDialog::Start( sal_Bool bShow )
{
@@ -974,7 +974,7 @@ void IconChoiceDialog::Start( sal_Bool bShow )
}
-// -----------------------------------------------------------------------
+
sal_Bool IconChoiceDialog::QueryClose()
{
@@ -991,7 +991,7 @@ sal_Bool IconChoiceDialog::QueryClose()
return bRet;
}
-// -----------------------------------------------------------------------
+
void IconChoiceDialog::Start_Impl()
{
@@ -1029,7 +1029,7 @@ void IconChoiceDialog::Start_Impl()
ActivatePageImpl();
}
-// -----------------------------------------------------------------------
+
const SfxItemSet* IconChoiceDialog::GetRefreshedSet()
{
@@ -1097,7 +1097,7 @@ sal_Bool IconChoiceDialog::OK_Impl()
return bEnd;
}
-// -----------------------------------------------------------------------
+
short IconChoiceDialog::Ok()
{
@@ -1146,7 +1146,7 @@ short IconChoiceDialog::Ok()
return _bModified ? RET_OK : RET_CANCEL;
}
-// -----------------------------------------------------------------------
+
void IconChoiceDialog::FocusOnIcon( sal_uInt16 nId )
{
diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx
index 98df52dadfde..b18821088f1f 100644
--- a/cui/source/dialogs/insdlg.cxx
+++ b/cui/source/dialogs/insdlg.cxx
@@ -100,7 +100,7 @@ InsertObjectDialog_Impl::InsertObjectDialog_Impl(Window * pParent, const OString
{
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG_INLINE_START(SvInsertOleDlg, DoubleClickHdl)
{
@@ -109,7 +109,7 @@ IMPL_LINK_NOARG_INLINE_START(SvInsertOleDlg, DoubleClickHdl)
}
IMPL_LINK_INLINE_END( SvInsertOleDlg, DoubleClickHdl, ListBox *, pListBox )
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvInsertOleDlg, BrowseHdl)
{
@@ -140,7 +140,7 @@ IMPL_LINK_NOARG(SvInsertOleDlg, BrowseHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvInsertOleDlg, RadioHdl)
{
@@ -157,14 +157,14 @@ IMPL_LINK_NOARG(SvInsertOleDlg, RadioHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
void SvInsertOleDlg::SelectDefault()
{
m_pLbObjecttype->SelectEntryPos(0);
}
-// -----------------------------------------------------------------------
+
SvInsertOleDlg::SvInsertOleDlg
(
Window* pParent,
@@ -382,7 +382,7 @@ IMPL_LINK_NOARG(SvInsertPlugInDialog, BrowseHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
SvInsertPlugInDialog::SvInsertPlugInDialog(Window* pParent,
const uno::Reference < embed::XStorage >& xStorage)
@@ -400,7 +400,7 @@ SvInsertPlugInDialog::~SvInsertPlugInDialog()
delete m_pURL;
}
-// -----------------------------------------------------------------------
+
static void Plugin_ImplFillCommandSequence( const OUString& aCommands, uno::Sequence< beans::PropertyValue >& aCommandSequence )
{
@@ -692,7 +692,7 @@ short SfxInsertFloatingFrameDialog::Execute()
return nRet;
}
-//------------------------------------------------------------------------------
+
IMPL_STATIC_LINK( SfxInsertFloatingFrameDialog, CheckHdl, CheckBox*, pCB )
{
@@ -715,7 +715,7 @@ IMPL_STATIC_LINK( SfxInsertFloatingFrameDialog, CheckHdl, CheckBox*, pCB )
return 0L;
}
-//------------------------------------------------------------------------------
+
IMPL_STATIC_LINK( SfxInsertFloatingFrameDialog, OpenHdl, PushButton*, EMPTYARG )
{
diff --git a/cui/source/dialogs/multifil.cxx b/cui/source/dialogs/multifil.cxx
index 0eca236620c3..a0b10a2f973b 100644
--- a/cui/source/dialogs/multifil.cxx
+++ b/cui/source/dialogs/multifil.cxx
@@ -124,7 +124,7 @@ IMPL_LINK( SvxMultiFileDialog, AddHdl_Impl, PushButton *, pBtn )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxMultiFileDialog, DelHdl_Impl)
{
@@ -143,7 +143,7 @@ IMPL_LINK_NOARG(SvxMultiFileDialog, DelHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
SvxMultiFileDialog::SvxMultiFileDialog( Window* pParent, sal_Bool bEmptyAllowed ) :
@@ -157,7 +157,7 @@ SvxMultiFileDialog::SvxMultiFileDialog( Window* pParent, sal_Bool bEmptyAllowed
aDelBtn.Enable();
}
-// -----------------------------------------------------------------------
+
SvxMultiFileDialog::~SvxMultiFileDialog()
{
diff --git a/cui/source/dialogs/multipat.cxx b/cui/source/dialogs/multipat.cxx
index 1fa83cb323d4..21233dd573d9 100644
--- a/cui/source/dialogs/multipat.cxx
+++ b/cui/source/dialogs/multipat.cxx
@@ -65,7 +65,7 @@ IMPL_LINK_NOARG(SvxMultiPathDialog, SelectHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxMultiPathDialog, CheckHdl_Impl, svx::SvxRadioButtonListBox *, pBox )
{
@@ -76,7 +76,7 @@ IMPL_LINK( SvxMultiPathDialog, CheckHdl_Impl, svx::SvxRadioButtonListBox *, pBox
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxMultiPathDialog, AddHdl_Impl)
{
@@ -128,7 +128,7 @@ IMPL_LINK_NOARG(SvxMultiPathDialog, AddHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxMultiPathDialog, DelHdl_Impl)
{
@@ -174,7 +174,7 @@ IMPL_LINK_NOARG(SvxMultiPathDialog, DelHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
SvxMultiPathDialog::SvxMultiPathDialog( Window* pParent, sal_Bool bEmptyAllowed ) :
@@ -214,7 +214,7 @@ SvxMultiPathDialog::SvxMultiPathDialog( Window* pParent, sal_Bool bEmptyAllowed
aDelBtn.SetAccessibleRelationMemberOf(&aPathLB);
}
-// -----------------------------------------------------------------------
+
SvxMultiPathDialog::~SvxMultiPathDialog()
{
@@ -230,7 +230,7 @@ SvxMultiPathDialog::~SvxMultiPathDialog()
delete pImpl;
}
-// -----------------------------------------------------------------------
+
OUString SvxMultiPathDialog::GetPath() const
{
@@ -268,7 +268,7 @@ OUString SvxMultiPathDialog::GetPath() const
return sNewPath;
}
-// -----------------------------------------------------------------------
+
void SvxMultiPathDialog::SetPath( const OUString& rPath )
{
@@ -313,7 +313,7 @@ void SvxMultiPathDialog::SetPath( const OUString& rPath )
SelectHdl_Impl( NULL );
}
-// -----------------------------------------------------------------------
+
void SvxMultiPathDialog::SetClassPathMode()
{
@@ -322,14 +322,14 @@ void SvxMultiPathDialog::SetClassPathMode()
aPathFL.SetText( CUI_RES( RID_SVXSTR_ARCHIVE_HEADLINE ) );
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxMultiPathDialog::IsClassPathMode() const
{
return pImpl->bIsClassPathMode;
}
-// -----------------------------------------------------------------------
+
void SvxMultiPathDialog::EnableRadioButtonMode()
{
diff --git a/cui/source/dialogs/postdlg.cxx b/cui/source/dialogs/postdlg.cxx
index e4ba4c047b6a..d430bdb75c45 100644
--- a/cui/source/dialogs/postdlg.cxx
+++ b/cui/source/dialogs/postdlg.cxx
@@ -121,7 +121,7 @@ SvxPostItDialog::SvxPostItDialog(Window* pParent, const SfxItemSet& rCoreSet,
SetText( get<FixedText>("alttitle")->GetText() );
}
-// -----------------------------------------------------------------------
+
SvxPostItDialog::~SvxPostItDialog()
{
@@ -129,7 +129,7 @@ SvxPostItDialog::~SvxPostItDialog()
pOutSet = 0;
}
-// -----------------------------------------------------------------------
+
void SvxPostItDialog::ShowLastAuthor(const OUString& rAuthor, const OUString& rDate)
{
@@ -139,7 +139,7 @@ void SvxPostItDialog::ShowLastAuthor(const OUString& rAuthor, const OUString& rD
m_pLastEditFT->SetText( sTxt );
}
-// -----------------------------------------------------------------------
+
sal_uInt16* SvxPostItDialog::GetRanges()
{
@@ -152,7 +152,7 @@ sal_uInt16* SvxPostItDialog::GetRanges()
return pRanges;
}
-// -----------------------------------------------------------------------
+
void SvxPostItDialog::EnableTravel(sal_Bool bNext, sal_Bool bPrev)
{
@@ -160,7 +160,7 @@ void SvxPostItDialog::EnableTravel(sal_Bool bNext, sal_Bool bPrev)
m_pNextBtn->Enable(bNext);
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG_INLINE_START(SvxPostItDialog, PrevHdl)
{
@@ -169,7 +169,7 @@ IMPL_LINK_NOARG_INLINE_START(SvxPostItDialog, PrevHdl)
}
IMPL_LINK_NOARG_INLINE_END(SvxPostItDialog, PrevHdl)
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG_INLINE_START(SvxPostItDialog, NextHdl)
{
@@ -178,7 +178,7 @@ IMPL_LINK_NOARG_INLINE_START(SvxPostItDialog, NextHdl)
}
IMPL_LINK_NOARG_INLINE_END(SvxPostItDialog, NextHdl)
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPostItDialog, Stamp)
{
@@ -208,7 +208,7 @@ IMPL_LINK_NOARG(SvxPostItDialog, Stamp)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPostItDialog, OKHdl)
{
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
index b47fa2e4fa51..5b22625109ab 100644
--- a/cui/source/dialogs/scriptdlg.cxx
+++ b/cui/source/dialogs/scriptdlg.cxx
@@ -423,9 +423,9 @@ void SFTreeListBox::ExpandedHdl()
{
}
-// ----------------------------------------------------------------------------
+
// CuiInputDialog ------------------------------------------------------------
-// ----------------------------------------------------------------------------
+
CuiInputDialog::CuiInputDialog(Window * pParent, sal_uInt16 nMode )
: ModalDialog(pParent, "NewLibDialog",
"cui/ui/newlibdialog.ui")
@@ -451,9 +451,9 @@ CuiInputDialog::CuiInputDialog(Window * pParent, sal_uInt16 nMode )
}
}
-// ----------------------------------------------------------------------------
+
// ScriptOrgDialog ------------------------------------------------------------
-// ----------------------------------------------------------------------------
+
SvxScriptOrgDialog::SvxScriptOrgDialog( Window* pParent, OUString language )
: SfxModalDialog(pParent, "ScriptOrganizerDialog",
"cui/ui/scriptorganizer.ui")
diff --git a/cui/source/dialogs/showcols.cxx b/cui/source/dialogs/showcols.cxx
index d6d1ab001413..b16642e7b72f 100644
--- a/cui/source/dialogs/showcols.cxx
+++ b/cui/source/dialogs/showcols.cxx
@@ -34,7 +34,7 @@
// FmShowColsDialog
//==========================================================================
DBG_NAME(FmShowColsDialog)
-//--------------------------------------------------------------------------
+
FmShowColsDialog::FmShowColsDialog(Window* pParent)
: ModalDialog(pParent, "ShowColDialog", "cui/ui/showcoldialog.ui")
{
@@ -46,7 +46,7 @@ FmShowColsDialog::FmShowColsDialog(Window* pParent)
m_pOK->SetClickHdl( LINK( this, FmShowColsDialog, OnClickedOk ) );
}
-//--------------------------------------------------------------------------
+
IMPL_LINK_NOARG(FmShowColsDialog, OnClickedOk)
{
DBG_ASSERT(m_xColumns.is(), "FmShowColsDialog::OnClickedOk : you should call SetColumns before executing the dialog !");
@@ -74,7 +74,7 @@ IMPL_LINK_NOARG(FmShowColsDialog, OnClickedOk)
return 0L;
}
-//--------------------------------------------------------------------------
+
void FmShowColsDialog::SetColumns(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer>& xCols)
{
DBG_ASSERT(xCols.is(), "FmShowColsDialog::SetColumns : invalid columns !");
diff --git a/cui/source/dialogs/srchxtra.cxx b/cui/source/dialogs/srchxtra.cxx
index 16a043428910..d13ce270845e 100644
--- a/cui/source/dialogs/srchxtra.cxx
+++ b/cui/source/dialogs/srchxtra.cxx
@@ -171,7 +171,7 @@ SvxSearchAttributeDialog::SvxSearchAttributeDialog(Window* pParent,
m_pAttrLB->SelectEntryPos( 0 );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxSearchAttributeDialog, OKHdl)
{
diff --git a/cui/source/dialogs/zoom.cxx b/cui/source/dialogs/zoom.cxx
index 019e43c0b46b..e369d03ef2fa 100644
--- a/cui/source/dialogs/zoom.cxx
+++ b/cui/source/dialogs/zoom.cxx
@@ -48,7 +48,7 @@ sal_uInt16 SvxZoomDialog::GetFactor() const
return SPECIAL_FACTOR;
}
-// -----------------------------------------------------------------------
+
void SvxZoomDialog::SetFactor( sal_uInt16 nNewFactor, sal_uInt16 nBtnId )
{
@@ -91,7 +91,7 @@ void SvxZoomDialog::SetFactor( sal_uInt16 nNewFactor, sal_uInt16 nBtnId )
}
}
-// -----------------------------------------------------------------------
+
void SvxZoomDialog::HideButton( sal_uInt16 nBtnId )
{
@@ -114,7 +114,7 @@ void SvxZoomDialog::HideButton( sal_uInt16 nBtnId )
}
}
-// -----------------------------------------------------------------------
+
void SvxZoomDialog::SetLimits( sal_uInt16 nMin, sal_uInt16 nMax )
{
@@ -125,7 +125,7 @@ void SvxZoomDialog::SetLimits( sal_uInt16 nMin, sal_uInt16 nMax )
m_pUserEdit->SetLast( nMax );
}
-// -----------------------------------------------------------------------
+
SvxZoomDialog::SvxZoomDialog( Window* pParent, const SfxItemSet& rCoreSet )
: SfxModalDialog(pParent, "ZoomDialog", "cui/ui/zoomdialog.ui")
@@ -285,7 +285,7 @@ SvxZoomDialog::SvxZoomDialog( Window* pParent, const SfxItemSet& rCoreSet )
}
}
-// -----------------------------------------------------------------------
+
SvxZoomDialog::~SvxZoomDialog()
{
@@ -293,7 +293,7 @@ SvxZoomDialog::~SvxZoomDialog()
pOutSet = 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxZoomDialog, UserHdl, RadioButton *, pBtn )
{
@@ -309,7 +309,7 @@ IMPL_LINK( SvxZoomDialog, UserHdl, RadioButton *, pBtn )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxZoomDialog, SpinHdl)
{
@@ -319,7 +319,7 @@ IMPL_LINK_NOARG(SvxZoomDialog, SpinHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxZoomDialog, ViewLayoutUserHdl, RadioButton *, pBtn )
{
@@ -351,7 +351,7 @@ IMPL_LINK( SvxZoomDialog, ViewLayoutUserHdl, RadioButton *, pBtn )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxZoomDialog, ViewLayoutSpinHdl, NumericField *, pEdt )
{
@@ -371,7 +371,7 @@ IMPL_LINK( SvxZoomDialog, ViewLayoutSpinHdl, NumericField *, pEdt )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxZoomDialog, ViewLayoutCheckHdl, CheckBox *, pChk )
{
@@ -383,7 +383,7 @@ IMPL_LINK( SvxZoomDialog, ViewLayoutCheckHdl, CheckBox *, pChk )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxZoomDialog, OKHdl, Button *, pBtn )
{
diff --git a/cui/source/factory/init.cxx b/cui/source/factory/init.cxx
index a903d19269c8..12d1316f57cc 100644
--- a/cui/source/factory/init.cxx
+++ b/cui/source/factory/init.cxx
@@ -20,7 +20,7 @@
#include <vcl/msgbox.hxx>
#include "cuicharmap.hxx"
-// ------------------------------------------------------------------------
+
// hook to call special character dialog for edits
// caution: needs C-Linkage since dynamically loaded via symbol name
extern "C"
diff --git a/cui/source/options/cfgchart.cxx b/cui/source/options/cfgchart.cxx
index b128312c182c..90122e166be4 100644
--- a/cui/source/options/cfgchart.cxx
+++ b/cui/source/options/cfgchart.cxx
@@ -272,9 +272,9 @@ void SvxChartOptions::Notify( const com::sun::star::uno::Sequence< OUString >& )
{
}
-// --------------------
+
// class SvxChartColorTableItem
-// --------------------
+
SvxChartColorTableItem::SvxChartColorTableItem( sal_uInt16 nWhich_, const SvxChartColorTable& aTable ) :
SfxPoolItem( nWhich_ ),
diff --git a/cui/source/options/connpoolconfig.cxx b/cui/source/options/connpoolconfig.cxx
index 1f4a2b29cfdb..254fd12cee4f 100644
--- a/cui/source/options/connpoolconfig.cxx
+++ b/cui/source/options/connpoolconfig.cxx
@@ -36,42 +36,42 @@ namespace offapp
using namespace ::utl;
using namespace ::com::sun::star::uno;
- //--------------------------------------------------------------------
+
static const OUString& getConnectionPoolNodeName()
{
static OUString s_sNodeName("org.openoffice.Office.DataAccess/ConnectionPool" );
return s_sNodeName;
}
- //--------------------------------------------------------------------
+
static const OUString& getEnablePoolingNodeName()
{
static OUString s_sNodeName("EnablePooling");
return s_sNodeName;
}
- //--------------------------------------------------------------------
+
static const OUString& getDriverSettingsNodeName()
{
static OUString s_sNodeName("DriverSettings");
return s_sNodeName;
}
- //--------------------------------------------------------------------
+
static const OUString& getDriverNameNodeName()
{
static OUString s_sNodeName("DriverName");
return s_sNodeName;
}
- //--------------------------------------------------------------------
+
static const OUString& getEnableNodeName()
{
static OUString s_sNodeName("Enable");
return s_sNodeName;
}
- //--------------------------------------------------------------------
+
static const OUString& getTimeoutNodeName()
{
static OUString s_sNodeName("Timeout");
@@ -81,7 +81,7 @@ namespace offapp
//====================================================================
//= ConnectionPoolConfig
//====================================================================
- //--------------------------------------------------------------------
+
void ConnectionPoolConfig::GetOptions(SfxItemSet& _rFillItems)
{
// the config node where all pooling relevant info are stored under
@@ -146,7 +146,7 @@ namespace offapp
_rFillItems.Put(DriverPoolingSettingsItem(SID_SB_DRIVER_TIMEOUTS, aSettings));
}
- //--------------------------------------------------------------------
+
void ConnectionPoolConfig::SetOptions(const SfxItemSet& _rSourceItems)
{
// the config node where all pooling relevant info are stored under
diff --git a/cui/source/options/connpooloptions.cxx b/cui/source/options/connpooloptions.cxx
index d58d38de284c..4c6adee5dc31 100644
--- a/cui/source/options/connpooloptions.cxx
+++ b/cui/source/options/connpooloptions.cxx
@@ -88,7 +88,7 @@ namespace offapp
OUString implGetCellText(DriverPoolingSettings::const_iterator _rPos, sal_uInt16 _nColId) const;
};
- //--------------------------------------------------------------------
+
DriverListControl::DriverListControl(Window* _pParent)
:EditBrowseBox(_pParent, EBBF_NOROWPICTURE, BROWSER_AUTO_VSCROLL | BROWSER_AUTO_HSCROLL | BROWSER_HIDECURSOR | BROWSER_AUTOSIZE_LASTCOL | WB_BORDER)
,m_aSeekRow(m_aSettings.end())
@@ -105,14 +105,14 @@ namespace offapp
return new DriverListControl(pParent);
}
- //--------------------------------------------------------------------
+
sal_Bool DriverListControl::IsTabAllowed(sal_Bool /*_bForward*/) const
{
// no travinling within the fields via RETURN and TAB
return sal_False;
}
- //--------------------------------------------------------------------
+
sal_Bool DriverListControl::isModified() const
{
if (m_aSettings.size() != m_aSavedSettings.size())
@@ -130,7 +130,7 @@ namespace offapp
return sal_False;
}
- //--------------------------------------------------------------------
+
void DriverListControl::Init()
{
EditBrowseBox::Init();
@@ -144,7 +144,7 @@ namespace offapp
// Attention: the resource of the string is local to the resource of the enclosing dialog!
}
- //--------------------------------------------------------------------
+
void DriverListControl::CursorMoved()
{
EditBrowseBox::CursorMoved();
@@ -159,7 +159,7 @@ namespace offapp
}
}
- //--------------------------------------------------------------------
+
const DriverPooling* DriverListControl::getCurrentRow() const
{
OSL_ENSURE( ( GetCurRow() < m_aSettings.size() ) && ( GetCurRow() >= 0 ),
@@ -171,7 +171,7 @@ namespace offapp
return NULL;
}
- //--------------------------------------------------------------------
+
DriverPooling* DriverListControl::getCurrentRow()
{
OSL_ENSURE( ( GetCurRow() < m_aSettings.size() ) && ( GetCurRow() >= 0 ),
@@ -183,13 +183,13 @@ namespace offapp
return NULL;
}
- //--------------------------------------------------------------------
+
void DriverListControl::updateCurrentRow()
{
Window::Invalidate( GetRowRectPixel( GetCurRow() ), INVALIDATE_UPDATE );
}
- //--------------------------------------------------------------------
+
void DriverListControl::Update(const DriverPoolingSettings& _rSettings)
{
m_aSettings = _rSettings;
@@ -202,13 +202,13 @@ namespace offapp
ActivateCell(1, 0);
}
- //--------------------------------------------------------------------
+
sal_uInt32 DriverListControl::GetTotalCellWidth(long nRow, sal_uInt16 nColId)
{
return GetDataWindow().GetTextWidth(GetCellText(nRow, nColId));
}
- //--------------------------------------------------------------------
+
OUString DriverListControl::implGetCellText(DriverPoolingSettings::const_iterator _rPos, sal_uInt16 _nColId) const
{
OSL_ENSURE(_rPos < m_aSettings.end(), "DriverListControl::implGetCellText: invalid position!");
@@ -232,7 +232,7 @@ namespace offapp
return sReturn;
}
- //--------------------------------------------------------------------
+
void DriverListControl::StateChanged( StateChangedType nStateChange )
{
if (STATE_CHANGE_ENABLE == nStateChange)
@@ -240,7 +240,7 @@ namespace offapp
EditBrowseBox::StateChanged( nStateChange );
}
- //--------------------------------------------------------------------
+
OUString DriverListControl::GetCellText( long nRow, sal_uInt16 nColId ) const
{
OUString sReturn;
@@ -255,25 +255,25 @@ namespace offapp
return sReturn;
}
- //--------------------------------------------------------------------
+
void DriverListControl::InitController( ::svt::CellControllerRef& rController, long nRow, sal_uInt16 nCol )
{
rController->GetWindow().SetText(GetCellText(nRow, nCol));
}
- //--------------------------------------------------------------------
+
::svt::CellController* DriverListControl::GetController( long /*nRow*/, sal_uInt16 /*nCol*/ )
{
return NULL;
}
- //--------------------------------------------------------------------
+
sal_Bool DriverListControl::SaveModified()
{
return sal_True;
}
- //--------------------------------------------------------------------
+
sal_Bool DriverListControl::SeekRow( long _nRow )
{
EditBrowseBox::SeekRow(_nRow);
@@ -286,7 +286,7 @@ namespace offapp
return m_aSeekRow != m_aSettings.end();
}
- //--------------------------------------------------------------------
+
void DriverListControl::PaintCell( OutputDevice& rDev, const Rectangle& rRect, sal_uInt16 nColId ) const
{
OSL_ENSURE(m_aSeekRow != m_aSettings.end(), "DriverListControl::PaintCell: invalid row!");
@@ -314,7 +314,7 @@ namespace offapp
//====================================================================
//= ConnectionPoolOptionsPage
//====================================================================
- //--------------------------------------------------------------------
+
ConnectionPoolOptionsPage::ConnectionPoolOptionsPage(Window* _pParent, const SfxItemSet& _rAttrSet)
: SfxTabPage(_pParent, "ConnPoolPage", "cui/ui/connpooloptions.ui", _rAttrSet)
{
@@ -340,13 +340,13 @@ namespace offapp
m_pDriverList->SetRowChangeHandler( LINK(this, ConnectionPoolOptionsPage, OnDriverRowChanged) );
}
- //--------------------------------------------------------------------
+
SfxTabPage* ConnectionPoolOptionsPage::Create(Window* _pParent, const SfxItemSet& _rAttrSet)
{
return new ConnectionPoolOptionsPage(_pParent, _rAttrSet);
}
- //--------------------------------------------------------------------
+
void ConnectionPoolOptionsPage::implInitControls(const SfxItemSet& _rSet, sal_Bool /*_bFromReset*/)
{
// the enabled flag
@@ -371,7 +371,7 @@ namespace offapp
OnEnabledDisabled(m_pEnablePooling);
}
- //--------------------------------------------------------------------
+
bool ConnectionPoolOptionsPage::Notify( NotifyEvent& _rNEvt )
{
if (EVENT_LOSEFOCUS == _rNEvt.GetType())
@@ -381,7 +381,7 @@ namespace offapp
return SfxTabPage::Notify(_rNEvt);
}
- //--------------------------------------------------------------------
+
sal_Bool ConnectionPoolOptionsPage::FillItemSet(SfxItemSet& _rSet)
{
commitTimeoutField();
@@ -404,20 +404,20 @@ namespace offapp
return bModified;
}
- //--------------------------------------------------------------------
+
void ConnectionPoolOptionsPage::ActivatePage( const SfxItemSet& _rSet)
{
SfxTabPage::ActivatePage(_rSet);
implInitControls(_rSet, sal_False);
}
- //--------------------------------------------------------------------
+
void ConnectionPoolOptionsPage::Reset(const SfxItemSet& _rSet)
{
implInitControls(_rSet, sal_True);
}
- //--------------------------------------------------------------------
+
IMPL_LINK( ConnectionPoolOptionsPage, OnDriverRowChanged, const void*, _pRowIterator )
{
sal_Bool bValidRow = (NULL != _pRowIterator);
@@ -443,7 +443,7 @@ namespace offapp
return 0L;
}
- //--------------------------------------------------------------------
+
void ConnectionPoolOptionsPage::commitTimeoutField()
{
if (DriverPooling* pCurrentDriver = m_pDriverList->getCurrentRow())
@@ -453,7 +453,7 @@ namespace offapp
}
}
- //--------------------------------------------------------------------
+
IMPL_LINK( ConnectionPoolOptionsPage, OnEnabledDisabled, const CheckBox*, _pCheckBox )
{
sal_Bool bGloballyEnabled = m_pEnablePooling->IsChecked();
diff --git a/cui/source/options/connpoolsettings.cxx b/cui/source/options/connpoolsettings.cxx
index 63a75b2f4f26..59a86c74f8cb 100644
--- a/cui/source/options/connpoolsettings.cxx
+++ b/cui/source/options/connpoolsettings.cxx
@@ -27,7 +27,7 @@ namespace offapp
//====================================================================
//= DriverPooling
//====================================================================
- //--------------------------------------------------------------------
+
DriverPooling::DriverPooling( const OUString& _rName, sal_Bool _bEnabled, const sal_Int32 _nTimeout )
:sName(_rName)
,bEnabled(_bEnabled)
@@ -35,7 +35,7 @@ namespace offapp
{
}
- //--------------------------------------------------------------------
+
sal_Bool DriverPooling::operator == (const DriverPooling& _rR) const
{
return (sName == _rR.sName)
@@ -46,7 +46,7 @@ namespace offapp
//====================================================================
//= DriverPoolingSettings
//====================================================================
- //--------------------------------------------------------------------
+
DriverPoolingSettings::DriverPoolingSettings()
{
}
@@ -55,14 +55,14 @@ namespace offapp
//= DriverPoolingSettingsItem
//====================================================================
TYPEINIT1( DriverPoolingSettingsItem, SfxPoolItem )
- //--------------------------------------------------------------------
+
DriverPoolingSettingsItem::DriverPoolingSettingsItem( sal_uInt16 _nId, const DriverPoolingSettings &_rSettings )
:SfxPoolItem(_nId)
,m_aSettings(_rSettings)
{
}
- //--------------------------------------------------------------------
+
bool DriverPoolingSettingsItem::operator==( const SfxPoolItem& _rCompare ) const
{
const DriverPoolingSettingsItem* pItem = PTR_CAST(DriverPoolingSettingsItem, &_rCompare);
@@ -87,13 +87,13 @@ namespace offapp
return true;
}
- //--------------------------------------------------------------------
+
SfxPoolItem* DriverPoolingSettingsItem::Clone( SfxItemPool * ) const
{
return new DriverPoolingSettingsItem(Which(), m_aSettings);
}
- //--------------------------------------------------------------------
+
//........................................................................
} // namespace offapp
diff --git a/cui/source/options/dbregister.cxx b/cui/source/options/dbregister.cxx
index 4ec978d07a05..5bdca4c442b2 100644
--- a/cui/source/options/dbregister.cxx
+++ b/cui/source/options/dbregister.cxx
@@ -163,7 +163,7 @@ DbRegistrationOptionsPage::DbRegistrationOptionsPage( Window* pParent, const Sfx
pPathBox->ShowTable();
}
-// -----------------------------------------------------------------------
+
DbRegistrationOptionsPage::~DbRegistrationOptionsPage()
{
@@ -172,7 +172,7 @@ DbRegistrationOptionsPage::~DbRegistrationOptionsPage()
delete pPathBox;
}
-// -----------------------------------------------------------------------
+
SfxTabPage* DbRegistrationOptionsPage::Create( Window* pParent,
const SfxItemSet& rAttrSet )
@@ -180,7 +180,7 @@ SfxTabPage* DbRegistrationOptionsPage::Create( Window* pParent,
return ( new DbRegistrationOptionsPage( pParent, rAttrSet ) );
}
-// -----------------------------------------------------------------------
+
sal_Bool DbRegistrationOptionsPage::FillItemSet( SfxItemSet& rCoreSet )
{
@@ -208,7 +208,7 @@ sal_Bool DbRegistrationOptionsPage::FillItemSet( SfxItemSet& rCoreSet )
return bModified;
}
-// -----------------------------------------------------------------------
+
void DbRegistrationOptionsPage::Reset( const SfxItemSet& rSet )
{
@@ -256,7 +256,7 @@ void DbRegistrationOptionsPage::Reset( const SfxItemSet& rSet )
}
}
-// -----------------------------------------------------------------------
+
void DbRegistrationOptionsPage::FillUserData()
{
@@ -268,7 +268,7 @@ void DbRegistrationOptionsPage::FillUserData()
aUserData += (bUp ? OUString("1") : OUString("0"));
SetUserData( aUserData );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(DbRegistrationOptionsPage, DeleteHdl)
{
@@ -281,7 +281,7 @@ IMPL_LINK_NOARG(DbRegistrationOptionsPage, DeleteHdl)
}
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(DbRegistrationOptionsPage, NewHdl)
{
OUString sNewName,sNewLocation;
@@ -289,7 +289,7 @@ IMPL_LINK_NOARG(DbRegistrationOptionsPage, NewHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(DbRegistrationOptionsPage, EditHdl)
{
@@ -309,7 +309,7 @@ IMPL_LINK_NOARG(DbRegistrationOptionsPage, EditHdl)
return 1L;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( DbRegistrationOptionsPage, HeaderSelect_Impl, HeaderBar*, pBar )
{
@@ -340,7 +340,7 @@ IMPL_LINK( DbRegistrationOptionsPage, HeaderSelect_Impl, HeaderBar*, pBar )
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( DbRegistrationOptionsPage, HeaderEndDrag_Impl, HeaderBar*, pBar )
{
@@ -372,7 +372,7 @@ IMPL_LINK( DbRegistrationOptionsPage, HeaderEndDrag_Impl, HeaderBar*, pBar )
}
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(DbRegistrationOptionsPage, PathSelect_Impl)
{
@@ -389,7 +389,7 @@ IMPL_LINK_NOARG(DbRegistrationOptionsPage, PathSelect_Impl)
m_pDelete->Enable( !bReadOnly );
return 0;
}
-// -----------------------------------------------------------------------------
+
void DbRegistrationOptionsPage::insertNewEntry( const OUString& _sName,const OUString& _sLocation, const bool _bReadOnly )
{
OUString aStr( _sName );
@@ -410,7 +410,7 @@ void DbRegistrationOptionsPage::insertNewEntry( const OUString& _sName,const OUS
pEntry->SetUserData( new DatabaseRegistration( _sLocation, _bReadOnly ) );
}
-// -----------------------------------------------------------------------------
+
void DbRegistrationOptionsPage::openLinkDialog(const OUString& _sOldName,const OUString& _sOldLocation,SvTreeListEntry* _pEntry)
{
ODocumentLinkDialog aDlg(this,_pEntry == NULL);
@@ -434,7 +434,7 @@ void DbRegistrationOptionsPage::openLinkDialog(const OUString& _sOldName,const O
}
}
}
-// -----------------------------------------------------------------------------
+
IMPL_LINK( DbRegistrationOptionsPage, NameValidator, OUString*, _pName )
{
if ( _pName )
diff --git a/cui/source/options/dbregisterednamesconfig.cxx b/cui/source/options/dbregisterednamesconfig.cxx
index b802ad981214..5f03c7339877 100644
--- a/cui/source/options/dbregisterednamesconfig.cxx
+++ b/cui/source/options/dbregisterednamesconfig.cxx
@@ -44,7 +44,7 @@ namespace svx
//====================================================================
//= DbRegisteredNamesConfig
//====================================================================
- //--------------------------------------------------------------------
+
void DbRegisteredNamesConfig::GetOptions( SfxItemSet& _rFillItems )
{
DatabaseRegistrations aSettings;
@@ -73,7 +73,7 @@ namespace svx
_rFillItems.Put( DatabaseMapItem( SID_SB_DB_REGISTER, aSettings ) );
}
- //--------------------------------------------------------------------
+
void DbRegisteredNamesConfig::SetOptions(const SfxItemSet& _rSourceItems)
{
// the settings for the single drivers
diff --git a/cui/source/options/dbregistersettings.cxx b/cui/source/options/dbregistersettings.cxx
index 6dac6e67c836..1b6b5b581ad0 100644
--- a/cui/source/options/dbregistersettings.cxx
+++ b/cui/source/options/dbregistersettings.cxx
@@ -30,14 +30,14 @@ namespace svx
//= DatabaseMapItem
//====================================================================
TYPEINIT1( DatabaseMapItem, SfxPoolItem )
- //--------------------------------------------------------------------
+
DatabaseMapItem::DatabaseMapItem( sal_uInt16 _nId, const DatabaseRegistrations& _rRegistrations )
:SfxPoolItem( _nId )
,m_aRegistrations( _rRegistrations )
{
}
- //--------------------------------------------------------------------
+
bool DatabaseMapItem::operator==( const SfxPoolItem& _rCompare ) const
{
const DatabaseMapItem* pItem = PTR_CAST(DatabaseMapItem, &_rCompare);
@@ -50,13 +50,13 @@ namespace svx
return m_aRegistrations == pItem->m_aRegistrations;
}
- //--------------------------------------------------------------------
+
SfxPoolItem* DatabaseMapItem::Clone( SfxItemPool* ) const
{
return new DatabaseMapItem( Which(), m_aRegistrations );
}
- //--------------------------------------------------------------------
+
//........................................................................
} // namespace svx
diff --git a/cui/source/options/doclinkdialog.cxx b/cui/source/options/doclinkdialog.cxx
index 3e9d2f6f136b..78e8901df9ee 100644
--- a/cui/source/options/doclinkdialog.cxx
+++ b/cui/source/options/doclinkdialog.cxx
@@ -42,7 +42,7 @@ namespace svx
//==================================================================
//= ODocumentLinkDialog
//==================================================================
- //------------------------------------------------------------------
+
ODocumentLinkDialog::ODocumentLinkDialog( Window* _pParent, sal_Bool _bCreateNew )
: ModalDialog(_pParent, "DatabaseLinkDialog",
"cui/ui/databaselinkdialog.ui")
@@ -70,7 +70,7 @@ namespace svx
m_pURL->SetDropDownLineCount( 5 );
}
- //------------------------------------------------------------------
+
void ODocumentLinkDialog::setLink( const OUString& _rName, const OUString& _rURL )
{
m_pName->SetText(_rName);
@@ -78,21 +78,21 @@ namespace svx
validate();
}
- //------------------------------------------------------------------
+
void ODocumentLinkDialog::getLink( OUString& _rName, OUString& _rURL ) const
{
_rName = m_pName->GetText();
_rURL = m_pURL->GetText();
}
- //------------------------------------------------------------------
+
void ODocumentLinkDialog::validate( )
{
m_pOK->Enable( ( !m_pName->GetText().isEmpty()) && ( !m_pURL->GetText().isEmpty() ) );
}
- //------------------------------------------------------------------
+
IMPL_LINK_NOARG(ODocumentLinkDialog, OnOk)
{
// get the current URL
@@ -150,7 +150,7 @@ namespace svx
return 0L;
}
- //------------------------------------------------------------------
+
IMPL_LINK_NOARG(ODocumentLinkDialog, OnBrowseFile)
{
::sfx2::FileDialogHelper aFileDlg(
@@ -195,7 +195,7 @@ namespace svx
return 0L;
}
- //------------------------------------------------------------------
+
IMPL_LINK_NOARG(ODocumentLinkDialog, OnTextModified)
{
validate( );
diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx
index eb66e8bcf3bd..b0aef7426558 100644
--- a/cui/source/options/fontsubs.cxx
+++ b/cui/source/options/fontsubs.cxx
@@ -315,7 +315,7 @@ IMPL_LINK(SvxFontSubstTabPage, SelectHdl, Window*, pWin)
return 0;
}
-//--------------------------------------------------------------------------
+
IMPL_LINK(SvxFontSubstTabPage, NonPropFontsHdl, CheckBox*, pBox)
{
OUString sFontName = m_pFontNameLB->GetSelectEntry();
diff --git a/cui/source/options/optHeaderTabListbox.cxx b/cui/source/options/optHeaderTabListbox.cxx
index 13255efa306f..2fb211d0c5eb 100644
--- a/cui/source/options/optHeaderTabListbox.cxx
+++ b/cui/source/options/optHeaderTabListbox.cxx
@@ -38,7 +38,7 @@ public:
const Point& rPos, SvTreeListBox& rDev, const SvViewDataEntry* pView, const SvTreeListEntry* pEntry);
};
-// -----------------------------------------------------------------------
+
void OptLBoxString_Impl::Paint(
const Point& rPos, SvTreeListBox& rDev, const SvViewDataEntry* /*pView*/, const SvTreeListEntry* pEntry)
@@ -52,14 +52,14 @@ void OptLBoxString_Impl::Paint(
rDev.DrawText( rPos, GetText() );
rDev.SetFont( aOldFont );
}
-// -----------------------------------------------------------------------------
+
OptHeaderTabListBox::OptHeaderTabListBox(SvSimpleTableContainer& rParent, WinBits nWinStyle)
: SvSimpleTable(rParent, nWinStyle)
{
}
-// -----------------------------------------------------------------------
+
void OptHeaderTabListBox::InitEntry( SvTreeListEntry* pEntry, const OUString& rTxt,
const Image& rImg1, const Image& rImg2,
SvLBoxButtonKind eButtonKind )
diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx
index a9f5ff8af34f..3348c38f7a27 100644
--- a/cui/source/options/optchart.cxx
+++ b/cui/source/options/optchart.cxx
@@ -159,12 +159,12 @@ long SvxDefaultColorOptPage::GetColorIndex( const Color& rCol )
-// --------------------
+
// event handlers
-// --------------------
+
// ResetToDefaults
-// ---------------
+
IMPL_LINK_NOARG(SvxDefaultColorOptPage, ResetToDefaults)
{
@@ -183,7 +183,7 @@ IMPL_LINK_NOARG(SvxDefaultColorOptPage, ResetToDefaults)
}
// AddChartColor
-// ------------
+
IMPL_LINK_NOARG(SvxDefaultColorOptPage, AddChartColor)
{
@@ -204,7 +204,7 @@ IMPL_LINK_NOARG(SvxDefaultColorOptPage, AddChartColor)
}
// RemoveChartColor
-// ----------------
+
IMPL_LINK( SvxDefaultColorOptPage, RemoveChartColor, PushButton*, pButton )
{
diff --git a/cui/source/options/optctl.cxx b/cui/source/options/optctl.cxx
index 7223e3972663..ebd2e495c813 100644
--- a/cui/source/options/optctl.cxx
+++ b/cui/source/options/optctl.cxx
@@ -56,16 +56,16 @@ SvxCTLOptionsPage::SvxCTLOptionsPage( Window* pParent, const SfxItemSet& rSet )
m_pNumeralsLB->SetDropDownLineCount( m_pNumeralsLB->GetEntryCount() );
}
-// -----------------------------------------------------------------------------
+
SvxCTLOptionsPage::~SvxCTLOptionsPage()
{
}
-// -----------------------------------------------------------------------------
+
SfxTabPage* SvxCTLOptionsPage::Create( Window* pParent, const SfxItemSet& rAttrSet )
{
return new SvxCTLOptionsPage( pParent, rAttrSet );
}
-// -----------------------------------------------------------------------------
+
sal_Bool SvxCTLOptionsPage::FillItemSet( SfxItemSet& )
{
sal_Bool bModified = sal_False;
@@ -112,7 +112,7 @@ sal_Bool SvxCTLOptionsPage::FillItemSet( SfxItemSet& )
return bModified;
}
-// -----------------------------------------------------------------------------
+
void SvxCTLOptionsPage::Reset( const SfxItemSet& )
{
SvtCTLOptions aCTLOptions;
diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx
index 5476f8d8d8c9..afd4b6386fd1 100644
--- a/cui/source/options/optdict.cxx
+++ b/cui/source/options/optdict.cxx
@@ -117,7 +117,7 @@ SvxNewDictionaryDialog::SvxNewDictionaryDialog( Window* pParent,
pLanguageLB->SelectEntryPos(0);
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxNewDictionaryDialog, OKHdl_Impl)
{
@@ -191,7 +191,7 @@ IMPL_LINK_NOARG(SvxNewDictionaryDialog, OKHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG_INLINE_START(SvxNewDictionaryDialog, ModifyHdl_Impl)
{
@@ -330,13 +330,13 @@ SvxEditDictionaryDialog::SvxEditDictionaryDialog(
}
}
-// -----------------------------------------------------------------------
+
SvxEditDictionaryDialog::~SvxEditDictionaryDialog()
{
}
-// -----------------------------------------------------------------------
+
/*
void SvxEditDictionaryDialog::Paint( const Rectangle& rRect )
{
@@ -348,7 +348,7 @@ void SvxEditDictionaryDialog::Paint( const Rectangle& rRect )
// aDecoView.DrawButton( aRect, nStyle);
}
*/
-// -----------------------------------------------------------------------
+
void SvxEditDictionaryDialog::SetDicReadonly_Impl(
Reference< XDictionary > &xDic )
@@ -367,7 +367,7 @@ void SvxEditDictionaryDialog::SetDicReadonly_Impl(
}
}
-// -----------------------------------------------------------------------
+
void SvxEditDictionaryDialog::SetLanguage_Impl( util::Language nLanguage )
{
@@ -414,7 +414,7 @@ void SvxEditDictionaryDialog::RemoveDictEntry(SvTreeListEntry* pEntry)
}
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxEditDictionaryDialog, SelectBookHdl_Impl)
{
@@ -439,7 +439,7 @@ IMPL_LINK_NOARG(SvxEditDictionaryDialog, SelectBookHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxEditDictionaryDialog, SelectLangHdl_Impl)
{
@@ -474,7 +474,7 @@ IMPL_LINK_NOARG(SvxEditDictionaryDialog, SelectLangHdl_Impl)
return 1;
}
-// -----------------------------------------------------------------------
+
void SvxEditDictionaryDialog::ShowWords_Impl( sal_uInt16 nId )
{
@@ -546,7 +546,7 @@ void SvxEditDictionaryDialog::ShowWords_Impl( sal_uInt16 nId )
LeaveWait();
}
-// -----------------------------------------------------------------------
+
IMPL_LINK(SvxEditDictionaryDialog, SelectHdl, SvTabListBox*, pBox)
{
@@ -573,7 +573,7 @@ IMPL_LINK(SvxEditDictionaryDialog, SelectHdl, SvTabListBox*, pBox)
return 0;
};
-// -----------------------------------------------------------------------
+
IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
{
@@ -671,7 +671,7 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt)
{
diff --git a/cui/source/options/optfltr.cxx b/cui/source/options/optfltr.cxx
index 951ac053f5dd..a1c10e088d61 100644
--- a/cui/source/options/optfltr.cxx
+++ b/cui/source/options/optfltr.cxx
@@ -36,7 +36,7 @@ enum MSFltrPg2_CheckBoxEntries {
InvalidCBEntry
};
-// -----------------------------------------------------------------------
+
OfaMSFilterTabPage::OfaMSFilterTabPage(Window* pParent, const SfxItemSet& rSet)
: SfxTabPage( pParent, "OptFltrPage", "cui/ui/optfltrpage.ui", rSet )
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index 3e4cdf57c5bd..83bb0eeb8436 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -181,7 +181,7 @@ namespace
}
}
-// -----------------------------------------------------------------------
+
OfaMiscTabPage::OfaMiscTabPage(Window* pParent, const SfxItemSet& rSet)
: SfxTabPage(pParent, "OptGeneralPage", "cui/ui/optgeneralpage.ui", rSet)
@@ -227,20 +227,20 @@ OfaMiscTabPage::OfaMiscTabPage(Window* pParent, const SfxItemSet& rSet)
m_pToolTipsCB->SetClickHdl( aLink );
}
-// -----------------------------------------------------------------------
+
OfaMiscTabPage::~OfaMiscTabPage()
{
}
-// -----------------------------------------------------------------------
+
SfxTabPage* OfaMiscTabPage::Create( Window* pParent, const SfxItemSet& rAttrSet )
{
return new OfaMiscTabPage( pParent, rAttrSet );
}
-// -----------------------------------------------------------------------
+
sal_Bool OfaMiscTabPage::FillItemSet( SfxItemSet& rSet )
{
@@ -294,7 +294,7 @@ sal_Bool OfaMiscTabPage::FillItemSet( SfxItemSet& rSet )
return bModified;
}
-// -----------------------------------------------------------------------
+
void OfaMiscTabPage::Reset( const SfxItemSet& rSet )
{
@@ -329,7 +329,7 @@ void OfaMiscTabPage::Reset( const SfxItemSet& rSet )
}
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( OfaMiscTabPage, TwoFigureHdl, NumericField*, pEd )
{
@@ -353,7 +353,7 @@ IMPL_LINK( OfaMiscTabPage, TwoFigureHdl, NumericField*, pEd )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( OfaMiscTabPage, TwoFigureConfigHdl, NumericField*, pEd )
{
@@ -365,7 +365,7 @@ IMPL_LINK( OfaMiscTabPage, TwoFigureConfigHdl, NumericField*, pEd )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(OfaMiscTabPage, HelpCheckHdl_Impl)
{
@@ -373,7 +373,7 @@ IMPL_LINK_NOARG(OfaMiscTabPage, HelpCheckHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
class CanvasSettings
{
@@ -393,7 +393,7 @@ private:
mutable sal_Bool mbHWAccelChecked;
};
-// -------------------------------------------------------------------
+
CanvasSettings::CanvasSettings() :
mxForceFlagNameAccess(),
mbHWAccelAvailable(sal_False),
@@ -452,7 +452,7 @@ CanvasSettings::CanvasSettings() :
}
}
-// -------------------------------------------------------------------
+
sal_Bool CanvasSettings::IsHardwareAccelerationAvailable() const
{
if( !mbHWAccelChecked )
@@ -499,7 +499,7 @@ sal_Bool CanvasSettings::IsHardwareAccelerationAvailable() const
return mbHWAccelAvailable;
}
-// -------------------------------------------------------------------
+
sal_Bool CanvasSettings::IsHardwareAccelerationEnabled() const
{
bool bForceLastEntry(false);
@@ -512,7 +512,7 @@ sal_Bool CanvasSettings::IsHardwareAccelerationEnabled() const
return !bForceLastEntry;
}
-// -------------------------------------------------------------------
+
void CanvasSettings::EnabledHardwareAcceleration( sal_Bool _bEnabled ) const
{
Reference< XNameReplace > xNameReplace(
@@ -1414,7 +1414,7 @@ sal_Bool OfaLanguagesTabPage::FillItemSet( SfxItemSet& rSet )
return sal_False;
}
-//-----------------------------------------------------------------------------
+
void OfaLanguagesTabPage::Reset( const SfxItemSet& rSet )
{
OUString sLang = pLangConfig->aSysLocaleOptions.GetLocaleConfigString();
diff --git a/cui/source/options/optgenrl.cxx b/cui/source/options/optgenrl.cxx
index 0ff50b94a03e..1894b14a4555 100644
--- a/cui/source/options/optgenrl.cxx
+++ b/cui/source/options/optgenrl.cxx
@@ -157,7 +157,7 @@ const vFieldInfo[] =
} // namespace
-// -----------------------------------------------------------------------
+
//
// Row
@@ -182,7 +182,7 @@ public:
}
};
-// -----------------------------------------------------------------------
+
//
// Field
@@ -208,7 +208,7 @@ public:
}
};
-// -----------------------------------------------------------------------
+
SvxGeneralTabPage::SvxGeneralTabPage(Window* pParent, const SfxItemSet& rCoreSet)
@@ -220,12 +220,12 @@ SvxGeneralTabPage::SvxGeneralTabPage(Window* pParent, const SfxItemSet& rCoreSet
SetLinks();
}
-//------------------------------------------------------------------------
+
SvxGeneralTabPage::~SvxGeneralTabPage ()
{ }
-//------------------------------------------------------------------------
+
// Initializes the titles and the edit boxes,
// according to vRowInfo[] and vFieldInfo[] above.
@@ -284,7 +284,7 @@ void SvxGeneralTabPage::InitControls ()
}
}
-//------------------------------------------------------------------------
+
void SvxGeneralTabPage::SetLinks ()
{
@@ -295,14 +295,14 @@ void SvxGeneralTabPage::SetLinks ()
vFields[i]->pEdit->SetModifyHdl(aLink);
}
-//------------------------------------------------------------------------
+
SfxTabPage* SvxGeneralTabPage::Create( Window* pParent, const SfxItemSet& rAttrSet )
{
return ( new SvxGeneralTabPage( pParent, rAttrSet ) );
}
-//------------------------------------------------------------------------
+
sal_Bool SvxGeneralTabPage::FillItemSet( SfxItemSet& )
{
@@ -321,7 +321,7 @@ sal_Bool SvxGeneralTabPage::FillItemSet( SfxItemSet& )
return bModified;
}
-//------------------------------------------------------------------------
+
void SvxGeneralTabPage::Reset( const SfxItemSet& rSet )
{
@@ -344,7 +344,7 @@ void SvxGeneralTabPage::Reset( const SfxItemSet& rSet )
m_pUseDataCB->Check( SvtSaveOptions().IsUseUserData() );
}
-//------------------------------------------------------------------------
+
// ModifyHdl_Impl()
// This handler updates the initials (short name)
@@ -381,7 +381,7 @@ IMPL_LINK( SvxGeneralTabPage, ModifyHdl_Impl, Edit *, pEdit )
return 0;
}
-//------------------------------------------------------------------------
+
sal_Bool SvxGeneralTabPage::GetAddress_Impl()
{
@@ -400,7 +400,7 @@ sal_Bool SvxGeneralTabPage::GetAddress_Impl()
return false;
}
-//------------------------------------------------------------------------
+
void SvxGeneralTabPage::SetAddress_Impl()
{
@@ -430,7 +430,7 @@ void SvxGeneralTabPage::SetAddress_Impl()
vFields[i]->pEdit->SaveValue();
}
-// -----------------------------------------------------------------------
+
int SvxGeneralTabPage::DeactivatePage( SfxItemSet* pSet_ )
{
diff --git a/cui/source/options/opthtml.cxx b/cui/source/options/opthtml.cxx
index 1ae7df384f98..9b5ecba3a71b 100644
--- a/cui/source/options/opthtml.cxx
+++ b/cui/source/options/opthtml.cxx
@@ -40,7 +40,7 @@ const sal_uInt16 aExportToPosArr[] =
2, //StarWriter
1 //Netscape Navigator 4.0
};
-// -----------------------------------------------------------------------
+
OfaHtmlTabPage::OfaHtmlTabPage(Window* pParent, const SfxItemSet& rSet) :
SfxTabPage( pParent, "OptHtmlPage" , "cui/ui/opthtmlpage.ui", rSet )
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx
index 382d902f5c88..ebe2cfc487dc 100644
--- a/cui/source/options/optinet2.cxx
+++ b/cui/source/options/optinet2.cxx
@@ -96,7 +96,7 @@ using namespace ::sfx2;
#include <sal/config.h>
-// -----------------------------------------------------------------------
+
extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxNoSpaceEdit(Window *pParent, VclBuilder::stringmap &)
{
@@ -122,7 +122,7 @@ void SvxNoSpaceEdit::KeyInput( const KeyEvent& rKEvent )
Edit::KeyInput(rKEvent);
}
-// -----------------------------------------------------------------------
+
void SvxNoSpaceEdit::Modify()
{
@@ -505,7 +505,7 @@ void SvxProxyTabPage::EnableControls_Impl(sal_Bool bEnable)
m_pNoProxyDescFT->Enable(bEnable);
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxProxyTabPage, ProxyHdl_Impl, ListBox *, pBox )
{
@@ -521,7 +521,7 @@ IMPL_LINK( SvxProxyTabPage, ProxyHdl_Impl, ListBox *, pBox )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxProxyTabPage, LoseFocusHdl_Impl, Edit *, pEdit )
{
@@ -1290,6 +1290,6 @@ IMPL_LINK( SvxEMailTabPage, FileDialogHdl_Impl, PushButton*, pButton )
return 0;
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx
index e5ec7b8d6334..4fa9192bae4e 100644
--- a/cui/source/options/optjava.cxx
+++ b/cui/source/options/optjava.cxx
@@ -60,7 +60,7 @@ using namespace ::com::sun::star::ucb;
using namespace ::com::sun::star::ui::dialogs;
using namespace ::com::sun::star::uno;
-// -----------------------------------------------------------------------
+
bool areListsEqual( const Sequence< OUString >& rListA, const Sequence< OUString >& rListB )
{
@@ -197,7 +197,7 @@ SvxJavaOptionsPage::SvxJavaOptionsPage( Window* pParent, const SfxItemSet& rSet
#endif
}
-// -----------------------------------------------------------------------
+
SvxJavaOptionsPage::~SvxJavaOptionsPage()
{
@@ -217,7 +217,7 @@ SvxJavaOptionsPage::~SvxJavaOptionsPage()
#endif
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaOptionsPage, EnableHdl_Impl)
{
@@ -227,7 +227,7 @@ IMPL_LINK_NOARG(SvxJavaOptionsPage, EnableHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxJavaOptionsPage, CheckHdl_Impl, SvSimpleTable *, pList )
{
@@ -238,7 +238,7 @@ IMPL_LINK( SvxJavaOptionsPage, CheckHdl_Impl, SvSimpleTable *, pList )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaOptionsPage, SelectHdl_Impl)
{
@@ -254,7 +254,7 @@ IMPL_LINK_NOARG(SvxJavaOptionsPage, SelectHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaOptionsPage, AddHdl_Impl)
{
@@ -281,7 +281,7 @@ IMPL_LINK_NOARG(SvxJavaOptionsPage, AddHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaOptionsPage, ParameterHdl_Impl)
{
@@ -330,7 +330,7 @@ IMPL_LINK_NOARG(SvxJavaOptionsPage, ParameterHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaOptionsPage, ClassPathHdl_Impl)
{
@@ -375,7 +375,7 @@ IMPL_LINK_NOARG(SvxJavaOptionsPage, ClassPathHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaOptionsPage, ResetHdl_Impl)
{
@@ -383,7 +383,7 @@ IMPL_LINK_NOARG(SvxJavaOptionsPage, ResetHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaOptionsPage, StartFolderPickerHdl)
{
@@ -403,7 +403,7 @@ IMPL_LINK_NOARG(SvxJavaOptionsPage, StartFolderPickerHdl)
return 0L;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxJavaOptionsPage, DialogClosedHdl, DialogClosedEvent*, pEvt )
{
@@ -416,7 +416,7 @@ IMPL_LINK( SvxJavaOptionsPage, DialogClosedHdl, DialogClosedEvent*, pEvt )
return 0L;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG( SvxJavaOptionsPage, ExpertConfigHdl_Impl )
{
@@ -431,7 +431,7 @@ IMPL_LINK_NOARG( SvxJavaOptionsPage, ExpertConfigHdl_Impl )
return 0;
}
-// -----------------------------------------------------------------------
+
void SvxJavaOptionsPage::ClearJavaInfo()
{
@@ -452,7 +452,7 @@ void SvxJavaOptionsPage::ClearJavaInfo()
#endif
}
-// -----------------------------------------------------------------------
+
void SvxJavaOptionsPage::ClearJavaList()
{
@@ -466,7 +466,7 @@ void SvxJavaOptionsPage::ClearJavaList()
m_pJavaList->Clear();
}
-// -----------------------------------------------------------------------
+
void SvxJavaOptionsPage::LoadJREs()
{
@@ -512,7 +512,7 @@ void SvxJavaOptionsPage::LoadJREs()
#endif
}
-// -----------------------------------------------------------------------
+
void SvxJavaOptionsPage::AddJRE( JavaInfo* _pInfo )
{
@@ -534,7 +534,7 @@ void SvxJavaOptionsPage::AddJRE( JavaInfo* _pInfo )
#endif
}
-// -----------------------------------------------------------------------
+
void SvxJavaOptionsPage::HandleCheckEntry( SvTreeListEntry* _pEntry )
{
@@ -556,7 +556,7 @@ void SvxJavaOptionsPage::HandleCheckEntry( SvTreeListEntry* _pEntry )
m_pJavaList->SetCheckButtonState( _pEntry, SV_BUTTON_CHECKED );
}
-// -----------------------------------------------------------------------
+
void SvxJavaOptionsPage::AddFolder( const OUString& _rFolder )
{
@@ -631,14 +631,14 @@ void SvxJavaOptionsPage::AddFolder( const OUString& _rFolder )
#endif
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxJavaOptionsPage::Create( Window* pParent, const SfxItemSet& rAttrSet )
{
return ( new SvxJavaOptionsPage( pParent, rAttrSet ) );
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxJavaOptionsPage::FillItemSet( SfxItemSet& /*rCoreSet*/ )
{
@@ -745,7 +745,7 @@ sal_Bool SvxJavaOptionsPage::FillItemSet( SfxItemSet& /*rCoreSet*/ )
return bModified;
}
-// -----------------------------------------------------------------------
+
void SvxJavaOptionsPage::Reset( const SfxItemSet& /*rSet*/ )
{
@@ -774,7 +774,7 @@ void SvxJavaOptionsPage::Reset( const SfxItemSet& /*rSet*/ )
m_aResetTimer.Start();
}
-// -----------------------------------------------------------------------
+
void SvxJavaOptionsPage::FillUserData()
{
@@ -806,13 +806,13 @@ SvxJavaParameterDlg::SvxJavaParameterDlg( Window* pParent ) :
EnableRemoveButton();
}
-// -----------------------------------------------------------------------
+
SvxJavaParameterDlg::~SvxJavaParameterDlg()
{
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaParameterDlg, ModifyHdl_Impl)
{
@@ -822,7 +822,7 @@ IMPL_LINK_NOARG(SvxJavaParameterDlg, ModifyHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaParameterDlg, AssignHdl_Impl)
{
@@ -841,7 +841,7 @@ IMPL_LINK_NOARG(SvxJavaParameterDlg, AssignHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaParameterDlg, SelectHdl_Impl)
{
@@ -849,7 +849,7 @@ IMPL_LINK_NOARG(SvxJavaParameterDlg, SelectHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaParameterDlg, DblClickHdl_Impl)
{
@@ -859,7 +859,7 @@ IMPL_LINK_NOARG(SvxJavaParameterDlg, DblClickHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaParameterDlg, RemoveHdl_Impl)
{
@@ -880,7 +880,7 @@ IMPL_LINK_NOARG(SvxJavaParameterDlg, RemoveHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
short SvxJavaParameterDlg::Execute()
{
@@ -889,7 +889,7 @@ short SvxJavaParameterDlg::Execute()
return ModalDialog::Execute();
}
-// -----------------------------------------------------------------------
+
Sequence< OUString > SvxJavaParameterDlg::GetParameters() const
{
@@ -901,7 +901,7 @@ Sequence< OUString > SvxJavaParameterDlg::GetParameters() const
return aParamList;
}
-// -----------------------------------------------------------------------
+
void SvxJavaParameterDlg::SetParameters( Sequence< OUString >& rParams )
{
@@ -936,7 +936,7 @@ SvxJavaClassPathDlg::SvxJavaClassPathDlg(Window* pParent)
m_pPathList->GrabFocus();
}
-// -----------------------------------------------------------------------
+
SvxJavaClassPathDlg::~SvxJavaClassPathDlg()
{
@@ -945,7 +945,7 @@ SvxJavaClassPathDlg::~SvxJavaClassPathDlg()
delete static_cast< OUString* >( m_pPathList->GetEntryData(i) );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaClassPathDlg, AddArchiveHdl_Impl)
{
@@ -982,7 +982,7 @@ IMPL_LINK_NOARG(SvxJavaClassPathDlg, AddArchiveHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaClassPathDlg, AddPathHdl_Impl)
{
@@ -1019,7 +1019,7 @@ IMPL_LINK_NOARG(SvxJavaClassPathDlg, AddPathHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaClassPathDlg, RemoveHdl_Impl)
{
@@ -1040,7 +1040,7 @@ IMPL_LINK_NOARG(SvxJavaClassPathDlg, RemoveHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxJavaClassPathDlg, SelectHdl_Impl)
{
@@ -1048,7 +1048,7 @@ IMPL_LINK_NOARG(SvxJavaClassPathDlg, SelectHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
bool SvxJavaClassPathDlg::IsPathDuplicate( const OUString& _rPath )
{
@@ -1068,7 +1068,7 @@ bool SvxJavaClassPathDlg::IsPathDuplicate( const OUString& _rPath )
return bRet;
}
-// -----------------------------------------------------------------------
+
OUString SvxJavaClassPathDlg::GetClassPath() const
{
@@ -1087,7 +1087,7 @@ OUString SvxJavaClassPathDlg::GetClassPath() const
return sPath;
}
-// -----------------------------------------------------------------------
+
void SvxJavaClassPathDlg::SetClassPath( const OUString& _rPath )
{
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx
index 8b6a21c2377e..c4037bee0e7c 100644
--- a/cui/source/options/optlingu.cxx
+++ b/cui/source/options/optlingu.cxx
@@ -654,7 +654,7 @@ ServiceInfo_Impl * SvxLinguData_Impl::GetInfoByImplName( const OUString &rSvcImp
}
-//-----------------------------------------------------------------------------
+
static void lcl_MergeLocales(Sequence< Locale >& aAllLocales, const Sequence< Locale >& rAdd)
{
@@ -1163,7 +1163,7 @@ SvxLinguTabPage::SvxLinguTabPage( Window* pParent, const SfxItemSet& rSet ) :
pItem = NULL;
}
-// -----------------------------------------------------------------------
+
SvxLinguTabPage::~SvxLinguTabPage()
{
@@ -1171,7 +1171,7 @@ SvxLinguTabPage::~SvxLinguTabPage()
delete pLinguData;
}
-//------------------------------------------------------------------------
+
// don't throw away overloaded
sal_uInt16* SvxLinguTabPage::GetRanges()
@@ -1180,7 +1180,7 @@ sal_uInt16* SvxLinguTabPage::GetRanges()
return pRanges;
}
-//------------------------------------------------------------------------
+
SfxTabPage* SvxLinguTabPage::Create( Window* pParent,
const SfxItemSet& rAttrSet )
@@ -1188,7 +1188,7 @@ SfxTabPage* SvxLinguTabPage::Create( Window* pParent,
return ( new SvxLinguTabPage( pParent, rAttrSet ) );
}
-//------------------------------------------------------------------------
+
sal_Bool SvxLinguTabPage::FillItemSet( SfxItemSet& rCoreSet )
{
@@ -1353,7 +1353,7 @@ sal_Bool SvxLinguTabPage::FillItemSet( SfxItemSet& rCoreSet )
return bModified;
}
-// ----------------------------------------------------------------------
+
sal_uLong SvxLinguTabPage::GetDicUserData( const uno::Reference< XDictionary > &rxDic, sal_uInt16 nIdx )
{
@@ -1396,7 +1396,7 @@ void SvxLinguTabPage::AddDicBoxEntry(
m_pLinguDicsCLB->SetUpdateMode(sal_True);
}
-// ----------------------------------------------------------------------
+
void SvxLinguTabPage::UpdateDicBox_Impl()
{
@@ -1415,7 +1415,7 @@ void SvxLinguTabPage::UpdateDicBox_Impl()
m_pLinguDicsCLB->SetUpdateMode(sal_True);
}
-// ----------------------------------------------------------------------
+
void SvxLinguTabPage::UpdateModulesBox_Impl()
{
@@ -1438,7 +1438,7 @@ void SvxLinguTabPage::UpdateModulesBox_Impl()
}
}
-//------------------------------------------------------------------------
+
void SvxLinguTabPage::Reset( const SfxItemSet& rSet )
{
@@ -1549,7 +1549,7 @@ void SvxLinguTabPage::Reset( const SfxItemSet& rSet )
m_pLinguOptionsCLB->SetUpdateMode(sal_True);
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxLinguTabPage, BoxDoubleClickHdl_Impl, SvTreeListBox *, pBox )
{
@@ -1568,7 +1568,7 @@ IMPL_LINK( SvxLinguTabPage, BoxDoubleClickHdl_Impl, SvTreeListBox *, pBox )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLinguTabPage, PostDblClickHdl_Impl)
{
@@ -1576,7 +1576,7 @@ IMPL_LINK_NOARG(SvxLinguTabPage, PostDblClickHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLinguTabPage, OpenURLHdl_Impl)
{
@@ -1585,7 +1585,7 @@ IMPL_LINK_NOARG(SvxLinguTabPage, OpenURLHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxLinguTabPage, BoxCheckButtonHdl_Impl, SvTreeListBox *, pBox )
{
@@ -1616,7 +1616,7 @@ IMPL_LINK( SvxLinguTabPage, BoxCheckButtonHdl_Impl, SvTreeListBox *, pBox )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxLinguTabPage, ClickHdl_Impl, PushButton *, pBtn )
{
@@ -1800,7 +1800,7 @@ IMPL_LINK( SvxLinguTabPage, ClickHdl_Impl, PushButton *, pBtn )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxLinguTabPage, SelectHdl_Impl, SvxCheckListBox *, pBox )
{
@@ -1836,7 +1836,7 @@ IMPL_LINK( SvxLinguTabPage, SelectHdl_Impl, SvxCheckListBox *, pBox )
return 0;
}
-// -----------------------------------------------------------------------
+
SvTreeListEntry* SvxLinguTabPage::CreateEntry( OUString& rTxt, sal_uInt16 nCol )
{
@@ -1856,7 +1856,7 @@ SvTreeListEntry* SvxLinguTabPage::CreateEntry( OUString& rTxt, sal_uInt16 nCol )
return pEntry;
}
-// -----------------------------------------------------------------------
+
void SvxLinguTabPage::HideGroups( sal_uInt16 nGrp )
{
@@ -2339,7 +2339,7 @@ IMPL_LINK_NOARG(SvxEditModulesDlg, BackHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxEditModulesDlg, OpenURLHdl_Impl)
{
diff --git a/cui/source/options/optmemory.cxx b/cui/source/options/optmemory.cxx
index e912183e3f3e..80249e37e940 100644
--- a/cui/source/options/optmemory.cxx
+++ b/cui/source/options/optmemory.cxx
@@ -109,7 +109,7 @@ int OfaMemoryOptionsPage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-// -----------------------------------------------------------------------
+
OfaMemoryOptionsPage::OfaMemoryOptionsPage(Window* pParent, const SfxItemSet& rSet)
: SfxTabPage(pParent, "OptMemoryPage", "cui/ui/optmemorypage.ui", rSet)
@@ -140,20 +140,20 @@ OfaMemoryOptionsPage::OfaMemoryOptionsPage(Window* pParent, const SfxItemSet& rS
m_pNfGraphicCache->SetModifyHdl( LINK( this, OfaMemoryOptionsPage, GraphicCacheConfigHdl ) );
}
-// -----------------------------------------------------------------------
+
OfaMemoryOptionsPage::~OfaMemoryOptionsPage()
{
}
-// -----------------------------------------------------------------------
+
SfxTabPage* OfaMemoryOptionsPage::Create( Window* pParent, const SfxItemSet& rAttrSet )
{
return new OfaMemoryOptionsPage( pParent, rAttrSet );
}
-// -----------------------------------------------------------------------
+
sal_Bool OfaMemoryOptionsPage::FillItemSet( SfxItemSet& rSet )
{
@@ -205,7 +205,7 @@ sal_Bool OfaMemoryOptionsPage::FillItemSet( SfxItemSet& rSet )
return bModified;
}
-// -----------------------------------------------------------------------
+
void OfaMemoryOptionsPage::Reset( const SfxItemSet& rSet )
{
@@ -251,7 +251,7 @@ void OfaMemoryOptionsPage::Reset( const SfxItemSet& rSet )
m_pQuickLaunchCB->SaveValue();
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(OfaMemoryOptionsPage, GraphicCacheConfigHdl)
{
diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx
index 5aa07b462a18..8e8758d4e93c 100644
--- a/cui/source/options/optpath.cxx
+++ b/cui/source/options/optpath.cxx
@@ -244,7 +244,7 @@ SvxPathTabPage::SvxPathTabPage(Window* pParent, const SfxItemSet& rSet)
xDialogListener->SetDialogClosedLink( LINK( this, SvxPathTabPage, DialogClosedHdl ) );
}
-// -----------------------------------------------------------------------
+
SvxPathTabPage::~SvxPathTabPage()
{
@@ -254,7 +254,7 @@ SvxPathTabPage::~SvxPathTabPage()
delete pImpl;
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxPathTabPage::Create( Window* pParent,
const SfxItemSet& rAttrSet )
@@ -262,7 +262,7 @@ SfxTabPage* SvxPathTabPage::Create( Window* pParent,
return ( new SvxPathTabPage( pParent, rAttrSet ) );
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxPathTabPage::FillItemSet( SfxItemSet& )
{
@@ -276,7 +276,7 @@ sal_Bool SvxPathTabPage::FillItemSet( SfxItemSet& )
return sal_True;
}
-// -----------------------------------------------------------------------
+
void SvxPathTabPage::Reset( const SfxItemSet& )
{
@@ -370,7 +370,7 @@ void SvxPathTabPage::Reset( const SfxItemSet& )
PathSelect_Impl( NULL );
}
-// -----------------------------------------------------------------------
+
void SvxPathTabPage::FillUserData()
{
@@ -383,7 +383,7 @@ void SvxPathTabPage::FillUserData()
SetUserData( aUserData );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPathTabPage, PathSelect_Impl)
{
@@ -406,7 +406,7 @@ IMPL_LINK_NOARG(SvxPathTabPage, PathSelect_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPathTabPage, StandardHdl_Impl)
{
@@ -462,7 +462,7 @@ IMPL_LINK_NOARG(SvxPathTabPage, StandardHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
void SvxPathTabPage::ChangeCurrentEntry( const OUString& _rFolder )
{
@@ -527,7 +527,7 @@ void SvxPathTabPage::ChangeCurrentEntry( const OUString& _rFolder )
}
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPathTabPage, PathHdl_Impl)
{
@@ -634,7 +634,7 @@ IMPL_LINK_NOARG(SvxPathTabPage, PathHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxPathTabPage, HeaderSelect_Impl, HeaderBar*, pBar )
{
@@ -663,7 +663,7 @@ IMPL_LINK( SvxPathTabPage, HeaderSelect_Impl, HeaderBar*, pBar )
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxPathTabPage, HeaderEndDrag_Impl, HeaderBar*, pBar )
{
@@ -694,7 +694,7 @@ IMPL_LINK( SvxPathTabPage, HeaderEndDrag_Impl, HeaderBar*, pBar )
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxPathTabPage, DialogClosedHdl, DialogClosedEvent*, pEvt )
{
@@ -708,7 +708,7 @@ IMPL_LINK( SvxPathTabPage, DialogClosedHdl, DialogClosedEvent*, pEvt )
return 0L;
}
-// -----------------------------------------------------------------------
+
void SvxPathTabPage::GetPathList(
sal_uInt16 _nPathHandle, OUString& _rInternalPath,
@@ -778,7 +778,7 @@ void SvxPathTabPage::GetPathList(
}
}
-// -----------------------------------------------------------------------
+
void SvxPathTabPage::SetPathList(
sal_uInt16 _nPathHandle, const OUString& _rUserPath, const OUString& _rWritablePath )
diff --git a/cui/source/options/optsave.cxx b/cui/source/options/optsave.cxx
index 27d8da1de675..e4b6e58a6706 100644
--- a/cui/source/options/optsave.cxx
+++ b/cui/source/options/optsave.cxx
@@ -54,7 +54,7 @@ using namespace comphelper;
#define CFG_PAGE_AND_GROUP OUString("General"), OUString("LoadSave")
-// ----------------------------------------------------------------------
+
struct SvxSaveTabPage_Impl
{
@@ -196,14 +196,14 @@ SfxSaveTabPage::SfxSaveTabPage( Window* pParent, const SfxItemSet& rCoreSet ) :
DetectHiddenControls();
}
-// -----------------------------------------------------------------------
+
SfxSaveTabPage::~SfxSaveTabPage()
{
delete pImpl;
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SfxSaveTabPage::Create( Window* pParent,
const SfxItemSet& rAttrSet )
@@ -211,7 +211,7 @@ SfxTabPage* SfxSaveTabPage::Create( Window* pParent,
return ( new SfxSaveTabPage( pParent, rAttrSet ) );
}
-// -----------------------------------------------------------------------
+
void SfxSaveTabPage::DetectHiddenControls()
{
SvtOptionsDialogOptions aOptionsDlgOpt;
@@ -237,7 +237,7 @@ void SfxSaveTabPage::DetectHiddenControls()
}
}
-// -----------------------------------------------------------------------
+
sal_Bool SfxSaveTabPage::FillItemSet( SfxItemSet& rSet )
{
sal_Bool bModified = sal_False;
@@ -343,7 +343,7 @@ sal_Bool SfxSaveTabPage::FillItemSet( SfxItemSet& rSet )
return bModified;
}
-// -----------------------------------------------------------------------
+
sal_Bool isODFFormat( OUString sFilter )
{
@@ -497,7 +497,7 @@ void SfxSaveTabPage::Reset( const SfxItemSet& )
aODFVersionLB->SaveValue();
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SfxSaveTabPage, AutoClickHdl_Impl, CheckBox *, pBox )
{
diff --git a/cui/source/options/optupdt.cxx b/cui/source/options/optupdt.cxx
index 01a14d330f5c..41f875cccca7 100644
--- a/cui/source/options/optupdt.cxx
+++ b/cui/source/options/optupdt.cxx
@@ -82,13 +82,13 @@ SvxOnlineUpdateTabPage::SvxOnlineUpdateTabPage(Window* pParent, const SfxItemSet
UpdateLastCheckedText();
}
-// -----------------------------------------------------------------------
+
SvxOnlineUpdateTabPage::~SvxOnlineUpdateTabPage()
{
}
-// -----------------------------------------------------------------------
+
void SvxOnlineUpdateTabPage::UpdateLastCheckedText()
{
OUString aDateStr;
@@ -146,7 +146,7 @@ void SvxOnlineUpdateTabPage::UpdateLastCheckedText()
m_pLastChecked->SetText( aText );
}
-// -----------------------------------------------------------------------
+
SfxTabPage*
SvxOnlineUpdateTabPage::Create( Window* pParent, const SfxItemSet& rAttrSet )
@@ -154,7 +154,7 @@ SvxOnlineUpdateTabPage::Create( Window* pParent, const SfxItemSet& rAttrSet )
return new SvxOnlineUpdateTabPage( pParent, rAttrSet );
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxOnlineUpdateTabPage::FillItemSet( SfxItemSet& )
@@ -218,7 +218,7 @@ sal_Bool SvxOnlineUpdateTabPage::FillItemSet( SfxItemSet& )
return bModified;
}
-// -----------------------------------------------------------------------
+
void SvxOnlineUpdateTabPage::Reset( const SfxItemSet& )
{
@@ -260,13 +260,13 @@ void SvxOnlineUpdateTabPage::Reset( const SfxItemSet& )
m_pAutoDownloadCheckBox->SaveValue();
}
-// -----------------------------------------------------------------------
+
void SvxOnlineUpdateTabPage::FillUserData()
{
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxOnlineUpdateTabPage, AutoCheckHdl_Impl, CheckBox *, pBox )
{
@@ -279,7 +279,7 @@ IMPL_LINK( SvxOnlineUpdateTabPage, AutoCheckHdl_Impl, CheckBox *, pBox )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxOnlineUpdateTabPage, FileDialogHdl_Impl)
{
@@ -303,7 +303,7 @@ IMPL_LINK_NOARG(SvxOnlineUpdateTabPage, FileDialogHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxOnlineUpdateTabPage, CheckNowHdl_Impl)
{
diff --git a/cui/source/options/sdbcdriverenum.cxx b/cui/source/options/sdbcdriverenum.cxx
index 3a0bc110ce9a..e15be1bcdc90 100644
--- a/cui/source/options/sdbcdriverenum.cxx
+++ b/cui/source/options/sdbcdriverenum.cxx
@@ -47,7 +47,7 @@ namespace offapp
const ::std::vector< OUString >& getDriverImplNames() const { return m_aImplNames; }
};
- //--------------------------------------------------------------------
+
ODriverEnumerationImpl::ODriverEnumerationImpl()
{
try
@@ -76,25 +76,25 @@ namespace offapp
//====================================================================
//= ODriverEnumeration
//====================================================================
- //--------------------------------------------------------------------
+
ODriverEnumeration::ODriverEnumeration() throw()
:m_pImpl(new ODriverEnumerationImpl)
{
}
- //--------------------------------------------------------------------
+
ODriverEnumeration::~ODriverEnumeration() throw()
{
delete m_pImpl;
}
- //--------------------------------------------------------------------
+
ODriverEnumeration::const_iterator ODriverEnumeration::begin() const throw()
{
return m_pImpl->getDriverImplNames().begin();
}
- //--------------------------------------------------------------------
+
ODriverEnumeration::const_iterator ODriverEnumeration::end() const throw()
{
return m_pImpl->getDriverImplNames().end();
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index d0f10f9cbad7..057f014689b9 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -488,7 +488,7 @@ struct OptionsGroupInfo
~OptionsGroupInfo() { delete m_pInItemSet; delete m_pOutItemSet; }
};
-// -----------------------------------------------------------------------
+
#define INI_LIST() \
pCurrentPageEntry ( NULL ),\
@@ -951,7 +951,7 @@ IMPL_LINK( OfaTreeOptionsDialog, ImplHandleTreeLayoutTimerHdl, void*, EMPTYARG )
return 0;
}
-// --------------------------------------------------------------------
+
void OfaTreeOptionsDialog::SetPaneSize(Window *pPane)
{
//The OfaTreeOptionsDialog is not fully widget layout enabled
@@ -1369,9 +1369,9 @@ void OfaTreeOptionsDialog::ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet
SFX_APP()->SetOptions( aOptSet );
// get dispatcher anew, because SetOptions() might have destroyed the dispatcher
SfxViewFrame *pViewFrame = SfxViewFrame::Current();
-// -------------------------------------------------------------------------
+
// evaluate Year2000
-// -------------------------------------------------------------------------
+
sal_uInt16 nY2K = USHRT_MAX;
if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_YEAR2000, false, &pItem ) )
nY2K = ((const SfxUInt16Item*)pItem)->GetValue();
@@ -1385,9 +1385,9 @@ void OfaTreeOptionsDialog::ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet
aMisc.SetYear2000(nY2K);
}
-// -------------------------------------------------------------------------
+
// evaluate print
-// -------------------------------------------------------------------------
+
if(SFX_ITEM_SET == rSet.GetItemState(SID_PRINTER_NOTFOUND_WARN, false, &pItem))
aMisc.SetNotFoundWarning(((const SfxBoolItem*)pItem)->GetValue());
@@ -1397,9 +1397,9 @@ void OfaTreeOptionsDialog::ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet
aMisc.SetPaperSizeWarning(0 != (pFlag->GetValue() & SFX_PRINTER_CHG_SIZE ));
aMisc.SetPaperOrientationWarning(0 != (pFlag->GetValue() & SFX_PRINTER_CHG_ORIENTATION ));
}
-// -------------------------------------------------------------------------
+
// evaluate help options
-// -------------------------------------------------------------------------
+
if ( SvtHelpOptions().IsHelpTips() != Help::IsQuickHelpEnabled() )
SvtHelpOptions().IsHelpTips() ? Help::EnableQuickHelp() : Help::DisableQuickHelp();
if ( SvtHelpOptions().IsExtendedHelp() != Help::IsBalloonHelpEnabled() )
@@ -2289,7 +2289,7 @@ ExtensionsTabPage::ExtensionsTabPage(
{
}
-// -----------------------------------------------------------------------
+
ExtensionsTabPage::~ExtensionsTabPage()
{
@@ -2297,7 +2297,7 @@ ExtensionsTabPage::~ExtensionsTabPage()
DeactivatePage();
}
-// -----------------------------------------------------------------------
+
void ExtensionsTabPage::CreateDialogWithHandler()
{
@@ -2342,7 +2342,7 @@ void ExtensionsTabPage::CreateDialogWithHandler()
}
}
-// -----------------------------------------------------------------------
+
sal_Bool ExtensionsTabPage::DispatchAction( const OUString& rAction )
{
@@ -2361,7 +2361,7 @@ sal_Bool ExtensionsTabPage::DispatchAction( const OUString& rAction )
return bRet;
}
-// -----------------------------------------------------------------------
+
void ExtensionsTabPage::ActivatePage()
{
@@ -2389,7 +2389,7 @@ void ExtensionsTabPage::ActivatePage()
}
}
-// -----------------------------------------------------------------------
+
void ExtensionsTabPage::DeactivatePage()
{
@@ -2399,7 +2399,7 @@ void ExtensionsTabPage::DeactivatePage()
m_xPage->setVisible( sal_False );
}
-// -----------------------------------------------------------------------
+
void ExtensionsTabPage::ResetPage()
{
@@ -2407,7 +2407,7 @@ void ExtensionsTabPage::ResetPage()
ActivatePage();
}
-// -----------------------------------------------------------------------
+
void ExtensionsTabPage::SavePage()
{
diff --git a/cui/source/options/webconninfo.cxx b/cui/source/options/webconninfo.cxx
index 27b4cc9acac0..8fe16ad97964 100644
--- a/cui/source/options/webconninfo.cxx
+++ b/cui/source/options/webconninfo.cxx
@@ -101,7 +101,7 @@ void PasswordTable::setColWidths()
// class WebConnectionInfoDialog -----------------------------------------
-// -----------------------------------------------------------------------
+
WebConnectionInfoDialog::WebConnectionInfoDialog(Window* pParent)
: ModalDialog(pParent, "StoredWebConnectionDialog", "cui/ui/storedwebconnectiondialog.ui")
, m_nPos( -1 )
@@ -145,14 +145,14 @@ WebConnectionInfoDialog::~WebConnectionInfoDialog()
delete m_pPasswordsLB;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( WebConnectionInfoDialog, HeaderBarClickedHdl, SvSimpleTable*, pTable )
{
m_pPasswordsLB->Resort( NULL == pTable );
return 0;
}
-// -----------------------------------------------------------------------
+
void WebConnectionInfoDialog::FillPasswordList()
{
try
@@ -200,7 +200,7 @@ void WebConnectionInfoDialog::FillPasswordList()
{}
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(WebConnectionInfoDialog, RemovePasswordHdl)
{
try
@@ -232,7 +232,7 @@ IMPL_LINK_NOARG(WebConnectionInfoDialog, RemovePasswordHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(WebConnectionInfoDialog, RemoveAllPasswordsHdl)
{
try
@@ -256,7 +256,7 @@ IMPL_LINK_NOARG(WebConnectionInfoDialog, RemoveAllPasswordsHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(WebConnectionInfoDialog, ChangePasswordHdl)
{
try
@@ -295,7 +295,7 @@ IMPL_LINK_NOARG(WebConnectionInfoDialog, ChangePasswordHdl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(WebConnectionInfoDialog, EntrySelectedHdl)
{
SvTreeListEntry* pEntry = m_pPasswordsLB->GetCurEntry();
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 9e6492aa1215..9e0d8b0cbc0e 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -2055,7 +2055,7 @@ IMPL_LINK( OfaQuoteTabPage, StdQuoteHdl, PushButton*, pBtn )
return 0;
}
-// --------------------------------------------------
+
OUString OfaQuoteTabPage::ChangeStringExt_Impl( sal_UCS4 cChar )
{
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx
index 842ddf042f98..5b0717ccdd2f 100644
--- a/cui/source/tabpages/backgrnd.cxx
+++ b/cui/source/tabpages/backgrnd.cxx
@@ -147,7 +147,7 @@ static void lcl_setFillStyle(ListBox* pLbSelect, XFillStyle eStyle)
return;
}
}
-//-------------------------------------------------------------------------
+
sal_uInt16 GetItemId_Impl( ValueSet& rValueSet, const Color& rCol )
{
@@ -225,14 +225,14 @@ void BackgroundPreviewImpl::setBmp(bool bBmp)
Invalidate();
}
-//-----------------------------------------------------------------------
+
BackgroundPreviewImpl::~BackgroundPreviewImpl()
{
delete pBitmap;
}
-//-----------------------------------------------------------------------
+
void BackgroundPreviewImpl::NotifyChange( const Color& rColor )
{
if ( !bIsBmp )
@@ -246,7 +246,7 @@ void BackgroundPreviewImpl::NotifyChange( const Color& rColor )
}
}
-//-----------------------------------------------------------------------
+
void BackgroundPreviewImpl::NotifyChange( const Bitmap* pNewBitmap )
{
@@ -313,7 +313,7 @@ void BackgroundPreviewImpl::Resize()
recalcDrawPos();
}
-//-----------------------------------------------------------------------
+
void BackgroundPreviewImpl::Paint( const Rectangle& )
{
@@ -431,7 +431,7 @@ SvxBackgroundTabPage::SvxBackgroundTabPage(Window* pParent, const SfxItemSet& rC
m_pBackgroundColorSet->SetText(SVX_RESSTR(RID_SVXSTR_TRANSPARENT));
}
-//------------------------------------------------------------------------
+
SvxBackgroundTabPage::~SvxBackgroundTabPage()
{
@@ -455,7 +455,7 @@ SvxBackgroundTabPage::~SvxBackgroundTabPage()
}
}
-//------------------------------------------------------------------------
+
sal_uInt16* SvxBackgroundTabPage::GetRanges()
@@ -468,7 +468,7 @@ sal_uInt16* SvxBackgroundTabPage::GetRanges()
return pRanges;
}
-//------------------------------------------------------------------------
+
SfxTabPage* SvxBackgroundTabPage::Create( Window* pParent,
const SfxItemSet& rAttrSet )
@@ -482,7 +482,7 @@ SfxTabPage* SvxBackgroundTabPage::Create( Window* pParent,
return ( new SvxBackgroundTabPage( pParent, rAttrSet ) );
}
-//------------------------------------------------------------------------
+
void SvxBackgroundTabPage::Reset( const SfxItemSet& rSet )
{
@@ -715,7 +715,7 @@ void SvxBackgroundTabPage::ResetFromWallpaperItem( const SfxItemSet& rSet )
-//------------------------------------------------------------------------
+
void SvxBackgroundTabPage::FillUserData()
@@ -731,7 +731,7 @@ void SvxBackgroundTabPage::FillUserData()
SetUserData( m_pBtnPreview->IsChecked() ? OUString('1') : OUString('0') );
}
-//------------------------------------------------------------------------
+
sal_Bool SvxBackgroundTabPage::FillItemSet( SfxItemSet& rCoreSet )
{
@@ -1088,7 +1088,7 @@ sal_Bool SvxBackgroundTabPage::FillItemSetWithWallpaperItem( SfxItemSet& rCoreSe
return bModified;
}
-//-----------------------------------------------------------------------
+
int SvxBackgroundTabPage::DeactivatePage( SfxItemSet* _pSet )
@@ -1107,14 +1107,14 @@ int SvxBackgroundTabPage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-//-----------------------------------------------------------------------
+
void SvxBackgroundTabPage::PointChanged( Window* , RECT_POINT )
{
// has to be implemented so that position control can work
}
-//-----------------------------------------------------------------------
+
void SvxBackgroundTabPage::ShowSelector()
{
@@ -1147,7 +1147,7 @@ void SvxBackgroundTabPage::ShowSelector()
}
}
-//------------------------------------------------------------------------
+
void SvxBackgroundTabPage::RaiseLoadError_Impl()
@@ -1163,7 +1163,7 @@ void SvxBackgroundTabPage::RaiseLoadError_Impl()
aBgdGraphicPath ) );
}
-//------------------------------------------------------------------------
+
sal_Bool SvxBackgroundTabPage::LoadLinkedGraphic_Impl()
{
@@ -1174,7 +1174,7 @@ sal_Bool SvxBackgroundTabPage::LoadLinkedGraphic_Impl()
return bResult;
}
-//------------------------------------------------------------------------
+
void SvxBackgroundTabPage::FillColorValueSets_Impl()
@@ -1201,11 +1201,11 @@ void SvxBackgroundTabPage::FillColorValueSets_Impl()
m_pBackgroundColorSet->SetColCount(m_pBackgroundColorSet->getColumnCount());
}
-//------------------------------------------------------------------------
-//------------------------------------------------------------------------
+
+
void SvxBackgroundTabPage::ShowColorUI_Impl()
@@ -1235,7 +1235,7 @@ void SvxBackgroundTabPage::HideColorUI_Impl()
m_pBackGroundColorFrame->Hide();
}
-//------------------------------------------------------------------------
+
void SvxBackgroundTabPage::ShowBitmapUI_Impl()
@@ -1307,7 +1307,7 @@ void SvxBackgroundTabPage::HideGradientUI_Impl()
m_pBackGroundGradientFrame->Hide();
}
-//------------------------------------------------------------------------
+
void SvxBackgroundTabPage::SetGraphicPosition_Impl( SvxGraphicPosition ePos )
{
@@ -1353,7 +1353,7 @@ void SvxBackgroundTabPage::SetGraphicPosition_Impl( SvxGraphicPosition ePos )
m_pWndPosition->Invalidate();
}
-//------------------------------------------------------------------------
+
SvxGraphicPosition SvxBackgroundTabPage::GetGraphicPosition_Impl()
{
@@ -1379,9 +1379,9 @@ SvxGraphicPosition SvxBackgroundTabPage::GetGraphicPosition_Impl()
return GPOS_MM;
}
-//-----------------------------------------------------------------------
+
// Handler
-//-----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBackgroundTabPage, BackgroundColorHdl_Impl)
/*
@@ -1398,7 +1398,7 @@ IMPL_LINK_NOARG(SvxBackgroundTabPage, BackgroundColorHdl_Impl)
return 0;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBackgroundTabPage, SelectHdl_Impl)
{
@@ -1419,7 +1419,7 @@ IMPL_LINK_NOARG(SvxBackgroundTabPage, SelectHdl_Impl)
return 0;
}
-//------------------------------------------------------------------------
+
IMPL_LINK( SvxBackgroundTabPage, FileClickHdl_Impl, CheckBox*, pBox )
{
@@ -1468,7 +1468,7 @@ IMPL_LINK( SvxBackgroundTabPage, FileClickHdl_Impl, CheckBox*, pBox )
return 0;
}
-//------------------------------------------------------------------------
+
IMPL_LINK( SvxBackgroundTabPage, RadioClickHdl_Impl, RadioButton*, pBtn )
{
@@ -1503,7 +1503,7 @@ IMPL_LINK_NOARG(SvxBackgroundTabPage, ModifyGradientHdl_Impl)
return 0;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBackgroundTabPage, BrowseHdl_Impl)
@@ -1545,7 +1545,7 @@ IMPL_LINK_NOARG(SvxBackgroundTabPage, BrowseHdl_Impl)
return 0;
}
-//-----------------------------------------------------------------------
+
IMPL_LINK( SvxBackgroundTabPage, LoadTimerHdl_Impl, Timer* , pTimer )
@@ -1606,7 +1606,7 @@ IMPL_LINK( SvxBackgroundTabPage, LoadTimerHdl_Impl, Timer* , pTimer )
return 0;
}
-//-----------------------------------------------------------------------
+
void SvxBackgroundTabPage::ShowTblControl()
{
@@ -1617,7 +1617,7 @@ void SvxBackgroundTabPage::ShowTblControl()
m_pAsGrid->Show();
}
-//-----------------------------------------------------------------------
+
void SvxBackgroundTabPage::ShowParaControl(sal_Bool bCharOnly)
{
@@ -1631,7 +1631,7 @@ void SvxBackgroundTabPage::ShowParaControl(sal_Bool bCharOnly)
}
m_pParaLBox->SetData(m_pParaLBox); // here it can be recognized that this mode is turned on
}
-//-----------------------------------------------------------------------
+
IMPL_LINK( SvxBackgroundTabPage, TblDestinationHdl_Impl, ListBox*, pBox )
{
@@ -1723,7 +1723,7 @@ IMPL_LINK( SvxBackgroundTabPage, TblDestinationHdl_Impl, ListBox*, pBox )
return 0;
}
-//-----------------------------------------------------------------------
+
IMPL_LINK( SvxBackgroundTabPage, ParaDestinationHdl_Impl, ListBox*, pBox )
{
@@ -1787,7 +1787,7 @@ IMPL_LINK( SvxBackgroundTabPage, ParaDestinationHdl_Impl, ListBox*, pBox )
return 0;
}
-//-----------------------------------------------------------------------
+
void SvxBackgroundTabPage::FillControls_Impl( const SvxBrushItem& rBgdAttr,
const OUString& rUserData )
diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx
index 10462b3f7617..6f4b1d6e8bf8 100644
--- a/cui/source/tabpages/border.cxx
+++ b/cui/source/tabpages/border.cxx
@@ -47,7 +47,7 @@
using namespace ::editeng;
-// -----------------------------------------------------------------------
+
/*
* [Description:]
@@ -75,14 +75,14 @@ static sal_uInt16 pRanges[] =
0
};
-// -----------------------------------------------------------------------
+
static void lcl_SetDecimalDigitsTo1(MetricField& rField)
{
sal_Int64 nMin = rField.Denormalize( rField.GetMin( FUNIT_TWIP ) );
rField.SetDecimalDigits(1);
rField.SetMin( rField.Normalize( nMin ), FUNIT_TWIP );
}
-// -----------------------------------------------------------------------
+
SvxBorderTabPage::SvxBorderTabPage(Window* pParent, const SfxItemSet& rCoreAttrs)
: SfxTabPage(pParent, "BorderPage", "cui/ui/borderpage.ui", rCoreAttrs)
@@ -326,20 +326,20 @@ SvxBorderTabPage::SvxBorderTabPage(Window* pParent, const SfxItemSet& rCoreAttrs
m_pMergeAdjacentBordersCB->Hide();
}
-// -----------------------------------------------------------------------
+
SvxBorderTabPage::~SvxBorderTabPage()
{
}
-// -----------------------------------------------------------------------
+
sal_uInt16* SvxBorderTabPage::GetRanges()
{
return pRanges;
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxBorderTabPage::Create( Window* pParent,
const SfxItemSet& rAttrSet )
@@ -347,7 +347,7 @@ SfxTabPage* SvxBorderTabPage::Create( Window* pParent,
return ( new SvxBorderTabPage( pParent, rAttrSet ) );
}
-// -----------------------------------------------------------------------
+
void SvxBorderTabPage::ResetFrameLine_Impl( svx::FrameBorderType eBorder, const SvxBorderLine* pCoreLine, bool bValid )
{
@@ -369,7 +369,7 @@ bool SvxBorderTabPage::IsBorderLineStyleAllowed( sal_Int16 nStyle ) const
return maUsedBorderStyles.count(nStyle) > 0;
}
-// -----------------------------------------------------------------------
+
void SvxBorderTabPage::Reset( const SfxItemSet& rSet )
{
@@ -395,9 +395,9 @@ void SvxBorderTabPage::Reset( const SfxItemSet& rSet )
ResetFrameLine_Impl( svx::FRAMEBORDER_VER, pBoxInfoItem->GetVert(), pBoxInfoItem->IsValid( VALID_VERT ) );
ResetFrameLine_Impl( svx::FRAMEBORDER_HOR, pBoxInfoItem->GetHori(), pBoxInfoItem->IsValid( VALID_HORI ) );
- //-------------------
+
// distance inside
- //-------------------
+
if( !mbUseMarginItem )
{
if ( m_pLeftMF->IsVisible() )
@@ -481,9 +481,9 @@ void SvxBorderTabPage::Reset( const SfxItemSet& rSet )
m_pFrameSel->HideAllBorders();
}
- //-------------------------------------------------------------
+
// depict line (color) in controllers if unambiguous:
- //-------------------------------------------------------------
+
{
// Do all visible lines show the same line widths?
long nWidth;
@@ -573,7 +573,7 @@ void SvxBorderTabPage::Reset( const SfxItemSet& rSet )
m_pSynchronizeCB->Check(mbSync);
}
-// -----------------------------------------------------------------------
+
int SvxBorderTabPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -583,7 +583,7 @@ int SvxBorderTabPage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxBorderTabPage::FillItemSet( SfxItemSet& rCoreAttrs )
{
@@ -599,9 +599,9 @@ sal_Bool SvxBorderTabPage::FillItemSet( SfxItemSet& rCoreAttrs )
SfxMapUnit eCoreUnit = rOldSet.GetPool()->GetMetric( nBoxWhich );
- //------------------
+
// outer border:
- //------------------
+
typedef ::std::pair<svx::FrameBorderType,sal_uInt16> TBorderPair;
TBorderPair eTypes1[] = {
TBorderPair(svx::FRAMEBORDER_TOP,BOX_LINE_TOP),
@@ -613,9 +613,9 @@ sal_Bool SvxBorderTabPage::FillItemSet( SfxItemSet& rCoreAttrs )
for (sal_uInt32 i=0; i < SAL_N_ELEMENTS(eTypes1); ++i)
aBoxItem.SetLine( m_pFrameSel->GetFrameBorderStyle( eTypes1[i].first ), eTypes1[i].second );
- //--------------------------------
+
// border hor/ver and TableFlag
- //--------------------------------
+
TBorderPair eTypes2[] = {
TBorderPair(svx::FRAMEBORDER_HOR,BOXINFO_LINE_HORI),
TBorderPair(svx::FRAMEBORDER_VER,BOXINFO_LINE_VERT)
@@ -626,9 +626,9 @@ sal_Bool SvxBorderTabPage::FillItemSet( SfxItemSet& rCoreAttrs )
aBoxInfoItem.EnableHor( mbHorEnabled );
aBoxInfoItem.EnableVer( mbVerEnabled );
- //-------------------
+
// inner distance
- //-------------------
+
if( m_pLeftMF->IsVisible() )
{
// #i40405# enable distance controls for next dialog call
@@ -683,9 +683,9 @@ sal_Bool SvxBorderTabPage::FillItemSet( SfxItemSet& rCoreAttrs )
}
}
- //------------------------------------------
+
// note Don't Care Status in the Info-Item:
- //------------------------------------------
+
aBoxInfoItem.SetValid( VALID_TOP, m_pFrameSel->GetFrameBorderState( svx::FRAMEBORDER_TOP ) != svx::FRAMESTATE_DONTCARE );
aBoxInfoItem.SetValid( VALID_BOTTOM, m_pFrameSel->GetFrameBorderState( svx::FRAMEBORDER_BOTTOM ) != svx::FRAMESTATE_DONTCARE );
aBoxInfoItem.SetValid( VALID_LEFT, m_pFrameSel->GetFrameBorderState( svx::FRAMEBORDER_LEFT ) != svx::FRAMESTATE_DONTCARE );
@@ -736,14 +736,14 @@ sal_Bool SvxBorderTabPage::FillItemSet( SfxItemSet& rCoreAttrs )
return bAttrsChanged;
}
-// -----------------------------------------------------------------------
+
void SvxBorderTabPage::HideShadowControls()
{
m_pShadowFrame->Hide();
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBorderTabPage, SelPreHdl_Impl)
{
@@ -815,7 +815,7 @@ IMPL_LINK_NOARG(SvxBorderTabPage, SelPreHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBorderTabPage, SelSdwHdl_Impl)
{
@@ -827,7 +827,7 @@ IMPL_LINK_NOARG(SvxBorderTabPage, SelSdwHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxBorderTabPage, SelColHdl_Impl, ListBox *, pLb )
{
@@ -856,7 +856,7 @@ IMPL_LINK_NOARG(SvxBorderTabPage, ModifyWidthHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxBorderTabPage, SelStyleHdl_Impl, ListBox *, pLb )
{
@@ -883,7 +883,7 @@ const sal_uInt16 SVX_BORDER_PRESET_COUNT = 5;
// number of shadow images to show
const sal_uInt16 SVX_BORDER_SHADOW_COUNT = 5;
-// ----------------------------------------------------------------------------
+
sal_uInt16 SvxBorderTabPage::GetPresetImageId( sal_uInt16 nValueSetIdx ) const
{
@@ -951,7 +951,7 @@ sal_uInt16 SvxBorderTabPage::GetPresetStringId( sal_uInt16 nValueSetIdx ) const
return pnStrIds[ GetPresetImageId( nValueSetIdx ) - 1 ];
}
-// ----------------------------------------------------------------------------
+
void SvxBorderTabPage::FillPresetVS()
{
@@ -974,7 +974,7 @@ void SvxBorderTabPage::FillPresetVS()
m_pWndPresets->Show();
}
-// ----------------------------------------------------------------------------
+
void SvxBorderTabPage::FillShadowVS()
{
@@ -1004,7 +1004,7 @@ void SvxBorderTabPage::FillShadowVS()
m_pWndShadows->Show();
}
-// ----------------------------------------------------------------------------
+
void SvxBorderTabPage::FillValueSets()
{
@@ -1072,7 +1072,7 @@ void SvxBorderTabPage::FillLineListBox_Impl()
m_pLbLineStyle->SetWidth( nVal );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBorderTabPage, LinesChanged_Impl)
{
if(!mbUseMarginItem && m_pLeftMF->IsVisible())
@@ -1149,7 +1149,7 @@ IMPL_LINK_NOARG(SvxBorderTabPage, LinesChanged_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxBorderTabPage, ModifyDistanceHdl_Impl, MetricField*, pField)
{
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index 011765ef774a..b5b05ae0a7b3 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -159,20 +159,20 @@ inline SvxFont& SvxCharBasePage::GetPreviewFont()
return m_pPreviewWin->GetFont();
}
-// -----------------------------------------------------------------------
+
inline SvxFont& SvxCharBasePage::GetPreviewCJKFont()
{
return m_pPreviewWin->GetCJKFont();
}
-// -----------------------------------------------------------------------
+
inline SvxFont& SvxCharBasePage::GetPreviewCTLFont()
{
return m_pPreviewWin->GetCTLFont();
}
-// -----------------------------------------------------------------------
+
SvxCharBasePage::SvxCharBasePage(Window* pParent, const OString& rID, const OUString& rUIXMLDescription, const SfxItemSet& rItemset)
: SfxTabPage( pParent, rID, rUIXMLDescription, rItemset )
@@ -181,13 +181,13 @@ SvxCharBasePage::SvxCharBasePage(Window* pParent, const OString& rID, const OUSt
{
}
-// -----------------------------------------------------------------------
+
SvxCharBasePage::~SvxCharBasePage()
{
}
-// -----------------------------------------------------------------------
+
void SvxCharBasePage::ActivatePage( const SfxItemSet& rSet )
{
@@ -195,7 +195,7 @@ void SvxCharBasePage::ActivatePage( const SfxItemSet& rSet )
}
-// -----------------------------------------------------------------------
+
void SvxCharBasePage::SetPrevFontWidthScale( const SfxItemSet& rSet )
{
@@ -207,20 +207,20 @@ void SvxCharBasePage::SetPrevFontWidthScale( const SfxItemSet& rSet )
}
}
-// -----------------------------------------------------------------------
+
namespace
{
- // -----------------------------------------------------------------------
+
void setPrevFontEscapement(SvxFont& _rFont,sal_uInt8 nProp, sal_uInt8 nEscProp, short nEsc )
{
_rFont.SetPropr( nProp );
_rFont.SetProprRel( nEscProp );
_rFont.SetEscapement( nEsc );
}
- // -----------------------------------------------------------------------
- // -----------------------------------------------------------------------
+
+
}
-// -----------------------------------------------------------------------
+
void SvxCharBasePage::SetPrevFontEscapement( sal_uInt8 nProp, sal_uInt8 nEscProp, short nEsc )
{
@@ -369,14 +369,14 @@ SvxCharNamePage::SvxCharNamePage( Window* pParent, const SfxItemSet& rInSet )
Initialize();
}
-// -----------------------------------------------------------------------
+
SvxCharNamePage::~SvxCharNamePage()
{
delete m_pImpl;
}
-// -----------------------------------------------------------------------
+
void SvxCharNamePage::Initialize()
{
@@ -400,7 +400,7 @@ void SvxCharNamePage::Initialize()
m_pImpl->m_aUpdateTimer.SetTimeoutHdl( LINK( this, SvxCharNamePage, UpdateHdl_Impl ) );
}
-// -----------------------------------------------------------------------
+
const FontList* SvxCharNamePage::GetFontList() const
{
@@ -432,7 +432,7 @@ const FontList* SvxCharNamePage::GetFontList() const
return m_pImpl->m_pFontList;
}
-// -----------------------------------------------------------------------------
+
namespace
{
FontInfo calcFontInfo( SvxFont& _rFont,
@@ -503,7 +503,7 @@ namespace
}
}
-// -----------------------------------------------------------------------
+
void SvxCharNamePage::UpdatePreview_Impl()
{
@@ -541,7 +541,7 @@ void SvxCharNamePage::UpdatePreview_Impl()
m_pPreviewWin->Invalidate();
}
-// -----------------------------------------------------------------------
+
void SvxCharNamePage::FillStyleBox_Impl( const FontNameBox* pNameBox )
{
@@ -578,7 +578,7 @@ void SvxCharNamePage::FillStyleBox_Impl( const FontNameBox* pNameBox )
}
}
-// -----------------------------------------------------------------------
+
void SvxCharNamePage::FillSizeBox_Impl( const FontNameBox* pNameBox )
{
@@ -613,7 +613,7 @@ void SvxCharNamePage::FillSizeBox_Impl( const FontNameBox* pNameBox )
pSizeBox->Fill( &_aFontInfo, pFontList );
}
-// -----------------------------------------------------------------------
+
void SvxCharNamePage::Reset_Impl( const SfxItemSet& rSet, LanguageGroup eLangGrp )
{
@@ -837,7 +837,7 @@ void SvxCharNamePage::Reset_Impl( const SfxItemSet& rSet, LanguageGroup eLangGrp
pLangBox->SaveValue();
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxCharNamePage::FillItemSet_Impl( SfxItemSet& rSet, LanguageGroup eLangGrp )
{
@@ -1111,7 +1111,7 @@ sal_Bool SvxCharNamePage::FillItemSet_Impl( SfxItemSet& rSet, LanguageGroup eLan
return bModified;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharNamePage, UpdateHdl_Impl)
{
@@ -1119,7 +1119,7 @@ IMPL_LINK_NOARG(SvxCharNamePage, UpdateHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxCharNamePage, FontModifyHdl_Impl, void*, pNameBox )
{
@@ -1133,7 +1133,7 @@ IMPL_LINK( SvxCharNamePage, FontModifyHdl_Impl, void*, pNameBox )
return 0;
}
-// -----------------------------------------------------------------------
+
void SvxCharNamePage::ActivatePage( const SfxItemSet& rSet )
{
@@ -1142,7 +1142,7 @@ void SvxCharNamePage::ActivatePage( const SfxItemSet& rSet )
UpdatePreview_Impl(); // instead of asynchronous calling in ctor
}
-// -----------------------------------------------------------------------
+
int SvxCharNamePage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -1151,21 +1151,21 @@ int SvxCharNamePage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxCharNamePage::Create( Window* pParent, const SfxItemSet& rSet )
{
return new SvxCharNamePage( pParent, rSet );
}
-// -----------------------------------------------------------------------
+
sal_uInt16* SvxCharNamePage::GetRanges()
{
return pNameRanges;
}
-// -----------------------------------------------------------------------
+
void SvxCharNamePage::Reset( const SfxItemSet& rSet )
{
@@ -1177,7 +1177,7 @@ void SvxCharNamePage::Reset( const SfxItemSet& rSet )
UpdatePreview_Impl();
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxCharNamePage::FillItemSet( SfxItemSet& rSet )
{
@@ -1187,7 +1187,7 @@ sal_Bool SvxCharNamePage::FillItemSet( SfxItemSet& rSet )
return bModified;
}
-// -----------------------------------------------------------------------
+
void SvxCharNamePage::SetFontList( const SvxFontListItem& rItem )
{
@@ -1199,7 +1199,7 @@ void SvxCharNamePage::SetFontList( const SvxFontListItem& rItem )
m_pImpl->m_bMustDelete = sal_True;
}
-// -----------------------------------------------------------------------
+
namespace
{
void enableRelativeMode( SvxCharNamePage* _pPage, FontSizeBox* _pFontSizeLB, sal_uInt16 _nHeightWhich )
@@ -1218,7 +1218,7 @@ namespace
_pFontSizeLB->EnablePtRelativeMode( sal::static_int_cast< short >(-(nCurHeight - 20)), (9999 - nCurHeight), 10 );
}
}
-// -----------------------------------------------------------------------------
+
void SvxCharNamePage::EnableRelativeMode()
{
@@ -1228,13 +1228,13 @@ void SvxCharNamePage::EnableRelativeMode()
enableRelativeMode(this,m_pCTLFontSizeLB,GetWhich( SID_ATTR_CHAR_CTL_FONTHEIGHT ));
}
-// -----------------------------------------------------------------------
+
void SvxCharNamePage::EnableSearchMode()
{
m_pImpl->m_bInSearchMode = sal_True;
}
-// -----------------------------------------------------------------------
+
void SvxCharNamePage::DisableControls( sal_uInt16 nDisable )
{
if ( DISABLE_LANGUAGE & nDisable )
@@ -1258,13 +1258,13 @@ void SvxCharNamePage::DisableControls( sal_uInt16 nDisable )
}
}
-// -----------------------------------------------------------------------
+
void SvxCharNamePage::SetPreviewBackgroundToCharacter()
{
m_bPreviewBackgroundToCharacter = sal_True;
}
-// -----------------------------------------------------------------------
+
void SvxCharNamePage::PageCreated (SfxAllItemSet aSet)
{
SFX_ITEMSET_ARG (&aSet,pFontListItem,SvxFontListItem,SID_ATTR_CHAR_FONTLIST,false);
@@ -1317,7 +1317,7 @@ SvxCharEffectsPage::SvxCharEffectsPage( Window* pParent, const SfxItemSet& rInSe
Initialize();
}
-// -----------------------------------------------------------------------
+
void SvxCharEffectsPage::Initialize()
{
@@ -1424,7 +1424,7 @@ SvxCharEffectsPage::~SvxCharEffectsPage()
{
}
-// -----------------------------------------------------------------------
+
void SvxCharEffectsPage::UpdatePreview_Impl()
{
@@ -1491,7 +1491,7 @@ void SvxCharEffectsPage::UpdatePreview_Impl()
m_pPreviewWin->Invalidate();
}
-// -----------------------------------------------------------------------
+
void SvxCharEffectsPage::SetCaseMap_Impl( SvxCaseMap eCaseMap )
{
@@ -1507,7 +1507,7 @@ void SvxCharEffectsPage::SetCaseMap_Impl( SvxCaseMap eCaseMap )
UpdatePreview_Impl();
}
-// -----------------------------------------------------------------------
+
void SvxCharEffectsPage::ResetColor_Impl( const SfxItemSet& rSet )
{
@@ -1565,7 +1565,7 @@ void SvxCharEffectsPage::ResetColor_Impl( const SfxItemSet& rSet )
}
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxCharEffectsPage::FillItemSetColor_Impl( SfxItemSet& rSet )
{
@@ -1606,7 +1606,7 @@ sal_Bool SvxCharEffectsPage::FillItemSetColor_Impl( SfxItemSet& rSet )
return bModified;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxCharEffectsPage, SelectHdl_Impl, ListBox*, pBox )
{
@@ -1640,7 +1640,7 @@ IMPL_LINK( SvxCharEffectsPage, SelectHdl_Impl, ListBox*, pBox )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharEffectsPage, UpdatePreview_Impl)
{
@@ -1653,7 +1653,7 @@ IMPL_LINK_NOARG(SvxCharEffectsPage, UpdatePreview_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharEffectsPage, CbClickHdl_Impl)
{
@@ -1661,7 +1661,7 @@ IMPL_LINK_NOARG(SvxCharEffectsPage, CbClickHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharEffectsPage, TristClickHdl_Impl)
{
@@ -1669,7 +1669,7 @@ IMPL_LINK_NOARG(SvxCharEffectsPage, TristClickHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxCharEffectsPage, ColorBoxSelectHdl_Impl, ColorListBox*, pBox )
{
@@ -1689,7 +1689,7 @@ IMPL_LINK( SvxCharEffectsPage, ColorBoxSelectHdl_Impl, ColorListBox*, pBox )
m_pPreviewWin->Invalidate();
return 0;
}
-// -----------------------------------------------------------------------
+
int SvxCharEffectsPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -1698,21 +1698,21 @@ int SvxCharEffectsPage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxCharEffectsPage::Create( Window* pParent, const SfxItemSet& rSet )
{
return new SvxCharEffectsPage( pParent, rSet );
}
-// -----------------------------------------------------------------------
+
sal_uInt16* SvxCharEffectsPage::GetRanges()
{
return pEffectsRanges;
}
-// -----------------------------------------------------------------------
+
void SvxCharEffectsPage::Reset( const SfxItemSet& rSet )
{
@@ -2159,7 +2159,7 @@ void SvxCharEffectsPage::Reset( const SfxItemSet& rSet )
m_pFontColorLB->SaveValue();
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxCharEffectsPage::FillItemSet( SfxItemSet& rSet )
{
@@ -2511,13 +2511,13 @@ void SvxCharEffectsPage::EnableFlash()
m_pBlinkingBtn->Show();
}
-// -----------------------------------------------------------------------
+
void SvxCharEffectsPage::SetPreviewBackgroundToCharacter()
{
m_bPreviewBackgroundToCharacter = sal_True;
}
-// -----------------------------------------------------------------------
+
void SvxCharEffectsPage::PageCreated (SfxAllItemSet aSet)
{
SFX_ITEMSET_ARG (&aSet,pDisableCtlItem,SfxUInt16Item,SID_DISABLE_CTL,false);
@@ -2572,7 +2572,7 @@ SvxCharPositionPage::SvxCharPositionPage( Window* pParent, const SfxItemSet& rIn
Initialize();
}
-// -----------------------------------------------------------------------
+
void SvxCharPositionPage::Initialize()
{
@@ -2618,14 +2618,14 @@ SvxCharPositionPage::~SvxCharPositionPage()
{
}
-// -----------------------------------------------------------------------
+
void SvxCharPositionPage::UpdatePreview_Impl( sal_uInt8 nProp, sal_uInt8 nEscProp, short nEsc )
{
SetPrevFontEscapement( nProp, nEscProp, nEsc );
}
-// -----------------------------------------------------------------------
+
void SvxCharPositionPage::SetEscapement_Impl( sal_uInt16 nEsc )
{
@@ -2673,7 +2673,7 @@ void SvxCharPositionPage::SetEscapement_Impl( sal_uInt16 nEsc )
UpdatePreview_Impl( 100, aEscItm.GetProp(), aEscItm.GetEsc() );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxCharPositionPage, PositionHdl_Impl, RadioButton*, pBtn )
{
@@ -2688,7 +2688,7 @@ IMPL_LINK( SvxCharPositionPage, PositionHdl_Impl, RadioButton*, pBtn )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxCharPositionPage, RotationHdl_Impl, RadioButton*, pBtn )
{
@@ -2701,7 +2701,7 @@ IMPL_LINK( SvxCharPositionPage, RotationHdl_Impl, RadioButton*, pBtn )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharPositionPage, FontModifyHdl_Impl)
{
@@ -2712,7 +2712,7 @@ IMPL_LINK_NOARG(SvxCharPositionPage, FontModifyHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxCharPositionPage, AutoPositionHdl_Impl, CheckBox*, pBox )
{
@@ -2728,7 +2728,7 @@ IMPL_LINK( SvxCharPositionPage, AutoPositionHdl_Impl, CheckBox*, pBox )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxCharPositionPage, FitToLineHdl_Impl, CheckBox*, pBox )
{
@@ -2744,7 +2744,7 @@ IMPL_LINK( SvxCharPositionPage, FitToLineHdl_Impl, CheckBox*, pBox )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharPositionPage, KerningSelectHdl_Impl)
{
@@ -2779,7 +2779,7 @@ IMPL_LINK_NOARG(SvxCharPositionPage, KerningSelectHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharPositionPage, KerningModifyHdl_Impl)
{
@@ -2802,14 +2802,14 @@ IMPL_LINK_NOARG(SvxCharPositionPage, KerningModifyHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharPositionPage, PairKerningHdl_Impl)
{
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxCharPositionPage, LoseFocusHdl_Impl, MetricField*, pField )
{
@@ -2836,7 +2836,7 @@ IMPL_LINK( SvxCharPositionPage, LoseFocusHdl_Impl, MetricField*, pField )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharPositionPage, ScaleWidthModifyHdl_Impl)
{
@@ -2863,7 +2863,7 @@ void SvxCharPositionPage::ActivatePage( const SfxItemSet& rSet )
}
}
-// -----------------------------------------------------------------------
+
int SvxCharPositionPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -2872,21 +2872,21 @@ int SvxCharPositionPage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxCharPositionPage::Create( Window* pParent, const SfxItemSet& rSet )
{
return new SvxCharPositionPage( pParent, rSet );
}
-// -----------------------------------------------------------------------
+
sal_uInt16* SvxCharPositionPage::GetRanges()
{
return pPositionRanges;
}
-// -----------------------------------------------------------------------
+
void SvxCharPositionPage::Reset( const SfxItemSet& rSet )
{
OUString sUser = GetUserData();
@@ -3117,7 +3117,7 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet )
m_pPairKerningBtn->SaveValue();
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxCharPositionPage::FillItemSet( SfxItemSet& rSet )
{
@@ -3250,7 +3250,7 @@ sal_Bool SvxCharPositionPage::FillItemSet( SfxItemSet& rSet )
return bModified;
}
-// -----------------------------------------------------------------------
+
void SvxCharPositionPage::FillUserData()
{
@@ -3263,12 +3263,12 @@ void SvxCharPositionPage::FillUserData()
SetUserData( sUser );
}
-// -----------------------------------------------------------------------
+
void SvxCharPositionPage::SetPreviewBackgroundToCharacter()
{
m_bPreviewBackgroundToCharacter = sal_True;
}
-// -----------------------------------------------------------------------
+
void SvxCharPositionPage::PageCreated (SfxAllItemSet aSet)
{
SFX_ITEMSET_ARG (&aSet,pFlagItem,SfxUInt32Item,SID_FLAG_TYPE,false);
@@ -3300,7 +3300,7 @@ SvxCharTwoLinesPage::~SvxCharTwoLinesPage()
{
}
-// -----------------------------------------------------------------------
+
void SvxCharTwoLinesPage::Initialize()
{
@@ -3321,7 +3321,7 @@ void SvxCharTwoLinesPage::Initialize()
rCTLFont.SetSize( Size( 0, 220 ) );
}
-// -----------------------------------------------------------------------
+
void SvxCharTwoLinesPage::SelectCharacter( ListBox* pBox )
{
@@ -3341,7 +3341,7 @@ void SvxCharTwoLinesPage::SelectCharacter( ListBox* pBox )
delete aDlg;
}
-// -----------------------------------------------------------------------
+
void SvxCharTwoLinesPage::SetBracket( sal_Unicode cBracket, sal_Bool bStart )
{
@@ -3379,7 +3379,7 @@ void SvxCharTwoLinesPage::SetBracket( sal_Unicode cBracket, sal_Bool bStart )
m_nEndBracketPosition = nEntryPos;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxCharTwoLinesPage, TwoLinesHdl_Impl)
{
@@ -3390,7 +3390,7 @@ IMPL_LINK_NOARG(SvxCharTwoLinesPage, TwoLinesHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxCharTwoLinesPage, CharacterMapHdl_Impl, ListBox*, pBox )
{
@@ -3409,14 +3409,14 @@ IMPL_LINK( SvxCharTwoLinesPage, CharacterMapHdl_Impl, ListBox*, pBox )
return 0;
}
-// -----------------------------------------------------------------------
+
void SvxCharTwoLinesPage::ActivatePage( const SfxItemSet& rSet )
{
SvxCharBasePage::ActivatePage( rSet );
}
-// -----------------------------------------------------------------------
+
int SvxCharTwoLinesPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -3425,21 +3425,21 @@ int SvxCharTwoLinesPage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxCharTwoLinesPage::Create( Window* pParent, const SfxItemSet& rSet )
{
return new SvxCharTwoLinesPage( pParent, rSet );
}
-// -----------------------------------------------------------------------
+
sal_uInt16* SvxCharTwoLinesPage::GetRanges()
{
return pTwoLinesRanges;
}
-// -----------------------------------------------------------------------
+
void SvxCharTwoLinesPage::Reset( const SfxItemSet& rSet )
{
@@ -3463,7 +3463,7 @@ void SvxCharTwoLinesPage::Reset( const SfxItemSet& rSet )
SetPrevFontWidthScale( rSet );
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxCharTwoLinesPage::FillItemSet( SfxItemSet& rSet )
{
@@ -3506,13 +3506,13 @@ void SvxCharTwoLinesPage::UpdatePreview_Impl()
m_pPreviewWin->SetTwoLines(m_pTwoLinesBtn->IsChecked());
m_pPreviewWin->Invalidate();
}
-// -----------------------------------------------------------------------
+
void SvxCharTwoLinesPage::SetPreviewBackgroundToCharacter()
{
m_bPreviewBackgroundToCharacter = sal_True;
}
-// -----------------------------------------------------------------------
+
void SvxCharTwoLinesPage::PageCreated (SfxAllItemSet aSet)
{
SFX_ITEMSET_ARG (&aSet,pFlagItem,SfxUInt32Item,SID_FLAG_TYPE,false);
diff --git a/cui/source/tabpages/labdlg.cxx b/cui/source/tabpages/labdlg.cxx
index 4795f177e742..dac480293290 100644
--- a/cui/source/tabpages/labdlg.cxx
+++ b/cui/source/tabpages/labdlg.cxx
@@ -71,7 +71,7 @@ static sal_uInt16 pCaptionRanges[] =
0
};
-// -----------------------------------------------------------------------
+
SvxCaptionTabPage::SvxCaptionTabPage(Window* pParent, const SfxItemSet& rInAttrs)
: SfxTabPage(pParent, "CalloutPage", "cui/ui/calloutpage.ui", rInAttrs)
@@ -130,7 +130,7 @@ SvxCaptionTabPage::SvxCaptionTabPage(Window* pParent, const SfxItemSet& rInAttrs
m_pCB_LAENGE->SetClickHdl(LINK(this,SvxCaptionTabPage,LineOptHdl_Impl));
}
-// -----------------------------------------------------------------------
+
void SvxCaptionTabPage::Construct()
{
@@ -138,7 +138,7 @@ void SvxCaptionTabPage::Construct()
DBG_ASSERT( pView, "Keine gueltige View Uebergeben!" );
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxCaptionTabPage::FillItemSet( SfxItemSet& _rOutAttrs)
{
@@ -210,7 +210,7 @@ sal_Bool SvxCaptionTabPage::FillItemSet( SfxItemSet& _rOutAttrs)
return( sal_True );
}
-// -----------------------------------------------------------------------
+
void SvxCaptionTabPage::Reset( const SfxItemSet& )
{
@@ -328,7 +328,7 @@ void SvxCaptionTabPage::Reset( const SfxItemSet& )
SetupType_Impl( nCaptionType+1 );
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxCaptionTabPage::Create( Window* pWindow,
const SfxItemSet& rOutAttrs )
@@ -336,14 +336,14 @@ SfxTabPage* SvxCaptionTabPage::Create( Window* pWindow,
return( new SvxCaptionTabPage( pWindow, rOutAttrs ) );
}
-//------------------------------------------------------------------------
+
sal_uInt16* SvxCaptionTabPage::GetRanges()
{
return( pCaptionRanges );
}
-//------------------------------------------------------------------------
+
void SvxCaptionTabPage::SetupAnsatz_Impl( sal_uInt16 nType )
{
@@ -401,7 +401,7 @@ void SvxCaptionTabPage::SetupAnsatz_Impl( sal_uInt16 nType )
}
}
-//------------------------------------------------------------------------
+
IMPL_LINK_INLINE_START( SvxCaptionTabPage, AnsatzSelectHdl_Impl, ListBox *, pListBox )
{
@@ -413,7 +413,7 @@ IMPL_LINK_INLINE_START( SvxCaptionTabPage, AnsatzSelectHdl_Impl, ListBox *, pLis
}
IMPL_LINK_INLINE_END( SvxCaptionTabPage, AnsatzSelectHdl_Impl, ListBox *, pListBox )
-//------------------------------------------------------------------------
+
IMPL_LINK_INLINE_START( SvxCaptionTabPage, AnsatzRelSelectHdl_Impl, ListBox *, pListBox )
{
@@ -425,7 +425,7 @@ IMPL_LINK_INLINE_START( SvxCaptionTabPage, AnsatzRelSelectHdl_Impl, ListBox *, p
}
IMPL_LINK_INLINE_END( SvxCaptionTabPage, AnsatzRelSelectHdl_Impl, ListBox *, pListBox )
-//------------------------------------------------------------------------
+
IMPL_LINK( SvxCaptionTabPage, LineOptHdl_Impl, Button *, pButton )
{
@@ -445,7 +445,7 @@ IMPL_LINK( SvxCaptionTabPage, LineOptHdl_Impl, Button *, pButton )
return 0;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG_INLINE_START(SvxCaptionTabPage, SelectCaptTypeHdl_Impl)
{
@@ -454,7 +454,7 @@ IMPL_LINK_NOARG_INLINE_START(SvxCaptionTabPage, SelectCaptTypeHdl_Impl)
}
IMPL_LINK_NOARG_INLINE_END(SvxCaptionTabPage, SelectCaptTypeHdl_Impl)
-//------------------------------------------------------------------------
+
void SvxCaptionTabPage::SetupType_Impl( sal_uInt16 nType )
{
@@ -486,7 +486,7 @@ void SvxCaptionTabPage::SetupType_Impl( sal_uInt16 nType )
}
}
-// -----------------------------------------------------------------------
+
void SvxCaptionTabPage::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -496,7 +496,7 @@ void SvxCaptionTabPage::DataChanged( const DataChangedEvent& rDCEvt )
FillValueSet();
}
-// -----------------------------------------------------------------------
+
void SvxCaptionTabPage::FillValueSet()
{
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx
index 09fb9cd22953..f66104725ec9 100644
--- a/cui/source/tabpages/numfmt.cxx
+++ b/cui/source/tabpages/numfmt.cxx
@@ -161,7 +161,7 @@ void SvxNumberPreview::Paint( const Rectangle& )
DrawText( aPosText, aTmpStr );
}
-// -----------------------------------------------------------------------
+
void SvxNumberPreview::InitSettings( sal_Bool bForeground, sal_Bool bBackground )
{
@@ -187,7 +187,7 @@ void SvxNumberPreview::InitSettings( sal_Bool bForeground, sal_Bool bBackground
Invalidate();
}
-// -----------------------------------------------------------------------
+
void SvxNumberPreview::StateChanged( StateChangedType nType )
{
@@ -199,7 +199,7 @@ void SvxNumberPreview::StateChanged( StateChangedType nType )
Window::StateChanged( nType );
}
-// -----------------------------------------------------------------------
+
void SvxNumberPreview::DataChanged( const DataChangedEvent& rDCEvt )
{
@@ -712,9 +712,9 @@ sal_Bool SvxNumberFormatTabPage::FillItemSet( SfxItemSet& rCoreAttrs )
pNumFmtShell->FindEntry(aFormat, &nCurKey);
}
- //---------------------------------------------------------------
+
// Chosen format:
- // --------------
+
if ( bDataChanged )
{
bDataChanged = ( nInitFormat != nCurKey );
@@ -729,9 +729,9 @@ sal_Bool SvxNumberFormatTabPage::FillItemSet( SfxItemSet& rCoreAttrs )
}
}
- // --------------------------------------------------------------
+
// List of changed user defined formats:
- // -------------------------------------
+
const size_t nDelCount = pNumFmtShell->GetUpdateDataCount();
if ( nDelCount > 0 )
@@ -758,9 +758,9 @@ sal_Bool SvxNumberFormatTabPage::FillItemSet( SfxItemSet& rCoreAttrs )
delete [] pDelArr;
}
- //---------------------------------------------------------------
+
// Whether source format is to be taken or not:
- // --------------------------------------------
+
if ( m_pCbSourceFormat->IsEnabled() )
{
sal_uInt16 _nWhich = GetWhich( SID_ATTR_NUMBERFORMAT_SOURCE );
@@ -1170,7 +1170,7 @@ IMPL_LINK( SvxNumberFormatTabPage, SelFormatHdl_Impl, void *, pLb )
pNumFmtShell->SetCurrencySymbol(nCurrencyPos);
}
- //--------------------------------------------------------------------
+
// Format-ListBox ----------------------------------------------------
if (pLb == m_pLbFormat)
{
@@ -1220,7 +1220,7 @@ IMPL_LINK( SvxNumberFormatTabPage, SelFormatHdl_Impl, void *, pLb )
return 0;
}
- //--------------------------------------------------------------------
+
// category-ListBox -------------------------------------------------
if (pLb == m_pLbCategory || pLb == m_pLbCurrency)
{
@@ -1231,7 +1231,7 @@ IMPL_LINK( SvxNumberFormatTabPage, SelFormatHdl_Impl, void *, pLb )
return 0;
}
- //--------------------------------------------------------------------
+
// language/country-ListBox ----------------------------------------------
if (pLb == m_pLbLanguage)
{
diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx
index df72d04516b8..0b20ad2266dc 100644
--- a/cui/source/tabpages/page.cxx
+++ b/cui/source/tabpages/page.cxx
@@ -85,7 +85,7 @@ sal_uInt16 aArr[] =
SVX_PAGE_LEFT
};
-// -----------------------------------------------------------------------
+
sal_uInt16 PageUsageToPos_Impl( sal_uInt16 nUsage )
{
@@ -95,7 +95,7 @@ sal_uInt16 PageUsageToPos_Impl( sal_uInt16 nUsage )
return SVX_PAGE_ALL;
}
-// -----------------------------------------------------------------------
+
sal_uInt16 PosToPageUsage_Impl( sal_uInt16 nPos )
{
@@ -104,7 +104,7 @@ sal_uInt16 PosToPageUsage_Impl( sal_uInt16 nPos )
return aArr[nPos];
}
-// -----------------------------------------------------------------------
+
Size GetMinBorderSpace_Impl( const SvxShadowItem& rShadow, const SvxBoxItem& rBox )
{
@@ -116,7 +116,7 @@ Size GetMinBorderSpace_Impl( const SvxShadowItem& rShadow, const SvxBoxItem& rBo
return aSz;
}
-// -----------------------------------------------------------------------
+
long ConvertLong_Impl( const long nIn, SfxMapUnit eUnit )
{
@@ -136,7 +136,7 @@ sal_Bool IsEqualSize_Impl( const SvxSizeItem* pSize, const Size& rSize )
return sal_False;
}
-// -----------------------------------------------------------------------
+
#define MARGIN_LEFT ( (MarginPosition)0x0001 )
#define MARGIN_RIGHT ( (MarginPosition)0x0002 )
@@ -165,14 +165,14 @@ sal_uInt16* SvxPageDescPage::GetRanges()
return pRanges;
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxPageDescPage::Create( Window* pParent, const SfxItemSet& rSet )
{
return new SvxPageDescPage( pParent, rSet );
}
-// -----------------------------------------------------------------------
+
SvxPageDescPage::SvxPageDescPage( Window* pParent, const SfxItemSet& rAttr ) :
@@ -357,14 +357,14 @@ SvxPageDescPage::SvxPageDescPage( Window* pParent, const SfxItemSet& rAttr ) :
SvxNumOptionsTabPage::GetI18nNumbering( *m_pNumberFormatBox, ::std::numeric_limits<sal_uInt16>::max());
}
-// -----------------------------------------------------------------------
+
SvxPageDescPage::~SvxPageDescPage()
{
delete pImpl;
}
-// -----------------------------------------------------------------------
+
void SvxPageDescPage::Init_Impl()
{
@@ -398,7 +398,7 @@ void SvxPageDescPage::Init_Impl()
}
-// -----------------------------------------------------------------------
+
void SvxPageDescPage::Reset( const SfxItemSet& rSet )
{
@@ -650,7 +650,7 @@ void SvxPageDescPage::Reset( const SfxItemSet& rSet )
}
}
-// -----------------------------------------------------------------------
+
void SvxPageDescPage::FillUserData()
{
@@ -659,7 +659,7 @@ void SvxPageDescPage::FillUserData()
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxPageDescPage::FillItemSet( SfxItemSet& rSet )
{
@@ -884,7 +884,7 @@ sal_Bool SvxPageDescPage::FillItemSet( SfxItemSet& rSet )
return bModified;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPageDescPage, LayoutHdl_Impl)
{
@@ -909,7 +909,7 @@ IMPL_LINK_NOARG(SvxPageDescPage, LayoutHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPageDescPage, PaperBinHdl_Impl)
{
@@ -946,7 +946,7 @@ IMPL_LINK_NOARG(SvxPageDescPage, PaperBinHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxPageDescPage, PaperSizeSelect_Impl, ListBox *, pBox )
{
@@ -1018,7 +1018,7 @@ IMPL_LINK( SvxPageDescPage, PaperSizeSelect_Impl, ListBox *, pBox )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPageDescPage, PaperSizeModify_Impl)
{
@@ -1043,7 +1043,7 @@ IMPL_LINK_NOARG(SvxPageDescPage, PaperSizeModify_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxPageDescPage, SwapOrientation_Impl, RadioButton *, pBtn )
{
@@ -1072,7 +1072,7 @@ IMPL_LINK( SvxPageDescPage, SwapOrientation_Impl, RadioButton *, pBtn )
return 0;
}
-// -----------------------------------------------------------------------
+
void SvxPageDescPage::SwapFirstValues_Impl( bool bSet )
{
@@ -1141,7 +1141,7 @@ void SvxPageDescPage::SwapFirstValues_Impl( bool bSet )
}
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG_INLINE_START(SvxPageDescPage, BorderModify_Impl)
{
@@ -1152,7 +1152,7 @@ IMPL_LINK_NOARG_INLINE_START(SvxPageDescPage, BorderModify_Impl)
}
IMPL_LINK_NOARG_INLINE_END(SvxPageDescPage, BorderModify_Impl)
-// -----------------------------------------------------------------------
+
void SvxPageDescPage::UpdateExample_Impl( bool bResetbackground )
{
@@ -1175,7 +1175,7 @@ void SvxPageDescPage::UpdateExample_Impl( bool bResetbackground )
m_pBspWin->Invalidate();
}
-// -----------------------------------------------------------------------
+
void SvxPageDescPage::ResetBackground_Impl( const SfxItemSet& rSet )
{
@@ -1263,7 +1263,7 @@ void SvxPageDescPage::ResetBackground_Impl( const SfxItemSet& rSet )
m_pBspWin->SetBorder( (SvxBoxItem&)*pItem );
}
-// -----------------------------------------------------------------------
+
void SvxPageDescPage::InitHeadFoot_Impl( const SfxItemSet& rSet )
{
@@ -1370,7 +1370,7 @@ void SvxPageDescPage::InitHeadFoot_Impl( const SfxItemSet& rSet )
}
}
-// -----------------------------------------------------------------------
+
void SvxPageDescPage::ActivatePage( const SfxItemSet& rSet )
{
@@ -1379,7 +1379,7 @@ void SvxPageDescPage::ActivatePage( const SfxItemSet& rSet )
RangeHdl_Impl( 0 );
}
-// -----------------------------------------------------------------------
+
int SvxPageDescPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -1433,7 +1433,7 @@ int SvxPageDescPage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPageDescPage, RangeHdl_Impl)
{
@@ -1506,7 +1506,7 @@ IMPL_LINK_NOARG(SvxPageDescPage, RangeHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
void SvxPageDescPage::CalcMargin_Impl()
{
@@ -1549,7 +1549,7 @@ void SvxPageDescPage::CalcMargin_Impl()
}
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG_INLINE_START(SvxPageDescPage, CenterHdl_Impl)
{
@@ -1560,7 +1560,7 @@ IMPL_LINK_NOARG_INLINE_START(SvxPageDescPage, CenterHdl_Impl)
}
IMPL_LINK_NOARG_INLINE_END(SvxPageDescPage, CenterHdl_Impl)
-// -----------------------------------------------------------------------
+
void SvxPageDescPage::SetCollectionList(const std::vector<OUString> &aList)
{
@@ -1576,7 +1576,7 @@ void SvxPageDescPage::SetCollectionList(const std::vector<OUString> &aList)
m_pRegisterCB->SetClickHdl(LINK(this, SvxPageDescPage, RegisterModify));
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxPageDescPage, RegisterModify, CheckBox*, pBox )
{
@@ -1592,7 +1592,7 @@ IMPL_LINK( SvxPageDescPage, RegisterModify, CheckBox*, pBox )
return 0;
}
-// ----------------------------------------------------------------------------
+
void SvxPageDescPage::DisableVerticalPageDir()
{
diff --git a/cui/source/tabpages/tabarea.cxx b/cui/source/tabpages/tabarea.cxx
index 34a1687935e6..2a764fa0f87e 100644
--- a/cui/source/tabpages/tabarea.cxx
+++ b/cui/source/tabpages/tabarea.cxx
@@ -86,14 +86,14 @@ SvxAreaTabDialog::SvxAreaTabDialog
rBtnCancel.SetClickHdl( LINK( this, SvxAreaTabDialog, CancelHdlImpl ) );
}
-// -----------------------------------------------------------------------
+
SvxAreaTabDialog::~SvxAreaTabDialog()
{
}
-// -----------------------------------------------------------------------
+
void SvxAreaTabDialog::SavePalettes()
{
@@ -201,7 +201,7 @@ void SvxAreaTabDialog::SavePalettes()
}
}
}
-// -----------------------------------------------------------------------
+
short SvxAreaTabDialog::Ok()
{
@@ -213,7 +213,7 @@ short SvxAreaTabDialog::Ok()
return( SfxTabDialog::Ok() );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG_INLINE_START(SvxAreaTabDialog, CancelHdlImpl)
{
@@ -224,7 +224,7 @@ IMPL_LINK_NOARG_INLINE_START(SvxAreaTabDialog, CancelHdlImpl)
}
IMPL_LINK_INLINE_END( SvxAreaTabDialog, CancelHdlImpl, void *, p )
-// -----------------------------------------------------------------------
+
void SvxAreaTabDialog::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
{
diff --git a/cui/source/tabpages/tabline.cxx b/cui/source/tabpages/tabline.cxx
index 8c640fe51cc8..d5ccddf8fcb8 100644
--- a/cui/source/tabpages/tabline.cxx
+++ b/cui/source/tabpages/tabline.cxx
@@ -103,13 +103,13 @@ SvxLineTabDialog::SvxLineTabDialog
rBtnCancel.SetClickHdl( LINK( this, SvxLineTabDialog, CancelHdlImpl ) );
}
-// -----------------------------------------------------------------------
+
SvxLineTabDialog::~SvxLineTabDialog()
{
}
-// -----------------------------------------------------------------------
+
void SvxLineTabDialog::SavePalettes()
{
@@ -171,7 +171,7 @@ void SvxLineTabDialog::SavePalettes()
}
}
-// -----------------------------------------------------------------------
+
short SvxLineTabDialog::Ok()
{
@@ -182,7 +182,7 @@ short SvxLineTabDialog::Ok()
return( SfxTabDialog::Ok() );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG_INLINE_START(SvxLineTabDialog, CancelHdlImpl)
{
@@ -193,7 +193,7 @@ IMPL_LINK_NOARG_INLINE_START(SvxLineTabDialog, CancelHdlImpl)
}
IMPL_LINK_NOARG_INLINE_END(SvxLineTabDialog, CancelHdlImpl)
-// -----------------------------------------------------------------------
+
void SvxLineTabDialog::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
{
diff --git a/cui/source/tabpages/tabstpge.cxx b/cui/source/tabpages/tabstpge.cxx
index 0b487060437b..6ce623593122 100644
--- a/cui/source/tabpages/tabstpge.cxx
+++ b/cui/source/tabpages/tabstpge.cxx
@@ -186,20 +186,20 @@ SvxTabulatorTabPage::SvxTabulatorTabPage( Window* pParent, const SfxItemSet& rAt
aAktTab.GetDecimal() = rLocaleWrapper.getNumDecimalSep()[0];
}
-// -----------------------------------------------------------------------
+
SvxTabulatorTabPage::~SvxTabulatorTabPage()
{
}
-// -----------------------------------------------------------------------
+
sal_uInt16* SvxTabulatorTabPage::GetRanges()
{
return pRanges;
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxTabulatorTabPage::FillItemSet( SfxItemSet& rSet )
{
@@ -258,7 +258,7 @@ sal_Bool SvxTabulatorTabPage::FillItemSet( SfxItemSet& rSet )
return bModified;
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxTabulatorTabPage::Create( Window* pParent,
const SfxItemSet& rSet)
@@ -266,7 +266,7 @@ SfxTabPage* SvxTabulatorTabPage::Create( Window* pParent,
return ( new SvxTabulatorTabPage( pParent, rSet ) );
}
-// -----------------------------------------------------------------------
+
void SvxTabulatorTabPage::Reset( const SfxItemSet& rSet )
{
@@ -314,7 +314,7 @@ void SvxTabulatorTabPage::Reset( const SfxItemSet& rSet )
InitTabPos_Impl( nTabPos );
}
-// -----------------------------------------------------------------------
+
void SvxTabulatorTabPage::DisableControls( const sal_uInt16 nFlag )
{
@@ -359,7 +359,7 @@ void SvxTabulatorTabPage::DisableControls( const sal_uInt16 nFlag )
m_pFillFrame->Disable();
}
-// -----------------------------------------------------------------------
+
int SvxTabulatorTabPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -368,7 +368,7 @@ int SvxTabulatorTabPage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-// -----------------------------------------------------------------------
+
void SvxTabulatorTabPage::InitTabPos_Impl( sal_uInt16 nTabPos )
{
@@ -424,7 +424,7 @@ void SvxTabulatorTabPage::InitTabPos_Impl( sal_uInt16 nTabPos )
}
}
-// -----------------------------------------------------------------------
+
void SvxTabulatorTabPage::SetFillAndTabType_Impl()
{
@@ -471,7 +471,7 @@ void SvxTabulatorTabPage::SetFillAndTabType_Impl()
pFillBtn->Check();
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxTabulatorTabPage, NewHdl_Impl, Button *, pBtn )
{
@@ -529,7 +529,7 @@ IMPL_LINK( SvxTabulatorTabPage, NewHdl_Impl, Button *, pBtn )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxTabulatorTabPage, DelHdl_Impl)
{
@@ -572,7 +572,7 @@ IMPL_LINK_NOARG(SvxTabulatorTabPage, DelHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxTabulatorTabPage, DelAllHdl_Impl)
{
@@ -587,7 +587,7 @@ IMPL_LINK_NOARG(SvxTabulatorTabPage, DelAllHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxTabulatorTabPage, TabTypeCheckHdl_Impl, RadioButton *, pBox )
{
@@ -622,7 +622,7 @@ IMPL_LINK( SvxTabulatorTabPage, TabTypeCheckHdl_Impl, RadioButton *, pBox )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxTabulatorTabPage, FillTypeCheckHdl_Impl, RadioButton *, pBox )
{
@@ -653,7 +653,7 @@ IMPL_LINK( SvxTabulatorTabPage, FillTypeCheckHdl_Impl, RadioButton *, pBox )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxTabulatorTabPage, GetFillCharHdl_Impl, Edit *, pEdit )
{
@@ -671,7 +671,7 @@ IMPL_LINK( SvxTabulatorTabPage, GetFillCharHdl_Impl, Edit *, pEdit )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( SvxTabulatorTabPage, GetDezCharHdl_Impl, Edit *, pEdit )
{
@@ -688,7 +688,7 @@ IMPL_LINK( SvxTabulatorTabPage, GetDezCharHdl_Impl, Edit *, pEdit )
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxTabulatorTabPage, SelectHdl_Impl)
{
@@ -702,7 +702,7 @@ IMPL_LINK_NOARG(SvxTabulatorTabPage, SelectHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxTabulatorTabPage, ModifyHdl_Impl)
{
diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx
index 8f6f3ad8335f..49beef783e04 100644
--- a/cui/source/tabpages/tparea.cxx
+++ b/cui/source/tabpages/tparea.cxx
@@ -752,7 +752,7 @@ SvxAreaTabPage::SvxAreaTabPage( Window* pParent, const SfxItemSet& rInAttrs ) :
m_pCtlXRectPreview->set_height_request(aSize2.Height());
}
-// -----------------------------------------------------------------------
+
void SvxAreaTabPage::Construct()
{
@@ -765,7 +765,7 @@ void SvxAreaTabPage::Construct()
m_pLbBitmap->Fill( pBitmapList );
}
-// -----------------------------------------------------------------------
+
void SvxAreaTabPage::ActivatePage( const SfxItemSet& rSet )
{
@@ -912,7 +912,7 @@ void SvxAreaTabPage::ActivatePage( const SfxItemSet& rSet )
}
}
-// -----------------------------------------------------------------------
+
int SvxAreaTabPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -964,7 +964,7 @@ int SvxAreaTabPage::DeactivatePage( SfxItemSet* _pSet )
return( LEAVE_PAGE );
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxAreaTabPage::FillItemSet( SfxItemSet& rAttrs )
{
@@ -1401,7 +1401,7 @@ sal_Bool SvxAreaTabPage::FillItemSet( SfxItemSet& rAttrs )
return( bModified );
}
-// -----------------------------------------------------------------------
+
void SvxAreaTabPage::Reset( const SfxItemSet& rAttrs )
{
@@ -1720,7 +1720,7 @@ void SvxAreaTabPage::Reset( const SfxItemSet& rAttrs )
m_pMtrFldYOffset->SaveValue();
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxAreaTabPage::Create( Window* pWindow,
const SfxItemSet& rAttrs )
@@ -1728,14 +1728,14 @@ SfxTabPage* SvxAreaTabPage::Create( Window* pWindow,
return( new SvxAreaTabPage( pWindow, rAttrs ) );
}
-//------------------------------------------------------------------------
+
sal_uInt16* SvxAreaTabPage::GetRanges()
{
return( pAreaRanges );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxAreaTabPage, SelectDialogTypeHdl_Impl)
{
switch( (XFillStyle)m_pTypeLB->GetSelectEntryPos() )
@@ -1772,7 +1772,7 @@ void SvxAreaTabPage::ClickInvisibleHdl_Impl()
m_pCtlBitmapPreview->Invalidate();
}
-//------------------------------------------------------------------------
+
void SvxAreaTabPage::ClickColorHdl_Impl()
{
@@ -1811,7 +1811,7 @@ void SvxAreaTabPage::ClickColorHdl_Impl()
ModifyColorHdl_Impl( this );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxAreaTabPage, ModifyColorHdl_Impl)
{
@@ -1838,7 +1838,7 @@ IMPL_LINK_NOARG(SvxAreaTabPage, ModifyColorHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
void SvxAreaTabPage::ClickGradientHdl_Impl()
{
@@ -1882,7 +1882,7 @@ void SvxAreaTabPage::ClickGradientHdl_Impl()
ModifyStepCountHdl_Impl( m_pTsbStepCount );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxAreaTabPage, ModifyGradientHdl_Impl)
{
@@ -1910,7 +1910,7 @@ IMPL_LINK_NOARG(SvxAreaTabPage, ModifyGradientHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
void SvxAreaTabPage::ClickHatchingHdl_Impl()
{
@@ -1953,7 +1953,7 @@ void SvxAreaTabPage::ClickHatchingHdl_Impl()
ToggleHatchBckgrdColorHdl_Impl( this );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxAreaTabPage, ModifyHatchingHdl_Impl)
{
@@ -1981,7 +1981,7 @@ IMPL_LINK_NOARG(SvxAreaTabPage, ModifyHatchingHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxAreaTabPage, ModifyHatchBckgrdColorHdl_Impl)
{
@@ -2006,7 +2006,7 @@ IMPL_LINK_NOARG(SvxAreaTabPage, ModifyHatchBckgrdColorHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxAreaTabPage, ToggleHatchBckgrdColorHdl_Impl)
{
@@ -2031,7 +2031,7 @@ IMPL_LINK_NOARG(SvxAreaTabPage, ToggleHatchBckgrdColorHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
void SvxAreaTabPage::ClickBitmapHdl_Impl()
{
@@ -2080,7 +2080,7 @@ void SvxAreaTabPage::ClickBitmapHdl_Impl()
ModifyTileHdl_Impl( m_pTsbOriginal );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxAreaTabPage, ModifyBitmapHdl_Impl)
{
@@ -2108,7 +2108,7 @@ IMPL_LINK_NOARG(SvxAreaTabPage, ModifyBitmapHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK( SvxAreaTabPage, ModifyStepCountHdl_Impl, void *, p )
{
@@ -2139,7 +2139,7 @@ IMPL_LINK( SvxAreaTabPage, ModifyStepCountHdl_Impl, void *, p )
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxAreaTabPage, ModifyTileHdl_Impl)
{
@@ -2278,7 +2278,7 @@ IMPL_LINK_NOARG(SvxAreaTabPage, ModifyTileHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxAreaTabPage, ClickScaleHdl_Impl)
{
@@ -2316,7 +2316,7 @@ IMPL_LINK_NOARG(SvxAreaTabPage, ClickScaleHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
void SvxAreaTabPage::PointChanged( Window* pWindow, RECT_POINT eRcPt )
{
diff --git a/cui/source/tabpages/tpbitmap.cxx b/cui/source/tabpages/tpbitmap.cxx
index fff7dcf1756a..991d663916f9 100644
--- a/cui/source/tabpages/tpbitmap.cxx
+++ b/cui/source/tabpages/tpbitmap.cxx
@@ -122,7 +122,7 @@ SvxBitmapTabPage::~SvxBitmapTabPage()
delete m_pBitmapCtl;
}
-// -----------------------------------------------------------------------
+
void SvxBitmapTabPage::Construct()
{
@@ -132,7 +132,7 @@ void SvxBitmapTabPage::Construct()
m_pLbBitmaps->Fill( pBitmapList );
}
-// -----------------------------------------------------------------------
+
void SvxBitmapTabPage::ActivatePage( const SfxItemSet& )
{
@@ -210,7 +210,7 @@ void SvxBitmapTabPage::ActivatePage( const SfxItemSet& )
}
}
-// -----------------------------------------------------------------------
+
int SvxBitmapTabPage::DeactivatePage( SfxItemSet* _pSet)
{
@@ -223,7 +223,7 @@ int SvxBitmapTabPage::DeactivatePage( SfxItemSet* _pSet)
return LEAVE_PAGE;
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxBitmapTabPage::FillItemSet( SfxItemSet& _rOutAttrs )
{
@@ -252,7 +252,7 @@ sal_Bool SvxBitmapTabPage::FillItemSet( SfxItemSet& _rOutAttrs )
return sal_True;
}
-// -----------------------------------------------------------------------
+
void SvxBitmapTabPage::Reset( const SfxItemSet& )
{
@@ -287,7 +287,7 @@ void SvxBitmapTabPage::Reset( const SfxItemSet& )
}
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxBitmapTabPage::Create( Window* pWindow,
const SfxItemSet& rSet )
@@ -295,7 +295,7 @@ SfxTabPage* SvxBitmapTabPage::Create( Window* pWindow,
return new SvxBitmapTabPage( pWindow, rSet );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBitmapHdl_Impl)
{
@@ -415,7 +415,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBitmapHdl_Impl)
return 0;
}
-// -----------------------------------------------------------------------
+
long SvxBitmapTabPage::CheckChanges_Impl()
{
@@ -463,7 +463,7 @@ long SvxBitmapTabPage::CheckChanges_Impl()
return 0L;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBitmapTabPage, ClickAddHdl_Impl)
{
@@ -573,7 +573,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ClickAddHdl_Impl)
/******************************************************************************/
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBitmapTabPage, ClickImportHdl_Impl)
{
@@ -657,7 +657,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ClickImportHdl_Impl)
return 0L;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBitmapTabPage, ClickModifyHdl_Impl)
{
@@ -722,7 +722,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ClickModifyHdl_Impl)
return 0L;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBitmapTabPage, ClickDeleteHdl_Impl)
{
@@ -756,7 +756,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ClickDeleteHdl_Impl)
return 0L;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBitmapTabPage, ClickLoadHdl_Impl)
{
@@ -848,7 +848,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ClickLoadHdl_Impl)
return 0L;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBitmapTabPage, ClickSaveHdl_Impl)
{
@@ -908,7 +908,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ClickSaveHdl_Impl)
return 0L;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBitmapTabPage, ChangePixelColorHdl_Impl)
{
@@ -927,7 +927,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangePixelColorHdl_Impl)
return 0L;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBackgrndColorHdl_Impl)
{
@@ -946,7 +946,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBackgrndColorHdl_Impl)
return 0L;
}
-//------------------------------------------------------------------------
+
void SvxBitmapTabPage::PointChanged( Window* pWindow, RECT_POINT )
{
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx
index b5b3aff04649..3ec439a461dd 100644
--- a/cui/source/tabpages/tpcolor.cxx
+++ b/cui/source/tabpages/tpcolor.cxx
@@ -127,7 +127,7 @@ void SvxColorTabPage::UpdateTableName()
m_pTableName->SetText( aString );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxColorTabPage, ClickLoadHdl_Impl)
{
@@ -197,7 +197,7 @@ void SvxColorTabPage::EnableSave( bool bCanSave )
m_pBtnSave->Disable();
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxColorTabPage, ClickSaveHdl_Impl)
{
@@ -291,7 +291,7 @@ struct SvxColorTabPageShadow
}
};
-// -----------------------------------------------------------------------
+
SvxColorTabPage::SvxColorTabPage(Window* pParent, const SfxItemSet& rInAttrs)
: SfxTabPage(pParent, "ColorPage", "cui/ui/colorpage.ui", rInAttrs)
@@ -394,7 +394,7 @@ SvxColorTabPage::~SvxColorTabPage()
delete pShadow;
}
-// -----------------------------------------------------------------------
+
void SvxColorTabPage::ImpColorCountChanged()
{
@@ -403,7 +403,7 @@ void SvxColorTabPage::ImpColorCountChanged()
m_pValSetColorList->SetColCount(m_pValSetColorList->getColumnCount());
}
-// -----------------------------------------------------------------------
+
void SvxColorTabPage::Construct()
{
@@ -416,7 +416,7 @@ void SvxColorTabPage::Construct()
}
}
-// -----------------------------------------------------------------------
+
void SvxColorTabPage::ActivatePage( const SfxItemSet& )
{
@@ -470,7 +470,7 @@ void SvxColorTabPage::ActivatePage( const SfxItemSet& )
HideLoadSaveEmbed();
}
-// -----------------------------------------------------------------------
+
int SvxColorTabPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -483,7 +483,7 @@ int SvxColorTabPage::DeactivatePage( SfxItemSet* _pSet )
return( LEAVE_PAGE );
}
-// -----------------------------------------------------------------------
+
long SvxColorTabPage::CheckChanges_Impl()
{
@@ -554,7 +554,7 @@ long SvxColorTabPage::CheckChanges_Impl()
return 0;
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxColorTabPage::FillItemSet( SfxItemSet& rSet )
{
@@ -592,7 +592,7 @@ void SvxColorTabPage::UpdateModified()
EnableSave( bEnable );
}
-// -----------------------------------------------------------------------
+
void SvxColorTabPage::Reset( const SfxItemSet& rSet )
{
@@ -617,7 +617,7 @@ void SvxColorTabPage::Reset( const SfxItemSet& rSet )
UpdateModified();
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxColorTabPage::Create( Window* pWindow,
const SfxItemSet& rOutAttrs )
@@ -625,7 +625,7 @@ SfxTabPage* SvxColorTabPage::Create( Window* pWindow,
return( new SvxColorTabPage( pWindow, rOutAttrs ) );
}
-//------------------------------------------------------------------------
+
//
// is called when the content of the MtrFields is changed for color values
@@ -661,7 +661,7 @@ IMPL_LINK_NOARG(SvxColorTabPage, ModifiedHdl_Impl)
return 0;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxColorTabPage, ClickAddHdl_Impl)
{
@@ -738,7 +738,7 @@ IMPL_LINK_NOARG(SvxColorTabPage, ClickAddHdl_Impl)
return 0;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxColorTabPage, ClickModifyHdl_Impl)
{
@@ -813,7 +813,7 @@ IMPL_LINK_NOARG(SvxColorTabPage, ClickModifyHdl_Impl)
return 0;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxColorTabPage, ClickWorkOnHdl_Impl)
{
@@ -858,7 +858,7 @@ IMPL_LINK_NOARG(SvxColorTabPage, ClickWorkOnHdl_Impl)
return 0;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxColorTabPage, ClickDeleteHdl_Impl)
{
@@ -895,7 +895,7 @@ IMPL_LINK_NOARG(SvxColorTabPage, ClickDeleteHdl_Impl)
return 0;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxColorTabPage, SelectColorLBHdl_Impl)
{
@@ -918,7 +918,7 @@ IMPL_LINK_NOARG(SvxColorTabPage, SelectColorLBHdl_Impl)
return 0;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxColorTabPage, SelectValSetHdl_Impl)
{
@@ -941,7 +941,7 @@ IMPL_LINK_NOARG(SvxColorTabPage, SelectValSetHdl_Impl)
return 0;
}
-//------------------------------------------------------------------------
+
void SvxColorTabPage::ConvertColorValues (Color& rColor, ColorModel eModell)
{
@@ -1011,7 +1011,7 @@ IMPL_LINK_NOARG(SvxColorTabPage, SelectColorModelHdl_Impl)
return 0;
}
-//------------------------------------------------------------------------
+
long SvxColorTabPage::ChangeColorHdl_Impl( void* )
{
@@ -1046,7 +1046,7 @@ long SvxColorTabPage::ChangeColorHdl_Impl( void* )
return 0;
}
-//------------------------------------------------------------------------
+
//void SvxColorTabPage::FillValueSet_Impl( ValueSet& rVs )
//{
@@ -1063,7 +1063,7 @@ long SvxColorTabPage::ChangeColorHdl_Impl( void* )
// }
//}
-//------------------------------------------------------------------------
+
// A RGB value is converted to a CMYK value - not in an ideal way as
// R is converted into C, G into M and B into Y. The K value is held in an
@@ -1083,7 +1083,7 @@ void SvxColorTabPage::RgbToCmyk_Impl( Color& rColor, sal_uInt16& rK )
rColor.SetBlue( sal::static_int_cast< sal_uInt8 >( nColor3 - rK ) );
}
-//------------------------------------------------------------------------
+
// reverse case to RgbToCmyk_Impl (see above)
@@ -1110,7 +1110,7 @@ void SvxColorTabPage::CmykToRgb_Impl( Color& rColor, const sal_uInt16 nK )
rColor.SetBlue( (sal_uInt8)lTemp );
}
-//------------------------------------------------------------------------
+
sal_uInt16 SvxColorTabPage::ColorToPercent_Impl( sal_uInt16 nColor )
{
@@ -1130,7 +1130,7 @@ sal_uInt16 SvxColorTabPage::ColorToPercent_Impl( sal_uInt16 nColor )
return ( nWert );
}
-//------------------------------------------------------------------------
+
sal_uInt16 SvxColorTabPage::PercentToColor_Impl( sal_uInt16 nPercent )
{
@@ -1150,7 +1150,7 @@ sal_uInt16 SvxColorTabPage::PercentToColor_Impl( sal_uInt16 nPercent )
return ( nWert );
}
-//------------------------------------------------------------------------
+
void SvxColorTabPage::FillUserData()
{
@@ -1158,7 +1158,7 @@ void SvxColorTabPage::FillUserData()
SetUserData( OUString::number( eCM ) );
}
-//------------------------------------------------------------------------
+
void SvxColorTabPage::SetupForViewFrame( SfxViewFrame *pViewFrame )
{
diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx
index 8eaf6b698234..3fd8650c558c 100644
--- a/cui/source/tabpages/tpgradnt.cxx
+++ b/cui/source/tabpages/tpgradnt.cxx
@@ -137,7 +137,7 @@ SvxGradientTabPage::SvxGradientTabPage
setPreviewsToSamePlace(pParent, this);
}
-// -----------------------------------------------------------------------
+
void SvxGradientTabPage::Construct()
{
@@ -147,7 +147,7 @@ void SvxGradientTabPage::Construct()
m_pLbGradients->Fill( pGradientList );
}
-// -----------------------------------------------------------------------
+
void SvxGradientTabPage::ActivatePage( const SfxItemSet& )
{
@@ -224,7 +224,7 @@ void SvxGradientTabPage::ActivatePage( const SfxItemSet& )
}
}
-// -----------------------------------------------------------------------
+
int SvxGradientTabPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -237,7 +237,7 @@ int SvxGradientTabPage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-// -----------------------------------------------------------------------
+
long SvxGradientTabPage::CheckChanges_Impl()
{
@@ -304,7 +304,7 @@ long SvxGradientTabPage::CheckChanges_Impl()
return 0L;
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxGradientTabPage::FillItemSet( SfxItemSet& rSet )
{
@@ -343,7 +343,7 @@ sal_Bool SvxGradientTabPage::FillItemSet( SfxItemSet& rSet )
return sal_True;
}
-// -----------------------------------------------------------------------
+
void SvxGradientTabPage::Reset( const SfxItemSet& )
{
@@ -365,7 +365,7 @@ void SvxGradientTabPage::Reset( const SfxItemSet& )
}
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxGradientTabPage::Create( Window* pWindow,
const SfxItemSet& rOutAttrs )
@@ -373,7 +373,7 @@ SfxTabPage* SvxGradientTabPage::Create( Window* pWindow,
return new SvxGradientTabPage( pWindow, rOutAttrs );
}
-//------------------------------------------------------------------------
+
IMPL_LINK( SvxGradientTabPage, ModifiedHdl_Impl, void *, pControl )
{
@@ -402,7 +402,7 @@ IMPL_LINK( SvxGradientTabPage, ModifiedHdl_Impl, void *, pControl )
return 0L;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxGradientTabPage, ClickAddHdl_Impl)
{
@@ -505,7 +505,7 @@ IMPL_LINK_NOARG(SvxGradientTabPage, ClickAddHdl_Impl)
return 0L;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxGradientTabPage, ClickModifyHdl_Impl)
{
@@ -575,7 +575,7 @@ IMPL_LINK_NOARG(SvxGradientTabPage, ClickModifyHdl_Impl)
return 0L;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxGradientTabPage, ClickDeleteHdl_Impl)
{
@@ -608,7 +608,7 @@ IMPL_LINK_NOARG(SvxGradientTabPage, ClickDeleteHdl_Impl)
return 0L;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxGradientTabPage, ClickLoadHdl_Impl)
{
@@ -703,7 +703,7 @@ IMPL_LINK_NOARG(SvxGradientTabPage, ClickLoadHdl_Impl)
return 0L;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxGradientTabPage, ClickSaveHdl_Impl)
{
@@ -764,7 +764,7 @@ IMPL_LINK_NOARG(SvxGradientTabPage, ClickSaveHdl_Impl)
return 0L;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxGradientTabPage, ChangeGradientHdl_Impl)
{
@@ -839,7 +839,7 @@ IMPL_LINK_NOARG(SvxGradientTabPage, ChangeGradientHdl_Impl)
return 0L;
}
-//------------------------------------------------------------------------
+
void SvxGradientTabPage::SetControlState_Impl( XGradientStyle eXGS )
{
diff --git a/cui/source/tabpages/tphatch.cxx b/cui/source/tabpages/tphatch.cxx
index 327d58203d42..711a782cc3af 100644
--- a/cui/source/tabpages/tphatch.cxx
+++ b/cui/source/tabpages/tphatch.cxx
@@ -135,7 +135,7 @@ SvxHatchTabPage::SvxHatchTabPage
setPreviewsToSamePlace(pParent, this);
}
-// -----------------------------------------------------------------------
+
void SvxHatchTabPage::Construct()
{
@@ -143,7 +143,7 @@ void SvxHatchTabPage::Construct()
m_pLbHatchings->Fill( pHatchingList );
}
-// -----------------------------------------------------------------------
+
void SvxHatchTabPage::ActivatePage( const SfxItemSet& rSet )
{
@@ -213,7 +213,7 @@ void SvxHatchTabPage::ActivatePage( const SfxItemSet& rSet )
m_pCtlPreview->Invalidate();
}
-// -----------------------------------------------------------------------
+
int SvxHatchTabPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -226,7 +226,7 @@ int SvxHatchTabPage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-// -----------------------------------------------------------------------
+
long SvxHatchTabPage::CheckChanges_Impl()
{
@@ -276,7 +276,7 @@ long SvxHatchTabPage::CheckChanges_Impl()
return 0L;
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxHatchTabPage::FillItemSet( SfxItemSet& rSet )
{
@@ -312,7 +312,7 @@ sal_Bool SvxHatchTabPage::FillItemSet( SfxItemSet& rSet )
return sal_True;
}
-// -----------------------------------------------------------------------
+
void SvxHatchTabPage::Reset( const SfxItemSet& rSet )
{
@@ -338,7 +338,7 @@ void SvxHatchTabPage::Reset( const SfxItemSet& rSet )
m_pCtlPreview->Invalidate();
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxHatchTabPage::Create( Window* pWindow,
const SfxItemSet& rSet )
@@ -346,7 +346,7 @@ SfxTabPage* SvxHatchTabPage::Create( Window* pWindow,
return new SvxHatchTabPage( pWindow, rSet );
}
-//------------------------------------------------------------------------
+
IMPL_LINK( SvxHatchTabPage, ModifiedHdl_Impl, void *, p )
{
@@ -379,7 +379,7 @@ IMPL_LINK( SvxHatchTabPage, ModifiedHdl_Impl, void *, p )
return 0L;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxHatchTabPage, ChangeHatchHdl_Impl)
{
@@ -452,7 +452,7 @@ IMPL_LINK_NOARG(SvxHatchTabPage, ChangeHatchHdl_Impl)
return 0L;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxHatchTabPage, ClickAddHdl_Impl)
{
@@ -549,7 +549,7 @@ IMPL_LINK_NOARG(SvxHatchTabPage, ClickAddHdl_Impl)
return 0L;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxHatchTabPage, ClickModifyHdl_Impl)
{
@@ -619,7 +619,7 @@ IMPL_LINK_NOARG(SvxHatchTabPage, ClickModifyHdl_Impl)
return 0L;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxHatchTabPage, ClickDeleteHdl_Impl)
{
@@ -652,7 +652,7 @@ IMPL_LINK_NOARG(SvxHatchTabPage, ClickDeleteHdl_Impl)
return 0L;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxHatchTabPage, ClickLoadHdl_Impl)
{
@@ -738,7 +738,7 @@ IMPL_LINK_NOARG(SvxHatchTabPage, ClickLoadHdl_Impl)
return 0L;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxHatchTabPage, ClickSaveHdl_Impl)
{
@@ -798,7 +798,7 @@ IMPL_LINK_NOARG(SvxHatchTabPage, ClickSaveHdl_Impl)
return 0L;
}
-//------------------------------------------------------------------------
+
void SvxHatchTabPage::PointChanged( Window* pWindow, RECT_POINT eRcPt )
{
diff --git a/cui/source/tabpages/tpline.cxx b/cui/source/tabpages/tpline.cxx
index a17a774884fb..238919cd3108 100644
--- a/cui/source/tabpages/tpline.cxx
+++ b/cui/source/tabpages/tpline.cxx
@@ -513,7 +513,7 @@ void SvxLineTabPage::FillListboxes()
m_pLbEndStyle->SelectEntryPos( nOldSelect );
}
-// -----------------------------------------------------------------------
+
void SvxLineTabPage::ActivatePage( const SfxItemSet& rSet )
{
@@ -644,7 +644,7 @@ void SvxLineTabPage::ActivatePage( const SfxItemSet& rSet )
}
}
-// -----------------------------------------------------------------------
+
int SvxLineTabPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -664,7 +664,7 @@ int SvxLineTabPage::DeactivatePage( SfxItemSet* _pSet )
return( LEAVE_PAGE );
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxLineTabPage::FillItemSet( SfxItemSet& rAttrs )
{
@@ -957,7 +957,7 @@ sal_Bool SvxLineTabPage::FillItemSet( SfxItemSet& rAttrs )
return( bModified );
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxLineTabPage::FillXLSet_Impl()
{
@@ -1082,7 +1082,7 @@ sal_Bool SvxLineTabPage::FillXLSet_Impl()
return( sal_True );
}
-// -----------------------------------------------------------------------
+
void SvxLineTabPage::Reset( const SfxItemSet& rAttrs )
{
@@ -1486,7 +1486,7 @@ void SvxLineTabPage::Reset( const SfxItemSet& rAttrs )
ChangePreviewHdl_Impl( NULL );
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxLineTabPage::Create( Window* pWindow,
const SfxItemSet& rAttrs )
@@ -1494,14 +1494,14 @@ SfxTabPage* SvxLineTabPage::Create( Window* pWindow,
return( new SvxLineTabPage( pWindow, rAttrs ) );
}
-//------------------------------------------------------------------------
+
sal_uInt16* SvxLineTabPage::GetRanges()
{
return pLineRanges;
}
-//------------------------------------------------------------------------
+
IMPL_LINK( SvxLineTabPage, ChangePreviewHdl_Impl, void *, pCntrl )
{
@@ -1566,7 +1566,7 @@ IMPL_LINK( SvxLineTabPage, ChangePreviewHdl_Impl, void *, pCntrl )
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK( SvxLineTabPage, ChangeStartHdl_Impl, void *, p )
{
@@ -1585,7 +1585,7 @@ IMPL_LINK( SvxLineTabPage, ChangeStartHdl_Impl, void *, p )
return( 0L );
}
-//------------------------------------------------------------------------
+
// #116827#
IMPL_LINK_NOARG(SvxLineTabPage, ChangeEdgeStyleHdl_Impl)
@@ -1595,7 +1595,7 @@ IMPL_LINK_NOARG(SvxLineTabPage, ChangeEdgeStyleHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
// fdo#43209
IMPL_LINK( SvxLineTabPage, ChangeCapStyleHdl_Impl, void *, EMPTYARG )
@@ -1604,7 +1604,7 @@ IMPL_LINK( SvxLineTabPage, ChangeCapStyleHdl_Impl, void *, EMPTYARG )
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineTabPage, ClickInvisibleHdl_Impl)
{
@@ -1641,7 +1641,7 @@ IMPL_LINK_NOARG(SvxLineTabPage, ClickInvisibleHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK( SvxLineTabPage, ChangeEndHdl_Impl, void *, p )
{
@@ -1660,7 +1660,7 @@ IMPL_LINK( SvxLineTabPage, ChangeEndHdl_Impl, void *, p )
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineTabPage, ChangeTransparentHdl_Impl)
{
@@ -1677,14 +1677,14 @@ IMPL_LINK_NOARG(SvxLineTabPage, ChangeTransparentHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
void SvxLineTabPage::PointChanged( Window*, RECT_POINT eRcPt )
{
eRP = eRcPt;
}
-//------------------------------------------------------------------------
+
void SvxLineTabPage::FillUserData()
{
diff --git a/cui/source/tabpages/tplnedef.cxx b/cui/source/tabpages/tplnedef.cxx
index e3b3de8f0b0f..f2d9ab92b182 100644
--- a/cui/source/tabpages/tplnedef.cxx
+++ b/cui/source/tabpages/tplnedef.cxx
@@ -147,7 +147,7 @@ SvxLineDefTabPage::SvxLineDefTabPage
}
-// -----------------------------------------------------------------------
+
void SvxLineDefTabPage::Construct()
{
@@ -155,7 +155,7 @@ void SvxLineDefTabPage::Construct()
m_pLbLineStyles->Fill( pDashList );
}
-// -----------------------------------------------------------------------
+
void SvxLineDefTabPage::ActivatePage( const SfxItemSet& )
{
@@ -187,7 +187,7 @@ void SvxLineDefTabPage::ActivatePage( const SfxItemSet& )
}
}
-// -----------------------------------------------------------------------
+
int SvxLineDefTabPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -199,7 +199,7 @@ int SvxLineDefTabPage::DeactivatePage( SfxItemSet* _pSet )
return( LEAVE_PAGE );
}
-// -----------------------------------------------------------------------
+
void SvxLineDefTabPage::CheckChanges_Impl()
{
@@ -255,7 +255,7 @@ void SvxLineDefTabPage::CheckChanges_Impl()
}
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxLineDefTabPage::FillItemSet( SfxItemSet& rAttrs )
{
@@ -273,7 +273,7 @@ sal_Bool SvxLineDefTabPage::FillItemSet( SfxItemSet& rAttrs )
return( sal_True );
}
-// -----------------------------------------------------------------------
+
void SvxLineDefTabPage::Reset( const SfxItemSet& rAttrs )
{
@@ -319,14 +319,14 @@ void SvxLineDefTabPage::Reset( const SfxItemSet& rAttrs )
}
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxLineDefTabPage::Create( Window* pWindow, const SfxItemSet& rOutAttrs )
{
return( new SvxLineDefTabPage( pWindow, rOutAttrs ) );
}
-//------------------------------------------------------------------------
+
IMPL_LINK( SvxLineDefTabPage, SelectLinestyleHdl_Impl, void *, p )
{
@@ -360,7 +360,7 @@ IMPL_LINK( SvxLineDefTabPage, SelectLinestyleHdl_Impl, void *, p )
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG_INLINE_START(SvxLineDefTabPage, ChangePreviewHdl_Impl)
{
@@ -371,7 +371,7 @@ IMPL_LINK_NOARG_INLINE_START(SvxLineDefTabPage, ChangePreviewHdl_Impl)
}
IMPL_LINK_NOARG_INLINE_END(SvxLineDefTabPage, ChangePreviewHdl_Impl)
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineDefTabPage, ChangeNumber1Hdl_Impl)
{
@@ -391,7 +391,7 @@ IMPL_LINK_NOARG(SvxLineDefTabPage, ChangeNumber1Hdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineDefTabPage, ChangeNumber2Hdl_Impl)
{
@@ -412,7 +412,7 @@ IMPL_LINK_NOARG(SvxLineDefTabPage, ChangeNumber2Hdl_Impl)
}
-//------------------------------------------------------------------------
+
IMPL_LINK( SvxLineDefTabPage, ChangeMetricHdl_Impl, void *, p )
{
@@ -482,7 +482,7 @@ IMPL_LINK( SvxLineDefTabPage, ChangeMetricHdl_Impl, void *, p )
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK( SvxLineDefTabPage, SelectTypeHdl_Impl, void *, p )
{
@@ -517,7 +517,7 @@ IMPL_LINK( SvxLineDefTabPage, SelectTypeHdl_Impl, void *, p )
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineDefTabPage, ClickAddHdl_Impl)
{
@@ -608,7 +608,7 @@ IMPL_LINK_NOARG(SvxLineDefTabPage, ClickAddHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineDefTabPage, ClickModifyHdl_Impl)
{
@@ -680,7 +680,7 @@ IMPL_LINK_NOARG(SvxLineDefTabPage, ClickModifyHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineDefTabPage, ClickDeleteHdl_Impl)
{
@@ -717,7 +717,7 @@ IMPL_LINK_NOARG(SvxLineDefTabPage, ClickDeleteHdl_Impl)
return( 0L );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineDefTabPage, ClickLoadHdl_Impl)
{
@@ -790,7 +790,7 @@ IMPL_LINK_NOARG(SvxLineDefTabPage, ClickLoadHdl_Impl)
return( 0L );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineDefTabPage, ClickSaveHdl_Impl)
{
@@ -837,7 +837,7 @@ IMPL_LINK_NOARG(SvxLineDefTabPage, ClickSaveHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
void SvxLineDefTabPage::FillDash_Impl()
{
@@ -861,7 +861,7 @@ void SvxLineDefTabPage::FillDash_Impl()
m_pCtlPreview->SetLineAttributes(aXLineAttr.GetItemSet());
}
-//------------------------------------------------------------------------
+
void SvxLineDefTabPage::FillDialog_Impl()
{
diff --git a/cui/source/tabpages/tplneend.cxx b/cui/source/tabpages/tplneend.cxx
index e12ded378d06..946ef7635f1f 100644
--- a/cui/source/tabpages/tplneend.cxx
+++ b/cui/source/tabpages/tplneend.cxx
@@ -107,13 +107,13 @@ void SvxLineEndDefTabPage::Resize()
SfxTabPage::Resize();
}
-//------------------------------------------------------------------------
+
SvxLineEndDefTabPage::~SvxLineEndDefTabPage()
{
}
-// -----------------------------------------------------------------------
+
void SvxLineEndDefTabPage::Construct()
{
@@ -141,7 +141,7 @@ void SvxLineEndDefTabPage::Construct()
m_pBtnAdd->Disable();
}
-// -----------------------------------------------------------------------
+
void SvxLineEndDefTabPage::ActivatePage( const SfxItemSet& )
{
@@ -165,7 +165,7 @@ void SvxLineEndDefTabPage::ActivatePage( const SfxItemSet& )
}
}
-// -----------------------------------------------------------------------
+
int SvxLineEndDefTabPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -177,7 +177,7 @@ int SvxLineEndDefTabPage::DeactivatePage( SfxItemSet* _pSet )
return( LEAVE_PAGE );
}
-// -----------------------------------------------------------------------
+
void SvxLineEndDefTabPage::CheckChanges_Impl()
{
@@ -203,7 +203,7 @@ void SvxLineEndDefTabPage::CheckChanges_Impl()
*pPosLineEndLb = nPos;
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxLineEndDefTabPage::FillItemSet( SfxItemSet& rSet )
{
@@ -223,7 +223,7 @@ sal_Bool SvxLineEndDefTabPage::FillItemSet( SfxItemSet& rSet )
return( sal_True );
}
-// -----------------------------------------------------------------------
+
void SvxLineEndDefTabPage::Reset( const SfxItemSet& )
{
@@ -262,14 +262,14 @@ void SvxLineEndDefTabPage::Reset( const SfxItemSet& )
}
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxLineEndDefTabPage::Create( Window* pWindow, const SfxItemSet& rSet )
{
return( new SvxLineEndDefTabPage( pWindow, rSet ) );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineEndDefTabPage, SelectLineEndHdl_Impl)
{
@@ -296,7 +296,7 @@ IMPL_LINK_NOARG(SvxLineEndDefTabPage, SelectLineEndHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
long SvxLineEndDefTabPage::ChangePreviewHdl_Impl( void* )
{
@@ -304,7 +304,7 @@ long SvxLineEndDefTabPage::ChangePreviewHdl_Impl( void* )
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineEndDefTabPage, ClickModifyHdl_Impl)
{
@@ -386,7 +386,7 @@ IMPL_LINK_NOARG(SvxLineEndDefTabPage, ClickModifyHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineEndDefTabPage, ClickAddHdl_Impl)
{
@@ -502,7 +502,7 @@ IMPL_LINK_NOARG(SvxLineEndDefTabPage, ClickAddHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineEndDefTabPage, ClickDeleteHdl_Impl)
{
@@ -538,7 +538,7 @@ IMPL_LINK_NOARG(SvxLineEndDefTabPage, ClickDeleteHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineEndDefTabPage, ClickLoadHdl_Impl)
{
@@ -608,7 +608,7 @@ IMPL_LINK_NOARG(SvxLineEndDefTabPage, ClickLoadHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxLineEndDefTabPage, ClickSaveHdl_Impl)
{
diff --git a/cui/source/tabpages/tpshadow.cxx b/cui/source/tabpages/tpshadow.cxx
index 22c2d4fda335..1da2af8ddbf5 100644
--- a/cui/source/tabpages/tpshadow.cxx
+++ b/cui/source/tabpages/tpshadow.cxx
@@ -165,7 +165,7 @@ SvxShadowTabPage::SvxShadowTabPage( Window* pParent, const SfxItemSet& rInAttrs
}
-// -----------------------------------------------------------------------
+
void SvxShadowTabPage::Construct()
{
@@ -178,7 +178,7 @@ void SvxShadowTabPage::Construct()
}
}
-// -----------------------------------------------------------------------
+
void SvxShadowTabPage::ActivatePage( const SfxItemSet& rSet )
{
@@ -232,7 +232,7 @@ void SvxShadowTabPage::ActivatePage( const SfxItemSet& rSet )
}
}
-// -----------------------------------------------------------------------
+
int SvxShadowTabPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -242,7 +242,7 @@ int SvxShadowTabPage::DeactivatePage( SfxItemSet* _pSet )
return( LEAVE_PAGE );
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxShadowTabPage::FillItemSet( SfxItemSet& rAttrs )
{
@@ -351,7 +351,7 @@ sal_Bool SvxShadowTabPage::FillItemSet( SfxItemSet& rAttrs )
return( bModified );
}
-// -----------------------------------------------------------------------
+
void SvxShadowTabPage::Reset( const SfxItemSet& rAttrs )
{
@@ -454,7 +454,7 @@ void SvxShadowTabPage::Reset( const SfxItemSet& rAttrs )
}
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxShadowTabPage::Create( Window* pWindow,
const SfxItemSet& rAttrs )
@@ -462,14 +462,14 @@ SfxTabPage* SvxShadowTabPage::Create( Window* pWindow,
return( new SvxShadowTabPage( pWindow, rAttrs ) );
}
-//------------------------------------------------------------------------
+
sal_uInt16* SvxShadowTabPage::GetRanges()
{
return( pShadowRanges );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxShadowTabPage, ClickShadowHdl_Impl)
{
@@ -488,7 +488,7 @@ IMPL_LINK_NOARG(SvxShadowTabPage, ClickShadowHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxShadowTabPage, ModifyShadowHdl_Impl)
{
@@ -531,7 +531,7 @@ IMPL_LINK_NOARG(SvxShadowTabPage, ModifyShadowHdl_Impl)
return( 0L );
}
-//------------------------------------------------------------------------
+
void SvxShadowTabPage::PointChanged( Window* pWindow, RECT_POINT eRcPt )
{
diff --git a/cui/source/tabpages/transfrm.cxx b/cui/source/tabpages/transfrm.cxx
index 3a0b0ec7c73e..7fd60dc65b6c 100644
--- a/cui/source/tabpages/transfrm.cxx
+++ b/cui/source/tabpages/transfrm.cxx
@@ -132,13 +132,13 @@ SvxTransformTabDialog::SvxTransformTabDialog( Window* pParent, const SfxItemSet*
nSlant = AddTabPage("RID_SVXPAGE_SLANT", SvxSlantTabPage::Create, SvxSlantTabPage::GetRanges);
}
-// -----------------------------------------------------------------------
+
SvxTransformTabDialog::~SvxTransformTabDialog()
{
}
-// -----------------------------------------------------------------------
+
void SvxTransformTabDialog::PageCreated(sal_uInt16 nId, SfxTabPage &rPage)
{
@@ -185,7 +185,7 @@ void SvxTransformTabDialog::PageCreated(sal_uInt16 nId, SfxTabPage &rPage)
}
}
-// -----------------------------------------------------------------------
+
void SvxTransformTabDialog::SetValidateFramePosLink(const Link& rLink)
{
@@ -223,7 +223,7 @@ SvxAngleTabPage::SvxAngleTabPage( Window* pParent, const SfxItemSet& rInAttrs )
m_pCtlAngle->SetLinkedField( m_pNfAngle, 2 );
}
-// -----------------------------------------------------------------------
+
void SvxAngleTabPage::Construct()
{
@@ -293,7 +293,7 @@ sal_Bool SvxAngleTabPage::FillItemSet(SfxItemSet& rSet)
return bModified;
}
-// -----------------------------------------------------------------------
+
void SvxAngleTabPage::Reset(const SfxItemSet& rAttrs)
{
@@ -333,27 +333,27 @@ void SvxAngleTabPage::Reset(const SfxItemSet& rAttrs)
m_pCtlAngle->SaveValue();
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxAngleTabPage::Create( Window* pWindow, const SfxItemSet& rSet)
{
return(new SvxAngleTabPage(pWindow, rSet));
}
-//------------------------------------------------------------------------
+
sal_uInt16* SvxAngleTabPage::GetRanges()
{
return(pAngleRanges);
}
-// -----------------------------------------------------------------------
+
void SvxAngleTabPage::ActivatePage(const SfxItemSet& /*rSet*/)
{
}
-// -----------------------------------------------------------------------
+
int SvxAngleTabPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -365,7 +365,7 @@ int SvxAngleTabPage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-//------------------------------------------------------------------------
+
void SvxAngleTabPage::PointChanged(Window* pWindow, RECT_POINT eRP)
{
@@ -458,7 +458,7 @@ SvxSlantTabPage::SvxSlantTabPage( Window* pParent, const SfxItemSet& rInAttrs )
ePoolUnit = pPool->GetMetric( SID_ATTR_TRANSFORM_POS_X );
}
-// -----------------------------------------------------------------------
+
void SvxSlantTabPage::Construct()
{
@@ -474,7 +474,7 @@ void SvxSlantTabPage::Construct()
}
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxSlantTabPage::FillItemSet(SfxItemSet& rAttrs)
{
@@ -516,7 +516,7 @@ sal_Bool SvxSlantTabPage::FillItemSet(SfxItemSet& rAttrs)
return( bModified );
}
-// -----------------------------------------------------------------------
+
void SvxSlantTabPage::Reset(const SfxItemSet& rAttrs)
{
@@ -570,21 +570,21 @@ void SvxSlantTabPage::Reset(const SfxItemSet& rAttrs)
m_pMtrAngle->SaveValue();
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxSlantTabPage::Create( Window* pWindow, const SfxItemSet& rOutAttrs )
{
return( new SvxSlantTabPage( pWindow, rOutAttrs ) );
}
-//------------------------------------------------------------------------
+
sal_uInt16* SvxSlantTabPage::GetRanges()
{
return( pSlantRanges );
}
-// -----------------------------------------------------------------------
+
void SvxSlantTabPage::ActivatePage( const SfxItemSet& rSet )
{
@@ -597,7 +597,7 @@ void SvxSlantTabPage::ActivatePage( const SfxItemSet& rSet )
}
}
-// -----------------------------------------------------------------------
+
int SvxSlantTabPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -609,7 +609,7 @@ int SvxSlantTabPage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-//------------------------------------------------------------------------
+
void SvxSlantTabPage::PointChanged( Window* , RECT_POINT )
{
@@ -682,7 +682,7 @@ SvxPositionSizeTabPage::SvxPositionSizeTabPage( Window* pParent, const SfxItemSe
}
-// -----------------------------------------------------------------------
+
void SvxPositionSizeTabPage::Construct()
{
@@ -780,7 +780,7 @@ void SvxPositionSizeTabPage::Construct()
SetMinMaxPosition();
}
-// -----------------------------------------------------------------------
+
sal_Bool SvxPositionSizeTabPage::FillItemSet( SfxItemSet& rOutAttrs )
{
@@ -904,7 +904,7 @@ sal_Bool SvxPositionSizeTabPage::FillItemSet( SfxItemSet& rOutAttrs )
return bModified;
}
-// -----------------------------------------------------------------------
+
void SvxPositionSizeTabPage::Reset( const SfxItemSet& )
{
@@ -1011,21 +1011,21 @@ void SvxPositionSizeTabPage::Reset( const SfxItemSet& )
ChangeSizeProtectHdl( this );
}
-// -----------------------------------------------------------------------
+
SfxTabPage* SvxPositionSizeTabPage::Create( Window* pWindow, const SfxItemSet& rOutAttrs )
{
return( new SvxPositionSizeTabPage( pWindow, rOutAttrs ) );
}
-//------------------------------------------------------------------------
+
sal_uInt16* SvxPositionSizeTabPage::GetRanges()
{
return( pPosSizeRanges );
}
-// -----------------------------------------------------------------------
+
void SvxPositionSizeTabPage::ActivatePage( const SfxItemSet& rSet )
{
@@ -1042,7 +1042,7 @@ void SvxPositionSizeTabPage::ActivatePage( const SfxItemSet& rSet )
}
}
-// -----------------------------------------------------------------------
+
int SvxPositionSizeTabPage::DeactivatePage( SfxItemSet* _pSet )
{
@@ -1063,7 +1063,7 @@ int SvxPositionSizeTabPage::DeactivatePage( SfxItemSet* _pSet )
return LEAVE_PAGE;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPositionSizeTabPage, ChangePosProtectHdl)
{
@@ -1073,7 +1073,7 @@ IMPL_LINK_NOARG(SvxPositionSizeTabPage, ChangePosProtectHdl)
return( 0L );
}
-//------------------------------------------------------------------------
+
void SvxPositionSizeTabPage::UpdateControlStates()
{
@@ -1107,7 +1107,7 @@ void SvxPositionSizeTabPage::UpdateControlStates()
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPositionSizeTabPage, ChangeSizeProtectHdl)
{
@@ -1129,7 +1129,7 @@ IMPL_LINK_NOARG(SvxPositionSizeTabPage, ChangeSizeProtectHdl)
return( 0L );
}
-//------------------------------------------------------------------------
+
void SvxPositionSizeTabPage::SetMinMaxPosition()
{
@@ -1300,7 +1300,7 @@ void SvxPositionSizeTabPage::SetMinMaxPosition()
m_pMtrHeight->SetLast(basegfx::fround64(fNewY));
}
-//------------------------------------------------------------------------
+
void SvxPositionSizeTabPage::GetTopLeftPosition(double& rfX, double& rfY, const basegfx::B2DRange& rRange)
{
@@ -1357,7 +1357,7 @@ void SvxPositionSizeTabPage::GetTopLeftPosition(double& rfX, double& rfY, const
}
}
-//------------------------------------------------------------------------
+
void SvxPositionSizeTabPage::PointChanged( Window* pWindow, RECT_POINT eRP )
{
@@ -1429,21 +1429,21 @@ void SvxPositionSizeTabPage::PointChanged( Window* pWindow, RECT_POINT eRP )
}
}
-//------------------------------------------------------------------------
+
void SvxPositionSizeTabPage::DisableResize()
{
mbSizeDisabled = true;
}
-//------------------------------------------------------------------------
+
void SvxPositionSizeTabPage::DisableProtect()
{
mbProtectDisabled = true;
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPositionSizeTabPage, ChangeWidthHdl)
{
@@ -1468,7 +1468,7 @@ IMPL_LINK_NOARG(SvxPositionSizeTabPage, ChangeWidthHdl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPositionSizeTabPage, ChangeHeightHdl)
{
@@ -1493,7 +1493,7 @@ IMPL_LINK_NOARG(SvxPositionSizeTabPage, ChangeHeightHdl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPositionSizeTabPage, ClickSizeProtectHdl)
{
@@ -1501,7 +1501,7 @@ IMPL_LINK_NOARG(SvxPositionSizeTabPage, ClickSizeProtectHdl)
return( 0L );
}
-//------------------------------------------------------------------------
+
IMPL_LINK_NOARG(SvxPositionSizeTabPage, ClickAutoHdl)
{
@@ -1514,7 +1514,7 @@ IMPL_LINK_NOARG(SvxPositionSizeTabPage, ClickAutoHdl)
return( 0L );
}
-//------------------------------------------------------------------------
+
void SvxPositionSizeTabPage::FillUserData()
{
diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx
index 0e9c68d14240..e4cf2969071c 100644
--- a/dbaccess/source/ui/browser/brwctrlr.cxx
+++ b/dbaccess/source/ui/browser/brwctrlr.cxx
@@ -759,7 +759,7 @@ sal_Bool SbaXDataBrowserController::Construct(Window* pParent)
if ( xGridSet.is() )
xGridSet->setPropertyValue(PROPERTY_BORDER, makeAny((sal_Int16)2));
- // ----------
+
// marry them
Reference< ::com::sun::star::container::XNameContainer > xNameCont(m_xRowSet, UNO_QUERY);
{
diff --git a/dbaccess/source/ui/dlg/advancedsettings.hxx b/dbaccess/source/ui/dlg/advancedsettings.hxx
index 4ae9f848e82c..de516292be6e 100644
--- a/dbaccess/source/ui/dlg/advancedsettings.hxx
+++ b/dbaccess/source/ui/dlg/advancedsettings.hxx
@@ -32,13 +32,11 @@
namespace dbaui
{
-
struct BooleanSettingDesc;
typedef ::std::vector< BooleanSettingDesc > BooleanSettingDescs;
// SpecialSettingsPage
- /** implements the "Special Settings" page of the advanced database settings
- */
+ // implements the "Special Settings" page of the advanced database settings
class SpecialSettingsPage : public OGenericAdministrationPage
{
protected:
@@ -115,7 +113,7 @@ namespace dbaui
GeneratedValuesPage( Window* pParent, const SfxItemSet& _rCoreAttrs );
protected:
- // nControlFlags ist eine Kombination der CBTP_xxx-Konstanten
+ // nControlFlags ist eine Kombination der CBTP_xxx-Konstanten
virtual ~GeneratedValuesPage();
// must be overloaded by subclasses, but it isn't pure virtual
@@ -131,7 +129,7 @@ namespace dbaui
DECL_LINK( OnCheckBoxClick, CheckBox * );
};
-} // namespace dbaui
+}
#endif // INCLUDED_DBACCESS_SOURCE_UI_DLG_ADVANCEDSETTINGS_HXX
diff --git a/dbaccess/source/ui/relationdesign/RTableConnection.cxx b/dbaccess/source/ui/relationdesign/RTableConnection.cxx
index f84984f28304..c05f561c2515 100644
--- a/dbaccess/source/ui/relationdesign/RTableConnection.cxx
+++ b/dbaccess/source/ui/relationdesign/RTableConnection.cxx
@@ -35,7 +35,7 @@ ORelationTableConnection::ORelationTableConnection( ORelationTableView* pContain
ORelationTableConnection::ORelationTableConnection( const ORelationTableConnection& rConn )
: OTableConnection( rConn )
{
- // keine eigenen Members, also reicht die Basisklassenfunktionalitaet
+ // no own members, thus the base class functionality is enough
}
ORelationTableConnection::~ORelationTableConnection()
@@ -44,7 +44,7 @@ ORelationTableConnection::~ORelationTableConnection()
ORelationTableConnection& ORelationTableConnection::operator=( const ORelationTableConnection& rConn )
{
- // nicht dass es was aendern wuerde, da die Basisklasse das auch testet und ich keine eigenen Members zu kopieren habe
+ // this doesn't change anything, since the base class tests this, too and I don't have my own members to copy
if (&rConn == this)
return *this;
@@ -59,7 +59,7 @@ void ORelationTableConnection::Draw( const Rectangle& rRect )
if ( pData && (pData->GetCardinality() == CARDINAL_UNDEFINED) )
return;
- // Linien nach oberster Linie durchsuchen
+ // search lines for top line
Rectangle aBoundingRect;
long nTop = GetBoundingRect().Bottom();
long nTemp;
@@ -82,7 +82,7 @@ void ORelationTableConnection::Draw( const Rectangle& rRect )
}
}
- // Kardinalitaet antragen
+ // cardinality
if( !pTopLine )
return;
diff --git a/dbaccess/source/ui/relationdesign/RTableConnectionData.cxx b/dbaccess/source/ui/relationdesign/RTableConnectionData.cxx
index aa7c5c83a606..a046a0ea9675 100644
--- a/dbaccess/source/ui/relationdesign/RTableConnectionData.cxx
+++ b/dbaccess/source/ui/relationdesign/RTableConnectionData.cxx
@@ -78,7 +78,7 @@ ORelationTableConnectionData::~ORelationTableConnectionData()
sal_Bool ORelationTableConnectionData::DropRelation()
{
::osl::MutexGuard aGuard( m_aMutex );
- // Relation loeschen
+ // delete relation
Reference< XIndexAccess> xKeys = getReferencingTable()->getKeys();
if( !m_aConnName.isEmpty() && xKeys.is() )
{
@@ -107,7 +107,7 @@ sal_Bool ORelationTableConnectionData::DropRelation()
void ORelationTableConnectionData::ChangeOrientation()
{
- // Source- und DestFieldName der Linien austauschen
+ // exchange Source- and DestFieldName of the lines
OUString sTempString;
OConnectionLineDataVec::iterator aIter = m_vConnLineData.begin();
OConnectionLineDataVec::iterator aEnd = m_vConnLineData.end();
@@ -118,7 +118,7 @@ void ORelationTableConnectionData::ChangeOrientation()
(*aIter)->SetDestFieldName( sTempString );
}
- // Member anpassen
+ // adapt member
TTableWindowData::value_type pTemp = m_pReferencingTable;
m_pReferencingTable = m_pReferencedTable;
m_pReferencedTable = pTemp;
@@ -184,7 +184,7 @@ sal_Bool ORelationTableConnectionData::IsConnectionPossible()
{
::osl::MutexGuard aGuard( m_aMutex );
- // Wenn die SourceFelder ein PrimKey sind, ist nur die Orientierung falsch
+ // if the SourceFields are a PrimKey, it's only the orientation which is wrong
if ( IsSourcePrimKey() && !IsDestPrimKey() )
ChangeOrientation();
@@ -203,7 +203,7 @@ OConnectionLineDataRef ORelationTableConnectionData::CreateLineDataObj( const OC
void ORelationTableConnectionData::CopyFrom(const OTableConnectionData& rSource)
{
- // wie in der Basisklasse zurueckziehen auf das (nicht-virtuelle) operator=
+ // retract to the (non-virtual) operator= like in the base class
*this = *static_cast<const ORelationTableConnectionData*>(&rSource);
}
@@ -251,7 +251,7 @@ bool operator==(const ORelationTableConnectionData& lhs, const ORelationTableCon
sal_Bool ORelationTableConnectionData::Update()
{
::osl::MutexGuard aGuard( m_aMutex );
- // Alte Relation loeschen
+ // delete old relation
{
DropRelation();
if( !IsConnectionPossible() )
@@ -264,7 +264,7 @@ sal_Bool ORelationTableConnectionData::Update()
if ( !xKeys.is() )
return sal_False;
- // Neue Relation erzeugen
+ // create new relation
Reference<XDataDescriptorFactory> xKeyFactory(xKeys,UNO_QUERY);
OSL_ENSURE(xKeyFactory.is(),"No XDataDescriptorFactory Interface!");
Reference<XAppend> xAppend(xKeyFactory,UNO_QUERY);
@@ -318,7 +318,7 @@ sal_Bool ORelationTableConnectionData::Update()
// to get the key we have to reget it because after append it is no longer valid
}
- // get the name of foreign key // search for columns
+ // get the name of foreign key; search for columns
m_aConnName = OUString();
xKey.clear();
bool bDropRelation = false;
@@ -418,7 +418,7 @@ xKey.clear();
}
// NOTE : the caller is responsible for updating any other objects referencing the old LineDatas (for instance a ConnLine)
- // Kardinalitaet bestimmen
+ // determine cardinality
SetCardinality();
return sal_True;
diff --git a/dbaccess/source/ui/relationdesign/RelationTableView.cxx b/dbaccess/source/ui/relationdesign/RelationTableView.cxx
index ea7b14200f73..dece62710d8a 100644
--- a/dbaccess/source/ui/relationdesign/RelationTableView.cxx
+++ b/dbaccess/source/ui/relationdesign/RelationTableView.cxx
@@ -114,14 +114,14 @@ void ORelationTableView::ReSync()
}
(*GetTabWinMap())[pData->GetComposedName()] = pTabWin; // am Anfang einfuegen, da ich die DataList ja rueckwaerts durchlaufe
- // wenn in den Daten keine Position oder Groesse steht -> Default
+ // if there's no position or size contained in the data -> Default
if (!pData->HasPosition() && !pData->HasSize())
SetDefaultTabWinPosSize(pTabWin);
pTabWin->Show();
}
- // Verbindungen einfuegen
+ // insert connection
TTableConnectionData* pTabConnDataList = m_pView->getController().getTableConnectionData();
TTableConnectionData::reverse_iterator aConIter = pTabConnDataList->rbegin();
@@ -137,7 +137,8 @@ void ORelationTableView::ReSync()
bInvalid = bInvalid || ::std::find(arrInvalidTables.begin(),arrInvalidTables.end(),strTabExistenceTest) != arrInvalidTables.end();
if (bInvalid)
- { // nein -> Pech gehabt, die Connection faellt weg
+ {
+ // no -> bad luck, die Connection faellt weg
pTabConnDataList->erase( ::std::remove(pTabConnDataList->begin(),pTabConnDataList->end(),*aConIter),pTabConnDataList->end() );
continue;
}
@@ -176,15 +177,14 @@ void ORelationTableView::AddConnection(const OJoinExchangeData& jxdSource, const
}
}
// insert table connection into view
-
TTableConnectionData::value_type pTabConnData(new ORelationTableConnectionData(pSourceWin->GetData(),
pDestWin->GetData()));
- // die Namen der betroffenen Felder
+ // the names of the affected fields
OUString sSourceFieldName = jxdSource.pListBox->GetEntryText(jxdSource.pEntry);
OUString sDestFieldName = jxdDest.pListBox->GetEntryText(jxdDest.pEntry);
- // die Anzahl der PKey-Felder in der Quelle
+ // the number of PKey-Fields in the source
const Reference< XNameAccess> xPrimaryKeyColumns = getPrimaryKeyColumns_throw(pSourceWin->GetData()->getTable());
bool bAskUser = xPrimaryKeyColumns.is() && Reference< XIndexAccess>(xPrimaryKeyColumns,UNO_QUERY)->getCount() > 1;
@@ -196,10 +196,10 @@ void ORelationTableView::AddConnection(const OJoinExchangeData& jxdSource, const
{
try
{
- // Daten der Datenbank uebergeben
+ // hand over data to the database
if( pTabConnData->Update() )
{
- // UI-Object in ConnListe eintragen
+ // enter UI-object into ConnList
addConnection( new ORelationTableConnection( this, pTabConnData ) );
}
}
@@ -288,7 +288,7 @@ void ORelationTableView::AddTabWin(const OUString& _rComposedName, const OUStrin
return;
}
- // Neue Datenstruktur in DocShell eintragen
+ // enter the new data structure into DocShell
TTableWindowData::value_type pNewTabWinData(createTableWindowData( _rComposedName, rWinName,rWinName ));
pNewTabWinData->ShowAll(sal_False);
diff --git a/dbaccess/source/ui/tabledesign/FieldDescGenWin.cxx b/dbaccess/source/ui/tabledesign/FieldDescGenWin.cxx
index 980da26282f7..058ae3489cf8 100644
--- a/dbaccess/source/ui/tabledesign/FieldDescGenWin.cxx
+++ b/dbaccess/source/ui/tabledesign/FieldDescGenWin.cxx
@@ -28,7 +28,6 @@
using namespace dbaui;
// class OFieldDescGenWin
-
OFieldDescGenWin::OFieldDescGenWin( Window* pParent, OTableDesignHelpBar* pHelp ) :
TabPage( pParent, WB_3DLOOK | WB_DIALOGCONTROL )
{
@@ -69,7 +68,7 @@ OUString OFieldDescGenWin::GetControlText( sal_uInt16 nControlId )
void OFieldDescGenWin::SetControlText( sal_uInt16 nControlId, const OUString& rText )
{
- // Texte der Controls setzen
+ // set texts of the controls
m_pFieldControl->SetControlText(nControlId,rText);
}
@@ -94,7 +93,7 @@ void OFieldDescGenWin::SaveData( OFieldDescription* pFieldDescr )
void OFieldDescGenWin::GetFocus()
{
- // Setzt den Focus auf das zuletzt aktive Control
+ // sets the focus to the control that was active last
TabPage::GetFocus();
if(m_pFieldControl)
m_pFieldControl->GetFocus();
diff --git a/dbaccess/source/ui/tabledesign/FieldDescGenWin.hxx b/dbaccess/source/ui/tabledesign/FieldDescGenWin.hxx
index 545e89aa132d..40f8e071d543 100644
--- a/dbaccess/source/ui/tabledesign/FieldDescGenWin.hxx
+++ b/dbaccess/source/ui/tabledesign/FieldDescGenWin.hxx
@@ -52,8 +52,8 @@ namespace dbaui
#if OSL_DEBUG_LEVEL > 0
OTableEditorCtrl* GetEditorCtrl();
#endif
- // short GetFormatCategory(OFieldDescription* pFieldDescr);
- // liefert zum am Feld eingestellten Format einen der CAT_xxx-Werte (CAT_NUMBER, CAT_DATE ...)
+ // short GetFormatCategory(OFieldDescription* pFieldDescr);
+ // gives you one of the CAT_xxx-values (CAT_NUMBER, CAT_DATE ...) belonging to the format specified by the field
OUString BoolStringPersistent(const OUString& rUIString) const;
OUString BoolStringUI(const OUString& rPersistentString) const;
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx
index fe794e2d9ac4..f0b549243c46 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx
@@ -105,7 +105,7 @@ void OTableEditorCtrl::Init()
{
OTableRowView::Init();
- // Should it be opened ReadOnly ?
+ // Should it be opened ReadOnly?
sal_Bool bRead(GetView()->getController().isReadOnly());
SetReadOnly( bRead );
@@ -474,7 +474,7 @@ void OTableEditorCtrl::DisplayData(long nRow, sal_Bool bGrabFocus)
void OTableEditorCtrl::CursorMoved()
{
- // New line ?
+ // New line?
m_nDataPos = GetCurRow();
if( m_nDataPos != nOldDataPos && m_nDataPos != -1)
{
@@ -549,7 +549,7 @@ sal_Bool OTableEditorCtrl::SaveData(long nRow, sal_uInt16 nColId)
// Store DescrCell
case HELP_TEXT:
{
- // Wenn aktuelle Feldbeschreibung NULL, Default setzen
+ // if the current field description is NULL, set Default
if( !pActFieldDescr )
{
pHelpTextCell->SetText(OUString());
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx
index f6dace202c9f..d47bbe71338d 100644
--- a/dbaccess/source/ui/tabledesign/TableController.cxx
+++ b/dbaccess/source/ui/tabledesign/TableController.cxx
@@ -94,7 +94,7 @@ using namespace ::dbtools;
using namespace ::dbaui;
using namespace ::comphelper;
-// Anzahl Spalten beim Neuanlegen
+// number of columns when creating it from scratch
#define NEWCOLS 128
namespace
@@ -182,7 +182,7 @@ void OTableController::disposing()
FeatureState OTableController::GetState(sal_uInt16 _nId) const
{
FeatureState aReturn;
- // (disabled automatically)
+ // disabled automatically
switch (_nId)
{
@@ -785,12 +785,12 @@ void OTableController::appendPrimaryKey(Reference<XKeysSupplier>& _rxSup,sal_Boo
void OTableController::loadData()
{
- // Wenn Datenstruktur bereits vorhanden, Struktur leeren
+ // if the data structure already exists, empty it
m_vRowList.clear();
::boost::shared_ptr<OTableRow> pTabEdRow;
Reference< XDatabaseMetaData> xMetaData = getMetaData( );
- // Datenstruktur mit Daten aus DatenDefinitionsObjekt fuellen
+ // fill data structure with data from DataDefinitionObject
if(m_xTable.is() && xMetaData.is())
{
Reference<XColumnsSupplier> xColSup(m_xTable,UNO_QUERY);
@@ -798,9 +798,9 @@ void OTableController::loadData()
Reference<XNameAccess> xColumns = xColSup->getColumns();
OFieldDescription* pActFieldDescr = NULL;
// ReadOnly-Flag
- // Bei Drop darf keine Zeile editierbar sein.
- // Bei Add duerfen nur die leeren Zeilen editierbar sein.
- // Bei Add und Drop koennen alle Zeilen editiert werden.
+ // For Drop no row may be editable
+ // For Add only the empty rows may be editable
+ // For Add and Drop all rows can be edited
// sal_Bool bReadOldRow = xMetaData->supportsAlterTableWithAddColumn() && xMetaData->supportsAlterTableWithDropColumn();
sal_Bool bIsAlterAllowed = isAlterAllowed();
Sequence< OUString> aColumns = xColumns->getElementNames();
@@ -865,7 +865,7 @@ void OTableController::loadData()
pActFieldDescr->SetHorJustify(dbaui::mapTextJustify(nAlign));
pActFieldDescr->SetCurrency(bIsCurrency);
- // Spezielle Daten
+ // special data
pActFieldDescr->SetIsNullable(nNullable);
pActFieldDescr->SetControlDefault(aControlDefault);
pActFieldDescr->SetPrecision(nPrecision);
@@ -897,7 +897,7 @@ void OTableController::loadData()
}
}
- // Leere Zeilen fuellen
+ // fill empty rows
OTypeInfoMap::iterator aTypeIter = m_aTypeInfo.find(DataType::VARCHAR);
if(aTypeIter == m_aTypeInfo.end())
diff --git a/dbaccess/source/ui/tabledesign/TableDesignControl.cxx b/dbaccess/source/ui/tabledesign/TableDesignControl.cxx
index ec7986dac4d1..90dafa2287be 100644
--- a/dbaccess/source/ui/tabledesign/TableDesignControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TableDesignControl.cxx
@@ -31,7 +31,7 @@ using namespace ::svt;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::util;
-//--- Defines
+// Defines
#define HANDLE_ID 0
OTableRowView::OTableRowView(Window* pParent)
@@ -61,12 +61,12 @@ void OTableRowView::Init()
aFont.SetWeight( WEIGHT_NORMAL );
GetDataWindow().SetFont( aFont );
- // Font fuer die Ueberschriften auf Light setzen
+ // set font for the headings to light
aFont = GetFont();
aFont.SetWeight( WEIGHT_LIGHT );
SetFont(aFont);
- // HandleColumn, fuer maximal fuenf Ziffern einrichten
+ // set up HandleColumn for at maximum 5 digits
InsertHandleColumn(static_cast<sal_uInt16>(GetTextWidth(OUString('0')) * 4)/*, sal_True */);
BrowserMode nMode = BROWSER_COLUMNSELECTION | BROWSER_MULTISELECTION | BROWSER_KEEPSELECTION |
diff --git a/dbaccess/source/ui/tabledesign/TableFieldControl.hxx b/dbaccess/source/ui/tabledesign/TableFieldControl.hxx
index 08e7d9230a48..4cceb45dcae7 100644
--- a/dbaccess/source/ui/tabledesign/TableFieldControl.hxx
+++ b/dbaccess/source/ui/tabledesign/TableFieldControl.hxx
@@ -32,7 +32,7 @@ namespace dbaui
protected:
virtual void ActivateAggregate( EControlType eType );
virtual void DeactivateAggregate( EControlType eType );
- // Sind von den abgeleiteten Klassen zu impl.
+ // are to be implemented by the derived classes
virtual void CellModified(long nRow, sal_uInt16 nColId );
virtual sal_Bool IsReadOnly();
virtual void SetModified(sal_Bool bModified);
diff --git a/dbaccess/source/ui/tabledesign/TableFieldDescWin.cxx b/dbaccess/source/ui/tabledesign/TableFieldDescWin.cxx
index 2f28b09333ea..b87c9994c389 100644
--- a/dbaccess/source/ui/tabledesign/TableFieldDescWin.cxx
+++ b/dbaccess/source/ui/tabledesign/TableFieldDescWin.cxx
@@ -66,7 +66,7 @@ OTableFieldDescWin::OTableFieldDescWin( Window* pParent)
OTableFieldDescWin::~OTableFieldDescWin()
{
- // Children zerstoeren
+ // destroy children
m_pHelpBar->Hide();
getGenPage()->Hide();
m_pHeader->Hide();
@@ -108,13 +108,13 @@ void OTableFieldDescWin::SaveData( OFieldDescription* pFieldDescr )
void OTableFieldDescWin::Paint( const Rectangle& /*rRect*/ )
{
- // 3D-Linie am oberen Fensterrand
+ // 3D-line at the top window border
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
SetLineColor( rStyleSettings.GetLightColor() );
DrawLine( Point(0,0), Point(GetSizePixel().Width(),0) );
- // 3D-Linie zum Abtrennen des Headers
+ // 3D-line for the separation of the header
DrawLine( Point(3, DETAILS_HEADER_HEIGHT), Point(GetSizePixel().Width()-6, DETAILS_HEADER_HEIGHT) );
SetLineColor( rStyleSettings.GetShadowColor() );
DrawLine( Point(3, DETAILS_HEADER_HEIGHT-1), Point(GetSizePixel().Width()-6, DETAILS_HEADER_HEIGHT-1) );
@@ -122,56 +122,56 @@ void OTableFieldDescWin::Paint( const Rectangle& /*rRect*/ )
void OTableFieldDescWin::Resize()
{
- // Abmessungen parent window
+ // dimensions of the parent window
Size aOutputSize( GetOutputSizePixel() );
long nOutputWidth = aOutputSize.Width();
long nOutputHeight = aOutputSize.Height();
- // da die GenPage scrollen kann, ich selber aber nicht, positioniere ich das HelpFenster, wenn ich zu schmal werde,
- // _unter_ der Genpage, nicht rechts daneben. Zuvor versuche ich aber noch, es etwas schmaler zu machen
+ // since the GenPage can scroll, but I can't, I position the HelpWindow, in case I become too slim,
+ // _below_ the Genpage, not on the right side. But before that I try to make it a bit smaller
long nHelpX, nHelpY;
long nHelpWidth, nHelpHeight;
long nPageWidth, nPageHeight;
- // passen beide nebeneinander (Rand + Page + Rand + Help) ?
+ // do both fit next to each other (margin + page + margin + help)?
if (STANDARD_MARGIN + DETAILS_OPT_PAGE_WIDTH + STANDARD_MARGIN + DETAILS_MIN_HELP_WIDTH <= nOutputWidth)
- { // ja -> dann ist die Frage, ob man der Hilfe ihre Optimal-Breite geben kann
+ { // yes -> then we wonder if can give the help its optimum width
nHelpWidth = DETAILS_OPT_HELP_WIDTH;
nPageWidth = nOutputWidth - nHelpWidth - STANDARD_MARGIN - STANDARD_MARGIN;
if (nPageWidth < DETAILS_OPT_PAGE_WIDTH)
- { // dann doch lieber die Hilfe von ihrer optimalen in Richtung auf die minimale Groesse
+ { // rather resize the help from its optimal width to it's minimum width
long nTransfer = DETAILS_OPT_PAGE_WIDTH - nPageWidth;
nPageWidth += nTransfer;
nHelpWidth -= nTransfer;
}
nHelpX = nOutputWidth - nHelpWidth;
- // die Hoehen sind dann einfach ...
+ // the heights are simple in that case...
nHelpY = DETAILS_HEADER_HEIGHT + 1;
nHelpHeight = nOutputHeight - nHelpY;
nPageHeight = nOutputHeight - STANDARD_MARGIN - DETAILS_HEADER_HEIGHT - STANDARD_MARGIN;
}
else
- { // nebeneinander geht nicht, also untereinander (Rand + Header + Page + Help)
+ { // doesn't work next to each other, thus below each other (margin + header + page + help)
if (STANDARD_MARGIN + DETAILS_HEADER_HEIGHT + DETAILS_OPT_PAGE_HEIGHT + DETAILS_MIN_HELP_HEIGHT <= nOutputHeight)
- { // es reicht zumindest, um beide untereinander (Page optimal, Help minimal) unterzubringen
+ { // it's at least enough, to fit both below each other (page optimal, help minimal)
nHelpHeight = DETAILS_OPT_HELP_HEIGHT;
nPageHeight = nOutputHeight - nHelpHeight - DETAILS_HEADER_HEIGHT - STANDARD_MARGIN;
if (nPageHeight < DETAILS_OPT_PAGE_HEIGHT)
- { // wie oben : Page optimal, Hilfe soviel wie eben bleibt (das ist groesser/gleich ihrem Minimum)
+ { // like above: page optimal, help gets whatever is left (which is bigger/equal to its minimum)
long nTransfer = DETAILS_OPT_PAGE_HEIGHT - nPageHeight;
nPageHeight += nTransfer;
nHelpHeight -= nTransfer;
}
nHelpY = nOutputHeight - nHelpHeight;
- // und ueber die ganze Breite
- nHelpX = 0; // ohne Margin, da das HelpCtrl einen eigenen hat
+ // and across the entire width
+ nHelpX = 0; // without margin, since the HelpCtrl has its own one
nHelpWidth = nOutputWidth; // dito
nPageWidth = nOutputWidth - STANDARD_MARGIN - STANDARD_MARGIN;
}
else
- { // dummerweise reicht es nicht mal, um Page optimal und Help minimal zu zeigen
- nHelpX = nHelpY = nHelpWidth = nHelpHeight = 0; // -> kein Help-Fenster
+ { // unfortunately that's not even enough, to show page at its optimum and help with minimum widthn
+ nHelpX = nHelpY = nHelpWidth = nHelpHeight = 0; // thus no help window
nPageWidth = nOutputWidth - STANDARD_MARGIN - STANDARD_MARGIN;
nPageHeight = nOutputHeight - STANDARD_MARGIN - DETAILS_HEADER_HEIGHT - STANDARD_MARGIN;
}
diff --git a/dbaccess/source/ui/uno/dbinteraction.cxx b/dbaccess/source/ui/uno/dbinteraction.cxx
index 31d84a779cb7..d079c82a9342 100644
--- a/dbaccess/source/ui/uno/dbinteraction.cxx
+++ b/dbaccess/source/ui/uno/dbinteraction.cxx
@@ -116,7 +116,7 @@ namespace dbaui
void BasicInteractionHandler::implHandle(const ParametersRequest& _rParamRequest, const Sequence< Reference< XInteractionContinuation > >& _rContinuations)
{
SolarMutexGuard aGuard;
- // want to open a dialog ....
+ // want to open a dialog...
sal_Int32 nAbortPos = getContinuation(ABORT, _rContinuations);
sal_Int32 nParamPos = getContinuation(SUPPLY_PARAMETERS, _rContinuations);
@@ -154,7 +154,7 @@ namespace dbaui
void BasicInteractionHandler::implHandle(const SQLExceptionInfo& _rSqlInfo, const Sequence< Reference< XInteractionContinuation > >& _rContinuations)
{
SolarMutexGuard aGuard;
- // want to open a dialog ....
+ // want to open a dialog...
sal_Int32 nApprovePos = getContinuation(APPROVE, _rContinuations);
sal_Int32 nDisapprovePos = getContinuation(DISAPPROVE, _rContinuations);
@@ -182,7 +182,7 @@ namespace dbaui
// execute the dialog
OSQLMessageBox aDialog(NULL, _rSqlInfo, nDialogStyle);
- // TODO: need a way to specify the parent window
+ // TODO: need a way to specify the parent window
sal_Int16 nResult = aDialog.Execute();
try
{
@@ -227,7 +227,7 @@ namespace dbaui
void BasicInteractionHandler::implHandle(const DocumentSaveRequest& _rDocuRequest, const Sequence< Reference< XInteractionContinuation > >& _rContinuations)
{
SolarMutexGuard aGuard;
- // want to open a dialog ....
+ // want to open a dialog ....
sal_Int32 nApprovePos = getContinuation(APPROVE, _rContinuations);
sal_Int32 nDisApprovePos = getContinuation(DISAPPROVE, _rContinuations);
@@ -236,7 +236,7 @@ namespace dbaui
short nRet = RET_YES;
if ( -1 != nApprovePos )
{
- // fragen, ob gespeichert werden soll
+ // ask whether it should be saved
nRet = ExecuteQuerySaveDocument(NULL,_rDocuRequest.Name);
}
diff --git a/dbaccess/source/ui/uno/unoadmin.cxx b/dbaccess/source/ui/uno/unoadmin.cxx
index 6a5030bd9c3f..702138310548 100644
--- a/dbaccess/source/ui/uno/unoadmin.cxx
+++ b/dbaccess/source/ui/uno/unoadmin.cxx
@@ -32,7 +32,7 @@
// --- needed because of the solar mutex
#include <osl/mutex.hxx>
#include <vcl/svapp.hxx>
-// ---
+
namespace dbaui
{
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 9ffe7648c011..91b3157950d7 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -366,7 +366,7 @@ void DoRestartActionsIfNecessary(bool quickstart) {
}
-// ----------------------------------------------------------------------------
+
ResMgr* Desktop::GetDesktopResManager()
{
@@ -397,7 +397,7 @@ ResMgr* Desktop::GetDesktopResManager()
namespace {
-// ----------------------------------------------------------------------------
+
// Get a message string securely. There is a fallback string if the resource
// is not available.
@@ -1078,7 +1078,7 @@ sal_Bool Desktop::isUIOnSessionShutdownAllowed()
::get();
}
-//-----------------------------------------------
+
/** @short check if recovery must be started or not.
@param bCrashed [boolean ... out!]
@@ -1108,7 +1108,7 @@ void impl_checkRecoveryState(sal_Bool& bCrashed ,
bSessionDataExists = elements && session;
}
-//-----------------------------------------------
+
/* @short start the recovery wizard.
@param bEmergencySave
diff --git a/desktop/source/app/appinit.cxx b/desktop/source/app/appinit.cxx
index cec9b910721a..68f7aa026d22 100644
--- a/desktop/source/app/appinit.cxx
+++ b/desktop/source/app/appinit.cxx
@@ -64,7 +64,7 @@ using namespace ::com::sun::star::ucb;
namespace desktop
{
-// -----------------------------------------------------------------------------
+
static void configureUcb()
{
diff --git a/desktop/source/app/check_ext_deps.cxx b/desktop/source/app/check_ext_deps.cxx
index 30c2946586ac..148609b250ec 100644
--- a/desktop/source/app/check_ext_deps.cxx
+++ b/desktop/source/app/check_ext_deps.cxx
@@ -99,7 +99,7 @@ public:
virtual void SAL_CALL pop() throw (uno::RuntimeException);
};
-//-----------------------------------------------------------------------------
+
SilentCommandEnv::SilentCommandEnv(
uno::Reference<uno::XComponentContext> const & xContext,
Desktop* pDesktop ):
@@ -109,27 +109,27 @@ SilentCommandEnv::SilentCommandEnv(
mnProgress( 25 )
{}
-//-----------------------------------------------------------------------------
+
SilentCommandEnv::~SilentCommandEnv()
{
mpDesktop->SetSplashScreenText( OUString() );
}
-//-----------------------------------------------------------------------------
+
Reference<task::XInteractionHandler> SilentCommandEnv::getInteractionHandler()
throw (uno::RuntimeException)
{
return this;
}
-//-----------------------------------------------------------------------------
+
Reference<ucb::XProgressHandler> SilentCommandEnv::getProgressHandler()
throw (uno::RuntimeException)
{
return this;
}
-//-----------------------------------------------------------------------------
+
// XInteractionHandler
void SilentCommandEnv::handle( Reference< task::XInteractionRequest> const & xRequest )
throw (uno::RuntimeException)
@@ -178,7 +178,7 @@ void SilentCommandEnv::handle( Reference< task::XInteractionRequest> const & xRe
}
}
-//-----------------------------------------------------------------------------
+
// XProgressHandler
void SilentCommandEnv::push( uno::Any const & rStatus )
throw (uno::RuntimeException)
@@ -195,7 +195,7 @@ void SilentCommandEnv::push( uno::Any const & rStatus )
}
}
-//-----------------------------------------------------------------------------
+
void SilentCommandEnv::update( uno::Any const & rStatus )
throw (uno::RuntimeException)
{
@@ -206,7 +206,7 @@ void SilentCommandEnv::update( uno::Any const & rStatus )
}
}
-//-----------------------------------------------------------------------------
+
void SilentCommandEnv::pop() throw (uno::RuntimeException)
{
mnLevel -= 1;
@@ -236,9 +236,9 @@ static sal_Int16 impl_showExtensionDialog( uno::Reference< uno::XComponentContex
return nRet;
}
-//------------------------------------------------------------------------------
+
// Check dependencies of all packages
-//------------------------------------------------------------------------------
+
static bool impl_checkDependencies( const uno::Reference< uno::XComponentContext > &xContext )
{
uno::Sequence< uno::Sequence< uno::Reference< deployment::XPackage > > > xAllPackages;
@@ -314,9 +314,9 @@ static bool impl_checkDependencies( const uno::Reference< uno::XComponentContext
return true;
}
-//------------------------------------------------------------------------------
+
// resets the 'check needed' flag (needed, if aborted)
-//------------------------------------------------------------------------------
+
static void impl_setNeedsCompatCheck()
{
try {
@@ -339,10 +339,10 @@ static void impl_setNeedsCompatCheck()
catch (const Exception&) {}
}
-//------------------------------------------------------------------------------
+
// to check if we need checking the dependencies of the extensions again, we compare
// the build id of the office with the one of the last check
-//------------------------------------------------------------------------------
+
static bool impl_needsCompatCheck()
{
bool bNeedsCheck = false;
@@ -381,7 +381,7 @@ static bool impl_needsCompatCheck()
return bNeedsCheck;
}
-//------------------------------------------------------------------------------
+
// Do we need to check the dependencies of the extensions?
// When there are unresolved issues, we can't continue with startup
sal_Bool Desktop::CheckExtensionDependencies()
diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx
index 047c01b3f5e2..894fb80931a9 100644
--- a/desktop/source/app/cmdlineargs.cxx
+++ b/desktop/source/app/cmdlineargs.cxx
@@ -128,7 +128,7 @@ CommandLineArgs::CommandLineArgs( Supplier& supplier )
ParseCommandLine_Impl( supplier );
}
-// ----------------------------------------------------------------------------
+
void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
{
diff --git a/desktop/source/app/configinit.cxx b/desktop/source/app/configinit.cxx
index 11ee1f858f1b..b53b93bf981e 100644
--- a/desktop/source/app/configinit.cxx
+++ b/desktop/source/app/configinit.cxx
@@ -29,21 +29,21 @@
#include <stdio.h>
#include <com/sun/star/task/InteractionHandler.hpp>
-// ----------------------------------------------------------------------------
+
namespace uno = ::com::sun::star::uno;
namespace lang = ::com::sun::star::lang;
using uno::UNO_QUERY;
-// ----------------------------------------------------------------------------
+
// must be aligned with configmgr/source/misc/configinteractionhandler
static char const CONFIG_ERROR_HANDLER[] = "configuration.interaction-handler";
-// ----------------------------------------------------------------------------
-// ----------------------------------------------------------------------------
+
+
// ConfigurationErrorHandler
-// ----------------------------------------------------------------------------
+
namespace
{
@@ -82,7 +82,7 @@ namespace
}
-// ----------------------------------------------------------------------------
+
class ConfigurationErrorHandler::Context : public SimpleCurrentContext
{
public:
@@ -104,7 +104,7 @@ private:
InteractionHandler m_xHandler;
};
-//------------------------------------------------------------------------------
+
uno::Any SAL_CALL ConfigurationErrorHandler::Context::getValueByName( OUString const & aName)
throw (uno::RuntimeException)
{
@@ -117,13 +117,13 @@ uno::Any SAL_CALL ConfigurationErrorHandler::Context::getValueByName( OUString c
return SimpleCurrentContext::getValueByName( aName );
}
-//------------------------------------------------------------------------------
+
ConfigurationErrorHandler::~ConfigurationErrorHandler()
{
deactivate();
}
-//------------------------------------------------------------------------------
+
/// installs the handler into the current context
void ConfigurationErrorHandler::activate()
{
@@ -135,7 +135,7 @@ void ConfigurationErrorHandler::activate()
m_pContext->install();
}
-//------------------------------------------------------------------------------
+
/// deinstalls the handler from the current context, restoring the previous context
void ConfigurationErrorHandler::deactivate()
{
@@ -146,7 +146,7 @@ void ConfigurationErrorHandler::deactivate()
m_pContext = 0;
}
}
-//------------------------------------------------------------------------------
+
ConfigurationErrorHandler::InteractionHandler ConfigurationErrorHandler::getDefaultInteractionHandler()
{
@@ -154,7 +154,7 @@ ConfigurationErrorHandler::InteractionHandler ConfigurationErrorHandler::getDefa
InteractionHandler xHandler( com::sun::star::task::InteractionHandler::createWithParent(xContext, 0), UNO_QUERY );
return xHandler;
}
-//------------------------------------------------------------------------------
+
diff --git a/desktop/source/app/desktopresid.cxx b/desktop/source/app/desktopresid.cxx
index 8018c9ed72d4..87784a83cbe5 100644
--- a/desktop/source/app/desktopresid.cxx
+++ b/desktop/source/app/desktopresid.cxx
@@ -20,7 +20,7 @@
#include "desktopresid.hxx"
#include "app.hxx"
-// -----------------------------------------------------------------------
+
namespace desktop
{
diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx
index 44d8c893bb6f..2f2ce3e47ff0 100644
--- a/desktop/source/app/officeipcthread.cxx
+++ b/desktop/source/app/officeipcthread.cxx
@@ -325,7 +325,7 @@ oslSignalAction SAL_CALL SalMainPipeExchangeSignal_impl(void* /*pData*/, oslSign
return osl_Signal_ActCallNextHdl;
}
-// ----------------------------------------------------------------------------
+
// The OfficeIPCThreadController implementation is a bookkeeper for all pending requests
// that were created by the OfficeIPCThread. The requests are waiting to be processed by
diff --git a/desktop/source/deployment/dp_log.cxx b/desktop/source/deployment/dp_log.cxx
index 663ffa0458fd..b5a29ed42b80 100644
--- a/desktop/source/deployment/dp_log.cxx
+++ b/desktop/source/deployment/dp_log.cxx
@@ -62,12 +62,12 @@ public:
virtual void SAL_CALL pop() throw (RuntimeException);
};
-//______________________________________________________________________________
+
ProgressLogImpl::~ProgressLogImpl()
{
}
-//______________________________________________________________________________
+
void ProgressLogImpl::disposing()
{
try {
@@ -83,7 +83,7 @@ void ProgressLogImpl::disposing()
}
}
-//______________________________________________________________________________
+
ProgressLogImpl::ProgressLogImpl(
Sequence<Any> const & args,
Reference<XComponentContext> const & xContext )
@@ -125,7 +125,7 @@ ProgressLogImpl::ProgressLogImpl(
log_write( buf.makeStringAndClear() );
}
-//______________________________________________________________________________
+
void ProgressLogImpl::log_write( OString const & text )
{
try {
@@ -144,7 +144,7 @@ void ProgressLogImpl::log_write( OString const & text )
}
// XProgressHandler
-//______________________________________________________________________________
+
void ProgressLogImpl::push( Any const & Status )
throw (RuntimeException)
{
@@ -153,7 +153,7 @@ void ProgressLogImpl::push( Any const & Status )
++m_log_level;
}
-//______________________________________________________________________________
+
void ProgressLogImpl::update( Any const & Status )
throw (RuntimeException)
{
@@ -178,7 +178,7 @@ void ProgressLogImpl::update( Any const & Status )
buf.makeStringAndClear(), osl_getThreadTextEncoding() ) );
}
-//______________________________________________________________________________
+
void ProgressLogImpl::pop() throw (RuntimeException)
{
OSL_ASSERT( m_log_level > 0 );
diff --git a/desktop/source/deployment/dp_persmap.cxx b/desktop/source/deployment/dp_persmap.cxx
index 637d0b996f86..850bdb3e068a 100644
--- a/desktop/source/deployment/dp_persmap.cxx
+++ b/desktop/source/deployment/dp_persmap.cxx
@@ -169,7 +169,7 @@ bool PersistentMap::open()
return readAll();
}
-//______________________________________________________________________________
+
bool PersistentMap::readAll()
{
// prepare for re-reading the map-file
@@ -293,7 +293,7 @@ void PersistentMap::add( OString const & key, OString const & value )
m_bIsDirty = r.second;
}
-//______________________________________________________________________________
+
void PersistentMap::put( OString const & key, OString const & value )
{
add( key, value);
diff --git a/desktop/source/deployment/gui/descedit.cxx b/desktop/source/deployment/gui/descedit.cxx
index 0a30de2f0e0b..019202f89fe0 100644
--- a/desktop/source/deployment/gui/descedit.cxx
+++ b/desktop/source/deployment/gui/descedit.cxx
@@ -40,7 +40,7 @@ DescriptionEdit::DescriptionEdit( Window* pParent, const ResId& rResId ) :
Init();
}
-// -----------------------------------------------------------------------
+
void DescriptionEdit::Init()
{
@@ -53,7 +53,7 @@ void DescriptionEdit::Init()
EnableCursor( false );
}
-// -----------------------------------------------------------------------
+
void DescriptionEdit::Clear()
{
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index 66cdab2ed355..b887cb7a2047 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -89,7 +89,7 @@ namespace dp_gui {
#define SHARED_PACKAGE_MANAGER "shared"
#define BUNDLED_PACKAGE_MANAGER "bundled"
-//------------------------------------------------------------------------------
+
struct StrAllFiles : public rtl::StaticWithInit< OUString, StrAllFiles >
{
const OUString operator () () {
@@ -100,9 +100,9 @@ struct StrAllFiles : public rtl::StaticWithInit< OUString, StrAllFiles >
}
};
-//------------------------------------------------------------------------------
+
// ExtBoxWithBtns_Impl
-//------------------------------------------------------------------------------
+
enum MENU_COMMAND
{
@@ -130,7 +130,7 @@ class ExtBoxWithBtns_Impl : public ExtensionBox_Impl
bool HandleTabKey( bool bReverse );
MENU_COMMAND ShowPopupMenu( const Point &rPos, const long nPos );
- //-----------------
+
DECL_DLLPRIVATE_LINK( ScrollHdl, ScrollBar * );
DECL_DLLPRIVATE_LINK( HandleOptionsBtn, void * );
@@ -151,7 +151,7 @@ public:
virtual void RecalcAll();
virtual void selectEntry( const long nPos );
- //-----------------
+
void enableButtons( bool bEnable );
};
@@ -170,7 +170,7 @@ Size ExtBoxWithBtns_Impl::GetOptimalSize() const
return LogicToPixel(Size(250, 150), MAP_APPFONT);
}
-//------------------------------------------------------------------------------
+
void ExtBoxWithBtns_Impl::InitFromDialog(ExtMgrDialog *pParentDialog)
{
setExtensionManager(pParentDialog->getExtensionManager());
@@ -211,7 +211,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeExtBoxWithBtns(Window *pPar
return new ExtBoxWithBtns_Impl(pParent);
}
-//------------------------------------------------------------------------------
+
ExtBoxWithBtns_Impl::~ExtBoxWithBtns_Impl()
{
delete m_pOptionsBtn;
@@ -219,7 +219,7 @@ ExtBoxWithBtns_Impl::~ExtBoxWithBtns_Impl()
delete m_pRemoveBtn;
}
-// -----------------------------------------------------------------------
+
void ExtBoxWithBtns_Impl::RecalcAll()
{
const sal_Int32 nActive = getSelIndex();
@@ -242,7 +242,7 @@ void ExtBoxWithBtns_Impl::RecalcAll()
}
-//------------------------------------------------------------------------------
+
//This function may be called with nPos < 0
void ExtBoxWithBtns_Impl::selectEntry( const long nPos )
{
@@ -252,7 +252,7 @@ void ExtBoxWithBtns_Impl::selectEntry( const long nPos )
ExtensionBox_Impl::selectEntry( nPos );
}
-// -----------------------------------------------------------------------
+
void ExtBoxWithBtns_Impl::SetButtonPos( const Rectangle& rRect )
{
Size aBtnSize( m_pOptionsBtn->GetSizePixel() );
@@ -266,7 +266,7 @@ void ExtBoxWithBtns_Impl::SetButtonPos( const Rectangle& rRect )
m_pEnableBtn->SetPosPixel( aBtnPos );
}
-// -----------------------------------------------------------------------
+
void ExtBoxWithBtns_Impl::SetButtonStatus( const TEntry_Impl pEntry )
{
bool bShowOptionBtn = true;
@@ -313,7 +313,7 @@ void ExtBoxWithBtns_Impl::SetButtonStatus( const TEntry_Impl pEntry )
m_pRemoveBtn->Hide();
}
-// -----------------------------------------------------------------------
+
bool ExtBoxWithBtns_Impl::HandleTabKey( bool bReverse )
{
sal_Int32 nIndex = getSelIndex();
@@ -360,7 +360,7 @@ bool ExtBoxWithBtns_Impl::HandleTabKey( bool bReverse )
return false;
}
-// -----------------------------------------------------------------------
+
MENU_COMMAND ExtBoxWithBtns_Impl::ShowPopupMenu( const Point & rPos, const long nPos )
{
if ( nPos >= (long) getItemCount() )
@@ -388,7 +388,7 @@ MENU_COMMAND ExtBoxWithBtns_Impl::ShowPopupMenu( const Point & rPos, const long
return (MENU_COMMAND) aPopup.Execute( this, rPos );
}
-//------------------------------------------------------------------------------
+
void ExtBoxWithBtns_Impl::MouseButtonDown( const MouseEvent& rMEvt )
{
if ( m_bInterfaceLocked )
@@ -429,7 +429,7 @@ void ExtBoxWithBtns_Impl::MouseButtonDown( const MouseEvent& rMEvt )
}
}
-//------------------------------------------------------------------------------
+
bool ExtBoxWithBtns_Impl::Notify( NotifyEvent& rNEvt )
{
bool bHandled = false;
@@ -450,7 +450,7 @@ bool ExtBoxWithBtns_Impl::Notify( NotifyEvent& rNEvt )
return true;
}
-//------------------------------------------------------------------------------
+
void ExtBoxWithBtns_Impl::enableButtons( bool bEnable )
{
m_bInterfaceLocked = ! bEnable;
@@ -469,7 +469,7 @@ void ExtBoxWithBtns_Impl::enableButtons( bool bEnable )
}
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( ExtBoxWithBtns_Impl, ScrollHdl, ScrollBar*, pScrBar )
{
long nDelta = pScrBar->GetDelta();
@@ -487,7 +487,7 @@ IMPL_LINK( ExtBoxWithBtns_Impl, ScrollHdl, ScrollBar*, pScrBar )
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ExtBoxWithBtns_Impl, HandleOptionsBtn)
{
const sal_Int32 nActive = getSelIndex();
@@ -510,7 +510,7 @@ IMPL_LINK_NOARG(ExtBoxWithBtns_Impl, HandleOptionsBtn)
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ExtBoxWithBtns_Impl, HandleEnableBtn)
{
const sal_Int32 nActive = getSelIndex();
@@ -531,7 +531,7 @@ IMPL_LINK_NOARG(ExtBoxWithBtns_Impl, HandleEnableBtn)
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ExtBoxWithBtns_Impl, HandleRemoveBtn)
{
const sal_Int32 nActive = getSelIndex();
@@ -545,9 +545,9 @@ IMPL_LINK_NOARG(ExtBoxWithBtns_Impl, HandleRemoveBtn)
return 1;
}
-//------------------------------------------------------------------------------
+
// DialogHelper
-//------------------------------------------------------------------------------
+
DialogHelper::DialogHelper( const uno::Reference< uno::XComponentContext > &xContext,
Dialog *pWindow ) :
m_pVCLWindow( pWindow ),
@@ -557,21 +557,21 @@ DialogHelper::DialogHelper( const uno::Reference< uno::XComponentContext > &xCon
m_xContext = xContext;
}
-//------------------------------------------------------------------------------
+
DialogHelper::~DialogHelper()
{
if ( m_nEventID )
Application::RemoveUserEvent( m_nEventID );
}
-//------------------------------------------------------------------------------
+
ResId DialogHelper::getResId( sal_uInt16 nId )
{
const SolarMutexGuard guard;
return ResId( nId, *DeploymentGuiResMgr::get() );
}
-//------------------------------------------------------------------------------
+
OUString DialogHelper::getResourceString(sal_uInt16 id)
{
const SolarMutexGuard guard;
@@ -583,7 +583,7 @@ OUString DialogHelper::getResourceString(sal_uInt16 id)
return ret;
}
-//------------------------------------------------------------------------------
+
bool DialogHelper::IsSharedPkgMgr( const uno::Reference< deployment::XPackage > &xPackage )
{
if ( xPackage->getRepositoryName() == SHARED_PACKAGE_MANAGER )
@@ -592,7 +592,7 @@ bool DialogHelper::IsSharedPkgMgr( const uno::Reference< deployment::XPackage >
return false;
}
-//------------------------------------------------------------------------------
+
bool DialogHelper::continueOnSharedExtension( const uno::Reference< deployment::XPackage > &xPackage,
Window *pParent,
const sal_uInt16 nResID,
@@ -618,7 +618,7 @@ bool DialogHelper::continueOnSharedExtension( const uno::Reference< deployment::
return true;
}
-//------------------------------------------------------------------------------
+
void DialogHelper::openWebBrowser( const OUString & sURL, const OUString &sTitle ) const
{
if ( sURL.isEmpty() ) // Nothing to do, when the URL is empty
@@ -642,7 +642,7 @@ void DialogHelper::openWebBrowser( const OUString & sURL, const OUString &sTitle
}
}
-//------------------------------------------------------------------------------
+
bool DialogHelper::installExtensionWarn( const OUString &rExtensionName ) const
{
const SolarMutexGuard guard;
@@ -655,7 +655,7 @@ bool DialogHelper::installExtensionWarn( const OUString &rExtensionName ) const
return ( RET_OK == aInfo.Execute() );
}
-//------------------------------------------------------------------------------
+
bool DialogHelper::installForAllUsers( bool &bInstallForAll ) const
{
const SolarMutexGuard guard;
@@ -683,7 +683,7 @@ bool DialogHelper::installForAllUsers( bool &bInstallForAll ) const
return true;
}
-//------------------------------------------------------------------------------
+
void DialogHelper::PostUserEvent( const Link& rLink, void* pCaller )
{
if ( m_nEventID )
@@ -692,9 +692,9 @@ void DialogHelper::PostUserEvent( const Link& rLink, void* pCaller )
m_nEventID = Application::PostUserEvent( rLink, pCaller );
}
-//------------------------------------------------------------------------------
+
// ExtMgrDialog
-//------------------------------------------------------------------------------
+
ExtMgrDialog::ExtMgrDialog(Window *pParent, TheExtensionManager *pManager)
: ModelessDialog(pParent, "ExtensionManagerDialog", "desktop/ui/extensionmanager.ui")
, DialogHelper(pManager->getContext(), (Dialog*) this)
@@ -747,19 +747,19 @@ ExtMgrDialog::ExtMgrDialog(Window *pParent, TheExtensionManager *pManager)
m_aTimeoutTimer.SetTimeoutHdl( LINK( this, ExtMgrDialog, TimeOutHdl ) );
}
-//------------------------------------------------------------------------------
+
ExtMgrDialog::~ExtMgrDialog()
{
m_aTimeoutTimer.Stop();
}
-//------------------------------------------------------------------------------
+
void ExtMgrDialog::setGetExtensionsURL( const OUString &rURL )
{
m_pGetExtensions->SetURL( rURL );
}
-//------------------------------------------------------------------------------
+
long ExtMgrDialog::addPackageToList( const uno::Reference< deployment::XPackage > &xPackage,
bool bLicenseMissing )
{
@@ -788,20 +788,20 @@ long ExtMgrDialog::addPackageToList( const uno::Reference< deployment::XPackage
}
}
-//------------------------------------------------------------------------------
+
void ExtMgrDialog::prepareChecking()
{
m_pExtensionBox->prepareChecking();
}
-//------------------------------------------------------------------------------
+
void ExtMgrDialog::checkEntries()
{
const SolarMutexGuard guard;
m_pExtensionBox->checkEntries();
}
-//------------------------------------------------------------------------------
+
bool ExtMgrDialog::removeExtensionWarn( const OUString &rExtensionName ) const
{
const SolarMutexGuard guard;
@@ -814,7 +814,7 @@ bool ExtMgrDialog::removeExtensionWarn( const OUString &rExtensionName ) const
return ( RET_OK == aInfo.Execute() );
}
-//------------------------------------------------------------------------------
+
bool ExtMgrDialog::enablePackage( const uno::Reference< deployment::XPackage > &xPackage,
bool bEnable )
{
@@ -837,7 +837,7 @@ bool ExtMgrDialog::enablePackage( const uno::Reference< deployment::XPackage > &
return true;
}
-//------------------------------------------------------------------------------
+
bool ExtMgrDialog::removePackage( const uno::Reference< deployment::XPackage > &xPackage )
{
if ( !xPackage.is() )
@@ -857,7 +857,7 @@ bool ExtMgrDialog::removePackage( const uno::Reference< deployment::XPackage > &
return true;
}
-//------------------------------------------------------------------------------
+
bool ExtMgrDialog::updatePackage( const uno::Reference< deployment::XPackage > &xPackage )
{
if ( !xPackage.is() )
@@ -878,7 +878,7 @@ bool ExtMgrDialog::updatePackage( const uno::Reference< deployment::XPackage > &
return true;
}
-//------------------------------------------------------------------------------
+
bool ExtMgrDialog::acceptLicense( const uno::Reference< deployment::XPackage > &xPackage )
{
if ( !xPackage.is() )
@@ -889,7 +889,7 @@ bool ExtMgrDialog::acceptLicense( const uno::Reference< deployment::XPackage > &
return true;
}
-//------------------------------------------------------------------------------
+
uno::Sequence< OUString > ExtMgrDialog::raiseAddPicker()
{
const uno::Reference< uno::XComponentContext > xContext( m_pManager->getContext() );
@@ -956,7 +956,7 @@ uno::Sequence< OUString > ExtMgrDialog::raiseAddPicker()
return files;
}
-//------------------------------------------------------------------------------
+
IMPL_LINK_NOARG(ExtMgrDialog, HandleCancelBtn)
{
if ( m_xAbortChannel.is() )
@@ -980,7 +980,7 @@ IMPL_LINK_NOARG(ExtMgrDialog, HandleCloseBtn)
}
-// ------------------------------------------------------------------------------
+
IMPL_LINK( ExtMgrDialog, startProgress, void*, _bLockInterface )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1012,7 +1012,7 @@ IMPL_LINK( ExtMgrDialog, startProgress, void*, _bLockInterface )
return 0;
}
-// ------------------------------------------------------------------------------
+
void ExtMgrDialog::showProgress( bool _bStart )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1035,7 +1035,7 @@ void ExtMgrDialog::showProgress( bool _bStart )
DialogHelper::PostUserEvent( LINK( this, ExtMgrDialog, startProgress ), (void*) bStart );
}
-// -----------------------------------------------------------------------
+
void ExtMgrDialog::updateProgress( const long nProgress )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1043,7 +1043,7 @@ void ExtMgrDialog::updateProgress( const long nProgress )
m_nProgress = nProgress;
}
-// -----------------------------------------------------------------------
+
void ExtMgrDialog::updateProgress( const OUString &rText,
const uno::Reference< task::XAbortChannel > &xAbortChannel)
{
@@ -1054,14 +1054,14 @@ void ExtMgrDialog::updateProgress( const OUString &rText,
m_bProgressChanged = true;
}
-//------------------------------------------------------------------------------
+
void ExtMgrDialog::updatePackageInfo( const uno::Reference< deployment::XPackage > &xPackage )
{
const SolarMutexGuard aGuard;
m_pExtensionBox->updateEntry( xPackage );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ExtMgrDialog, HandleAddBtn)
{
setBusy( true );
@@ -1077,14 +1077,14 @@ IMPL_LINK_NOARG(ExtMgrDialog, HandleAddBtn)
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ExtMgrDialog, HandleExtTypeCbx)
{
// re-creates the list of packages with addEntry selecting the packages
m_pManager->createPackageList();
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ExtMgrDialog, HandleUpdateBtn)
{
m_pManager->checkUpdates( false, true );
@@ -1092,7 +1092,7 @@ IMPL_LINK_NOARG(ExtMgrDialog, HandleUpdateBtn)
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( ExtMgrDialog, HandleHyperlink, FixedHyperlink*, pHyperlink )
{
openWebBrowser( pHyperlink->GetURL(), GetText() );
@@ -1100,7 +1100,7 @@ IMPL_LINK( ExtMgrDialog, HandleHyperlink, FixedHyperlink*, pHyperlink )
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(ExtMgrDialog, TimeOutHdl)
{
if ( m_bStopProgress )
@@ -1138,7 +1138,7 @@ IMPL_LINK_NOARG(ExtMgrDialog, TimeOutHdl)
return 1;
}
-//------------------------------------------------------------------------------
+
// VCL::Window / Dialog
bool ExtMgrDialog::Notify( NotifyEvent& rNEvt )
@@ -1175,7 +1175,7 @@ bool ExtMgrDialog::Notify( NotifyEvent& rNEvt )
return true;
}
-//------------------------------------------------------------------------------
+
bool ExtMgrDialog::Close()
{
bool bRet = m_pManager->queryTermination();
@@ -1187,9 +1187,9 @@ bool ExtMgrDialog::Close()
return bRet;
}
-//------------------------------------------------------------------------------
+
// UpdateRequiredDialog
-//------------------------------------------------------------------------------
+
UpdateRequiredDialog::UpdateRequiredDialog( Window *pParent, TheExtensionManager *pManager ) :
ModalDialog( pParent, getResId( RID_DLG_UPDATE_REQUIRED ) ),
DialogHelper( pManager->getContext(), (Dialog*) this ),
@@ -1264,7 +1264,7 @@ UpdateRequiredDialog::UpdateRequiredDialog( Window *pParent, TheExtensionManager
m_aTimeoutTimer.SetTimeoutHdl( LINK( this, UpdateRequiredDialog, TimeOutHdl ) );
}
-//------------------------------------------------------------------------------
+
UpdateRequiredDialog::~UpdateRequiredDialog()
{
m_aTimeoutTimer.Stop();
@@ -1272,7 +1272,7 @@ UpdateRequiredDialog::~UpdateRequiredDialog()
delete m_pExtensionBox;
}
-//------------------------------------------------------------------------------
+
long UpdateRequiredDialog::addPackageToList( const uno::Reference< deployment::XPackage > &xPackage,
bool bLicenseMissing )
{
@@ -1287,13 +1287,13 @@ long UpdateRequiredDialog::addPackageToList( const uno::Reference< deployment::X
return 0;
}
-//------------------------------------------------------------------------------
+
void UpdateRequiredDialog::prepareChecking()
{
m_pExtensionBox->prepareChecking();
}
-//------------------------------------------------------------------------------
+
void UpdateRequiredDialog::checkEntries()
{
const SolarMutexGuard guard;
@@ -1306,7 +1306,7 @@ void UpdateRequiredDialog::checkEntries()
}
}
-//------------------------------------------------------------------------------
+
bool UpdateRequiredDialog::enablePackage( const uno::Reference< deployment::XPackage > &xPackage,
bool bEnable )
{
@@ -1315,7 +1315,7 @@ bool UpdateRequiredDialog::enablePackage( const uno::Reference< deployment::XPac
return true;
}
-//------------------------------------------------------------------------------
+
IMPL_LINK_NOARG(UpdateRequiredDialog, HandleCancelBtn)
{
if ( m_xAbortChannel.is() )
@@ -1332,7 +1332,7 @@ IMPL_LINK_NOARG(UpdateRequiredDialog, HandleCancelBtn)
return 1;
}
-// ------------------------------------------------------------------------------
+
IMPL_LINK( UpdateRequiredDialog, startProgress, void*, _bLockInterface )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1360,7 +1360,7 @@ IMPL_LINK( UpdateRequiredDialog, startProgress, void*, _bLockInterface )
return 0;
}
-// ------------------------------------------------------------------------------
+
void UpdateRequiredDialog::showProgress( bool _bStart )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1383,7 +1383,7 @@ void UpdateRequiredDialog::showProgress( bool _bStart )
DialogHelper::PostUserEvent( LINK( this, UpdateRequiredDialog, startProgress ), (void*) bStart );
}
-// -----------------------------------------------------------------------
+
void UpdateRequiredDialog::updateProgress( const long nProgress )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1391,7 +1391,7 @@ void UpdateRequiredDialog::updateProgress( const long nProgress )
m_nProgress = nProgress;
}
-// -----------------------------------------------------------------------
+
void UpdateRequiredDialog::updateProgress( const OUString &rText,
const uno::Reference< task::XAbortChannel > &xAbortChannel)
{
@@ -1402,7 +1402,7 @@ void UpdateRequiredDialog::updateProgress( const OUString &rText,
m_bProgressChanged = true;
}
-//------------------------------------------------------------------------------
+
void UpdateRequiredDialog::updatePackageInfo( const uno::Reference< deployment::XPackage > &xPackage )
{
// We will remove all updated packages with satisfied dependencies, but
@@ -1421,7 +1421,7 @@ void UpdateRequiredDialog::updatePackageInfo( const uno::Reference< deployment::
}
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(UpdateRequiredDialog, HandleUpdateBtn)
{
::osl::ClearableMutexGuard aGuard( m_aMutex );
@@ -1442,7 +1442,7 @@ IMPL_LINK_NOARG(UpdateRequiredDialog, HandleUpdateBtn)
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(UpdateRequiredDialog, HandleCloseBtn)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1460,7 +1460,7 @@ IMPL_LINK_NOARG(UpdateRequiredDialog, HandleCloseBtn)
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( UpdateRequiredDialog, HandleHyperlink, FixedHyperlink*, pHyperlink )
{
openWebBrowser( pHyperlink->GetURL(), GetText() );
@@ -1468,7 +1468,7 @@ IMPL_LINK( UpdateRequiredDialog, HandleHyperlink, FixedHyperlink*, pHyperlink )
return 1;
}
-// -----------------------------------------------------------------------
+
IMPL_LINK_NOARG(UpdateRequiredDialog, TimeOutHdl)
{
if ( m_bStopProgress )
@@ -1506,7 +1506,7 @@ IMPL_LINK_NOARG(UpdateRequiredDialog, TimeOutHdl)
return 1;
}
-//------------------------------------------------------------------------------
+
// VCL::Window / Dialog
void UpdateRequiredDialog::Resize()
{
@@ -1575,7 +1575,7 @@ void UpdateRequiredDialog::Resize()
m_aProgressText.SetPosSizePixel( aPos, aFTSize );
}
-//------------------------------------------------------------------------------
+
// VCL::Dialog
short UpdateRequiredDialog::Execute()
{
@@ -1599,7 +1599,7 @@ short UpdateRequiredDialog::Execute()
return Dialog::Execute();
}
-//------------------------------------------------------------------------------
+
// VCL::Dialog
bool UpdateRequiredDialog::Close()
{
@@ -1618,9 +1618,9 @@ bool UpdateRequiredDialog::Close()
return false;
}
-//------------------------------------------------------------------------------
+
// Check dependencies of all packages
-//------------------------------------------------------------------------------
+
bool UpdateRequiredDialog::isEnabled( const uno::Reference< deployment::XPackage > &xPackage ) const
{
bool bRegistered = false;
@@ -1659,7 +1659,7 @@ bool UpdateRequiredDialog::checkDependencies( const uno::Reference< deployment::
return bDependenciesValid;
}
-//------------------------------------------------------------------------------
+
bool UpdateRequiredDialog::hasActiveEntries()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1680,7 +1680,7 @@ bool UpdateRequiredDialog::hasActiveEntries()
return bRet;
}
-//------------------------------------------------------------------------------
+
void UpdateRequiredDialog::disableAllEntries()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -1700,9 +1700,9 @@ void UpdateRequiredDialog::disableAllEntries()
m_aCloseBtn.SetText( m_sCloseText );
}
-//------------------------------------------------------------------------------
+
// ShowLicenseDialog
-//------------------------------------------------------------------------------
+
ShowLicenseDialog::ShowLicenseDialog( Window * pParent,
const uno::Reference< deployment::XPackage > &xPackage )
: ModalDialog(pParent, "ShowLicenseDialog", "desktop/ui/showlicensedialog.ui")
@@ -1723,14 +1723,14 @@ UpdateRequiredDialogService::UpdateRequiredDialogService( uno::Sequence< uno::An
{
}
-//------------------------------------------------------------------------------
+
// XExecutableDialog
-//------------------------------------------------------------------------------
+
void UpdateRequiredDialogService::setTitle( OUString const & ) throw ( uno::RuntimeException )
{
}
-//------------------------------------------------------------------------------
+
sal_Int16 UpdateRequiredDialogService::execute() throw ( uno::RuntimeException )
{
::rtl::Reference< ::dp_gui::TheExtensionManager > xManager( TheExtensionManager::get(
@@ -1743,7 +1743,7 @@ sal_Int16 UpdateRequiredDialogService::execute() throw ( uno::RuntimeException )
return nRet;
}
-//------------------------------------------------------------------------------
+
SelectedPackage::~SelectedPackage() {}
} //namespace dp_gui
diff --git a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
index fb5e42c3bf5c..51afc8a3d1db 100644
--- a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
+++ b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
@@ -181,7 +181,7 @@ public:
virtual void SAL_CALL pop() throw ( uno::RuntimeException );
};
-//------------------------------------------------------------------------------
+
struct ExtensionCmd
{
enum E_CMD_TYPE { ADD, ENABLE, DISABLE, REMOVE, CHECK_FOR_UPDATES, ACCEPT_LICENSE };
@@ -215,7 +215,7 @@ struct ExtensionCmd
typedef ::boost::shared_ptr< ExtensionCmd > TExtensionCmd;
-//------------------------------------------------------------------------------
+
class ExtensionCmdQueue::Thread: public salhelper::Thread
{
public:
@@ -276,7 +276,7 @@ private:
bool m_bWorking;
};
-//------------------------------------------------------------------------------
+
void ProgressCmdEnv::startProgress()
{
m_nCurrentProgress = 0;
@@ -285,14 +285,14 @@ void ProgressCmdEnv::startProgress()
m_pDialogHelper->showProgress( true );
}
-//------------------------------------------------------------------------------
+
void ProgressCmdEnv::stopProgress()
{
if ( m_pDialogHelper )
m_pDialogHelper->showProgress( false );
}
-//------------------------------------------------------------------------------
+
void ProgressCmdEnv::progressSection( const OUString &rText,
const uno::Reference< task::XAbortChannel > &xAbortChannel )
{
@@ -308,7 +308,7 @@ void ProgressCmdEnv::progressSection( const OUString &rText,
}
}
-//------------------------------------------------------------------------------
+
void ProgressCmdEnv::updateProgress()
{
if ( ! m_bAborted )
@@ -319,32 +319,32 @@ void ProgressCmdEnv::updateProgress()
}
}
-//------------------------------------------------------------------------------
+
ProgressCmdEnv::~ProgressCmdEnv()
{
// TODO: stop all threads and wait
}
-//------------------------------------------------------------------------------
+
// XCommandEnvironment
-//------------------------------------------------------------------------------
+
uno::Reference< task::XInteractionHandler > ProgressCmdEnv::getInteractionHandler()
throw ( uno::RuntimeException )
{
return this;
}
-//------------------------------------------------------------------------------
+
uno::Reference< ucb::XProgressHandler > ProgressCmdEnv::getProgressHandler()
throw ( uno::RuntimeException )
{
return this;
}
-//------------------------------------------------------------------------------
+
// XInteractionHandler
-//------------------------------------------------------------------------------
+
void ProgressCmdEnv::handle( uno::Reference< task::XInteractionRequest > const & xRequest )
throw ( uno::RuntimeException )
{
@@ -549,16 +549,16 @@ void ProgressCmdEnv::handle( uno::Reference< task::XInteractionRequest > const &
}
}
-//------------------------------------------------------------------------------
+
// XProgressHandler
-//------------------------------------------------------------------------------
+
void ProgressCmdEnv::push( uno::Any const & rStatus )
throw( uno::RuntimeException )
{
update_( rStatus );
}
-//------------------------------------------------------------------------------
+
void ProgressCmdEnv::update_( uno::Any const & rStatus )
throw( uno::RuntimeException )
{
@@ -578,21 +578,21 @@ void ProgressCmdEnv::update_( uno::Any const & rStatus )
updateProgress();
}
-//------------------------------------------------------------------------------
+
void ProgressCmdEnv::update( uno::Any const & rStatus )
throw( uno::RuntimeException )
{
update_( rStatus );
}
-//------------------------------------------------------------------------------
+
void ProgressCmdEnv::pop()
throw( uno::RuntimeException )
{
update_( uno::Any() ); // no message
}
-//------------------------------------------------------------------------------
+
ExtensionCmdQueue::Thread::Thread( DialogHelper *pDialogHelper,
TheExtensionManager *pManager,
const uno::Reference< uno::XComponentContext > & rContext ) :
@@ -613,7 +613,7 @@ ExtensionCmdQueue::Thread::Thread( DialogHelper *pDialogHelper,
OSL_ASSERT( pDialogHelper );
}
-//------------------------------------------------------------------------------
+
void ExtensionCmdQueue::Thread::addExtension( const OUString &rExtensionURL,
const OUString &rRepository,
const bool bWarnUser )
@@ -625,7 +625,7 @@ void ExtensionCmdQueue::Thread::addExtension( const OUString &rExtensionURL,
}
}
-//------------------------------------------------------------------------------
+
void ExtensionCmdQueue::Thread::removeExtension( const uno::Reference< deployment::XPackage > &rPackage )
{
if ( rPackage.is() )
@@ -635,7 +635,7 @@ void ExtensionCmdQueue::Thread::removeExtension( const uno::Reference< deploymen
}
}
-//------------------------------------------------------------------------------
+
void ExtensionCmdQueue::Thread::acceptLicense( const uno::Reference< deployment::XPackage > &rPackage )
{
if ( rPackage.is() )
@@ -645,7 +645,7 @@ void ExtensionCmdQueue::Thread::acceptLicense( const uno::Reference< deployment:
}
}
-//------------------------------------------------------------------------------
+
void ExtensionCmdQueue::Thread::enableExtension( const uno::Reference< deployment::XPackage > &rPackage,
const bool bEnable )
{
@@ -658,7 +658,7 @@ void ExtensionCmdQueue::Thread::enableExtension( const uno::Reference< deploymen
}
}
-//------------------------------------------------------------------------------
+
void ExtensionCmdQueue::Thread::checkForUpdates(
const std::vector<uno::Reference<deployment::XPackage > > &vExtensionList )
{
@@ -666,7 +666,7 @@ void ExtensionCmdQueue::Thread::checkForUpdates(
_insert( pEntry );
}
-//------------------------------------------------------------------------------
+
//Stopping this thread will not abort the installation of extensions.
void ExtensionCmdQueue::Thread::stop()
{
@@ -676,17 +676,17 @@ void ExtensionCmdQueue::Thread::stop()
m_wakeup.set();
}
-//------------------------------------------------------------------------------
+
bool ExtensionCmdQueue::Thread::isBusy()
{
osl::MutexGuard aGuard( m_mutex );
return m_bWorking;
}
-//------------------------------------------------------------------------------
+
ExtensionCmdQueue::Thread::~Thread() {}
-//------------------------------------------------------------------------------
+
void ExtensionCmdQueue::Thread::execute()
{
#ifdef WNT
@@ -841,7 +841,7 @@ void ExtensionCmdQueue::Thread::execute()
#endif
}
-//------------------------------------------------------------------------------
+
void ExtensionCmdQueue::Thread::_addExtension( ::rtl::Reference< ProgressCmdEnv > &rCmdEnv,
const OUString &rPackageURL,
const OUString &rRepository,
@@ -891,7 +891,7 @@ void ExtensionCmdQueue::Thread::_addExtension( ::rtl::Reference< ProgressCmdEnv
rCmdEnv->setWarnUser( false );
}
-//------------------------------------------------------------------------------
+
void ExtensionCmdQueue::Thread::_removeExtension( ::rtl::Reference< ProgressCmdEnv > &rCmdEnv,
const uno::Reference< deployment::XPackage > &xPackage )
{
@@ -919,7 +919,7 @@ void ExtensionCmdQueue::Thread::_removeExtension( ::rtl::Reference< ProgressCmdE
UpdateDialog::createNotifyJob( false, aItemList );
}
-//------------------------------------------------------------------------------
+
void ExtensionCmdQueue::Thread::_checkForUpdates(
const std::vector<uno::Reference<deployment::XPackage > > &vExtensionList )
{
@@ -973,7 +973,7 @@ void ExtensionCmdQueue::Thread::_checkForUpdates(
delete pUpdateDialog;
}
-//------------------------------------------------------------------------------
+
void ExtensionCmdQueue::Thread::_enableExtension( ::rtl::Reference< ProgressCmdEnv > &rCmdEnv,
const uno::Reference< deployment::XPackage > &xPackage )
{
@@ -997,7 +997,7 @@ void ExtensionCmdQueue::Thread::_enableExtension( ::rtl::Reference< ProgressCmdE
{}
}
-//------------------------------------------------------------------------------
+
void ExtensionCmdQueue::Thread::_disableExtension( ::rtl::Reference< ProgressCmdEnv > &rCmdEnv,
const uno::Reference< deployment::XPackage > &xPackage )
{
@@ -1021,7 +1021,7 @@ void ExtensionCmdQueue::Thread::_disableExtension( ::rtl::Reference< ProgressCmd
{}
}
-//------------------------------------------------------------------------------
+
void ExtensionCmdQueue::Thread::_acceptLicense( ::rtl::Reference< ProgressCmdEnv > &rCmdEnv,
const uno::Reference< deployment::XPackage > &xPackage )
{
@@ -1058,7 +1058,7 @@ void ExtensionCmdQueue::Thread::_insert(const TExtensionCmd& rExtCmd)
m_wakeup.set();
}
-//------------------------------------------------------------------------------
+
ExtensionCmdQueue::ExtensionCmdQueue( DialogHelper * pDialogHelper,
TheExtensionManager *pManager,
const uno::Reference< uno::XComponentContext > &rContext )
diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
index 8a12b207b5c5..18e4f84b9342 100644
--- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
+++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
@@ -58,9 +58,9 @@ bool FindWeakRef::operator () (uno::WeakReference< deployment::XPackage > const
}
} // end namespace
-//------------------------------------------------------------------------------
+
// struct Entry_Impl
-//------------------------------------------------------------------------------
+
Entry_Impl::Entry_Impl( const uno::Reference< deployment::XPackage > &xPackage,
const PackageState eState, const bool bReadOnly ) :
m_bActive( false ),
@@ -108,11 +108,11 @@ Entry_Impl::Entry_Impl( const uno::Reference< deployment::XPackage > &xPackage,
catch (const uno::RuntimeException &) {}
}
-//------------------------------------------------------------------------------
+
Entry_Impl::~Entry_Impl()
{}
-//------------------------------------------------------------------------------
+
sal_Int32 Entry_Impl::CompareTo( const CollatorWrapper *pCollator, const TEntry_Impl pEntry ) const
{
sal_Int32 eCompare = pCollator->compareString( m_sTitle, pEntry->m_sTitle );
@@ -131,7 +131,7 @@ sal_Int32 Entry_Impl::CompareTo( const CollatorWrapper *pCollator, const TEntry_
return eCompare;
}
-//------------------------------------------------------------------------------
+
void Entry_Impl::checkDependencies()
{
try {
@@ -154,9 +154,9 @@ void Entry_Impl::checkDependencies()
}
}
}
-//------------------------------------------------------------------------------
+
// ExtensionRemovedListener
-//------------------------------------------------------------------------------
+
void ExtensionRemovedListener::disposing( lang::EventObject const & rEvt )
throw ( uno::RuntimeException )
{
@@ -168,14 +168,14 @@ void ExtensionRemovedListener::disposing( lang::EventObject const & rEvt )
}
}
-//------------------------------------------------------------------------------
+
ExtensionRemovedListener::~ExtensionRemovedListener()
{
}
-//------------------------------------------------------------------------------
+
// ExtensionBox_Impl
-//------------------------------------------------------------------------------
+
ExtensionBox_Impl::ExtensionBox_Impl( Window* pParent, TheExtensionManager *pManager ) :
IExtensionListBox( pParent, WB_BORDER | WB_TABSTOP | WB_CHILDDLGCTRL ),
m_bHasScrollBar( false ),
@@ -259,7 +259,7 @@ void ExtensionBox_Impl::Init()
Show();
}
-//------------------------------------------------------------------------------
+
ExtensionBox_Impl::~ExtensionBox_Impl()
{
if ( ! m_bInDelete )
@@ -289,13 +289,13 @@ ExtensionBox_Impl::~ExtensionBox_Impl()
delete m_pCollator;
}
-//------------------------------------------------------------------------------
+
sal_Int32 ExtensionBox_Impl::getItemCount() const
{
return static_cast< sal_Int32 >( m_vEntries.size() );
}
-//------------------------------------------------------------------------------
+
sal_Int32 ExtensionBox_Impl::getSelIndex() const
{
if ( m_bHasActive )
@@ -307,7 +307,7 @@ sal_Int32 ExtensionBox_Impl::getSelIndex() const
return ENTRY_NOTFOUND;
}
-//------------------------------------------------------------------------------
+
void ExtensionBox_Impl::checkIndex( sal_Int32 nIndex ) const
{
if ( nIndex < 0 )
@@ -316,7 +316,7 @@ void ExtensionBox_Impl::checkIndex( sal_Int32 nIndex ) const
throw lang::IllegalArgumentException( "There is no element at the provided position. The position exceeds the number of available list entries",0, 0 );
}
-//------------------------------------------------------------------------------
+
OUString ExtensionBox_Impl::getItemName( sal_Int32 nIndex ) const
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
@@ -324,7 +324,7 @@ OUString ExtensionBox_Impl::getItemName( sal_Int32 nIndex ) const
return m_vEntries[ nIndex ]->m_sTitle;
}
-//------------------------------------------------------------------------------
+
OUString ExtensionBox_Impl::getItemVersion( sal_Int32 nIndex ) const
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
@@ -332,7 +332,7 @@ OUString ExtensionBox_Impl::getItemVersion( sal_Int32 nIndex ) const
return m_vEntries[ nIndex ]->m_sVersion;
}
-//------------------------------------------------------------------------------
+
OUString ExtensionBox_Impl::getItemDescription( sal_Int32 nIndex ) const
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
@@ -340,7 +340,7 @@ OUString ExtensionBox_Impl::getItemDescription( sal_Int32 nIndex ) const
return m_vEntries[ nIndex ]->m_sDescription;
}
-//------------------------------------------------------------------------------
+
OUString ExtensionBox_Impl::getItemPublisher( sal_Int32 nIndex ) const
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
@@ -348,7 +348,7 @@ OUString ExtensionBox_Impl::getItemPublisher( sal_Int32 nIndex ) const
return m_vEntries[ nIndex ]->m_sPublisher;
}
-//------------------------------------------------------------------------------
+
OUString ExtensionBox_Impl::getItemPublisherLink( sal_Int32 nIndex ) const
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
@@ -356,7 +356,7 @@ OUString ExtensionBox_Impl::getItemPublisherLink( sal_Int32 nIndex ) const
return m_vEntries[ nIndex ]->m_sPublisherURL;
}
-//------------------------------------------------------------------------------
+
void ExtensionBox_Impl::select( sal_Int32 nIndex )
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
@@ -364,7 +364,7 @@ void ExtensionBox_Impl::select( sal_Int32 nIndex )
selectEntry( nIndex );
}
-//------------------------------------------------------------------------------
+
void ExtensionBox_Impl::select( const OUString & sName )
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
@@ -381,7 +381,7 @@ void ExtensionBox_Impl::select( const OUString & sName )
}
}
-//------------------------------------------------------------------------------
+
// Title + description
void ExtensionBox_Impl::CalcActiveHeight( const long nPos )
{
@@ -422,13 +422,13 @@ void ExtensionBox_Impl::CalcActiveHeight( const long nPos )
m_nActiveHeight = aTextHeight + 2;
}
-//------------------------------------------------------------------------------
+
const Size ExtensionBox_Impl::GetMinOutputSizePixel() const
{
return Size( 200, 80 );
}
-//------------------------------------------------------------------------------
+
Rectangle ExtensionBox_Impl::GetEntryRect( const long nPos ) const
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
@@ -450,7 +450,7 @@ Rectangle ExtensionBox_Impl::GetEntryRect( const long nPos ) const
return Rectangle( aPos, aSize );
}
-//------------------------------------------------------------------------------
+
void ExtensionBox_Impl::DeleteRemoved()
{
const ::osl::MutexGuard aGuard( m_entriesMutex );
@@ -476,7 +476,7 @@ void ExtensionBox_Impl::DeleteRemoved()
m_bInDelete = false;
}
-//------------------------------------------------------------------------------
+
//This function may be called with nPos < 0
void ExtensionBox_Impl::selectEntry( const long nPos )
{
@@ -521,7 +521,7 @@ void ExtensionBox_Impl::selectEntry( const long nPos )
guard.clear();
}
-// -----------------------------------------------------------------------
+
void ExtensionBox_Impl::DrawRow( const Rectangle& rRect, const TEntry_Impl pEntry )
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -681,7 +681,7 @@ void ExtensionBox_Impl::DrawRow( const Rectangle& rRect, const TEntry_Impl pEntr
DrawLine( rRect.BottomLeft(), rRect.BottomRight() );
}
-// -----------------------------------------------------------------------
+
void ExtensionBox_Impl::RecalcAll()
{
if ( m_bHasActive )
@@ -732,13 +732,13 @@ void ExtensionBox_Impl::RecalcAll()
m_bNeedsRecalc = false;
}
-// -----------------------------------------------------------------------
+
bool ExtensionBox_Impl::HandleTabKey( bool )
{
return false;
}
-// -----------------------------------------------------------------------
+
bool ExtensionBox_Impl::HandleCursorKey( sal_uInt16 nKeyCode )
{
if ( m_vEntries.empty() )
@@ -783,7 +783,7 @@ bool ExtensionBox_Impl::HandleCursorKey( sal_uInt16 nKeyCode )
return true;
}
-// -----------------------------------------------------------------------
+
void ExtensionBox_Impl::Paint( const Rectangle &/*rPaintRect*/ )
{
if ( !m_bInDelete )
@@ -810,7 +810,7 @@ void ExtensionBox_Impl::Paint( const Rectangle &/*rPaintRect*/ )
}
}
-// -----------------------------------------------------------------------
+
long ExtensionBox_Impl::GetTotalHeight() const
{
long nHeight = m_vEntries.size() * m_nStdHeight;
@@ -823,7 +823,7 @@ long ExtensionBox_Impl::GetTotalHeight() const
return nHeight;
}
-// -----------------------------------------------------------------------
+
void ExtensionBox_Impl::SetupScrollBar()
{
const Size aSize = GetOutputSizePixel();
@@ -856,13 +856,13 @@ void ExtensionBox_Impl::SetupScrollBar()
m_bHasScrollBar = bNeedsScrollBar;
}
-// -----------------------------------------------------------------------
+
void ExtensionBox_Impl::Resize()
{
RecalcAll();
}
-//------------------------------------------------------------------------------
+
long ExtensionBox_Impl::PointToPos( const Point& rPos )
{
long nPos = ( rPos.Y() + m_nTopIndex ) / m_nStdHeight;
@@ -878,7 +878,7 @@ long ExtensionBox_Impl::PointToPos( const Point& rPos )
return nPos;
}
-//------------------------------------------------------------------------------
+
void ExtensionBox_Impl::MouseButtonDown( const MouseEvent& rMEvt )
{
long nPos = PointToPos( rMEvt.GetPosPixel() );
@@ -892,7 +892,7 @@ void ExtensionBox_Impl::MouseButtonDown( const MouseEvent& rMEvt )
}
}
-//------------------------------------------------------------------------------
+
bool ExtensionBox_Impl::Notify( NotifyEvent& rNEvt )
{
if ( !m_bInDelete )
@@ -936,7 +936,7 @@ bool ExtensionBox_Impl::Notify( NotifyEvent& rNEvt )
return true;
}
-//------------------------------------------------------------------------------
+
bool ExtensionBox_Impl::FindEntryPos( const TEntry_Impl pEntry, const long nStart,
const long nEnd, long &nPos )
{
@@ -1017,7 +1017,7 @@ void ExtensionBox_Impl::addEventListenerOnce(
}
}
-//------------------------------------------------------------------------------
+
long ExtensionBox_Impl::addEntry( const uno::Reference< deployment::XPackage > &xPackage,
bool bLicenseMissing )
{
@@ -1073,7 +1073,7 @@ long ExtensionBox_Impl::addEntry( const uno::Reference< deployment::XPackage > &
return nPos;
}
-//------------------------------------------------------------------------------
+
void ExtensionBox_Impl::updateEntry( const uno::Reference< deployment::XPackage > &xPackage )
{
typedef std::vector< TEntry_Impl >::iterator ITER;
@@ -1103,7 +1103,7 @@ void ExtensionBox_Impl::updateEntry( const uno::Reference< deployment::XPackage
}
}
-//------------------------------------------------------------------------------
+
//This function is also called as a result of removing an extension.
//see PackageManagerImpl::removePackage
//The gui is a registered as listener on the package. Removing it will cause the
@@ -1156,7 +1156,7 @@ void ExtensionBox_Impl::removeEntry( const uno::Reference< deployment::XPackage
}
}
-//------------------------------------------------------------------------------
+
void ExtensionBox_Impl::RemoveUnlocked()
{
bool bAllRemoved = false;
@@ -1183,7 +1183,7 @@ void ExtensionBox_Impl::RemoveUnlocked()
}
}
-//------------------------------------------------------------------------------
+
void ExtensionBox_Impl::prepareChecking()
{
m_bInCheckMode = true;
@@ -1195,7 +1195,7 @@ void ExtensionBox_Impl::prepareChecking()
}
}
-//------------------------------------------------------------------------------
+
void ExtensionBox_Impl::checkEntries()
{
long nNewPos = -1;
@@ -1255,14 +1255,14 @@ void ExtensionBox_Impl::checkEntries()
}
}
-//------------------------------------------------------------------------------
+
void ExtensionBox_Impl::SetScrollHdl( const Link& rLink )
{
if ( m_pScrollBar )
m_pScrollBar->SetScrollHdl( rLink );
}
-// -----------------------------------------------------------------------
+
void ExtensionBox_Impl::DoScroll( long nDelta )
{
m_nTopIndex += nDelta;
@@ -1275,7 +1275,7 @@ void ExtensionBox_Impl::DoScroll( long nDelta )
m_pScrollBar->SetPosPixel( aNewSBPt );
}
-// -----------------------------------------------------------------------
+
IMPL_LINK( ExtensionBox_Impl, ScrollHdl, ScrollBar*, pScrBar )
{
DoScroll( pScrBar->GetDelta() );
diff --git a/desktop/source/deployment/gui/dp_gui_service.cxx b/desktop/source/deployment/gui/dp_gui_service.cxx
index d19f175bf365..44083b4d2d7e 100644
--- a/desktop/source/deployment/gui/dp_gui_service.cxx
+++ b/desktop/source/deployment/gui/dp_gui_service.cxx
@@ -60,17 +60,17 @@ public:
virtual void DeInit();
};
-//______________________________________________________________________________
+
MyApp::~MyApp()
{
}
-//______________________________________________________________________________
+
MyApp::MyApp()
{
}
-//______________________________________________________________________________
+
int MyApp::Main()
{
return EXIT_SUCCESS;
@@ -166,7 +166,7 @@ public:
throw (RuntimeException);
};
-//______________________________________________________________________________
+
ServiceImpl::ServiceImpl( Sequence<Any> const& args,
Reference<XComponentContext> const& xComponentContext)
: m_xComponentContext(xComponentContext),
@@ -188,7 +188,7 @@ ServiceImpl::ServiceImpl( Sequence<Any> const& args,
}
// XAsynchronousExecutableDialog
-//______________________________________________________________________________
+
void ServiceImpl::setDialogTitle( OUString const & title )
throw (RuntimeException)
{
@@ -205,7 +205,7 @@ void ServiceImpl::setDialogTitle( OUString const & title )
m_initialTitle = title;
}
-//______________________________________________________________________________
+
void ServiceImpl::startExecuteModal(
Reference< ui::dialogs::XDialogClosedListener > const & xListener )
throw (RuntimeException)
@@ -296,7 +296,7 @@ void ServiceImpl::startExecuteModal(
}
// XJobExecutor
-//______________________________________________________________________________
+
void ServiceImpl::trigger( OUString const &rEvent ) throw (RuntimeException)
{
if ( rEvent == "SHOW_UPDATE_DIALOG" )
diff --git a/desktop/source/deployment/gui/dp_gui_theextmgr.cxx b/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
index 21964b4a9096..189f397efc6d 100644
--- a/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
+++ b/desktop/source/deployment/gui/dp_gui_theextmgr.cxx
@@ -41,13 +41,13 @@ using namespace ::com::sun::star;
namespace dp_gui {
-//------------------------------------------------------------------------------
+
::rtl::Reference< TheExtensionManager > TheExtensionManager::s_ExtMgr;
-//------------------------------------------------------------------------------
+
// TheExtensionManager
-//------------------------------------------------------------------------------
+
TheExtensionManager::TheExtensionManager( Window *pParent,
const uno::Reference< uno::XComponentContext > &xContext ) :
@@ -95,7 +95,7 @@ TheExtensionManager::TheExtensionManager( Window *pParent,
}
}
-//------------------------------------------------------------------------------
+
TheExtensionManager::~TheExtensionManager()
{
delete m_pUpdReqDialog;
@@ -103,7 +103,7 @@ TheExtensionManager::~TheExtensionManager()
delete m_pExecuteCmdQueue;
}
-//------------------------------------------------------------------------------
+
void TheExtensionManager::createDialog( const bool bCreateUpdDlg )
{
const SolarMutexGuard guard;
@@ -128,7 +128,7 @@ void TheExtensionManager::createDialog( const bool bCreateUpdDlg )
}
}
-//------------------------------------------------------------------------------
+
void TheExtensionManager::Show()
{
const SolarMutexGuard guard;
@@ -136,7 +136,7 @@ void TheExtensionManager::Show()
getDialog()->Show();
}
-//------------------------------------------------------------------------------
+
void TheExtensionManager::SetText( const OUString &rTitle )
{
const SolarMutexGuard guard;
@@ -144,7 +144,7 @@ void TheExtensionManager::SetText( const OUString &rTitle )
getDialog()->SetText( rTitle );
}
-//------------------------------------------------------------------------------
+
void TheExtensionManager::ToTop( sal_uInt16 nFlags )
{
const SolarMutexGuard guard;
@@ -152,7 +152,7 @@ void TheExtensionManager::ToTop( sal_uInt16 nFlags )
getDialog()->ToTop( nFlags );
}
-//------------------------------------------------------------------------------
+
bool TheExtensionManager::Close()
{
if ( m_pExtMgrDialog )
@@ -163,7 +163,7 @@ bool TheExtensionManager::Close()
return true;
}
-//------------------------------------------------------------------------------
+
sal_Int16 TheExtensionManager::execute()
{
sal_Int16 nRet = 0;
@@ -178,13 +178,13 @@ sal_Int16 TheExtensionManager::execute()
return nRet;
}
-//------------------------------------------------------------------------------
+
bool TheExtensionManager::isVisible()
{
return getDialog()->IsVisible();
}
-//------------------------------------------------------------------------------
+
bool TheExtensionManager::checkUpdates( bool /* bShowUpdateOnly */, bool /*bParentVisible*/ )
{
std::vector< uno::Reference< deployment::XPackage > > vEntries;
@@ -217,7 +217,7 @@ bool TheExtensionManager::checkUpdates( bool /* bShowUpdateOnly */, bool /*bPare
return true;
}
-//------------------------------------------------------------------------------
+
bool TheExtensionManager::installPackage( const OUString &rPackageURL, bool bWarnUser )
{
if ( rPackageURL.isEmpty() )
@@ -243,7 +243,7 @@ bool TheExtensionManager::installPackage( const OUString &rPackageURL, bool bWar
return true;
}
-//------------------------------------------------------------------------------
+
bool TheExtensionManager::queryTermination()
{
if ( dp_misc::office_is_running() )
@@ -253,7 +253,7 @@ bool TheExtensionManager::queryTermination()
return true;
}
-//------------------------------------------------------------------------------
+
void TheExtensionManager::terminateDialog()
{
if ( ! dp_misc::office_is_running() )
@@ -267,7 +267,7 @@ void TheExtensionManager::terminateDialog()
}
}
-//------------------------------------------------------------------------------
+
void TheExtensionManager::createPackageList()
{
uno::Sequence< uno::Sequence< uno::Reference< deployment::XPackage > > > xAllPackages;
@@ -317,7 +317,7 @@ void TheExtensionManager::createPackageList()
}
}
-//------------------------------------------------------------------------------
+
PackageState TheExtensionManager::getPackageState( const uno::Reference< deployment::XPackage > &xPackage ) const
{
try {
@@ -345,7 +345,7 @@ PackageState TheExtensionManager::getPackageState( const uno::Reference< deploym
}
}
-//------------------------------------------------------------------------------
+
bool TheExtensionManager::isReadOnly( const uno::Reference< deployment::XPackage > &xPackage ) const
{
if ( m_xExtensionManager.is() && xPackage.is() )
@@ -356,7 +356,7 @@ bool TheExtensionManager::isReadOnly( const uno::Reference< deployment::XPackage
return true;
}
-//------------------------------------------------------------------------------
+
// The function investigates if the extension supports options.
bool TheExtensionManager::supportsOptions( const uno::Reference< deployment::XPackage > &xPackage ) const
{
@@ -408,7 +408,7 @@ bool TheExtensionManager::supportsOptions( const uno::Reference< deployment::XPa
return bOptions;
}
-//------------------------------------------------------------------------------
+
// XEventListener
void TheExtensionManager::disposing( lang::EventObject const & rEvt )
throw ( uno::RuntimeException )
@@ -435,7 +435,7 @@ void TheExtensionManager::disposing( lang::EventObject const & rEvt )
}
}
-//------------------------------------------------------------------------------
+
// XTerminateListener
void TheExtensionManager::queryTermination( ::lang::EventObject const & )
throw ( frame::TerminationVetoException, uno::RuntimeException )
@@ -458,14 +458,14 @@ void TheExtensionManager::queryTermination( ::lang::EventObject const & )
}
}
-//------------------------------------------------------------------------------
+
void TheExtensionManager::notifyTermination( ::lang::EventObject const & rEvt )
throw ( uno::RuntimeException )
{
disposing( rEvt );
}
-//------------------------------------------------------------------------------
+
// XModifyListener
void TheExtensionManager::modified( ::lang::EventObject const & /*rEvt*/ )
throw ( uno::RuntimeException )
@@ -475,7 +475,7 @@ void TheExtensionManager::modified( ::lang::EventObject const & /*rEvt*/ )
getDialogHelper()->checkEntries();
}
-//------------------------------------------------------------------------------
+
::rtl::Reference< TheExtensionManager > TheExtensionManager::get( const uno::Reference< uno::XComponentContext > &xContext,
const uno::Reference< awt::XWindow > &xParent,
const OUString & extensionURL )
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
index d91dd066c15c..d8839023e3a1 100644
--- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
@@ -160,7 +160,7 @@ struct UpdateDialog::SpecificError {
sal_uInt16 m_nID;
};
-//------------------------------------------------------------------------------
+
struct UpdateDialog::IgnoredUpdate {
OUString sExtensionID;
OUString sVersion;
@@ -169,14 +169,14 @@ struct UpdateDialog::IgnoredUpdate {
IgnoredUpdate( const OUString &rExtensionID, const OUString &rVersion );
};
-//------------------------------------------------------------------------------
+
UpdateDialog::IgnoredUpdate::IgnoredUpdate( const OUString &rExtensionID, const OUString &rVersion ):
sExtensionID( rExtensionID ),
sVersion( rVersion ),
bRemoved( false )
{}
-//------------------------------------------------------------------------------
+
struct UpdateDialog::Index
{
Kind m_eKind;
@@ -188,7 +188,7 @@ struct UpdateDialog::Index
Index( Kind theKind, sal_uInt16 nID, sal_uInt16 nIndex, const OUString &rName );
};
-//------------------------------------------------------------------------------
+
UpdateDialog::Index::Index( Kind theKind, sal_uInt16 nID, sal_uInt16 nIndex, const OUString &rName ):
m_eKind( theKind ),
m_bIgnored( false ),
@@ -197,9 +197,9 @@ UpdateDialog::Index::Index( Kind theKind, sal_uInt16 nID, sal_uInt16 nIndex, con
m_aName( rName )
{}
-//------------------------------------------------------------------------------
-//------------------------------------------------------------------------------
-//------------------------------------------------------------------------------
+
+
+
class UpdateDialog::Thread: public salhelper::Thread {
public:
Thread(
@@ -562,7 +562,7 @@ UpdateDialog::UpdateDialog(
getIgnoredUpdates();
}
-//------------------------------------------------------------------------------
+
UpdateDialog::~UpdateDialog()
{
storeIgnoredUpdates();
@@ -577,7 +577,7 @@ UpdateDialog::~UpdateDialog()
}
}
-//------------------------------------------------------------------------------
+
bool UpdateDialog::Close() {
m_thread->stop();
return ModalDialog::Close();
@@ -589,9 +589,9 @@ short UpdateDialog::Execute() {
return ModalDialog::Execute();
}
-//------------------------------------------------------------------------------
-//------------------------------------------------------------------------------
-//------------------------------------------------------------------------------
+
+
+
UpdateDialog::CheckListBox::CheckListBox( UpdateDialog & dialog, ResId const & resource,
Image const & normalStaticImage ):
SvxCheckListBox( &dialog, resource, normalStaticImage ),
@@ -601,17 +601,17 @@ UpdateDialog::CheckListBox::CheckListBox( UpdateDialog & dialog, ResId const & r
m_dialog(dialog)
{}
-//------------------------------------------------------------------------------
+
UpdateDialog::CheckListBox::~CheckListBox() {}
-//------------------------------------------------------------------------------
+
sal_uInt16 UpdateDialog::CheckListBox::getItemCount() const {
sal_uLong i = GetEntryCount();
OSL_ASSERT(i <= std::numeric_limits< sal_uInt16 >::max());
return sal::static_int_cast< sal_uInt16 >(i);
}
-//------------------------------------------------------------------------------
+
void UpdateDialog::CheckListBox::MouseButtonDown( MouseEvent const & event )
{
// When clicking on a selected entry in an SvxCheckListBox, the entry's
@@ -626,7 +626,7 @@ void UpdateDialog::CheckListBox::MouseButtonDown( MouseEvent const & event )
m_dialog.enableOk();
}
-//------------------------------------------------------------------------------
+
void UpdateDialog::CheckListBox::MouseButtonUp(MouseEvent const & event) {
// When clicking on an entry's checkbox in an SvxCheckListBox, the entry's
// checkbox is toggled on mouse button up:
@@ -639,7 +639,7 @@ void UpdateDialog::CheckListBox::KeyInput(KeyEvent const & event) {
m_dialog.enableOk();
}
-//------------------------------------------------------------------------------
+
void UpdateDialog::CheckListBox::handlePopupMenu( const Point &rPos )
{
SvTreeListEntry *pData = GetEntry( rPos );
@@ -690,9 +690,9 @@ void UpdateDialog::CheckListBox::handlePopupMenu( const Point &rPos )
}
}
-//------------------------------------------------------------------------------
-//------------------------------------------------------------------------------
-//------------------------------------------------------------------------------
+
+
+
sal_uInt16 UpdateDialog::insertItem( UpdateDialog::Index *pEntry, SvLBoxButtonKind kind )
{
m_updates.InsertEntry( pEntry->m_aName, LISTBOX_APPEND, static_cast< void * >( pEntry ), kind );
@@ -708,7 +708,7 @@ sal_uInt16 UpdateDialog::insertItem( UpdateDialog::Index *pEntry, SvLBoxButtonKi
return 0;
}
-//------------------------------------------------------------------------------
+
void UpdateDialog::addAdditional( UpdateDialog::Index * index, SvLBoxButtonKind kind )
{
m_all.Enable();
@@ -722,7 +722,7 @@ void UpdateDialog::addAdditional( UpdateDialog::Index * index, SvLBoxButtonKind
}
}
-//------------------------------------------------------------------------------
+
void UpdateDialog::addEnabledUpdate( OUString const & name,
dp_gui::UpdateData & data )
{
@@ -749,7 +749,7 @@ void UpdateDialog::addEnabledUpdate( OUString const & name,
m_descriptions.Enable();
}
-//------------------------------------------------------------------------------
+
void UpdateDialog::addDisabledUpdate( UpdateDialog::DisabledUpdate & data )
{
sal_uInt16 nIndex = sal::static_int_cast< sal_uInt16 >( m_disabledUpdates.size() );
@@ -765,7 +765,7 @@ void UpdateDialog::addDisabledUpdate( UpdateDialog::DisabledUpdate & data )
addAdditional( pEntry, SvLBoxButtonKind_disabledCheckbox );
}
-//------------------------------------------------------------------------------
+
void UpdateDialog::addSpecificError( UpdateDialog::SpecificError & data )
{
sal_uInt16 nIndex = sal::static_int_cast< sal_uInt16 >( m_specificErrors.size() );
@@ -1045,7 +1045,7 @@ bool UpdateDialog::showDescription( const OUString& rDescription, bool bWithPubl
return true;
}
-//------------------------------------------------------------------------------
+
void UpdateDialog::getIgnoredUpdates()
{
uno::Reference< lang::XMultiServiceFactory > xConfig(
@@ -1069,7 +1069,7 @@ void UpdateDialog::getIgnoredUpdates()
}
}
-//------------------------------------------------------------------------------
+
void UpdateDialog::storeIgnoredUpdates()
{
if ( m_bModified && ( !m_ignoredUpdates.empty() ) )
@@ -1108,7 +1108,7 @@ void UpdateDialog::storeIgnoredUpdates()
m_bModified = false;
}
-//------------------------------------------------------------------------------
+
bool UpdateDialog::isIgnoredUpdate( UpdateDialog::Index * index )
{
bool bIsIgnored = false;
@@ -1153,7 +1153,7 @@ bool UpdateDialog::isIgnoredUpdate( UpdateDialog::Index * index )
return bIsIgnored;
}
-//------------------------------------------------------------------------------
+
void UpdateDialog::setIgnoredUpdate( UpdateDialog::Index *pIndex, bool bIgnore, bool bIgnoreAll )
{
OUString aExtensionID;
@@ -1200,7 +1200,7 @@ void UpdateDialog::setIgnoredUpdate( UpdateDialog::Index *pIndex, bool bIgnore,
}
}
-//------------------------------------------------------------------------------
+
IMPL_LINK_NOARG(UpdateDialog, selectionHandler)
{
diff --git a/desktop/source/deployment/gui/license_dialog.cxx b/desktop/source/deployment/gui/license_dialog.cxx
index a0c3c18548c1..9a63b1e97dc7 100644
--- a/desktop/source/deployment/gui/license_dialog.cxx
+++ b/desktop/source/deployment/gui/license_dialog.cxx
@@ -294,13 +294,13 @@ LicenseDialog::LicenseDialog( Sequence<Any> const& args,
}
// XExecutableDialog
-//______________________________________________________________________________
+
void LicenseDialog::setTitle( OUString const & ) throw (RuntimeException)
{
}
-//______________________________________________________________________________
+
sal_Int16 LicenseDialog::execute() throw (RuntimeException)
{
return vcl::solarthread::syncExecute(
diff --git a/desktop/source/deployment/manager/dp_commandenvironments.cxx b/desktop/source/deployment/manager/dp_commandenvironments.cxx
index a57c531d82c6..4b328bf2fdaf 100644
--- a/desktop/source/deployment/manager/dp_commandenvironments.cxx
+++ b/desktop/source/deployment/manager/dp_commandenvironments.cxx
@@ -53,14 +53,14 @@ BaseCommandEnv::~BaseCommandEnv()
{
}
// XCommandEnvironment
-//______________________________________________________________________________
+
Reference<task::XInteractionHandler> BaseCommandEnv::getInteractionHandler()
throw (uno::RuntimeException)
{
return this;
}
-//______________________________________________________________________________
+
Reference<ucb::XProgressHandler> BaseCommandEnv::getProgressHandler()
throw (uno::RuntimeException)
{
diff --git a/desktop/source/deployment/manager/dp_extensionmanager.cxx b/desktop/source/deployment/manager/dp_extensionmanager.cxx
index d900b2d5ba59..7f52de4726ec 100644
--- a/desktop/source/deployment/manager/dp_extensionmanager.cxx
+++ b/desktop/source/deployment/manager/dp_extensionmanager.cxx
@@ -161,7 +161,7 @@ ExtensionRemoveGuard::~ExtensionRemoveGuard()
namespace dp_manager {
-//------------------------------------------------------------------------------
+
//ToDo: bundled extension
ExtensionManager::ExtensionManager( Reference< uno::XComponentContext > const& xContext) :
@@ -176,7 +176,7 @@ ExtensionManager::ExtensionManager( Reference< uno::XComponentContext > const& x
m_repositoryNames.push_back("bundled");
}
-//------------------------------------------------------------------------------
+
ExtensionManager::~ExtensionManager()
{
@@ -1452,7 +1452,7 @@ sal_Bool ExtensionManager::isReadOnlyRepository(OUString const & repository)
{
return getPackageManager(repository)->isReadOnly();
}
-//------------------------------------------------------------------------------
+
namespace sdecl = comphelper::service_decl;
sdecl::class_<ExtensionManager> servicePIP;
@@ -1463,7 +1463,7 @@ extern sdecl::ServiceDecl const serviceDecl(
"com.sun.star.comp.deployment.ExtensionManager");
// XModifyBroadcaster
-//______________________________________________________________________________
+
void ExtensionManager::addModifyListener(
Reference<util::XModifyListener> const & xListener )
throw (uno::RuntimeException)
@@ -1472,7 +1472,7 @@ void ExtensionManager::addModifyListener(
rBHelper.addListener( ::getCppuType( &xListener ), xListener );
}
-//______________________________________________________________________________
+
void ExtensionManager::removeModifyListener(
Reference<util::XModifyListener> const & xListener )
throw (uno::RuntimeException)
diff --git a/desktop/source/deployment/manager/dp_informationprovider.cxx b/desktop/source/deployment/manager/dp_informationprovider.cxx
index f6f71643c21a..66fd651ca185 100644
--- a/desktop/source/deployment/manager/dp_informationprovider.cxx
+++ b/desktop/source/deployment/manager/dp_informationprovider.cxx
@@ -74,7 +74,7 @@ class PackageInformationProvider :
throw ( uno::RuntimeException );
virtual uno::Sequence< uno::Sequence< OUString > > SAL_CALL getExtensionList()
throw ( uno::RuntimeException );
-//---------
+
private:
uno::Reference< uno::XComponentContext> mxContext;
@@ -85,7 +85,7 @@ private:
uno::Reference< deployment::XUpdateInformationProvider > mxUpdateInformation;
};
-//------------------------------------------------------------------------------
+
PackageInformationProvider::PackageInformationProvider( uno::Reference< uno::XComponentContext > const& xContext) :
mxContext( xContext ),
@@ -93,13 +93,13 @@ PackageInformationProvider::PackageInformationProvider( uno::Reference< uno::XCo
{
}
-//------------------------------------------------------------------------------
+
PackageInformationProvider::~PackageInformationProvider()
{
}
-//------------------------------------------------------------------------------
+
OUString PackageInformationProvider::getPackageLocation(
const OUString & repository,
const OUString& _rExtensionId )
@@ -134,7 +134,7 @@ OUString PackageInformationProvider::getPackageLocation(
return aLocationURL;
}
-//------------------------------------------------------------------------------
+
OUString SAL_CALL
PackageInformationProvider::getPackageLocation( const OUString& _sExtensionId )
@@ -158,7 +158,7 @@ PackageInformationProvider::getPackageLocation( const OUString& _sExtensionId )
return aLocationURL;
}
-//------------------------------------------------------------------------------
+
uno::Sequence< uno::Sequence< OUString > > SAL_CALL
PackageInformationProvider::isUpdateAvailable( const OUString& _sExtensionId )
@@ -271,7 +271,7 @@ PackageInformationProvider::isUpdateAvailable( const OUString& _sExtensionId )
return aList;
}
-//------------------------------------------------------------------------------
+
uno::Sequence< uno::Sequence< OUString > > SAL_CALL PackageInformationProvider::getExtensionList()
throw ( uno::RuntimeException )
{
@@ -318,7 +318,7 @@ uno::Sequence< uno::Sequence< OUString > > SAL_CALL PackageInformationProvider::
}
-//------------------------------------------------------------------------------
+
namespace sdecl = comphelper::service_decl;
sdecl::class_<PackageInformationProvider> servicePIP;
diff --git a/desktop/source/deployment/manager/dp_manager.cxx b/desktop/source/deployment/manager/dp_manager.cxx
index 3bc0c7895979..e1d6effae671 100644
--- a/desktop/source/deployment/manager/dp_manager.cxx
+++ b/desktop/source/deployment/manager/dp_manager.cxx
@@ -108,7 +108,7 @@ OUString getExtensionFolder(OUString const & parentFolder,
return title;
}
}
-//______________________________________________________________________________
+
void PackageManagerImpl::initActivationLayer(
Reference<XCommandEnvironment> const & xCmdEnv )
{
@@ -280,7 +280,7 @@ void PackageManagerImpl::initActivationLayer(
}
}
-//______________________________________________________________________________
+
void PackageManagerImpl::initRegistryBackends()
{
if (!m_registryCache.isEmpty())
@@ -326,7 +326,7 @@ static bool isMacroURLReadOnly( const OUString &rMacro )
return bError;
}
-//______________________________________________________________________________
+
Reference<deployment::XPackageManager> PackageManagerImpl::create(
Reference<XComponentContext> const & xComponentContext,
OUString const & context )
@@ -430,12 +430,12 @@ Reference<deployment::XPackageManager> PackageManagerImpl::create(
}
}
-//______________________________________________________________________________
+
PackageManagerImpl::~PackageManagerImpl()
{
}
-//______________________________________________________________________________
+
void PackageManagerImpl::fireModified()
{
::cppu::OInterfaceContainerHelper * pContainer = rBHelper.getContainer(
@@ -447,7 +447,7 @@ void PackageManagerImpl::fireModified()
}
}
-//______________________________________________________________________________
+
void PackageManagerImpl::disposing()
{
try {
@@ -475,7 +475,7 @@ void PackageManagerImpl::disposing()
}
// XComponent
-//______________________________________________________________________________
+
void PackageManagerImpl::dispose() throw (RuntimeException)
{
//Do not call check here. We must not throw an exception here if the object
@@ -483,7 +483,7 @@ void PackageManagerImpl::dispose() throw (RuntimeException)
WeakComponentImplHelperBase::dispose();
}
-//______________________________________________________________________________
+
void PackageManagerImpl::addEventListener(
Reference<lang::XEventListener> const & xListener ) throw (RuntimeException)
{
@@ -492,7 +492,7 @@ void PackageManagerImpl::addEventListener(
WeakComponentImplHelperBase::addEventListener( xListener );
}
-//______________________________________________________________________________
+
void PackageManagerImpl::removeEventListener(
Reference<lang::XEventListener> const & xListener ) throw (RuntimeException)
{
@@ -502,14 +502,14 @@ void PackageManagerImpl::removeEventListener(
}
// XPackageManager
-//______________________________________________________________________________
+
OUString PackageManagerImpl::getContext() throw (RuntimeException)
{
check();
return m_context;
}
-//______________________________________________________________________________
+
Sequence< Reference<deployment::XPackageTypeInfo> >
PackageManagerImpl::getSupportedPackageTypes() throw (RuntimeException)
{
@@ -517,7 +517,7 @@ PackageManagerImpl::getSupportedPackageTypes() throw (RuntimeException)
return m_xRegistry->getSupportedPackageTypes();
}
-//______________________________________________________________________________
+
Reference<task::XAbortChannel> PackageManagerImpl::createAbortChannel()
throw (RuntimeException)
{
@@ -526,7 +526,7 @@ Reference<task::XAbortChannel> PackageManagerImpl::createAbortChannel()
}
// XModifyBroadcaster
-//______________________________________________________________________________
+
void PackageManagerImpl::addModifyListener(
Reference<util::XModifyListener> const & xListener )
throw (RuntimeException)
@@ -535,7 +535,7 @@ void PackageManagerImpl::addModifyListener(
rBHelper.addListener( ::getCppuType( &xListener ), xListener );
}
-//______________________________________________________________________________
+
void PackageManagerImpl::removeModifyListener(
Reference<util::XModifyListener> const & xListener )
throw (RuntimeException)
@@ -544,7 +544,7 @@ void PackageManagerImpl::removeModifyListener(
rBHelper.removeListener( ::getCppuType( &xListener ), xListener );
}
-//______________________________________________________________________________
+
OUString PackageManagerImpl::detectMediaType(
::ucbhelper::Content const & ucbContent_, bool throw_exc )
{
@@ -583,7 +583,7 @@ OUString PackageManagerImpl::detectMediaType(
return mediaType;
}
-//______________________________________________________________________________
+
OUString PackageManagerImpl::insertToActivationLayer(
Sequence<beans::NamedValue> const & properties,
OUString const & mediaType, ::ucbhelper::Content const & sourceContent_,
@@ -652,7 +652,7 @@ OUString PackageManagerImpl::insertToActivationLayer(
return destFolder;
}
-//______________________________________________________________________________
+
void PackageManagerImpl::insertToActivationLayerDB(
OUString const & id, ActivePackages::Data const & dbData )
{
@@ -661,7 +661,7 @@ void PackageManagerImpl::insertToActivationLayerDB(
m_activePackagesDB->put( id, dbData );
}
-//______________________________________________________________________________
+
/* The function returns true if there is an extension with the same id already
installed which needs to be uninstalled, before the new extension can be installed.
*/
@@ -679,7 +679,7 @@ bool PackageManagerImpl::isInstalled(
}
// XPackageManager
-//______________________________________________________________________________
+
Reference<deployment::XPackage> PackageManagerImpl::importExtension(
Reference<deployment::XPackage> const & extension,
Reference<task::XAbortChannel> const & xAbortChannel,
@@ -850,7 +850,7 @@ void PackageManagerImpl::deletePackageFromCache(
false /* no throw: ignore errors */ );
}
-//______________________________________________________________________________
+
void PackageManagerImpl::removePackage(
OUString const & id, OUString const & fileName,
Reference<task::XAbortChannel> const & /*xAbortChannel*/,
@@ -938,7 +938,7 @@ void PackageManagerImpl::removePackage(
}
}
-//______________________________________________________________________________
+
OUString PackageManagerImpl::getDeployPath( ActivePackages::Data const & data )
{
OUStringBuffer buf;
@@ -956,7 +956,7 @@ OUString PackageManagerImpl::getDeployPath( ActivePackages::Data const & data )
return makeURL( m_activePackages, buf.makeStringAndClear() );
}
-//______________________________________________________________________________
+
Reference<deployment::XPackage> PackageManagerImpl::getDeployedPackage_(
OUString const & id, OUString const & fileName,
Reference<XCommandEnvironment> const & xCmdEnv )
@@ -971,7 +971,7 @@ Reference<deployment::XPackage> PackageManagerImpl::getDeployedPackage_(
static_cast<OWeakObject *>(this), static_cast<sal_Int16>(-1) );
}
-//______________________________________________________________________________
+
Reference<deployment::XPackage> PackageManagerImpl::getDeployedPackage_(
OUString const & id, ActivePackages::Data const & data,
Reference<XCommandEnvironment> const & xCmdEnv, bool ignoreAlienPlatforms )
@@ -1009,7 +1009,7 @@ Reference<deployment::XPackage> PackageManagerImpl::getDeployedPackage_(
return xExtension;
}
-//______________________________________________________________________________
+
Sequence< Reference<deployment::XPackage> >
PackageManagerImpl::getDeployedPackages_(
Reference<XCommandEnvironment> const & xCmdEnv )
@@ -1045,7 +1045,7 @@ PackageManagerImpl::getDeployedPackages_(
return comphelper::containerToSequence(packages);
}
-//______________________________________________________________________________
+
Reference<deployment::XPackage> PackageManagerImpl::getDeployedPackage(
OUString const & id, OUString const & fileName,
Reference<XCommandEnvironment> const & xCmdEnv_ )
@@ -1088,7 +1088,7 @@ Reference<deployment::XPackage> PackageManagerImpl::getDeployedPackage(
}
}
-//______________________________________________________________________________
+
Sequence< Reference<deployment::XPackage> >
PackageManagerImpl::getDeployedPackages(
Reference<task::XAbortChannel> const &,
@@ -1133,7 +1133,7 @@ PackageManagerImpl::getDeployedPackages(
}
}
-//______________________________________________________________________________
+
//ToDo: the function must not call registerPackage, do this in
@@ -1562,12 +1562,12 @@ sal_Int32 PackageManagerImpl::checkPrerequisites(
}
-//______________________________________________________________________________
+
PackageManagerImpl::CmdEnvWrapperImpl::~CmdEnvWrapperImpl()
{
}
-//______________________________________________________________________________
+
PackageManagerImpl::CmdEnvWrapperImpl::CmdEnvWrapperImpl(
Reference<XCommandEnvironment> const & xUserCmdEnv,
Reference<XProgressHandler> const & xLogFile )
@@ -1580,7 +1580,7 @@ PackageManagerImpl::CmdEnvWrapperImpl::CmdEnvWrapperImpl(
}
// XCommandEnvironment
-//______________________________________________________________________________
+
Reference<task::XInteractionHandler>
PackageManagerImpl::CmdEnvWrapperImpl::getInteractionHandler()
throw (RuntimeException)
@@ -1588,7 +1588,7 @@ PackageManagerImpl::CmdEnvWrapperImpl::getInteractionHandler()
return m_xUserInteractionHandler;
}
-//______________________________________________________________________________
+
Reference<XProgressHandler>
PackageManagerImpl::CmdEnvWrapperImpl::getProgressHandler()
throw (RuntimeException)
@@ -1597,7 +1597,7 @@ PackageManagerImpl::CmdEnvWrapperImpl::getProgressHandler()
}
// XProgressHandler
-//______________________________________________________________________________
+
void PackageManagerImpl::CmdEnvWrapperImpl::push( Any const & Status )
throw (RuntimeException)
{
@@ -1607,7 +1607,7 @@ void PackageManagerImpl::CmdEnvWrapperImpl::push( Any const & Status )
m_xUserProgress->push( Status );
}
-//______________________________________________________________________________
+
void PackageManagerImpl::CmdEnvWrapperImpl::update( Any const & Status )
throw (RuntimeException)
{
@@ -1617,7 +1617,7 @@ void PackageManagerImpl::CmdEnvWrapperImpl::update( Any const & Status )
m_xUserProgress->update( Status );
}
-//______________________________________________________________________________
+
void PackageManagerImpl::CmdEnvWrapperImpl::pop() throw (RuntimeException)
{
if (m_xLogFile.is())
diff --git a/desktop/source/deployment/manager/dp_managerfac.cxx b/desktop/source/deployment/manager/dp_managerfac.cxx
index e2d1259fd3cc..e23dba62a555 100644
--- a/desktop/source/deployment/manager/dp_managerfac.cxx
+++ b/desktop/source/deployment/manager/dp_managerfac.cxx
@@ -74,7 +74,7 @@ extern sdecl::ServiceDecl const serviceDecl(
"com.sun.star.comp.deployment.PackageManagerFactory",
"com.sun.star.comp.deployment.PackageManagerFactory" );
-//______________________________________________________________________________
+
PackageManagerFactoryImpl::PackageManagerFactoryImpl(
Reference<XComponentContext> const & xComponentContext )
: t_pmfac_helper( getMutex() ),
@@ -82,12 +82,12 @@ PackageManagerFactoryImpl::PackageManagerFactoryImpl(
{
}
-//______________________________________________________________________________
+
PackageManagerFactoryImpl::~PackageManagerFactoryImpl()
{
}
-//______________________________________________________________________________
+
inline void PackageManagerFactoryImpl::check()
{
::osl::MutexGuard guard( getMutex() );
@@ -99,7 +99,7 @@ inline void PackageManagerFactoryImpl::check()
}
}
-//______________________________________________________________________________
+
void PackageManagerFactoryImpl::disposing()
{
// dispose all managers:
@@ -118,7 +118,7 @@ void PackageManagerFactoryImpl::disposing()
}
// XPackageManagerFactory
-//______________________________________________________________________________
+
Reference<deployment::XPackageManager>
PackageManagerFactoryImpl::getPackageManager( OUString const & context )
throw (RuntimeException)
diff --git a/desktop/source/deployment/misc/dp_interact.cxx b/desktop/source/deployment/misc/dp_interact.cxx
index f25165e4eff4..92c4cf97eed2 100644
--- a/desktop/source/deployment/misc/dp_interact.cxx
+++ b/desktop/source/deployment/misc/dp_interact.cxx
@@ -58,19 +58,19 @@ public:
};
// XInterface
-//______________________________________________________________________________
+
void InteractionContinuationImpl::acquire() throw ()
{
OWeakObject::acquire();
}
-//______________________________________________________________________________
+
void InteractionContinuationImpl::release() throw ()
{
OWeakObject::release();
}
-//______________________________________________________________________________
+
Any InteractionContinuationImpl::queryInterface( Type const & type )
throw (RuntimeException)
{
@@ -83,7 +83,7 @@ Any InteractionContinuationImpl::queryInterface( Type const & type )
}
// XInteractionContinuation
-//______________________________________________________________________________
+
void InteractionContinuationImpl::select() throw (RuntimeException)
{
*m_pselect = true;
@@ -112,13 +112,13 @@ public:
};
// XInteractionRequest
-//______________________________________________________________________________
+
Any InteractionRequest::getRequest() throw (RuntimeException)
{
return m_request;
}
-//______________________________________________________________________________
+
Sequence< Reference< task::XInteractionContinuation > >
InteractionRequest::getContinuations() throw (RuntimeException)
{
@@ -162,7 +162,7 @@ bool interactContinuation( Any const & request,
}
// XAbortChannel
-//______________________________________________________________________________
+
void AbortChannel::sendAbort() throw (RuntimeException)
{
m_aborted = true;
diff --git a/desktop/source/deployment/registry/component/dp_component.cxx b/desktop/source/deployment/registry/component/dp_component.cxx
index f148d4cfbb0c..f79aeb1f8461 100644
--- a/desktop/source/deployment/registry/component/dp_component.cxx
+++ b/desktop/source/deployment/registry/component/dp_component.cxx
@@ -335,7 +335,7 @@ public:
void initServiceRdbFiles();
};
-//______________________________________________________________________________
+
BackendImpl::ComponentPackageImpl::ComponentPackageImpl(
::rtl::Reference<PackageRegistryBackend> const & myBackend,
@@ -389,19 +389,19 @@ BackendImpl * BackendImpl::ComponentPackageImpl::getMyBackend() const
}
-//______________________________________________________________________________
+
void BackendImpl::ComponentPackageImpl::disposing()
{
Package::disposing();
}
-//______________________________________________________________________________
+
void BackendImpl::TypelibraryPackageImpl::disposing()
{
Package::disposing();
}
-//______________________________________________________________________________
+
void BackendImpl::disposing()
{
try {
@@ -599,7 +599,7 @@ void BackendImpl::revokeEntryFromDb(OUString const & url)
}
// XPackageRegistry
-//______________________________________________________________________________
+
Sequence< Reference<deployment::XPackageTypeInfo> >
BackendImpl::getSupportedPackageTypes() throw (RuntimeException)
{
@@ -615,7 +615,7 @@ void BackendImpl::packageRemoved(OUString const & url, OUString const & /*mediaT
}
// PackageRegistryBackend
-//______________________________________________________________________________
+
Reference<deployment::XPackage> BackendImpl::bindPackage_(
OUString const & url, OUString const & mediaType_,
sal_Bool bRemoved, OUString const & identifier,
@@ -746,7 +746,7 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_(
}
-//______________________________________________________________________________
+
void BackendImpl::unorc_verify_init(
Reference<XCommandEnvironment> const & xCmdEnv )
{
@@ -866,7 +866,7 @@ void BackendImpl::unorc_verify_init(
}
}
-//______________________________________________________________________________
+
void BackendImpl::unorc_flush( Reference<XCommandEnvironment> const & xCmdEnv )
{
if (transientMode())
@@ -990,7 +990,7 @@ void BackendImpl::unorc_flush( Reference<XCommandEnvironment> const & xCmdEnv )
m_unorc_modified = false;
}
-//______________________________________________________________________________
+
bool BackendImpl::addToUnoRc( RcItem kind, OUString const & url_,
Reference<XCommandEnvironment> const & xCmdEnv )
{
@@ -1009,7 +1009,7 @@ bool BackendImpl::addToUnoRc( RcItem kind, OUString const & url_,
return false;
}
-//______________________________________________________________________________
+
bool BackendImpl::removeFromUnoRc(
RcItem kind, OUString const & url_,
Reference<XCommandEnvironment> const & xCmdEnv )
@@ -1024,7 +1024,7 @@ bool BackendImpl::removeFromUnoRc(
return true;
}
-//______________________________________________________________________________
+
bool BackendImpl::hasInUnoRc(
RcItem kind, OUString const & url_ )
{
@@ -1043,14 +1043,14 @@ css::uno::Reference< css::uno::XComponentContext > BackendImpl::getRootContext()
return rootContext.is() ? rootContext : getComponentContext();
}
-//______________________________________________________________________________
+
void BackendImpl::releaseObject( OUString const & id )
{
const ::osl::MutexGuard guard( getMutex() );
m_backendObjects.erase( id );
}
-//______________________________________________________________________________
+
Reference<XInterface> BackendImpl::getObject( OUString const & id )
{
const ::osl::MutexGuard guard( getMutex() );
@@ -1061,7 +1061,7 @@ Reference<XInterface> BackendImpl::getObject( OUString const & id )
return iFind->second;
}
-//______________________________________________________________________________
+
Reference<XInterface> BackendImpl::insertObject(
OUString const & id, Reference<XInterface> const & xObject )
{
@@ -1072,7 +1072,7 @@ Reference<XInterface> BackendImpl::insertObject(
return insertion.first->second;
}
-//------------------------------------------------------------------------------
+
Reference<XComponentContext> raise_uno_process(
Reference<XComponentContext> const & xContext,
::rtl::Reference<AbortChannel> const & abortChannel )
@@ -1123,7 +1123,7 @@ Reference<XComponentContext> raise_uno_process(
}
}
-//------------------------------------------------------------------------------
+
namespace {
void extractComponentData(
@@ -1294,7 +1294,7 @@ void BackendImpl::ComponentPackageImpl::componentLiveRemoval(
}
// Package
-//______________________________________________________________________________
+
//We could use here BackendImpl::hasActiveEntry. However, this check is just as well.
//And it also shows the problem if another extension has overwritten an implementation
//entry, because it contains the same service implementation
@@ -1375,7 +1375,7 @@ BackendImpl::ComponentPackageImpl::isRegistered_(
m_registered == REG_REGISTERED, bAmbiguous) );
}
-//______________________________________________________________________________
+
void BackendImpl::ComponentPackageImpl::processPackage_(
::osl::ResettableMutexGuard &,
bool doRegisterPackage,
@@ -1488,7 +1488,7 @@ BackendImpl * BackendImpl::TypelibraryPackageImpl::getMyBackend() const
}
return pBackend;
}
-//______________________________________________________________________________
+
beans::Optional< beans::Ambiguous<sal_Bool> >
BackendImpl::TypelibraryPackageImpl::isRegistered_(
::osl::ResettableMutexGuard &,
@@ -1504,7 +1504,7 @@ BackendImpl::TypelibraryPackageImpl::isRegistered_(
false /* IsAmbiguous */ ) );
}
-//______________________________________________________________________________
+
void BackendImpl::TypelibraryPackageImpl::processPackage_(
::osl::ResettableMutexGuard &,
bool doRegisterPackage,
diff --git a/desktop/source/deployment/registry/configuration/dp_configuration.cxx b/desktop/source/deployment/registry/configuration/dp_configuration.cxx
index d3bee88724a9..a133cb5e2b3a 100644
--- a/desktop/source/deployment/registry/configuration/dp_configuration.cxx
+++ b/desktop/source/deployment/registry/configuration/dp_configuration.cxx
@@ -155,7 +155,7 @@ public:
using PackageRegistryBackend::disposing;
};
-//______________________________________________________________________________
+
void BackendImpl::disposing()
{
try {
@@ -174,7 +174,7 @@ void BackendImpl::disposing()
}
}
-//______________________________________________________________________________
+
BackendImpl::BackendImpl(
Sequence<Any> const & args,
Reference<XComponentContext> const & xComponentContext )
@@ -284,7 +284,7 @@ bool BackendImpl::activateEntry(OUString const & url)
// XPackageRegistry
-//______________________________________________________________________________
+
Sequence< Reference<deployment::XPackageTypeInfo> >
BackendImpl::getSupportedPackageTypes() throw (RuntimeException)
{
@@ -299,7 +299,7 @@ void BackendImpl::packageRemoved(OUString const & url, OUString const & /*mediaT
}
// PackageRegistryBackend
-//______________________________________________________________________________
+
Reference<deployment::XPackage> BackendImpl::bindPackage_(
OUString const & url, OUString const & mediaType_,
sal_Bool bRemoved, OUString const & identifier,
@@ -360,7 +360,7 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_(
}
-//______________________________________________________________________________
+
void BackendImpl::configmgrini_verify_init(
Reference<XCommandEnvironment> const & xCmdEnv )
{
@@ -417,7 +417,7 @@ void BackendImpl::configmgrini_verify_init(
}
}
-//______________________________________________________________________________
+
void BackendImpl::configmgrini_flush(
Reference<XCommandEnvironment> const & xCmdEnv )
{
@@ -473,7 +473,7 @@ void BackendImpl::configmgrini_flush(
m_configmgrini_modified = false;
}
-//______________________________________________________________________________
+
bool BackendImpl::addToConfigmgrIni( bool isSchema, bool isURL, OUString const & url_,
Reference<XCommandEnvironment> const & xCmdEnv )
{
@@ -492,7 +492,7 @@ bool BackendImpl::addToConfigmgrIni( bool isSchema, bool isURL, OUString const &
return false;
}
-//______________________________________________________________________________
+
bool BackendImpl::removeFromConfigmgrIni(
bool isSchema, OUString const & url_,
Reference<XCommandEnvironment> const & xCmdEnv )
@@ -524,7 +524,7 @@ bool BackendImpl::removeFromConfigmgrIni(
// Package
-//______________________________________________________________________________
+
BackendImpl * BackendImpl::PackageImpl::getMyBackend() const
{
@@ -566,7 +566,7 @@ BackendImpl::PackageImpl::isRegistered_(
true, beans::Ambiguous<sal_Bool>( bReg, false ) );
}
-//------------------------------------------------------------------------------
+
OUString encodeForXml( OUString const & text )
{
// encode conforming xml:
@@ -599,7 +599,7 @@ OUString encodeForXml( OUString const & text )
return buf.makeStringAndClear();
}
-//______________________________________________________________________________
+
OUString replaceOrigin(
OUString const & url, OUString const & destFolder, Reference< XCommandEnvironment > const & xCmdEnv, Reference< XComponentContext > const & xContext, bool & out_replaced)
{
@@ -686,7 +686,7 @@ OUString replaceOrigin(
return newUrl;
}
-//______________________________________________________________________________
+
void BackendImpl::PackageImpl::processPackage_(
::osl::ResettableMutexGuard &,
bool doRegisterPackage,
diff --git a/desktop/source/deployment/registry/dp_backend.cxx b/desktop/source/deployment/registry/dp_backend.cxx
index 41daf4a15c1c..ad4a63d99ac6 100644
--- a/desktop/source/deployment/registry/dp_backend.cxx
+++ b/desktop/source/deployment/registry/dp_backend.cxx
@@ -50,12 +50,12 @@ using namespace ::com::sun::star::ucb;
namespace dp_registry {
namespace backend {
-//______________________________________________________________________________
+
PackageRegistryBackend::~PackageRegistryBackend()
{
}
-//______________________________________________________________________________
+
void PackageRegistryBackend::disposing( lang::EventObject const & event )
throw (RuntimeException)
{
@@ -69,7 +69,7 @@ void PackageRegistryBackend::disposing( lang::EventObject const & event )
}
}
-//______________________________________________________________________________
+
PackageRegistryBackend::PackageRegistryBackend(
Sequence<Any> const & args,
Reference<XComponentContext> const & xContext )
@@ -101,7 +101,7 @@ PackageRegistryBackend::PackageRegistryBackend(
m_eContext = CONTEXT_UNKNOWN;
}
-//______________________________________________________________________________
+
void PackageRegistryBackend::check()
{
::osl::MutexGuard guard( getMutex() );
@@ -112,7 +112,7 @@ void PackageRegistryBackend::check()
}
}
-//______________________________________________________________________________
+
void PackageRegistryBackend::disposing()
{
try {
@@ -134,7 +134,7 @@ void PackageRegistryBackend::disposing()
}
// XPackageRegistry
-//______________________________________________________________________________
+
Reference<deployment::XPackage> PackageRegistryBackend::bindPackage(
OUString const & url, OUString const & mediaType, sal_Bool bRemoved,
OUString const & identifier, Reference<XCommandEnvironment> const & xCmdEnv )
@@ -301,12 +301,12 @@ void PackageRegistryBackend::deleteUnusedFolders(
}
-//______________________________________________________________________________
+
Package::~Package()
{
}
-//______________________________________________________________________________
+
Package::Package( ::rtl::Reference<PackageRegistryBackend> const & myBackend,
OUString const & url,
OUString const & rName,
@@ -336,14 +336,14 @@ Package::Package( ::rtl::Reference<PackageRegistryBackend> const & myBackend,
}
}
-//______________________________________________________________________________
+
void Package::disposing()
{
m_myBackend.clear();
WeakComponentImplHelperBase::disposing();
}
-//______________________________________________________________________________
+
void Package::check() const
{
::osl::MutexGuard guard( getMutex() );
@@ -355,7 +355,7 @@ void Package::check() const
}
// XComponent
-//______________________________________________________________________________
+
void Package::dispose() throw (RuntimeException)
{
//Do not call check here. We must not throw an exception here if the object
@@ -363,7 +363,7 @@ void Package::dispose() throw (RuntimeException)
WeakComponentImplHelperBase::dispose();
}
-//______________________________________________________________________________
+
void Package::addEventListener(
Reference<lang::XEventListener> const & xListener ) throw (RuntimeException)
{
@@ -372,7 +372,7 @@ void Package::addEventListener(
WeakComponentImplHelperBase::addEventListener( xListener );
}
-//______________________________________________________________________________
+
void Package::removeEventListener(
Reference<lang::XEventListener> const & xListener ) throw (RuntimeException)
{
@@ -382,7 +382,7 @@ void Package::removeEventListener(
}
// XModifyBroadcaster
-//______________________________________________________________________________
+
void Package::addModifyListener(
Reference<util::XModifyListener> const & xListener )
throw (RuntimeException)
@@ -391,7 +391,7 @@ void Package::addModifyListener(
rBHelper.addListener( ::getCppuType( &xListener ), xListener );
}
-//______________________________________________________________________________
+
void Package::removeModifyListener(
Reference<util::XModifyListener> const & xListener )
throw (RuntimeException)
@@ -400,7 +400,7 @@ void Package::removeModifyListener(
rBHelper.removeListener( ::getCppuType( &xListener ), xListener );
}
-//______________________________________________________________________________
+
void Package::checkAborted(
::rtl::Reference<AbortChannel> const & abortChannel )
{
@@ -411,7 +411,7 @@ void Package::checkAborted(
}
// XPackage
-//______________________________________________________________________________
+
Reference<task::XAbortChannel> Package::createAbortChannel()
throw (RuntimeException)
{
@@ -419,13 +419,13 @@ Reference<task::XAbortChannel> Package::createAbortChannel()
return new AbortChannel;
}
-//______________________________________________________________________________
+
sal_Bool Package::isBundle() throw (RuntimeException)
{
return false; // default
}
-//______________________________________________________________________________
+
::sal_Int32 Package::checkPrerequisites(
const css::uno::Reference< css::task::XAbortChannel >&,
const css::uno::Reference< css::ucb::XCommandEnvironment >&,
@@ -441,7 +441,7 @@ sal_Bool Package::isBundle() throw (RuntimeException)
return 0;
}
-//______________________________________________________________________________
+
::sal_Bool Package::checkDependencies(
const css::uno::Reference< css::ucb::XCommandEnvironment >& )
throw (css::deployment::DeploymentException,
@@ -455,7 +455,7 @@ sal_Bool Package::isBundle() throw (RuntimeException)
}
-//______________________________________________________________________________
+
Sequence< Reference<deployment::XPackage> > Package::getBundle(
Reference<task::XAbortChannel> const &,
Reference<XCommandEnvironment> const & )
@@ -466,7 +466,7 @@ Sequence< Reference<deployment::XPackage> > Package::getBundle(
return Sequence< Reference<deployment::XPackage> >();
}
-//______________________________________________________________________________
+
OUString Package::getName() throw (RuntimeException)
{
return m_name;
@@ -480,7 +480,7 @@ beans::Optional<OUString> Package::getIdentifier() throw (RuntimeException)
return beans::Optional<OUString>();
}
-//______________________________________________________________________________
+
OUString Package::getVersion() throw (
deployment::ExtensionRemovedException,
RuntimeException)
@@ -490,13 +490,13 @@ OUString Package::getVersion() throw (
return OUString();
}
-//______________________________________________________________________________
+
OUString Package::getURL() throw (RuntimeException)
{
return m_url;
}
-//______________________________________________________________________________
+
OUString Package::getDisplayName() throw (
deployment::ExtensionRemovedException, RuntimeException)
{
@@ -505,7 +505,7 @@ OUString Package::getDisplayName() throw (
return m_displayName;
}
-//______________________________________________________________________________
+
OUString Package::getDescription() throw (
deployment::ExtensionRemovedException,RuntimeException)
{
@@ -514,7 +514,7 @@ OUString Package::getDescription() throw (
return OUString();
}
-//______________________________________________________________________________
+
OUString Package::getLicenseText() throw (
deployment::ExtensionRemovedException,RuntimeException)
{
@@ -523,7 +523,7 @@ OUString Package::getLicenseText() throw (
return OUString();
}
-//______________________________________________________________________________
+
Sequence<OUString> Package::getUpdateInformationURLs() throw (
deployment::ExtensionRemovedException, RuntimeException)
{
@@ -532,7 +532,7 @@ Sequence<OUString> Package::getUpdateInformationURLs() throw (
return Sequence<OUString>();
}
-//______________________________________________________________________________
+
css::beans::StringPair Package::getPublisherInfo() throw (
deployment::ExtensionRemovedException, RuntimeException)
{
@@ -542,7 +542,7 @@ css::beans::StringPair Package::getPublisherInfo() throw (
return aEmptyPair;
}
-//______________________________________________________________________________
+
uno::Reference< css::graphic::XGraphic > Package::getIcon( sal_Bool /*bHighContrast*/ )
throw (deployment::ExtensionRemovedException, RuntimeException )
{
@@ -553,14 +553,14 @@ uno::Reference< css::graphic::XGraphic > Package::getIcon( sal_Bool /*bHighContr
return aEmpty;
}
-//______________________________________________________________________________
+
Reference<deployment::XPackageTypeInfo> Package::getPackageType()
throw (RuntimeException)
{
return m_xPackageType;
}
-//______________________________________________________________________________
+
void Package::exportTo(
OUString const & destFolderURL, OUString const & newTitle,
sal_Int32 nameClashAction, Reference<XCommandEnvironment> const & xCmdEnv )
@@ -578,7 +578,7 @@ void Package::exportTo(
throw RuntimeException( "UCB transferContent() failed!", 0 );
}
-//______________________________________________________________________________
+
void Package::fireModified()
{
::cppu::OInterfaceContainerHelper * container = rBHelper.getContainer(
@@ -599,7 +599,7 @@ void Package::fireModified()
}
// XPackage
-//______________________________________________________________________________
+
beans::Optional< beans::Ambiguous<sal_Bool> > Package::isRegistered(
Reference<task::XAbortChannel> const & xAbortChannel,
Reference<XCommandEnvironment> const & xCmdEnv )
@@ -632,7 +632,7 @@ beans::Optional< beans::Ambiguous<sal_Bool> > Package::isRegistered(
}
}
-//______________________________________________________________________________
+
void Package::processPackage_impl(
bool doRegisterPackage,
bool startup,
@@ -710,7 +710,7 @@ void Package::processPackage_impl(
fireModified();
}
-//______________________________________________________________________________
+
void Package::registerPackage(
sal_Bool startup,
Reference<task::XAbortChannel> const & xAbortChannel,
@@ -725,7 +725,7 @@ void Package::registerPackage(
processPackage_impl( true /* register */, startup, xAbortChannel, xCmdEnv );
}
-//______________________________________________________________________________
+
void Package::revokePackage(
sal_Bool startup,
Reference<task::XAbortChannel> const & xAbortChannel,
@@ -775,39 +775,39 @@ sal_Bool Package::isRemoved()
}
-//______________________________________________________________________________
+
Package::TypeInfo::~TypeInfo()
{
}
// XPackageTypeInfo
-//______________________________________________________________________________
+
OUString Package::TypeInfo::getMediaType() throw (RuntimeException)
{
return m_mediaType;
}
-//______________________________________________________________________________
+
OUString Package::TypeInfo::getDescription()
throw (deployment::ExtensionRemovedException, RuntimeException)
{
return getShortDescription();
}
-//______________________________________________________________________________
+
OUString Package::TypeInfo::getShortDescription()
throw (deployment::ExtensionRemovedException, RuntimeException)
{
return m_shortDescr;
}
-//______________________________________________________________________________
+
OUString Package::TypeInfo::getFileFilter() throw (RuntimeException)
{
return m_fileFilter;
}
-//______________________________________________________________________________
+
/**************************
* Get Icon
*
diff --git a/desktop/source/deployment/registry/dp_registry.cxx b/desktop/source/deployment/registry/dp_registry.cxx
index cc1584865967..deeefa1cb2f3 100644
--- a/desktop/source/deployment/registry/dp_registry.cxx
+++ b/desktop/source/deployment/registry/dp_registry.cxx
@@ -129,7 +129,7 @@ public:
};
-//______________________________________________________________________________
+
inline void PackageRegistryImpl::check()
{
::osl::MutexGuard guard( getMutex() );
@@ -140,7 +140,7 @@ inline void PackageRegistryImpl::check()
}
}
-//______________________________________________________________________________
+
void PackageRegistryImpl::disposing()
{
// dispose all backends:
@@ -156,12 +156,12 @@ void PackageRegistryImpl::disposing()
t_helper::disposing();
}
-//______________________________________________________________________________
+
PackageRegistryImpl::~PackageRegistryImpl()
{
}
-//______________________________________________________________________________
+
OUString normalizeMediaType( OUString const & mediaType )
{
OUStringBuffer buf;
@@ -175,7 +175,7 @@ OUString normalizeMediaType( OUString const & mediaType )
return buf.makeStringAndClear();
}
-//______________________________________________________________________________
+
void PackageRegistryImpl::packageRemoved(
OUString const & url, OUString const & mediaType)
@@ -294,7 +294,7 @@ void PackageRegistryImpl::insertBackend(
}
}
-//______________________________________________________________________________
+
Reference<deployment::XPackageRegistry> PackageRegistryImpl::create(
OUString const & context,
OUString const & cachePath, bool readOnly,
@@ -443,7 +443,7 @@ Reference<deployment::XPackageRegistry> PackageRegistryImpl::create(
}
// XUpdatable: broadcast to backends
-//______________________________________________________________________________
+
void PackageRegistryImpl::update() throw (RuntimeException)
{
check();
@@ -457,7 +457,7 @@ void PackageRegistryImpl::update() throw (RuntimeException)
}
// XPackageRegistry
-//______________________________________________________________________________
+
Reference<deployment::XPackage> PackageRegistryImpl::bindPackage(
OUString const & url, OUString const & mediaType_, sal_Bool bRemoved,
OUString const & identifier, Reference<XCommandEnvironment> const & xCmdEnv )
@@ -533,7 +533,7 @@ Reference<deployment::XPackage> PackageRegistryImpl::bindPackage(
}
}
-//______________________________________________________________________________
+
Sequence< Reference<deployment::XPackageTypeInfo> >
PackageRegistryImpl::getSupportedPackageTypes() throw (RuntimeException)
{
diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx
index bdcafdd63cfa..4b89487ea703 100644
--- a/desktop/source/deployment/registry/help/dp_help.cxx
+++ b/desktop/source/deployment/registry/help/dp_help.cxx
@@ -125,7 +125,7 @@ public:
};
-//______________________________________________________________________________
+
BackendImpl::BackendImpl(
Sequence<Any> const & args,
Reference<XComponentContext> const & xComponentContext )
@@ -154,7 +154,7 @@ BackendImpl::BackendImpl(
}
// XPackageRegistry
-//______________________________________________________________________________
+
Sequence< Reference<deployment::XPackageTypeInfo> >
BackendImpl::getSupportedPackageTypes() throw (RuntimeException)
{
@@ -170,7 +170,7 @@ void BackendImpl::packageRemoved(OUString const & url, OUString const & /*mediaT
}
// PackageRegistryBackend
-//______________________________________________________________________________
+
Reference<deployment::XPackage> BackendImpl::bindPackage_(
OUString const & url, OUString const & mediaType_,
sal_Bool bRemoved, OUString const & identifier,
@@ -323,7 +323,7 @@ bool BackendImpl::PackageImpl::extensionContainsCompiledHelp()
return bCompiled;
}
-//______________________________________________________________________________
+
beans::Optional< beans::Ambiguous<sal_Bool> >
BackendImpl::PackageImpl::isRegistered_(
::osl::ResettableMutexGuard &,
@@ -339,7 +339,7 @@ BackendImpl::PackageImpl::isRegistered_(
return beans::Optional< beans::Ambiguous<sal_Bool> >( true, beans::Ambiguous<sal_Bool>( bReg, false ) );
}
-//______________________________________________________________________________
+
void BackendImpl::PackageImpl::processPackage_(
::osl::ResettableMutexGuard &,
bool doRegisterPackage,
diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx
index 0b6dece25682..f5c954ead33c 100644
--- a/desktop/source/deployment/registry/package/dp_package.cxx
+++ b/desktop/source/deployment/registry/package/dp_package.cxx
@@ -285,7 +285,7 @@ public:
}
};
-//______________________________________________________________________________
+
BackendImpl::BackendImpl(
Sequence<Any> const & args,
Reference<XComponentContext> const & xComponentContext,
@@ -316,7 +316,7 @@ BackendImpl::BackendImpl(
}
}
-//______________________________________________________________________________
+
void BackendImpl::disposing()
{
m_xRootRegistry.clear();
@@ -343,7 +343,7 @@ Sequence<OUString> BackendImpl::getSupportedServiceNames()
}
// XPackageRegistry
-//______________________________________________________________________________
+
Sequence< Reference<deployment::XPackageTypeInfo> >
BackendImpl::getSupportedPackageTypes() throw (RuntimeException)
{
@@ -368,7 +368,7 @@ void BackendImpl::packageRemoved(OUString const & url, OUString const & /*mediaT
// PackageRegistryBackend
-//______________________________________________________________________________
+
Reference<deployment::XPackage> BackendImpl::bindPackage_(
OUString const & url, OUString const & mediaType_,
sal_Bool bRemoved, OUString const & identifier,
@@ -498,7 +498,7 @@ BackendImpl * BackendImpl::PackageImpl::getMyBackend() const
}
return pBackend;
}
-//______________________________________________________________________________
+
void BackendImpl::PackageImpl::disposing()
{
sal_Int32 len = m_bundle.getLength();
@@ -511,7 +511,7 @@ void BackendImpl::PackageImpl::disposing()
}
// Package
-//______________________________________________________________________________
+
beans::Optional< beans::Ambiguous<sal_Bool> >
BackendImpl::PackageImpl::isRegistered_(
::osl::ResettableMutexGuard &,
@@ -683,7 +683,7 @@ bool BackendImpl::PackageImpl::checkDependencies(
//Only use interaction if there is no version of this extension already installed
//and the suppress-on-update flag is not set for the new extension
// alreadyInstalled | bSuppressOnUpdate | show license
- //----------------------------------------
+
// 0 | 0 | 1
// 0 | 1 | 1
// 1 | 0 | 1
@@ -808,7 +808,7 @@ beans::StringPair BackendImpl::PackageImpl::getPublisherInfo()
return aStrPair;
}
-//______________________________________________________________________________
+
uno::Reference< graphic::XGraphic > BackendImpl::PackageImpl::getIcon( sal_Bool bHighContrast )
throw (deployment::ExtensionRemovedException, RuntimeException )
{
@@ -835,7 +835,7 @@ uno::Reference< graphic::XGraphic > BackendImpl::PackageImpl::getIcon( sal_Bool
return xGraphic;
}
-//______________________________________________________________________________
+
void BackendImpl::PackageImpl::processPackage_(
::osl::ResettableMutexGuard &,
bool doRegisterPackage,
@@ -968,7 +968,7 @@ void BackendImpl::PackageImpl::processPackage_(
}
}
-//______________________________________________________________________________
+
OUString BackendImpl::PackageImpl::getDescription()
throw (deployment::ExtensionRemovedException, RuntimeException)
{
@@ -996,7 +996,7 @@ OUString BackendImpl::PackageImpl::getDescription()
return m_oldDescription;
}
-//______________________________________________________________________________
+
OUString BackendImpl::PackageImpl::getLicenseText()
throw (deployment::ExtensionRemovedException, RuntimeException)
{
@@ -1021,7 +1021,7 @@ OUString BackendImpl::PackageImpl::getLicenseText()
return sLicense;
}
-//______________________________________________________________________________
+
void BackendImpl::PackageImpl::exportTo(
OUString const & destFolderURL, OUString const & newTitle,
sal_Int32 nameClashAction, Reference<ucb::XCommandEnvironment> const & xCmdEnv )
@@ -1209,13 +1209,13 @@ void BackendImpl::PackageImpl::exportTo(
}
}
-//______________________________________________________________________________
+
sal_Bool BackendImpl::PackageImpl::isBundle() throw (RuntimeException)
{
return true;
}
-//______________________________________________________________________________
+
Sequence< Reference<deployment::XPackage> > BackendImpl::PackageImpl::getBundle(
Reference<task::XAbortChannel> const & xAbortChannel,
Reference<ucb::XCommandEnvironment> const & xCmdEnv )
@@ -1344,7 +1344,7 @@ inline bool isBundle_( OUString const & mediaType )
mediaType.matchIgnoreAsciiCase( "application/vnd.sun.star.legacy-package-bundle"));
}
-//______________________________________________________________________________
+
Reference<deployment::XPackage> BackendImpl::PackageImpl::bindBundleItem(
OUString const & url, OUString const & mediaType,
sal_Bool bRemoved, OUString const & identifier,
@@ -1398,7 +1398,7 @@ Reference<deployment::XPackage> BackendImpl::PackageImpl::bindBundleItem(
return xPackage;
}
-//______________________________________________________________________________
+
void BackendImpl::PackageImpl::scanBundle(
t_packagevec & bundle,
::rtl::Reference<AbortChannel> const & abortChannel,
@@ -1543,7 +1543,7 @@ void BackendImpl::PackageImpl::scanBundle(
}
}
-//______________________________________________________________________________
+
void BackendImpl::PackageImpl::scanLegacyBundle(
t_packagevec & bundle,
OUString const & url,
diff --git a/desktop/source/deployment/registry/script/dp_lib_container.cxx b/desktop/source/deployment/registry/script/dp_lib_container.cxx
index 42d917a3eb78..00817957e153 100644
--- a/desktop/source/deployment/registry/script/dp_lib_container.cxx
+++ b/desktop/source/deployment/registry/script/dp_lib_container.cxx
@@ -45,7 +45,7 @@ struct StrCannotDetermineLibName : public StaticResourceString<
StrCannotDetermineLibName, RID_STR_CANNOT_DETERMINE_LIBNAME> {};
}
-//______________________________________________________________________________
+
OUString LibraryContainer::get_libname(
OUString const & url,
Reference<XCommandEnvironment> const & xCmdEnv,
diff --git a/desktop/source/deployment/registry/script/dp_script.cxx b/desktop/source/deployment/registry/script/dp_script.cxx
index 5bd7239b61c8..d85093cd3e43 100644
--- a/desktop/source/deployment/registry/script/dp_script.cxx
+++ b/desktop/source/deployment/registry/script/dp_script.cxx
@@ -110,7 +110,7 @@ public:
};
-//______________________________________________________________________________
+
BackendImpl::PackageImpl::PackageImpl(
::rtl::Reference<BackendImpl> const & myBackend,
OUString const & url,
@@ -138,7 +138,7 @@ BackendImpl::PackageImpl::PackageImpl(
m_displayName = m_name;
}
-//______________________________________________________________________________
+
BackendImpl::BackendImpl(
Sequence<Any> const & args,
Reference<XComponentContext> const & xComponentContext )
@@ -182,14 +182,14 @@ bool BackendImpl::hasActiveEntry(OUString const & url)
}
// XUpdatable
-//______________________________________________________________________________
+
void BackendImpl::update() throw (RuntimeException)
{
// Nothing to do here after fixing i70283!?
}
// XPackageRegistry
-//______________________________________________________________________________
+
Sequence< Reference<deployment::XPackageTypeInfo> >
BackendImpl::getSupportedPackageTypes() throw (RuntimeException)
{
@@ -210,7 +210,7 @@ void BackendImpl::packageRemoved(OUString const & url, OUString const & /*mediaT
}
// PackageRegistryBackend
-//______________________________________________________________________________
+
Reference<deployment::XPackage> BackendImpl::bindPackage_(
OUString const & url, OUString const & mediaType_,
sal_Bool bRemoved, OUString const & identifier,
diff --git a/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx b/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
index 7486909aefdf..c2d5442be957 100644
--- a/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
+++ b/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx
@@ -115,7 +115,7 @@ BackendImpl * BackendImpl::PackageImpl::getMyBackend() const
}
return pBackend;
}
-//______________________________________________________________________________
+
OUString BackendImpl::PackageImpl::getDescription() throw (RuntimeException)
{
if (m_descr.isEmpty())
@@ -124,13 +124,13 @@ OUString BackendImpl::PackageImpl::getDescription() throw (RuntimeException)
return m_descr;
}
-//______________________________________________________________________________
+
OUString BackendImpl::PackageImpl::getLicenseText() throw (RuntimeException)
{
return Package::getDescription();
}
-//______________________________________________________________________________
+
BackendImpl::PackageImpl::PackageImpl(
::rtl::Reference<BackendImpl> const & myBackend,
OUString const & url, OUString const & libType, bool bRemoved,
@@ -156,7 +156,7 @@ BackendImpl::PackageImpl::PackageImpl(
dp_misc::TRACE("PakageImpl displayName is " + m_displayName);
}
-//______________________________________________________________________________
+
BackendImpl::BackendImpl(
Sequence<Any> const & args,
Reference<XComponentContext> const & xComponentContext )
@@ -175,7 +175,7 @@ BackendImpl::BackendImpl(
// XPackageRegistry
-//______________________________________________________________________________
+
Sequence< Reference<deployment::XPackageTypeInfo> >
BackendImpl::getSupportedPackageTypes() throw (RuntimeException)
{
@@ -189,7 +189,7 @@ void BackendImpl::packageRemoved(OUString const & /*url*/, OUString const & /*me
}
// PackageRegistryBackend
-//______________________________________________________________________________
+
Reference<deployment::XPackage> BackendImpl::bindPackage_(
OUString const & url, OUString const & mediaType_, sal_Bool bRemoved,
OUString const & identifier, Reference<XCommandEnvironment> const & xCmdEnv )
@@ -314,7 +314,7 @@ void BackendImpl::PackageImpl:: initPackageHandler()
}
// Package
-//______________________________________________________________________________
+
beans::Optional< beans::Ambiguous<sal_Bool> >
BackendImpl::PackageImpl::isRegistered_(
::osl::ResettableMutexGuard &,
@@ -329,7 +329,7 @@ BackendImpl::PackageImpl::isRegistered_(
false /* IsAmbiguous */ ) );
}
-//______________________________________________________________________________
+
void BackendImpl::PackageImpl::processPackage_(
::osl::ResettableMutexGuard &,
bool doRegisterPackage,
diff --git a/desktop/source/migration/services/basicmigration.cxx b/desktop/source/migration/services/basicmigration.cxx
index c35a167e8a94..e61607d5d6bc 100644
--- a/desktop/source/migration/services/basicmigration.cxx
+++ b/desktop/source/migration/services/basicmigration.cxx
@@ -45,7 +45,7 @@ namespace migration
return OUString("com.sun.star.comp.desktop.migration.Basic");
}
- // -----------------------------------------------------------------------------
+
Sequence< OUString > BasicMigration_getSupportedServiceNames()
{
@@ -62,13 +62,13 @@ namespace migration
{
}
- // -----------------------------------------------------------------------------
+
BasicMigration::~BasicMigration()
{
}
- // -----------------------------------------------------------------------------
+
TStringVectorPtr BasicMigration::getFiles( const OUString& rBaseURL ) const
{
@@ -105,7 +105,7 @@ namespace migration
return aResult;
}
- // -----------------------------------------------------------------------------
+
::osl::FileBase::RC BasicMigration::checkAndCreateDirectory( INetURLObject& rDirURL )
{
@@ -123,7 +123,7 @@ namespace migration
}
}
- // -----------------------------------------------------------------------------
+
void BasicMigration::copyFiles()
{
@@ -158,16 +158,16 @@ namespace migration
}
}
- // -----------------------------------------------------------------------------
+
// XServiceInfo
- // -----------------------------------------------------------------------------
+
OUString BasicMigration::getImplementationName() throw (RuntimeException)
{
return BasicMigration_getImplementationName();
}
- // -----------------------------------------------------------------------------
+
sal_Bool BasicMigration::supportsService(OUString const & ServiceName)
throw (css::uno::RuntimeException)
@@ -175,16 +175,16 @@ namespace migration
return cppu::supportsService(this, ServiceName);
}
- // -----------------------------------------------------------------------------
+
Sequence< OUString > BasicMigration::getSupportedServiceNames() throw (RuntimeException)
{
return BasicMigration_getSupportedServiceNames();
}
- // -----------------------------------------------------------------------------
+
// XInitialization
- // -----------------------------------------------------------------------------
+
void BasicMigration::initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException)
{
@@ -208,9 +208,9 @@ namespace migration
}
}
- // -----------------------------------------------------------------------------
+
// XJob
- // -----------------------------------------------------------------------------
+
Any BasicMigration::execute( const Sequence< beans::NamedValue >& )
throw (lang::IllegalArgumentException, Exception, RuntimeException)
@@ -233,7 +233,7 @@ namespace migration
return static_cast< lang::XTypeProvider * >( new BasicMigration() );
}
- // -----------------------------------------------------------------------------
+
//.........................................................................
} // namespace migration
diff --git a/desktop/source/migration/services/jvmfwk.cxx b/desktop/source/migration/services/jvmfwk.cxx
index 849bb8863e41..05f1cd523790 100644
--- a/desktop/source/migration/services/jvmfwk.cxx
+++ b/desktop/source/migration/services/jvmfwk.cxx
@@ -196,7 +196,7 @@ public:
- //----------------
+
~JavaMigration();
private:
@@ -340,7 +340,7 @@ void SAL_CALL JavaMigration::startLayer()
throw(css::lang::WrappedTargetException)
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL JavaMigration::endLayer()
throw(
@@ -348,7 +348,7 @@ void SAL_CALL JavaMigration::endLayer()
WrappedTargetException )
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL JavaMigration::overrideNode(
const OUString&,
@@ -361,7 +361,7 @@ void SAL_CALL JavaMigration::overrideNode(
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL JavaMigration::addOrReplaceNode(
const OUString&,
@@ -378,7 +378,7 @@ void SAL_CALL JavaMigration::endNode()
WrappedTargetException )
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL JavaMigration::dropNode(
const OUString& )
@@ -387,7 +387,7 @@ void SAL_CALL JavaMigration::dropNode(
WrappedTargetException )
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL JavaMigration::overrideProperty(
const OUString& aName,
@@ -403,7 +403,7 @@ void SAL_CALL JavaMigration::overrideProperty(
else if ( aName == "UserClassPath" )
m_aStack.push(TElementStack::value_type(aName, USER_CLASS_PATH));
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL JavaMigration::setPropertyValue(
const Any& aValue )
@@ -448,7 +448,7 @@ void SAL_CALL JavaMigration::setPropertyValue(
}
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL JavaMigration::setPropertyValueForLocale(
const Any&,
@@ -458,7 +458,7 @@ void SAL_CALL JavaMigration::setPropertyValueForLocale(
WrappedTargetException )
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL JavaMigration::endProperty()
throw(
@@ -468,7 +468,7 @@ void SAL_CALL JavaMigration::endProperty()
if (!m_aStack.empty())
m_aStack.pop();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL JavaMigration::addProperty(
const OUString&,
@@ -479,7 +479,7 @@ void SAL_CALL JavaMigration::addProperty(
WrappedTargetException )
{
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL JavaMigration::addPropertyWithValue(
const OUString&,
@@ -501,7 +501,7 @@ void SAL_CALL JavaMigration::addOrReplaceNodeFromTemplate(
{
}
-// -----------------------------------------------------------------------------
+
//ToDo enable java, user class path
} //end namespace jfw
diff --git a/desktop/source/migration/services/oo3extensionmigration.cxx b/desktop/source/migration/services/oo3extensionmigration.cxx
index 5d03d2258491..720054b5aef5 100644
--- a/desktop/source/migration/services/oo3extensionmigration.cxx
+++ b/desktop/source/migration/services/oo3extensionmigration.cxx
@@ -73,7 +73,7 @@ OUString OO3ExtensionMigration_getImplementationName()
return *pImplName;
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > OO3ExtensionMigration_getSupportedServiceNames()
{
@@ -100,7 +100,7 @@ m_ctx(ctx)
{
}
-// -----------------------------------------------------------------------------
+
OO3ExtensionMigration::~OO3ExtensionMigration()
{
@@ -322,16 +322,16 @@ void OO3ExtensionMigration::migrateExtension( const OUString& sSourceDir )
}
-// -----------------------------------------------------------------------------
+
// XServiceInfo
-// -----------------------------------------------------------------------------
+
OUString OO3ExtensionMigration::getImplementationName() throw (RuntimeException)
{
return OO3ExtensionMigration_getImplementationName();
}
-// -----------------------------------------------------------------------------
+
sal_Bool OO3ExtensionMigration::supportsService(OUString const & ServiceName)
throw (css::uno::RuntimeException)
@@ -339,16 +339,16 @@ sal_Bool OO3ExtensionMigration::supportsService(OUString const & ServiceName)
return cppu::supportsService(this, ServiceName);
}
-// -----------------------------------------------------------------------------
+
Sequence< OUString > OO3ExtensionMigration::getSupportedServiceNames() throw (RuntimeException)
{
return OO3ExtensionMigration_getSupportedServiceNames();
}
-// -----------------------------------------------------------------------------
+
// XInitialization
-// -----------------------------------------------------------------------------
+
void OO3ExtensionMigration::initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException)
{
@@ -408,9 +408,9 @@ Any OO3ExtensionMigration::execute( const Sequence< beans::NamedValue >& )
return Any();
}
-// -----------------------------------------------------------------------------
+
// TmpRepositoryCommandEnv
-// -----------------------------------------------------------------------------
+
TmpRepositoryCommandEnv::TmpRepositoryCommandEnv()
{
@@ -420,14 +420,14 @@ TmpRepositoryCommandEnv::~TmpRepositoryCommandEnv()
{
}
// XCommandEnvironment
-//______________________________________________________________________________
+
uno::Reference< task::XInteractionHandler > TmpRepositoryCommandEnv::getInteractionHandler()
throw ( uno::RuntimeException )
{
return this;
}
-//______________________________________________________________________________
+
uno::Reference< ucb::XProgressHandler > TmpRepositoryCommandEnv::getProgressHandler()
throw ( uno::RuntimeException )
{
@@ -491,7 +491,7 @@ Reference< XInterface > SAL_CALL OO3ExtensionMigration_create(
ctx) );
}
-// -----------------------------------------------------------------------------
+
} // namespace migration
diff --git a/desktop/source/migration/services/wordbookmigration.cxx b/desktop/source/migration/services/wordbookmigration.cxx
index 1f4c05121f6b..38ccca46c2b0 100644
--- a/desktop/source/migration/services/wordbookmigration.cxx
+++ b/desktop/source/migration/services/wordbookmigration.cxx
@@ -56,7 +56,7 @@ namespace migration
return *pImplName;
}
- // -----------------------------------------------------------------------------
+
Sequence< OUString > WordbookMigration_getSupportedServiceNames()
{
@@ -82,13 +82,13 @@ namespace migration
{
}
- // -----------------------------------------------------------------------------
+
WordbookMigration::~WordbookMigration()
{
}
- // -----------------------------------------------------------------------------
+
TStringVectorPtr WordbookMigration::getFiles( const OUString& rBaseURL ) const
{
@@ -125,7 +125,7 @@ namespace migration
return aResult;
}
- // -----------------------------------------------------------------------------
+
::osl::FileBase::RC WordbookMigration::checkAndCreateDirectory( INetURLObject& rDirURL )
{
@@ -186,7 +186,7 @@ bool IsUserWordbook( const OUString& rFile )
}
- // -----------------------------------------------------------------------------
+
void WordbookMigration::copyFiles()
{
@@ -224,16 +224,16 @@ bool IsUserWordbook( const OUString& rFile )
}
}
- // -----------------------------------------------------------------------------
+
// XServiceInfo
- // -----------------------------------------------------------------------------
+
OUString WordbookMigration::getImplementationName() throw (RuntimeException)
{
return WordbookMigration_getImplementationName();
}
- // -----------------------------------------------------------------------------
+
sal_Bool WordbookMigration::supportsService(OUString const & ServiceName)
throw (css::uno::RuntimeException)
@@ -241,16 +241,16 @@ bool IsUserWordbook( const OUString& rFile )
return cppu::supportsService(this, ServiceName);
}
- // -----------------------------------------------------------------------------
+
Sequence< OUString > WordbookMigration::getSupportedServiceNames() throw (RuntimeException)
{
return WordbookMigration_getSupportedServiceNames();
}
- // -----------------------------------------------------------------------------
+
// XInitialization
- // -----------------------------------------------------------------------------
+
void WordbookMigration::initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException)
{
@@ -274,9 +274,9 @@ bool IsUserWordbook( const OUString& rFile )
}
}
- // -----------------------------------------------------------------------------
+
// XJob
- // -----------------------------------------------------------------------------
+
Any WordbookMigration::execute( const Sequence< beans::NamedValue >& )
throw (lang::IllegalArgumentException, Exception, RuntimeException)
@@ -299,7 +299,7 @@ bool IsUserWordbook( const OUString& rFile )
return static_cast< lang::XTypeProvider * >( new WordbookMigration() );
}
- // -----------------------------------------------------------------------------
+
//.........................................................................
} // namespace migration
diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx
index 5d11e0f9cebb..68a26d565fc9 100644
--- a/desktop/source/offacc/acceptor.cxx
+++ b/desktop/source/offacc/acceptor.cxx
@@ -258,7 +258,7 @@ Reference<XInterface> AccInstanceProvider::getInstance (const OUString& aName )
}
// component management stuff...
-// ----------------------------------------------------------------------------
+
extern "C"
{
using namespace desktop;
diff --git a/desktop/source/pkgchk/unopkg/unopkg_app.cxx b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
index 9b4ec1acb5d1..3ad157bd0a4f 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_app.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
@@ -64,7 +64,7 @@ struct ExtensionName
}
};
-//------------------------------------------------------------------------------
+
const char s_usingText [] =
"\n"
"using: " APP_NAME " add <options> extension-path...\n"
@@ -104,7 +104,7 @@ const char s_usingText [] =
"To learn more about the Extension Manager and extensions, see:\n"
"http://wiki.openoffice.org/wiki/Documentation/DevGuide/Extensions/Extensions\n\n";
-//------------------------------------------------------------------------------
+
const OptionInfo s_option_infos [] = {
{ RTL_CONSTASCII_STRINGPARAM("help"), 'h', false },
{ RTL_CONSTASCII_STRINGPARAM("version"), 'V', false },
diff --git a/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx b/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
index dd35330a2c8f..046cce00bc7a 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
@@ -94,7 +94,7 @@ public:
};
-//______________________________________________________________________________
+
CommandEnvironmentImpl::CommandEnvironmentImpl(
Reference<XComponentContext> const & xComponentContext,
OUString const & log_file,
@@ -118,7 +118,7 @@ CommandEnvironmentImpl::CommandEnvironmentImpl(
}
}
-//______________________________________________________________________________
+
CommandEnvironmentImpl::~CommandEnvironmentImpl()
{
try {
@@ -186,14 +186,14 @@ void CommandEnvironmentImpl::printLicense(
}
// XCommandEnvironment
-//______________________________________________________________________________
+
Reference< task::XInteractionHandler >
CommandEnvironmentImpl::getInteractionHandler() throw (RuntimeException)
{
return this;
}
-//______________________________________________________________________________
+
Reference< XProgressHandler > CommandEnvironmentImpl::getProgressHandler()
throw (RuntimeException)
{
@@ -201,7 +201,7 @@ Reference< XProgressHandler > CommandEnvironmentImpl::getProgressHandler()
}
// XInteractionHandler
-//______________________________________________________________________________
+
void CommandEnvironmentImpl::handle(
Reference<task::XInteractionRequest> const & xRequest )
throw (RuntimeException)
@@ -321,7 +321,7 @@ void CommandEnvironmentImpl::handle(
}
// XProgressHandler
-//______________________________________________________________________________
+
void CommandEnvironmentImpl::push( Any const & Status )
throw (RuntimeException)
{
@@ -332,7 +332,7 @@ void CommandEnvironmentImpl::push( Any const & Status )
m_xLogFile->push( Status );
}
-//______________________________________________________________________________
+
void CommandEnvironmentImpl::update_( Any const & Status )
throw (RuntimeException)
{
@@ -374,7 +374,7 @@ void CommandEnvironmentImpl::update_( Any const & Status )
dp_misc::writeConsole(msg + "\n");
}
-//______________________________________________________________________________
+
void CommandEnvironmentImpl::update( Any const & Status )
throw (RuntimeException)
{
@@ -383,7 +383,7 @@ void CommandEnvironmentImpl::update( Any const & Status )
m_xLogFile->update( Status );
}
-//______________________________________________________________________________
+
void CommandEnvironmentImpl::pop() throw (RuntimeException)
{
OSL_ASSERT( m_logLevel > 0 );
diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
index 2a72df64d377..97b32ada28d0 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
@@ -241,14 +241,14 @@ OUString makeAbsoluteFileUrl(
namespace {
-//------------------------------------------------------------------------------
+
inline void printf_space( sal_Int32 space )
{
while (space--)
dp_misc::writeConsole(" ");
}
-//------------------------------------------------------------------------------
+
void printf_line(
OUString const & name, OUString const & value, sal_Int32 level )
{
@@ -256,7 +256,7 @@ void printf_line(
dp_misc::writeConsole(name + ": " + value + "\n");
}
-//------------------------------------------------------------------------------
+
void printf_package(
Reference<deployment::XPackage> const & xPackage,
Reference<XCommandEnvironment> const & xCmdEnv, sal_Int32 level )
@@ -352,7 +352,7 @@ void printf_packages(
namespace {
-//------------------------------------------------------------------------------
+
Reference<XComponentContext> bootstrapStandAlone()
{
Reference<XComponentContext> xContext =
@@ -370,7 +370,7 @@ Reference<XComponentContext> bootstrapStandAlone()
return xContext;
}
-//------------------------------------------------------------------------------
+
Reference<XComponentContext> connectToOffice(
Reference<XComponentContext> const & xLocalComponentContext,
bool verbose )
diff --git a/desktop/win32/source/guiloader/genericloader.cxx b/desktop/win32/source/guiloader/genericloader.cxx
index 9f77cabbd4ad..e7584c0b0ac8 100644
--- a/desktop/win32/source/guiloader/genericloader.cxx
+++ b/desktop/win32/source/guiloader/genericloader.cxx
@@ -40,7 +40,7 @@
#include "tools/pathutils.hxx"
#include "../extendloaderenvironment.hxx"
-//---------------------------------------------------------------------------
+
static int GenericMain()
{
@@ -142,7 +142,7 @@ static int GenericMain()
return dwExitCode;
}
-//---------------------------------------------------------------------------
+
#ifdef __MINGW32__
int WINAPI WinMain( HINSTANCE, HINSTANCE, LPSTR, int )
@@ -153,7 +153,7 @@ int WINAPI _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int )
return GenericMain();
}
-//---------------------------------------------------------------------------
+
#ifdef __MINGW32__
int __cdecl main()
diff --git a/desktop/win32/source/officeloader/officeloader.cxx b/desktop/win32/source/officeloader/officeloader.cxx
index 63cc0cc595e1..1dee9e90396a 100644
--- a/desktop/win32/source/officeloader/officeloader.cxx
+++ b/