summaryrefslogtreecommitdiff
path: root/extensions/source/dbpilots/commonpagesdbp.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/dbpilots/commonpagesdbp.hxx')
-rw-r--r--extensions/source/dbpilots/commonpagesdbp.hxx65
1 files changed, 63 insertions, 2 deletions
diff --git a/extensions/source/dbpilots/commonpagesdbp.hxx b/extensions/source/dbpilots/commonpagesdbp.hxx
index 59ee1316079f..0ce72967f448 100644
--- a/extensions/source/dbpilots/commonpagesdbp.hxx
+++ b/extensions/source/dbpilots/commonpagesdbp.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: commonpagesdbp.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: fs $ $Date: 2001-02-23 15:19:08 $
+ * last change: $Author: fs $ $Date: 2001-02-28 09:18:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -118,6 +118,64 @@ namespace dbp
virtual sal_Bool determineNextButtonState();
};
+ //=====================================================================
+ //= OMaybeListSelectionPage
+ //=====================================================================
+ class OMaybeListSelectionPage : public OControlWizardPage
+ {
+ protected:
+ RadioButton* m_pYes;
+ RadioButton* m_pNo;
+ ListBox* m_pList;
+
+ public:
+ OMaybeListSelectionPage( OControlWizard* _pParent, const ResId& _rId );
+
+ protected:
+ DECL_LINK( OnRadioSelected, RadioButton* );
+
+ // TabPage overridables
+ void ActivatePage();
+
+ // own helper
+ void announceControls(
+ RadioButton& _rYesButton,
+ RadioButton& _rNoButton,
+ ListBox& _rSelection);
+
+ void implEnableWindows();
+
+ void implInitialize(const String& _rSelection);
+ void implCommit(String& _rSelection);
+ };
+
+ //=====================================================================
+ //= ODBFieldPage
+ //=====================================================================
+ class ODBFieldPage : public OMaybeListSelectionPage
+ {
+ protected:
+ FixedLine m_aFrame;
+ FixedText m_aDescription;
+ FixedText m_aQuestion;
+ RadioButton m_aStoreYes;
+ RadioButton m_aStoreNo;
+ ListBox m_aStoreWhere;
+
+ public:
+ ODBFieldPage( OControlWizard* _pParent );
+
+ protected:
+ void setDescriptionText(const String& _rDesc) { m_aDescription.SetText(_rDesc); }
+
+ // OWizardPage overridables
+ virtual void initializePage();
+ virtual sal_Bool commitPage(COMMIT_REASON _eReason);
+
+ // own overridables
+ virtual String& getDBFieldSetting() = 0;
+ };
+
//.........................................................................
} // namespace dbp
//.........................................................................
@@ -128,6 +186,9 @@ namespace dbp
/*************************************************************************
* history:
* $Log: not supported by cvs2svn $
+ * Revision 1.2 2001/02/23 15:19:08 fs
+ * some changes / centralizations - added the list-/combobox wizard
+ *
* Revision 1.1 2001/02/21 09:21:45 fs
* initial checkin - form control auto pilots
*