summaryrefslogtreecommitdiff
path: root/soldep
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-12-21 11:22:58 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-12-21 11:22:58 +0000
commitc9c5419ceafc2bd29dcfe11474df02ec81f48f3b (patch)
treebf4cd2419f4687394af55ae1b77bc621c596fe1e /soldep
parente63ebce60b5b57627db5928cd538f0684efde81e (diff)
INTEGRATION: CWS soldep2 (1.2.2); FILE MERGED
2006/12/01 15:09:13 obo 1.2.2.2: undo disableing of fill list box 2006/11/21 16:27:54 obo 1.2.2.1: #143484# dialog for workspace has to support minors
Diffstat (limited to 'soldep')
-rw-r--r--soldep/source/soldlg.cxx35
1 files changed, 27 insertions, 8 deletions
diff --git a/soldep/source/soldlg.cxx b/soldep/source/soldlg.cxx
index 551cde91cad7..b6691f40c08d 100644
--- a/soldep/source/soldlg.cxx
+++ b/soldep/source/soldlg.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: soldlg.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: obo $ $Date: 2006-04-20 15:15:01 $
+ * last change: $Author: ihi $ $Date: 2006-12-21 12:22:58 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -50,6 +50,8 @@
#define POS(nX, nY) \
LogicToLogic(Point(nX,nY),MapMode(MAP_APPFONT),GetMapMode())
#endif
+
+
//
// class SolNewProjectDlg
//
@@ -164,11 +166,12 @@ SolSelectVersionDlg::SolSelectVersionDlg(
: ModalDialog( pParent, DtSodResId( DLG_VERSIONSELECT )),
maVersionListBox( this, DtSodResId( DLG_VERSIONSELECT_LISTBOX )),
maVersionGroupBox( this, DtSodResId( DLG_VERSIONSELECT_GROUP )),
+ maMinorEditBox( this, DtSodResId( DLG_MINORSELECT_EDIT )),
+ maMinorGroupBox( this, DtSodResId( DLG_MINORSELECT_GROUP )),
maOKButton( this, DtSodResId( DLG_VERSIONSELECT_OK )),
maCancelButton( this, DtSodResId( DLG_VERSIONSELECT_CANCEL ))
{
FreeResource();
-
//Fill the ListBox with MWS versions (e.g. SRC680) from "stand.lst"
for ( ULONG i = 0; i < pStandLst->Count(); i++ ) {
String sVersion( *pStandLst->GetObject( i ), RTL_TEXTENCODING_ASCII_US );
@@ -180,17 +183,33 @@ SolSelectVersionDlg::SolSelectVersionDlg(
maVersionListBox.SetDoubleClickHdl(
LINK( this, SolSelectVersionDlg, DoubleClickHdl ));
+
}
/*****************************************************************************/
-ByteString SolSelectVersionDlg::GetVersion()
+ByteString SolSelectVersionDlg::GetVersionMajor()
/*****************************************************************************/
{
//Returns the selected version
- ByteString sReturn(
- maVersionListBox.GetSelectEntry(), RTL_TEXTENCODING_ASCII_US );
+ return ByteString(maVersionListBox.GetSelectEntry(), RTL_TEXTENCODING_ASCII_US );
+}
- return sReturn;
+/*****************************************************************************/
+ByteString SolSelectVersionDlg::GetVersionMinor()
+/*****************************************************************************/
+{
+ //Returns the minor
+ ByteString minor = ByteString(maMinorEditBox.GetText(), RTL_TEXTENCODING_ASCII_US );
+ //check for correctness (format: "m1234")
+ //"m123s8" is unsupported because 'steps' aren't used anymore
+ minor.EraseLeadingAndTrailingChars();
+ int check = minor.SearchChar("m");
+ if (check == 0)
+ {
+ ByteString check2 = minor.Copy(1,(minor.Len()-1));
+ if (check2.IsNumericAscii()) return minor;
+ }
+ return ByteString("");
}
/*****************************************************************************/
@@ -253,4 +272,4 @@ SolFindProjectDlg::SolFindProjectDlg( Window *pParent, ObjWinList* pObjList )
ByteString SolFindProjectDlg::GetProject()
{
return ByteString(maCombobox.GetText(),RTL_TEXTENCODING_UTF8);
-}
+} \ No newline at end of file