diff options
Diffstat (limited to 'extensions/source/dbpilots')
21 files changed, 218 insertions, 218 deletions
diff --git a/extensions/source/dbpilots/commonpagesdbp.cxx b/extensions/source/dbpilots/commonpagesdbp.cxx index c620a1a95c16..1bb6bd0e8571 100644 --- a/extensions/source/dbpilots/commonpagesdbp.cxx +++ b/extensions/source/dbpilots/commonpagesdbp.cxx @@ -39,10 +39,10 @@ #include <unotools/pathoptions.hxx> #include <sfx2/filedlghelper.hxx> #include <svl/filenotation.hxx> -//......................................................................... + namespace dbp { -//......................................................................... + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -54,9 +54,9 @@ namespace dbp using namespace ::com::sun::star::task; using namespace ::comphelper; - //===================================================================== + //= OTableSelectionPage - //===================================================================== + OTableSelectionPage::OTableSelectionPage(OControlWizard* _pParent) :OControlWizardPage(_pParent, ModuleRes(RID_PAGE_TABLESELECTION)) @@ -384,9 +384,9 @@ namespace dbp } } - //===================================================================== + //= OMaybeListSelectionPage - //===================================================================== + OMaybeListSelectionPage::OMaybeListSelectionPage( OControlWizard* _pParent, const ResId& _rId ) :OControlWizardPage(_pParent, _rId) @@ -451,9 +451,9 @@ namespace dbp m_pNo->GrabFocus(); } - //===================================================================== + //= ODBFieldPage - //===================================================================== + ODBFieldPage::ODBFieldPage( OControlWizard* _pParent ) :OMaybeListSelectionPage(_pParent, ModuleRes(RID_PAGE_OPTION_DBFIELD)) @@ -491,8 +491,8 @@ namespace dbp return sal_True; } -//......................................................................... + } // namespace dbp -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/dbpilots/commonpagesdbp.hxx b/extensions/source/dbpilots/commonpagesdbp.hxx index ad201deb7a48..ff61894cba3a 100644 --- a/extensions/source/dbpilots/commonpagesdbp.hxx +++ b/extensions/source/dbpilots/commonpagesdbp.hxx @@ -25,14 +25,14 @@ #include <vcl/lstbox.hxx> #include <com/sun/star/sdb/XDatabaseContext.hpp> -//......................................................................... + namespace dbp { -//......................................................................... - //===================================================================== + + //= OTableSelectionPage - //===================================================================== + class OTableSelectionPage : public OControlWizardPage { protected: @@ -71,9 +71,9 @@ namespace dbp virtual bool canAdvance() const; }; - //===================================================================== + //= OMaybeListSelectionPage - //===================================================================== + class OMaybeListSelectionPage : public OControlWizardPage { protected: @@ -102,9 +102,9 @@ namespace dbp void implCommit(OUString& _rSelection); }; - //===================================================================== + //= ODBFieldPage - //===================================================================== + class ODBFieldPage : public OMaybeListSelectionPage { protected: @@ -129,9 +129,9 @@ namespace dbp virtual OUString& getDBFieldSetting() = 0; }; -//......................................................................... + } // namespace dbp -//......................................................................... + #endif // _EXTENSIONS_DBP_COMMONPAGESDBP_HXX_ diff --git a/extensions/source/dbpilots/controlwizard.cxx b/extensions/source/dbpilots/controlwizard.cxx index 68eb40f83366..900b0e55a669 100644 --- a/extensions/source/dbpilots/controlwizard.cxx +++ b/extensions/source/dbpilots/controlwizard.cxx @@ -45,10 +45,10 @@ #include <com/sun/star/sdbc/DataType.hpp> #include <tools/urlobj.hxx> -//......................................................................... + namespace dbp { -//......................................................................... + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::awt; @@ -67,9 +67,9 @@ namespace dbp using namespace ::comphelper; using namespace ::dbtools; - //===================================================================== + //= OAccessRegulator - //===================================================================== + struct OAccessRegulator { friend class OControlWizardPage; @@ -78,9 +78,9 @@ namespace dbp OAccessRegulator() { } }; - //===================================================================== + //= OControlWizardPage - //===================================================================== + OControlWizardPage::OControlWizardPage( OControlWizard* _pParent, const ResId& _rResId ) :OControlWizardPage_Base( _pParent, _rResId ) @@ -268,9 +268,9 @@ namespace dbp OControlWizardPage_Base::initializePage(); } - //===================================================================== + //= OControlWizard - //===================================================================== + OControlWizard::OControlWizard( Window* _pParent, const ResId& _rId, const Reference< XPropertySet >& _rxObjectModel, const Reference< XComponentContext >& _rxContext ) @@ -733,8 +733,8 @@ namespace dbp // if we got fields, the data source is valid ... } -//......................................................................... + } // namespace dbp -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/dbpilots/controlwizard.hxx b/extensions/source/dbpilots/controlwizard.hxx index 5109454fd026..cce215def790 100644 --- a/extensions/source/dbpilots/controlwizard.hxx +++ b/extensions/source/dbpilots/controlwizard.hxx @@ -36,22 +36,22 @@ #include "wizardcontext.hxx" class ResId; -//......................................................................... + namespace dbp { -//......................................................................... - //===================================================================== + + //= OControlWizardSettings - //===================================================================== + struct OControlWizardSettings { OUString sControlLabel; }; - //===================================================================== + //= OControlWizardPage - //===================================================================== + class OControlWizard; typedef ::svt::OWizardPage OControlWizardPage_Base; class OControlWizardPage : public OControlWizardPage_Base @@ -98,9 +98,9 @@ namespace dbp }; struct OAccessRegulator; - //===================================================================== + //= OControlWizard - //===================================================================== + typedef ::svt::OWizardMachine OControlWizard_Base; class OControlWizard : public OControlWizard_Base { @@ -165,9 +165,9 @@ namespace dbp virtual void ActivatePage(); }; -//......................................................................... + } // namespace dbp -//......................................................................... + #endif // _EXTENSIONS_DBP_CONTROLWIZARD_HXX diff --git a/extensions/source/dbpilots/dbpresid.hrc b/extensions/source/dbpilots/dbpresid.hrc index 994c3a3743fa..eccf57b20bc3 100644 --- a/extensions/source/dbpilots/dbpresid.hrc +++ b/extensions/source/dbpilots/dbpresid.hrc @@ -23,7 +23,7 @@ #include "dbpilots.hrc" #include "extensio.hrc" -//======================================================================== + // basics #define RID_DIALOG_START RID_DBP_START @@ -31,7 +31,7 @@ #define RID_STRING_START RID_DBP_START #define RID_ERRORBOX_START RID_DBP_START -//======================================================================== + // strings #define RID_STR_GROUPWIZ_DBFIELD (RID_STRING_START + 1 ) @@ -48,7 +48,7 @@ // please adjust RID_STRING_END (below) when adding new strings #define RID_STRING_END RID_STR_TIMEPOSTFIX -//======================================================================== + // dialogs #define RID_DLG_GROUPBOXWIZARD ( RID_DIALOG_START + 1 ) @@ -58,7 +58,7 @@ // please adjust RID_DIALOG_END (below) when adding new dialogs #define RID_DIALOG_END RID_DLG_GRIDWIZARD -//======================================================================== + // tab pages #define RID_PAGE_TABLESELECTION ( RID_PAGE_START + 1 ) @@ -76,7 +76,7 @@ // please adjust RID_PAGE_END (below) when adding new tab pages #define RID_PAGE_END RID_PAGE_GW_FIELDSELECTION -//======================================================================== + // ErrorBox #define RID_ERR_INVALID_FORM_CONNECTION ( RID_ERRORBOX_START + 1 ) @@ -85,8 +85,8 @@ #define RID_ERRORBOX_END RID_ERR_INVALID_FORM_CONNECTION -//======================================================================== -//======================================================================== + + //= range checks #if RID_STRING_END > RID_DBP_END @@ -102,10 +102,10 @@ #error "please adjust the resource id ranges!!" #endif -//======================================================================== + // local ids -//........................................................................ + // FixedLine #define FL_DATA 1 @@ -116,7 +116,7 @@ #define FL_FRAME 6 #define FL_FORMSETINGS 7 -//........................................................................ + // FixedText #define FT_DATASOURCE 1 @@ -147,7 +147,7 @@ #define FT_FORMCONTENTTYPELABEL 26 #define FT_FORMCONTENTTYPE 27 -//........................................................................ + // ListBox #define LB_DATASOURCE 1 @@ -160,7 +160,7 @@ #define LB_EXISTING_FIELDS 7 #define LB_SELECTED_FIELDS 8 -//........................................................................ + // Edit #define ET_RADIOLABELS 1 @@ -168,7 +168,7 @@ #define ET_NAMEIT 3 #define ET_DISPLAYEDFIELD 4 -//........................................................................ + // PushButton #define PB_MOVETORIGHT 1 @@ -179,7 +179,7 @@ #define PB_ALLFIELDSLEFT 6 #define PB_FORMDATASOURCE 7 -//........................................................................ + // RadioButton #define RB_DEFSELECTION_YES 1 @@ -187,19 +187,19 @@ #define RB_STOREINFIELD_YES 3 #define RB_STOREINFIELD_NO 4 -//........................................................................ + // ComboBox #define CMB_VALUELISTFIELD 1 #define CMB_TABLEFIELD 2 -//........................................................................ + // String #define STR_FIELDINFO_LISTBOX 1 #define STR_FIELDINFO_COMBOBOX 2 -//........................................................................ + // Image #define IMG_TABLE 1 diff --git a/extensions/source/dbpilots/dbptools.cxx b/extensions/source/dbpilots/dbptools.cxx index b19f6fc8916a..a6ce9fdae1b0 100644 --- a/extensions/source/dbpilots/dbptools.cxx +++ b/extensions/source/dbpilots/dbptools.cxx @@ -20,10 +20,10 @@ #include "dbptools.hxx" #include <tools/debug.hxx> -//......................................................................... + namespace dbp { -//......................................................................... + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::container; @@ -54,8 +54,8 @@ namespace dbp } } -//......................................................................... + } // namespace dbp -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/dbpilots/dbptools.hxx b/extensions/source/dbpilots/dbptools.hxx index b79bf5709499..2ab984699f06 100644 --- a/extensions/source/dbpilots/dbptools.hxx +++ b/extensions/source/dbpilots/dbptools.hxx @@ -22,18 +22,18 @@ #include <com/sun/star/container/XNameAccess.hpp> -//......................................................................... + namespace dbp { -//......................................................................... + void disambiguateName( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxContainer, OUString& _rElementsName); -//......................................................................... + } // namespace dbp -//......................................................................... + #endif // _EXTENSIONS_DBP_DBPTOOLS_HXX_ diff --git a/extensions/source/dbpilots/dbptypes.hxx b/extensions/source/dbpilots/dbptypes.hxx index 407116975b41..cd41db446e7a 100644 --- a/extensions/source/dbpilots/dbptypes.hxx +++ b/extensions/source/dbpilots/dbptypes.hxx @@ -26,18 +26,18 @@ #include <set> #include <vector> -//......................................................................... + namespace dbp { -//......................................................................... + typedef std::vector<OUString> StringArray; typedef std::set<OUString> StringBag; typedef std::map<sal_uInt32, OUString> MapInt2String; -//......................................................................... + } // namespace dbp -//......................................................................... + #endif // _EXTENSIONS_DBP_DBPTYPES_HXX_ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/dbpilots/gridwizard.cxx b/extensions/source/dbpilots/gridwizard.cxx index dbddd51b2e28..af38f74f0de7 100644 --- a/extensions/source/dbpilots/gridwizard.cxx +++ b/extensions/source/dbpilots/gridwizard.cxx @@ -34,10 +34,10 @@ #define GW_STATE_DATASOURCE_SELECTION 0 #define GW_STATE_FIELDSELECTION 1 -//......................................................................... + namespace dbp { -//......................................................................... + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -48,9 +48,9 @@ namespace dbp using namespace ::com::sun::star::awt; using namespace ::svt; - //===================================================================== + //= OGridWizard - //===================================================================== + OGridWizard::OGridWizard( Window* _pParent, const Reference< XPropertySet >& _rxObjectModel, const Reference< XComponentContext >& _rxContext ) @@ -290,9 +290,9 @@ namespace dbp return sal_True; } - //===================================================================== + //= OGridFieldsSelection - //===================================================================== + OGridFieldsSelection::OGridFieldsSelection( OGridWizard* _pParent ) :OGridPage(_pParent, ModuleRes(RID_PAGE_GW_FIELDSELECTION)) @@ -470,8 +470,8 @@ namespace dbp return 0; } -//......................................................................... + } // namespace dbp -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/dbpilots/gridwizard.hxx b/extensions/source/dbpilots/gridwizard.hxx index 1cb62c58c0e9..9d8044b4d5f4 100644 --- a/extensions/source/dbpilots/gridwizard.hxx +++ b/extensions/source/dbpilots/gridwizard.hxx @@ -23,22 +23,22 @@ #include "controlwizard.hxx" #include "commonpagesdbp.hxx" -//......................................................................... + namespace dbp { -//......................................................................... - //===================================================================== + + //= OGridSettings - //===================================================================== + struct OGridSettings : public OControlWizardSettings { ::com::sun::star::uno::Sequence< OUString > aSelectedFields; }; - //===================================================================== + //= OGridWizard - //===================================================================== + class OGridWizard : public OControlWizard { protected: @@ -68,9 +68,9 @@ namespace dbp void implApplySettings(); }; - //===================================================================== + //= OGridPage - //===================================================================== + class OGridPage : public OControlWizardPage { public: @@ -80,9 +80,9 @@ namespace dbp OGridSettings& getSettings() { return static_cast<OGridWizard*>(getDialog())->getSettings(); } }; - //===================================================================== + //= OGridFieldsSelection - //===================================================================== + class OGridFieldsSelection : public OGridPage { protected: @@ -120,9 +120,9 @@ namespace dbp ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > implGetColumns(sal_Bool _bShowError = sal_True); }; -//......................................................................... + } // namespace dbp -//......................................................................... + #endif // _EXTENSIONS_DBP_GRIDWIZARD_HXX_ diff --git a/extensions/source/dbpilots/groupboxwiz.cxx b/extensions/source/dbpilots/groupboxwiz.cxx index 7c142f81525b..acca9657a6a3 100644 --- a/extensions/source/dbpilots/groupboxwiz.cxx +++ b/extensions/source/dbpilots/groupboxwiz.cxx @@ -32,10 +32,10 @@ #define GBW_STATE_DBFIELD 3 #define GBW_STATE_FINALIZE 4 -//......................................................................... + namespace dbp { -//......................................................................... + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -43,9 +43,9 @@ namespace dbp using namespace ::com::sun::star::form; using namespace ::svt; - //===================================================================== + //= OGroupBoxWizard - //===================================================================== + OGroupBoxWizard::OGroupBoxWizard( Window* _pParent, const Reference< XPropertySet >& _rxObjectModel, const Reference< XComponentContext >& _rxContext ) @@ -181,9 +181,9 @@ namespace dbp return OControlWizard::onFinish(); } - //===================================================================== + //= ORadioSelectionPage - //===================================================================== + ORadioSelectionPage::ORadioSelectionPage( OControlWizard* _pParent ) :OGBWPage(_pParent, ModuleRes(RID_PAGE_GROUPRADIOSELECTION)) @@ -338,9 +338,9 @@ namespace dbp } } - //===================================================================== + //= ODefaultFieldSelectionPage - //===================================================================== + ODefaultFieldSelectionPage::ODefaultFieldSelectionPage( OControlWizard* _pParent ) :OMaybeListSelectionPage(_pParent, ModuleRes(RID_PAGE_DEFAULTFIELDSELECTION)) @@ -389,9 +389,9 @@ namespace dbp return sal_True; } - //===================================================================== + //= OOptionValuesPage - //===================================================================== + OOptionValuesPage::OOptionValuesPage( OControlWizard* _pParent ) :OGBWPage(_pParent, ModuleRes(RID_PAGE_OPTIONVALUES)) @@ -483,9 +483,9 @@ namespace dbp return sal_True; } - //===================================================================== + //= OOptionDBFieldPage - //===================================================================== + OOptionDBFieldPage::OOptionDBFieldPage( OControlWizard* _pParent ) :ODBFieldPage(_pParent) @@ -499,9 +499,9 @@ namespace dbp return getSettings().sDBField; } - //===================================================================== + //= OFinalizeGBWPage - //===================================================================== + OFinalizeGBWPage::OFinalizeGBWPage( OControlWizard* _pParent ) :OGBWPage(_pParent, ModuleRes(RID_PAGE_OPTIONS_FINAL)) @@ -546,8 +546,8 @@ namespace dbp return sal_True; } -//......................................................................... + } // namespace dbp -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/dbpilots/groupboxwiz.hxx b/extensions/source/dbpilots/groupboxwiz.hxx index 17626c5aa5d2..c38e712a0056 100644 --- a/extensions/source/dbpilots/groupboxwiz.hxx +++ b/extensions/source/dbpilots/groupboxwiz.hxx @@ -23,14 +23,14 @@ #include "controlwizard.hxx" #include "commonpagesdbp.hxx" -//......................................................................... + namespace dbp { -//......................................................................... - //===================================================================== + + //= OOptionGroupSettings - //===================================================================== + struct OOptionGroupSettings : public OControlWizardSettings { StringArray aLabels; @@ -40,9 +40,9 @@ namespace dbp OUString sName; }; - //===================================================================== + //= OGroupBoxWizard - //===================================================================== + class OGroupBoxWizard : public OControlWizard { protected: @@ -73,9 +73,9 @@ namespace dbp void createRadios(); }; - //===================================================================== + //= OGBWPage - //===================================================================== + class OGBWPage : public OControlWizardPage { public: @@ -85,9 +85,9 @@ namespace dbp OOptionGroupSettings& getSettings() { return static_cast<OGroupBoxWizard*>(getDialog())->getSettings(); } }; - //===================================================================== + //= ORadioSelectionPage - //===================================================================== + class ORadioSelectionPage : public OGBWPage { protected: @@ -118,9 +118,9 @@ namespace dbp void implCheckMoveButtons(); }; - //===================================================================== + //= ODefaultFieldSelectionPage - //===================================================================== + class ODefaultFieldSelectionPage : public OMaybeListSelectionPage { protected: @@ -141,9 +141,9 @@ namespace dbp OOptionGroupSettings& getSettings() { return static_cast<OGroupBoxWizard*>(getDialog())->getSettings(); } }; - //===================================================================== + //= OOptionValuesPage - //===================================================================== + class OOptionValuesPage : public OGBWPage { protected: @@ -174,9 +174,9 @@ namespace dbp DECL_LINK( OnOptionSelected, ListBox* ); }; - //===================================================================== + //= OOptionDBFieldPage - //===================================================================== + class OOptionDBFieldPage : public ODBFieldPage { public: @@ -189,9 +189,9 @@ namespace dbp virtual OUString& getDBFieldSetting(); }; - //===================================================================== + //= OFinalizeGBWPage - //===================================================================== + class OFinalizeGBWPage : public OGBWPage { protected: @@ -213,9 +213,9 @@ namespace dbp virtual bool canAdvance() const; }; -//......................................................................... + } // namespace dbp -//......................................................................... + #endif // _EXTENSIONS_DBP_GROUPBOXWIZ_HXX_ diff --git a/extensions/source/dbpilots/listcombowizard.cxx b/extensions/source/dbpilots/listcombowizard.cxx index d132c7651cfb..5cf9b66f1fce 100644 --- a/extensions/source/dbpilots/listcombowizard.cxx +++ b/extensions/source/dbpilots/listcombowizard.cxx @@ -30,10 +30,10 @@ #include "dbpilots.hrc" #include <comphelper/extract.hxx> -//......................................................................... + namespace dbp { -//......................................................................... + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -45,9 +45,9 @@ namespace dbp using namespace ::svt; using namespace ::dbtools; - //===================================================================== + //= OListComboWizard - //===================================================================== + OListComboWizard::OListComboWizard( Window* _pParent, const Reference< XPropertySet >& _rxObjectModel, const Reference< XComponentContext >& _rxContext ) @@ -219,9 +219,9 @@ namespace dbp return sal_True; } - //===================================================================== + //= OLCPage - //===================================================================== + Reference< XNameAccess > OLCPage::getTables(sal_Bool _bNeedIt) { @@ -270,9 +270,9 @@ namespace dbp return aColumnNames; } - //===================================================================== + //= OContentTableSelection - //===================================================================== + OContentTableSelection::OContentTableSelection( OListComboWizard* _pParent ) :OLCPage(_pParent, ModuleRes(RID_PAGE_LCW_CONTENTSELECTION_TABLE)) @@ -357,9 +357,9 @@ namespace dbp return sal_True; } - //===================================================================== + //= OContentFieldSelection - //===================================================================== + OContentFieldSelection::OContentFieldSelection( OListComboWizard* _pParent ) :OLCPage(_pParent, ModuleRes(RID_PAGE_LCW_CONTENTSELECTION_FIELD)) @@ -431,9 +431,9 @@ namespace dbp return sal_True; } - //===================================================================== + //= OLinkFieldsPage - //===================================================================== + OLinkFieldsPage::OLinkFieldsPage( OListComboWizard* _pParent ) :OLCPage(_pParent, ModuleRes(RID_PAGE_LCW_FIELDLINK)) @@ -510,9 +510,9 @@ namespace dbp return sal_True; } - //===================================================================== + //= OComboDBFieldPage - //===================================================================== + OComboDBFieldPage::OComboDBFieldPage( OControlWizard* _pParent ) :ODBFieldPage(_pParent) @@ -540,8 +540,8 @@ namespace dbp return false; } -//......................................................................... + } // namespace dbp -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/dbpilots/listcombowizard.hxx b/extensions/source/dbpilots/listcombowizard.hxx index f807bea73d36..0b594b6c79f2 100644 --- a/extensions/source/dbpilots/listcombowizard.hxx +++ b/extensions/source/dbpilots/listcombowizard.hxx @@ -23,10 +23,10 @@ #include "controlwizard.hxx" #include "commonpagesdbp.hxx" -//......................................................................... + namespace dbp { -//......................................................................... + #define LCW_STATE_DATASOURCE_SELECTION 0 #define LCW_STATE_TABLESELECTION 1 @@ -34,9 +34,9 @@ namespace dbp #define LCW_STATE_FIELDLINK 3 #define LCW_STATE_COMBODBFIELD 4 - //===================================================================== + //= OListComboSettings - //===================================================================== + struct OListComboSettings : public OControlWizardSettings { OUString sListContentTable; @@ -45,9 +45,9 @@ namespace dbp OUString sLinkedListField; }; - //===================================================================== + //= OListComboWizard - //===================================================================== + class OListComboWizard : public OControlWizard { protected: @@ -82,9 +82,9 @@ namespace dbp void implApplySettings(); }; - //===================================================================== + //= OLCPage - //===================================================================== + class OLCPage : public OControlWizardPage { public: @@ -101,9 +101,9 @@ namespace dbp getTableFields(sal_Bool _bNeedIt); }; - //===================================================================== + //= OContentTableSelection - //===================================================================== + class OContentTableSelection : public OLCPage { protected: @@ -128,9 +128,9 @@ namespace dbp DECL_LINK( OnTableSelected, ListBox* ); }; - //===================================================================== + //= OContentFieldSelection - //===================================================================== + class OContentFieldSelection : public OLCPage { protected: @@ -158,9 +158,9 @@ namespace dbp virtual bool canAdvance() const; }; - //===================================================================== + //= OLinkFieldsPage - //===================================================================== + class OLinkFieldsPage : public OLCPage { protected: @@ -190,9 +190,9 @@ namespace dbp DECL_LINK(OnSelectionModified, void*); }; - //===================================================================== + //= OComboDBFieldPage - //===================================================================== + class OComboDBFieldPage : public ODBFieldPage { public: @@ -211,9 +211,9 @@ namespace dbp virtual OUString& getDBFieldSetting(); }; -//......................................................................... + } // namespace dbp -//......................................................................... + #endif // _EXTENSIONS_DBP_LISTCOMBOWIZARD_HXX_ diff --git a/extensions/source/dbpilots/optiongrouplayouter.cxx b/extensions/source/dbpilots/optiongrouplayouter.cxx index 91e929351b17..aad8888f7e71 100644 --- a/extensions/source/dbpilots/optiongrouplayouter.cxx +++ b/extensions/source/dbpilots/optiongrouplayouter.cxx @@ -31,10 +31,10 @@ #include "groupboxwiz.hxx" #include "dbptools.hxx" -//......................................................................... + namespace dbp { -//......................................................................... + #define BUTTON_HEIGHT 300 #define HEIGHT 450 @@ -50,9 +50,9 @@ namespace dbp using namespace ::com::sun::star::text; using namespace ::com::sun::star::view; - //===================================================================== + //= OOptionGroupLayouter - //===================================================================== + OOptionGroupLayouter::OOptionGroupLayouter(const Reference< XComponentContext >& _rxContext) :mxContext(_rxContext) @@ -196,8 +196,8 @@ namespace dbp _rxShapeProps->setPropertyValue(s_sAnchorPropertyName, makeAny(TextContentAnchorType_AT_PAGE)); } -//......................................................................... + } // namespace dbp -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/dbpilots/optiongrouplayouter.hxx b/extensions/source/dbpilots/optiongrouplayouter.hxx index 0a0c8707a888..54c2113ab3b3 100644 --- a/extensions/source/dbpilots/optiongrouplayouter.hxx +++ b/extensions/source/dbpilots/optiongrouplayouter.hxx @@ -27,16 +27,16 @@ #include <com/sun/star/frame/XModel.hpp> #include "dbptypes.hxx" -//......................................................................... + namespace dbp { -//......................................................................... + struct OControlWizardContext; struct OOptionGroupSettings; - //===================================================================== + //= OOptionGroupLayouter - //===================================================================== + class OOptionGroupLayouter { ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > @@ -59,9 +59,9 @@ namespace dbp ); }; -//......................................................................... + } // namespace dbp -//......................................................................... + #endif // _EXTENSIONS_DBP_OPTIONGROUPLAYOUTER_HXX_ diff --git a/extensions/source/dbpilots/unoautopilot.hxx b/extensions/source/dbpilots/unoautopilot.hxx index 3596c50578a0..7e3d8fbcbb34 100644 --- a/extensions/source/dbpilots/unoautopilot.hxx +++ b/extensions/source/dbpilots/unoautopilot.hxx @@ -28,14 +28,14 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/PropertyValue.hpp> -//......................................................................... + namespace dbp { -//......................................................................... - //===================================================================== + + //= IServiceInfo - //===================================================================== + /** interface for the SERVICEINFO template parameter of the OUnoAutoPilot class */ struct IServiceInfo @@ -46,9 +46,9 @@ namespace dbp getServiceNames() const; }; - //===================================================================== + //= OUnoAutoPilot - //===================================================================== + typedef ::svt::OGenericUnoDialog OUnoAutoPilot_Base; template <class TYPE, class SERVICEINFO> class OUnoAutoPilot @@ -91,9 +91,9 @@ namespace dbp #include "unoautopilot.inl" -//......................................................................... + } // namespace dbp -//......................................................................... + #endif // _EXTENSIONS_DBP_UNOAUTOPILOT_HXX_ diff --git a/extensions/source/dbpilots/unoautopilot.inl b/extensions/source/dbpilots/unoautopilot.inl index d42bfacf1480..a602fe3fc577 100644 --- a/extensions/source/dbpilots/unoautopilot.inl +++ b/extensions/source/dbpilots/unoautopilot.inl @@ -19,16 +19,16 @@ // no include protection // this file is included from unoautopilot.hxx directly -//===================================================================== + //= OUnoAutoPilot -//===================================================================== + template <class TYPE, class SERVICEINFO> OUnoAutoPilot<TYPE, SERVICEINFO>::OUnoAutoPilot(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB) :OUnoAutoPilot_Base(_rxORB) { } -//--------------------------------------------------------------------- + template <class TYPE, class SERVICEINFO> ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::getImplementationId( ) throw(::com::sun::star::uno::RuntimeException, std::exception) { @@ -36,42 +36,42 @@ template <class TYPE, class SERVICEINFO> return aId.getImplementationId(); } -//--------------------------------------------------------------------- + template <class TYPE, class SERVICEINFO> ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::Create(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) { return *(new OUnoAutoPilot<TYPE, SERVICEINFO>( comphelper::getComponentContext(_rxFactory) )); } -//--------------------------------------------------------------------- + template <class TYPE, class SERVICEINFO> ::rtl::OUString SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::getImplementationName() throw(::com::sun::star::uno::RuntimeException, std::exception) { return getImplementationName_Static(); } -//--------------------------------------------------------------------- + template <class TYPE, class SERVICEINFO> ::rtl::OUString OUnoAutoPilot<TYPE, SERVICEINFO>::getImplementationName_Static() throw(::com::sun::star::uno::RuntimeException) { return SERVICEINFO().getImplementationName(); } -//--------------------------------------------------------------------- + template <class TYPE, class SERVICEINFO> ::comphelper::StringSequence SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) { return getSupportedServiceNames_Static(); } -//--------------------------------------------------------------------- + template <class TYPE, class SERVICEINFO> ::comphelper::StringSequence OUnoAutoPilot<TYPE, SERVICEINFO>::getSupportedServiceNames_Static() throw(::com::sun::star::uno::RuntimeException) { return SERVICEINFO().getServiceNames(); } -//--------------------------------------------------------------------- + template <class TYPE, class SERVICEINFO> ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException, std::exception) { @@ -79,14 +79,14 @@ template <class TYPE, class SERVICEINFO> return xInfo; } -//--------------------------------------------------------------------- + template <class TYPE, class SERVICEINFO> ::cppu::IPropertyArrayHelper& OUnoAutoPilot<TYPE, SERVICEINFO>::getInfoHelper() { return *const_cast<OUnoAutoPilot*>(this)->getArrayHelper(); } -//-------------------------------------------------------------------------- + template <class TYPE, class SERVICEINFO> ::cppu::IPropertyArrayHelper* OUnoAutoPilot<TYPE, SERVICEINFO>::createArrayHelper( ) const { @@ -95,14 +95,14 @@ template <class TYPE, class SERVICEINFO> return new ::cppu::OPropertyArrayHelper(aProps); } -//-------------------------------------------------------------------------- + template <class TYPE, class SERVICEINFO> Dialog* OUnoAutoPilot<TYPE, SERVICEINFO>::createDialog(Window* _pParent) { return new TYPE(_pParent, m_xObjectModel, m_aContext); } -//-------------------------------------------------------------------------- + template <class TYPE, class SERVICEINFO> void OUnoAutoPilot<TYPE, SERVICEINFO>::implInitialize(const com::sun::star::uno::Any& _rValue) { diff --git a/extensions/source/dbpilots/wizardcontext.hxx b/extensions/source/dbpilots/wizardcontext.hxx index 6f23877f4468..ec4ea9f3202c 100644 --- a/extensions/source/dbpilots/wizardcontext.hxx +++ b/extensions/source/dbpilots/wizardcontext.hxx @@ -33,14 +33,14 @@ #include <com/sun/star/drawing/XControlShape.hpp> #include <com/sun/star/frame/XModel.hpp> -//......................................................................... + namespace dbp { -//......................................................................... - //===================================================================== + + //= OControlWizardContext - //===================================================================== + struct OControlWizardContext { // the global data source context @@ -80,9 +80,9 @@ namespace dbp sal_Bool bEmbedded; }; -//......................................................................... + } // namespace dbp -//......................................................................... + #endif // _EXTENSIONS_DBP_WIZARDCONTEXT_HXX_ diff --git a/extensions/source/dbpilots/wizardservices.cxx b/extensions/source/dbpilots/wizardservices.cxx index 12e706d78cf6..e52eb28b6d87 100644 --- a/extensions/source/dbpilots/wizardservices.cxx +++ b/extensions/source/dbpilots/wizardservices.cxx @@ -46,16 +46,16 @@ extern "C" void SAL_CALL createRegistryInfo_OGridWizard() > aAutoRegistration; } -//......................................................................... + namespace dbp { -//......................................................................... + using namespace ::com::sun::star::uno; - //===================================================================== + //= OGroupBoxSI - //===================================================================== + OUString OGroupBoxSI::getImplementationName() const { @@ -70,9 +70,9 @@ namespace dbp return aReturn; } - //===================================================================== + //= OListComboSI - //===================================================================== + OUString OListComboSI::getImplementationName() const { @@ -87,9 +87,9 @@ namespace dbp return aReturn; } - //===================================================================== + //= OGridSI - //===================================================================== + OUString OGridSI::getImplementationName() const { @@ -104,8 +104,8 @@ namespace dbp return aReturn; } -//......................................................................... + } // namespace dbp -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/source/dbpilots/wizardservices.hxx b/extensions/source/dbpilots/wizardservices.hxx index e952fbae61a6..fbcc9a785c24 100644 --- a/extensions/source/dbpilots/wizardservices.hxx +++ b/extensions/source/dbpilots/wizardservices.hxx @@ -23,14 +23,14 @@ #include <com/sun/star/uno/Sequence.hxx> #include <rtl/ustring.hxx> -//......................................................................... + namespace dbp { -//......................................................................... - //===================================================================== + + //= OGroupBoxSI - //===================================================================== + /// service info for the group box wizard struct OGroupBoxSI { @@ -40,9 +40,9 @@ namespace dbp getServiceNames() const; }; - //===================================================================== + //= OListComboSI - //===================================================================== + /// service info for the list/combo box wizard struct OListComboSI { @@ -52,9 +52,9 @@ namespace dbp getServiceNames() const; }; - //===================================================================== + //= OGridSI - //===================================================================== + /// service info for the grid wizard struct OGridSI { @@ -64,9 +64,9 @@ namespace dbp getServiceNames() const; }; -//......................................................................... + } // namespace dbp -//......................................................................... + #endif // _EXTENSIONS_DBW_WIZARDSERVICES_HXX_ |