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

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


The following commit(s) were added to refs/heads/trunk by this push:
     new 24cebcdcd0 Add fixed line in dialog
24cebcdcd0 is described below

commit 24cebcdcd082893769c03848515688e48399d033
Author: mseidel <[email protected]>
AuthorDate: Tue Sep 27 23:17:05 2022 +0200

    Add fixed line in dialog
---
 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);

Reply via email to