2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2000-09-18 16:15:01 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 18:49:09 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 18:49:09 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 18:49:09 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 18:49:09 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 18:49:09 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 18:49:09 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _CHANGEDB_HXX
|
|
|
|
#define _CHANGEDB_HXX
|
|
|
|
|
|
|
|
|
|
|
|
#include <vcl/bitmap.hxx>
|
|
|
|
#include <vcl/button.hxx>
|
|
|
|
#include <vcl/fixed.hxx>
|
|
|
|
#include <svtools/stdctrl.hxx>
|
2012-10-11 16:13:12 -04:00
|
|
|
#include <svtools/treelistbox.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
#include <svx/stddlg.hxx>
|
|
|
|
#include "dbtree.hxx"
|
|
|
|
|
|
|
|
class SwFldMgr;
|
|
|
|
class SwView;
|
|
|
|
class SwWrtShell;
|
2001-02-21 11:27:37 +00:00
|
|
|
struct SwDBData;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
/*--------------------------------------------------------------------
|
2011-04-20 15:36:36 +02:00
|
|
|
Description: exchange database at fields
|
2000-09-18 16:15:01 +00:00
|
|
|
--------------------------------------------------------------------*/
|
|
|
|
class SwChangeDBDlg: public SvxStandardDialog
|
|
|
|
{
|
2001-05-21 11:29:30 +00:00
|
|
|
FixedLine aDBListFL;
|
2000-09-18 16:15:01 +00:00
|
|
|
FixedText aUsedDBFT;
|
|
|
|
FixedText aAvailDBFT;
|
|
|
|
SvTreeListBox aUsedDBTLB;
|
|
|
|
SwDBTreeList aAvailDBTLB;
|
2004-08-02 13:22:51 +00:00
|
|
|
PushButton aAddDBPB;
|
2001-05-21 11:29:30 +00:00
|
|
|
FixedInfo aDescFT;
|
2000-09-18 16:15:01 +00:00
|
|
|
FixedText aDocDBTextFT;
|
|
|
|
FixedText aDocDBNameFT;
|
|
|
|
OKButton aOKBT;
|
|
|
|
CancelButton aCancelBT;
|
|
|
|
HelpButton aHelpBT;
|
2002-05-31 06:19:24 +00:00
|
|
|
|
|
|
|
ImageList aImageList;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
SwWrtShell *pSh;
|
|
|
|
SwFldMgr *pMgr;
|
|
|
|
|
2012-03-01 18:00:32 +01:00
|
|
|
DECL_LINK(TreeSelectHdl, void * = 0);
|
|
|
|
DECL_LINK(ButtonHdl, void *);
|
|
|
|
DECL_LINK(AddDBHdl, void *);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
virtual void Apply();
|
|
|
|
void UpdateFlds();
|
|
|
|
void FillDBPopup();
|
2012-10-18 16:28:20 +02:00
|
|
|
SvTreeListEntry* Insert(const String& rDBName);
|
2001-02-21 11:27:37 +00:00
|
|
|
void ShowDBName(const SwDBData& rDBData);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
SwChangeDBDlg(SwView& rVw);
|
|
|
|
~SwChangeDBDlg();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|