You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2022/09/27 21:25:54 UTC

[openoffice] branch AOO42X updated (2176ad32da -> 0c84c94f7d)

This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a change to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


    from 2176ad32da Small change in dialog
     new ae769d8d50 Proposed fix for Issue 60217 (#155)
     new 0c84c94f7d Add fixed line in dialog

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 main/sw/source/ui/fldui/changedb.cxx |  9 ++++++---
 main/sw/source/ui/fldui/changedb.hrc | 37 ++++++++++++++++++------------------
 main/sw/source/ui/fldui/changedb.src | 13 +++++++++----
 main/sw/source/ui/inc/changedb.hxx   | 32 ++++++++++++++++---------------
 4 files changed, 50 insertions(+), 41 deletions(-)


[openoffice] 01/02: Proposed fix for Issue 60217 (#155)

Posted by ms...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit ae769d8d50925c2c3443cb1d7e8b59338fd22b6a
Author: Peter <le...@users.noreply.github.com>
AuthorDate: Tue Sep 27 23:12:39 2022 +0200

    Proposed fix for Issue 60217 (#155)
    
    A dot is only added if both Variables rDBData.sDataSource and sCommand contain something. Otherwise the dot is not added
    
    Co-authored-by: Matthias Seidel <ms...@apache.org>
    (cherry picked from commit b0300d3f06359ce6369a816bca32e2f34a230253)
---
 main/sw/source/ui/fldui/changedb.cxx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/main/sw/source/ui/fldui/changedb.cxx b/main/sw/source/ui/fldui/changedb.cxx
index df8795ecc7..48eb663a8f 100644
--- a/main/sw/source/ui/fldui/changedb.cxx
+++ b/main/sw/source/ui/fldui/changedb.cxx
@@ -327,14 +327,16 @@ IMPL_LINK( SwChangeDBDlg, TreeSelectHdl, SvTreeListBox *, EMPTYARG )
 }
 
 /*--------------------------------------------------------------------
-	Beschreibung: Datenbankname fuer Anzeige wandeln
+	Description: transform databasename for screen
  --------------------------------------------------------------------*/
 
 void SwChangeDBDlg::ShowDBName(const SwDBData& rDBData)
 {
-	String sTmp(rDBData.sDataSource);
 	String sName;
-	sTmp += '.';
+	String sTmp(rDBData.sDataSource);
+	if (!rDBData.sDataSource.isEmpty() && !rDBData.sCommand.isEmpty()) {
+		sTmp += '.';
+	}
 	sTmp += (String)rDBData.sCommand;
 
 	for (sal_uInt16 i = 0; i < sTmp.Len(); i++)


[openoffice] 02/02: Add fixed line in dialog

Posted by ms...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 0c84c94f7ddce5a42af2a789f2a17466ef33eb67
Author: mseidel <ms...@apache.org>
AuthorDate: Tue Sep 27 23:17:05 2022 +0200

    Add fixed line in dialog
    
    (cherry picked from commit 24cebcdcd082893769c03848515688e48399d033)
---
 main/sw/source/ui/fldui/changedb.cxx |  1 +
 main/sw/source/ui/fldui/changedb.hrc | 37 ++++++++++++++++++------------------
 main/sw/source/ui/fldui/changedb.src | 13 +++++++++----
 main/sw/source/ui/inc/changedb.hxx   | 32 ++++++++++++++++---------------
 4 files changed, 45 insertions(+), 38 deletions(-)

diff --git a/main/sw/source/ui/fldui/changedb.cxx b/main/sw/source/ui/fldui/changedb.cxx
index 48eb663a8f..2eec82bc73 100644
--- a/main/sw/source/ui/fldui/changedb.cxx
+++ b/main/sw/source/ui/fldui/changedb.cxx
@@ -94,6 +94,7 @@ SwChangeDBDlg::SwChangeDBDlg(SwView& rVw) :
 	aOKBT		(this, SW_RES(BT_OK      	)),
 	aCancelBT	(this, SW_RES(BT_CANCEL  	)),
 	aHelpBT		(this, SW_RES(BT_HELP    	)),
+    aApplDBFL   (this, SW_RES(FL_APPLDB     )),
 //	aChangeBT	(this, SW_RES(BT_CHANGEDB    )),
     aImageList      (SW_RES(ILIST_DB_DLG    )),
     aImageListHC    (SW_RES(ILIST_DB_DLG_HC )),
diff --git a/main/sw/source/ui/fldui/changedb.hrc b/main/sw/source/ui/fldui/changedb.hrc
index 9f18cf5054..519ff20bd4 100644
--- a/main/sw/source/ui/fldui/changedb.hrc
+++ b/main/sw/source/ui/fldui/changedb.hrc
@@ -1,5 +1,5 @@
 /**************************************************************
- * 
+ *
  * 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
@@ -7,16 +7,16 @@
  * 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
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
- * 
+ *
  *************************************************************/
 
 
@@ -26,9 +26,9 @@
 
 // #include -----------------------------------------------------------------
 
-// Elemente -----------------------------------------------------------------
+// Elements -----------------------------------------------------------------
 
-#define FT_DESC         1
+#define FT_DESC			1
 #define FT_DOCDBTEXT	2
 #define FT_DOCDBNAME	3
 #define BT_CHANGEDB		4
@@ -36,23 +36,22 @@
 #define FT_AVAILDB		6
 #define TLB_USEDDB		7
 #define TLB_AVAILDB		8
-#define FL_DBLIST               9
-#define	BT_OK          10
-#define	BT_CANCEL      11
-#define BT_HELP        12
-#define PB_ADDDB       13
+#define FL_DBLIST		9
+#define BT_OK			10
+#define BT_CANCEL		11
+#define BT_HELP			12
+#define PB_ADDDB		13
+#define FL_APPLDB		14
 
 
 /*--------------------------------------------------------------------
-	Beschreibung: Bitmaps
+	Description: Bitmaps
  --------------------------------------------------------------------*/
 
-#define IMG_COLLAPSE        18002  /*RID_SVXIMG_COLLAPSEDNODE*/
-#define IMG_EXPAND          18003  /*RID_SVXIMG_EXPANDEDNODE*/
-#define IMG_DB                  1
-#define IMG_DBTABLE             2
-#define IMG_DBQUERY             3
+#define IMG_COLLAPSE	18002 /*RID_SVXIMG_COLLAPSEDNODE*/
+#define IMG_EXPAND		18003 /*RID_SVXIMG_EXPANDEDNODE*/
+#define IMG_DB			1
+#define IMG_DBTABLE		2
+#define IMG_DBQUERY		3
 
 #endif
-
-
diff --git a/main/sw/source/ui/fldui/changedb.src b/main/sw/source/ui/fldui/changedb.src
index 7bbe153546..a79d050c24 100644
--- a/main/sw/source/ui/fldui/changedb.src
+++ b/main/sw/source/ui/fldui/changedb.src
@@ -84,17 +84,22 @@ ModalDialog DLG_CHANGE_DB
 		Left = TRUE ;
 		Text [ en-US ] = "Use this dialog to replace the databases you access in your document via database fields, with other databases. You can only make one change at a time. Multiple selection is possible in the list on the left.\nUse the browse button to select a database file." ;
 	};
+	FixedLine FL_APPLDB
+	{
+		Pos = MAP_APPFONT ( 6, 154 ) ;
+		Size = MAP_APPFONT ( 274, 8 ) ;
+	};
 	FixedText FT_DOCDBTEXT
 	{
-		Pos = MAP_APPFONT ( 12, 161 ) ;
-		Size = MAP_APPFONT ( 100, 8 ) ;
+		Pos = MAP_APPFONT ( 6, 162 ) ;
+		Size = MAP_APPFONT ( 106, 8 ) ;
 		Left = TRUE ;
 		Text [ en-US ] = "Database applied to document:" ;
 	};
 	FixedText FT_DOCDBNAME
 	{
-		Pos = MAP_APPFONT ( 118, 161 ) ;
-		Size = MAP_APPFONT ( 114, 8 ) ;
+		Pos = MAP_APPFONT ( 118, 162 ) ;
+		Size = MAP_APPFONT ( 162, 8 ) ;
 		Left = TRUE ;
 		Text [ en-US ] = "Addresses.Addresses" ;
 	};
diff --git a/main/sw/source/ui/inc/changedb.hxx b/main/sw/source/ui/inc/changedb.hxx
index f9da3fd2db..2ef94076b8 100644
--- a/main/sw/source/ui/inc/changedb.hxx
+++ b/main/sw/source/ui/inc/changedb.hxx
@@ -1,5 +1,5 @@
 /**************************************************************
- * 
+ *
  * 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
@@ -7,19 +7,20 @@
  * 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
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
- * 
+ *
  *************************************************************/
 
 
+
 #ifndef _CHANGEDB_HXX
 #define _CHANGEDB_HXX
 
@@ -45,36 +46,37 @@ class SwWrtShell;
 struct SwDBData;
 
 /*--------------------------------------------------------------------
-	 Beschreibung: Datenbank an Feldern austauschen
+	Description: Exchange database
  --------------------------------------------------------------------*/
 
 class SwChangeDBDlg: public SvxStandardDialog
 {
-    FixedLine       aDBListFL;
+	FixedLine		aDBListFL;
 	FixedText		aUsedDBFT;
 	FixedText		aAvailDBFT;
 	SvTreeListBox	aUsedDBTLB;
 	SwDBTreeList	aAvailDBTLB;
-    PushButton      aAddDBPB;
+	PushButton		aAddDBPB;
 	FixedInfo		aDescFT;
 	FixedText		aDocDBTextFT;
 	FixedText		aDocDBNameFT;
-	OKButton  		aOKBT;
-	CancelButton 	aCancelBT;
-	HelpButton 		aHelpBT;
+	OKButton		aOKBT;
+	CancelButton	aCancelBT;
+	HelpButton		aHelpBT;
+	FixedLine		aApplDBFL;
 //	PushButton		aChangeBT;
 
-    ImageList       aImageList;
-    ImageList       aImageListHC;
+	ImageList		aImageList;
+	ImageList		aImageListHC;
 
-    SwWrtShell      *pSh;
+	SwWrtShell		*pSh;
 	SwFldMgr		*pMgr;
 
 	DECL_LINK(TreeSelectHdl, SvTreeListBox* pBox = 0);
 	DECL_LINK(ButtonHdl, Button* pBtn);
-    DECL_LINK(AddDBHdl, PushButton*);
+	DECL_LINK(AddDBHdl, PushButton*);
 
-	virtual void 	Apply();
+	virtual void	Apply();
 	void			UpdateFlds();
 	void			FillDBPopup();
 	SvLBoxEntry*	Insert(const String& rDBName);