diff options
Diffstat (limited to 'sw/source/ui/inc')
163 files changed, 24765 insertions, 0 deletions
diff --git a/sw/source/ui/inc/abstract.hxx b/sw/source/ui/inc/abstract.hxx new file mode 100644 index 000000000000..6b86b66b553e --- /dev/null +++ b/sw/source/ui/inc/abstract.hxx @@ -0,0 +1,113 @@ +/************************************************************************* + * + * $RCSfile: abstract.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _ABSTRACT_HXX +#define _ABSTRACT_HXX + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + + +/*-----------------22.02.97 15.06------------------- + +--------------------------------------------------*/ +class SwInsertAbstractDlg : public SfxModalDialog +{ + GroupBox aGB; + FixedText aLevelFT; + NumericField aLevelNF; + FixedText aParaFT; + NumericField aParaNF; + FixedText aDescFT; + OKButton aOkPB; + CancelButton aCancelPB; + HelpButton aHelpPB; + +protected: + +public: + SwInsertAbstractDlg( Window* pParent ); + ~SwInsertAbstractDlg(); + + BYTE GetLevel() const; + BYTE GetPara() const; +}; + +#endif + + + diff --git a/sw/source/ui/inc/actctrl.hxx b/sw/source/ui/inc/actctrl.hxx new file mode 100644 index 000000000000..22d82bb653b3 --- /dev/null +++ b/sw/source/ui/inc/actctrl.hxx @@ -0,0 +1,123 @@ +/************************************************************************* + * + * $RCSfile: actctrl.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _ACTCTRL_HXX +#define _ACTCTRL_HXX + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +/*-------------------------------------------------------------------- + Beschreibung: numerische Eingabe + --------------------------------------------------------------------*/ + +class NumEditAction: public NumericField +{ + Link aActionLink; + +protected: + virtual void Action(); +#ifdef VCL + virtual long Notify( NotifyEvent& rNEvt ); +#else + virtual long ParentNotify( NotifyEvent& rNEvt ); +#endif +public: + NumEditAction( Window* pParent, const ResId& rResId ) : + NumericField(pParent, rResId) {} + + void SetActionHdl( const Link& rLink ) { aActionLink = rLink;} + const Link& GetActionHdl() const { return aActionLink; } +}; + + +/* -----------------21.04.98 08:11------------------- + * Edit, dass keine Spaces akzeptiert + * --------------------------------------------------*/ +class NoSpaceEdit : public Edit +{ + String sForbiddenChars; +protected: + virtual void KeyInput( const KeyEvent& ); + virtual void Modify(); + +public: + NoSpaceEdit( Window* pParent, const ResId& rResId) + : Edit(pParent, rResId), + sForbiddenChars(String::CreateFromAscii(" ")) + {} + void SetForbiddenChars(const String& rSet){sForbiddenChars = rSet;} + const String& GetForbiddenChars(){return sForbiddenChars;} +}; + +/* -----------------21.04.98 08:33------------------- + * Kein Space und kein Punkt + * --------------------------------------------------*/ +class TableNameEdit : public NoSpaceEdit +{ +public: + TableNameEdit(Window* pWin, const ResId& rResId) : + NoSpaceEdit(pWin, rResId) + {SetForbiddenChars(String::CreateFromAscii(" .<>"));} +}; + + +#endif diff --git a/sw/source/ui/inc/addrdlg.hxx b/sw/source/ui/inc/addrdlg.hxx new file mode 100644 index 000000000000..08e34cf777ef --- /dev/null +++ b/sw/source/ui/inc/addrdlg.hxx @@ -0,0 +1,80 @@ +/************************************************************************* + * + * $RCSfile: addrdlg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _ADDRDLG_HXX +#define _ADDRDLG_HXX + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif + +class SwAddrDlg : public SfxSingleTabDialog +{ +public: + + SwAddrDlg( Window* pParent, SfxItemSet& rSet ); + ~SwAddrDlg(); +}; + +#endif + + + + diff --git a/sw/source/ui/inc/app.hrc b/sw/source/ui/inc/app.hrc new file mode 100644 index 000000000000..11a0ad808cb1 --- /dev/null +++ b/sw/source/ui/inc/app.hrc @@ -0,0 +1,204 @@ +/************************************************************************* + * + * $RCSfile: app.hrc,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _APP_HRC +#define _APP_HRC + +#include "rcid.hrc" + +// Default Bitmap fuer ToolBox +#define BMP_FEHLT (RC_APP_BEGIN + 1) + +// Document-Icon +#define RC_DOC_ICON (RC_APP_BEGIN + 2) + +//Soll das Clipboard fuer andere Applikationen... +#define MSG_CLPBRD_CLEAR (RC_APP_BEGIN + 3) + +#define STR_CANTCREATE (RC_APP_BEGIN + 4) +#define STR_CANTOPEN (RC_APP_BEGIN + 5) + +// Messages +#define MSG_ERROR_SEND_MAIL ( RC_APP_BEGIN + 6) +#define MSG_SAVE_HTML_QUERY ( RC_APP_BEGIN + 7) + +//Fuer das Interface, weil der RID_APP_BEGIN jetzt Desktop ist. +#define RID_SW_NAME ( RC_APP_BEGIN + 8) + +#define MSG_INDEX_OVERFLOW ( RC_APP_BEGIN + 10) + +#define STR_UNBENANNT (RC_APP_BEGIN + 13) +#define STR_VERSION (RC_APP_BEGIN + 14) +#define STR_PRINT_MERGE_MACRO (RC_APP_BEGIN + 15) +#define STR_PAGE_COUNT_MACRO (RC_APP_BEGIN + 16) + +// Bitmap fuer die NumerierungsVorlagen im Organizer +#define BMP_STYLES_FAMILY_NUM (RC_APP_BEGIN + 17) + +// Strings fuer Bereiche in der Konfiguration +#define STR_GRP_FILE (RC_APP_BEGIN + 56) +#define STR_GRP_EDIT (RC_APP_BEGIN + 57) +#define STR_GRP_TRAVELLING (RC_APP_BEGIN + 58) +#define STR_GRP_VIEW (RC_APP_BEGIN + 59) +#define STR_GRP_INSERT (RC_APP_BEGIN + 60) +#define STR_GRP_FORMAT (RC_APP_BEGIN + 61) +#define STR_GRP_STYLE (RC_APP_BEGIN + 62) +#define STR_GRP_TEXT (RC_APP_BEGIN + 63) +#define STR_GRP_FRAME (RC_APP_BEGIN + 64) +#define STR_GRP_GRAPHIC (RC_APP_BEGIN + 65) +#define STR_GRP_TABLE (RC_APP_BEGIN + 66) +#define STR_GRP_TOOLS (RC_APP_BEGIN + 67) +#define STR_GRP_NUMBERING (RC_APP_BEGIN + 68) +#define STR_GRP_WINDOW (RC_APP_BEGIN + 69) +#define STR_GRP_MISC (RC_APP_BEGIN + 70) +#define STR_GRP_MACRO (RC_APP_BEGIN + 71) +#define RES_EXT_HELP_STRING (RC_APP_BEGIN + 72) +#define RES_STD_HELP_STRING (RC_APP_BEGIN + 73) +#define STR_PAGEOFFSET (RC_APP_BEGIN + 74) +#define STR_PAGEBREAK (RC_APP_BEGIN + 75) + + +#define SID_TOGGLETOOLBOX (RC_APP_BEGIN + 89) + +#define STR_ENV_TITLE (RC_APP_BEGIN + 91) +#define STR_LAB_TITLE (RC_APP_BEGIN + 92) + +#define STR_HUMAN_SWDOC_NAME (RC_APP_BEGIN + 93) + +#define RID_SW_ERRHDL (RC_APP_BEGIN + 95) + +#define STR_FDLG_TEMPLATE_BUTTON (RC_APP_BEGIN + 1) +#define STR_FDLG_TEMPLATE_NAME (RC_APP_BEGIN + 2) + + +// Ids fuer die einzelnen PopUpMenues +#define MN_WIZARD (RC_APP_BEGIN + 9) +#define MN_INDEX (RC_APP_BEGIN + 10) +#define MN_FILE (RC_APP_BEGIN + 11) +#define MN_EDIT (RC_APP_BEGIN + 12) +#define MN_VIEW (RC_APP_BEGIN + 13) +#define MN_INS (RC_APP_BEGIN + 14) +#define MN_TEXT (RC_APP_BEGIN + 15) +#define MN_FORMAT (RC_APP_BEGIN + 16) +#define MN_FORMAT_STYLE (RC_APP_BEGIN + 17) +#define MN_FORMAT_ALGN (RC_APP_BEGIN + 18) +#define MN_FORMAT_LINESPACE (RC_APP_BEGIN + 19) +#define MN_EXTRA (RC_APP_BEGIN + 20) +#define MN_WIN (RC_APP_BEGIN + 21) +#define MN_HELP (RC_APP_BEGIN + 22) +#define MN_FORMAT_FRM_HORZ (RC_APP_BEGIN + 23) +#define MN_FORMAT_FRM_VERT (RC_APP_BEGIN + 24) +#define MN_PICKLIST (RC_APP_BEGIN + 25) +#define MN_WINLIST (RC_APP_BEGIN + 26) +#define MN_MACRO (RC_APP_BEGIN + 27) +#define MN_FORMAT_HIERARCHY (RC_APP_BEGIN + 28) +#define MN_CELL (RC_APP_BEGIN + 29) +#define MN_HELP_TIP (RC_APP_BEGIN + 30) +#define MN_HELP_SEARCH (RC_APP_BEGIN + 31) +#define MN_HELP_ACTIVE (RC_APP_BEGIN + 32) +#define MN_HELP_INDEX (RC_APP_BEGIN + 33) +#define MN_OBJECT (RC_APP_BEGIN + 34) +#define MN_DATABASE (RC_APP_BEGIN + 35) +#define MN_DIRSUBMENU (RC_APP_BEGIN + 36) +#define MN_MAIL (RC_APP_BEGIN + 37) +#define MN_WRAP (RC_APP_BEGIN + 38) +#define MN_SUB_TBLROW (RC_APP_BEGIN + 39) +#define MN_SUB_TBLCOL (RC_APP_BEGIN + 40) +#define MN_SUB_AUTOFORMAT (RC_APP_BEGIN + 41) +#define MN_SUB_TOOLBAR (RC_APP_BEGIN + 42) +#define MN_SUB_FIELD (RC_APP_BEGIN + 43) +#define MN_SUB_GRAPHIC (RC_APP_BEGIN + 44) +#define MN_SUB_TEMPLATES (RC_APP_BEGIN + 45) +#define MN_SUB_ARRANGE (RC_APP_BEGIN + 46) +#define MN_SUB_SPELLING (RC_APP_BEGIN + 47) +#define MN_SUB_UPDATE (RC_APP_BEGIN + 48) +#define MN_SUB_MIRROR (RC_APP_BEGIN + 49) +#define MN_SUB_ALIGN (RC_APP_BEGIN + 50) +#define MN_SUB_OPTIONS (RC_APP_BEGIN + 51) +#define MN_SUB_SENDTO (RC_APP_BEGIN + 52) +#define MN_SUB_REVISE (RC_APP_BEGIN + 53) +#define MN_TEMPLATES (RC_APP_BEGIN + 54) +#define MN_FILE_PORT (RC_APP_BEGIN + 55) +#define MN_EDIT_PORT (RC_APP_BEGIN + 56) +#define MN_VIEW_PORT (RC_APP_BEGIN + 57) +#define MN_INS_PORT (RC_APP_BEGIN + 58) +#define MN_FORMAT_PORT (RC_APP_BEGIN + 59) +#define MN_EXTRA_PORT (RC_APP_BEGIN + 60) +#define MN_WIN_PORT (RC_APP_BEGIN + 61) +#define MN_HELP_PORT (RC_APP_BEGIN + 62) + + +#define RC_INTRO_BEGIN (RC_APP_BEGIN + 90) +#define RC_INTRO_END (RC_APP_BEGIN + 96) + +#define STR_WRITER_DOCUMENT_FULLTYPE_31 (RC_APP_BEGIN + 97) +#define STR_WRITER_DOCUMENT_FULLTYPE_40 (RC_APP_BEGIN + 98) +#define STR_WRITER_DOCUMENT_FULLTYPE (RC_APP_BEGIN + 100) + +#define STR_ABSTRACT_TITLE (RC_APP_BEGIN +99) + +#define APP_ACT_END STR_WRITER_DOCUMENT_FULLTYPE + +#if APP_ACT_END > RC_APP_END +#error Resource-Id Ueberlauf in #file, #line +#endif + +#endif diff --git a/sw/source/ui/inc/ascfldlg.hxx b/sw/source/ui/inc/ascfldlg.hxx new file mode 100644 index 000000000000..0f34e28d7cb5 --- /dev/null +++ b/sw/source/ui/inc/ascfldlg.hxx @@ -0,0 +1,119 @@ +/************************************************************************* + * + * $RCSfile: ascfldlg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _ASCFLDLG_HXX +#define _ASCFLDLG_HXX + +#ifndef _BASEDLGS_HXX +#include <sfx2/basedlgs.hxx> +#endif +#ifndef _SV_GROUP_HXX +#include <vcl/group.hxx> +#endif +#ifndef _SV_FIXED_HXX +#include <vcl/fixed.hxx> +#endif +#ifndef _SV_BUTTON_HXX +#include <vcl/button.hxx> +#endif +#ifndef _SV_LSTBOX_HXX +#include <vcl/lstbox.hxx> +#endif + +class SwAsciiOptions; +class SvStream; +class SwDocShell; + +class SwAsciiFilterDlg : public SfxModalDialog +{ + GroupBox aGB; + FixedText aCharSetFT; + ListBox aCharSetLB; + FixedText aFontFT; + ListBox aFontLB; + FixedText aLanguageFT; + ListBox aLanguageLB; + FixedText aCRLF_FT; + RadioButton aCRLF_RB, aCR_RB, aLF_RB; + OKButton aOkPB; + CancelButton aCancelPB; + HelpButton aHelpPB; + String sNoLanguage, sCharSet, sSystemCharSet; + BOOL bSaveLineStatus; + + DECL_LINK( CharSetSelHdl, ListBox* ); + DECL_LINK( LineEndHdl, RadioButton* ); + void SetCRLF( LineEnd eEnd ); + LineEnd GetCRLF() const; + +public: + // CTOR: for import - pStream is the inputstream + // for export - pStream must be 0 + SwAsciiFilterDlg( Window* pParent, SwDocShell& rDocSh, + SvStream* pStream ); + virtual ~SwAsciiFilterDlg(); + + void FillOptions( SwAsciiOptions& rOptions ); +}; + + + +#endif + diff --git a/sw/source/ui/inc/autoedit.hxx b/sw/source/ui/inc/autoedit.hxx new file mode 100644 index 000000000000..c7c89d42aeb3 --- /dev/null +++ b/sw/source/ui/inc/autoedit.hxx @@ -0,0 +1,84 @@ +/************************************************************************* + * + * $RCSfile: autoedit.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _AUTOEDIT_HXX +#define _AUTOEDIT_HXX + +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + + +class AutoEdit : public Edit +{ +public: + AutoEdit( Window* pParent, ResId aResId ) : Edit( pParent, aResId ){} + +protected: + virtual void KeyInput( const KeyEvent& rEvent ); +}; + +// Implementieriung im autocorr.cxx + + + +#endif + + diff --git a/sw/source/ui/inc/barcfg.hxx b/sw/source/ui/inc/barcfg.hxx new file mode 100644 index 000000000000..421a042ed30c --- /dev/null +++ b/sw/source/ui/inc/barcfg.hxx @@ -0,0 +1,86 @@ +/************************************************************************* + * + * $RCSfile: barcfg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef SW_BARCFG_HXX +#define SW_BARCFG_HXX + +#ifndef _SFXCFGITEM_HXX //autogen +#include <sfx2/cfgitem.hxx> +#endif + +class CfgUSHORTTable; + +class SwToolbarConfigItem : public SfxConfigItem +{ + CfgUSHORTTable *pTbl; +private: + virtual int Load (SvStream& rStrm); + virtual BOOL Store(SvStream& rStrm); + virtual void UseDefault(); + +public: + SwToolbarConfigItem( BOOL bWeb ); + ~SwToolbarConfigItem(); + + void SetTopToolbar( int nSelType, USHORT nBarId ); + USHORT GetTopToolbar( int nSelType ); //USHRT_MAX: noch nicht eingetragen +}; + +#endif diff --git a/sw/source/ui/inc/basesh.hxx b/sw/source/ui/inc/basesh.hxx new file mode 100644 index 000000000000..67e7bf05d695 --- /dev/null +++ b/sw/source/ui/inc/basesh.hxx @@ -0,0 +1,177 @@ +/************************************************************************* + * + * $RCSfile: basesh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWBASESH_HXX +#define _SWBASESH_HXX + +#ifndef _SHELLID_HXX +#include <shellid.hxx> +#endif + +#ifndef _SFXMODULE_HXX //autogen +#include <sfx2/module.hxx> +#endif +#ifndef _SFX_SHELL_HXX //autogen +#include <sfx2/shell.hxx> +#endif + +#ifndef _LINK_HXX //autogen +#include <tools/link.hxx> +#endif +#ifndef _SV_TIMER_HXX //autogen +#include <vcl/timer.hxx> +#endif + +class SwWrtShell; +class SwCrsrShell; +class SwView; +class GraphicFilter; +class SwFlyFrmAttrMgr; +class SfxItemSet; +class Graphic; + +extern void DisableAllItems(SfxItemSet &); + +class SwBaseShell: public SfxShell +{ + SwView &rView; + + // DragModus + static USHORT nFrameMode; + + // Bug 75078 - if in GetState the asynch call of GetGraphic returns + // synch, the set the state directly into the itemset + SfxItemSet* pGetStateSet; + + //Update-Timer fuer Graphic + BOOL bUpdateSID_IMap :1; + BOOL bUpdateSID_IMapExec :1; + BOOL bUpdateSID_IContour :1; + BOOL bUpdateSID_IContourDlg :1; + + DECL_LINK( GraphicArrivedHdl, SwCrsrShell* ); + DECL_LINK( UpdatePercentHdl, GraphicFilter* ); + +protected: + + SwWrtShell& GetShell (); + SwWrtShell* GetShellPtr(); + + SwView& GetView() { return rView; } + + SwFlyFrmAttrMgr *pFrmMgr; + + DECL_STATIC_LINK( SwBaseShell, InsertDBTextHdl, String* ); + +public: + SwBaseShell(SwView &rShell); + virtual ~SwBaseShell(); + SFX_DECL_INTERFACE(SW_BASESHELL); + TYPEINFO(); + + void ExecDelete(SfxRequest &); + + void ExecClpbrd(SfxRequest &); + void StateClpbrd(SfxItemSet &); + + void ExecUndo(SfxRequest &); + void StateUndo(SfxItemSet &); + + void Execute(SfxRequest &); + void GetState(SfxItemSet &); + void StateStyle(SfxItemSet &); + + void ExecuteGallery(SfxRequest&); + void GetGalleryState(SfxItemSet&); + + void ExecDlg(SfxRequest &); + + void StateStatusLine(SfxItemSet &rSet); + void ExecTxtCtrl(SfxRequest& rReq); + void GetTxtCtrlState(SfxItemSet& rSet); + void GetBorderState(SfxItemSet &rSet); + void GetBckColState(SfxItemSet &rSet); + + void ExecBckCol(SfxRequest& rReq); + void SetWrapMode( USHORT nSlot ); + + void ExecDB(SfxRequest &rReq); + + void StateDisableItems(SfxItemSet &); + + void EditRegionDialog(SfxRequest& rReq); + void InsertRegionDialog(SfxRequest& rReq); + + void ExecField(SfxRequest& rReq); + + static void SetFrmMode( USHORT nMode, SwWrtShell *pShell ); //Mit Update! + static void _SetFrmMode( USHORT nMode ) { nFrameMode = nMode; } + static USHORT GetFrmMode() { return nFrameMode; } + + //public fuer D&D + int InsertGraphic( const String &rPath, const String &rFilter, + BOOL bLink = TRUE, GraphicFilter *pFlt = 0, + Graphic* pPreviewGrf = 0, + BOOL bRule = FALSE ); + +}; + + +#endif diff --git a/sw/source/ui/inc/beziersh.hxx b/sw/source/ui/inc/beziersh.hxx new file mode 100644 index 000000000000..8a3d70ad79c1 --- /dev/null +++ b/sw/source/ui/inc/beziersh.hxx @@ -0,0 +1,78 @@ +/************************************************************************* + * + * $RCSfile: beziersh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWBEZIERSH_HXX +#define _SWBEZIERSH_HXX + +#include "basesh.hxx" + +class SwBezierShell: public SwBaseShell +{ +public: + SFX_DECL_INTERFACE(SW_BEZIERSHELL); + TYPEINFO(); + + SwBezierShell(SwView &rView); + + void GetState(SfxItemSet &); + void Execute(SfxRequest &); +}; + +#endif diff --git a/sw/source/ui/inc/bmpwin.hxx b/sw/source/ui/inc/bmpwin.hxx new file mode 100644 index 000000000000..b866754a438c --- /dev/null +++ b/sw/source/ui/inc/bmpwin.hxx @@ -0,0 +1,104 @@ +/************************************************************************* + * + * $RCSfile: bmpwin.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _BMPWIN_HXX +#define _BMPWIN_HXX + +#ifndef _GRAPH_HXX //autogen +#include <vcl/graph.hxx> +#endif +#ifndef _BITMAP_HXX //autogen +#include <vcl/bitmap.hxx> +#endif +#ifndef _WINDOW_HXX //autogen +#include <vcl/window.hxx> +#endif + + +/*-------------------------------------------------------------------- + Beschreibung: Extended Page fuer Grafiken + --------------------------------------------------------------------*/ + +class BmpWindow : public Window +{ + void Paint(const Rectangle& rRect); + Graphic aGraphic; + Bitmap aBmp; + BOOL bHorz : 1; + BOOL bVert : 1; + BOOL bGraphic : 1; + BOOL bLeftAlign : 1; + +public: + BmpWindow(Window* pPar, USHORT nId, + const Graphic& rGraphic, const Bitmap& rBmp); + BmpWindow(Window* pParent, const ResId rResId) : + Window(pParent, rResId), bLeftAlign(TRUE), + bHorz(FALSE), bVert(FALSE),bGraphic(FALSE){} + ~BmpWindow(); + void MirrorVert(BOOL bMirror) { bVert = bMirror; Invalidate(); } + void MirrorHorz(BOOL bMirror) { bHorz = bMirror; Invalidate(); } + void SetGraphic(const Graphic& rGrf) + {aGraphic = rGrf; bGraphic = TRUE; Invalidate();} + +}; + +#endif diff --git a/sw/source/ui/inc/bookctrl.hxx b/sw/source/ui/inc/bookctrl.hxx new file mode 100644 index 000000000000..0b8fc4861972 --- /dev/null +++ b/sw/source/ui/inc/bookctrl.hxx @@ -0,0 +1,95 @@ +/************************************************************************* + * + * $RCSfile: bookctrl.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _BOOKCTRL_HXX +#define _BOOKCTRL_HXX + +// include --------------------------------------------------------------- + +#ifndef _SFXSTBITEM_HXX //autogen +#include <sfx2/stbitem.hxx> +#endif + +#ifndef _STRING_HXX //autogen +#include <tools/string.hxx> +#endif + +// class BookmarkToolBoxControl ------------------------------------------- + +class SwBookmarkControl : public SfxStatusBarControl +{ + virtual void Command( const CommandEvent& rCEvt ); + +public: + virtual void StateChanged( const SfxPoolItem* pState ); + virtual void Paint( const UserDrawEvent& rEvt ); + + SFX_DECL_STATUSBAR_CONTROL(); + + SwBookmarkControl( USHORT nId, StatusBar& rStb, SfxBindings& rBind ); + ~SwBookmarkControl(); + +private: + String sPageNumber; +}; + + +#endif + diff --git a/sw/source/ui/inc/bookmark.hxx b/sw/source/ui/inc/bookmark.hxx new file mode 100644 index 000000000000..c7978a2229fc --- /dev/null +++ b/sw/source/ui/inc/bookmark.hxx @@ -0,0 +1,127 @@ +/************************************************************************* + * + * $RCSfile: bookmark.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _BOOKMARK_HXX +#define _BOOKMARK_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#include "swlbox.hxx" // SwComboBox + +class SwWrtShell; + +/*-------------------------------------------------------------------- + Beschreibung: + --------------------------------------------------------------------*/ + +class BookmarkCombo : public SwComboBox +{ + USHORT GetFirstSelEntryPos() const; + USHORT GetNextSelEntryPos(USHORT nPos) const; + USHORT GetSelEntryPos(USHORT nPos) const; + + virtual long PreNotify(NotifyEvent& rNEvt); +public: + BookmarkCombo( Window* pWin, const ResId& rResId ); + + USHORT GetSelectEntryCount() const; + XubString GetSelectEntry( USHORT nSelIndex = 0 ) const; + USHORT GetSelectEntryPos( USHORT nSelIndex = 0 ) const; + + static const String aForbiddenChars; +}; + +/*-------------------------------------------------------------------- + Beschreibung: + --------------------------------------------------------------------*/ + +class SwInsertBookmarkDlg: public SvxStandardDialog +{ + BookmarkCombo aBookmarkBox; + GroupBox aBookmarkFrm; + OKButton aOkBtn; + CancelButton aCancelBtn; + PushButton aDeleteBtn; + + String sRemoveWarning; + SwWrtShell &rSh; + + DECL_LINK( ModifyHdl, BookmarkCombo * ); + DECL_LINK( DeleteHdl, Button * ); + + virtual void Apply(); + +public: + SwInsertBookmarkDlg( Window *pParent, SwWrtShell &rSh ); + ~SwInsertBookmarkDlg(); + +}; + +#endif diff --git a/sw/source/ui/inc/break.hxx b/sw/source/ui/inc/break.hxx new file mode 100644 index 000000000000..d28342fd4334 --- /dev/null +++ b/sw/source/ui/inc/break.hxx @@ -0,0 +1,124 @@ +/************************************************************************* + * + * $RCSfile: break.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _BREAK_HXX +#define _BREAK_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +class SwWrtShell; + +class SwBreakDlg: public SvxStandardDialog +{ + SwWrtShell &rSh; + RadioButton aLineBtn; + RadioButton aColumnBtn; + RadioButton aPageBtn; + FixedText aPageCollText; + ListBox aPageCollBox; + CheckBox aPageNumBox; + NumericField aPageNumEdit; + GroupBox aBreakFrm; + + OKButton aOkBtn; + CancelButton aCancelBtn; + HelpButton aHelpBtn; + + BOOL bHtmlMode; + + DECL_LINK( ClickHdl, void * ); + DECL_LINK( PageNumHdl, CheckBox * ); + DECL_LINK( PageNumModifyHdl, Edit * ); + DECL_LINK( OkHdl, Button * ); + + void CheckEnable(); + +protected: + virtual void Apply(); + +public: + SwBreakDlg( Window *pParent, SwWrtShell &rSh ); + ~SwBreakDlg(); +}; + +#endif + diff --git a/sw/source/ui/inc/caption.hxx b/sw/source/ui/inc/caption.hxx new file mode 100644 index 000000000000..b8f575dd0c02 --- /dev/null +++ b/sw/source/ui/inc/caption.hxx @@ -0,0 +1,146 @@ +/************************************************************************* + * + * $RCSfile: caption.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _CAPTION_HXX +#define _CAPTION_HXX + +#ifndef _STRING_HXX //autogen +#include <tools/string.hxx> +#endif +#ifndef _STREAM_HXX //autogen +#include <tools/stream.hxx> +#endif +#ifndef _GLOBNAME_HXX //autogen +#include <tools/globname.hxx> +#endif + +enum SwCapObjType +{ + FRAME_CAP, GRAPHIC_CAP, TABLE_CAP, OLE_CAP +}; + +/*-------------------------------------------------------------------- + Beschreibung: + --------------------------------------------------------------------*/ + +class InsCaptionOpt +{ +private: + BOOL bUseCaption; + SwCapObjType eObjType; + SvGlobalName aOleId; + String sCategory; + USHORT nNumType; + String sCaption; + USHORT nPos; + USHORT nLevel; + sal_Unicode cSeparator; + BOOL bIgnoreSeqOpts; // wird nicht gespeichert + BOOL bCopyAttributes; // -""- + +public: + InsCaptionOpt(const SwCapObjType eType = FRAME_CAP, const SvGlobalName* pOleId = 0); + InsCaptionOpt(const InsCaptionOpt&); + ~InsCaptionOpt(); + + inline BOOL& UseCaption() { return bUseCaption; } + inline BOOL UseCaption() const { return bUseCaption; } + + inline SwCapObjType GetObjType() const { return eObjType; } + inline void SetObjType(const SwCapObjType eType) { eObjType = eType; } + + inline const SvGlobalName& GetOleId() const { return aOleId; } + inline void SetOleId(const SvGlobalName &rId) { aOleId = rId; } + + inline const String& GetCategory() const { return sCategory; } + inline void SetCategory(const String& rCat) { sCategory = rCat; } + + inline USHORT GetNumType() const { return nNumType; } + inline void SetNumType(const USHORT nNT) { nNumType = nNT; } + + inline const String& GetCaption() const { return sCaption; } + inline void SetCaption(const String& rCap) { sCaption = rCap; } + + inline USHORT GetPos() const { return nPos; } + inline void SetPos(const USHORT nP) { nPos = nP; } + + inline USHORT GetLevel() const { return nLevel; } + inline void SetLevel(const USHORT nLvl) { nLevel = nLvl; } + + inline sal_Unicode GetSeparator() const { return cSeparator; } + inline void SetSeparator(const sal_Unicode cSep){ cSeparator = cSep; } + + inline BOOL& IgnoreSeqOpts() { return bIgnoreSeqOpts; } + inline BOOL IgnoreSeqOpts() const { return bIgnoreSeqOpts; } + + inline BOOL& CopyAttributes() { return bCopyAttributes; } + inline BOOL CopyAttributes() const { return bCopyAttributes; } + + BOOL operator==( const InsCaptionOpt& rOpt ) const; + InsCaptionOpt& operator= ( const InsCaptionOpt& rOpt ); + inline BOOL operator< ( const InsCaptionOpt & rObj ) const + { return aOleId < rObj.aOleId; } + friend SvStream& operator>>( SvStream& rIStream, InsCaptionOpt& rCapOpt ); + friend SvStream& operator<<( SvStream& rOStream, const InsCaptionOpt& rCapOpt ); +}; + +#endif + + diff --git a/sw/source/ui/inc/cfgdesc.hxx b/sw/source/ui/inc/cfgdesc.hxx new file mode 100644 index 000000000000..2423ab0489e5 --- /dev/null +++ b/sw/source/ui/inc/cfgdesc.hxx @@ -0,0 +1,105 @@ +/************************************************************************* + * + * $RCSfile: cfgdesc.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _CFGDESC_HXX +#define _CFGDESC_HXX + +#ifndef _STRING_HXX //autogen +#include <tools/string.hxx> +#endif + +class SwCfgDesc +{ +protected: + String aFuncText; + String aLibName; + USHORT nEvent; + + SwCfgDesc(const String &rFuncName, USHORT nId); + SwCfgDesc(const String &rLib,const String &rMacro); + ~SwCfgDesc(); + +public: + void SetEvent(USHORT nE); // inline + void SetFuncText(const String &rStr); // inline + void SetMacro(const String &rLib, const String &rMac); + BOOL IsMacro() const; + USHORT GetEvent() const; // inline + String GetFuncText() const; // inline + String GetMacro() const; // inline + String GetLib() const; // inline +}; + +// INLINE METHODE -------------------------------------------------------- +inline void SwCfgDesc::SetEvent(USHORT nE) { + nEvent = nE; +} + +inline void SwCfgDesc::SetFuncText(const String &rStr) { + aFuncText = rStr; +} + +inline USHORT SwCfgDesc::GetEvent() const { return nEvent; } +inline String SwCfgDesc::GetFuncText() const { return aFuncText; } +inline String SwCfgDesc::GetMacro() const { return aFuncText; } +inline String SwCfgDesc::GetLib() const { return aLibName; } + + +#endif diff --git a/sw/source/ui/inc/cfgid.h b/sw/source/ui/inc/cfgid.h new file mode 100644 index 000000000000..4595bffcc41f --- /dev/null +++ b/sw/source/ui/inc/cfgid.h @@ -0,0 +1,180 @@ +/************************************************************************* + * + * $RCSfile: cfgid.h,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _CFGID_H +#define _CFGID_H + +#ifndef _SFX_HRC //autogen +#include <sfx2/sfx.hrc> +#endif + +#define CFG_DBDESCMGR_ITEM SFX_ITEMTYPE_SW_BEGIN +#define CFG_USERPREF_ITEM (SFX_ITEMTYPE_SW_BEGIN + 1) + +#define CFG_COLOR_ITEM (SFX_ITEMTYPE_SW_BEGIN + 3) +#define CFG_PRINT_ITEM (SFX_ITEMTYPE_SW_BEGIN + 4) +#define CFG_AUTOCORR_ITEM (SFX_ITEMTYPE_SW_BEGIN + 5) +#define CFG_AUTOFMT_ITEM (SFX_ITEMTYPE_SW_BEGIN + 6) +#define CFG_NUMRULE_ITEM (SFX_ITEMTYPE_SW_BEGIN + 7) +#define CFG_ENV_ITEM (SFX_ITEMTYPE_SW_BEGIN + 8) +#define CFG_LAB_ITEM (SFX_ITEMTYPE_SW_BEGIN + 9) +#define CFG_CHAPTER_ITEM (SFX_ITEMTYPE_SW_BEGIN +10) +//#define CFG_BROWSEPREF_ITEM (SFX_ITEMTYPE_SW_BEGIN +11) //UsrPrefs fuer BrowseView +#define CFG_STDFONT_ITEM (SFX_ITEMTYPE_SW_BEGIN +12) +#define CFG_STATUSBAR (SFX_ITEMTYPE_SW_BEGIN +13) +#define CFG_NAVIPI (SFX_ITEMTYPE_SW_BEGIN +14) +#define CFG_SRCVIEW (SFX_ITEMTYPE_SW_BEGIN +15) +#define CFG_SW_MENU (SFX_ITEMTYPE_SW_BEGIN +16) +#define CFG_SW_ACCEL (SFX_ITEMTYPE_SW_BEGIN +17) +#define CFG_SW_MODULE (SFX_ITEMTYPE_SW_BEGIN +18) +#define CFG_SWWEB_MENU (SFX_ITEMTYPE_SW_BEGIN +19) +#define CFG_SWWEB_ACCEL (SFX_ITEMTYPE_SW_BEGIN +20) +#define CFG_SWWEB_USRPREF (SFX_ITEMTYPE_SW_BEGIN +21) +#define CFG_WEBPRINT_ITEM (SFX_ITEMTYPE_SW_BEGIN +22) +#define CFG_TOOLBARCONFIG_ITEM (SFX_ITEMTYPE_SW_BEGIN +23) +#define CFG_WEBTOOLBARCONFIG_ITEM (SFX_ITEMTYPE_SW_BEGIN +24) +#define CFG_INSERT_DBCOLUMN_ITEM (SFX_ITEMTYPE_SW_BEGIN +25) +#define CFG_INSERT_HEADFOOT_ITEM (SFX_ITEMTYPE_SW_BEGIN +26) +#define CFG_SW_MENU_PORTAL (SFX_ITEMTYPE_SW_BEGIN +27) +#define CFG_SWWEB_MENU_PORTAL (SFX_ITEMTYPE_SW_BEGIN +28) + +/*------------------------------------------------------------------------- + $Log: not supported by cvs2svn $ + Revision 1.25 2000/09/18 16:05:37 willem.vandorp + OpenOffice header added. + + Revision 1.24 2000/08/07 14:02:28 os + portal menu added + + Revision 1.23 1998/05/25 08:06:20 JP + neue ConfigId fuers einfuegen von Standard Kopf-/Fusszeilen + + + Rev 1.22 25 May 1998 10:06:20 JP + neue ConfigId fuers einfuegen von Standard Kopf-/Fusszeilen + + Rev 1.21 20 May 1998 21:24:56 JP + neue ConfigId fuer Datenbankspalten einfuegen Autopilot + + Rev 1.20 02 Apr 1998 10:05:00 MA + new: ToolbarCfg + + Rev 1.19 28 Nov 1997 08:26:12 MA + includes + + Rev 1.18 05 Feb 1997 13:35:44 OS + PrintOptins auch fuer Web + + Rev 1.17 30 Jan 1997 11:13:36 OS + Id fuer BrowseUsrPref + + Rev 1.16 24 Jan 1997 14:57:20 OS + defines fuer WebMenue und -Accel + + Rev 1.15 13 Jan 1997 16:54:00 OS + neu: SwModuleOptions + + Rev 1.14 18 Nov 1996 09:27:14 OS + neue ConfigIds + + Rev 1.13 15 Nov 1996 10:52:58 OS + SFX_ITEMTYPE_USER_BEGIN -> SFX_ITEMTYPE_SW_BEGIN + + Rev 1.12 13 Nov 1996 14:33:08 OS + neues ConfigItem: SwNavigationConfig + + Rev 1.11 07 Nov 1996 16:18:56 OS + neue Id fuer StatusBar + + Rev 1.10 03 Sep 1996 16:55:08 OS + neu: ConfigItem fuer Standardfonts + + Rev 1.9 24 Apr 1996 15:04:04 OS + Umstellung UsrPref/ViewOption + + Rev 1.8 03 Jan 1996 10:33:28 OS + neue Id fuer Kapitelnumerierung + + Rev 1.7 20 Feb 1995 19:38:26 PK + neu: efg_(env|lab)_item + + Rev 1.6 10 Jan 1995 18:53:26 ER + #endif ohne Kommentar + + Rev 1.5 31 Oct 1994 11:16:34 MS + ifndef angepasst + + Rev 1.4 06 Oct 1994 17:15:52 VB + cfgid.h -> T:/sw/source/ui/inc/cfgid.h_v + Enter description of changes made + NumRules wieder scharf geschaltet. + + Rev 1.3 28 Sep 1994 14:14:24 MS + Umstellung auf SfxConfigItem + + Rev 1.2 27 Sep 1994 10:47:38 MS + + Rev 1.1 19 Sep 1994 15:28:32 MS + Fix fuers Update + + Rev 1.0 15 Sep 1994 16:41:46 MS + Initial revision. + -------------------------------------------------------------------------*/ +#endif diff --git a/sw/source/ui/inc/cfgitems.hxx b/sw/source/ui/inc/cfgitems.hxx new file mode 100644 index 000000000000..067b482f569b --- /dev/null +++ b/sw/source/ui/inc/cfgitems.hxx @@ -0,0 +1,300 @@ +/************************************************************************* + * + * $RCSfile: cfgitems.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _CFGITEMS_HXX +#define _CFGITEMS_HXX + +#ifndef _SFXPOOLITEM_HXX //autogen +#include <svtools/poolitem.hxx> +#endif + +#ifndef _AUTHRATR_HXX +#include <authratr.hxx> +#endif + +class SwWriterApp; +class SwModule; +#ifndef PRODUCT +class SwTestTabPage; +#endif +class SwAddPrinterTabPage; +class SfxPrinter; +class ViewShell; +class SwViewOption; +class SwPrintOptions; +class SwContentOptPage; +class SwLayoutOptPage; +class SwDocEditDialog; + +SfxPrinter* GetPrt( ViewShell* ); +void SetPrt( SfxPrinter* ); + + +/*--------OS 12.01.95 ----------------------------------- +Item fuer Einstellungsdialog - Dokumentanzeige +--------------------------------------------------------- */ +#ifdef FN_PARAM_DOCDISP + +class SwDocDisplayItem : public SfxPoolItem +{ + friend SwWriterApp; + friend SwContentOptPage; + friend SwModule; + + BOOL bParagraphEnd :1; + BOOL bTab :1; + BOOL bSpace :1; + BOOL bNonbreakingSpace :1; + BOOL bSoftHyphen :1; + BOOL bHiddenText :1; + BOOL bManualBreak :1; + BOOL bIndexEntry :1; + BOOL bIndexBackground :1; + BOOL bFootnoteBackground:1; + BOOL bField :1; + BOOL bTable :1; + BOOL bGraphic :1; + BOOL bDrawing :1; + BOOL bFieldName :1; + BOOL bNotes :1; + BOOL bShowHiddenPara :1; + + Color aIndexBackgrndCol; + + +public: + TYPEINFO(); + SwDocDisplayItem( USHORT nWhich = FN_PARAM_DOCDISP ); + SwDocDisplayItem( + const SwDocDisplayItem& rSwDocDisplayItem ); + SwDocDisplayItem( const SwViewOption& rVOpt, + USHORT nWhich ); + + + virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; + virtual int operator==( const SfxPoolItem& ) const; + void operator=( const SwDocDisplayItem& ); + void FillViewOptions( SwViewOption& rVOpt) const; +}; +#endif +/*--------OS 12.01.95 ----------------------------------- +Item fuer Einstellungsdialog, Elementeseite +--------------------------------------------------------- */ +#ifdef FN_PARAM_ELEM +class SwElemItem : public SfxPoolItem +{ + BOOL bHorzScrollbar :1; + BOOL bVertScrollbar :1; + BOOL bHorzRuler :1; + BOOL bVertRuler :1; + BOOL bTableBounds :1; + BOOL bSectionBounds :1; + BOOL bCrosshair :1; + BOOL bHandles :1; + BOOL bBigHandles :1; + BOOL bBounds :1; + BOOL bStatusLine :1; + BOOL bSmoothScroll :1; + + friend SwLayoutOptPage; + +public: + TYPEINFO(); + SwElemItem( USHORT nWhich = FN_PARAM_ELEM ); + SwElemItem(const SwElemItem& rElemItem); + SwElemItem(const SwViewOption& rVOpt, USHORT nWhich); + + + virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; + virtual int operator==( const SfxPoolItem& ) const; + void operator=( const SwElemItem& ); + + void FillViewOptions( SwViewOption& rVOpt) const; + + void SetStatusLine(BOOL bSet){bStatusLine = bSet;} + BOOL IsStatusLine()const {return bStatusLine;} +}; +#endif +/*--------OS 12.01.95 ----------------------------------- +Item fuer Einstellungsdialog - Drucker/Zusaetze +--------------------------------------------------------- */ +#ifdef FN_PARAM_ADDPRINTER + +class SwAddPrinterItem : public SfxPoolItem +{ + friend SwAddPrinterTabPage; + + String sFaxName; + UINT16 nPrintPostIts; + + BOOL bPrintGraphic :1, + bPrintTable :1, + bPrintDrawing :1, + bPrintLeftPage :1, + bPrintRightPage :1, + bPrintControl :1, + bPrintReverse :1, + bPaperFromSetup :1, + bPrintProspect :1, + bPrintPageBackground:1, + bPrintBlackFont :1, + bPrintSingleJobs :1; + +public: + TYPEINFO(); + SwAddPrinterItem( USHORT nWhich = FN_PARAM_ADDPRINTER ); + SwAddPrinterItem( USHORT nWhich, SwPrintOptions* pPrtOpt ); + SwAddPrinterItem( const SwAddPrinterItem& rAddPrinterItem); + + virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; + virtual int operator==( const SfxPoolItem& ) const; + void SetPrintOptions( SwPrintOptions* pPrtOpt ) const; + const String &GetFax() const { return sFaxName; } + void SetFax( const String& rFax) { sFaxName = rFax; } + + + BOOL IsPrintProspect() const { return bPrintProspect; } + void SetPrintProspect(BOOL bFlag ){ bPrintProspect = bFlag; } + BOOL IsPrintGraphic () const { return bPrintGraphic; } + BOOL IsPrintTable () const { return bPrintTable; } + BOOL IsPrintDraw () const { return bPrintDrawing; } + BOOL IsPrintControl () const { return bPrintControl; } + BOOL IsPrintLeftPage () const { return bPrintLeftPage; } + BOOL IsPrintRightPage() const { return bPrintRightPage; } + BOOL IsPrintReverse () const { return bPrintReverse; } + BOOL IsPaperFromSetup() const { return bPaperFromSetup; } + BOOL IsPrintPageBackground() const { return bPrintPageBackground; } + BOOL IsPrintBlackFont() const { return bPrintBlackFont; } + BOOL IsPrintSingleJobs() const { return bPrintSingleJobs; } + UINT16 GetPrintPostIts () const { return nPrintPostIts; } + +}; +#endif + + +/*--------OS 12.01.95 ----------------------------------- +Item fuer Einstellungsdialog, ShadowCursorSeite +--------------------------------------------------------- */ +#ifdef FN_PARAM_SHADOWCURSOR + +class SwShadowCursorItem : public SfxPoolItem +{ + Color aColor; + BYTE eMode; + BOOL bOn; +public: + TYPEINFO(); + SwShadowCursorItem( USHORT nWhich = FN_PARAM_SHADOWCURSOR ); + SwShadowCursorItem( const SwShadowCursorItem& rElemItem ); + SwShadowCursorItem( const SwViewOption& rVOpt, USHORT nWhich ); + + + virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; + virtual int operator==( const SfxPoolItem& ) const; + void operator=( const SwShadowCursorItem& ); + + void FillViewOptions( SwViewOption& rVOpt) const; + + const Color& GetColor() const { return aColor; } + BYTE GetMode() const { return eMode; } + BOOL IsOn() const { return bOn; } + + void SetColor( const Color& rCol ) { aColor = rCol; } + void SetMode( BYTE eM ) { eMode = eM; } + void SetOn( BOOL bFlag ) { bOn = bFlag; } +}; +#endif + +#ifndef PRODUCT +/*--------OS 12.01.95 ----------------------------------- +Item fuer Einstellungsdialog - Testeinstellungen +--------------------------------------------------------- */ +class SwTestItem : public SfxPoolItem +{ + friend SwModule; + friend SwWriterApp; + friend SwTestTabPage; + friend SwDocEditDialog; + + BOOL bTest1:1; + BOOL bTest2:1; + BOOL bTest3:1; + BOOL bTest4:1; + BOOL bTest5:1; + BOOL bTest6:1; + BOOL bTest7:1; + BOOL bTest8:1; + BOOL bTest9:1; + BOOL bTest10:1; + +public: + SwTestItem( USHORT nWhich): + SfxPoolItem(nWhich){}; + SwTestItem( const SwTestItem& pTestItem); + + virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; + virtual int operator==( const SfxPoolItem& ) const; + +}; +#endif + +#endif + + diff --git a/sw/source/ui/inc/changedb.hxx b/sw/source/ui/inc/changedb.hxx new file mode 100644 index 000000000000..6ffe3451eaf3 --- /dev/null +++ b/sw/source/ui/inc/changedb.hxx @@ -0,0 +1,135 @@ +/************************************************************************* + * + * $RCSfile: changedb.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:38 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _CHANGEDB_HXX +#define _CHANGEDB_HXX + + +#ifndef _BITMAP_HXX //autogen +#include <vcl/bitmap.hxx> +#endif +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif +#ifndef _STDCTRL_HXX //autogen +#include <svtools/stdctrl.hxx> +#endif +#ifndef _SVTREEBOX_HXX //autogen +#include <svtools/svtreebx.hxx> +#endif +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif +#ifndef _DBTREE_HXX +#include "dbtree.hxx" +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +class SwFldMgr; +class SwView; +class SwWrtShell; + +/*-------------------------------------------------------------------- + Beschreibung: Datenbank an Feldern austauschen + --------------------------------------------------------------------*/ + +class SwChangeDBDlg: public SvxStandardDialog +{ + FixedInfo aDescFT; + FixedText aUsedDBFT; + FixedText aAvailDBFT; + SvTreeListBox aUsedDBTLB; + SwDBTreeList aAvailDBTLB; + GroupBox aDBListGB; + FixedText aDocDBTextFT; + FixedText aDocDBNameFT; + OKButton aOKBT; + CancelButton aCancelBT; + HelpButton aHelpBT; +// PushButton aChangeBT; + Bitmap aRootOpened; + Bitmap aRootClosed; + Image aDBBMP; + Image aTableBMP; + + SwWrtShell *pSh; + SwFldMgr *pMgr; + + DECL_LINK(TreeSelectHdl, SvTreeListBox* pBox = 0); + DECL_LINK(ButtonHdl, Button* pBtn); + + virtual void Apply(); + void UpdateFlds(); + void FillDBPopup(); + SvLBoxEntry* Insert(const String& rDBName); + void ShowDBName(const String& rDBName); + +public: + SwChangeDBDlg(SwView& rVw); + ~SwChangeDBDlg(); +}; + +#endif diff --git a/sw/source/ui/inc/chartins.hxx b/sw/source/ui/inc/chartins.hxx new file mode 100644 index 000000000000..fad5a97de0ca --- /dev/null +++ b/sw/source/ui/inc/chartins.hxx @@ -0,0 +1,160 @@ +/************************************************************************* + * + * $RCSfile: chartins.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +/* +/* +/* (C) 1995 - 2000 StarDivision GmbH, Hamburg, Germany +/* $Author: hr $ $Date: 2000-09-18 17:14:39 $ $Revision: 1.1.1.1 $ +/* $Logfile: T:/sw/source/ui/inc/chartins.hxv $ $Workfile: CHARTINS.HXX $ +/* +/* Dialog Einfuegen StarChart +/* +/*------------------------------------------------------------------ */ + +#ifndef _CHARTINS_HXX +#define _CHARTINS_HXX + +#ifndef _SFX_CHILDWIN_HXX //autogen +#include <sfx2/childwin.hxx> +#endif + +#ifdef _CHARTINS_CXX + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#include "autoedit.hxx" + +class SfxItemSet; +class SwWrtShell; +class SchMemChart; + +//======================================================================== + +class SwInsertChartDlg : public SfxModelessDialog +{ + FixedText aTextFt; + FixedText aRangeFt; + AutoEdit aRangeEd; + HelpButton aHelp; + CancelButton aCancel; + FixedText aHLine; + PushButton aPrev; + PushButton aNext; + PushButton aFinish; + CheckBox aFirstRow; + CheckBox aFirstCol; + GroupBox aGroup1; + SchMemChart * pChartData; + ModalDialog* pChartDlg; + SfxItemSet* pInItemSet; + SfxItemSet* pOutItemSet; + SwWrtShell* pWrtShell; + String aAktTableName; + BOOL bUpdateChartData; + BOOL bChartInserted; + + void UpdateData(); + virtual BOOL Close(); + +public: + SwInsertChartDlg( SfxBindings*, SfxChildWindow*, + Window *pParent, SwWrtShell * ); + ~SwInsertChartDlg(); + + DECL_LINK( SelTblCellsNotify, SwWrtShell * ); + DECL_LINK( ModifyHdl, Edit* ); + DECL_LINK( NextHdl, Button* ); + DECL_LINK( FinishHdl, Button* ); + DECL_LINK( CloseHdl, Button* ); + DECL_LINK( ClickHdl, CheckBox* ); +}; +#endif + +class SwInsertChartChild : public SfxChildWindow +{ +public: + SwInsertChartChild( Window* , + USHORT nId, + SfxBindings*, + SfxChildWinInfo* ); + SFX_DECL_CHILDWINDOW( SwInsertChartChild ); +}; + + +#endif + diff --git a/sw/source/ui/inc/chldwrap.hxx b/sw/source/ui/inc/chldwrap.hxx new file mode 100644 index 000000000000..3bc8e98805c8 --- /dev/null +++ b/sw/source/ui/inc/chldwrap.hxx @@ -0,0 +1,94 @@ +/************************************************************************* + * + * $RCSfile: chldwrap.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _CHLDWRAP_HXX +#define _CHLDWRAP_HXX + +#ifndef _SFX_CHILDWIN_HXX //autogen +#include <sfx2/childwin.hxx> +#endif + +#ifndef _SV_TIMER_HXX //autogen +#include <vcl/timer.hxx> +#endif + +class SwDocShell; + +class SwChildWinWrapper : public SfxChildWindow +{ + Timer aUpdateTimer; + SwDocShell* pDocSh; + + DECL_LINK( UpdateHdl, void* ); + + // Implementation in fldtdlg.cxx +protected: + SwChildWinWrapper(Window *pParentWindow, USHORT nId); + +public: + virtual BOOL ReInitDlg(SwDocShell *pDocSh); + + inline SwDocShell* GetOldDocShell() { return pDocSh; } + inline void SetOldDocShell(SwDocShell *pDcSh) { pDocSh = pDcSh; } +}; + + +#endif + diff --git a/sw/source/ui/inc/chrdlg.hxx b/sw/source/ui/inc/chrdlg.hxx new file mode 100644 index 000000000000..8fdb151ba12d --- /dev/null +++ b/sw/source/ui/inc/chrdlg.hxx @@ -0,0 +1,157 @@ +/************************************************************************* + * + * $RCSfile: chrdlg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWCHARDLG_HXX +#define _SWCHARDLG_HXX + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + +#ifndef _COMBOBOX_HXX //autogen +#include <vcl/combobox.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +class FontList; +class SwView; +class SvxMacroItem; + +/*-------------------------------------------------------------------- + Beschreibung: Der Tabdialog Traeger der TabPages + --------------------------------------------------------------------*/ + +class SwCharDlg: public SfxTabDialog +{ + SwView& rView; + BOOL bIsDrwTxtMode; + +public: + SwCharDlg(Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet, + const String* pFmtStr = 0, BOOL bIsDrwTxtDlg = FALSE); + + ~SwCharDlg(); + + virtual void PageCreated( USHORT nId, SfxTabPage &rPage ); +}; + +/*-----------------14.08.96 11.03------------------- + Beschreibung: Tabpage fuer URL-Attribut +--------------------------------------------------*/ + +class SwCharURLPage : public SfxTabPage +{ + GroupBox aURLGB; + + FixedText aURLFT; + Edit aURLED; + FixedText aTextFT; + Edit aTextED; + FixedText aNameFT; + Edit aNameED; + FixedText aTargetFrmFT; + ComboBox aTargetFrmLB; + PushButton aURLPB; + PushButton aEventPB; + GroupBox aStyleGB; + FixedText aVisitedFT; + ListBox aVisitedLB; + FixedText aNotVisitedFT; + ListBox aNotVisitedLB; + + SvxMacroItem* pINetItem; + BOOL bModified; + + DECL_LINK( InsertFileHdl, PushButton * ); + DECL_LINK( EventHdl, PushButton * ); + +public: + SwCharURLPage( Window* pParent, + const SfxItemSet& rSet ); + + ~SwCharURLPage(); + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet); + + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); +}; + +#endif + diff --git a/sw/source/ui/inc/cnttab.hxx b/sw/source/ui/inc/cnttab.hxx new file mode 100644 index 000000000000..e8a301214f80 --- /dev/null +++ b/sw/source/ui/inc/cnttab.hxx @@ -0,0 +1,581 @@ +/************************************************************************* + * + * $RCSfile: cnttab.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _CNTTAB_HXX +#define _CNTTAB_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif +#ifndef _SV_LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +#include "tox.hxx" +#ifndef _LIST_HXX //autogen +#include <tools/list.hxx> +#endif +#ifndef _TOXMGR_HXX +#include <toxmgr.hxx> +#endif +#ifndef _SVX_CHECKLBX_HXX //autogen wg. SvxCheckListBox +#include <svx/checklbx.hxx> +#endif +#ifndef _SV_RESARY_HXX //autogen wg. ResStringArray +#include <vcl/resary.hxx> +#endif +#ifndef _SVTREEBOX_HXX +#include <svtools/svtreebx.hxx> +#endif +#ifndef _SV_MENUBTN_HXX +#include <vcl/menubtn.hxx> +#endif + +class SwWrtShell; +class SwTOXMgr; +/* -----------------14.06.99 12:12------------------- + + --------------------------------------------------*/ +struct CurTOXType +{ + TOXTypes eType; + USHORT nIndex; //for TOX_USER only + + BOOL operator==(const CurTOXType aCmp) + { + return eType == aCmp.eType && nIndex == aCmp.nIndex; + } + USHORT GetFlatIndex() const; + +}; +//----------------------------------------------------------------------------- +#if 0 +class IdxExampleResource : public Resource +{ + ResStringArray aTextArray; + +public: + IdxExampleResource(const ResId& rResId); + + ResStringArray& GetTextArray() {return aTextArray;} +}; +#endif + +//----------------------------------------------------------------------------- +class SwOneExampleFrame; +struct SwIndexSections_Impl; + +class SwMultiTOXTabDialog : public SfxTabDialog +{ + Window aExampleContainerWIN; + Window aExampleWIN; + CheckBox aShowExampleCB; + SwTOXMgr* pMgr; + SwWrtShell& rSh; + + SwOneExampleFrame* pExampleFrame; + + SwTOXDescription** pDescArr; // + SwForm** pFormArr; // + SwIndexSections_Impl** pxIndexSectionsArr; + + CurTOXType eCurrentTOXType; + + String sUserDefinedIndex; + USHORT nTypeCount; + USHORT nInitialTOXType; + + BOOL bEditTOX; + BOOL bExampleCreated; + BOOL bGlobalFlag; + + virtual short Ok(); + SwTOXDescription* CreateTOXDescFromTOXBase(const SwTOXBase*pCurTOX); + + DECL_LINK(CreateExample_Hdl, void* ); + DECL_LINK(ShowPreviewHdl, CheckBox*); + +public: + SwMultiTOXTabDialog(Window* pParent, const SfxItemSet& rSet, + SwWrtShell &rShell, + const SwTOXBase* pCurTOX, USHORT nToxType = USHRT_MAX, + BOOL bGlobal = FALSE); + ~SwMultiTOXTabDialog(); + + virtual void PageCreated( USHORT nId, SfxTabPage &rPage ); + + SwForm* GetForm(CurTOXType eType); + + CurTOXType GetCurrentTOXType() const { return eCurrentTOXType;} + void SetCurrentTOXType(CurTOXType eSet) + { + eCurrentTOXType = eSet; + } + + void UpdateExample(); + BOOL IsTOXEditMode() const { return bEditTOX;} +// const SwTOXBase* GetCurTOX() const; + + SwWrtShell& GetWrtShell() {return rSh;} + + SwTOXDescription& GetTOXDescription(CurTOXType eTOXTypes); + void CreateOrUpdateExample( + USHORT nTOXIndex, USHORT nPage = 0, USHORT nCurLevel = USHRT_MAX); + + static BOOL IsNoNum(SwWrtShell& rSh, const String& rName); +}; + +/* -----------------14.06.99 12:17------------------- + + --------------------------------------------------*/ +class SwOLENames : public Resource +{ + ResStringArray aNamesAry; +public: + SwOLENames(const ResId& rResId) : + Resource(rResId), + aNamesAry(ResId(1)){FreeResource();} + + ResStringArray& GetNames() { return aNamesAry;} + +}; +/* -----------------14.07.99 12:17------------------- + + --------------------------------------------------*/ +class SwTOXSelectTabPage : public SfxTabPage +{ + FixedText aTypeFT; + ListBox aTypeLB; + CheckBox aReadOnlyCB; + FixedText aTitleFT; + Edit aTitleED; + GroupBox aTypeTitleGB; + + ListBox aAreaLB; + FixedText aLevelFT; //content, user + NumericField aLevelNF; //content, user + GroupBox aAreaGB; + + //content + CheckBox aFromHeadingsCB; + PushButton aChapterDlgPB; + CheckBox aAddStylesCB; + PushButton aAddStylesPB; + //user +// CheckBox aFromStylesCB; -> aAddStylesCB; +// PushButton aFromStylesPB; -> aAddStylesPB; + CheckBox aFromTablesCB; + CheckBox aFromFramesCB; + CheckBox aFromGraphicsCB; + CheckBox aFromOLECB; + CheckBox aLevelFromChapterCB; + + //illustration + table + RadioButton aFromCaptionsRB; + RadioButton aFromObjectNamesRB; + + //illustration and tables + FixedText aCaptionSequenceFT; + ListBox aCaptionSequenceLB; + FixedText aDisplayTypeFT; + ListBox aDisplayTypeLB; + + //all but illustration and table + CheckBox aTOXMarksCB; + + // + GroupBox aCreateFromGB; // content, user, illustration + + //index only + CheckBox aCollectSameCB; + CheckBox aUseFFCB; + CheckBox aUseDashCB; + CheckBox aCaseSensitiveCB; + CheckBox aInitialCapsCB; + CheckBox aKeyAsEntryCB; + CheckBox aFromFileCB; + MenuButton aAutoMarkPB; +// PushButton aCreateAutoMarkPB; +// PushButton aEditAutoMarkPB; + GroupBox aIdxOptionsGB; // index only + + // object only + SwOLENames aFromNames; + SvxCheckListBox aFromObjCLB; + GroupBox aFromObjGB; + + CheckBox aSequenceCB; + FixedText aBracketFT; + ListBox aBracketLB; + GroupBox aAuthorityFormatGB; + + Point aCBLeftPos1; + Point aCBLeftPos2; + Point aCBLeftPos3; + + String aStyleArr[MAXLEVEL]; + String sAutoMarkURL; + String sAutoMarkType; + String sAddStyleUser; + String sAddStyleContent; + + BOOL bFirstCall; + + DECL_LINK(TOXTypeHdl, ListBox* ); + DECL_LINK(TOXAreaHdl, ListBox* ); + DECL_LINK(ChapterHdl, PushButton* ); + DECL_LINK(AddStylesHdl, PushButton* ); +// DECL_LINK(AutoMarkHdl, PushButton* ); +// DECL_LINK(CreateEditAutoMarkHdl,PushButton* ); + DECL_LINK(MenuEnableHdl, Menu*); + DECL_LINK(MenuExecuteHdl, Menu*); + + DECL_LINK(CheckBoxHdl, CheckBox* ); + DECL_LINK(RadioButtonHdl, RadioButton* ); + DECL_LINK(ModifyHdl, void*); + + void ApplyTOXDescription(); + void FillTOXDescription(); +public: + SwTOXSelectTabPage(Window* pParent, const SfxItemSet& rAttrSet); + ~SwTOXSelectTabPage(); + + virtual BOOL FillItemSet( SfxItemSet& ); + virtual void Reset( const SfxItemSet& ); + virtual void ActivatePage( const SfxItemSet& ); + virtual int DeactivatePage( SfxItemSet* pSet = 0 ); + + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet); + + void SelectType(TOXTypes eSet); //preset TOXType, GlobalDoc + void SetWrtShell(SwWrtShell& rSh); +}; +/* -----------------16.06.99 08:33------------------- + + --------------------------------------------------*/ + +DECLARE_LIST(TOXControlList, Control*); +class SwTOXEdit; +class SwTOXButton; +class SwTOXEntryTabPage; +class SwTokenWindow : public Window +{ + ImageButton aLeftScrollWin; + Window aCtrlParentWin; + ImageButton aRightScrollWin; + TOXControlList aControlList; + SwForm* pForm; + USHORT nLevel; + BOOL bValid; + String aButtonTexts[TOKEN_END]; // Text of the buttons + String aButtonHelpTexts[TOKEN_END]; // QuickHelpText of the buttons + String sCharStyle; + Link aButtonSelectedHdl; + Control* pActiveCtrl; + Link aModifyHdl; + + SwTOXEntryTabPage* m_pParent; + + DECL_LINK(EditResize, Edit*); + DECL_LINK(NextItemHdl, SwTOXEdit* ); + DECL_LINK(TbxFocusHdl, SwTOXEdit* ); + DECL_LINK(NextItemBtnHdl, SwTOXButton* ); + DECL_LINK(TbxFocusBtnHdl, SwTOXButton* ); + DECL_LINK(ScrollHdl, ImageButton* ); + + void SetActiveControl(Control* pSet); + + Control* InsertItem(const String& rText, const SwFormToken& aToken); + void AdjustPositions(); + void AdjustScrolling(); + void MoveControls(long nOffset); + +public: + SwTokenWindow(SwTOXEntryTabPage* pParent, const ResId& rResId); + ~SwTokenWindow(); + + void SetForm(SwForm& rForm, USHORT nLevel); + USHORT GetLastLevel()const {return nLevel;}; + + BOOL IsValid() const {return bValid;} + void Invalidate() {bValid = FALSE;} + + String GetPattern() const; + + void SetButtonSelectedHdl(const Link& rLink) + { aButtonSelectedHdl = rLink;} + + void SetModifyHdl(const Link& rLink){aModifyHdl = rLink;} + + Control* GetActiveControl() + { return pActiveCtrl;} + + void InsertAtSelection(const String& rText, const SwFormToken& aToken); + void RemoveControl(SwTOXButton* pDel, BOOL bInternalCall = FALSE); + + BOOL Contains(FormTokenType) const; + + BOOL DetermineLinkStart(); + + //helper for pattern buttons and edits + BOOL CreateQuickHelp(Control* pCtrl, + const SwFormToken& rToken, const HelpEvent& ); + + virtual void Resize(); +}; +/* -----------------------------23.12.99 14:16-------------------------------- + + ---------------------------------------------------------------------------*/ +class SwTOXEntryTabPage; +class SwIdxTreeListBox : public SvTreeListBox +{ + SwTOXEntryTabPage* pParent; + + virtual void RequestHelp( const HelpEvent& rHEvt ); +public: + SwIdxTreeListBox(SwTOXEntryTabPage* pPar, const ResId& rResId); +}; + +/* -----------------16.06.99 12:49------------------- + + --------------------------------------------------*/ +class SwTOXEntryTabPage : public SfxTabPage +{ + SwIdxTreeListBox aLevelLB; + FixedText aLevelFT; + + SwTokenWindow aTokenWIN; + PushButton aAllLevelsPB; + + PushButton aEntryNoPB; + PushButton aEntryPB; + PushButton aTabPB; + PushButton aChapterInfoPB; + PushButton aPageNoPB; + PushButton aHyperLinkPB; + + ListBox aAuthFieldsLB; + PushButton aAuthInsertPB; + PushButton aAuthRemovePB; + + FixedText aCharStyleFT; + ListBox aCharStyleLB; // character style of the current token + PushButton aEditStylePB; + + FixedText aChapterEntryFT; + ListBox aChapterEntryLB; // type of chapter info +// FixedText aSortingFT; +// ListBox aSortingLB; + + FixedText aFillCharFT; + ComboBox aFillCharCB; // fill char for tab stop + FixedText aTabPosFT; + MetricField aTabPosMF; // tab stop position + CheckBox aAutoRightCB; + GroupBox aEntryGB; + + CheckBox aRelToStyleCB; // position relative to the right margin of the para style + FixedText aMainEntryStyleFT; + ListBox aMainEntryStyleLB; // character style of main entries in indexes + CheckBox aAlphaDelimCB; + CheckBox aCommaSeparatedCB; + GroupBox aFormatGB; + + RadioButton aSortDocPosRB; + RadioButton aSortContentRB; + GroupBox aSortingGB; + + FixedText aFirstKeyFT; + ListBox aFirstKeyLB; + ImageRadioButton aFirstSortUpRB; + ImageRadioButton aFirstSortDownRB; + + FixedText aSecondKeyFT; + ListBox aSecondKeyLB; + ImageRadioButton aSecondSortUpRB; + ImageRadioButton aSecondSortDownRB; + + FixedText aThirdKeyFT; + ListBox aThirdKeyLB; + ImageRadioButton aThirdSortUpRB; + ImageRadioButton aThirdSortDownRB; + + GroupBox aSortKeyGB; + + String sDelimStr; + String sLevelStr; + String sAuthTypeStr; + + String sNoCharStyle; + String sNoCharSortKey; + Point aButtonPositions[5]; + SwForm* pCurrentForm; + + Point aRelToStylePos; + Point aRelToStyleIdxPos; + Size aLevelGBSize; + + CurTOXType aLastTOXType; + BOOL bInLevelHdl; + + DECL_LINK(StyleSelectHdl, ListBox*); + DECL_LINK(EditStyleHdl, PushButton*); + DECL_LINK(InsertTokenHdl, PushButton*); + DECL_LINK(LevelHdl, SvTreeListBox*); + DECL_LINK(AutoRightHdl, CheckBox*); + DECL_LINK(TokenSelectedHdl, SwFormToken*); + DECL_LINK(TabPosHdl, MetricField*); + DECL_LINK(FillCharHdl, ComboBox*); + DECL_LINK(RemoveInsertAuthHdl, PushButton*); + DECL_LINK(SortKeyHdl, RadioButton*); + DECL_LINK(ChapterInfoHdl, ListBox*); + DECL_LINK(AllLevelsHdl, PushButton*); + + void EnableButtons(); + void WriteBackLevel(); + void UpdateDescriptor(); + DECL_LINK(ModifyHdl, void*); + +public: + SwTOXEntryTabPage(Window* pParent, const SfxItemSet& rAttrSet); + ~SwTOXEntryTabPage(); + + virtual BOOL FillItemSet( SfxItemSet& ); + virtual void Reset( const SfxItemSet& ); + virtual void ActivatePage( const SfxItemSet& ); + virtual int DeactivatePage( SfxItemSet* pSet = 0 ); + + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet); + void SetWrtShell(SwWrtShell& rSh); + + String GetLevelHelp(USHORT nLevel) const; + + void PreTokenButtonRemoved(const SwFormToken& rToken); +}; +/* -----------------05.07.99 13:00------------------- + + --------------------------------------------------*/ +class SwTOXStylesTabPage : public SfxTabPage +{ + FixedText aLevelFT2; + ListBox aLevelLB; + FixedText aTemplateFT; + ListBox aParaLayLB; + PushButton aStdBT; + PushButton aAssignBT; + PushButton aEditStyleBT; + GroupBox aFormatGB; + + SwForm* pCurrentForm; +// void UpdatePattern(); + + DECL_LINK( EditStyleHdl, Button *); + DECL_LINK( StdHdl, Button * ); + DECL_LINK( EnableSelectHdl, ListBox * ); + DECL_LINK( DoubleClickHdl, Button * ); + DECL_LINK( AssignHdl, Button * ); + DECL_LINK( ModifyHdl, void*); + + SwForm& GetForm() + { + SwMultiTOXTabDialog* pDlg = (SwMultiTOXTabDialog*)GetTabDialog(); + return *pDlg->GetForm(pDlg->GetCurrentTOXType()); + } +public: + SwTOXStylesTabPage(Window* pParent, const SfxItemSet& rAttrSet); + ~SwTOXStylesTabPage(); + + virtual BOOL FillItemSet( SfxItemSet& ); + virtual void Reset( const SfxItemSet& ); + virtual void ActivatePage( const SfxItemSet& ); + virtual int DeactivatePage( SfxItemSet* pSet = 0 ); + + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet); + +}; + +#endif // _CNTTAB_HXX + diff --git a/sw/source/ui/inc/colex.hxx b/sw/source/ui/inc/colex.hxx new file mode 100644 index 000000000000..1424de2de112 --- /dev/null +++ b/sw/source/ui/inc/colex.hxx @@ -0,0 +1,119 @@ +/************************************************************************* + * + * $RCSfile: colex.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _COLEX_HXX +#define _COLEX_HXX + +#ifndef _SVX_PAGECTRL_HXX //autogen +#include <svx/pagectrl.hxx> +#endif +#ifndef _FMTCLDS_HXX //autogen +#include <fmtclds.hxx> +#endif + +#include "frmatr.hxx" + +class SwColMgr; +class SfxItemSet; + +/*-------------------------------------------------------------------- + Beschreibung: + --------------------------------------------------------------------*/ + +class SwColExample : public SvxPageWindow +{ +private: + SwColMgr* pColMgr; +protected: + virtual void DrawPage( const Point& rPoint, + const BOOL bSecond, + const BOOL bEnabled ); + +public: + SwColExample(Window* pPar, const ResId& rResId ); + + void UpdateExample( const SfxItemSet& rSet, SwColMgr* pMgr = 0 ); + +}; + +/*-----------------25.10.96 08.23------------------- + +--------------------------------------------------*/ +class SwColumnOnlyExample : public Window +{ +private: + Size aWinSize; + + Size aFrmSize; + SwFmtCol aCols; + long nDistance; + +protected: + virtual void Paint( const Rectangle& rRect ); + +public: + SwColumnOnlyExample( Window* , const ResId& ); + + void SetColumns(const SwFmtCol& rCol) { aCols = rCol; } + void SetFrameSize(const Size& rS, long nDist); + +}; + +#endif // _COLEX_HXX diff --git a/sw/source/ui/inc/colmgr.hxx b/sw/source/ui/inc/colmgr.hxx new file mode 100644 index 000000000000..b7041cfc1381 --- /dev/null +++ b/sw/source/ui/inc/colmgr.hxx @@ -0,0 +1,166 @@ +/************************************************************************* + * + * $RCSfile: colmgr.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _COLMGR_HXX +#define _COLMGR_HXX + +#ifndef _FMTCLDS_HXX //autogen +#include <fmtclds.hxx> +#endif + +void FitToActualSize(SwFmtCol& rCol, USHORT nWidth); + +class SwColMgr +{ +public: + // lActWidth wird aus den Edits des Seitendialogs + // direkt uebergeben + SwColMgr(const SfxItemSet &rSet, USHORT nActWidth = USHRT_MAX); + ~SwColMgr(); + + + inline USHORT GetCount() const; + void SetCount(USHORT nCount, USHORT nGutterWidth); + USHORT GetGutterWidth(USHORT nPos = USHRT_MAX) const; + void SetGutterWidth(USHORT nWidth, USHORT nPos = USHRT_MAX); + + USHORT GetColWidth(USHORT nIdx) const; + void SetColWidth(USHORT nIdx, USHORT nWidth); + + inline BOOL IsAutoWidth() const; + void SetAutoWidth(BOOL bOn = TRUE, USHORT lGutterWidth = 0); + + inline BOOL HasLine() const; + inline void SetNoLine(); + + inline void SetLineWidthAndColor(ULONG nWidth, const Color& rCol); + inline ULONG GetLineWidth() const; + inline const Color& GetLineColor() const; + + inline SwColLineAdj GetAdjust() const; + inline void SetAdjust(SwColLineAdj); + + short GetLineHeightPercent() const; + void SetLineHeightPercent(short nPercent); + + inline void NoCols(); + void Update(); + + const SwFmtCol& GetColumns() const { return aFmtCol; } + + void SetActualWidth(USHORT nW); + USHORT GetActualSize() const { return nWidth; } + + +private: + + SwFmtCol aFmtCol; + USHORT nWidth; +}; + +// INLINE METHODE -------------------------------------------------------- + +inline USHORT SwColMgr::GetCount() const +{ + return aFmtCol.GetNumCols(); +} +inline void SwColMgr::SetLineWidthAndColor(ULONG nWidth, const Color& rCol) +{ + aFmtCol.SetLineWidth(nWidth); + aFmtCol.SetLineColor(rCol); +} +inline ULONG SwColMgr::GetLineWidth() const +{ + return aFmtCol.GetLineWidth(); +} +inline const Color& SwColMgr::GetLineColor() const +{ + return aFmtCol.GetLineColor(); +} +inline SwColLineAdj SwColMgr::GetAdjust() const +{ + return aFmtCol.GetLineAdj(); +} +inline void SwColMgr::SetAdjust(SwColLineAdj eAdj) +{ + aFmtCol.SetLineAdj(eAdj); +} +inline BOOL SwColMgr::IsAutoWidth() const +{ + return aFmtCol.IsOrtho(); +} +inline void SwColMgr::SetAutoWidth(BOOL bOn, USHORT nGutterWidth) +{ + aFmtCol.SetOrtho(bOn, nGutterWidth, nWidth); +} +inline void SwColMgr::NoCols() +{ + aFmtCol.GetColumns().DeleteAndDestroy(0, aFmtCol.GetColumns().Count()); +} +inline BOOL SwColMgr::HasLine() const +{ + return GetAdjust() != COLADJ_NONE; +} +inline void SwColMgr::SetNoLine() +{ + SetAdjust(COLADJ_NONE); +} + +#endif diff --git a/sw/source/ui/inc/column.hxx b/sw/source/ui/inc/column.hxx new file mode 100644 index 000000000000..57934a843c92 --- /dev/null +++ b/sw/source/ui/inc/column.hxx @@ -0,0 +1,266 @@ +/************************************************************************* + * + * $RCSfile: column.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _COLUMN_HXX +#define _COLUMN_HXX + + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif +#ifndef _IMAGE_HXX //autogen +#include <vcl/image.hxx> +#endif +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif +#ifndef _TIMER_HXX //autogen +#include <vcl/timer.hxx> +#endif +#ifndef _IMAGEBTN_HXX //autogen +#include <vcl/imagebtn.hxx> +#endif +#ifndef _CTRLBOX_HXX +#include <svtools/ctrlbox.hxx> +#endif +#ifndef _VALUESET_HXX //autogen +#include <svtools/valueset.hxx> +#endif +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +#ifndef _FMTCLBL_HXX +#include <fmtclbl.hxx> +#endif +#ifndef _COLEX_HXX +#include <colex.hxx> +#endif +#ifndef _PRCNTFLD_HXX +#include <prcntfld.hxx> +#endif + +const nMaxCols = 99; +class SwColMgr; +class SwWrtShell; +class SwColumnPage; +/*-------------------------------------------------------------------- + Beschreibung: + --------------------------------------------------------------------*/ + +class SwColumnDlg : public SfxModalDialog +{ + OKButton aOK; + CancelButton aCancel; + HelpButton aHelp; + + FixedText aApplyToFT; + ListBox aApplyToLB; + + SwWrtShell& rWrtShell; + SwColumnPage* pTabPage; + SfxItemSet* pPageSet; + SfxItemSet* pSectionSet; + SfxItemSet* pSelectionSet; + SfxItemSet* pFrameSet; + + long nOldSelection; + long nSelectionWidth; + long nPageWidth; + + BOOL bPageChanged : 1; + BOOL bSectionChanged : 1; + BOOL bSelSectionChanged : 1; + BOOL bFrameChanged : 1; + + + DECL_LINK(ObjectHdl, ListBox*); + DECL_LINK(OkHdl, OKButton*); + +public: + SwColumnDlg(Window* pParent, SwWrtShell& rSh); + virtual ~SwColumnDlg(); + + SwWrtShell& GetWrtShell() { return rWrtShell; } +}; + +/*-----------------07.03.97 08.26------------------- + +--------------------------------------------------*/ +class ColumnValueSet : public ValueSet +{ + public: + ColumnValueSet(Window* pParent, const ResId& rResId) : + ValueSet(pParent, rResId){} + ~ColumnValueSet(); + + virtual void UserDraw( const UserDrawEvent& rUDEvt ); +}; +/*-------------------------------------------------------------------- + Beschreibung: Spaltendialog jetzt als TabPage + --------------------------------------------------------------------*/ +class SwColumnPage : public SfxTabPage +{ + FixedText aClNrLbl; + NumericField aCLNrEdt; + ColumnValueSet aDefaultVS; + ImageList aPreColsIL; + CheckBox aBalanceColsCB; + GroupBox aCLGroup; + + ImageButton aBtnUp; + FixedText aWidthFT; + FixedText aDistFT; + FixedText aLbl1; + PercentField aEd1; + PercentField aDistEd1; + FixedText aLbl2; + PercentField aEd2; + PercentField aDistEd2; + FixedText aLbl3; + PercentField aEd3; + ImageButton aBtnDown; + CheckBox aAutoWidthBox; + + GroupBox aLayoutGrp; + + FixedText aLineTypeLbl; + LineListBox aLineTypeDLB; + FixedText aLineHeightLbl; + MetricField aLineHeightEdit; + FixedText aLinePosLbl; + ListBox aLinePosDLB; + GroupBox aLineTypeGrp; + + // Example + SwColExample aPgeExampleWN; + SwColumnOnlyExample aFrmExampleWN; + GroupBox aExampleGB; + + SwColMgr* pColMgr; + + USHORT nFirstVis; + USHORT nCols; + long nColWidth[nMaxCols]; + long nColDist[nMaxCols]; + USHORT nMinWidth; + PercentField *pModifiedField; + BOOL bFormat; + BOOL bFrm; + BOOL bHtmlMode; + BOOL bLockUpdate; + + // Handler + DECL_LINK( ColModify, NumericField * ); + DECL_LINK( GapModify, PercentField * ); + DECL_LINK( EdModify, PercentField * ); + DECL_LINK( AutoWidthHdl, CheckBox * ); + DECL_LINK( Timeout, Timer * ); + DECL_LINK( SetDefaultsHdl, ValueSet * ); + + DECL_LINK( Up, Button * ); + DECL_LINK( Down, Button * ); + void Apply(Button *); + DECL_LINK( UpdateColMgr, void* ); + + void Update(); + void UpdateCols(); + void Init(); + void ResetColWidth(); + void SetLabels( USHORT nVis ); + + virtual void ActivatePage(const SfxItemSet& rSet); + virtual int DeactivatePage(SfxItemSet *pSet); + + SwColumnPage(Window *pParent, const SfxItemSet &rSet); + +public: + ~SwColumnPage(); + + static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); + static USHORT* GetRanges(); + + virtual BOOL FillItemSet(SfxItemSet &rSet); + virtual void Reset(const SfxItemSet &rSet); + + void SetFrmMode(BOOL bMod); + void SetPageWidth(long nPageWidth); + + void SetFormatUsed(BOOL bFmt) { bFormat = bFmt; } + + void ShowBalance(BOOL bShow) {aBalanceColsCB.Show(bShow);} + +}; + +#endif + diff --git a/sw/source/ui/inc/conarc.hxx b/sw/source/ui/inc/conarc.hxx new file mode 100644 index 000000000000..1c7b0c117540 --- /dev/null +++ b/sw/source/ui/inc/conarc.hxx @@ -0,0 +1,91 @@ +/************************************************************************* + * + * $RCSfile: conarc.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _CONARC_HXX +#define _CONARC_HXX + +#include "drawbase.hxx" + +/************************************************************************* +|* +|* Rechteck zeichnen +|* +\************************************************************************/ + +class ConstArc : public SwDrawBase +{ + Point aStartPnt; + UINT16 nAnzButUp; + +public: + ConstArc(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView); + + // Mouse- & Key-Events + virtual BOOL MouseButtonUp(const MouseEvent& rMEvt); + virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); + + virtual void Activate(const USHORT nSlotId); // Funktion aktivieren + virtual void Deactivate(); +}; + + + +#endif // _CONARC_HXX + diff --git a/sw/source/ui/inc/condedit.hxx b/sw/source/ui/inc/condedit.hxx new file mode 100644 index 000000000000..29b0d3ba6e95 --- /dev/null +++ b/sw/source/ui/inc/condedit.hxx @@ -0,0 +1,103 @@ +/************************************************************************* + * + * $RCSfile: condedit.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _CONDEDTI_HXX +#define _CONDEDTI_HXX + +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + +class DropEvent; + +/*-------------------------------------------------------------------- + Beschreibung: + --------------------------------------------------------------------*/ + +class ConditionEdit : public Edit +{ + BOOL bBrackets; + + virtual BOOL QueryDrop( DropEvent& rEvt ); + +public: + ConditionEdit( Window* pParent, const ResId& rResId ); + + inline void ShowBrackets(BOOL bShow) { bBrackets = bShow; } +}; + + +#endif + + + + + + + + + + + + + + + + diff --git a/sw/source/ui/inc/conform.hxx b/sw/source/ui/inc/conform.hxx new file mode 100644 index 000000000000..fc9817760575 --- /dev/null +++ b/sw/source/ui/inc/conform.hxx @@ -0,0 +1,80 @@ +/************************************************************************* + * + * $RCSfile: conform.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _CONFORM_HXX +#define _CONFORM_HXX + +#include "drawbase.hxx" + +class ConstFormControl : public SwDrawBase +{ +public: + ConstFormControl(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView); + + // Mouse- & Key-Events + virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); + + virtual void Activate(const USHORT nSlotId); // Function aktivieren +}; + + + +#endif + diff --git a/sw/source/ui/inc/conpoly.hxx b/sw/source/ui/inc/conpoly.hxx new file mode 100644 index 000000000000..3005b04ca4ad --- /dev/null +++ b/sw/source/ui/inc/conpoly.hxx @@ -0,0 +1,89 @@ +/************************************************************************* + * + * $RCSfile: conpoly.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _CONPOLY_HXX +#define _CONPOLY_HXX + +#include "drawbase.hxx" + +/************************************************************************* +|* +|* Basisklasse fuer alle Funktionen +|* +\************************************************************************/ + +class ConstPolygon : public SwDrawBase +{ + Point aLastPos; + +public: + ConstPolygon(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView); + + // Mouse- & Key-Events + virtual BOOL MouseMove(const MouseEvent& rMEvt); + virtual BOOL MouseButtonUp(const MouseEvent& rMEvt); + virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); + + virtual void Activate(const USHORT nSlotId); // Function aktivieren +}; + + +#endif // _CONPOLY_HXX + diff --git a/sw/source/ui/inc/conrect.hxx b/sw/source/ui/inc/conrect.hxx new file mode 100644 index 000000000000..baefac2db343 --- /dev/null +++ b/sw/source/ui/inc/conrect.hxx @@ -0,0 +1,90 @@ +/************************************************************************* + * + * $RCSfile: conrect.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _SW_CONRECT_HXX +#define _SW_CONRECT_HXX + +#include "drawbase.hxx" + +/************************************************************************* +|* +|* Rechteck zeichnen +|* +\************************************************************************/ + +class ConstRectangle : public SwDrawBase +{ + BOOL bMarquee; + + public: + ConstRectangle(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView); + + // Mouse- & Key-Events + virtual BOOL MouseButtonUp(const MouseEvent& rMEvt); + virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); + + virtual void Activate(const USHORT nSlotId); // Function aktivieren +}; + + + +#endif // _SW_CONRECT_HXX + diff --git a/sw/source/ui/inc/content.hxx b/sw/source/ui/inc/content.hxx new file mode 100644 index 000000000000..8162ec6f53d7 --- /dev/null +++ b/sw/source/ui/inc/content.hxx @@ -0,0 +1,256 @@ +/************************************************************************* + * + * $RCSfile: content.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _CONTENT_HXX +#define _CONTENT_HXX + +#include <limits.h> // USHRT_MAX +#ifndef _SWCONT_HXX +#include "swcont.hxx" +#endif + +#ifndef _MENU_HXX //autogen +#include <vcl/menu.hxx> +#endif + +class SwWrtShell; +class SwContentArr; +class SwContentType; +class SwNavigationPI; +class SwFmtFld; +class SwTxtINetFmt; +class SwNavigationConfig; +class SwDocShell; +class SvDataObject; +class SwTOXBase; + +//---------------------------------------------------------------------------- +// Hilfsklassen +//---------------------------------------------------------------------------- + +class SwPopup : public PopupMenu +{ + USHORT nCurId; + virtual void Select(){nCurId = GetCurItemId();} + +public: + SwPopup() : + PopupMenu(), + nCurId(USHRT_MAX){} + + USHORT GetCurId() const { return nCurId; } + +}; + +//---------------------------------------------------------------------------- + +class SwOutlineContent : public SwContent +{ + USHORT nOutlinePos; + BYTE nOutlineLevel; + BOOL bIsMoveable; + public: + SwOutlineContent( const SwContentType* pCnt, + const String& rName, + USHORT nArrPos, + BYTE nLevel, + BOOL bMove, + long nYPos) : + SwContent(pCnt, rName, nYPos), nOutlineLevel(nLevel), + nOutlinePos(nArrPos), bIsMoveable(bMove){} + + USHORT GetPos(){return nOutlinePos;} + BYTE GetOutlineLevel(){return nOutlineLevel;} + BOOL IsMoveable(){return bIsMoveable;}; +}; + +//---------------------------------------------------------------------------- +class SwRegionContent : public SwContent +{ + + BYTE nRegionLevel; + + public: + SwRegionContent( const SwContentType* pCnt, + const String& rName, + BYTE nLevel, + long nYPos) : + SwContent(pCnt, rName, nYPos), + nRegionLevel(nLevel){} + BYTE GetRegionLevel() const {return nRegionLevel;} +}; +//---------------------------------------------------------------------------- + +class SwURLFieldContent : public SwContent +{ + const SwTxtINetFmt* pINetAttr; + String sURL; + +public: + SwURLFieldContent( const SwContentType* pCnt, + const String& rName, + const String& rURL, + const SwTxtINetFmt* pAttr, + long nYPos ) + : SwContent( pCnt, rName, nYPos ), sURL( rURL ), pINetAttr( pAttr ) + {} + + virtual BOOL IsProtect() const; + const String& GetURL() { return sURL; } + const SwTxtINetFmt* GetINetAttr() { return pINetAttr; } +}; + +//---------------------------------------------------------------------------- + +class SwPostItContent : public SwContent +{ + const SwFmtFld* pFld; +public: + SwPostItContent( const SwContentType* pCnt, + const String& rName, + const SwFmtFld* pField, + long nYPos ) + : SwContent( pCnt, rName, nYPos ), pFld( pField ) + {} + + const SwFmtFld* GetPostIt() { return pFld; } + virtual BOOL IsProtect() const; +}; + +//---------------------------------------------------------------------------- + +class SwGraphicContent : public SwContent +{ + String sLink; +public: + SwGraphicContent(const SwContentType* pCnt, const String& rName, const String& rLink, long nYPos) + : SwContent( pCnt, rName, nYPos ), sLink( rLink ) + {} + virtual ~SwGraphicContent(); + + const String& GetLink() const {return sLink;} +}; + +//---------------------------------------------------------------------------- +class SwTOXBaseContent : public SwContent +{ + const SwTOXBase* pBase; +public: + SwTOXBaseContent(const SwContentType* pCnt, const String& rName, long nYPos, const SwTOXBase& rBase) + : SwContent( pCnt, rName, nYPos ), pBase(&rBase) + {} + virtual ~SwTOXBaseContent(); + + const SwTOXBase* GetTOXBase() const {return pBase;} +}; +/* + class ContentType enthaelt Informationen zu einer Inhaltsform + Das MemberArray wird nur gefuellt, wenn der Inhalt mit GetMember + angefordert wird. Es wird nach Invalidate() nur dann neu geladen, + wenn der Inhalt erneut ausgelesen werden soll. +*/ +//---------------------------------------------------------------------------- +//---------------------------------------------------------------------------- + +class SwContentType : public SwTypeNumber +{ + SwWrtShell* pWrtShell; + SwContentArr* pMember; // Array fuer Inhalte + String sContentTypeName; // Name der Inhaltsform + String sSingleContentTypeName; // Name der Inhaltsform, Singular + String sTypeToken; // Anhaengsel fuer URL + USHORT nMemberCount; // Inhaltsanzahl + USHORT nContentType; // Id der Inhaltsform + BYTE nOutlineLevel; + BOOL bMemberFilled : 1; // wurden die Inhalte bereits eingefuegt? + BOOL bIsInternalDrag:1; // koennen die Inhalte verschoben werden? + BOOL bDataValid : 1; // + BOOL bEdit: 1; // kann diese Type bearbeitet werden ? + BOOL bDelete: 1; // kann diese Type geloescht werden ? +protected: + void RemoveNewline(String&); +public: + SwContentType(SwWrtShell* pParent, USHORT nType, BYTE nLevel ); + ~SwContentType(); + + void Init(BOOL* pbInvalidateWindow = 0); + void FillMemberList(BOOL* pbLevelChanged = NULL); + USHORT GetMemberCount() const + {return nMemberCount;}; + USHORT GetType() const {return nContentType;} + const SwContent* GetMember(USHORT nIndex); + const String& GetName() {return sContentTypeName;} + const String& GetSingleName() const {return sSingleContentTypeName;} + const String& GetTypeToken() const{return sTypeToken;} + + void SetOutlineLevel(BYTE nNew) + { + nOutlineLevel = nNew; + Invalidate(); + } + + void Invalidate(); // nur nMemberCount wird neu gelesen + + BOOL IsEditable() const {return bEdit;} + BOOL IsDeletable() const {return bDelete;} +}; + +#endif + diff --git a/sw/source/ui/inc/conttree.hxx b/sw/source/ui/inc/conttree.hxx new file mode 100644 index 000000000000..1732d879c812 --- /dev/null +++ b/sw/source/ui/inc/conttree.hxx @@ -0,0 +1,332 @@ +/************************************************************************* + * + * $RCSfile: conttree.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _CONTTREE_HXX +#define _CONTTREE_HXX +#ifndef _SWCONT_HXX +#include "swcont.hxx" +#endif + +#ifndef _SVTREEBOX_HXX //autogen +#include <svtools/svtreebx.hxx> +#endif + +class SwWrtShell; +class SwContentArr; +class SwContentType; +class SwNavigationPI; +class SwFmtFld; +class SwTxtINetFmt; +class SwNavigationConfig; +class SwDocShell; +class SvDataObject; +class Menu; +class ToolBox; + +#define EDIT_MODE_EDIT 0 +#define EDIT_MODE_UPD_IDX 1 +#define EDIT_MODE_RMV_IDX 2 +#define EDIT_UNPROTECT_TABLE 3 +#define EDIT_MODE_DELETE 4 +#define EDIT_MODE_RENAME 5 + +//---------------------------------------------------------------------------- +//---------------------------------------------------------------------------- + +class SwContentTree : public SvTreeListBox +{ + SwWrtShell* pHiddenShell; // gedropptes Doc + SwWrtShell* pActiveShell; // die aktive oder eine konst. offene View + SwNavigationConfig* pConfig; + ImageList aEntryImages; + String sSpace; + AutoTimer aUpdTimer; + + USHORT nActiveBlock; + USHORT nHiddenBlock; + USHORT nRootType; + USHORT nLastSelType; + USHORT nDragMode; // wir fuer den StaticLink gebraucht + BYTE nOutlineLevel; + + BOOL bIsActive :1; + BOOL bIsConstant :1; + BOOL bIsHidden :1; + BOOL bDocChgdInDragging :1; + BOOL bIsInternalDrag :1; + BOOL bIsRoot :1; + BOOL bIsIdleClear :1; + BOOL bIsLastReadOnly :1; + BOOL bIsOutlineMoveable :1; + BOOL bViewHasChanged :1; + BOOL bIsImageListInitialized : 1; + + static BOOL bIsInDrag; + + SwContentType* aActiveContentArr[CONTENT_TYPE_MAX]; + SwContentType* aHiddenContentArr[CONTENT_TYPE_MAX]; + String aContextStrings[CONTEXT_COUNT + 1]; + String sRemoveIdx; + String sUpdateIdx; + String sUnprotTbl; + String sRename; + String sReadonlyIdx; + String sInvisible; + + void FindActiveTypeAndRemoveUserData(); + +protected: + virtual BOOL Drop( const DropEvent& rEvt); + virtual BOOL QueryDrop( DropEvent& rEvt); + virtual void Command( const CommandEvent& rCEvt ); + virtual void RequestHelp( const HelpEvent& rHEvt ); + virtual void InitEntry(SvLBoxEntry*,const XubString&,const Image&,const Image&); + + SwNavigationPI* GetParentWindow(){return + (SwNavigationPI*)Window::GetParent();} + + void StartExecuteDrag(); + BOOL FillDragServer(USHORT& nDragMode); + BOOL HasContentChanged(); + + virtual DragDropMode NotifyBeginDrag( SvLBoxEntry* ); + + virtual BOOL NotifyMoving( SvLBoxEntry* pTarget, + SvLBoxEntry* pEntry, + SvLBoxEntry*& rpNewParent, + ULONG& rNewChildPos + ); + virtual BOOL NotifyCopying( SvLBoxEntry* pTarget, + SvLBoxEntry* pEntry, + SvLBoxEntry*& rpNewParent, + ULONG& rNewChildPos + ); + virtual BOOL NotifyQueryDrop( SvLBoxEntry* ); + virtual void BeginDrag( const Point& ); + virtual void EndDrag(); + virtual void MouseButtonDown( const MouseEvent& rMEvt ); + + void EditEntry(SvLBoxEntry* pEntry, BYTE nMode = EDIT_MODE_EDIT); + void GotoContent(SwContent* pCnt); + static void SetInDrag(BOOL bSet) {bIsInDrag = bSet;} + + USHORT GetDragMode() const {return nDragMode;} + DECL_STATIC_LINK(SwContentTree, ExecDragHdl, SwContentTree*); + +public: + SwContentTree(Window* pParent, const ResId& rResId); + ~SwContentTree(); + + BOOL ToggleToRoot(); + BOOL IsRoot() const {return bIsRoot;} + USHORT GetRootType() const {return nRootType;} + void SetRootType(USHORT nType); + void Display( BOOL bActiveView ); + void Clear(); + void SetHiddenShell(SwWrtShell* pSh); + void ShowHiddenShell(); + void ShowActualView(); + void SetActiveShell(SwWrtShell* pSh); + void SetConstantShell(SwWrtShell* pSh); + + SwWrtShell* GetWrtShell() + {return bIsActive||bIsConstant ? + pActiveShell : + pHiddenShell;} + + static BOOL IsInDrag() {return bIsInDrag;} + BOOL IsInternalDrag() const {return bIsInternalDrag != 0;} + + USHORT GetActiveBlock() const {return nActiveBlock;} + + BYTE GetOutlineLevel()const {return nOutlineLevel;} + void SetOutlineLevel(BYTE nSet); + BOOL Expand( SvLBoxEntry* pParent ); + BOOL Collapse( SvLBoxEntry* pParent ); + void ExecCommand(USHORT nCmd, BOOL bModifier); + void Show(); + void Hide(); + + BOOL IsConstantView() {return bIsConstant;} + BOOL IsActiveView() {return bIsActive;} + BOOL IsHiddenView() {return bIsHidden;} + + const SwWrtShell* GetActiveWrtShell() {return pActiveShell;} + SwWrtShell* GetHiddenWrtShell() {return pHiddenShell;} + + DECL_LINK( ContentDoubleClickHdl, SwContentTree * ); + DECL_LINK( PopupHdl, Menu* ); + DECL_LINK( TimerUpdate, Timer * ); + + virtual long GetTabPos( SvLBoxEntry*, SvLBoxTab* ); + virtual void RequestingChilds( SvLBoxEntry* pParent ); + virtual void GetFocus(); + virtual void KeyInput(const KeyEvent& rKEvt); + virtual BOOL Select( SvLBoxEntry* pEntry, BOOL bSelect=TRUE ); +}; + + +//---------------------------------------------------------------------------- +// TreeListBox fuer Globaldokumente +//---------------------------------------------------------------------------- + +class SwGlblDocContents; +class SwGlblDocContent; + +class SwLBoxString : public SvLBoxString +{ +public: + + SwLBoxString( SvLBoxEntry* pEntry, USHORT nFlags, + const String& rStr ) : SvLBoxString(pEntry,nFlags,rStr) + { + } + + virtual void Paint( const Point& rPos, SvLBox& rDev, USHORT nFlags, + SvLBoxEntry* pEntry); +}; + +class SwGlobalTree : public SvTreeListBox +{ + AutoTimer aUpdateTimer; + String aContextStrings[GLOBAL_CONTEXT_COUNT]; + + ImageList aEntryImages; + + SwWrtShell* pActiveShell; // + SvLBoxEntry* pEmphasisEntry; // Drag'n Drop-Emphasis + SvLBoxEntry* pDDSource; // Quelle beim DnD + SwGlblDocContents* pSwGlblDocContents; // Array mit sortierten Inhalten + + BOOL bIsInternalDrag :1; + BOOL bLastEntryEmphasis :1; // Drag'n Drop + BOOL bIsImageListInitialized : 1; + + static const SfxObjectShell* pShowShell; + + protected: + virtual BOOL Drop( const DropEvent& rEvt); + virtual BOOL QueryDrop( DropEvent& rEvt); + virtual void Command( const CommandEvent& rCEvt ); + virtual void RequestHelp( const HelpEvent& rHEvt ); + + virtual long GetTabPos( SvLBoxEntry*, SvLBoxTab* ); + virtual DragDropMode NotifyBeginDrag( SvLBoxEntry* ); + virtual BOOL NotifyMoving( SvLBoxEntry* pTarget, + SvLBoxEntry* pEntry, + SvLBoxEntry*& rpNewParent, + ULONG& rNewChildPos + ); + virtual BOOL NotifyCopying( SvLBoxEntry* pTarget, + SvLBoxEntry* pEntry, + SvLBoxEntry*& rpNewParent, + ULONG& rNewChildPos + ); + virtual BOOL NotifyQueryDrop( SvLBoxEntry* ); + virtual void BeginDrag( const Point& ); + virtual void EndDrag(); + virtual void MouseButtonDown( const MouseEvent& rMEvt ); + virtual void KeyInput(const KeyEvent& rKEvt); + virtual void GetFocus(); + virtual void SelectHdl(); + virtual void DeselectHdl(); + virtual void InitEntry(SvLBoxEntry*,const XubString&,const Image&,const Image&); + + void Clear(); + + DECL_LINK( PopupHdl, Menu* ); + DECL_LINK( Timeout, Timer* ); + DECL_LINK( DoubleClickHdl, SwGlobalTree * ); + + BOOL IsInternalDrag() const {return bIsInternalDrag != 0;} + SwNavigationPI* GetParentWindow(){return + (SwNavigationPI*)Window::GetParent();} + + void OpenDoc(const SwGlblDocContent*); + void GotoContent(const SwGlblDocContent*); + USHORT GetEnableFlags() const; + + static const SfxObjectShell* GetShowShell() {return pShowShell;} + static void SetShowShell(const SfxObjectShell*pSet) {pShowShell = pSet;} + DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, SwGlobalTree*); + + public: + SwGlobalTree(Window* pParent, const ResId& rResId); + ~SwGlobalTree(); + + void TbxMenuHdl(USHORT nTbxId, ToolBox* pBox); + void InsertRegion(const SwGlblDocContent* pCont, + const String* pFileName = 0 ); + void EditContent(const SwGlblDocContent* pCont ); + void Show(); + void Hide(); + + void ExecCommand(USHORT nCmd); + + void Display(BOOL bOnlyUpdateUserData = FALSE); + BOOL Update(BOOL bHard = FALSE); +}; + + + +#endif + + diff --git a/sw/source/ui/inc/convert.hxx b/sw/source/ui/inc/convert.hxx new file mode 100644 index 000000000000..e73666a6fc86 --- /dev/null +++ b/sw/source/ui/inc/convert.hxx @@ -0,0 +1,120 @@ +/************************************************************************* + * + * $RCSfile: convert.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SW_CONVERT_HXX +#define _SW_CONVERT_HXX + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif +#ifndef _SV_EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif + +class SwTableAutoFmt; +class SwView; +class SwWrtShell; + +class SwConvertTableDlg: public SfxModalDialog +{ + RadioButton aTabBtn; + RadioButton aSemiBtn; + RadioButton aParaBtn; + RadioButton aOtherBtn; + Edit aOtherEd; + CheckBox aKeepColumn; + GroupBox aDelimFrm; + + CheckBox aHeaderCB; + CheckBox aRepeatHeaderCB; + CheckBox aDontSplitCB; + CheckBox aBorderCB; + GroupBox aOptionsGB; + + OKButton aOkBtn; + CancelButton aCancelBtn; + HelpButton aHelpBtn; + PushButton aAutoFmtBtn; + + String sConvertTextTable; + SwTableAutoFmt* pTAutoFmt; + SwWrtShell* pShell; + + DECL_LINK( AutoFmtHdl, PushButton* ); + DECL_LINK( BtnHdl, Button* ); + DECL_LINK( CheckBoxHdl, CheckBox *pCB = 0 ); + +public: + SwConvertTableDlg( SwView& rView ); + ~SwConvertTableDlg(); + + void GetValues( char& rDelim, + USHORT& rInsTblFlags, + SwTableAutoFmt *& prTAFmt ); +}; + + +#endif diff --git a/sw/source/ui/inc/cption.hxx b/sw/source/ui/inc/cption.hxx new file mode 100644 index 000000000000..2e411d0d838d --- /dev/null +++ b/sw/source/ui/inc/cption.hxx @@ -0,0 +1,176 @@ +/************************************************************************* + * + * $RCSfile: cption.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _CPTION_HXX +#define _CPTION_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif +#ifndef _ACTCTRL_HXX //autogen +#include <actctrl.hxx> +#endif + + +#ifndef _COM_SUN_STAR_CONTAINER_XENUMERATIONACCESS_HPP_ +#include <com/sun/star/container/XEnumerationAccess.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XHIERARCHICALNAMEACCESS_HPP_ +#include <com/sun/star/container/XHierarchicalNameAccess.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_ +#include <com/sun/star/container/XNameAccess.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XCONTENTENUMERATIONACCESS_HPP_ +#include <com/sun/star/container/XContentEnumerationAccess.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XENUMERATION_HPP_ +#include <com/sun/star/container/XEnumeration.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XELEMENTACCESS_HPP_ +#include <com/sun/star/container/XElementAccess.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XINDEXACCESS_HPP_ +#include <com/sun/star/container/XIndexAccess.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XNAMED_HPP_ +#include <com/sun/star/container/XNamed.hpp> +#endif + +class SwFldMgr; +class SwView; + +#include "swlbox.hxx" + +class NoSpaceCombo : public SwComboBox +{ +protected: + virtual void KeyInput( const KeyEvent& ); + +public: + NoSpaceCombo( Window* pParent, const ResId& rResId) + : SwComboBox(pParent, rResId) + {} +}; + +class SwCaptionDialog : public SvxStandardDialog +{ + FixedText aSampleText; + FixedText aCategoryText; + NoSpaceCombo aCategoryBox; + FixedText aFormatText; + ListBox aFormatBox; + FixedText aTextText; + Edit aTextEdit; + FixedText aPosText; + ListBox aPosBox; + CheckBox aCopyAttributesCB; + FixedText aObjectNameFT; + NoSpaceEdit aObjectNameED; + GroupBox aSettingsGroup; + OKButton aOKButton; + CancelButton aCancelButton; + HelpButton aHelpButton; + PushButton aOptionButton; + + SwView &rView; //Suchen per aktive ::com::sun::star::sdbcx::View vermeiden. + SwFldMgr *pMgr; //Ptr um das include zu sparen + sal_uInt16 eType; + + String sObjectName; + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > xNameAccess; + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed > xNamed; + + DECL_LINK( SelectHdl, ListBox * ); + DECL_LINK( ModifyHdl, Edit * ); + DECL_LINK( OptionHdl, Button * ); + + virtual void Apply(); + + void DrawSample(); + +public: + SwCaptionDialog( Window *pParent, SwView &rV ); + ~SwCaptionDialog(); +}; + +#endif + + diff --git a/sw/source/ui/inc/dbinsdlg.hxx b/sw/source/ui/inc/dbinsdlg.hxx new file mode 100644 index 000000000000..54ff61bfcff5 --- /dev/null +++ b/sw/source/ui/inc/dbinsdlg.hxx @@ -0,0 +1,245 @@ +/************************************************************************* + * + * $RCSfile: dbinsdlg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _DBINSDLG_HXX +#define _DBINSDLG_HXX + + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif +#ifndef _SV_LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif +#ifndef _SVEDIT_HXX //autogen +#include <svtools/svmedit.hxx> +#endif +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif +#ifndef _SVARRAY_HXX //autogen +#include <svtools/svarray.hxx> +#endif +#ifndef _SWNUMFMTLB_HXX //autogen +#include <numfmtlb.hxx> +#endif +#ifdef REPLACE_OFADBMGR +#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_ +#include <com/sun/star/uno/Reference.h> +#endif +namespace com{namespace sun{namespace star{namespace sdbcx{ + class XColumnsSupplier; +}}}} +#endif + +class SwTableAutoFmt; +class SwView; +class SbaSelectionList; +class _DB_ColumnConfig; +class SfxItemSet; +class SwTableRep; +class _DB_Columns; + +struct SwInsDBColumn +{ + String sColumn, sUsrNumFmt; + ULONG nDBNumFmt, nUsrNumFmt; // besser ist NumFormatStr !! + LanguageType eUsrNumFmtLng; + USHORT nCol; + BOOL bHasFmt : 1; + BOOL bIsDBFmt : 1; + + SwInsDBColumn( const String& rStr, USHORT nColumn ) + : sColumn( rStr ), nCol( nColumn ), nDBNumFmt( 0 ), nUsrNumFmt( 0 ), + bHasFmt(FALSE), bIsDBFmt(TRUE), eUsrNumFmtLng( LANGUAGE_SYSTEM ) + {} + + int operator==( const SwInsDBColumn& rCmp ) const + { return sColumn == rCmp.sColumn; } + int operator<( const SwInsDBColumn& rCmp ) const; +}; + +#ifdef REPLACE_OFADBMGR +struct SwInsDBData +{ + String sDataBaseName; + String sDataTableName; + String sStatement; +}; +#endif +typedef SwInsDBColumn* SwInsDBColumnPtr; +SV_DECL_PTRARR_SORT_DEL( SwInsDBColumns, SwInsDBColumnPtr, 32, 32 ) + + +class SwInsertDBColAutoPilot : public SfxModalDialog +{ + FixedText aFtInsertData; + RadioButton aRbAsTable; + RadioButton aRbAsField; + RadioButton aRbAsText; + + GroupBox aGbSelection; + FixedText aFtDbColumn; + + ListBox aLbTblDbColumn; + ListBox aLbTxtDbColumn; + + GroupBox aGbDbFormat; + RadioButton aRbDbFmtFromDb; + RadioButton aRbDbFmtFromUsr; + NumFormatListBox aLbDbFmtFromUsr; + + /* ----- Page Text/Field ------- */ + PushButton aPbDbcolToEdit; + MultiLineEdit aEdDbText; + FixedText aFtDbParaColl; + ListBox aLbDbParaColl; + + /* ----- Page Table ------------ */ + PushButton aPbDbcolAllTo; + PushButton aPbDbcolOneTo; + PushButton aPbDbcolOneFrom; + PushButton aPbDbcolAllFrom; + FixedText aFtTableCol; + ListBox aLbTableCol; + GroupBox aGbTableHead; + CheckBox aCbTableHeadon; + RadioButton aRbHeadlColnms; + RadioButton aRbHeadlEmpty; + PushButton aPbTblFormat; + PushButton aPbTblAutofmt; + + OKButton aBtOk; + CancelButton aBtCancel; + HelpButton aBtHelp; + + SwInsDBColumns aDBColumns; +#ifdef REPLACE_OFADBMGR + const SwInsDBData aDBData; +#else + +#endif //REPLACE_OFADBMGR + + Link aOldNumFmtLnk; + String sNoTmpl; + + SwView* pView; + SwTableAutoFmt* pTAutoFmt; + _DB_ColumnConfig* pConfig; + + SfxItemSet* pTblSet; + SwTableRep* pRep; + USHORT nGBFmtLen; + + DECL_LINK( PageHdl, Button* ); + DECL_LINK( AutoFmtHdl, PushButton* ); + DECL_LINK( TblFmtHdl, PushButton* ); + DECL_LINK( DBFormatHdl, Button* ); + DECL_LINK( TblToFromHdl, Button* ); + DECL_LINK( SelectHdl, ListBox* ); + DECL_LINK( DblClickHdl, ListBox* ); + DECL_LINK( HeaderHdl, Button* ); + + FASTBOOL SplitTextToColArr( const String& rTxt, _DB_Columns& rColArr, BOOL bInsField ); + + // Daten ins INI-File schreiben + void WriteUIToIni(); + // Daten aus dem INI-File lesen: + void ReadIniToUI(); + // setze die Tabellen - Eigenschaften + void SetTabSet(); + +public: +#ifdef REPLACE_OFADBMGR + SwInsertDBColAutoPilot( SwView& rView, + ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource> rxSource, + com::sun::star::uno::Reference<com::sun::star::sdbcx::XColumnsSupplier>, + const SwInsDBData& rData ); +#else + SwInsertDBColAutoPilot( SwView& rView ); +#endif //REPLACE_OFADBMGR + + virtual ~SwInsertDBColAutoPilot(); + +#ifdef REPLACE_OFADBMGR + void DataToDoc( const SbaSelectionList*, + ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource> rxSource, + ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> xConnection); +#else + BOOL HasValidDB() const { return 0 != aDBColumns.Count(); } + void DataToDoc( const SbaSelectionList* ); +#endif //REPLACE_OFADBMGR + +}; + + + + +#endif diff --git a/sw/source/ui/inc/dbtree.hxx b/sw/source/ui/inc/dbtree.hxx new file mode 100644 index 000000000000..b8439bd911e7 --- /dev/null +++ b/sw/source/ui/inc/dbtree.hxx @@ -0,0 +1,121 @@ +/************************************************************************* + * + * $RCSfile: dbtree.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _DBTREE_HXX +#define _DBTREE_HXX + +#ifndef _SVTREEBOX_HXX //autogen +#include <svtools/svtreebx.hxx> +#endif + +#ifdef REPLACE_OFADBMGR +#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_ +#include <com/sun/star/uno/Reference.h> +#endif +namespace com{namespace sun{namespace star{namespace container{ + class XNameAccess; +}}}} +#endif + +#include "swtypes.hxx" + +class SwDBTreeList : public SvTreeListBox +{ + Bitmap aRootOpened; + Bitmap aRootClosed; + Image aDBBMP; + Image aTableBMP; + Image aQueryBMP; + + String sDefDBName; + BOOL bInitialized; + BOOL bShowColumns; + +#ifdef REPLACE_OFADBMGR + com::sun::star::uno::Reference<com::sun::star::container::XNameAccess> xDBContext; +#endif + DECL_LINK( DBCompare, SvSortData* ); + + void InitTreeList(); + virtual void RequestingChilds( SvLBoxEntry* pParent ); + + virtual void Command( const CommandEvent& rCEvt ); + virtual BOOL QueryDrop( DropEvent& rEvt); + + void StartExecuteDrag(); + +public: + SwDBTreeList(Window* pParent, const ResId& rResId, const String& rDefDBName = aEmptyStr, const BOOL bShowCol = FALSE ); + ~SwDBTreeList(); + +#ifdef REPLACE_OFADBMGR + String GetDBName(String& rTableName, String& rColumnName, BOOL* pbIsTable = 0); + void Select(const String& rDBName, const String& rTableName, const String& rColumnName); +#else + String GetDBName() const; + void Select(const String& rDBName); // Format: Datenbank.Tabelle +#endif + + void Show(); + void ShowColumns(BOOL bShowCol); +}; + +#endif + diff --git a/sw/source/ui/inc/dbui.hxx b/sw/source/ui/inc/dbui.hxx new file mode 100644 index 000000000000..ffb5571d54b5 --- /dev/null +++ b/sw/source/ui/inc/dbui.hxx @@ -0,0 +1,114 @@ +/************************************************************************* + * + * $RCSfile: dbui.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _DBUI_HXX +#define _DBUI_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _SV_FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#include "dbtree.hxx" +#include "swtypes.hxx" + +class SwWrtShell; +class SbaObject; + +class SwDBSelect : public SvxStandardDialog +{ + SwDBTreeList aTree; + + OKButton aOkBTN; + CancelButton aCancelBTN; + HelpButton aHelpBTN; + + DECL_LINK(TreeSelectHdl, SvTreeListBox* pBox); + + virtual void Apply(); + +public: + SwDBSelect(Window* pParent, SwWrtShell* pSh, const String& rDefDBName = aEmptyStr); + ~SwDBSelect(); + + String GetDBName() const; +}; + +class PrintMonitor: public ModelessDialog +{ +public: + FixedText aDocName; + FixedText aPrinting; + FixedText aPrinter; + FixedText aPrintInfo; + CancelButton aCancel; + + PrintMonitor( Window *pParent, BOOL bEMail = FALSE ); +}; + +#endif + diff --git a/sw/source/ui/inc/docfnote.hxx b/sw/source/ui/inc/docfnote.hxx new file mode 100644 index 000000000000..ff632ca6839c --- /dev/null +++ b/sw/source/ui/inc/docfnote.hxx @@ -0,0 +1,86 @@ +/************************************************************************* + * + * $RCSfile: docfnote.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _DOCFNOTE_HXX +#define _DOCFNOTE_HXX + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +class SwWrtShell; + +class SwFootNoteOptionDlg :public SfxTabDialog +{ + SwWrtShell &rSh; + Link aOldOkHdl; + + virtual void PageCreated( USHORT nId, SfxTabPage &rPage ); + +#ifdef __PRIVATE + DECL_LINK( OkHdl, Button * ); +#endif + +public: + SwFootNoteOptionDlg(Window *pParent, SwWrtShell &rSh ); + ~SwFootNoteOptionDlg(); +}; + +#endif diff --git a/sw/source/ui/inc/docstdlg.hxx b/sw/source/ui/inc/docstdlg.hxx new file mode 100644 index 000000000000..792d31be5064 --- /dev/null +++ b/sw/source/ui/inc/docstdlg.hxx @@ -0,0 +1,124 @@ +/************************************************************************* + * + * $RCSfile: docstdlg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _DOCSTDLG_HXX +#define _DOCSTDLG_HXX + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _STDCTRL_HXX //autogen +#include <svtools/stdctrl.hxx> +#endif + +#include "docstat.hxx" + +/*-------------------------------------------------------------------- + Beschreibung: DocInfo jetzt als Page + --------------------------------------------------------------------*/ + +class SwDocStatPage: public SfxTabPage +{ +public: + SwDocStatPage(Window *pParent, const SfxItemSet &rSet); + ~SwDocStatPage(); + + static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); + +protected: + virtual BOOL FillItemSet( SfxItemSet &rSet); + virtual void Reset (const SfxItemSet &rSet); + + DECL_LINK( UpdateHdl, PushButton*); + +private: + FixedText aTableLbl; + FixedText aGrfLbl; + FixedText aOLELbl; + FixedText aPageLbl; + FixedText aParaLbl; + FixedText aWordLbl; + FixedText aWordDelimFT; + Edit aWordDelim; + FixedText aCharLbl; + FixedText aLineLbl; + + FixedInfo aTableNo; + FixedInfo aGrfNo; + FixedInfo aOLENo; + FixedInfo aPageNo; + FixedInfo aParaNo; + FixedInfo aWordNo; + FixedInfo aCharNo; + FixedInfo aLineNo; + + PushButton aUpdatePB; + SwDocStat aDocStat; + + void Update(); + void SetData(const SwDocStat &rStat); +}; + +#endif diff --git a/sw/source/ui/inc/drawbase.hxx b/sw/source/ui/inc/drawbase.hxx new file mode 100644 index 000000000000..f55dc84672f9 --- /dev/null +++ b/sw/source/ui/inc/drawbase.hxx @@ -0,0 +1,117 @@ +/************************************************************************* + * + * $RCSfile: drawbase.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SW_DRAWBASE_HXX +#define _SW_DRAWBASE_HXX + +#ifndef _GEN_HXX //autogen +#include <tools/gen.hxx> +#endif + +class SwView; +class SwWrtShell; +class SwEditWin; +class KeyEvent; +class MouseEvent; + +#define MIN_FREEHAND_DISTANCE 10 + +/************************************************************************* +|* +|* Basisklasse fuer alle Funktionen +|* +\************************************************************************/ + +class SwDrawBase +{ +protected: + SwView* pView; + SwWrtShell* pSh; + SwEditWin* pWin; + Point aStartPos; // Position von BeginCreate + Point aMDPos; // Position von MouseButtonDown + BOOL bCreateObj :1; + BOOL bInsForm :1; + +public: + SwDrawBase(SwWrtShell *pSh, SwEditWin* pWin, SwView* pView); + virtual ~SwDrawBase(); + + void SetDrawPointer(); + void EnterSelectMode(const MouseEvent& rMEvt); + inline BOOL IsInsertForm() const { return bInsForm; } + inline BOOL IsCreateObj() const { return bCreateObj; } + + // Mouse- & Key-Events; Returnwert=TRUE: Event wurde bearbeitet + virtual BOOL KeyInput(const KeyEvent& rKEvt); + virtual BOOL MouseMove(const MouseEvent& rMEvt); + virtual BOOL MouseButtonUp(const MouseEvent& rMEvt); + virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); + + void BreakCreate(); + + virtual void Activate(const USHORT nSlotId); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren +}; + + + +#endif // _SW_DRAWBASE_HXX + diff --git a/sw/source/ui/inc/drawsh.hxx b/sw/source/ui/inc/drawsh.hxx new file mode 100644 index 000000000000..e148badafd90 --- /dev/null +++ b/sw/source/ui/inc/drawsh.hxx @@ -0,0 +1,88 @@ +/************************************************************************* + * + * $RCSfile: drawsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _SWDRAWSH_HXX +#define _SWDRAWSH_HXX + +#include "drwbassh.hxx" + +class SdrObject; +class SwDrawBaseShell; + +class SwDrawShell: public SwDrawBaseShell +{ +public: + SFX_DECL_INTERFACE(SW_DRAWSHELL); + TYPEINFO(); + + SwDrawShell(SwView &rView); + + void Execute(SfxRequest &); + void GetState(SfxItemSet &); + void ExecDrawDlg(SfxRequest& rReq); + void ExecDrawAttrArgs(SfxRequest& rReq); + void GetDrawAttrState(SfxItemSet &rSet); + + void ExecFormText(SfxRequest& rReq); + void GetFormTextState(SfxItemSet& rSet); +}; + +#endif diff --git a/sw/source/ui/inc/drformsh.hxx b/sw/source/ui/inc/drformsh.hxx new file mode 100644 index 000000000000..475cb4a45771 --- /dev/null +++ b/sw/source/ui/inc/drformsh.hxx @@ -0,0 +1,83 @@ +/************************************************************************* + * + * $RCSfile: drformsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _SWDRWFORMSH_HXX +#define _SWDRWFORMSH_HXX + +#include "drwbassh.hxx" + +class SdrObject; +class SwDrawBaseShell; + +class SwDrawFormShell: public SwDrawBaseShell +{ +public: + SFX_DECL_INTERFACE(SW_DRAWFORMSHELL); + TYPEINFO(); + + SwDrawFormShell(SwView &rView); + virtual ~SwDrawFormShell(); + + void Execute(SfxRequest &); + void GetState(SfxItemSet &); +}; + +#endif diff --git a/sw/source/ui/inc/drpcps.hxx b/sw/source/ui/inc/drpcps.hxx new file mode 100644 index 000000000000..e239fbbfb9cc --- /dev/null +++ b/sw/source/ui/inc/drpcps.hxx @@ -0,0 +1,166 @@ +/************************************************************************* + * + * $RCSfile: drpcps.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _DRPCPS_HXX +#define _DRPCPS_HXX + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +class SwWrtShell; + +// class SwDropCapsDlg ****************************************************** + +class SwDropCapsDlg : public SfxSingleTabDialog +{ + +public: + + SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet ); + ~SwDropCapsDlg(); + +}; + +class SwDropCapsPict; + +// class SwDropCapsPage ***************************************************** + +class SwDropCapsPage : public SfxTabPage +{ +friend class SwDropCapsPict; + + CheckBox aDropCapsBox; + CheckBox aWholeWordCB; + FixedText aSwitchText; + NumericField aDropCapsField; + FixedText aLinesText; + NumericField aLinesField; + FixedText aDistanceText; + MetricField aDistanceField; + GroupBox aSettingsGroup; + + FixedText aTextText; + Edit aTextEdit; + FixedText aTemplateText; + ListBox aTemplateBox; + GroupBox aContentBox; + + SwDropCapsPict *pPict; + GroupBox aPictBox; + + BOOL bModified; + BOOL bFormat; + BOOL bHtmlMode; + + SwWrtShell &rSh; + + SwDropCapsPage(Window *pParent, const SfxItemSet &rSet); + ~SwDropCapsPage(); + + virtual int DeactivatePage(SfxItemSet *pSet); + void FillSet( SfxItemSet &rSet ); + + DECL_LINK( ClickHdl, Button * ); + DECL_LINK( ModifyHdl, Edit * ); + DECL_LINK( SelectHdl, ListBox * ); + DECL_LINK( WholeWordHdl, CheckBox * ); + +public: + + static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); + static USHORT* GetRanges(); + + virtual BOOL FillItemSet( SfxItemSet &rSet); + virtual void Reset (const SfxItemSet &rSet); + + void SetFormat(BOOL bSet){bFormat = bSet;} +}; + +#endif + diff --git a/sw/source/ui/inc/drwbassh.hxx b/sw/source/ui/inc/drwbassh.hxx new file mode 100644 index 000000000000..54d83432ab7f --- /dev/null +++ b/sw/source/ui/inc/drwbassh.hxx @@ -0,0 +1,101 @@ +/************************************************************************* + * + * $RCSfile: drwbassh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWDRWBASSH_HXX +#define _SWDRWBASSH_HXX + +#include "basesh.hxx" + +class SwWrtShell; +class SwView; +class SfxItemSet; +class SwDrawBase; + +class SwDrawBaseShell: public SwBaseShell +{ + SwDrawBase* pDrawActual; + + UINT16 eDrawMode; + BOOL bRotate : 1; + BOOL bSelMove: 1; + +public: + SwDrawBaseShell(SwView &rShell); + virtual ~SwDrawBaseShell(); + + SFX_DECL_INTERFACE(SW_DRAWBASESHELL); + TYPEINFO(); + + void Execute(SfxRequest &); + void GetState(SfxItemSet &); + void DisableState(SfxItemSet &rSet) { Disable(rSet);} + BOOL Disable(SfxItemSet& rSet, USHORT nWhich = 0); + + void StateStatusline(SfxItemSet &rSet); + +/* SwDrawBase* GetDrawFuncPtr() { return (pDrawActual); } + void SetDrawFuncPtr(SwDrawBase* pFuncPtr); + UINT16 GetDrawMode() { return (eDrawMode); } + void SetDrawMode(UINT16 eDrwMode) { eDrawMode = eDrwMode; } +*/ +}; + + +#endif diff --git a/sw/source/ui/inc/drwtxtsh.hxx b/sw/source/ui/inc/drwtxtsh.hxx new file mode 100644 index 000000000000..0f9ba8ea6d98 --- /dev/null +++ b/sw/source/ui/inc/drwtxtsh.hxx @@ -0,0 +1,123 @@ +/************************************************************************* + * + * $RCSfile: drwtxtsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWDRWTXTSH_HXX +#define _SWDRWTXTSH_HXX + + +#ifndef _SFX_SHELL_HXX //autogen +#include <sfx2/shell.hxx> +#endif +#include "shellid.hxx" + +class OutlinerView; +class SdrOutliner; +class SdrView; +class SwView; +class SfxModule; +class SwWrtShell; + +class SwDrawTextShell: public SfxShell +{ + SwView &rView; + + SdrView *pSdrView; + OutlinerView*pOLV; + SdrOutliner *pOutliner; + + BOOL bRotate : 1; + BOOL bSelMove: 1; + + void SetAttrToMarked(const SfxItemSet& rAttr); + void InsertSymbol(); + BOOL IsTextEdit(); +public: + SFX_DECL_INTERFACE(SW_DRWTXTSHELL); + TYPEINFO(); + + SwView &GetView() { return rView; } + SwWrtShell &GetShell(); + + SwDrawTextShell(SwView &rView); + virtual ~SwDrawTextShell(); + + void StateDisableItems(SfxItemSet &); + + void Execute(SfxRequest &); + void ExecDraw(SfxRequest &); + void GetState(SfxItemSet &); + void GetDrawTxtCtrlState(SfxItemSet&); + + void ExecFontWork(SfxRequest& rReq); + void StateFontWork(SfxItemSet& rSet); + void ExecFormText(SfxRequest& rReq); + void GetFormTextState(SfxItemSet& rSet); + void ExecDrawLingu(SfxRequest &rReq); + void ExecUndo(SfxRequest &rReq); + void StateUndo(SfxItemSet &rSet); + void ExecClpbrd(SfxRequest &rReq); + void StateClpbrd(SfxItemSet &rSet); + void StateInsert(SfxItemSet &rSet); + + void Init(); + void StateStatusline(SfxItemSet &rSet); +}; + +#endif diff --git a/sw/source/ui/inc/dselect.hxx b/sw/source/ui/inc/dselect.hxx new file mode 100644 index 000000000000..5fcb53b64a96 --- /dev/null +++ b/sw/source/ui/inc/dselect.hxx @@ -0,0 +1,86 @@ +/************************************************************************* + * + * $RCSfile: dselect.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SW_DSELECT_HXX +#define _SW_DSELECT_HXX + +#include "drawbase.hxx" + +/************************************************************************* +|* +|* Rechteck zeichnen +|* +\************************************************************************/ + +class DrawSelection : public SwDrawBase +{ + public: + DrawSelection(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView); + + // Mouse- & Key-Events + virtual BOOL KeyInput(const KeyEvent& rKEvt); + + virtual void Activate(const USHORT nSlotId); // Function aktivieren +}; + + + +#endif // _SW_DSELECT_HXX + diff --git a/sw/source/ui/inc/edtwin.hxx b/sw/source/ui/inc/edtwin.hxx new file mode 100644 index 000000000000..5f631cdad10b --- /dev/null +++ b/sw/source/ui/inc/edtwin.hxx @@ -0,0 +1,304 @@ +/************************************************************************* + * + * $RCSfile: edtwin.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _EDTWIN_HXX +#define _EDTWIN_HXX + +#ifndef _LINK_HXX //autogen +#include <tools/link.hxx> +#endif +#ifndef _TIMER_HXX //autogen +#include <vcl/timer.hxx> +#endif +#ifndef _WINDOW_HXX //autogen +#include <vcl/window.hxx> +#endif +#ifndef _SOT_EXCHANGE_HXX //autogen +#include <sot/exchange.hxx> +#endif +#ifndef _SWEVENT_HXX +#include <swevent.hxx> +#endif + +#define _SVSTDARR_STRINGSISORTDTOR +#include <svtools/svstdarr.hxx> + +class SwWrtShell; +class SwView; +class SwRect; +class SwDrawBase; +class ViewShell; +class SwAnchorMarker; +class SdrViewUserMarker; +class SdrObject; +class SwShadowCursor; +class DataChangedEvent; + +struct SwApplyTemplate; +struct QuickHelpData; + +/*-------------------------------------------------------------------- + Beschreibung: Eingabe-Fenster + --------------------------------------------------------------------*/ + +class SwEditWin: public Window +{ +friend void ScrollMDI(ViewShell* pVwSh, const SwRect&, + USHORT nRangeX, USHORT nRangeY); +friend BOOL IsScrollMDI(ViewShell* pVwSh, const SwRect&); + +friend void SizeNotify(ViewShell* pVwSh, const Size &); + +friend void PageNumNotify( ViewShell* pVwSh, + USHORT nPhyNum, + USHORT nVirtNum, + const String& rPg ); + + static QuickHelpData* pQuickHlpData; + + static BOOL bReplaceQuote; + static long nDDStartPosX, nDDStartPosY; + + static Color aTextColor; //Textfarbe, fuer die Giesskanne + static BOOL bTransparentBackColor; // Hintergrund transparent + static Color aTextBackColor; //Texthintergrundfarbe, fuer die Giesskanne + + /* + * Timer und Handler fuer das Weiterscrollen, wenn der + * Mauspointer innerhalb eines Drag-Vorgangs ausserhalb des + * EditWin stehen bleibt. In regelmaessigen Intervallen wird + * die Selektion in Richtung der Mausposition vergroessert. + */ + AutoTimer aTimer; + // Timer fuer verschachtelte KeyInputs (z.B. fuer Tabellen) + Timer aKeyInputTimer; + // timer for ANY-KeyInut question without a following KeyInputEvent + Timer aKeyInputFlushTimer; + + String aInBuffer; + Point aStartPos; + Point aMovePos; + Point aRszMvHdlPt; + Timer aTemplateTimer; + + // Type/Objecte ueber dem der MousePointer steht + SwCallMouseEvent aSaveCallEvent; + + SwApplyTemplate *pApplyTempl; + SwAnchorMarker *pAnchorMarker; // zum Verschieben eines Ankers + + SdrViewUserMarker *pUserMarker; + SdrObject *pUserMarkerObj; + SwShadowCursor *pShadCrsr; + + SwView &rView; + + int aActHitType; // aktueller Mauspointer + + ULONG nDropFormat; //Format aus dem letzten QueryDrop + USHORT nDropAction; //Action aus dem letzten QueryDrop + USHORT nDropDestination; //Ziel aus dem letzten QueryDrop + + UINT16 eDrawMode; + UINT16 eBezierMode; + UINT16 nInsFrmColCount; //Spaltenzahl fuer interaktiven Rahmen + BOOL bLinkRemoved : 1, + bMBPressed : 1, + bInsDraw : 1, + bInsFrm : 1, + bGrfToOle : 1, //Grf to Sim, fuer den Rueckweg. + bIsInMove : 1, + bIsInDrag : 1, //StartExecuteDrag nich doppelt ausfuehren + bOldIdle : 1, //Zum abschalten des Idle'ns + bOldIdleSet : 1, //waehrend QeueryDrop + bTblInsDelMode : 1, // + bTblIsInsMode : 1, // + bTblIsColMode : 1, // + bChainMode : 1, //Rahmen verbinden + bWasShdwCrsr : 1, //ShadowCrsr war im MouseButtonDown an + bLockInput : 1; //Lock waehrend die Rechenleiste aktiv ist + + + void LeaveArea(const Point &); + void JustifyAreaTimer(); + inline void EnterArea(); + + void RstMBDownFlags(); + + void ChangeFly( BYTE nDir, BOOL bWeb = FALSE ); + + BOOL EnterDrawMode(const MouseEvent& rMEvt, const Point& aDocPos); + BOOL RulerClook( SwView& , const MouseEvent& rMEvt); + + //Hilfsfunktionen fuer D&D + void DropCleanup(); + void CleanupDropUserMarker(); + + + /* + * Handler fuer das Weiterscrollen, wenn der Mauspointer innerhalb eines + * Drag-Vorgangs ausserhalb des EditWin stehen bleibt. In regelmaessigen + * Intervallen wird die Selektion in Richtung der Mausposition + * vergroessert. + */ + DECL_LINK( TimerHandler, Timer * ); + void StartDDTimer(); + void StopDDTimer(SwWrtShell *, const Point &); + DECL_LINK( DDHandler, Timer * ); + + // timer for ANY-KeyInut question without a following KeyInputEvent + DECL_LINK( KeyInputFlushHandler, Timer * ); + + // Timer fuer verschachtelte KeyInputs (z.B. fuer Tabellen) + DECL_LINK( KeyInputTimerHandler, Timer * ); + + // Timer fuer das ApplyTemplates per Maus (verkapptes Drag&Drop) + DECL_LINK( TemplateTimerHdl, Timer* ); + +protected: + + virtual void DataChanged( const DataChangedEvent& ); + virtual void Paint( const Rectangle& rRect ); + virtual void KeyInput(const KeyEvent &rKEvt); + + virtual void GetFocus(); + virtual void LoseFocus(); + + + virtual void MouseMove(const MouseEvent& rMEvt); + virtual void MouseButtonDown(const MouseEvent& rMEvt); + virtual void MouseButtonUp(const MouseEvent& rMEvt); + virtual void RequestHelp(const HelpEvent& rEvt); + + virtual void Command( const CommandEvent& rCEvt ); + + virtual BOOL Drop(const DropEvent& rEvt); + virtual BOOL QueryDrop( DropEvent& rEvt); + +public: + + + void OleToGrf(); + void GrfToOle(); + + void UpdatePointer(const Point &, USHORT nButtons = 0); + + BOOL IsDrawSelMode(); + BOOL IsDrawAction() { return (bInsDraw); } + void SetDrawAction(BOOL bFlag) { bInsDraw = bFlag; } + inline UINT16 GetDrawMode(BOOL bBuf = FALSE) const { return eDrawMode; } + inline void SetDrawMode(UINT16 eDrwMode) { eDrawMode = eDrwMode; } + void StdDrawMode(USHORT nSlotId); + BOOL IsFrmAction() { return (bInsFrm); } + inline UINT16 GetBezierMode() { return eBezierMode; } + void SetBezierMode(UINT16 eBezMode) { eBezierMode = eBezMode; } + void EnterDrawTextMode(const Point& aDocPos); // DrawTextEditMode einschalten + void InsFrm(USHORT nCols); + void StopInsFrm(); + UINT16 GetFrmColCount() const {return nInsFrmColCount;} //Spaltenzahl fuer interaktiven Rahmen + + + void SetChainMode( BOOL bOn ); + BOOL IsChainMode() const { return bChainMode; } + + void FlushInBuffer( SwWrtShell *pSh ); + + static void SetReplaceQuote(BOOL bOn = TRUE) { bReplaceQuote = bOn; } + static BOOL IsReplaceQuote() { return bReplaceQuote; } + + void SetApplyTemplate(const SwApplyTemplate &); + SwApplyTemplate* GetApplyTemplate() const { return pApplyTempl; } + + void StartExecuteDrag(); + USHORT GetDropAction() const { return nDropAction; } + ULONG GetDropFormat() const { return nDropFormat; } + + Color GetTextColor() { return aTextColor; } + void SetTextColor(const Color& rCol ) { aTextColor = rCol; } + + Color GetTextBackColor() + { return aTextBackColor; } + void SetTextBackColor(const Color& rCol ) + { aTextBackColor = rCol; } + void SetTextBackColorTransparent(BOOL bSet) + { bTransparentBackColor = bSet; } + BOOL IsTextBackColorTransparent() + { return bTransparentBackColor; } + void LockKeyInput(BOOL bSet){bLockInput = bSet;} + + const SwView &GetView() const { return rView; } + SwView &GetView() { return rView; } + + // Tipfenster loeschen + static void ClearTip(); + + static inline long GetDDStartPosX() { return nDDStartPosX; } + static inline long GetDDStartPosY() { return nDDStartPosY; } + + static void _InitStaticData(); + static void _FinitStaticData(); + + SwEditWin(Window *pParent, SwView &); + virtual ~SwEditWin(); +}; + + +#endif + diff --git a/sw/source/ui/inc/envimg.hxx b/sw/source/ui/inc/envimg.hxx new file mode 100644 index 000000000000..e6f7ea7933ef --- /dev/null +++ b/sw/source/ui/inc/envimg.hxx @@ -0,0 +1,138 @@ +/************************************************************************* + * + * $RCSfile: envimg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _ENVIMG_HXX +#define _ENVIMG_HXX + +#ifndef _SFXPOOLITEM_HXX //autogen +#include <svtools/poolitem.hxx> +#endif + +#ifndef _STRING_HXX //autogen +#include <tools/string.hxx> +#endif + +#ifndef _SFXCFGITEM_HXX //autogen +#include <sfx2/cfgitem.hxx> +#endif + + +// enum ----------------------------------------------------------------------- + +enum SwEnvAlign +{ + ENV_HOR_LEFT = 0, + ENV_HOR_CNTR, + ENV_HOR_RGHT, + ENV_VER_LEFT, + ENV_VER_CNTR, + ENV_VER_RGHT +}; + +// class SwEnvItem ------------------------------------------------------------ + +class SwEnvItem : public SfxPoolItem +{ +public: + + String aAddrText; // Text fuer Empfaenger + BOOL bSend; // Absender? + String aSendText; // Text fuer Absender + long lAddrFromLeft; // Linker Abstand fuer Empfaenger (twips) + long lAddrFromTop; // Oberer Abstand fuer Empfaenger (twips) + long lSendFromLeft; // Linker Abstand fuer Absender (twips) + long lSendFromTop; // Oberer Abstand fuer Absender (twips) + long lWidth; // Breite des Umschlags (twips) + long lHeight; // Hoehe des Umschlags (twips) + SwEnvAlign eAlign; // Ausrichtung beim Einzug + BOOL bPrintFromAbove; // Von oben drucken? + long lShiftRight; // Verschiebung nach rechts (twips) + long lShiftDown; // Verschiebung nach unten (twips) + String aSlot; // Druckerschacht + + SwEnvItem(); + SwEnvItem(const SwEnvItem& rItem); + + SwEnvItem& operator =(const SwEnvItem& rItem); + + virtual int operator ==(const SfxPoolItem& rItem) const; + + virtual SfxPoolItem* Clone(SfxItemPool* = 0) const; +}; + +// class SwEnvCfgItem ------------------------------------------------------- + +class SwEnvCfgItem : public SfxConfigItem +{ +protected: + + virtual int Load (SvStream& rStrm); + virtual BOOL Store(SvStream& rStrm); + virtual void UseDefault(); + +public: + SwEnvItem aEnvItem; + SwEnvCfgItem(); + + virtual String GetName() const; +}; + +#endif + diff --git a/sw/source/ui/inc/envlop.hxx b/sw/source/ui/inc/envlop.hxx new file mode 100644 index 000000000000..e27815d453f5 --- /dev/null +++ b/sw/source/ui/inc/envlop.hxx @@ -0,0 +1,181 @@ +/************************************************************************* + * + * $RCSfile: envlop.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _ENVLOP_HXX +#define _ENVLOP_HXX + +#ifdef VCL +#ifndef _SV_MEDIT_HXX +#include <svtools/svmedit.hxx> +#endif +#endif + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _IMAGEBTN_HXX //autogen +#include <vcl/imagebtn.hxx> +#endif + +#include "envimg.hxx" + +#define GetFldVal(rField) (rField).Denormalize((rField).GetValue(FUNIT_TWIP)) +#define SetFldVal(rField, lValue) (rField).SetValue((rField).Normalize(lValue), FUNIT_TWIP) + +class SwEnvPage; +class SwEnvFmtPage; +class SwWrtShell; +class Printer; + +// class SwEnvPreview --------------------------------------------------------- + +class SwEnvPreview : public Window +{ + void Paint(const Rectangle&); + +public: + + SwEnvPreview(SfxTabPage* pParent, const ResId& rResID); + ~SwEnvPreview(); +}; + +// class SwEnvDlg ----------------------------------------------------------- + +class SwEnvDlg : public SfxTabDialog +{ +friend class SwEnvPage; +friend class SwEnvFmtPage; +friend class SwEnvPrtPage; +friend class SwEnvPreview; + + String sInsert; + String sChange; + SwEnvItem aEnvItem; + SwWrtShell *pSh; + Printer *pPrinter; + SfxItemSet *pAddresseeSet; + SfxItemSet *pSenderSet; + + virtual void PageCreated( USHORT nId, SfxTabPage &rPage ); + virtual short Ok(); + +public: + SwEnvDlg(Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, BOOL bInsert); + ~SwEnvDlg(); +}; + +// class SwEnvPage ---------------------------------------------------------- + +class SwEnvPage : public SfxTabPage +{ + FixedText aAddrText; + MultiLineEdit aAddrEdit; + FixedText aDatabaseFT; + ListBox aDatabaseLB; + FixedText aTableFT; + ListBox aTableLB; + ImageButton aInsertBT; + FixedText aDBFieldFT; + ListBox aDBFieldLB; + CheckBox aSenderBox; + MultiLineEdit aSenderEdit; + SwEnvPreview aPreview; + + SwWrtShell* pSh; + String sActDBName; + + SwEnvPage(Window* pParent, const SfxItemSet& rSet); + ~SwEnvPage(); + + DECL_LINK( DatabaseHdl, ListBox * ); + DECL_LINK( FieldHdl, Button * ); + DECL_LINK( SenderHdl, Button * ); + + void InitDatabaseBox(); + + SwEnvDlg* GetParent() {return (SwEnvDlg*) SfxTabPage::GetParent()->GetParent();} + +public: + + static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet); + + virtual void ActivatePage(const SfxItemSet& rSet); + virtual int DeactivatePage(SfxItemSet* pSet = 0); + void FillItem(SwEnvItem& rItem); + virtual BOOL FillItemSet(SfxItemSet& rSet); + virtual void Reset(const SfxItemSet& rSet); +}; + +#endif + + diff --git a/sw/source/ui/inc/fldedt.hxx b/sw/source/ui/inc/fldedt.hxx new file mode 100644 index 000000000000..610635dd3d06 --- /dev/null +++ b/sw/source/ui/inc/fldedt.hxx @@ -0,0 +1,108 @@ +/************************************************************************* + * + * $RCSfile: fldedt.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _FLDEDT_HXX +#define _FLDEDT_HXX + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif + +#ifndef _SV_BUTTON_HXX //autogen +#include <vcl/imagebtn.hxx> +#endif + +class Window; +class SfxItemSet; +class SwView; +class SwWrtShell; + +/*-------------------------------------------------------------------- + Beschreibung: + --------------------------------------------------------------------*/ + +class SwFldEditDlg : public SfxSingleTabDialog +{ + SwWrtShell* pSh; + ImageButton aPrevBT; + ImageButton aNextBT; + PushButton aAddressBT; + + DECL_LINK( AddressHdl, PushButton *pBt = 0 ); + DECL_LINK( NextPrevHdl, Button *pBt = 0 ); + + void Init(); + SfxTabPage* CreatePage(USHORT nGroup); + +public: + + SwFldEditDlg(SwView& rVw); + ~SwFldEditDlg(); + + DECL_LINK( OKHdl, Button * ); + + virtual short Execute(); + + void EnableInsert(BOOL bEnable); + void InsertHdl(); +}; + + +#endif diff --git a/sw/source/ui/inc/fldmgr.hxx b/sw/source/ui/inc/fldmgr.hxx new file mode 100644 index 000000000000..31d043dbe2a0 --- /dev/null +++ b/sw/source/ui/inc/fldmgr.hxx @@ -0,0 +1,273 @@ +/************************************************************************* + * + * $RCSfile: fldmgr.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _FLDMGR_HXX +#define _FLDMGR_HXX + +#ifndef _SVSTDARR_HXX +#define _SVSTDARR_STRINGSDTOR +#include <svtools/svstdarr.hxx> +#endif + +#ifndef _STRING_HXX //autogen +#include <tools/string.hxx> +#endif + +#include "swtypes.hxx" + +#ifdef REPLACE_OFADBMGR +#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_ +#include <com/sun/star/uno/Reference.h> +#endif +namespace com{namespace sun{namespace star{namespace container{ + class XNameAccess; +}}}} +#else +#endif + +class SwWrtShell; +class SwField; +class SwFieldType; +class SwFmtRefMark; +class SbModule; +class SvxMacroItem; +class ListBox; +class SvNumberFormatter; + +/*-------------------------------------------------------------------- + Beschreibung: Shell setzen auf der der SwFldMgr arbeitet + --------------------------------------------------------------------*/ + +void SetFldMgrShell(SwWrtShell* pSh); + +/*-------------------------------------------------------------------- + Beschreibung: Die Gruppen von Feldern + --------------------------------------------------------------------*/ + +enum SwFldGroups +{ + GRP_DOC, + GRP_FKT, + GRP_REF, + GRP_REG, + GRP_DB, + GRP_VAR +}; + +struct SwFldGroupRgn +{ + USHORT nStart; + USHORT nEnd; +}; + +/*-------------------------------------------------------------------- + Beschreibung: Der FeldManager handelt das Einfuegen von Felder + ueber Command-Strings + --------------------------------------------------------------------*/ + +class SwFldMgr +{ +private: + SvStringsDtor aSubLst; + + SwField* pCurFld; + SbModule* pModule; + const SvxMacroItem* pMacroItem; + SwWrtShell* pWrtShell; // darf auch NULL sein! + String aCurPar1; + String aCurPar2; + String sCurFrame; + + String sMacroPath; + + ULONG nCurFmt; + BOOL bEvalExp; + + USHORT GetCurrLanguage() const; + +#ifdef REPLACE_OFADBMGR + com::sun::star::uno::Reference<com::sun::star::container::XNameAccess> xDBContext; + + com::sun::star::uno::Reference<com::sun::star::container::XNameAccess> GetDBContext(); +#endif + +public: + SwFldMgr(SwWrtShell* pSh = 0); + ~SwFldMgr(); + + // Feld einfuegen ueber TypeId (TYP_ ...) + BOOL InsertFld( USHORT nTypeId, + USHORT nSubType, + const String& rPar1, + const String& rPar2, + ULONG nFormatId, + SwWrtShell* pSh = NULL, + sal_Unicode cSeparator = ' '); + + BOOL InsertURL( const String& rName, + const String& rVal, + const String& rFrame, + const SvxMacroItem* pItem = 0); + + // Direkt das aktuelle Feld aendern + void UpdateCurFld(ULONG nFormat, + const String& rPar1, + const String& rPar2); + + inline const String& GetCurFldPar1() const; + inline const String& GetCurFldPar2() const; + inline const ULONG GetCurFldFmt() const; + + // Ein Feld ermitteln + SwField* GetCurFld(); + + // Zugriff auf Feldtypen + void RemoveDBTypes(); + void InsertFldType(SwFieldType& rType); + + BOOL ChooseMacro(const String &rSelMacro = aEmptyStr); + inline void SetMacroPath(const String& rPath) { sMacroPath = rPath; } + inline const String& GetMacroPath() const { return (sMacroPath); } + inline void SetMacroModule(SbModule* pMod) { pModule = pMod; } + + // Vorheriger Naechster gleichen Typ + BOOL GoNextPrev( BOOL bNext = TRUE, SwFieldType* pTyp = 0 ); + BOOL GoNext( SwFieldType* pTyp = 0 ) { return GoNextPrev( TRUE, pTyp ); } + BOOL GoPrev( SwFieldType* pTyp = 0 ) { return GoNextPrev( FALSE, pTyp ); } + + // Setzen von Werten aus Benutzerfeldern (BASIC) + // + BOOL SetFieldValue(const String &rFieldName, + const String &rValue); + + // Erfragen von Werten aus Datenbankfeldern (BASIC ) + String GetDataBaseFieldValue(const String &rDBName, const String &rFieldName, SwWrtShell* pSh); +#ifdef REPLACE_OFADBMGR + BOOL IsDBNumeric(const String& rDBName, const String& rTblQryName, + BOOL bIsTable, const String& rFldName); +#else + BOOL IsDBNumeric(const String& rDBName, USHORT nColumn); + BOOL IsDBNumeric(const String& rDBName, const String& rFldName); +#endif + + // RefMark mit Namen organisieren + BOOL CanInsertRefMark( const String& rStr ); + + + // Zugriff ueber ResId auf Feldtypen + USHORT GetFldTypeCount(USHORT nResId = USHRT_MAX) const; + SwFieldType* GetFldType(USHORT nResId, USHORT nId = 0) const; + SwFieldType* GetFldType(USHORT nResId, const String& rName) const; + + void RemoveFldType(USHORT nResId, USHORT nId = 0); + void RemoveFldType(USHORT nResId, const String& rName); + + // Zugriff ueber TypeId aus dem Dialog + // Ids fuer einen Bereich von Feldern + const SwFldGroupRgn& GetGroupRange(BOOL bHtmlMode, USHORT nGrpId) const; + USHORT GetGroup(BOOL bHtmlMode, USHORT nTypeId, USHORT nSubType = 0) const; + + // TypeId des aktuellen Feldes + USHORT GetCurTypeId() const; + // TypeId fuer einen konkrete Pos in der Liste + USHORT GetTypeId(USHORT nPos) const; + // Name des Typen in der Liste der Felder + const String& GetTypeStr(USHORT nPos) const; + + // Pos in der Liste der Felder + USHORT GetPos(USHORT nTypeId) const; + + // Untertypen zu einem Typ + SvStringsDtor& GetSubTypes(USHORT nId); + + BOOL SetUserSubType(const String& rName, USHORT nSubType); + + // Formate zu einem Typ + USHORT GetFormatCount(USHORT nTypeId, BOOL bIsText, BOOL bHtmlMode = FALSE) const; + String GetFormatStr(USHORT nTypeId, ULONG nFormatId) const; + USHORT GetFormatId(USHORT nTypeId, ULONG nFormatId) const; + ULONG GetDefaultFormat(USHORT nTypeId, BOOL bIsText, SvNumberFormatter* pFormatter, double* pVal = 0L); + + // Evaluierung der ExpressionFelder ausschalten fuer das Einfuegen + // vieler Expressionfelder (siehe Etiketten) + // + inline void SetEvalExpFlds(BOOL bEval); + void EvalExpFlds(SwWrtShell* pSh = NULL); + + // public, damit sie im fldini initialisiert werden koennen. + static String *pDate, *pTime; + +}; + +inline void SwFldMgr::SetEvalExpFlds(BOOL bEval) + { bEvalExp = bEval; } + +inline const String& SwFldMgr::GetCurFldPar1() const + { return aCurPar1; } + +inline const String& SwFldMgr::GetCurFldPar2() const + { return aCurPar2; } + +inline const ULONG SwFldMgr::GetCurFldFmt() const + { return nCurFmt; } + + +#endif + diff --git a/sw/source/ui/inc/fldwrap.hxx b/sw/source/ui/inc/fldwrap.hxx new file mode 100644 index 000000000000..4784d04265cf --- /dev/null +++ b/sw/source/ui/inc/fldwrap.hxx @@ -0,0 +1,80 @@ +/************************************************************************* + * + * $RCSfile: fldwrap.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:39 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _FLDWRAP_HXX +#define _FLDWRAP_HXX + +#include "chldwrap.hxx" + +class SwFldDlgWrapper : public SwChildWinWrapper +{ +public: + SwFldDlgWrapper( Window* pParent, USHORT nId, + SfxBindings* pBindings, SfxChildWinInfo* pInfo ); + + SFX_DECL_CHILDWINDOW(SwFldDlgWrapper); + + virtual BOOL ReInitDlg(SwDocShell *pDocSh); + void ShowPage(USHORT nPage = 0); +}; + + +#endif + diff --git a/sw/source/ui/inc/fontcfg.hxx b/sw/source/ui/inc/fontcfg.hxx new file mode 100644 index 000000000000..5e83b605d7d9 --- /dev/null +++ b/sw/source/ui/inc/fontcfg.hxx @@ -0,0 +1,154 @@ +/************************************************************************* + * + * $RCSfile: fontcfg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _FONTCFG_HXX +#define _FONTCFG_HXX + +#ifndef _UTL_CONFIGITEM_HXX_ +#include <unotools/configitem.hxx> +#endif +#ifndef _STRING_HXX +#include <tools/string.hxx> +#endif + +#define FONT_STANDARD 0 +#define FONT_OUTLINE 1 +#define FONT_LIST 2 +#define FONT_CAPTION 3 +#define FONT_INDEX 4 + +class SwStdFontConfig : public utl::ConfigItem +{ + String sFontStandard; + String sFontOutline ; + String sFontList ; + String sFontCaption ; + String sFontIndex ; + + com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); + +public: + SwStdFontConfig(); + ~SwStdFontConfig(); + + virtual void Commit(); + + const String& GetFontStandard() const {return sFontStandard ;} + const String& GetFontOutline() const {return sFontOutline ;} + const String& GetFontList () const {return sFontList ;} + const String& GetFontCaption() const {return sFontCaption ;} + const String& GetFontIndex () const {return sFontIndex ;} + + BOOL IsFontDefault(USHORT nFontType) const; + + inline void SetFontStandard(const String& rSet); + inline void SetFontOutline(const String& rSet); + inline void SetFontList (const String& rSet); + inline void SetFontCaption(const String& rSet); + inline void SetFontIndex (const String& rSet); + + static String GetDefaultFor(USHORT nFontType); +}; + +inline void SwStdFontConfig::SetFontStandard (const String& rSet) +{ + if( sFontStandard != rSet) + { + SetModified(); + sFontStandard = rSet; + } +} +inline void SwStdFontConfig::SetFontOutline(const String& rSet) +{ + if( sFontOutline != rSet) + { + SetModified(); + sFontOutline = rSet; + } +} +inline void SwStdFontConfig::SetFontList (const String& rSet) +{ + if(sFontList != rSet) + { + SetModified(); + sFontList = rSet; + } +} + +inline void SwStdFontConfig::SetFontCaption(const String& rSet) +{ + if(sFontCaption != rSet) + { + SetModified(); + sFontCaption = rSet; + } +} + +inline void SwStdFontConfig::SetFontIndex (const String& rSet) +{ + if(sFontIndex != rSet) + { + SetModified(); + sFontIndex = rSet; + } +} +#endif + + diff --git a/sw/source/ui/inc/formedt.hxx b/sw/source/ui/inc/formedt.hxx new file mode 100644 index 000000000000..cccfb99b0c2f --- /dev/null +++ b/sw/source/ui/inc/formedt.hxx @@ -0,0 +1,148 @@ +/************************************************************************* + * + * $RCSfile: formedt.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _FORMEDT_HXX +#define _FORMEDT_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#include "toxe.hxx" + +class SwWrtShell; +class SwForm; + +/*-------------------------------------------------------------------- + Beschreibung: Markierung fuer Verzeichniseintrag einfuegen + --------------------------------------------------------------------*/ + +class SwIdxFormDlg : public SvxStandardDialog +{ + DECL_LINK( EntryHdl, Button * ); + DECL_LINK( PageHdl, Button * ); + DECL_LINK( TabHdl, Button * ); + DECL_LINK( JumpHdl, Button * ); + DECL_LINK( StdHdl, Button * ); + DECL_LINK( SelectHdl, ListBox * ); + DECL_LINK( EnableSelectHdl, ListBox * ); + DECL_LINK( DoubleClickHdl, Button * ); + DECL_LINK( ModifyHdl, Edit * ); + DECL_LINK( AssignHdl, Button * ); + void UpdatePattern(); + void Apply(); + + ListBox aEntryLB; + OKButton aOKBtn; + CancelButton aCancelBT; + FixedText aLevelFT; + Edit aEntryED; + PushButton aEntryBT; + PushButton aTabBT; + PushButton aPageBT; + PushButton aJumpBT; + GroupBox aEntryGB; + FixedText aLevelFT2; + ListBox aLevelLB; + FixedText aTemplateFT; + ListBox aParaLayLB; + PushButton aStdBT; + PushButton aAssignBT; + GroupBox aFormatGB; + + SwWrtShell &rSh; + SwForm *pForm; + USHORT nAktLevel; + BOOL bLastLinkIsEnd; + +public: + SwIdxFormDlg( Window* pParent, SwWrtShell &rShell, const SwForm& rForm ); + ~SwIdxFormDlg(); + + static BOOL IsNoNum(SwWrtShell& rSh, const String& rName); + const SwForm& GetTOXForm(); +}; + +inline const SwForm& SwIdxFormDlg::GetTOXForm() +{ + return *pForm; +} + +#endif diff --git a/sw/source/ui/inc/frmdlg.hxx b/sw/source/ui/inc/frmdlg.hxx new file mode 100644 index 000000000000..aa12e64a2ac2 --- /dev/null +++ b/sw/source/ui/inc/frmdlg.hxx @@ -0,0 +1,102 @@ +/************************************************************************* + * + * $RCSfile: frmdlg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _FRMDLG_HXX +#define _FRMDLG_HXX + +#include "globals.hrc" + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif +class SwWrtShell; + +/*-------------------------------------------------------------------- + Beschreibung: Rahmendialog + --------------------------------------------------------------------*/ + +class SwFrmDlg : public SfxTabDialog +{ + BOOL bFormat; + BOOL bNew; + const SfxItemSet& rSet; + USHORT nDlgType; + SwWrtShell* pWrtShell; + + + virtual void PageCreated( USHORT nId, SfxTabPage &rPage ); + +public: + SwFrmDlg( SfxViewFrame *pFrame, Window *pParent, + const SfxItemSet& rCoreSet, + BOOL bNewFrm = TRUE, + USHORT nResType = DLG_FRM_STD, + BOOL bFmt = FALSE, + UINT16 nDefPage = 0, + const String* pFmtStr = 0); + + ~SwFrmDlg(); + + inline SwWrtShell* GetWrtShell() { return pWrtShell; } +}; + + +#endif // _FRMDLG_HXX diff --git a/sw/source/ui/inc/frmmgr.hxx b/sw/source/ui/inc/frmmgr.hxx new file mode 100644 index 000000000000..f74092c7a840 --- /dev/null +++ b/sw/source/ui/inc/frmmgr.hxx @@ -0,0 +1,283 @@ +/************************************************************************* + * + * $RCSfile: frmmgr.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _FRMMGR_HXX +#define _FRMMGR_HXX + +#include "swtypes.hxx" +#include "frmatr.hxx" + +#ifndef _SVX_SVXENUM_HXX //autogen +#include <svx/svxenum.hxx> +#endif +#ifndef _GEN_HXX //autogen +#include <tools/gen.hxx> +#endif +#ifndef _FMTFSIZE_HXX //autogen +#include <fmtfsize.hxx> +#endif +#ifndef _FMTSRND_HXX //autogen +#include <fmtsrnd.hxx> +#endif +#ifndef _FMTORNT_HXX //autogen +#include <fmtornt.hxx> +#endif +#ifndef _FMTANCHR_HXX //autogen +#include <fmtanchr.hxx> +#endif + +class SwWrtShell; +struct SwFrmValid; + +class SwFmt; +class SwFmtCol; + +const SwTwips DFLT_WIDTH = MM50 * 4; +const SwTwips DFLT_HEIGHT = MM50; + +#define FULL_ATTRSET 0xffff + +#define FRMMGR_TYPE_NONE 0x00 +#define FRMMGR_TYPE_TEXT 0x01 +#define FRMMGR_TYPE_GRF 0x02 +#define FRMMGR_TYPE_OLE 0x04 +#define FRMMGR_TYPE_LABEL 0x08 +#define FRMMGR_TYPE_ENVELP 0x10 + +class SwFlyFrmAttrMgr +{ + SfxItemSet aSet; + Point aAbsPos; + SwWrtShell *pOwnSh; + + BOOL bAbsPos, + bNewFrm; + + // interne Verrechnung fuer Umrandung + SwTwips CalcTopSpace(); + SwTwips CalcBottomSpace(); + SwTwips CalcLeftSpace(); + SwTwips CalcRightSpace(); + + void _UpdateFlyFrm(); //Nacharbeit nach Einfuegen oder Update + +public: + SwFlyFrmAttrMgr( BOOL bNew, SwWrtShell* pSh, BYTE nType ); + + //CopyCtor fuer die Dialoge, zum Pruefen der Metrics + SwFlyFrmAttrMgr( BOOL bNew, SwWrtShell *pSh, const SfxItemSet &rSet ); + + inline SwWrtShell* GetShell() { return pOwnSh; } + + void SetAnchor(RndStdIds eId); + inline RndStdIds GetAnchor() const; + + void SetHorzOrientation(SwHoriOrient eOrient); + void SetVertOrientation(SvxFrameVertOrient eOrient); + + // Absolute Position + void SetAbsPos(const Point& rLPoint); + + // Relative Position vom Anker + void SetPos(const Point& rLPoint); + inline Point GetPos() const; + + // Groesse + void SetSize(const Size& rLSize); + inline const Size& GetSize() const; + void SetFrmSize(const SwFmtFrmSize& rFrmSize); + + inline USHORT GetHeightPercent() const; + + void SetSizeType(SwFrmSize eType); + + // Abstand zum Inhalt + void SetLRSpace( long nLeft = LONG_MAX, + long nRight = LONG_MAX ); + void SetULSpace( long nTop = LONG_MAX, + long nBottom= LONG_MAX ); + + void SetWrapType(SwSurround eSurround); + + void SetAnchorOnly(BOOL bSet); + void SetContour( BOOL bSet); + void SetTransparent(BOOL bTrans); + + void ProtectPosSize(BOOL bProt); + + void SetCol( const SwFmtCol &rCol); + + // Attribute aendern und erfragen + void UpdateAttrMgr(); + void UpdateFlyFrm(); + + // neuen Rahmen erzeugen + BOOL InsertFlyFrm(); + void InsertFlyFrm(RndStdIds eAnchorType, + const Point &rPos, + const Size &rSize, + BOOL bAbsPos = FALSE); + + // Metriken pruefen und aendern + void ValidateMetrics(SwFrmValid& rVal, BOOL bOnlyPercentRefValue = FALSE); + + void DelAttr(USHORT nId); + + // Set rausreichen + inline const SfxItemSet &GetAttrSet() const { return aSet; } + inline SfxItemSet &GetAttrSet() { return aSet; } + void SetAttrSet(const SfxItemSet& rSet); + + inline const SwFmtVertOrient &GetVertOrient() const; + inline const SwFmtHoriOrient &GetHoriOrient() const; + inline const SvxShadowItem &GetShadow() const; + inline const SvxBoxItem &GetBox() const; + inline const SwFmtSurround &GetSurround() const; + inline const SwFmtFrmSize &GetFrmSize() const; + + long CalcWidthSpace(); + long CalcHeightSpace(); + + long CalcWidthBorder() { return CalcLeftSpace()+CalcRightSpace(); } + long CalcHeightBorder() { return CalcTopSpace()+CalcBottomSpace(); } +}; + +/*-------------------------------------------------------------------- + Beschreibung: Validierung von Metriken + --------------------------------------------------------------------*/ + +struct SwFrmValid +{ + RndStdIds eArea; + SwHoriOrient eHori; + SvxFrameVertOrient eVert; + SwRelationOrient eHRel; + SwRelationOrient eVRel; + BOOL bAuto; + BOOL bMirror; + + SwTwips nHPos; + SwTwips nMaxHPos; + SwTwips nMinHPos; + + SwTwips nVPos; + SwTwips nMaxVPos; + SwTwips nMinVPos; + + SwTwips nWidth; + SwTwips nMinWidth; + SwTwips nMaxWidth; + + SwTwips nHeight; + SwTwips nMinHeight; + SwTwips nMaxHeight; + + Size aPercentSize; // Size fuer 100%-Wert + + SwFrmValid(); +}; + + +inline const Size& SwFlyFrmAttrMgr::GetSize() const +{ + return ((SwFmtFrmSize&)aSet.Get(RES_FRM_SIZE)).GetSize(); +} + +inline const SwFmtVertOrient &SwFlyFrmAttrMgr::GetVertOrient() const +{ + return ((SwFmtVertOrient&)aSet.Get(RES_VERT_ORIENT)); +} +inline const SwFmtHoriOrient &SwFlyFrmAttrMgr::GetHoriOrient() const +{ + return ((SwFmtHoriOrient &)aSet.Get(RES_HORI_ORIENT)); +} +inline const SwFmtFrmSize& SwFlyFrmAttrMgr::GetFrmSize() const +{ + return ((SwFmtFrmSize&)aSet.Get(RES_FRM_SIZE)); +} +inline const SvxShadowItem &SwFlyFrmAttrMgr::GetShadow() const +{ + return ((SvxShadowItem&)aSet.Get(RES_SHADOW)); +} +inline const SvxBoxItem &SwFlyFrmAttrMgr::GetBox() const +{ + return ((SvxBoxItem&)aSet.Get(RES_BOX)); +} +inline const SwFmtSurround &SwFlyFrmAttrMgr::GetSurround() const +{ + return ((SwFmtSurround&)aSet.Get(RES_SURROUND)); +} + +inline Point SwFlyFrmAttrMgr::GetPos() const +{ + return Point( GetHoriOrient().GetPos(), GetVertOrient().GetPos() ); +} + +inline RndStdIds SwFlyFrmAttrMgr::GetAnchor() const +{ + return ((SwFmtAnchor&)aSet.Get(RES_ANCHOR)).GetAnchorId(); +} + +inline USHORT SwFlyFrmAttrMgr::GetHeightPercent() const +{ + return GetFrmSize().GetHeightPercent(); +} + +#endif diff --git a/sw/source/ui/inc/frmpage.hxx b/sw/source/ui/inc/frmpage.hxx new file mode 100644 index 000000000000..abb10de280d4 --- /dev/null +++ b/sw/source/ui/inc/frmpage.hxx @@ -0,0 +1,337 @@ +/************************************************************************* + * + * $RCSfile: frmpage.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _FRMPAGE_HXX +#define _FRMPAGE_HXX + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +#ifndef _SWTYPES_HXX +#include <swtypes.hxx> +#endif +#ifndef _BMPWIN_HXX +#include <bmpwin.hxx> +#endif +#ifndef _FRMEX_HXX +#include <frmex.hxx> +#endif +#ifndef _PRCNTFLD_HXX +#include <prcntfld.hxx> +#endif + +class SvxImportGraphicDialog; +class SwWrtShell; +struct FrmMap; + + +/*-------------------------------------------------------------------- + Beschreibung: Rahmendialog + --------------------------------------------------------------------*/ + +class SwFrmPage: public SfxTabPage +{ + // Size + FixedText aWidthFT; + PercentField aWidthED; + CheckBox aRelWidthCB; + FixedText aHeightFT; + PercentField aHeightED; + CheckBox aRelHeightCB; + CheckBox aFixedRatioCB; + CheckBox aAutoHeightCB; + GroupBox aSizeGB; + BOOL bWidthLastChanged; + + // Anker + RadioButton aAnchorTypeRB; + RadioButton aAnchorAsCharRB; + ListBox aAnchorTypeLB; + GroupBox aTypeGB; + + // Position + FixedText aHorizontalFT; + ListBox aHorizontalDLB; + FixedText aAtHorzPosFT; + MetricField aAtHorzPosED; + FixedText aHoriRelationFT; + ListBox aHoriRelationLB; + CheckBox aMirrorPagesCB; + FixedText aVerticalFT; + ListBox aVerticalDLB; + FixedText aAtVertPosFT; + MetricField aAtVertPosED; + FixedText aVertRelationFT; + ListBox aVertRelationLB; + GroupBox aPositionGB; + BOOL bAtHorzPosModified; + BOOL bAtVertPosModified; + + PushButton aRealSizeBT; + + // Example + SwFrmPagePreview aExampleWN; + + BOOL bFormat; + BOOL bNew; + BOOL bHtmlMode; + BOOL bNoModifyHdl; + USHORT nHtmlMode; + USHORT nDlgType; + Size aGrfSize; + Size aWrap; + SwTwips nUpperBorder; + SwTwips nLowerBorder; + + // Die alten Ausrichtungen + USHORT nOldH; + USHORT nOldHRel; + USHORT nOldV; + USHORT nOldVRel; + + virtual void ActivatePage(const SfxItemSet& rSet); + virtual int DeactivatePage(SfxItemSet *pSet); + + + DECL_LINK( RangeModifyHdl, Edit * ); + DECL_LINK( TypHdl, ListBox *pLB = 0 ); + DECL_LINK( PosHdl, ListBox * ); + DECL_LINK( RelHdl, ListBox * ); + void InitPos(USHORT nId, USHORT nH, USHORT nHRel, + USHORT nV, USHORT nVRel, + long nX, long nY); + + DECL_LINK( EditModifyHdl, Edit * ); + DECL_LINK( AspectRatioCheckHdl, CheckBox * ); + DECL_LINK( RealSizeHdl, Button * ); + DECL_LINK( RelSizeClickHdl, CheckBox * ); + DECL_LINK( MirrorHdl, CheckBox * ); + + DECL_LINK( ManualHdl, Button * ); + + // Beispiel aktualisieren + void UpdateExample(); + DECL_LINK( ModifyHdl, Edit * ); + + void Init(const SfxItemSet& rSet, BOOL bReset = FALSE); + USHORT FillPosLB(FrmMap *pMap, USHORT nAlign, ListBox &rLB); + ULONG FillRelLB(FrmMap *pMap, USHORT nLBSelPos, USHORT nAlign, USHORT nRel, ListBox &rLB); + USHORT GetMapPos(FrmMap *pMap, ListBox &rAlignLB); + USHORT GetAlignment(FrmMap *pMap, USHORT nMapPos, ListBox &rAlignLB, ListBox &rRelationLB); + USHORT GetRelation(FrmMap *pMap, ListBox &rRelationLB); + USHORT GetAnchor(); + + SwFrmPage(Window *pParent, const SfxItemSet &rSet); + ~SwFrmPage(); + +public: + static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); + static USHORT* GetRanges(); + + virtual BOOL FillItemSet(SfxItemSet &rSet); + virtual void Reset(const SfxItemSet &rSet); + + void SetNewFrame(BOOL bNewFrame) { bNew = bNewFrame; } + void SetFormatUsed(BOOL bFmt) { bFormat = bFmt; } + void SetFrmType(USHORT nType) { nDlgType = nType; } +}; + +class SwGrfExtPage: public SfxTabPage +{ + BmpWindow aBmpWin; + + GroupBox aConnectGB; + FixedText aConnectFT; + Edit aConnectED; + PushButton aBrowseBT; + + // Spiegeln + GroupBox aMirrorFrm; + CheckBox aMirrorHorzBox; + CheckBox aMirrorVertBox; +// ListBox aMirrorPagesLB; + RadioButton aAllPagesRB; + RadioButton aLeftPagesRB; + RadioButton aRightPagesRB; +// FixedText aMirrorPagesFT; + + String aFilterName; + String aGrfName, aNewGrfName; + + SvxImportGraphicDialog* pGrfDlg; + + BOOL bHtmlMode; + + // Handler fuer Spiegeln + DECL_LINK( MirrorHdl, CheckBox * ); + DECL_LINK( BrowseHdl, Button * ); + + virtual void ActivatePage(const SfxItemSet& rSet); + SwGrfExtPage(Window *pParent, const SfxItemSet &rSet); + ~SwGrfExtPage(); + +public: + static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); + + virtual BOOL FillItemSet(SfxItemSet &rSet); + virtual void Reset(const SfxItemSet &rSet); + virtual int DeactivatePage(SfxItemSet *pSet); +}; + + +class SwFrmURLPage : public SfxTabPage +{ + //Hyperlink + GroupBox aHyperLinkGB; + FixedText aURLFT; + Edit aURLED; + FixedText aNameFT; + Edit aNameED; + FixedText aFrameFT; + ComboBox aFrameCB; + PushButton aSearchPB; + + //Image map + GroupBox aImageGB; + CheckBox aServerCB; + CheckBox aClientCB; + + DECL_LINK( InsertFileHdl, PushButton * ); + + + SwFrmURLPage(Window *pParent, const SfxItemSet &rSet); + ~SwFrmURLPage(); +public: + static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); + + virtual BOOL FillItemSet(SfxItemSet &rSet); + virtual void Reset(const SfxItemSet &rSet); +}; + +/*-----------------13.11.96 12.59------------------- + +--------------------------------------------------*/ + +class SwFrmAddPage : public SfxTabPage +{ + FixedText aNameFT; + Edit aNameED; + FixedText aAltNameFT; + Edit aAltNameED; + FixedText aPrevFT; + Edit aPrevED; + FixedText aNextFT; + Edit aNextED; + GroupBox aNamesGB; + + CheckBox aProtectContentCB; + CheckBox aProtectFrameCB; + CheckBox aProtectSizeCB; + GroupBox aProtectGB; + + CheckBox aEditInReadonlyCB; + CheckBox aPrintFrameCB; + GroupBox aExtGB; + + SwWrtShell* pWrtSh; + + USHORT nDlgType; + BOOL bHtmlMode; + BOOL bFormat; + BOOL bNew; + + DECL_LINK(EditModifyHdl, Edit*); + + SwFrmAddPage(Window *pParent, const SfxItemSet &rSet); + ~SwFrmAddPage(); + +public: + + static SfxTabPage* Create(Window *pParent, const SfxItemSet &rSet); + static USHORT* GetRanges(); + + virtual BOOL FillItemSet(SfxItemSet &rSet); + virtual void Reset(const SfxItemSet &rSet); + + void SetFormatUsed(BOOL bFmt) { bFormat = bFmt; } + void SetFrmType(USHORT nType) { nDlgType = nType; } + void SetNewFrame(BOOL bNewFrame) { bNew = bNewFrame; } + void SetShell(SwWrtShell* pSh) { pWrtSh = pSh; } + +}; + +#endif // _FRMPAGE_HXX diff --git a/sw/source/ui/inc/frmsh.hxx b/sw/source/ui/inc/frmsh.hxx new file mode 100644 index 000000000000..6172f3d3512c --- /dev/null +++ b/sw/source/ui/inc/frmsh.hxx @@ -0,0 +1,86 @@ +/************************************************************************* + * + * $RCSfile: frmsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWFRMSH_HXX +#define _SWFRMSH_HXX + +#include "basesh.hxx" + +class SwFrameShell: public SwBaseShell +{ + +public: + SFX_DECL_INTERFACE(SW_FRAMESHELL); + + SwFrameShell(SwView &rView); + + void Execute(SfxRequest &); + void GetState(SfxItemSet &); + void ExecFrameStyle(SfxRequest& rReq); + void GetLineStyleState(SfxItemSet &rSet); + void StateInsert(SfxItemSet &rSet); + + void StateStatusline(SfxItemSet &rSet); + + void GetBckColState(SfxItemSet &rSet); + void ExecBckCol(SfxRequest& rReq); +}; + +#endif diff --git a/sw/source/ui/inc/frmui.hrc b/sw/source/ui/inc/frmui.hrc new file mode 100644 index 000000000000..677d76703f45 --- /dev/null +++ b/sw/source/ui/inc/frmui.hrc @@ -0,0 +1,176 @@ +/************************************************************************* + * + * $RCSfile: frmui.hrc,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _FRMUI_HRC +#define _FRMUI_HRC + +#include "rcid.hrc" +#include "globals.hrc" + +#define DLG_FRMOPT (RC_FRMDLG_BEGIN + 1) +#define DLG_PATTERN (RC_FRMDLG_BEGIN + 2) +#define DLG_BORDER (RC_FRMDLG_BEGIN + 3) +#define DLG_COLUMN (RC_FRMDLG_BEGIN + 4) +#define DLG_FOOTNOTE (RC_FRMDLG_BEGIN + 5) +#define DLG_INSERT_FOOTNOTE (RC_FRMDLG_BEGIN + 6) + +#define DLG_VIEW_HEADER (RC_FRMDLG_BEGIN + 8) +#define DLG_FORMAT_COLUMN (RC_FRMDLG_BEGIN + 10) +#define DLG_CAPTION (RC_FRMDLG_BEGIN + 11) +#define DLG_SEQUENCE_OPTION (RC_FRMDLG_BEGIN + 12) + +#define TP_FOOTNOTEOPTION (RC_FRMDLG_BEGIN + 12) +#define TP_ENDNOTEOPTION (RC_FRMDLG_BEGIN + 13) + +#define STR_PATTERN_BRD (RC_FRMDLG_BEGIN + 13) +#define STR_SHPATTERN (RC_FRMDLG_BEGIN + 14) +#define STR_LNPATTERN (RC_FRMDLG_BEGIN + 15) +#define STR_FRMUI_BORDER (RC_FRMDLG_BEGIN + 16) +#define STR_FRMUI_PATTERN (RC_FRMDLG_BEGIN + 17) +#define STR_FRMUI_WRAP (RC_FRMDLG_BEGIN + 18) + +#define BMP_PORTRAIT (RC_FRMDLG_BEGIN + 16) +#define BMP_LANDSCAPE (RC_FRMDLG_BEGIN + 17) +#define BMP_BEGIN (RC_FRMDLG_BEGIN + 18) +#define BMP_WRAP (BMP_BEGIN) +#define BMP_LEFT (BMP_BEGIN+1) +#define BMP_RIGHT (BMP_BEGIN+2) +#define BMP_OPAQUE (BMP_BEGIN+3) +#define BMP_OPAQUET (BMP_BEGIN+4) +#define BMP_NOWRAP (BMP_BEGIN+5) + +#define BMP_END (BMP_NOWRAP) + +#define MN_OPTION (BMP_END + 1) +#define MN_COLUMN (BMP_END + 2) +#define MN_PAPERSZ (BMP_END + 3) +#define MN_BACKGROUND (BMP_END + 4) +#define MN_FRAME (BMP_END + 5) +#define STR_BACKGROUND (BMP_END + 6) +#define MN_FOOTNOTE (BMP_END + 7) + +#define STR_FRMDLG_BEGIN (MN_FOOTNOTE + 1) + +#define STR_TOPPRT (STR_FRMDLG_BEGIN + 1) +#define STR_FROMBOTTOM (STR_FRMDLG_BEGIN + 2) +#define STR_FROMTOP (STR_FRMDLG_BEGIN + 3) +#define STR_BELOW (STR_FRMDLG_BEGIN + 4) + +#define STR_LEFT (STR_FRMDLG_BEGIN + 5) +#define STR_RIGHT (STR_FRMDLG_BEGIN + 6) +#define STR_FROMLEFT (STR_FRMDLG_BEGIN + 7) +#define STR_MIR_LEFT (STR_FRMDLG_BEGIN + 8) +#define STR_MIR_RIGHT (STR_FRMDLG_BEGIN + 9) +#define STR_MIR_FROMLEFT (STR_FRMDLG_BEGIN + 10) + +#define STR_BORDER (STR_FRMDLG_BEGIN + 16) +#define STR_COLUMN (STR_FRMDLG_BEGIN + 17) +#define STR_PARA (STR_FRMDLG_BEGIN + 18) +#define STR_CHAR (STR_FRMDLG_BEGIN + 19) + +#define STR_FRAME (STR_FRMDLG_BEGIN + 20) +#define STR_PRTAREA (STR_FRMDLG_BEGIN + 21) +#define STR_REL_PG_LEFT (STR_FRMDLG_BEGIN + 22) +#define STR_REL_PG_RIGHT (STR_FRMDLG_BEGIN + 23) +#define STR_REL_FRM_LEFT (STR_FRMDLG_BEGIN + 24) +#define STR_REL_FRM_RIGHT (STR_FRMDLG_BEGIN + 25) +#define STR_MIR_REL_PG_LEFT (STR_FRMDLG_BEGIN + 26) +#define STR_MIR_REL_PG_RIGHT (STR_FRMDLG_BEGIN + 27) +#define STR_MIR_REL_FRM_LEFT (STR_FRMDLG_BEGIN + 28) +#define STR_MIR_REL_FRM_RIGHT (STR_FRMDLG_BEGIN + 29) +#define STR_REL_PG_FRAME (STR_FRMDLG_BEGIN + 30) +#define STR_REL_PG_PRTAREA (STR_FRMDLG_BEGIN + 31) +#define STR_REL_BASE (STR_FRMDLG_BEGIN + 32) +#define STR_REL_CHAR (STR_FRMDLG_BEGIN + 33) +#define STR_REL_ROW (STR_FRMDLG_BEGIN + 34) +#define STR_REL_BORDER (STR_FRMDLG_BEGIN + 35) +#define STR_REL_PRTAREA (STR_FRMDLG_BEGIN + 36) +#define STR_FLY_REL_PG_LEFT (STR_FRMDLG_BEGIN + 37) +#define STR_FLY_REL_PG_RIGHT (STR_FRMDLG_BEGIN + 38) +#define STR_FLY_REL_PG_FRAME (STR_FRMDLG_BEGIN + 39) +#define STR_FLY_REL_PG_PRTAREA (STR_FRMDLG_BEGIN + 40) +#define STR_FLY_MIR_REL_PG_LEFT (STR_FRMDLG_BEGIN + 41) +#define STR_FLY_MIR_REL_PG_RIGHT (STR_FRMDLG_BEGIN + 42) +#define STR_FLY_MIR_REL_PG_FRAME (STR_FRMDLG_BEGIN + 43) +#define STR_FLY_MIR_REL_PG_PRTAREA (STR_FRMDLG_BEGIN + 44) + +#define STR_OLE_INSERT (STR_FRMDLG_BEGIN + 45) +#define STR_OLE_EDIT (STR_FRMDLG_BEGIN + 46) +#define STR_COLL_HEADER (STR_FRMDLG_BEGIN + 47) + +#define MSG_COLUMN_ERR_BOUNDWIDTH (STR_FRMDLG_BEGIN + 48) +#define STR_EDIT_GRF (STR_FRMDLG_BEGIN + 49) + +#define STR_LINE_TOP (STR_FRMDLG_BEGIN + 50) +#define STR_LINE_BOTTOM (STR_FRMDLG_BEGIN + 51) +#define STR_LINE_CENTER (STR_FRMDLG_BEGIN + 52) +#define STR_CHAR_TOP (STR_FRMDLG_BEGIN + 53) +#define STR_CHAR_BOTTOM (STR_FRMDLG_BEGIN + 54) +#define STR_CHAR_CENTER (STR_FRMDLG_BEGIN + 55) + +#define FRMDLG_ACT_END STR_CHAR_CENTER + +#if FRMDLG_ACT_END > RC_FRMDLG_END +#error Resource-Id Ueberlauf in #file, #line +#endif + + +#endif // FRMUI_HRC diff --git a/sw/source/ui/inc/globals.h b/sw/source/ui/inc/globals.h new file mode 100644 index 000000000000..a555a8755991 --- /dev/null +++ b/sw/source/ui/inc/globals.h @@ -0,0 +1,83 @@ +/************************************************************************* + * + * $RCSfile: globals.h,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _GLOBALS_H +#define _GLOBALS_H + +enum SwChangeState +{ + STATE_OFF = 0, + STATE_ON = 1, + STATE_TOGGLE = 2 +}; + +/*------------------------------------------------------------------------- + $Log: not supported by cvs2svn $ + Revision 1.2 2000/09/18 16:05:42 willem.vandorp + OpenOffice header added. + + Revision 1.1 1994/09/20 12:07:48 MS + Initial revision. + + + Rev 1.0 20 Sep 1994 14:07:48 MS + Initial revision. + -------------------------------------------------------------------------*/ +#endif diff --git a/sw/source/ui/inc/globdoc.hrc b/sw/source/ui/inc/globdoc.hrc new file mode 100644 index 000000000000..ad8e21ba40bd --- /dev/null +++ b/sw/source/ui/inc/globdoc.hrc @@ -0,0 +1,80 @@ +/************************************************************************* + * + * $RCSfile: globdoc.hrc,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _GLOBDOC_HRC +#define _GLOBDOC_HRC + +#include "rcid.hrc" + +#define STR_HUMAN_SWGLOBDOC_NAME (RC_GLOBDOC_BEGIN + 2) +#define STR_WRITER_GLOBALDOC_FULLTYPE_40 (RC_GLOBDOC_BEGIN + 3) +#define STR_WRITER_GLOBALDOC_FULLTYPE (RC_GLOBDOC_BEGIN + 4) + +// ------------------------------------------------------------------------ + +#define GLOBDOC_ACT_END STR_WRITER_GLOBALDOC_FULLTYPE + + +#if GLOBDOC_ACT_END > RC_GLOBDOC_END +#error Resource-Id Ueberlauf in #file, #line +#endif + +#endif diff --git a/sw/source/ui/inc/glosbib.hxx b/sw/source/ui/inc/glosbib.hxx new file mode 100644 index 000000000000..1c8f112bb429 --- /dev/null +++ b/sw/source/ui/inc/glosbib.hxx @@ -0,0 +1,163 @@ +/************************************************************************* + * + * $RCSfile: glosbib.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _GLOSBIB_HXX +#define _GLOSBIB_HXX + +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _SVTABBX_HXX //autogen +#include <svtools/svtabbx.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +class SwGlossaryHdl; +class SvStrings; + +class FEdit : public Edit +{ + public: + FEdit(Window * pParent, const ResId& rResId) : + Edit(pParent, rResId){} + + virtual void KeyInput( const KeyEvent& rKEvent ); +}; +/* -----------------------------08.02.00 15:04-------------------------------- + + ---------------------------------------------------------------------------*/ +struct GlosBibUserData +{ + String sPath; + String sGroupName; + String sGroupTitle; +}; +class SwGlossaryGroupTLB : public SvTabListBox +{ +public: + SwGlossaryGroupTLB(Window* pParent, const ResId& rResId) : + SvTabListBox(pParent, rResId) {} + + virtual void RequestHelp( const HelpEvent& rHEvt ); + void Clear(); +}; + +class SwGlossaryGroupDlg : public SvxStandardDialog +{ + + FEdit aNameED; + ListBox aPathLB; + SwGlossaryGroupTLB aGroupTLB; + + OKButton aOkPB; + CancelButton aCancelPB; + HelpButton aHelpPB; + PushButton aNewPB; + PushButton aDelPB; + PushButton aRenamePB; + GroupBox aBibGB; + + SvStrings* pRemovedArr; + SvStrings* pInsertedArr; + SvStrings* pRenamedArr; + + SwGlossaryHdl *pGlosHdl; + + String sCreatedGroup; + + BOOL IsDeleteAllowed(const String &rGroup); + +protected: + virtual void Apply(); + DECL_LINK( SelectHdl, SvTabListBox* ); + DECL_LINK( NewHdl, Button* ); + DECL_LINK( DeleteHdl, Button* ); + DECL_LINK( ModifyHdl, Edit* ); + DECL_LINK( RenameHdl, Button* ); + +public: + SwGlossaryGroupDlg(Window * pParent, + const SvStrings* pPathArr, + SwGlossaryHdl *pGlosHdl); + ~SwGlossaryGroupDlg(); + + const String& GetCreatedGroupName() const {return sCreatedGroup;} +}; + + +#endif + diff --git a/sw/source/ui/inc/glosdoc.hxx b/sw/source/ui/inc/glosdoc.hxx new file mode 100644 index 000000000000..9eb9ab72ac74 --- /dev/null +++ b/sw/source/ui/inc/glosdoc.hxx @@ -0,0 +1,132 @@ +/************************************************************************* + * + * $RCSfile: glosdoc.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _GLOSDOC_HXX +#define _GLOSDOC_HXX + + +#ifndef _STRING_HXX //autogen +#include <tools/string.hxx> +#endif + +#ifndef _SVARRAY_HXX //autogen +#include <svtools/svarray.hxx> +#endif +#ifndef _COM_SUN_STAR_TEXT_XAUTOTEXTGROUP_HPP_ +#include <com/sun/star/text/XAutoTextGroup.hpp> +#endif + +class SwTextBlocks; +class SvStrings; + +typedef com::sun::star::uno::Reference<com::sun::star::text::XAutoTextGroup>* XAutoTextGroupPtr; +SV_DECL_PTRARR_DEL(XAutoTextGroupPtrArr, XAutoTextGroupPtr, 4, 4) + +typedef com::sun::star::uno::Reference<com::sun::star::uno::XInterface>* XInterfacePtr; +SV_DECL_PTRARR_DEL(XAutoTextEntryPtrArr, XInterfacePtr, 4, 4) + +#define GLOS_DELIM (sal_Unicode)'*' + +// CLASS ----------------------------------------------------------------- +class SwGlossaries +{ + XAutoTextGroupPtrArr aGlosGroupArr; + XAutoTextEntryPtrArr aGlosEntryArr; + String aPath; + String sOldErrPath; + String sErrPath; + SvStrings *pPathArr; + SvStrings *pGlosArr; + BOOL bError; + + SwTextBlocks* GetGlosDoc(const String &rName, BOOL bCreate = TRUE) const; + SvStrings *GetNameList(); +public: + SwGlossaries(); + ~SwGlossaries(); + + XAutoTextGroupPtrArr& GetUnoGroupArray() { return aGlosGroupArr; } + XAutoTextEntryPtrArr& GetUnoEntryArray() { return aGlosEntryArr; } + + USHORT GetGroupCnt(); + String GetGroupName(USHORT ); + String GetGroupTitle( const String& rGroupName ); + + BOOL FindGroupName(String & rGroup); + + SwTextBlocks* GetGroupDoc(const String &rName, + BOOL bCreate = FALSE) const; + SwTextBlocks* GetDefGroupDoc() const {return GetGroupDoc(GetDefName());} + void PutGroupDoc(SwTextBlocks *pBlock); + static String GetDefName(); + static String GetExtension(); + + BOOL NewGroupDoc(String &rGroupName, const String& rTitle); + BOOL RenameGroupDoc(const String& sOldGroup, String& sNewGroup, const String& rNewTitle); + BOOL DelGroupDoc(const String &); + void EditGroupDoc(const String &rGrpName, const String& rShortName ); + void SaveGroupDoc(const String &rGrpName, const String& rLongName ); + void UpdateGlosPath(BOOL bFull); + void ShowError(); + inline ULONG IsGlosPathErr() { return bError; } + const SvStrings* GetPathArray() const {return pPathArr;} +}; + +#endif // _GLOSDOC_HXX diff --git a/sw/source/ui/inc/gloshdl.hxx b/sw/source/ui/inc/gloshdl.hxx new file mode 100644 index 000000000000..c2e9c5c05e36 --- /dev/null +++ b/sw/source/ui/inc/gloshdl.hxx @@ -0,0 +1,150 @@ +/************************************************************************* + * + * $RCSfile: gloshdl.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _GLOSHDL_HXX +#define _GLOSHDL_HXX + + +#ifndef _STRING_HXX //autogen +#include <tools/string.hxx> +#endif +class SwWrtShell; +class SwTextBlocks; +class SvxMacro; +class SwGlossaries; +class SfxViewFrame; + +// CLASS ----------------------------------------------------------------- +class SwGlossaryHdl +{ + + SwGlossaries& rStatGlossaries; + String aCurGrp; + SfxViewFrame* pViewFrame; + SwWrtShell* pWrtShell; + SwTextBlocks* pCurGrp; + + void _SetMacros(const String &rName, + const SvxMacro *pStart, + const SvxMacro *pEnd); + + BOOL Expand( const String& rShortName, + SwGlossaries* pGlossaries, + SwTextBlocks *pGlossary, + BOOL bApi = FALSE ); +public: + void GlossaryDlg(); + + USHORT GetGroupCnt() const; + String GetGroupName( USHORT, String* pTitle = 0 ); + BOOL NewGroup(String & rGroupName, const String& rTitle); + BOOL DelGroup(const String &); + BOOL RenameGroup(const String & rOld, String& rNew, const String& rNewTitle); + void SetCurGroup(const String &aGrp, BOOL bApi = FALSE, BOOL bAlwaysCreateNew = FALSE); + + const String &GetCurGroup() const { return aCurGrp; } + + USHORT GetGlossaryCnt(); + USHORT GetGlossaryCnt(const String& rGrpName); //fuer Basic + String GetGlossaryName(USHORT); + String GetGlossaryName(USHORT, const String& rGrpName); //fuer Basic + String GetGlossaryShortName(const String &rName); + String GetGlossaryShortName(USHORT); + + BOOL Rename( const String& rOldShortName, const String& rNewShortName, + const String& rNewName); + BOOL CopyOrMove( const String& rSourceGroupName, String& rSourceShortName, + const String& rDestGroupName, const String& rLongName, BOOL bMove ); + BOOL HasShortName(const String &rShortName) const; + //wird NewGlossary vom Basic gerufen, dann soll dir zuvor eingestellte + //Gruppe ggf. neu erstellt werden + BOOL NewGlossary(const String &rName, const String &rShortName, + BOOL bApiCall = FALSE, BOOL bNoAttr = FALSE ); + BOOL DelGlossary(const String&); + BOOL CopyToClipboard(SwWrtShell& rSh, const String& rShortName); + + BOOL ExpandGlossary(BOOL bUseStandard = TRUE, BOOL bApi = FALSE); + BOOL ExpandGlossary( const String& rShortName, BOOL bApi = FALSE ); + BOOL InsertGlossary(const String &rName); + + void SetMacros(const String& rName, + const SvxMacro* pStart, + const SvxMacro* pEnd, + SwTextBlocks *pGlossary = 0 ); + void GetMacros(const String& rShortName, + SvxMacro& rStart, + SvxMacro& rEnd, + SwTextBlocks* pGlossary = 0 ); + + BOOL IsReadOnly( const String* = 0 ) const; + BOOL IsOld() const; + + BOOL FindGroupName(String & rGroup); // Gruppe ohne Pfadindex finden + + BOOL ImportGlossaries( const String& rName ); + + String GetValidShortCut( const String& rLong, + BOOL bCheckInBlock = FALSE ) const; + + SwGlossaryHdl(SfxViewFrame* pViewFrame, SwWrtShell *); + ~SwGlossaryHdl(); +}; + +#endif // _GLOSHDL_HXX diff --git a/sw/source/ui/inc/gloslst.hxx b/sw/source/ui/inc/gloslst.hxx new file mode 100644 index 000000000000..7805af34cf99 --- /dev/null +++ b/sw/source/ui/inc/gloslst.hxx @@ -0,0 +1,131 @@ +/************************************************************************* + * + * $RCSfile: gloslst.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _GLOSLST_HXX +#define _GLOSLST_HXX + + +#ifndef _DATETIME_HXX +#include <tools/datetime.hxx> +#endif +#ifndef _STRING_HXX //autogen +#include <tools/string.hxx> +#endif +#ifndef _TIMER_HXX //autogen +#include <vcl/timer.hxx> +#endif +#ifndef _SVARRAY_HXX //autogen +#include <svtools/svarray.hxx> +#endif + +class SwGlossaries; +class SvStringsISortDtor; + +struct AutoTextGroup +{ + USHORT nCount; + String sName; + String sTitle; + String sLongNames; // durch 0x0A getrennte Langnamen + String sShortNames; // durch 0x0A getrennte Kurznamen + DateTime aDateModified; +}; + + +typedef AutoTextGroup* AutoTextGroupPtr; +SV_DECL_PTRARR(AutoTextGroups, AutoTextGroupPtr, 4, 4); + +class SwGlossaryList : public AutoTimer +{ + AutoTextGroups aGroupArr; + String sPath; + BOOL bFilled; + + AutoTextGroup* FindGroup(const String& rGroupName); + void FillGroup(AutoTextGroup* pGroup, SwGlossaries* pGloss); + +public: + SwGlossaryList(); + ~SwGlossaryList(); + + BOOL HasLongName(const String& rBegin, SvStringsISortDtor* pLongNames ); + BOOL GetShortName(const String& rLongName, + String& rShortName, String& rGroupName ); + + USHORT GetGroupCount(); + String GetGroupName(USHORT nPos, BOOL bNoPath = TRUE, String* pTitle = 0); + USHORT GetBlockCount(USHORT nGroup); + String GetBlockName(USHORT nGroup, USHORT nBlock, String& rShortName); + + void Update(); + + virtual void Timeout(); + + void ClearGroups(); +}; + +#endif + + + + + + diff --git a/sw/source/ui/inc/glossary.hxx b/sw/source/ui/inc/glossary.hxx new file mode 100644 index 000000000000..bcc118ef599f --- /dev/null +++ b/sw/source/ui/inc/glossary.hxx @@ -0,0 +1,249 @@ +/************************************************************************* + * + * $RCSfile: glossary.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _GLOSSARY_HXX +#define _GLOSSARY_HXX + +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + +#ifndef _SVTREEBOX_HXX //autogen +#include <svtools/svtreebx.hxx> +#endif + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _COMBOBOX_HXX //autogen +#include <vcl/combobox.hxx> +#endif + +#ifndef _MENUBTN_HXX //autogen +#include <vcl/menubtn.hxx> +#endif + +#ifndef _ACTCTRL_HXX +#include <actctrl.hxx> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XENUMERATIONACCESS_HPP_ +#include <com/sun/star/container/XEnumerationAccess.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XHIERARCHICALNAMEACCESS_HPP_ +#include <com/sun/star/container/XHierarchicalNameAccess.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_ +#include <com/sun/star/container/XNameAccess.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XCONTENTENUMERATIONACCESS_HPP_ +#include <com/sun/star/container/XContentEnumerationAccess.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XENUMERATION_HPP_ +#include <com/sun/star/container/XEnumeration.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XELEMENTACCESS_HPP_ +#include <com/sun/star/container/XElementAccess.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XINDEXACCESS_HPP_ +#include <com/sun/star/container/XIndexAccess.hpp> +#endif + +class SwGlossaryHdl; +class SwNewGlosNameDlg; +class SwWrtShell; +class SfxViewFrame; +class PopupMenu; +class Menu; + +const short RET_EDIT = 100; + +//------------------------------------------------------------------ + +class SwGlTreeListBox : public SvTreeListBox +{ + const String sReadonly; + + SvLBoxEntry* pDragEntry; + + virtual DragDropMode NotifyBeginDrag( SvLBoxEntry* ); + virtual sal_Bool NotifyQueryDrop( SvLBoxEntry* ); + + virtual sal_Bool NotifyMoving( SvLBoxEntry* pTarget, + SvLBoxEntry* pEntry, + SvLBoxEntry*& rpNewParent, + sal_uInt32& rNewChildPos + ); + virtual sal_Bool NotifyCopying( SvLBoxEntry* pTarget, + SvLBoxEntry* pEntry, + SvLBoxEntry*& rpNewParent, + sal_uInt32& rNewChildPos); + public: + SwGlTreeListBox(Window* pParent, const ResId& rResId); + + virtual void RequestHelp( const HelpEvent& rHEvt ); + void Clear(); +}; + +//------------------------------------------------------------------ +class SwOneExampleFrame; +class SwGlossaryDlg : public SvxStandardDialog +{ + friend SwNewGlosNameDlg; + friend SwGlTreeListBox; + + GroupBox aExampleGB; + Window aExampleWIN; + CheckBox aShowExampleCB; + + CheckBox aInsertTipCB; + + FixedText aNameLbl; + Edit aNameED; + FixedText aShortNameLbl; + NoSpaceEdit aShortNameEdit; + + SwGlTreeListBox aCategoryBox; + GroupBox aGlossaryFrm; + + CheckBox aFileRelCB; + CheckBox aNetRelCB; + GroupBox aRelativeGB; + + OKButton aInsertBtn; + CancelButton aCloseBtn; + HelpButton aHelpBtn; + MenuButton aEditBtn; + PushButton aBibBtn; + PushButton aPathBtn; + + String sReadonlyPath; + + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > _xAutoText; + SwOneExampleFrame* pExampleFrame; + + PopupMenu* pMenu; + SwGlossaryHdl* pGlossaryHdl; + const sal_Bool bSelection : 1; + sal_Bool bReadOnly : 1; + sal_Bool bIsOld : 1; + sal_Bool bIsDocReadOnly:1; + + SwWrtShell* pSh; + + void EnableShortName(sal_Bool bOn = sal_True); + + DECL_LINK( NameModify, Edit * ); + DECL_LINK( NameDoubleClick, SvTreeListBox * ); + DECL_LINK( GrpSelect, SvTreeListBox * ); + DECL_LINK( MenuHdl, Menu * ); + DECL_LINK( EnableHdl, Menu * ); + DECL_LINK( BibHdl, Button * ); + DECL_LINK( EditHdl, Button * ); + DECL_LINK( PathHdl, Button * ); + DECL_LINK( CheckBoxHdl, CheckBox * ); + DECL_LINK( ShowPreviewHdl, CheckBox * ); + DECL_LINK( PreviewLoadedHdl, void * ); + + + virtual void Apply(); + void Init(); + SvLBoxEntry* DoesBlockExist(const String& sBlock, const String& rShort); + void ShowAutoText(const String& rGroup, const String& rShortName); + +public: + SwGlossaryDlg(SfxViewFrame* pViewFrame, SwGlossaryHdl* pGlosHdl, SwWrtShell *pWrtShell); + ~SwGlossaryDlg(); + String GetCurrGrpName() const; + inline String GetCurrLongName() const; + inline String GetCurrShortName() const; + static String GetCurrGroup(); + static void SetActGroup(const String& rNewGroup); + static String GetExtension(); +}; + +inline String SwGlossaryDlg::GetCurrLongName() const +{ + return aNameED.GetText(); +} +inline String SwGlossaryDlg::GetCurrShortName() const +{ + return aShortNameEdit.GetText(); +} + + +#endif + diff --git a/sw/source/ui/inc/glshell.hxx b/sw/source/ui/inc/glshell.hxx new file mode 100644 index 000000000000..702829404fd9 --- /dev/null +++ b/sw/source/ui/inc/glshell.hxx @@ -0,0 +1,140 @@ +/************************************************************************* + * + * $RCSfile: glshell.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _AUTODOC_HXX +#define _AUTODOC_HXX + +#include "wdocsh.hxx" + +class SwTextBlocks; + +class SwGlosDocShell : public SwDocShell +{ + String aLongName; + String aShortName; + String aGroupName; +protected: + virtual BOOL Save(); + +public: + TYPEINFO(); + SFX_DECL_INTERFACE(SW_GLOSDOCSHELL); + SwGlosDocShell(); + virtual ~SwGlosDocShell(); + + void Execute( SfxRequest& ); + void GetState( SfxItemSet& ); + void SetLongName( const String& rLongName ) + { aLongName = rLongName; } + void SetShortName( const String& rShortName ) + { aShortName = rShortName; } + void SetGroupName( const String& rGroupName ) + { aGroupName = rGroupName; } + const String& GetShortName(){return aShortName;} +}; + + +class SwWebGlosDocShell : public SwWebDocShell +{ + String aLongName; + String aShortName; + String aGroupName; +protected: + virtual BOOL Save(); + +public: + TYPEINFO(); + SFX_DECL_INTERFACE(SW_WEBGLOSDOCSHELL); + SwWebGlosDocShell(); + virtual ~SwWebGlosDocShell(); + + void Execute( SfxRequest& ); + void GetState( SfxItemSet& ); + void SetLongName( const String& rLongName ) + { aLongName = rLongName; } + void SetShortName( const String& rShortName ) + { aShortName = rShortName; } + void SetGroupName( const String& rGroupName ) + { aGroupName = rGroupName; } + const String& GetShortName(){return aShortName;} +}; + +#endif + + + + + + + + + + + + + + + + + + + + + diff --git a/sw/source/ui/inc/grfsh.hxx b/sw/source/ui/inc/grfsh.hxx new file mode 100644 index 000000000000..1ace70f2e4a0 --- /dev/null +++ b/sw/source/ui/inc/grfsh.hxx @@ -0,0 +1,79 @@ +/************************************************************************* + * + * $RCSfile: grfsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWGRFSH_HXX +#define _SWGRFSH_HXX + +#include "frmsh.hxx" + +class SwGrfShell: public SwBaseShell +{ +public: + SFX_DECL_INTERFACE(SW_GRFSHELL); + + void Execute(SfxRequest &); + void GetState(SfxItemSet &); + void ExecAttr(SfxRequest &); + void GetAttrState(SfxItemSet &); + + SwGrfShell(SwView &rView); +}; + +#endif diff --git a/sw/source/ui/inc/hidfunc.h b/sw/source/ui/inc/hidfunc.h new file mode 100644 index 000000000000..00f296a447c0 --- /dev/null +++ b/sw/source/ui/inc/hidfunc.h @@ -0,0 +1,383 @@ +/************************************************************************* + * + * $RCSfile: hidfunc.h,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#define HID_EXIT 1017 +#define HID_NEW_WINDOW 1701 +#define HID_ARRANGE_CASCADE_WIN 1703 +#define HID_ARRANGE_HORZ_WIN 1704 +#define HID_ARRANGE_VERT_WIN 1705 +#define HID_ARRANGE_ALL_WIN 1702 +#define HID_SHOW_HELP_INDEX 1802 +#define HID_NEW_FILE 1005 +#define HID_NEW_FILE_DEFAULT 1024 +#define HID_CLOSE_FILE 1001 +#define HID_DOC_MGR_DLG 1032 +#define HID_CONFIG_TOOLBOX 1629 +#define HID_CONFIG_MENU 1630 +#define HID_CONFIG_KEY 1631 +#define HID_TEMPLATE_PI 1657 +#define HID_ADDR_PI 1658 +#define HID_AUTO_FORMAT 1651 +#define HID_NAVIGATION_PI 1656 +#define HID_NAVIGATION_PI_GOTO_PAGE 1659 +#define HID_HELP_PI 1655 +#define HID_FORMAT_DROPCAPS 1454 +#define HID_CONFIG_VIEWOPTIONS 1635 +#define HID_CONFIG_COLORS 1636 +#define HID_TOOLBOX 1213 +#define HID_RIBBON 1210 +#define HID_RULER 1211 +#define HID_VLINEAL 1216 +#define HID_VSCROLLBAR 1217 +#define HID_HSCROLLBAR 1218 +#define HID_SAVE_FILE 1013 +#define HID_SAVE_ALL 1023 +#define HID_SAVE_FILE_AS 1012 +#define HID_OPEN_LASTVERSION 1009 +#define HID_STATUSBAR 1212 +#define HID_ABOUT_DLG 1806 +#define HID_SEND_MAIL 1022 +#define HID_OPEN_FILE 1007 +#define HID_INSERT_FILE 1309 +#define HID_DOCSTAT_DLG 1020 +#define HID_LOAD_TEMPLATE_DLG 1021 +#define HID_ESCAPE 1941 +#define HID_PLAY_MACRO_DLG 1624 +#define HID_RECORD_MACRO_DLG 1622 +#define HID_ASSIGN_LOCAL_MACRO_DLG 1632 +#define HID_COMPILE_MACRO 1633 +#define HID_CREATE_DOCUMENT 1019 +#define HID_PAGEUP 1937 +#define HID_PAGEDOWN 1938 +#define HID_SET_LEFT_PARA 1418 +#define HID_SET_RIGHT_PARA 1419 +#define HID_SET_CENTER_PARA 1420 +#define HID_SET_JUSTIFY_PARA 1421 +#define HID_SET_ADJUST 1428 +#define HID_FORMAT_RESET 1469 +#define HID_INDENT_TO_TABSTOP 1417 +#define HID_UNINDENT_TO_TABSTOP 1431 +#define HID_SET_BOLD 1405 +#define HID_SET_ITALIC 1406 +#define HID_SET_UNDERLINE 1409 +#define HID_SET_STRIKEOUT 1410 +#define HID_SET_OUTLINE 1408 +#define HID_SET_SHADOW 1407 +#define HID_SET_SUPER_SCRIPT 1411 +#define HID_SET_SUB_SCRIPT 1412 +#define HID_SET_COLOR 1413 +#define HID_SET_CASEMAP 1414 +#define HID_SET_LANGUAGE 1415 +#define HID_SET_KERNING 1416 +#define HID_SET_FONT 1401 +#define HID_SET_FONT_SIZE 1402 +#define HID_GROW_FONT_SIZE 1403 +#define HID_SHRINK_FONT_SIZE 1404 +#define HID_SET_LINE_SPACE_1 1422 +#define HID_SET_LINE_SPACE_15 1423 +#define HID_SET_LINE_SPACE_2 1424 +#define HID_SET_PROP_LINE_SPACE 1540 +#define HID_SET_ABS_LINE_SPACE 1541 +#define HID_INSERT_SYMBOL 1328 +#define HID_INSERT_OBJECT_DLG 1322 +#define HID_EDIT_OBJECT 1110 +#define HID_EDIT_LINK_DLG 1109 +#define HID_EDIT_FILE_INFO_DLG 1107 +#define HID_EDIT_IDX_ENTRY_DLG 1123 +#define HID_NUM_BULLET_DOWN 1130 +#define HID_NUM_BULLET_MOVEUP 1134 +#define HID_NUM_BULLET_MOVEDOWN 1135 +#define HID_NUM_BULLET_UP 1131 +#define HID_NUM_BULLET_PREV 1132 +#define HID_NUM_BULLET_NEXT 1133 +#define HID_NUM_BULLET_OUTLINE_MOVEDOWN 1142 +#define HID_NUM_BULLET_OUTLINE_MOVEUP 1141 +#define HID_NUM_BULLET_OUTLINE_UP 1140 +#define HID_NUM_BULLET_OUTLINE_DOWN 1139 +#define HID_NUM_BULLET_NONUM 1136 +#define HID_NUM_NUMBERING_ON 1144 +#define HID_NUM_BULLET_ON 1138 +#define HID_NUM_BULLET_OFF 1137 +#define HID_INSERT_IDX_ENTRY_DLG 1335 +#define HID_POSTIT 1329 +#define HID_INSERT_CAPTION 1310 +#define HID_INSERT_IDX 1336 +#define HID_INSERT_USERIDX 1337 +#define HID_INSERT_CNTNTIDX 1338 +#define HID_INSERT_IDX_ENTRY 1340 +#define HID_INSERT_USERIDX_ENTRY 1341 +#define HID_INSERT_CNTNTIDX_ENTRY 1342 +#define HID_INSERT_FRAME 1334 +#define HID_INSERT_FRAME_INTERACT 1333 +#define HID_INSERT_SOFT_HYPHEN 1350 +#define HID_INSERT_HARD_SPACE 1351 +#define HID_FORMAT_FRAME_DLG 1456 +#define HID_FRAME_TO_TOP 1470 +#define HID_FRAME_TO_BOTTOM 1471 +#define HID_FRAME_NOWRAP 1472 +#define HID_FRAME_WRAP 1473 +#define HID_FRAME_WRAPTHRU 1474 +#define HID_FRAME_ALIGN_HORZ_LEFT 1475 +#define HID_FRAME_ALIGN_HORZ_RIGHT 1476 +#define HID_FRAME_ALIGN_HORZ_CENTER 1477 +#define HID_FRAME_ALIGN_VERT_TOP 1478 +#define HID_FRAME_ALIGN_VERT_BOTTOM 1479 +#define HID_FRAME_ALIGN_VERT_CENTER 1480 +#define HID_EDIT_FIELD 1104 +#define HID_SET_FIELD_VALUE 1112 +#define HID_INSERT_FIELD 1308 +#define HID_INSERT_MERGEFIELD_DLG 1320 +#define HID_EXECUTE_MACROFIELD 1127 +#define HID_UPDATE_FIELDS 1126 +#define HID_UPDATE_INPUTFIELDS 1143 +#define HID_CALC_TABLE 1129 +#define HID_INSERT_BREAK_DLG 1304 +#define HID_INSERT_BOOKMARK 1302 +#define HID_DELETE_BOOKMARK 1301 +#define HID_INSERT_GRAFIC 1315 +#define HID_FORMAT_TABLE_DLG 1460 +#define HID_INSERT_TABLE 1330 +#define HID_INSERT_COLS 1332 +#define HID_PAGE_STYLE_SET_COLS 1538 +#define HID_CONVERT_TEXT_TABLE 1500 +#define HID_TABLE_INSERT_ROW 1501 +#define HID_TABLE_INSERT_COL 1502 +#define HID_TABLE_DELETE_ROW 1503 +#define HID_TABLE_DELETE_COL 1504 +#define HID_TABLE_SPLIT_CELLS 1505 +#define HID_TABLE_MERGE_CELLS 1506 +#define HID_TABLE_SET_ROW_HEIGHT 1507 +#define HID_TABLE_SET_COL_WIDTH 1508 +#define HID_TABLE_SET_ULSPACE 1509 +#define HID_TABLE_SET_GRID 1510 +#define HID_TABLE_SET_SHADOW 1511 +#define HID_FORMAT_CHAR_DLG 1441 +#define HID_FORMAT_PAGE_DLG 1452 +#define HID_CHANGE_PAGENUM 1634 +#define HID_FORMAT_PARA_DLG 1443 +#define HID_FORMAT_TAB_DLG 1445 +#define HID_FORMAT_BORDER_DLG 1447 +#define HID_FORMAT_BORDER 1439 +#define HID_FORMAT_SHADOW 1438 +#define HID_FORMAT_BACKGROUND 1448 +#define HID_FORMAT_BACKGROUND_DLG 1450 +#define HID_SET_FRM_SIZE 1481 +#define HID_SET_FRM_POSITION 1482 +#define HID_SET_FRM_ANCHOR 1483 +#define HID_SET_FRM_WRAP 1484 +#define HID_SET_FRM_DIST 1485 +#define HID_SET_FRM_OPTIONS 1486 +#define HID_SET_FRM_MACRO 1494 +#define HID_SET_FRM_COLUMNS 1495 +#define HID_SET_FRM_COLUMN_WIDTH 1496 +#define HID_SET_GRF_MIRROR 1488 +#define HID_SET_TABLE_WIDTH 1489 +#define HID_SET_TABLE_ALIGN 1490 +#define HID_TABLE_SET_READ_ONLY_CELLS 1517 +#define HID_TABLE_UNSET_READ_ONLY_CELLS 1519 +#define HID_NEW_STYLE_BY_EXAMPLE 1462 +#define HID_UPDATE_STYLES_DIRECT 1497 +#define HID_UPDATE_STYLE_BY_EXAMPLE 1463 +#define HID_STYLE_SHEET_FRAME_DLG 1464 +#define HID_STYLE_SHEET_DOC_DLG 1465 +#define HID_SET_STANDARD_FONTS 1442 +#define HID_COPY 1102 +#define HID_PASTE 1113 +#define HID_PASTESPECIAL 1114 +#define HID_CUT 1103 +#define HID_FLIP_HORZ_GRAFIC 1425 +#define HID_FLIP_VERT_GRAFIC 1426 +#define HID_FORMAT_GRAFIC_DLG 1458 +#define HID_VIEW_BOUNDS 1214 +#define HID_VIEW_FIELDS 1215 +#define HID_VIEW_META_CHARS 1224 +#define HID_VIEW_MARKS 1225 +#define HID_VIEW_FIELDNAME 1226 +#define HID_VIEW_TABLEGRID 1227 +#define HID_SEARCH 1117 +#define HID_REPEAT_SEARCH 1150 +#define HID_REPLACE 1118 +#define HID_GOTO 1111 +#define HID_SETUP_PRINTER_DLG 1015 +#define HID_PRINT_FILE 1010 +#define HID_PRINT_FILE_DEFAULT 1025 +#define HID_FAX 1028 +#define HID_PRINT_FILE_OPTIONS 1011 +#define HID_THESAURUS_DLG 1604 +#define HID_SPELLING_DLG 1601 +#define HID_HYPHENATE_OPT_DLG 1607 +#define HID_MERGE_FILE_DLG 1004 +#define HID_SELECT_DATABASE 1030 +#define HID_DOC_INFO_DLG 1031 +#define HID_MERGE_FILE 1003 +#define HID_MERGE_RECORD 1327 +#define HID_INSERT_RECORD 1326 +#define HID_NUMBERING_OUTLINE_DLG 1612 +#define HID_NUMBER_BULLETS 1121 +#define HID_ZOOM 1231 +#define HID_SORTING 1613 +#define HID_SORTING_DLG 1614 +#define HID_CALCULATE 1615 +#define HID_REFRESH_VIEW 1201 +#define HID_CHAR_LEFT 1901 +#define HID_CHAR_RIGHT 1902 +#define HID_LINE_UP 1903 +#define HID_LINE_DOWN 1904 +#define HID_START_OF_LINE 1905 +#define HID_END_OF_LINE 1906 +#define HID_START_OF_DOCUMENT 1907 +#define HID_END_OF_DOCUMENT 1908 +#define HID_SELECT_WORD 1943 +#define HID_SELECT_ALL 1119 +#define HID_START_OF_NEXT_PAGE 1909 +#define HID_END_OF_NEXT_PAGE 1910 +#define HID_START_OF_PREV_PAGE 1911 +#define HID_END_OF_PREV_PAGE 1912 +#define HID_START_OF_PAGE 1913 +#define HID_END_OF_PAGE 1914 +#define HID_NEXT_WORD 1921 +#define HID_START_OF_PARA 1919 +#define HID_END_OF_PARA 1920 +#define HID_PREV_WORD 1922 +#define HID_NEXT_SENT 1923 +#define HID_PREV_SENT 1924 +#define HID_SET_INS_MODE 1936 +#define HID_SET_ADD_MODE 1939 +#define HID_SET_EXT_MODE 1940 +#define HID_START_TABLE 1947 +#define HID_END_TABLE 1948 +#define HID_NEXT_TABLE 1949 +#define HID_PREV_TABLE 1950 +#define HID_TABLE_SELECT_ALL 1515 +#define HID_TABLE_SELECT_COL 1514 +#define HID_TABLE_SELECT_ROW 1513 +#define HID_START_OF_COLUMN 1917 +#define HID_END_OF_COLUMN 1918 +#define HID_START_OF_NEXT_COLUMN 1951 +#define HID_END_OF_NEXT_COLUMN 1952 +#define HID_START_OF_PREV_COLUMN 1953 +#define HID_END_OF_PREV_COLUMN 1954 +#define HID_FOOTNOTE_TO_ANCHOR 1955 +#define HID_NEXT_FOOTNOTE 1956 +#define HID_PREV_FOOTNOTE 1957 +#define HID_CNTNT_TO_NEXT_FRAME 1958 +#define HID_FRAME_TO_ANCHOR 1959 +#define HID_TO_HEADER 1960 +#define HID_TO_FOOTER 1961 +#define HID_IDX_MARK_TO_IDX 1962 +#define HID_DELETE 1925 +#define HID_BACKSPACE 1926 +#define HID_DELETE_SENT 1927 +#define HID_DELETE_BACK_SENT 1928 +#define HID_DELETE_WORD 1929 +#define HID_DELETE_BACK_WORD 1930 +#define HID_DELETE_LINE 1931 +#define HID_DELETE_BACK_LINE 1932 +#define HID_DELETE_PARA 1933 +#define HID_DELETE_BACK_PARA 1934 +#define HID_DELETE_WHOLE_LINE 1935 +#define HID_INSERT_BREAK 1303 +#define HID_INSERT_PAGEBREAK 1323 +#define HID_INSERT_LINEBREAK 1318 +#define HID_INSERT_COLUMN_BREAK 1305 +#define HID_INSERT_FOOTNOTE 1311 +#define HID_INSERT_FOOTNOTE_DLG 1312 +#define HID_FORMAT_FOOTNOTE_DLG 1468 +#define HID_UNDO 1120 +#define HID_REDO 1116 +#define HID_REPEAT 1122 +#define HID_REPAGINATE 1161 +#define HID_SHOW_UPDATE_HELP 1805 +#define HID_SHOW_KEYBOARD_HELP 1803 +#define HID_SHOW_HELP_MANUAL 1804 +#define HID_GLOSSARY_DLG 1620 +#define HID_EXPAND_GLOSSARY 1628 +#define HID_INSERT_GLOSSARY 1640 +#define HID_AUTO_CORRECT_DLG 1650 +#define HID_AUTO_CORRECT 1649 +#define HID_CONFIG_DLG 1627 +#define HID_INSERT_STRING 1331 +#define HID_SET_CHAR_STYLE 1491 +#define HID_SET_PARA_STYLE 1492 +#define HID_SET_PAGE_STYLE 1493 +#define HID_SET_LRMARGIN 1429 +#define HID_SET_ULMARGIN 1430 +#define HID_SET_HYPHEN_ZONE 1432 +#define HID_SET_PAGE_BREAK 1433 +#define HID_FORMAT_PAGE 1451 +#define HID_SET_KEEP_TOGETHER 1434 +#define HID_SET_WIDOW 1436 +#define HID_SET_ORPHAN 1437 +#define HID_BUFFER_UPDATE 1124 +#define HID_FORMAT_TAB 1444 +#define HID_IS_END_OF_PARA 2000 +#define HID_IS_END_OF_WORD 2000 +#define HID_IS_END_OF_DOC 2000 +#define HID_IS_START_OF_PARA 2000 +#define HID_IS_START_OF_WORD 2000 +#define HID_IS_START_OF_DOC 2000 +#define HID_EDIT_FORMULA 1128 +#define HID_ENVELOP 2050 +#define HID_LABEL 2051 +#define HID_AGENDA_WIZZARD 1663 +#define HID_MEMO_WIZZARD 1662 +#define HID_FAX_WIZZARD 1661 +#define HID_LETTER_WIZZARD 1660 +#define HID_LAUNCH_REGISTRY 1002 diff --git a/sw/source/ui/inc/hyp.hxx b/sw/source/ui/inc/hyp.hxx new file mode 100644 index 000000000000..0f6f0253dc20 --- /dev/null +++ b/sw/source/ui/inc/hyp.hxx @@ -0,0 +1,105 @@ +/************************************************************************* + * + * $RCSfile: hyp.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _HYP_HXX +#define _HYP_HXX + +#ifndef _LINK_HXX +#include <tools/link.hxx> +#endif +#ifndef _SVX_SPLWRAP_HXX //autogen +#include <svx/splwrap.hxx> +#endif +#ifndef _COM_SUN_STAR_LINGUISTIC_XHYPHENATOR_HPP_ +#include <com/sun/star/linguistic/XHyphenator.hpp> +#endif + +class SwView; + +class SwHyphWrapper : public SvxSpellWrapper { +private: + SwView* pView; + ::com::sun::star::uno::Reference< + ::com::sun::star::linguistic::XHyphenator > xHyph; + Link aOldLnk; + sal_uInt32 nLangError; // nicht vorhandene Sprache + sal_uInt16 nPageCount; // Seitenanzahl fuer Progressanzeige + sal_uInt16 nPageStart; // 1. gepruefte Seite + sal_Bool bInSelection : 1; // Trennen von selektiertem Text + sal_Bool bShowError : 1; // nicht vorhandene Sprache melden + sal_Bool bAutomatic : 1; // Trennstellen ohne Rueckfrage einfuegen + DECL_LINK( SpellError, void * ); + +public: + SwHyphWrapper( SwView* pVw, ::com::sun::star::uno::Reference< + ::com::sun::star::linguistic::XHyphenator > &rxHyph, + sal_Bool bStart, sal_Bool bOther, sal_Bool bSelect ); + + ~SwHyphWrapper(); +protected: + virtual void SpellStart( SvxSpellArea eSpell ); + virtual sal_Bool SpellContinue(); + virtual void SpellEnd( ); + virtual sal_Bool SpellMore(); + virtual void InsertHyphen( const sal_uInt16 nPos ); // Hyphen einfuegen +}; + +#endif diff --git a/sw/source/ui/inc/idxmrk.hxx b/sw/source/ui/inc/idxmrk.hxx new file mode 100644 index 000000000000..47daae127d21 --- /dev/null +++ b/sw/source/ui/inc/idxmrk.hxx @@ -0,0 +1,345 @@ +/************************************************************************* + * + * $RCSfile: idxmrk.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _IDXMRK_HXX +#define _IDXMRK_HXX + +#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_ +#include <com/sun/star/container/XNameAccess.hpp> +#endif +#ifndef _BASEDLGS_HXX +#include <sfx2/basedlgs.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _SV_LSTBOX_HXX +#include <vcl/lstbox.hxx> +#endif +#ifndef _COMBOBOX_HXX //autogen +#include <vcl/combobox.hxx> +#endif +#ifndef _SVX_STDDLG_HXX +#include <svx/stddlg.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _IMAGEBTN_HXX //autogen +#include <vcl/imagebtn.hxx> +#endif +#ifndef _SFX_CHILDWIN_HXX //autogen +#include <sfx2/childwin.hxx> +#endif +#ifndef _TOXE_HXX +#include "toxe.hxx" +#endif +#ifndef _STDCTRL_HXX +#include <svtools/stdctrl.hxx> +#endif +class SwWrtShell; +class SwTOXMgr; + +/*-------------------------------------------------------------------- + Beschreibung: Markierung fuer Verzeichniseintrag einfuegen + --------------------------------------------------------------------*/ +class SwIndexMarkFloatDlg; +class SwIndexMarkModalDlg; +class SwIndexMarkDlg : public Window //SvxStandardDialog +{ + friend class SwIndexMarkFloatDlg; + friend class SwIndexMarkModalDlg; + FixedText aTypeFT; + ListBox aTypeDCB; + ImageButton aNewBT; + FixedText aEntryFT; + Edit aEntryED; + FixedText aKeyFT; + ComboBox aKeyDCB; + FixedText aKey2FT; + ComboBox aKey2DCB; + FixedText aLevelFT; + NumericField aLevelED; + CheckBox aMainEntryCB; + CheckBox aApplyToAllCB; + CheckBox aSearchCaseSensitiveCB; + CheckBox aSearchCaseWordOnlyCB; + + GroupBox aIndexGB; + + OKButton aOKBT; + CancelButton aCancelBT; + HelpButton aHelpBT; + PushButton aDelBT; + //PushButton aNewBT; + + ImageButton aPrevSameBT; + ImageButton aNextSameBT; + ImageButton aPrevBT; + ImageButton aNextBT; + + String aOrgStr; + sal_Bool bDel; + sal_Bool bNewMark; + sal_Bool bSelected; + + SwTOXMgr* pTOXMgr; + SwWrtShell* pSh; + + void Apply(); + void InitControls(); + void InsertMark(); + void UpdateMark(); + + DECL_LINK( InsertHdl, Button * ); + DECL_LINK( CloseHdl, Button * ); + DECL_LINK( DelHdl, Button * ); + DECL_LINK( NextHdl, Button * ); + DECL_LINK( NextSameHdl, Button * ); + DECL_LINK( PrevHdl, Button * ); + DECL_LINK( PrevSameHdl, Button * ); + DECL_LINK( ModifyHdl, ListBox* pBox = 0 ); + DECL_LINK( KeyDCBModifyHdl, ComboBox * ); + DECL_LINK( NewUserIdxHdl, Button*); + DECL_LINK( SearchTypeHdl, CheckBox*); + + void UpdateKeyBoxes(); + + void UpdateDialog(); + void InsertUpdate(); + + virtual void Activate(); + +public: + + SwIndexMarkDlg( Window *pParent, + sal_Bool bNewDlg, + const ResId& rResId); + + + ~SwIndexMarkDlg(); + + void ReInitDlg(SwWrtShell& rWrtShell); + sal_Bool IsTOXType(const String& rName) + {return LISTBOX_ENTRY_NOTFOUND != aTypeDCB.GetEntryPos(rName);} +}; +/* -----------------06.10.99 10:11------------------- + + --------------------------------------------------*/ +class SwIndexMarkFloatDlg : public SfxModelessDialog +{ + SwIndexMarkDlg aDlg; + virtual void Activate(); + public: + SwIndexMarkFloatDlg( SfxBindings* pBindings, + SfxChildWindow* pChild, + Window *pParent, + sal_Bool bNew=sal_True); + + SwIndexMarkDlg& GetDlg() {return aDlg;} +}; +/* -----------------06.10.99 10:33------------------- + + --------------------------------------------------*/ +class SwIndexMarkModalDlg : public SvxStandardDialog +{ + SwIndexMarkDlg aDlg; +public: + SwIndexMarkModalDlg(Window *pParent, SwWrtShell& rSh); + + SwIndexMarkDlg& GetDlg() {return aDlg;} + virtual void Apply(); +}; + +/* -----------------07.09.99 08:02------------------- + + --------------------------------------------------*/ +class SwInsertIdxMarkWrapper : public SfxChildWindow +{ +protected: + SwInsertIdxMarkWrapper( Window *pParentWindow, + sal_uInt16 nId, + SfxBindings* pBindings, + SfxChildWinInfo* pInfo ); + + SFX_DECL_CHILDWINDOW(SwInsertIdxMarkWrapper); + +public: + void ReInitDlg(SwWrtShell& rWrtShell) + {((SwIndexMarkFloatDlg*)pWindow)->GetDlg().ReInitDlg(rWrtShell);} + +}; + +/* -----------------15.09.99 08:39------------------- + + --------------------------------------------------*/ +class SwAuthMarkModalDlg; +class SwAuthMarkDlg : public Window +{ + static sal_Bool bIsFromComponent; + + friend class SwAuthMarkModalDlg; + RadioButton aFromComponentRB; + RadioButton aFromDocContentRB; + FixedText aEntryFT; + Edit aEntryED; + ListBox aEntryLB; + FixedText aAuthorFT; + FixedInfo aAuthorFI; + FixedText aTitleFT; + FixedInfo aTitleFI; + + GroupBox aEntryGB; + + OKButton aOKBT; + CancelButton aCancelBT; + HelpButton aHelpBT; + PushButton aCreateEntryPB; + PushButton aEditEntryPB; + + String sChangeST; + sal_Bool bNewEntry; + sal_Bool bBibAccessInitialized; + + SwWrtShell* pSh; + + String m_sColumnTitles[AUTH_FIELD_END]; + String m_sFields[AUTH_FIELD_END]; + + String m_sCreatedEntry[AUTH_FIELD_END]; + + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > xBibAccess; + + DECL_LINK(InsertHdl, PushButton*); + DECL_LINK(CloseHdl, PushButton*); + DECL_LINK(CreateEntryHdl, PushButton*); + DECL_LINK(CompEntryHdl, ListBox*); + DECL_LINK(ChangeSourceHdl, RadioButton*); + DECL_LINK(IsEntryAllowedHdl, Edit*); + + void InitControls(); +public: + + SwAuthMarkDlg( Window *pParent, + const ResId& rResId, + sal_Bool bNew=sal_True); + ~SwAuthMarkDlg(); + + void ReInitDlg(SwWrtShell& rWrtShell); +}; +/* -----------------07.09.99 08:02------------------- + + --------------------------------------------------*/ +class SwInsertAuthMarkWrapper : public SfxChildWindow +{ +protected: + SwInsertAuthMarkWrapper( Window *pParentWindow, + sal_uInt16 nId, + SfxBindings* pBindings, + SfxChildWinInfo* pInfo ); + + SFX_DECL_CHILDWINDOW(SwInsertAuthMarkWrapper); + +public: + void ReInitDlg(SwWrtShell& rWrtShell); +}; +/* -----------------06.10.99 10:11------------------- + + --------------------------------------------------*/ +class SwAuthMarkFloatDlg : public SfxModelessDialog +{ + SwAuthMarkDlg aDlg; + virtual void Activate(); + public: + SwAuthMarkFloatDlg( SfxBindings* pBindings, + SfxChildWindow* pChild, + Window *pParent, + sal_Bool bNew=sal_True); + + SwAuthMarkDlg& GetDlg() {return aDlg;} +}; +/* -----------------06.10.99 10:33------------------- + + --------------------------------------------------*/ +class SwAuthMarkModalDlg : public SvxStandardDialog +{ + SwAuthMarkDlg aDlg; +public: + SwAuthMarkModalDlg(Window *pParent, SwWrtShell& rSh); + + SwAuthMarkDlg& GetDlg() {return aDlg;} + virtual void Apply(); +}; + + +#endif // _IDXMRK_HXX + diff --git a/sw/source/ui/inc/initui.hxx b/sw/source/ui/inc/initui.hxx new file mode 100644 index 000000000000..c48253072a83 --- /dev/null +++ b/sw/source/ui/inc/initui.hxx @@ -0,0 +1,109 @@ +/************************************************************************* + * + * $RCSfile: initui.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _INITUI_HXX +#define _INITUI_HXX + +#ifndef _SOLAR_H +#include <tools/solar.h> +#endif + +/* + * Forward Declarations + */ +class String; +class SwThesaurus; +class SpellCheck; +class SvStringsDtor; + +/* + * Extern Definitions + */ +extern SwThesaurus* pThes; +extern String GetSWGVersion(); + +extern String* pOldGrfCat; +extern String* pOldTabCat; +extern String* pOldFrmCat; + +extern String* pCurrGlosGroup; + +extern SvStringsDtor* pDBNameList; + +extern SvStringsDtor* pAuthFieldNameList; +extern SvStringsDtor* pAuthFieldTypeList; + +// stellt die Textbausteinverwaltung zur Verfuegung +class SwGlossaries; +SwGlossaries* GetGlossaries(); + +class SwGlossaryList; + +BOOL HasGlossaryList(); +SwGlossaryList* GetGlossaryList(); + +extern void _InitUI(); +extern void _FinitUI(); +extern void _InitSpell(); +extern void _FinitSpell(); + + +#endif diff --git a/sw/source/ui/inc/inpdlg.hxx b/sw/source/ui/inc/inpdlg.hxx new file mode 100644 index 000000000000..6ff63ad02d5f --- /dev/null +++ b/sw/source/ui/inc/inpdlg.hxx @@ -0,0 +1,123 @@ +/************************************************************************* + * + * $RCSfile: inpdlg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _INPDLG_HXX +#define _INPDLG_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef VCL +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif +#else +#ifndef _SV_SVMEDIT_HXX //autogen +#include <svtools/svmedit.hxx> +#endif +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +class SwInputField; +class SwSetExpField; +class SwUserFieldType; +class SwField; +class SwWrtShell; + +/*-------------------------------------------------------------------- + Beschreibung: Einfuegen Felder + --------------------------------------------------------------------*/ + +class SwFldInputDlg: public SvxStandardDialog +{ + virtual void Apply(); + + SwWrtShell &rSh; + SwInputField* pInpFld; + SwSetExpField* pSetFld; + SwUserFieldType* pUsrType; + + Edit aLabelED; + + MultiLineEdit aEditED; + GroupBox aEditGB; + + OKButton aOKBT; + CancelButton aCancelBT; + PushButton aNextBT; + HelpButton aHelpBT; + + DECL_LINK(NextHdl, PushButton*); +public: + SwFldInputDlg( Window *pParent, SwWrtShell &rSh, + SwField* pField, BOOL bNextButton = FALSE ); + ~SwFldInputDlg(); +}; + + +#endif diff --git a/sw/source/ui/inc/inputwin.hxx b/sw/source/ui/inc/inputwin.hxx new file mode 100644 index 000000000000..57aa0166767a --- /dev/null +++ b/sw/source/ui/inc/inputwin.hxx @@ -0,0 +1,165 @@ +/************************************************************************* + * + * $RCSfile: inputwin.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef SW_INPUTWIN_HXX +#define SW_INPUTWIN_HXX + + +#ifndef _MENU_HXX //autogen +#include <vcl/menu.hxx> +#endif +#ifndef _SFX_CHILDWIN_HXX //autogen +#include <sfx2/childwin.hxx> +#endif +#ifndef _TOOLBOX_HXX //autogen +#include <vcl/toolbox.hxx> +#endif +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + +class SwFldMgr; +class SwWrtShell; +class SwView; +class SfxDispatcher; + +//======================================================================== +class InputEdit : public Edit +{ +public: + InputEdit(Window* pParent, WinBits nStyle) : + Edit(pParent , nStyle){} + + void UpdateRange(const String& aSel, + const String& aTblName ); + +protected: + virtual void KeyInput( const KeyEvent& ); +}; + +//======================================================================== + +class SwInputWindow : public ToolBox +{ +friend class InputEdit; + + Edit aPos; + InputEdit aEdit; + PopupMenu aPopMenu; + SwFldMgr* pMgr; + SwWrtShell* pWrtShell; + SwView* pView; + String aAktTableName, sOldFml; + USHORT nActionCnt; + + BOOL bFirst : 1; //Initialisierungen beim ersten Aufruf + BOOL bActive : 1; //fuer Hide/Show beim Dokumentwechsel + BOOL bIsTable : 1; + BOOL bDelSel : 1; + BOOL bDoesUndo : 1; + BOOL bResetUndo : 1; + BOOL bCallUndo : 1; + + + void DelBoxCntnt(); + DECL_LINK( ModifyHdl, InputEdit* ); + +protected: + virtual void Resize(); + virtual void Click(); + DECL_LINK( MenuHdl, Menu * ); + void ApplyFormula(); + void CancelFormula(); +public: + SwInputWindow( Window* pParent ); + virtual ~SwInputWindow(); + + + void SelectHdl( ToolBox*); + virtual void Show(); + BOOL IsActive(){ return bActive; }; + DECL_LINK( SelTblCellsNotify, SwWrtShell * ); + + void SetFormula( const String& rFormula, BOOL bDelSel = TRUE ); + const SwView* GetView() const{return pView;} +}; + +class SwInputChild : public SfxChildWindow +{ + BOOL bObjVis; + SfxDispatcher* pDispatch; +public: + SwInputChild( Window* , + USHORT nId, + SfxBindings*, + SfxChildWinInfo* ); + ~SwInputChild(); + SFX_DECL_CHILDWINDOW( SwInputChild ); + void SetFormula( const String& rFormula, BOOL bDelSel = TRUE ) + { ((SwInputWindow*)pWindow)->SetFormula( + rFormula, bDelSel ); } + const SwView* GetView() const{return ((SwInputWindow*)pWindow)->GetView();} + +}; + +//================================================================== + +#endif + diff --git a/sw/source/ui/inc/insfnote.hxx b/sw/source/ui/inc/insfnote.hxx new file mode 100644 index 000000000000..9c91d2bc9f01 --- /dev/null +++ b/sw/source/ui/inc/insfnote.hxx @@ -0,0 +1,125 @@ +/************************************************************************* + * + * $RCSfile: insfnote.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _INSFNOTE_HXX +#define _INSFNOTE_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + + +class SwWrtShell; + +class SwInsFootNoteDlg: public SvxStandardDialog +{ + SwWrtShell &rSh; + + //Alles fuer das/die Zeichen + String aFontName; + CharSet eCharSet; + char cExtChar; + BOOL bExtCharAvailable; + BOOL bEdit; + RadioButton aNumberAutoBtn; + RadioButton aNumberCharBtn; + Edit aNumberCharEdit; + PushButton aNumberExtChar; + GroupBox aNumberFrm; + + //Alles fuer die Auswahl Fussnote/Endnote + RadioButton aFtnBtn; + RadioButton aEndNoteBtn; + GroupBox aTypeBox; + + OKButton aOkBtn; + CancelButton aCancelBtn; + HelpButton aHelpBtn; + ImageButton aPrevBT; + ImageButton aNextBT; + + DECL_LINK( NumberCharHdl, Button * ); + DECL_LINK( NumberEditHdl, void * ); + DECL_LINK( NumberAutoBtnHdl, Button *); + DECL_LINK( NumberExtCharHdl, Button *); + DECL_LINK( NextPrevHdl, Button * ); + + virtual void Apply(); + + void Init(); + +public: + SwInsFootNoteDlg(Window * pParent, SwWrtShell &rSh, BOOL bEd = FALSE); + ~SwInsFootNoteDlg(); +}; + +#endif diff --git a/sw/source/ui/inc/insrc.hxx b/sw/source/ui/inc/insrc.hxx new file mode 100644 index 000000000000..1414cc02c69d --- /dev/null +++ b/sw/source/ui/inc/insrc.hxx @@ -0,0 +1,125 @@ +/************************************************************************* + * + * $RCSfile: insrc.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _INSRC_HXX +#define _INSRC_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _STRING_HXX //autogen +#include <tools/string.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +class SwView; +class SwInsRowColDlg : public SvxStandardDialog +{ + FixedText aCount; + NumericField aCountEdit; + GroupBox aInsGrp; + + RadioButton aBeforeBtn; + RadioButton aAfterBtn; + GroupBox aPosGrp; + + String aRow; + String aCol; + + OKButton aOKBtn; + CancelButton aCancelBtn; + HelpButton aHelpBtn; + + SwView& rView; + BOOL bColumn; + +protected: + virtual void Apply(); + +public: + SwInsRowColDlg( SwView& rView, BOOL bCol ); +}; + +#endif + diff --git a/sw/source/ui/inc/insrule.hxx b/sw/source/ui/inc/insrule.hxx new file mode 100644 index 000000000000..8f59642f44ec --- /dev/null +++ b/sw/source/ui/inc/insrule.hxx @@ -0,0 +1,105 @@ +/************************************************************************* + * + * $RCSfile: insrule.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _INSRULE_HXX +#define _INSRULE_HXX + +#ifndef _NUM_HXX +#include "num.hxx" +#endif + +class SwDocShell; + +class SwRulerValueSet; +class ValueSet; +/*-----------------14.02.97 12.30------------------- + +--------------------------------------------------*/ +class SwInsertGrfRulerDlg : public SfxModalDialog +{ + GroupBox aSelectionGB; + OKButton aOkPB; + CancelButton aCancelPB; + HelpButton aHelpPB; + + List aGrfNames; + String sSimple; + + USHORT nSelPos; + + SwRulerValueSet* pExampleVS; + +protected: + DECL_LINK(SelectHdl, ValueSet*); + DECL_LINK(DoubleClickHdl, ValueSet*); + +public: + SwInsertGrfRulerDlg( Window* pParent, SwDocShell* pDocSh ); + ~SwInsertGrfRulerDlg(); + + String GetGraphicName(); + BOOL IsSimpleLine() {return nSelPos == 1;} + BOOL HasImages() const {return 0 != aGrfNames.Count();} +}; + +#endif + + + diff --git a/sw/source/ui/inc/instable.hxx b/sw/source/ui/inc/instable.hxx new file mode 100644 index 000000000000..9539157a6660 --- /dev/null +++ b/sw/source/ui/inc/instable.hxx @@ -0,0 +1,127 @@ +/************************************************************************* + * + * $RCSfile: instable.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _INSTABLE_HXX +#define _INSTABLE_HXX + + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif +#ifndef _ACTCTRL_HXX +#include <actctrl.hxx> +#endif +class SwWrtShell; +class SwTableAutoFmt; + +class SwInsTableDlg : public SfxModalDialog +{ + TableNameEdit aNameEdit; + GroupBox aNameFrm; + FixedText aColLbl; + NumericField aColEdit; + FixedText aRowLbl; + NumericField aRowEdit; + + CheckBox aHeaderCB; + CheckBox aRepeatHeaderCB; + CheckBox aDontSplitCB; + CheckBox aBorderCB; + GroupBox aOptionsGB; + + GroupBox aFrm; + OKButton aOkBtn; + CancelButton aCancelBtn; + HelpButton aHelpBtn; + PushButton aAutoFmtBtn; + + SwWrtShell* pShell; + SwTableAutoFmt* pTAutoFmt; + + DECL_LINK( ModifyName, Edit * ); + DECL_LINK( ModifyRowCol, NumericField * ); + DECL_LINK( AutoFmtHdl, PushButton* ); + DECL_LINK( CheckBoxHdl, CheckBox *pCB = 0 ); + +public: + SwInsTableDlg( SwView& rView ); + ~SwInsTableDlg(); + + void GetValues( String& rName, USHORT& rRow, USHORT& rCol, + USHORT& rInsTblFlags, + SwTableAutoFmt *& prTAFmt ); +}; + +#endif diff --git a/sw/source/ui/inc/itemdef.hxx b/sw/source/ui/inc/itemdef.hxx new file mode 100644 index 000000000000..f655af266ad2 --- /dev/null +++ b/sw/source/ui/inc/itemdef.hxx @@ -0,0 +1,73 @@ +/************************************************************************* + * + * $RCSfile: itemdef.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef ITEMDEF_HXX +#define ITEMDEF_HXX + + +#ifndef _SFXMSG_HXX //autogen +#include <sfx2/msg.hxx> +#endif + +SFX_DECL_TYPE(10); //SwElemItem +SFX_DECL_TYPE(13); //SwAddPrinterItem +SFX_DECL_TYPE(16); //SwDocDisplayItem + +#endif diff --git a/sw/source/ui/inc/javaedit.hxx b/sw/source/ui/inc/javaedit.hxx new file mode 100644 index 000000000000..5afac53b79ca --- /dev/null +++ b/sw/source/ui/inc/javaedit.hxx @@ -0,0 +1,144 @@ +/************************************************************************* + * + * $RCSfile: javaedit.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SW_JAVAEDIT_HXX +#define _SW_JAVAEDIT_HXX + +// include --------------------------------------------------------------- + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef VCL +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif +#else +#ifndef _SV_SVMEDIT_HXX //autogen +#include <svtools/svmedit.hxx> +#endif +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _IMAGEBTN_HXX //autogen +#include <vcl/imagebtn.hxx> +#endif + +class SwWrtShell; +class SwFldMgr; +class SwScriptField; + +// class SwJavaEditDialog ------------------------------------------------- + +class SwJavaEditDialog : public SvxStandardDialog +{ +public: + SwJavaEditDialog(Window* pParent, SwWrtShell* pWrtSh); + ~SwJavaEditDialog(); + +private: + FixedText aTypeFT; + Edit aTypeED; + RadioButton aUrlRB; + RadioButton aEditRB; + PushButton aUrlPB; + Edit aUrlED; + MultiLineEdit aEditED; + GroupBox aPostItGB; + + OKButton aOKBtn; + CancelButton aCancelBtn; + ImageButton aPrevBtn; + ImageButton aNextBtn; + HelpButton aHelpBtn; + + BOOL bNew; + + SwScriptField* pFld; + SwFldMgr* pMgr; + SwWrtShell* pSh; + + DECL_LINK( OKHdl, Button* ); + DECL_LINK( PrevHdl, Button* ); + DECL_LINK( NextHdl, Button* ); + DECL_LINK( RadioButtonHdl, RadioButton* pBtn ); + DECL_LINK( InsertFileHdl, PushButton * ); + + virtual void Apply(); + + void CheckTravel(); + void SetFld(); +}; + + +#endif + diff --git a/sw/source/ui/inc/label.hxx b/sw/source/ui/inc/label.hxx new file mode 100644 index 000000000000..8660d82e6ae1 --- /dev/null +++ b/sw/source/ui/inc/label.hxx @@ -0,0 +1,136 @@ +/************************************************************************* + * + * $RCSfile: label.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _LABEL_HXX +#define _LABEL_HXX + +#ifndef _SVSTDARR_HXX +#define _SVSTDARR_STRINGSDTOR +#define _SVSTDARR_USHORTS +#include <svtools/svstdarr.hxx> +#endif + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif +#ifndef _COM_SUN_STAR_FRAME_XMODEL_HPP_ +#include <com/sun/star/frame/XModel.hpp> +#endif + +class SwLabRec; +class SwLabRecs; +class SwLabItem; +class SwLabPrtPage; +class SwNewDBMgr; +class Printer; + +class SwLabDlg : public SfxTabDialog +{ + SwNewDBMgr* pNewDBMgr; + SwLabPrtPage* pPrtPage; + + SvUShorts aTypeIds; + SvStringsDtor aMakes; + + SwLabRecs* pRecs; + String aLstGroup; + String sBusinessCardDlg; + String sFormat; + String sMedium; + BOOL m_bLabel; + void _ReplaceGroup( const String &rMake, SwLabItem *pItem ); + + virtual void PageCreated( USHORT nId, SfxTabPage &rPage ); +public: + + SwLabDlg( Window* pParent, const SfxItemSet& rSet, + SwNewDBMgr* pNewDBMgr, BOOL bLabel); + ~SwLabDlg(); + + void MakeConfigItem(SwLabItem& rItem) const; + + SwLabRec* GetRecord(const String &rRecName, BOOL bCont); + void GetLabItem(SwLabItem &rItem); + + SwLabRecs &Recs() { return *pRecs; } + const SwLabRecs &Recs() const { return *pRecs; } + + SvUShorts &TypeIds() { return aTypeIds; } + const SvUShorts &TypeIds() const { return aTypeIds; } + + SvStringsDtor &Makes() { return aMakes; } + const SvStringsDtor &Makes() const { return aMakes; } + + Printer *GetPrt(); + inline void ReplaceGroup( const String &rMake, SwLabItem *pItem ); + static void UpdateFieldInformation(::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel>& xModel, + const SwLabItem& rItem); + const String& GetBusinessCardStr() const {return sBusinessCardDlg;} + +}; + +inline void SwLabDlg::ReplaceGroup( const String &rMake, SwLabItem *pItem ) +{ + if ( rMake != aLstGroup ) + _ReplaceGroup( rMake, pItem ); +} + +#endif + diff --git a/sw/source/ui/inc/labimg.hxx b/sw/source/ui/inc/labimg.hxx new file mode 100644 index 000000000000..432d5d2e343c --- /dev/null +++ b/sw/source/ui/inc/labimg.hxx @@ -0,0 +1,176 @@ +/************************************************************************* + * + * $RCSfile: labimg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _LABIMG_HXX +#define _LABIMG_HXX + +#ifndef _SFXPOOLITEM_HXX //autogen +#include <svtools/poolitem.hxx> +#endif + +#ifndef _SFXCFGITEM_HXX //autogen +#include <sfx2/cfgitem.hxx> +#endif + +#ifndef _STRING_HXX //autogen +#include <tools/string.hxx> +#endif + +// class SwLabItem ---------------------------------------------------------- + +class SwLabItem : public SfxPoolItem +{ +public: + + SwLabItem(); + SwLabItem(const SwLabItem& rItem); + + SwLabItem& operator =(const SwLabItem& rItem); + + virtual int operator ==(const SfxPoolItem& rItem) const; + + virtual SfxPoolItem* Clone(SfxItemPool* = 0) const; + + int Load (SvStream& rStrm, USHORT nVersion, BOOL bLabel); + BOOL Store(SvStream& rStrm, BOOL bLabel); + + String aLstMake; //Letzte Auswahl merken. + String aLstType; + String sDBName; // Verwendete Datenbank + + String aWriting; // Aufschrift + String aMake; // Etikettenmarke + String aType; // Etikettentyp + String aBin; // Druckerschacht + long lHDist; // Horizontaler Abstand (Benutzer) + long lVDist; // Vertikaler Abstand (Benutzer) + long lWidth; // Breite (Benutzer) + long lHeight; // Hoehe (Benutzer) + long lLeft; // Rand links (Benutzer) + long lUpper; // Rand oben (Benutzer) + USHORT nCols; // Anzahl Spalten (Benutzer) + USHORT nRows; // Anzahl Zeilen (Benutzer) + USHORT nCol; // Spalte fuer Einzeldruck + USHORT nRow; // Zeile fuer Einzeldruck + BOOL bAddr :1;// Adresse als Aufschrift? + BOOL bCont :1;// Endlospapier? + BOOL bPage :1;// Ganze Seite oder einzelnes Etikett? + BOOL bSynchron:1;// Alle Etiketten synchronisieren + + //parts of the business card + String aPrivFirstName; + String aPrivName; + String aPrivShortCut; + String aPrivFirstName2; + String aPrivName2; + String aPrivShortCut2; + String aPrivStreet; + String aPrivZip; + String aPrivCity; + String aPrivCountry; + String aPrivState; + String aPrivTitle; + String aPrivProfession; + String aPrivPhone; + String aPrivMobile; + String aPrivFax; + String aPrivWWW; + String aPrivMail; + String aCompCompany; + String aCompCompanyExt; + String aCompSlogan; + String aCompStreet; + String aCompZip; + String aCompCity; + String aCompCountry; + String aCompState; + String aCompPosition; + String aCompPhone; + String aCompMobile; + String aCompFax; + String aCompWWW; + String aCompMail; + + String sGlossaryGroup; + String sGlossaryBlockName; +}; + +// class SwLabCfgItem ------------------------------------------------------- + +class SwLabCfgItem : public SfxConfigItem +{ + SwLabItem aLabItem; + SwLabItem aBusinessItem; +protected: + virtual int Load (SvStream& rStrm); + virtual BOOL Store(SvStream& rStrm); + virtual void UseDefault(); + +public: + SwLabCfgItem(); + + SwLabItem& GetLabItem() {return aLabItem;} + SwLabItem& GetBusinessItem() {return aBusinessItem;} + virtual String GetName() const; +}; + +#endif + diff --git a/sw/source/ui/inc/linenum.hxx b/sw/source/ui/inc/linenum.hxx new file mode 100644 index 000000000000..8e7a40897d41 --- /dev/null +++ b/sw/source/ui/inc/linenum.hxx @@ -0,0 +1,158 @@ +/************************************************************************* + * + * $RCSfile: linenum.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWLINENUM_HXX +#define _SWLINENUM_HXX + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +#ifndef _SV_FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _SV_FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +class Window; +class SfxItemSet; +class SwView; +class SwWrtShell; + +/*-------------------------------------------------------------------- + Beschreibung: SingleTabDialog + --------------------------------------------------------------------*/ + +class SwLineNumberingDlg : public SfxSingleTabDialog +{ + SwWrtShell* pSh; + + DECL_LINK( OKHdl, Button * ); + +public: + inline SwWrtShell* GetWrtShell() const { return pSh; } + + SwLineNumberingDlg(SwView *pVw); + ~SwLineNumberingDlg(); +}; + +/*-------------------------------------------------------------------- + Beschreibung: TabPage + --------------------------------------------------------------------*/ + +class SwLineNumberingPage : public SfxTabPage +{ + CheckBox aNumberingOnCB; + FixedText aCharStyleFT; + ListBox aCharStyleLB; + FixedText aFormatFT; + ListBox aFormatLB; + FixedText aPosFT; + ListBox aPosLB; + FixedText aOffsetFT; + MetricField aOffsetMF; + FixedText aNumIntervalFT; + NumericField aNumIntervalNF; + FixedText aNumRowsFT; + GroupBox aDisplayGB; + FixedText aDivisorFT; + Edit aDivisorED; + FixedText aDivIntervalFT; + NumericField aDivIntervalNF; + FixedText aDivRowsFT; + GroupBox aDivisorGB; + CheckBox aCountEmptyLinesCB; + CheckBox aCountFrameLinesCB; + CheckBox aRestartEachPageCB; + GroupBox aCountGB; + + SwWrtShell* pSh; + + SwLineNumberingPage( Window* pParent, const SfxItemSet& rSet ); + ~SwLineNumberingPage(); + + DECL_LINK( LineOnOffHdl, CheckBox *pCB = 0 ); + DECL_LINK( ModifyHdl, Edit *pED = 0 ); + +public: + + static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); + + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); +}; + +#endif + + diff --git a/sw/source/ui/inc/listsh.hxx b/sw/source/ui/inc/listsh.hxx new file mode 100644 index 000000000000..a963517bb0dd --- /dev/null +++ b/sw/source/ui/inc/listsh.hxx @@ -0,0 +1,78 @@ +/************************************************************************* + * + * $RCSfile: listsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWLISTSH_HXX +#define _SWLISTSH_HXX + +#include "basesh.hxx" + +class SwListShell: public SwBaseShell +{ +public: + SFX_DECL_INTERFACE(SW_LISTSHELL); + TYPEINFO(); + + SwListShell(SwView &rView); + + void Execute(SfxRequest &); + void GetState(SfxItemSet &); +}; + +#endif diff --git a/sw/source/ui/inc/macassgn.hxx b/sw/source/ui/inc/macassgn.hxx new file mode 100644 index 000000000000..dc147435e931 --- /dev/null +++ b/sw/source/ui/inc/macassgn.hxx @@ -0,0 +1,96 @@ +/************************************************************************* + * + * $RCSfile: macassgn.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _MACASSGN_HXX +#define _MACASSGN_HXX + +#ifndef _MACROPG_HXX //autogen +#include <sfx2/macropg.hxx> +#endif + +class SwWrtShell; +class SvxMacroItem; + +enum DlgEventType +{ + MACASSGN_TEXTBAUST, + MACASSGN_GRAPHIC, + MACASSGN_OLE, + MACASSGN_FRMURL, + MACASSGN_INETFMT, + MACASSGN_ALLFRM +}; + +class SwMacroAssignDlg : public SfxMacroAssignDlg +{ +public: + SwMacroAssignDlg( Window* pParent, SfxItemSet& rSet, DlgEventType eType ); + virtual ~SwMacroAssignDlg(); + + static void AddEvents( SfxSmallMacroTabPage& rPg, DlgEventType eType ); + static BOOL INetFmtDlg( Window* pParent, SwWrtShell& rSh, + SvxMacroItem*& rpINetItem ); +}; + + + + +#endif + diff --git a/sw/source/ui/inc/mailmrge.hxx b/sw/source/ui/inc/mailmrge.hxx new file mode 100644 index 000000000000..1b6271e89a6b --- /dev/null +++ b/sw/source/ui/inc/mailmrge.hxx @@ -0,0 +1,178 @@ +/************************************************************************* + * + * $RCSfile: mailmrge.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _MAILMRGE_HXX +#define _MAILMRGE_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +class SwWrtShell; +class SbaObject; +class SbaSelectionListRef; +class SwModuleOptions; + +class SwMailMergeDlg : public SvxStandardDialog +{ + RadioButton aAllRB; + RadioButton aMarkedRB; + RadioButton aFromRB; + NumericField aFromNF; + FixedText aBisFT; + NumericField aToNF; + GroupBox aRecordGB; + + RadioButton aPrinterRB; + RadioButton aMailingRB; + RadioButton aFileRB; + + CheckBox aSingleJobsCB; + + FixedText aPathFT; + Edit aPathED; + PushButton aPathPB; + FixedText aFilenameFT; + RadioButton aColumnRB; + RadioButton aFilenameRB; + ListBox aColumnLB; + Edit aFilenameED; + + FixedText aAddressFT; + ListBox aAddressFldLB; + FixedText aSubjectFT; + Edit aSubjectED; + FixedText aFormatFT; + FixedText aAttachFT; + Edit aAttachED; + PushButton aAttachPB; + CheckBox aFormatHtmlCB; + CheckBox aFormatRtfCB; + CheckBox aFormatSwCB; + GroupBox aDestGB; + + OKButton aOkBTN; + CancelButton aCancelBTN; + HelpButton aHelpBTN; + + SwWrtShell* pSh; +#ifdef REPLACE_OFADBMGR +#else + SbaObject* pSbaObject; +#endif + SwModuleOptions* pModOpt; + const String& rDBName; +#ifdef REPLACE_OFADBMGR + const String& rTableName; +#endif + const String& rStatement; + SbaSelectionListRef& rSelectionList; + + USHORT nMergeType; + + DECL_LINK( ButtonHdl, Button* pBtn ); + DECL_LINK( InsertPathHdl, PushButton * ); + DECL_LINK( AttachFileHdl, PushButton * ); + DECL_LINK( RadioButtonHdl, RadioButton* pBtn ); + DECL_LINK( FilenameHdl, RadioButton* pBtn ); + DECL_LINK( ModifyHdl, NumericField* pLB ); + + virtual void Apply(); + void ExecQryShell(BOOL bVisible); + +public: + + SwMailMergeDlg(Window* pParent, SwWrtShell* pSh, + const String& rName, +#ifdef REPLACE_OFADBMGR + const String& rTblName, +#endif + const String& rStat, SbaSelectionListRef& pSelList); + ~SwMailMergeDlg(); + + inline USHORT GetMergeType() { return nMergeType; } +}; + +#endif + diff --git a/sw/source/ui/inc/makefile.mk b/sw/source/ui/inc/makefile.mk new file mode 100644 index 000000000000..221888abb0c6 --- /dev/null +++ b/sw/source/ui/inc/makefile.mk @@ -0,0 +1,61 @@ +#************************************************************************* +# +# $RCSfile: makefile.mk,v $ +# +# $Revision: 1.1.1.1 $ +# +# last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ +# +# The Contents of this file are made available subject to the terms of +# either of the following licenses +# +# - GNU Lesser General Public License Version 2.1 +# - Sun Industry Standards Source License Version 1.1 +# +# Sun Microsystems Inc., October, 2000 +# +# GNU Lesser General Public License Version 2.1 +# ============================================= +# Copyright 2000 by Sun Microsystems, Inc. +# 901 San Antonio Road, Palo Alto, CA 94303, USA +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License version 2.1, as published by the Free Software Foundation. +# +# This library 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 for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# +# +# Sun Industry Standards Source License Version 1.1 +# ================================================= +# The contents of this file are subject to the Sun Industry Standards +# Source License Version 1.1 (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.openoffice.org/license.html. +# +# Software provided under this License is provided on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, +# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, +# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. +# See the License for the specific provisions governing your rights and +# obligations concerning the Software. +# +# The Initial Developer of the Original Code is: Sun Microsystems, Inc. +# +# Copyright: 2000 by Sun Microsystems, Inc. +# +# All Rights Reserved. +# +# Contributor(s): _______________________________________ +# +# +# +#************************************************************************* diff --git a/sw/source/ui/inc/mergetbl.hxx b/sw/source/ui/inc/mergetbl.hxx new file mode 100644 index 000000000000..ef8481755b06 --- /dev/null +++ b/sw/source/ui/inc/mergetbl.hxx @@ -0,0 +1,94 @@ +/************************************************************************* + * + * $RCSfile: mergetbl.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _MERGETBL_HXX +#define _MERGETBL_HXX + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + + +class SwMergeTblDlg : public SvxStandardDialog +{ + OKButton aOKPB; + CancelButton aCancelPB; + HelpButton aHelpPB; + GroupBox aMergeGB; + RadioButton aMergePrevRB; + RadioButton aMergeNextRB; + + BOOL& rMergePrev; +protected: + virtual void Apply(); + +public: + SwMergeTblDlg( Window *pParent, BOOL& rWithPrev ); +}; + +#endif + + diff --git a/sw/source/ui/inc/misc.hrc b/sw/source/ui/inc/misc.hrc new file mode 100644 index 000000000000..657d6f3e2777 --- /dev/null +++ b/sw/source/ui/inc/misc.hrc @@ -0,0 +1,142 @@ +/************************************************************************* + * + * $RCSfile: misc.hrc,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _MISC_HRC +#define _MISC_HRC + +#include "rcid.hrc" + +#define DLG_QUERY_DELETE (RC_MISC_BEGIN + 2) + +#define DLG_MASTERDOC_PAGE (RC_MISC_BEGIN + 3) +#define DLG_QUERY_ADD (RC_MISC_BEGIN + 4) + +#define STR_GLOSSARY_BIB_DLG (RC_MISC_BEGIN + 5) +#define STR_DOCUMENT_BIB_DLG (RC_MISC_BEGIN + 6) + +#define WIN_GLOBAL_DOC (RC_MISC_BEGIN + 7) +#define DLG_GLOBAL_DOC_OPTION (RC_MISC_BEGIN + 8) +#define DLG_NUMBERING (RC_MISC_BEGIN + 9) +#define DLG_ZOOM (RC_MISC_BEGIN + 10) +#define DLG_GLOSSARY (RC_MISC_BEGIN + 11) +#define DLG_INS_FOOTNOTE (RC_MISC_BEGIN + 12) +#define DLG_DOC_FOOTNOTE (RC_MISC_BEGIN + 13) +#define DLG_PG_FOOTNOTE (RC_MISC_BEGIN + 14) +#define DLG_NUMBERING_OUTLINE (RC_MISC_BEGIN + 15) +#define DLG_BIB_BASE (RC_MISC_BEGIN + 16) +#define DLG_INSERT_BOOKMARK (RC_MISC_BEGIN + 17) +#define DLG_NUM_NAMES (RC_MISC_BEGIN + 18) +#define DLG_SORTING (RC_MISC_BEGIN + 19) +#define DLG_CHARMAP (RC_MISC_BEGIN + 20) +#define DLG_AUTOCORR (RC_MISC_BEGIN + 23) +#define DLG_AUTOFMT_OPT (RC_MISC_BEGIN + 24) +#define DLG_RENAME_GLOS (RC_MISC_BEGIN + 25) +#define DLG_AUTOFMT_TAB (RC_MISC_BEGIN + 26) +#define DLG_PRCNT_SET (RC_MISC_BEGIN + 27) +#define DLG_INSERT_RULER (RC_MISC_BEGIN + 28) +#define DLG_REDLINE_ACCEPT (RC_MISC_BEGIN + 29) +#define DLG_SEL_TEMPLATE (RC_MISC_BEGIN + 30) +#define DLG_TAB_OUTLINE (RC_MISC_BEGIN + 31) +#define DLG_MOD_REDLINE_ACCEPT (RC_MISC_BEGIN + 32) + + +#define MSG_DOUBLE_SHORTNAME (RC_MISC_BEGIN + 30) +#define MSG_QUERY_DELETE (RC_MISC_BEGIN + 31) +#define STR_QUERY_DELETE_GROUP1 (RC_MISC_BEGIN + 32) +#define STR_QUERY_DELETE_GROUP2 (RC_MISC_BEGIN + 33) +#define MSG_NO_GLOSSARIES (RC_MISC_BEGIN + 34) + +#define BMP_ROOT_CLOSED (RC_MISC_BEGIN + 35) +#define BMP_ROOT_OPENED (RC_MISC_BEGIN + 36) + +#define MSG_BLOCK_CREATE_ERR (RC_MISC_BEGIN + 40) +#define MSG_BLOCK_DELETE_ERR (RC_MISC_BEGIN + 41) +#define MSG_SRTERR (RC_MISC_BEGIN + 42) + +#define STR_GLOSSARY (RC_MISC_BEGIN + 43) +#define STR_CHANGE_START (RC_MISC_BEGIN + 44) +#define STR_CHANGE_END (RC_MISC_BEGIN + 45) +#define STR_SAVE_GLOSSARY (RC_MISC_BEGIN + 46) + +#define STR_FULLNUMS_START (RC_MISC_BEGIN + 47) +#define STR_FULLNUMS_1 (STR_FULLNUMS_START ) +#define STR_FULLNUMS_2 (STR_FULLNUMS_START + 1) +#define STR_FULLNUMS_3 (STR_FULLNUMS_START + 2) +#define STR_FULLNUMS_4 (STR_FULLNUMS_START + 3) +#define STR_FULLNUMS_5 (STR_FULLNUMS_START + 4) +#define STR_FULLNUMS_6 (STR_FULLNUMS_START + 5) +#define STR_FULLNUMS_7 (STR_FULLNUMS_START + 6) +#define STR_FULLNUMS_8 (STR_FULLNUMS_START + 7) + +#define STR_BULLET_THEME (RC_MISC_BEGIN + 55) +#define MSG_NO_BULLETS (RC_MISC_BEGIN + 56) + +#define STR_NUMRULE_UNKNOWN (RC_MISC_BEGIN + 60) +#define MN_REDLINE_POPUP (RC_MISC_BEGIN + 61) +#define STR_REMOVE_WARNING (RC_MISC_BEGIN + 62) + +#define MISC_ACT_END STR_REMOVE_WARNING + +#if MISC_ACT_END > RC_MISC_END +#error Resource-Id Ueberlauf in #file, #line +#endif + +#endif // _MISC_HRC diff --git a/sw/source/ui/inc/multmrk.hxx b/sw/source/ui/inc/multmrk.hxx new file mode 100644 index 000000000000..917c3d05b4c0 --- /dev/null +++ b/sw/source/ui/inc/multmrk.hxx @@ -0,0 +1,119 @@ +/************************************************************************* + * + * $RCSfile: multmrk.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _MULTMRK_HXX +#define _MULTMRK_HXX + + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _STDCTRL_HXX //autogen +#include <svtools/stdctrl.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +class SwTOXMgr; + +/*-------------------------------------------------------------------- + Beschreibung: Markierung fuer Verzeichniseintrag einfuegen + --------------------------------------------------------------------*/ + +class SwMultiTOXMarkDlg : public SvxStandardDialog +{ + DECL_LINK( SelectHdl, ListBox * ); + + FixedText aEntryFT; + FixedInfo aTextFT; + FixedText aTOXFT; + ListBox aTOXLB; + GroupBox aTOXGB; + OKButton aOkBT; + CancelButton aCancelBT; + + SwTOXMgr &rMgr; + USHORT nPos; + + void Apply(); +public: + SwMultiTOXMarkDlg( Window* pParent, SwTOXMgr &rTOXMgr ); + ~SwMultiTOXMarkDlg(); +}; + + +#endif // _MULTMRK_HXX + diff --git a/sw/source/ui/inc/navicfg.hxx b/sw/source/ui/inc/navicfg.hxx new file mode 100644 index 000000000000..50ff2183c6d8 --- /dev/null +++ b/sw/source/ui/inc/navicfg.hxx @@ -0,0 +1,154 @@ +/************************************************************************* + * + * $RCSfile: navicfg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _NAVICFG_HXX +#define _NAVICFG_HXX + +#ifndef _UTL_CONFIGITEM_HXX_ +#include <unotools/configitem.hxx> +#endif +/* -----------------------------08.09.00 16:27-------------------------------- + + ---------------------------------------------------------------------------*/ +class SwNavigationConfig : public utl::ConfigItem +{ + sal_Int32 nRootType; //RootType + sal_Int32 nSelectedPos; //SelectedPosition + sal_Int32 nOutlineLevel; //OutlineLevel + sal_Int32 nRegionMode; //InsertMode + sal_Int32 nActiveBlock; //ActiveBlock//Expand/CollapsState + sal_Bool bIsSmall; //ShowListBox + sal_Bool bIsGlobalActive; //GlobalDocMode// Globalansicht fuer GlobalDoc gueltig? + + com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); + +public: + SwNavigationConfig(); + ~SwNavigationConfig(); + + virtual void Commit(); + + sal_Int32 GetRootType()const {return nRootType;} + void SetRootType(sal_Int32 nSet){ + if(nRootType != nSet) + { + SetModified(); + nRootType = nSet; + } + } + + sal_Int32 GetSelectedPos()const {return nSelectedPos;} + void SetSelectedPos(sal_Int32 nSet){ + if(nSelectedPos != nSet) + { + SetModified(); + nSelectedPos = nSet; + } + } + + + sal_Int32 GetOutlineLevel()const {return nOutlineLevel;} + void SetOutlineLevel(sal_Int32 nSet){ + if(nOutlineLevel != nSet) + { + SetModified(); + nOutlineLevel = nSet; + } + } + + sal_Int32 GetRegionMode()const {return nRegionMode;} + void SetRegionMode(sal_Int32 nSet){ + if(nRegionMode != nSet) + { + SetModified(); + nRegionMode = nSet; + } + } + + + sal_Int32 GetActiveBlock()const {return nActiveBlock;} + void SetActiveBlock(sal_Int32 nSet){ + if(nActiveBlock != nSet) + { + SetModified(); + nActiveBlock = nSet; + } + } + + sal_Bool IsSmall() const {return bIsSmall;} + void SetSmall(sal_Bool bSet){ + if(bIsSmall != bSet) + { + SetModified(); + bIsSmall = bSet; + } + } + + sal_Bool IsGlobalActive() const {return bIsGlobalActive;} + void SetGlobalActive(sal_Bool bSet){ + if(bIsGlobalActive != bSet) + { + SetModified(); + bIsGlobalActive = bSet; + } + } +}; +#endif + diff --git a/sw/source/ui/inc/navicont.hxx b/sw/source/ui/inc/navicont.hxx new file mode 100644 index 000000000000..d273c1e98e38 --- /dev/null +++ b/sw/source/ui/inc/navicont.hxx @@ -0,0 +1,112 @@ +/************************************************************************* + * + * $RCSfile: navicont.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _NAVICONT_HXX +#define _NAVICONT_HXX + + +#ifndef _STRING_HXX //autogen +#include <tools/string.hxx> +#endif +class SwDocShell; +class SotDataObject; + +/*-----------------06.02.97 19.10------------------- + +--------------------------------------------------*/ + + +class NaviContentBookmark + +/* [Beschreibung] + + Navigator-Bookmark zur eindeutigen Identifizierung im Sw + +*/ + +{ + String aUrl; // URL inkl. Sprungmarke + String aDescr; // Description + long nDocSh; // Adresse der DocShell + USHORT nDefDrag; // Description enthaelt defaultDragType + +protected: + +public: + NaviContentBookmark( const String &rUrl, const String& rDesc, + USHORT nDragType, const SwDocShell* ); + NaviContentBookmark(); + + const String& GetURL() const { return aUrl; } + const String& GetDescription() const { return aDescr; } + USHORT GetDefaultDragType() const { return nDefDrag; } + long GetDocShell() const {return(nDocSh);} + + static BOOL DragServerHasFormat( USHORT nItem, const SwDocShell* pDocSh ); + static ULONG HasFormat( SotDataObject& rObj ); + + + BOOL CopyDragServer() const; + BOOL PasteDragServer( USHORT nItem ); + BOOL Paste( SotDataObject& rObj, ULONG nFormat ); +}; + +#endif diff --git a/sw/source/ui/inc/navipi.hxx b/sw/source/ui/inc/navipi.hxx new file mode 100644 index 000000000000..73f500293e91 --- /dev/null +++ b/sw/source/ui/inc/navipi.hxx @@ -0,0 +1,235 @@ +/************************************************************************* + * + * $RCSfile: navipi.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _NAVIPI_HXX +#define _NAVIPI_HXX + +// INCLUDE --------------------------------------------------------------- + +#ifndef _SFXCTRLITEM_HXX //autogen +#include <sfx2/ctrlitem.hxx> +#endif + +#ifndef _SFXLSTNER_HXX //autogen +#include <svtools/lstner.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _SFX_CHILDWIN_HXX //autogen +#include <sfx2/childwin.hxx> +#endif + +#include "conttree.hxx" +#include "popbox.hxx" + +class SwWrtShell; +class SwNavigationPI; +class SwNavigationChild; +class SfxBindings; +class NumEditAction; +class SwView; +class SwNavigationConfig; +class SfxObjectShellLock; +class SfxChildWindowContext; + +//----------------------------------------------------------------------- + +class SwNavHelpToolBox : public SwHelpToolBox +{ + virtual void MouseButtonDown(const MouseEvent &rEvt); + virtual void RequestHelp( const HelpEvent& rHEvt ); + + public: + SwNavHelpToolBox(Window* pParent, const ResId &rResId) : + SwHelpToolBox(pParent, rResId){} +}; + + +// CLASS ----------------------------------------------------------------- +class SwNavigationPI: public Window, + public SfxControllerItem, public SfxListener +{ + friend class SwNavigationChild; + friend class SwContentTree; + friend class SwGlobalTree; + +private: + + SwNavHelpToolBox aContentToolBox; + SwHelpToolBox aGlobalToolBox; + ImageList aContentImageList; + SwContentTree aContentTree; + SwGlobalTree aGlobalTree; + ListBox aDocListBox; + + Timer aPageChgTimer; + + SfxObjectShellLock* pxObjectShell; + SwView* pContentView; + SwWrtShell* pContentWrtShell; + SwView* pActContView; + + SfxChildWindowContext* pContextWin; + + SwNavigationConfig* pConfig; + + String sContentFileName; + String aContextArr[3]; + String aStatusArr[4]; + + Point aBoxBottomLeft; // Pos., wenn Box unten ist + long nDocLBIniHeight; + long nWishWidth; + USHORT nActMark; + USHORT nAutoMarkIdx; + USHORT nRegionMode; // 0 - URL, 1 - Bereich mit Link 2 - B. ohne Link + short nZoomIn; + short nZoomOutInit; + short nZoomOut; + + BOOL bSmallMode : 1; + BOOL bIsZoomedIn : 1; + BOOL bPageCtrlsVisible : 1; + BOOL bGlobalMode : 1; + + SfxBindings &rBindings; + + BOOL _IsZoomedIn() const {return bIsZoomedIn;} + void _ZoomOut(); + void _ZoomIn(); + + void FillBox(); + void MakeMark(); + + DECL_LINK( DocListBoxSelectHdl, ListBox * ); + DECL_LINK( ToolBoxSelectHdl, ToolBox * ); + DECL_LINK( ToolBoxClickHdl, ToolBox * ); + DECL_LINK( EditAction, NumEditAction * ); + DECL_LINK( EditGetFocus, NumEditAction * ); + DECL_LINK( DoneLink, SfxPoolItem * ); + DECL_LINK( MenuSelectHdl, Menu * ); + DECL_LINK( ReadOnlyHdl, void * ); + DECL_LINK( ChangePageHdl, Timer* ); + DECL_LINK( PageEditModifyHdl, Edit* ); + void UsePage(SwWrtShell *); + + void MakeVisible(); + + virtual SfxChildAlignment + CheckAlignment(SfxChildAlignment,SfxChildAlignment); + +protected: + + virtual BOOL Close(); + virtual void Resize(); + + virtual BOOL Drop( const DropEvent& rEvt); + virtual BOOL QueryDrop( DropEvent& rEvt); + + // zum App-Ende rechtzeitig ObjectShellLock loslassen + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + + NumEditAction& GetPageEdit(); + BOOL ToggleTree(); + void SetGlobalMode(BOOL bSet) {bGlobalMode = bSet;} + + +public: + SwNavigationPI(SfxBindings*, SfxChildWindowContext*, Window*); + ~SwNavigationPI(); + + void GotoPage(); // Seite anspringen; bindbare Funktion + + void Update() { FillBox(); } + void UpdateListBox(); + void MoveOutline(USHORT nSource, USHORT nTarget, BOOL bWithCilds); + virtual void StateChanged( USHORT nSID, SfxItemState eState, + const SfxPoolItem* pState ); + + static String CreateDropFileName(USHORT nItem); + static void CleanEntry( String& rEntry ); + + USHORT GetRegionDropMode() const {return nRegionMode;} + void SetRegionDropMode(USHORT nNewMode); + BOOL IsInDrag() const; + + BOOL IsGlobalDoc() const; + BOOL IsGlobalMode() const {return bGlobalMode;} + +}; + +class SwNavigationChild : public SfxChildWindowContext +{ +protected: + virtual BOOL Drop( const DropEvent& rEvt); + virtual BOOL QueryDrop( DropEvent& rEvt); +public: + SwNavigationChild( Window* , + USHORT nId, + SfxBindings*, + SfxChildWinInfo* ); + + SFX_DECL_CHILDWINDOW_CONTEXT( SwNavigationChild ) + +}; +#endif diff --git a/sw/source/ui/inc/num.hxx b/sw/source/ui/inc/num.hxx new file mode 100644 index 000000000000..710b359ebda0 --- /dev/null +++ b/sw/source/ui/inc/num.hxx @@ -0,0 +1,236 @@ +/************************************************************************* + * + * $RCSfile: num.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _NUM_HXX +#define _NUM_HXX + + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif +#ifndef _MENUBTN_HXX //autogen +#include <vcl/menubtn.hxx> +#endif +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif +#ifndef _STDCTRL_HXX //autogen +#include <svtools/stdctrl.hxx> +#endif +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif +#ifndef _NUMPREVW_HXX +#include <numprevw.hxx> +#endif +#ifndef _SVX_NUMPAGES_HXX +#include <svx/numpages.hxx> +#endif +#include "numrule.hxx" +#include "bmpwin.hxx" // BmpWindow + +class SwWrtShell; +class SwDocShell; +class SwUiNumRules; +class SwCharFmt; +class SvxBrushItem; +class SwOutlineTabDialog; + + +/*-----------------13.02.97 14.02------------------- + +--------------------------------------------------*/ + +struct SwBmpItemInfo +{ + SvxBrushItem* pBrushItem; + USHORT nItemId; +}; + + +/*-----------------07.02.97 15.37------------------- + +--------------------------------------------------*/ +#define NUM_PAGETYPE_BULLET 0 +#define NUM_PAGETYPE_SINGLENUM 1 +#define NUM_PAGETYPE_NUM 2 +#define NUM_PAGETYPE_BMP 3 +#define PAGETYPE_USER_START 10 + + + +/*-----------------08.02.97 10.48------------------- + struct aktuelle Numerierung, wird in einem PointerItem + uebertragen und von allen Tabpages geshared +--------------------------------------------------*/ + +class SwNumValueSet; +class ValueSet; +class SwBmpNumValueSet; + + +/*-----------------03.12.97 10:18------------------- + +--------------------------------------------------*/ +class SwNumPositionTabPage : public SfxTabPage +{ + GroupBox aLevelGB; + MultiListBox aLevelLB; + + GroupBox aPositionGB; + FixedText aAlignFT; + ListBox aAlignLB; + FixedText aDistBorderFT; + CheckBox aRelativeCB; + MetricField aDistBorderMF; + FixedText aIndentFT; + MetricField aIndentMF; + FixedText aDistNumFT; + MetricField aDistNumMF; + PushButton aStandardPB; + + GroupBox aPreviewGB; + NumberingPreview aPreviewWIN; + + SwNumRule* pActNum; + SwNumRule* pSaveNum; + SwWrtShell* pWrtSh; + + SwOutlineTabDialog* pOutlineDlg; + USHORT nActNumLvl; + + BOOL bModified : 1; + BOOL bHasChild : 1; + BOOL bPreset : 1; + BOOL bInInintControl : 1; //Modify-Fehler umgehen, soll ab 391 behoben sein + +// void SetMinDist(); + void InitControls(); + + DECL_LINK( LevelHdl, ListBox * ); + DECL_LINK( EditModifyHdl, Edit*); + DECL_LINK( DistanceHdl, MetricField * ); + DECL_LINK( RelativeHdl, CheckBox * ); + DECL_LINK( StandardHdl, PushButton * ); + + public: + SwNumPositionTabPage(Window* pParent, + const SfxItemSet& rSet); + ~SwNumPositionTabPage(); + + virtual void ActivatePage(const SfxItemSet& rSet); + virtual int DeactivatePage(SfxItemSet *pSet); + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); + + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet); + + void SetOutlineTabDialog(SwOutlineTabDialog* pDlg){pOutlineDlg = pDlg;} + void SetWrtShell(SwWrtShell* pSh); +#ifdef DEBUG + void SetModified(BOOL bRepaint = TRUE); +#else + void SetModified(BOOL bRepaint = TRUE) + {bModified = TRUE; + if(bRepaint) + { + aPreviewWIN.SetLevel(nActNumLvl); + aPreviewWIN.Invalidate(); + } + } +#endif +}; + +class SwSvxNumBulletTabDialog : public SfxTabDialog +{ + SwWrtShell& rWrtSh; + + String sRemoveText; + int nRetOptionsDialog; + + protected: + virtual short Ok(); + virtual void PageCreated(USHORT nPageId, SfxTabPage& rPage); + DECL_LINK(RemoveNumberingHdl, PushButton*); + public: + SwSvxNumBulletTabDialog(Window* pParent, + const SfxItemSet* pSwItemSet, + SwWrtShell &); + ~SwSvxNumBulletTabDialog(); +}; +#endif // _NUM_CXX + diff --git a/sw/source/ui/inc/numfmtlb.hxx b/sw/source/ui/inc/numfmtlb.hxx new file mode 100644 index 000000000000..2a050a9e1957 --- /dev/null +++ b/sw/source/ui/inc/numfmtlb.hxx @@ -0,0 +1,116 @@ +/************************************************************************* + * + * $RCSfile: numfmtlb.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWNUMFMTLB_HXX +#define _SWNUMFMTLB_HXX + +#ifndef _SV_LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _ZFORLIST_HXX //autogen +#include <svtools/zforlist.hxx> +#endif + +class SwView; + +class NumFormatListBox : public ListBox +{ + short nCurrFormatType; + USHORT nStdEntry; + BOOL bOneArea; + ULONG nDefFormat; + SwView* pVw; + SvNumberFormatter* pOwnFormatter; + LanguageType eCurLanguage; + + DECL_LINK( SelectHdl, ListBox * ); + + double GetDefValue(SvNumberFormatter* pFormatter, const short nFormatType) const; + void Init(short nFormatType, BOOL bUsrFmts); + SwView* GetView(); + +public: + NumFormatListBox( Window* pWin, const ResId& rResId, + short nFormatType = NUMBERFORMAT_NUMBER, ULONG nDefFmt = 0, + BOOL bUsrFmts = TRUE ); + + NumFormatListBox( Window* pWin, SwView* pView, const ResId& rResId, + short nFormatType = NUMBERFORMAT_NUMBER, ULONG nDefFmt = 0, + BOOL bUsrFmts = TRUE ); + + ~NumFormatListBox(); + + void Clear(); + + inline void SetOneArea(BOOL bOnlyOne = TRUE) { bOneArea = bOnlyOne; } + + void SetFormatType(const short nFormatType); + inline short GetFormatType() const { return nCurrFormatType; } + void SetDefFormat(const ULONG nDefFmt); + ULONG GetFormat() const; + const String& GetFormatStr() const; + + inline LanguageType GetCurLanguage() const { return eCurLanguage;} +}; + + +#endif + diff --git a/sw/source/ui/inc/numpara.hxx b/sw/source/ui/inc/numpara.hxx new file mode 100644 index 000000000000..21229ecdd084 --- /dev/null +++ b/sw/source/ui/inc/numpara.hxx @@ -0,0 +1,134 @@ +/************************************************************************* + * + * $RCSfile: numpara.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _NUMPARA_HXX +#define _NUMPARA_HXX + + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif +#ifndef _SV_GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif +#ifndef _SV_LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif +#ifndef _SV_FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif +#ifndef _SV_FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif +#ifndef _SV_BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + + +/* --- class SwParagraphNumTabPage ---------------------------------------- + Mit dieser TabPage werden Numerierungseinstellungen am Absatz bzw. der + Absatzvorlage vorgenommen. + + ---------------------------------------------------------------------------*/ +class SwParagraphNumTabPage : public SfxTabPage +{ + GroupBox aNumberStyleGB; + ListBox aNumberStyleLB; + + GroupBox aNewStartGB; + TriStateBox aNewStartCB; + FixedText aNewStartFT; + NumericField aNewStartNF; + + GroupBox aCountParaGB; + TriStateBox aCountParaCB; + TriStateBox aRestartParaCountCB; + FixedText aRestartFT; + NumericField aRestartNF; + + BOOL bModified : 1; + BOOL bCurNumrule : 1; + + DECL_LINK( NewStartHdl_Impl, CheckBox* ); + DECL_LINK( StyleHdl_Impl, ListBox* ); + DECL_LINK( LineCountHdl_Impl, CheckBox* ); + +protected: + SwParagraphNumTabPage(Window* pParent, const SfxItemSet& rSet ); + +public: + ~SwParagraphNumTabPage(); + + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rSet ); + static USHORT* GetRanges(); + + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); + + void EnableNewStart(); + + ListBox& GetStyleBox() {return aNumberStyleLB;}; + +}; + + +#endif + diff --git a/sw/source/ui/inc/numprevw.hxx b/sw/source/ui/inc/numprevw.hxx new file mode 100644 index 000000000000..729d85402745 --- /dev/null +++ b/sw/source/ui/inc/numprevw.hxx @@ -0,0 +1,107 @@ +/************************************************************************* + * + * $RCSfile: numprevw.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _NUMPREVW_HXX +#define _NUMPREVW_HXX + + +#ifndef _SV_WINDOW_HXX //autogen +#include <vcl/window.hxx> +#endif + +class SwNumRule; +/*-----------------02.12.97 10:31------------------- + +--------------------------------------------------*/ + +class NumberingPreview : public Window +{ + const SwNumRule* pActNum; + Font aStdFont; + long nPageWidth; + const String* pOutlineNames; + BOOL bPosition; + UINT16 nActLevel; + + protected: + virtual void Paint( const Rectangle& rRect ); + + public: + NumberingPreview(Window* pParent, const ResId& rResId ) : + Window(pParent, rResId), + pActNum(0),nPageWidth(0), pOutlineNames(0), bPosition(FALSE), nActLevel(USHRT_MAX) {} + ~NumberingPreview(); + + void SetNumRule(const SwNumRule* pNum) + {pActNum = pNum; Invalidate();}; + void SetPageWidth(long nPgWidth) + {nPageWidth = nPgWidth;} + void SetOutlineNames(const String* pNames) + {pOutlineNames = pNames;} + void SetPositionMode() + { bPosition = TRUE;} + void SetLevel(USHORT nSet) {nActLevel = nSet;} + +}; + +#endif + + diff --git a/sw/source/ui/inc/olesh.hxx b/sw/source/ui/inc/olesh.hxx new file mode 100644 index 000000000000..2f1742dcb8ba --- /dev/null +++ b/sw/source/ui/inc/olesh.hxx @@ -0,0 +1,82 @@ +/************************************************************************* + * + * $RCSfile: olesh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWOLESH_HXX +#define _SWOLESH_HXX + +#include "frmsh.hxx" + +class SwOleShell: public SwFrameShell +{ +public: + SFX_DECL_INTERFACE(SW_OLESHELL); + + SwOleShell(SwView &rView); + +}; + +#endif + + + + + + + diff --git a/sw/source/ui/inc/olmenu.hxx b/sw/source/ui/inc/olmenu.hxx new file mode 100644 index 000000000000..5c5f66d4dfc0 --- /dev/null +++ b/sw/source/ui/inc/olmenu.hxx @@ -0,0 +1,102 @@ +/************************************************************************* + * + * $RCSfile: olmenu.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _OLMENU_HXX +#define _OLMENU_HXX + +#ifndef _COM_SUN_STAR_LINGUISTIC_XDICTIONARY_HPP_ +#include <com/sun/star/linguistic/XDictionary.hpp> +#endif +#ifndef _COM_SUN_STAR_LINGUISTIC_XSPELLALTERNATIVES_HPP_ +#include <com/sun/star/linguistic/XSpellAlternatives.hpp> +#endif +#ifndef _COM_SUN_STAR_LINGUISTIC_XOTHERLINGU_HPP_ +#include <com/sun/star/linguistic/XOtherLingu.hpp> +#endif + +#ifndef _MENU_HXX //autogen +#include <vcl/menu.hxx> +#endif + +class SwWrtShell; +class SvStringsDtor; + +class SwSpellPopup : public PopupMenu +{ + SwWrtShell* pSh; + ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< + ::com::sun::star::linguistic::XDictionary > > aDics; + ::com::sun::star::uno::Reference< + ::com::sun::star::linguistic::XSpellAlternatives > xSpellAlt; + ::com::sun::star::uno::Reference< + ::com::sun::star::linguistic::XOtherLingu> xOther; + LanguageType nCorrLang; + +public: + SwSpellPopup( SwWrtShell*, + const ::com::sun::star::uno::Reference< + ::com::sun::star::linguistic::XSpellAlternatives > &xAlt ); + + sal_uInt16 Execute( Window* pWin, const Point& rPopupPos ); +}; + + +#endif + diff --git a/sw/source/ui/inc/optload.hxx b/sw/source/ui/inc/optload.hxx new file mode 100644 index 000000000000..71b65ae5ffc4 --- /dev/null +++ b/sw/source/ui/inc/optload.hxx @@ -0,0 +1,118 @@ +/************************************************************************* + * + * $RCSfile: optload.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _OPTLOAD_HXX +#define _OPTLOAD_HXX + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif +#ifndef _SV_FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +class SwWrtShell; + +/*-----------------31.08.96 10.09------------------- + +--------------------------------------------------*/ + +class SwLoadOptPage : public SfxTabPage +{ +private: + RadioButton aAlwaysRB; + RadioButton aRequestRB; + RadioButton aNeverRB; + CheckBox aLinkDocOnlyCB; + GroupBox aLinkGB; + + CheckBox aAutoUpdateFields; + CheckBox aAutoUpdateCharts; + CheckBox aFldDocOnlyCB; + GroupBox aFldGB; + + CheckBox aMergeDistCB; + CheckBox aMergeDistPageStartCB; + GroupBox aCompatGB; + + SwWrtShell* pWrtShell; + USHORT nOldLinkMode; + + DECL_LINK( UpdateHdl, CheckBox* ); + +public: + SwLoadOptPage( Window* pParent, + const SfxItemSet& rSet ); + ~SwLoadOptPage(); + + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet); + + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); +}; + +#endif + + diff --git a/sw/source/ui/inc/optpage.hxx b/sw/source/ui/inc/optpage.hxx new file mode 100644 index 000000000000..87942b306da8 --- /dev/null +++ b/sw/source/ui/inc/optpage.hxx @@ -0,0 +1,531 @@ +/************************************************************************* + * + * $RCSfile: optpage.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _OPTPAGE_HXX +#define _OPTPAGE_HXX + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _CTRLBOX_HXX //autogen +#include <svtools/ctrlbox.hxx> +#endif + +#ifndef _SVX_FNTCTRL_HXX //autogen +#include <svx/fntctrl.hxx> +#endif + +#ifndef _SVX_STRARRAY_HXX //autogen +#include <svx/strarray.hxx> +#endif + +class SvStringsDtor; +class SfxPrinter; +class SwStdFontConfig; +class SwWrtShell; + +/*-----------------31.08.96 10.09------------------- + +--------------------------------------------------*/ + +class SwContentOptPage : public SfxTabPage +{ + +private: + GroupBox aDispBox; + CheckBox aGrfCB; + CheckBox aTblCB; + CheckBox aDrwCB; + CheckBox aFldNameCB; + CheckBox aPostItCB; + + GroupBox aBackBox; + CheckBox aIdxEntryCB; + CheckBox aIdxBackCB; + CheckBox aFootBackCB; + CheckBox aFldBackCB; + + GroupBox aUnprintBox; + CheckBox aParaCB; + CheckBox aSHyphCB; + CheckBox aSpacesCB; + CheckBox aHSpacesCB; + CheckBox aTabCB; + CheckBox aBreakCB; + CheckBox aHiddenCB; + CheckBox aHiddenParaCB; + +public: + SwContentOptPage( Window* pParent, + const SfxItemSet& rSet ); + ~SwContentOptPage(); + + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet); + + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); + +}; + +/*-----------------31.08.96 10.10------------------- + +--------------------------------------------------*/ + +class SwLayoutOptPage : public SfxTabPage +{ + + GroupBox aLineGB; + CheckBox aTxtbegCB; + CheckBox aTblbegCB; + CheckBox aSectBoundsCB; + CheckBox aCrossCB; + CheckBox aSolidHandleCB; + CheckBox aBigHandleCB; + + GroupBox aWindowGB; + CheckBox aHScrollBox; + CheckBox aVScrollBox; + CheckBox aHRulerCBox; + CheckBox aVRulerCBox; + CheckBox aSmoothCBox; + + ListBox aMetricLB; + GroupBox aMetricGB; + + GroupBox aTabGB; + MetricField aTabMF; + + UINT16 nLastTab; + + SvxStringArray aMetricArr; + + DECL_LINK(MetricHdl, ListBox*); + + SwLayoutOptPage( Window* pParent, + const SfxItemSet& rSet ); + ~SwLayoutOptPage(); +public: + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet); + + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); + +}; + +/*-------- OS 27.01.95 ----------------------------------- + TabPage Druckereinstellungen Zusaetze +--------------------------------------------------------- */ + + +class SwAddPrinterTabPage : public SfxTabPage +{ + CheckBox aGrfCB; + CheckBox aTabCB; + CheckBox aDrawCB; + CheckBox aCtrlFldCB; + CheckBox aBackgroundCB; + CheckBox aBlackFontCB; + GroupBox aGroup1; + CheckBox aLeftPageCB; + CheckBox aRightPageCB; + CheckBox aReverseCB; + CheckBox aProspectCB; + GroupBox aGroup2; + RadioButton aNoRB; + RadioButton aOnlyRB; + RadioButton aEndRB; + RadioButton aEndPageRB; + GroupBox aGroup3; + CheckBox aSingleJobsCB; + GroupBox aGroup4; + ListBox aFaxLB; + GroupBox aFaxGB; + CheckBox aPaperFromSetupCB; + GroupBox aGroup5; + + BOOL bAttrModified; + BOOL bPreview; + + void Init(); + DECL_LINK( AutoClickHdl, CheckBox * ); + DECL_LINK( SelectHdl, ListBox * ); + + + SwAddPrinterTabPage( Window* pParent, + const SfxItemSet& rSet ); + +public: + + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet ); + + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); + void SetFax( const SvStringsDtor& ); + void SelectFax( const String& ); + void SetPreview(BOOL bPrev); + +}; + +/*-----------------03.09.96 11.50------------------- + +--------------------------------------------------*/ + +class SwStdFontTabPage : public SfxTabPage +{ + FixedText aStandardLbl; + ComboBox aStandardBox; + FixedText aTitleLbl ; + ComboBox aTitleBox ; + FixedText aListLbl ; + ComboBox aListBox ; + FixedText aLabelLbl ; + ComboBox aLabelBox ; + FixedText aIdxLbl ; + ComboBox aIdxBox ; + CheckBox aDocOnlyCB ; + GroupBox aStdChrFrm ; + PushButton aStandardPB; + + String sShellStd; + String sShellTitle; + String sShellList; + String sShellLabel; + String sShellIndex; + + SfxPrinter* pPrt; + SwStdFontConfig* pFontConfig; + SwWrtShell* pWrtShell; + // waren nur defaults vorhanden? wurden sie mit den Boxen ueberschrieben + BOOL bListDefault :1; + BOOL bSetListDefault :1; + BOOL bLabelDefault :1; + BOOL bSetLabelDefault :1; + BOOL bIdxDefault :1; + BOOL bSetIdxDefault :1; + BOOL bDeletePrinter :1; + + + + DECL_LINK( StandardHdl, PushButton * ); + DECL_LINK( ModifyHdl, ComboBox * ); + + SwStdFontTabPage( Window* pParent, + const SfxItemSet& rSet ); + ~SwStdFontTabPage(); + +public: + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet ); + + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); + +}; + +/*-----------------18.01.97 12.10------------------- + +--------------------------------------------------*/ + +class SwTableOptionsTabPage : public SfxTabPage +{ + GroupBox aMoveGB; + FixedText aRowMoveFT; + MetricField aRowMoveMF; + FixedText aColMoveFT; + MetricField aColMoveMF; + + GroupBox aInsertGB; + FixedText aRowInsertFT; + MetricField aRowInsertMF; + FixedText aColInsertFT; + MetricField aColInsertMF; + + GroupBox aHandlingGB; + RadioButton aFixRB; + RadioButton aFixPropRB; + RadioButton aVarRB; + FixedText aFixFT; + FixedText aFixPropFT; + FixedText aVarFT; + + FixedText aDescFT; + + SwWrtShell* pWrtShell; + + + SwTableOptionsTabPage( Window* pParent, + const SfxItemSet& rSet ); + ~SwTableOptionsTabPage(); + +public: + + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet ); + + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); + + void SetWrtShell(SwWrtShell* pSh) {pWrtShell = pSh;} + + +}; +/*-----------------19.04.97 13:17------------------- + +--------------------------------------------------*/ +class SwSourceViewOptionsTabPage : public SfxTabPage +{ + GroupBox aColorGB; + FixedText aSGMLFT; + ColorListBox aSGMLLB; + FixedText aCommentFT; + ColorListBox aCommentLB; + FixedText aKeywdFT; + ColorListBox aKeywdLB; + FixedText aUnknownFT; + ColorListBox aUnknownLB; + + SwSourceViewOptionsTabPage( Window* pParent, + const SfxItemSet& rSet ); + ~SwSourceViewOptionsTabPage(); + +public: + + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet ); + + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); + +}; + +/*-----------------31.10.97 17:55------------------- + TabPage fuer ShadowCrsr +--------------------------------------------------*/ + +class SwShdwCrsrOptionsTabPage : public SfxTabPage +{ + GroupBox aFlagGB; + CheckBox aOnOffCB; + + FixedText aFillModeFT; + RadioButton aFillMarginRB; + RadioButton aFillIndentRB; + RadioButton aFillTabRB; + RadioButton aFillSpaceRB; + + FixedText aColorFT; + ColorListBox aColorLB; + + GroupBox aCrsrOptGB; + CheckBox aCrsrInProtCB; + + SwShdwCrsrOptionsTabPage( Window* pParent, const SfxItemSet& rSet ); + ~SwShdwCrsrOptionsTabPage(); + +public: + + static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); + + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); +}; + +/*----------------------------------------------------------------------- + Beschreibung: Markierungsvorschau + -----------------------------------------------------------------------*/ + +class SwMarkPreview : public Window +{ + Color aTransColor; // Transparente Farbe + Color aMarkColor; // Farbe der Markierungen + + Rectangle aPage; + Rectangle aLeftPagePrtArea; + Rectangle aRightPagePrtArea; + + USHORT nMarkPos; + + void DrawRect(const Rectangle &rRect, const Color &rFillColor, const Color &rLineColor); + void Paint(const Rectangle&); + void PaintPage(const Rectangle &rRect); + +public: + + SwMarkPreview(Window* pParent, const ResId& rResID); + ~SwMarkPreview(); + + inline void SetColor(Color aCol) { aMarkColor = aCol; } + inline void SetMarkPos(USHORT nPos) { nMarkPos = nPos; } +}; + +/*----------------------------------------------------------------------- + Beschreibung: Redlining-Optionen + -----------------------------------------------------------------------*/ + +class SwRedlineOptionsTabPage : public SfxTabPage +{ + RadioButton aInsertRB; + RadioButton aDeletedRB; + RadioButton aChangedRB; + + FixedText aInsertFT; + ListBox aInsertLB; + ListBox aDeletedLB; + ListBox aChangedLB; + FixedText aInsertColorFT; + ColorListBox aInsertColorLB; + ColorListBox aDeletedColorLB; + ColorListBox aChangedColorLB; + SvxFontPrevWindow aAttribPreviewWN; + GroupBox aInsertGB; + + FixedText aMarkPosFT; + ListBox aMarkPosLB; + FixedText aMarkColorFT; + ColorListBox aMarkColorLB; + SwMarkPreview aMarkPreviewWN; + GroupBox aChangedGB; + String sAuthor; + String sNone; + + SwRedlineOptionsTabPage( Window* pParent, const SfxItemSet& rSet ); + ~SwRedlineOptionsTabPage(); + + DECL_LINK( RadioHdl, RadioButton *pRB ); + + DECL_LINK( AttribHdl, ListBox *pLB ); + DECL_LINK( ChangedMaskPrevHdl, ListBox *pLB = 0 ); + DECL_LINK( ColorHdl, ColorListBox *pColorLB ); + + void InitFontStyle(SvxFontPrevWindow& rExampleWin); + +public: + + static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); + + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); +}; + +/*--------OS 11.01.95 ----------------------------------- + TabPage Testeinstellungen fuer SW +--------------------------------------------------------- */ + +#ifndef PRODUCT + +class SwTestTabPage : public SfxTabPage +{ +public: + SwTestTabPage( Window* pParent, + const SfxItemSet& rSet ); + + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet ); + + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); + +private: + GroupBox aTestGBox; + CheckBox aTest1CBox; + CheckBox aTest2CBox; + CheckBox aTest3CBox; + CheckBox aTest4CBox; + CheckBox aTest5CBox; + CheckBox aTest6CBox; + CheckBox aTest7CBox; + CheckBox aTest8CBox; + CheckBox aTest9CBox; + CheckBox aTest10CBox; + + BOOL bAttrModified; + + void Init(); + DECL_LINK( AutoClickHdl, CheckBox * ); + +}; +#endif //PRODUCT +#endif + + diff --git a/sw/source/ui/inc/outline.hxx b/sw/source/ui/inc/outline.hxx new file mode 100644 index 000000000000..8205e1642270 --- /dev/null +++ b/sw/source/ui/inc/outline.hxx @@ -0,0 +1,209 @@ +/************************************************************************* + * + * $RCSfile: outline.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _OUTLINE_HXX +#define _OUTLINE_HXX + + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + + +#ifndef _SV_MENU_HXX //autogen +#include <vcl/menu.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _STDCTRL_HXX //autogen +#include <svtools/stdctrl.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +#include "swtypes.hxx" //fuer MAXLEVEL +#ifndef _NUMPREVW_HXX +#include <numprevw.hxx> +#endif + +class SwWrtShell; +class SwTxtFmtColl; +class SwNumRule; +class SwChapterNumRules; + +/* -----------------07.07.98 13:38------------------- + * + * --------------------------------------------------*/ +class SwOutlineTabDialog : public SfxTabDialog +{ + String aNullStr; + String aCollNames[MAXLEVEL]; + PopupMenu aFormMenu; + + SwWrtShell& rWrtSh; + SwNumRule* pNumRule; + SwChapterNumRules* pChapterNumRules; + + USHORT nNumLevel; + BOOL bModified : 1; + + protected: + DECL_LINK( CancelHdl, Button * ); + DECL_LINK( FormHdl, Button * ); + DECL_LINK( MenuSelectHdl, Menu * ); + + virtual void PageCreated(USHORT nPageId, SfxTabPage& rPage); + virtual short Ok(); + + public: + SwOutlineTabDialog(Window* pParent, + const SfxItemSet* pSwItemSet, + SwWrtShell &); + ~SwOutlineTabDialog(); + + SwNumRule* GetNumRule() {return pNumRule;} + USHORT GetLevel(const String &rFmtName) const; + String* GetCollNames() {return aCollNames;} + USHORT GetActNumLevel() {return nNumLevel;} + void SetActNumLevel(USHORT nSet) {nNumLevel = nSet;} +}; +/* -----------------07.07.98 13:47------------------- + * + * --------------------------------------------------*/ +class SwOutlineSettingsTabPage : public SfxTabPage +{ + ListBox aLevelLB; + GroupBox aLevelGB; + + FixedText aCollLbl; + ListBox aCollBox; + FixedText aNumberLbl; + ListBox aNumberBox; + FixedText aCharFmtFT; + ListBox aCharFmtLB; + FixedText aAllLevelFT; + NumericField aAllLevelNF; + FixedText aDelim; + FixedText aPrefixFT; + Edit aPrefixED; + FixedText aSuffixFT; + Edit aSuffixED; + FixedText aStartLbl; + NumericField aStartEdit; + GroupBox aNumberGrp; + GroupBox aPreviewGB; + NumberingPreview aPreviewWIN; + + String aNoFmtName; + String aSaveCollNames[MAXLEVEL]; + SwWrtShell* pSh; + SwNumRule* pNumRule; + String* pCollNames; + USHORT nActLevel; + + DECL_LINK( LevelHdl, ListBox * ); + DECL_LINK( ToggleComplete, NumericField * ); + DECL_LINK( CollSelect, ListBox * ); + DECL_LINK( CollSelectGetFocus, ListBox * ); + DECL_LINK( NumberSelect, ListBox * ); + DECL_LINK( DelimModify, Edit * ); + DECL_LINK( StartModified, NumericField * ); + DECL_LINK( CharFmtHdl, ListBox * ); + + void Update(); + + void SetModified(){aPreviewWIN.Invalidate();} + + +public: + SwOutlineSettingsTabPage(Window* pParent, const SfxItemSet& rSet); + ~SwOutlineSettingsTabPage(); + + void SetWrtShell(SwWrtShell* pShell); + + virtual void ActivatePage(const SfxItemSet& rSet); + virtual int DeactivatePage(SfxItemSet *pSet); + virtual BOOL FillItemSet( SfxItemSet& rSet ); + virtual void Reset( const SfxItemSet& rSet ); + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet); +}; +#endif diff --git a/sw/source/ui/inc/pardlg.hxx b/sw/source/ui/inc/pardlg.hxx new file mode 100644 index 000000000000..501f8f3ebe09 --- /dev/null +++ b/sw/source/ui/inc/pardlg.hxx @@ -0,0 +1,96 @@ +/************************************************************************* + * + * $RCSfile: pardlg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SW_PARDLG_HXX +#define _SW_PARDLG_HXX + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +class SwView; +class SfxItemSet; + +//DialogModes: +#define DLG_STD 0 +#define DLG_ENVELOP 2 + +class SwParaDlg: public SfxTabDialog +{ + SwView& rView; + USHORT nHtmlMode; + BYTE nDlgMode; + BOOL bDrawParaDlg; + + void PageCreated(USHORT nID, SfxTabPage& rPage); + +public: + SwParaDlg( Window *pParent, + SwView& rVw, + const SfxItemSet&, + BYTE nDialogMode, + const String *pCollName = 0, + BOOL bDraw = FALSE, + UINT16 nDefPage = 0); + ~SwParaDlg(); +}; + + +#endif diff --git a/sw/source/ui/inc/pattern.hxx b/sw/source/ui/inc/pattern.hxx new file mode 100644 index 000000000000..b4ebc857d621 --- /dev/null +++ b/sw/source/ui/inc/pattern.hxx @@ -0,0 +1,80 @@ +/************************************************************************* + * + * $RCSfile: pattern.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _PATTERN_HXX +#define _PATTERN_HXX + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif +class Window; +class SfxItemSet; + +class SwBackgroundDlg : public SfxSingleTabDialog +{ +public: + + SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet); + ~SwBackgroundDlg(); +}; + +#endif + diff --git a/sw/source/ui/inc/pgfnote.hxx b/sw/source/ui/inc/pgfnote.hxx new file mode 100644 index 000000000000..a350a774545d --- /dev/null +++ b/sw/source/ui/inc/pgfnote.hxx @@ -0,0 +1,141 @@ +/************************************************************************* + * + * $RCSfile: pgfnote.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _PGFNOTE_HXX +#define _PGFNOTE_HXX + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifdef VCL +#ifndef _CTRLBOX_HXX +#include <svtools/ctrlbox.hxx> +#endif +#else +#include "linbox.hxx" +#endif +#include "colex.hxx" + +/*-------------------------------------------------------------------- + Beschreibung: Fussnoteneinstellungs-TabPage + --------------------------------------------------------------------*/ + +class SwFootNotePage: public SfxTabPage +{ +public: + static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); + static USHORT* GetRanges(); + + virtual BOOL FillItemSet(SfxItemSet &rSet); + virtual void Reset(const SfxItemSet &rSet); + +private: + SwFootNotePage(Window *pParent, const SfxItemSet &rSet); + ~SwFootNotePage(); + + RadioButton aMaxHeightPageBtn; + RadioButton aMaxHeightBtn; + MetricField aMaxHeightEdit; + FixedText aDistLbl; + MetricField aDistEdit; + GroupBox aPosFrm; + + FixedText aLinePosLbl; + ListBox aLinePosBox; + FixedText aLineTypeLbl; +#ifdef VCL + LineListBox aLineTypeBox; +#else + SwLineBox aLineTypeBox; +#endif + FixedText aLineWidthLbl; + MetricField aLineWidthEdit; + FixedText aLineDistLbl; + MetricField aLineDistEdit; + GroupBox aLineFrm; + SwColExample aBspWin; + GroupBox aBspFrm; + + DECL_LINK( HeightPage, Button * ); + DECL_LINK( HeightMetric, Button * ); + DECL_LINK( HeightModify, MetricField * ); + void InitBsp(const SfxItemSet& rSet); + + long lMaxHeight; + + virtual void ActivatePage( const SfxItemSet& rSet ); + virtual int DeactivatePage( SfxItemSet* pSet = 0 ); + +}; + +#endif diff --git a/sw/source/ui/inc/popbox.hxx b/sw/source/ui/inc/popbox.hxx new file mode 100644 index 000000000000..c7091ae15e3a --- /dev/null +++ b/sw/source/ui/inc/popbox.hxx @@ -0,0 +1,94 @@ +/************************************************************************* + * + * $RCSfile: popbox.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _POPBOX_HXX +#define _POPBOX_HXX + + +#ifndef _TOOLBOX_HXX //autogen +#include <vcl/toolbox.hxx> +#endif + +class SwHelpToolBox: public ToolBox +{ + Link aDoubleClickLink; + Link aRightClickLink; // Link bekommt MouseEvent als Parameter !!! +protected: + virtual void MouseButtonDown(const MouseEvent &rEvt); + virtual long DoubleClick(ToolBox *); + virtual BOOL Drop( const DropEvent& rEvt); + virtual BOOL QueryDrop( DropEvent& rEvt); +public: + SwHelpToolBox(Window* pParent, const ResId &); + ~SwHelpToolBox(); + void SetDoubleClickLink(const Link &); // inline + void SetRightClickLink(const Link &); // inline +}; + +inline void SwHelpToolBox::SetDoubleClickLink(const Link &rLink) { + aDoubleClickLink = rLink; +} + +inline void SwHelpToolBox::SetRightClickLink(const Link &rLink) { + aRightClickLink = rLink; +} + + +#endif diff --git a/sw/source/ui/inc/popup.hrc b/sw/source/ui/inc/popup.hrc new file mode 100644 index 000000000000..e825a018c884 --- /dev/null +++ b/sw/source/ui/inc/popup.hrc @@ -0,0 +1,84 @@ +/************************************************************************* + * + * $RCSfile: popup.hrc,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _POPUP_HRC +#define _POPUP_HRC + +#include "rcid.hrc" + +#define MN_TEXT_POPUPMENU (RC_POPUPS_BEGIN + 0) +#define MN_TAB_POPUPMENU (RC_POPUPS_BEGIN + 1) +#define MN_FRM_POPUPMENU (RC_POPUPS_BEGIN + 2) +#define MN_DRAW_POPUPMENU (RC_POPUPS_BEGIN + 3) +#define MN_DRWTXT_POPUPMENU (RC_POPUPS_BEGIN + 4) +#define MN_GRF_POPUPMENU (RC_POPUPS_BEGIN + 5) +#define MN_OLE_POPUPMENU (RC_POPUPS_BEGIN + 6) +#define MN_PPREVIEW_POPUPMENU (RC_POPUPS_BEGIN + 7) +#define MN_SRCVIEW_POPUPMENU (RC_POPUPS_BEGIN + 8) +#define MN_DRAWFORM_POPUPMENU (RC_POPUPS_BEGIN + 9) + +#if MN_DRAWFORM_POPUPMENU > RC_POPUPS_END + +#error Resource-Id Ueberlauf in #file, #line +#endif + + +#endif // _POPUP_HRC diff --git a/sw/source/ui/inc/prcntfld.hxx b/sw/source/ui/inc/prcntfld.hxx new file mode 100644 index 000000000000..47ee3cf3a724 --- /dev/null +++ b/sw/source/ui/inc/prcntfld.hxx @@ -0,0 +1,106 @@ +/************************************************************************* + * + * $RCSfile: prcntfld.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _PRCNTFLD_HXX +#define _PRCNTFLD_HXX + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +class PercentField : public MetricField +{ + long nRefValue; // 100%-Wert fuer Umrechnung (in Twips) + long nOldMax, nOldMin, nOldSpinSize, nOldBaseValue; + long nLastPercent, nLastValue; + USHORT nOldDigits; + FieldUnit eOldUnit; + + long ImpPower10(USHORT n); + +public: + PercentField( Window* pWin, const ResId& rResId ); + + void SetValue(long nNewValue, FieldUnit eInUnit = FUNIT_NONE); + void SetUserValue(long nNewValue, FieldUnit eInUnit = FUNIT_NONE); + void SetBaseValue(long nNewValue, FieldUnit eInUnit = FUNIT_NONE); + long GetValue(FieldUnit eOutUnit = FUNIT_NONE); + BOOL IsValueModified(); + + void SetMax(long nNewMax, FieldUnit eInUnit = FUNIT_NONE); + void SetMin(long nNewMin, FieldUnit eInUnit = FUNIT_NONE); + + long Normalize(long nValue); + long Denormalize(long nValue); + + void SetRefValue(long nValue); + inline long GetRefValue() const { return nRefValue; } + long GetRealValue(FieldUnit eOutUnit = FUNIT_NONE); + + long Convert(long nValue, FieldUnit eInUnit, FieldUnit eOutUnit); + + void ShowPercent(BOOL bPercent); + + USHORT GetOldDigits() const {return nOldDigits;} + +}; + +#endif // _PRCNTFLD_HXX + diff --git a/sw/source/ui/inc/prtopt.hxx b/sw/source/ui/inc/prtopt.hxx new file mode 100644 index 000000000000..35f2409068ac --- /dev/null +++ b/sw/source/ui/inc/prtopt.hxx @@ -0,0 +1,129 @@ +/************************************************************************* + * + * $RCSfile: prtopt.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _PRTOPT_HXX +#define _PRTOPT_HXX + +#ifndef _UTL_CONFIGITEM_HXX_ +#include <unotools/configitem.hxx> +#endif + +class SwPrintOptions : public utl::ConfigItem +{ + sal_Bool + bPrintGraphic :1, + bPrintTable :1, + bPrintDraw :1, + bPrintControl :1, + bPrintPageBackground:1, + bPrintBlackFont :1, + + bPrintLeftPage :1, + bPrintRightPage :1, + bReverse :1, + bPrintProspect :1, + bPrintSingleJobs :1, + + bPaperFromSetup :1; + + sal_uInt32 nPrintPostIts; + rtl::OUString sFaxName; + + com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); +public: + SwPrintOptions(sal_Bool bWeb); + virtual ~SwPrintOptions(); + + virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames); + virtual void Commit(); + + sal_Bool IsPrintGraphic() const { return bPrintGraphic; } + sal_Bool IsPrintTable() const { return bPrintTable; } + sal_Bool IsPrintDraw() const { return bPrintDraw; } + sal_Bool IsPrintControl() const { return bPrintControl; } + sal_Bool IsPrintLeftPage() const { return bPrintLeftPage; } + sal_Bool IsPrintRightPage() const { return bPrintRightPage; } + sal_Bool IsPrintReverse() const { return bReverse; } + sal_Bool IsPaperFromSetup() const { return bPaperFromSetup; } + sal_Bool IsPrintProspect() const { return bPrintProspect; } + sal_Bool IsPrintPageBackground() const { return bPrintPageBackground; } + sal_Bool IsPrintBlackFont() const { return bPrintBlackFont;} + sal_Bool IsPrintSingleJobs() const { return bPrintSingleJobs;} + sal_uInt32 GetPrintPostIts() const { return nPrintPostIts; } + const rtl::OUString GetFaxName() const{return sFaxName;} + + void SetPrintGraphic ( sal_Bool b ) { SetModified(); bPrintGraphic = b;} + void SetPrintTable ( sal_Bool b ) { SetModified(); bPrintTable = b;} + void SetPrintDraw ( sal_Bool b ) { SetModified(); bPrintDraw = b;} + void SetPrintControl ( sal_Bool b ) { SetModified(); bPrintControl = b; } + void SetPrintLeftPage ( sal_Bool b ) { SetModified(); bPrintLeftPage = b;} + void SetPrintRightPage( sal_Bool b ) { SetModified(); bPrintRightPage = b;} + void SetPrintReverse ( sal_Bool b ) { SetModified(); bReverse = b;} + void SetPaperFromSetup( sal_Bool b ) { SetModified(); bPaperFromSetup = b;} + void SetPrintPostIts ( sal_uInt32 n){ SetModified(); nPrintPostIts = n; } + void SetPrintProspect ( sal_Bool b ) { SetModified(); bPrintProspect = b; } + void SetPrintPageBackground(sal_Bool b){ SetModified(); bPrintPageBackground = b;} + void SetPrintBlackFont(sal_Bool b){ SetModified(); bPrintBlackFont = b;} + void SetPrintSingleJobs(sal_Bool b){ SetModified(); bPrintSingleJobs = b;} + void SetFaxName(const rtl::OUString& rSet){sFaxName = rSet;} +}; + +#endif + diff --git a/sw/source/ui/inc/pview.hxx b/sw/source/ui/inc/pview.hxx new file mode 100644 index 000000000000..57883c6b9249 --- /dev/null +++ b/sw/source/ui/inc/pview.hxx @@ -0,0 +1,283 @@ +/************************************************************************* + * + * $RCSfile: pview.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWPVIEW_HXX +#define _SWPVIEW_HXX + +#ifndef _SFXVIEWFRM_HXX //autogen +#include <sfx2/viewfrm.hxx> +#endif +#ifndef _VIEWFAC_HXX //autogen +#include <sfx2/viewfac.hxx> +#endif +#ifndef _LINK_HXX //autogen +#include <tools/link.hxx> +#endif +#ifndef _WINDOW_HXX //autogen +#include <vcl/window.hxx> +#endif +#ifndef _SFXVIEWSH_HXX //autogen +#include <sfx2/viewsh.hxx> +#endif +#include "shellid.hxx" + +class SwViewOption; +class SwDocShell; +class SwScrollbar; +class ViewShell; +class SwPagePreView; +class ImageButton; +class Button; +class SwRect; +class DataChangedEvent; +class CommandEvent; + +class SwPagePreViewWin : public Window +{ + ViewShell* pViewShell; + USHORT nSttPage, nVirtPage; + BYTE nRow, nCol; + Size aWinSize, aPgSize; + Fraction aScale; + SwPagePreView& rView; + + void SetPagePreview( BYTE nRow, BYTE nCol ); + +public: + SwPagePreViewWin( Window* pParent, SwPagePreView& rView ); + ~SwPagePreViewWin(); + + //Ruft ViewShell::Paint + virtual void Paint( const Rectangle& rRect ); + virtual void KeyInput( const KeyEvent & ); + virtual void Command( const CommandEvent& rCEvt ); + virtual void MouseButtonDown(const MouseEvent& rMEvt); + virtual void DataChanged( const DataChangedEvent& ); + + void SetViewShell( ViewShell* pShell ) { pViewShell = pShell; } + ViewShell* GetViewShell() const { return pViewShell; } + + BYTE GetRow() const { return nRow; } + void SetRow( BYTE n ) { if( n ) nRow = n; } + + BYTE GetCol() const { return nCol; } + void SetCol( BYTE n ) { if( n ) nCol = n; } + + USHORT GetVirtPage() const { return nVirtPage; } + USHORT GetSttPage() const { return nSttPage; } + void SetSttPage( USHORT n ) + { nSttPage = nVirtPage = n; if( !n ) ++nVirtPage; } + + //JP 19.08.98: bei Einspaltigkeit gibt es keine 0. Seite! + USHORT GetDefSttPage() const { return 1 == nCol ? 1 : 0; } + + void CalcWish( BYTE nNewRow, BYTE nNewCol ); + + const Size& GetWinSize() const { return aWinSize; } + void SetWinSize( const Size& rNewSize ); + + enum MoveMode{ MV_CALC, MV_PAGE_UP, MV_PAGE_DOWN, MV_DOC_STT, MV_DOC_END }; + int MovePage( int eMoveMode ); + + // erzeuge den String fuer die StatusLeiste + void GetStatusStr( String& rStr, USHORT nPageCount ) const; + void GetOptimalSize( Size& rSize ) const; + + void RepaintCoreRect( const SwRect& rRect ); +}; + + +/*-------------------------------------------------------------------- + Beschreibung: Sicht auf ein Dokument + --------------------------------------------------------------------*/ + +class SwPagePreView: public SfxViewShell +{ + // ViewWindow und Henkel zur Core + // aktuelle Dispatcher-Shell + SwPagePreViewWin aViewWin; + //viewdata of the previous SwView and the new crsrposition + String sSwViewData, + //and the new cursor position if the user double click in the PagePreView + sNewCrsrPos; + // Sichtbarer Bereich + String sPageStr; + Size aDocSz; + Rectangle aVisArea; + + // MDI Bedienelemente + SwScrollbar *pHScrollbar; + SwScrollbar *pVScrollbar; + ImageButton *pPageUpBtn, + *pPageDownBtn; + // Dummy-Window zum Fllen der rechten unteren Ecke, wenn beide Scrollbars + // aktiv sind + Window *pScrollFill; + + USHORT nPageCount; + BOOL bNormalPrint; + + void Init(const SwViewOption* = 0); + Point AlignToPixel(const Point& rPt) const; + + int _CreateScrollbar( int bHori ); + int _KillScrollbar( int bHori ); + DECL_LINK( ScrollHdl, SwScrollbar * ); + DECL_LINK( EndScrollHdl, SwScrollbar * ); + DECL_LINK( BtnPage, Button * ); + int ChgPage( int eMvMode, int bUpdateScrollbar = TRUE ); + + + virtual USHORT Print( SfxProgress &rProgress, + PrintDialog *pPrintDialog = 0 ); + virtual SfxPrinter* GetPrinter( BOOL bCreate = FALSE ); + virtual USHORT SetPrinter( SfxPrinter *pNewPrinter, USHORT nDiffFlags = SFX_PRINTER_ALL ); + virtual SfxTabPage* CreatePrintOptionsPage( Window *pParent, + const SfxItemSet &rOptions ); + virtual PrintDialog* CreatePrintDialog( Window *pParent ); + + void CalcAndSetBorderPixel( SvBorder &rToFill, FASTBOOL bInner ); + + +protected: + virtual void InnerResizePixel( const Point &rOfs, const Size &rSize ); + virtual void OuterResizePixel( const Point &rOfs, const Size &rSize ); + virtual Size GetOptimalSizePixel() const; + +public: + SFX_DECL_VIEWFACTORY(SwPagePreView); + SFX_DECL_INTERFACE(SW_PAGEPREVIEW); + TYPEINFO(); + + inline Window* GetFrameWindow() const { return &(GetViewFrame())->GetWindow(); } + inline ViewShell& GetViewShell() const { return *aViewWin.GetViewShell(); } + inline const Rectangle& GetVisArea() const { return aVisArea; } + inline void GrabFocusViewWin() { aViewWin.GrabFocus(); } + inline void RepaintCoreRect( const SwRect& rRect ) + { aViewWin.RepaintCoreRect( rRect ); } + + void DocSzChgd(const Size& rNewSize); + const Size& GetDocSz() const { return aDocSz; } + + virtual void SetVisArea( const Rectangle&, BOOL bUpdateScrollbar = TRUE); + + inline int StatHScrollbar() const; + inline int CreateHScrollbar(); + inline int KillHScrollbar(); + inline int CreateVScrollbar(); + inline int KillVScrollbar(); + inline int StatVScrollbar() const; + inline void AdjustEditWin(); + + void VScrollViewSzChg(); + void VScrollDocSzChg(); + + USHORT GetPageCount() const { return nPageCount; } + + BOOL HandleWheelCommands( const CommandEvent& ); + + const String& GetPrevSwViewData() const { return sSwViewData; } + void SetNewCrsrPos( const String& rStr ) { sNewCrsrPos = rStr; } + const String& GetNewCrsrPos() const { return sNewCrsrPos; } + // Handler + void Execute(SfxRequest&); + void GetState(SfxItemSet&); + void StateUndo(SfxItemSet&); + + SwDocShell* GetDocShell(); + + SwPagePreView( SfxViewFrame* pFrame, SfxViewShell* ); + ~SwPagePreView(); +}; + +// ----------------- inline Methoden ---------------------- + +inline int SwPagePreView::StatHScrollbar() const +{ + return 0 != pHScrollbar; +} +inline int SwPagePreView::CreateHScrollbar() +{ + return StatHScrollbar() ? 1 : _CreateScrollbar( TRUE ); +} +inline int SwPagePreView::KillHScrollbar() +{ + return StatHScrollbar() ? _KillScrollbar( TRUE ) : 1; +} + +inline int SwPagePreView::StatVScrollbar() const +{ + return 0 != pVScrollbar; +} +inline int SwPagePreView::CreateVScrollbar() +{ + return StatVScrollbar() ? 1 : _CreateScrollbar( FALSE ); +} +inline int SwPagePreView::KillVScrollbar() +{ + return StatVScrollbar() ? _KillScrollbar( FALSE ) : 1; +} + +inline void SwPagePreView::AdjustEditWin() +{ + OuterResizePixel( Point(), GetFrameWindow()->GetOutputSizePixel() ); +} + +#endif diff --git a/sw/source/ui/inc/redlndlg.hxx b/sw/source/ui/inc/redlndlg.hxx new file mode 100644 index 000000000000..21cdc682b5f1 --- /dev/null +++ b/sw/source/ui/inc/redlndlg.hxx @@ -0,0 +1,131 @@ +/************************************************************************* + * + * $RCSfile: redlndlg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWREDLNDLG_HXX +#define _SWREDLNDLG_HXX + +#include "chldwrap.hxx" + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif + +class SwChildWinWrapper; +class SwRedlineAcceptDlg; + +/*------------------------------------------------------------------------ + Beschreibung: +------------------------------------------------------------------------*/ + +class SwModelessRedlineAcceptDlg : public SfxModelessDialog +{ + SwRedlineAcceptDlg* pImplDlg; + SwChildWinWrapper* pChildWin; + + virtual void Resize(); + +public: + SwModelessRedlineAcceptDlg(SfxBindings*, SwChildWinWrapper*, Window *pParent); + ~SwModelessRedlineAcceptDlg(); + + virtual void Activate(); + virtual void FillInfo(SfxChildWinInfo&) const; + void Initialize (SfxChildWinInfo* pInfo); +}; + +/*------------------------------------------------------------------------ + Beschreibung: +------------------------------------------------------------------------*/ + +class SwModalRedlineAcceptDlg : public SfxModalDialog +{ + SwRedlineAcceptDlg* pImplDlg; + + virtual void Resize(); + +public: + SwModalRedlineAcceptDlg(Window *pParent); + ~SwModalRedlineAcceptDlg(); + + void AcceptAll( BOOL bAccept ); + virtual void Activate(); +}; + +/*------------------------------------------------------------------------ + Beschreibung: +------------------------------------------------------------------------*/ + +class SwRedlineAcceptChild : public SwChildWinWrapper +{ +public: + SwRedlineAcceptChild( Window* , + USHORT nId, + SfxBindings*, + SfxChildWinInfo* ); + + SFX_DECL_CHILDWINDOW( SwRedlineAcceptChild ); + + virtual BOOL ReInitDlg(SwDocShell *pDocSh); +}; + + +#endif + + diff --git a/sw/source/ui/inc/regionsw.hxx b/sw/source/ui/inc/regionsw.hxx new file mode 100644 index 000000000000..d533f689234b --- /dev/null +++ b/sw/source/ui/inc/regionsw.hxx @@ -0,0 +1,418 @@ +/************************************************************************* + * + * $RCSfile: regionsw.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _REGIONSW_HXX +#define _REGIONSW_HXX + +#ifndef _SV_FIELD_HXX +#include <vcl/field.hxx> +#endif +#ifndef _SV_LSTBOX_HXX +#include <vcl/lstbox.hxx> +#endif +#ifndef _EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif +#ifndef _COMBOBOX_HXX //autogen +#include <vcl/combobox.hxx> +#endif +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif +#ifndef _BITMAP_HXX //autogen +#include <vcl/bitmap.hxx> +#endif +#ifndef _SVTREEBOX_HXX //autogen +#include <svtools/svtreebx.hxx> +#endif +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif +#ifndef _SVX_BRSHITEM_HXX //autogen +#include <svx/brshitem.hxx> +#endif + +#ifndef _CONDEDIT_HXX +#include <condedit.hxx> +#endif +#ifndef _SECTION_HXX +#include <section.hxx> +#endif +#ifndef _FMTCLDS_HXX +#include <fmtclds.hxx> +#endif +#ifndef _FMTFTNTX_HXX +#include <fmtftntx.hxx> +#endif +#ifndef _FMTCLBL_HXX +#include <fmtclbl.hxx> +#endif + +class SwWrtShell; +class EditRegionDlg; +class DropEvent; + +/*-------------------------------------------------------------------- + Beschreibung: + --------------------------------------------------------------------*/ + +class SectRepr +{ + SwSection aSection; + SwFmtCol aCol; + SvxBrushItem aBrush; + SwFmtFtnAtTxtEnd aFtnNtAtEnd; + SwFmtEndAtTxtEnd aEndNtAtEnd; + SwFmtNoBalancedColumns aBalance; + USHORT nArrPos; + USHORT nColumn; + BOOL bContent : 1; //zeigt an, ob evtl. Textinhalt im Bereich ist + BOOL bSelected : 1; //fuer Multiselektion erst markieren, dann mit der TreeListBox arbeiten! + BOOL bIsCondition: 1; // + +public: + SectRepr(USHORT nPos, SwSection& rSect); + int operator ==(SectRepr& rSectRef) const + {return nArrPos==rSectRef.GetArrPos();} + + int operator <(SectRepr& rSectRef) const + {return nArrPos<rSectRef.GetArrPos();} + + SwSection& GetSection() { return aSection; } + SwFmtCol& GetCol() { return aCol; } + SvxBrushItem& GetBackground() { return aBrush; } + SwFmtFtnAtTxtEnd& GetFtnNtAtEnd() { return aFtnNtAtEnd; } + SwFmtEndAtTxtEnd& GetEndNtAtEnd() { return aEndNtAtEnd; } + SwFmtNoBalancedColumns& GetBalance() { return aBalance; } + + USHORT GetArrPos() const {return nArrPos;} + const String& GetCondition() const {return aSection.GetCondition();} + const String& GetName() const { return aSection.GetName(); } + String GetFile() const; + String GetSubRegion() const; + void SetFile( const String& rFile ); + void SetFilter( const String& rFilter ); + void SetSubRegion( const String& rSubRegion ); + + void SetFilePasswd( const String& rPasswd ) + { aSection.SetLinkFilePassWd( rPasswd ); } + void SetCondition( const String& rString ) + {aSection.SetCondition( rString);} + int IsCondHidden()const + {return aSection.IsCondHidden();} + int IsHidden()const + {return aSection.IsHidden();} + int IsProtect()const + {return aSection.IsProtect();} + void SetHidden(int bFlag = TRUE) + {aSection.SetHidden(bFlag);} + void SetCondHidden(int bFlag = TRUE) + {aSection.SetCondHidden(bFlag);} + void SetProtect(int bFlag = TRUE) + {aSection.SetProtect(bFlag);} + BOOL IsContent(){return bContent;} + void SetContent(BOOL bValue){bContent = bValue;} + void SetSectionType(SectionType eSectionType) {aSection.SetType(eSectionType);} + SectionType GetSectionType(){return aSection.GetType();} + + void SetSelected(){bSelected = TRUE;} + BOOL IsSelected() const {return bSelected;} + + BOOL IsConditionValid() const {return bIsCondition;} + void SetConditionValid(BOOL bSet) { bIsCondition = bSet;} + +}; + +/************************************************************************* + Dialog "Bereiche bearbeiten" +*************************************************************************/ + +typedef SectRepr* SectReprPtr; +SV_DECL_PTRARR_SORT( SectReprArr, SectReprPtr, 0, 4 ) + +class SwEditRegionDlg : public SfxModalDialog +{ + SvTreeListBox aTree; + CheckBox aPasswdCB; + FixedText aNameFT; + Edit aCurName; + TriStateBox aProtectCB; + TriStateBox aHideCB; + TriStateBox aCondCB; + ConditionEdit aConditionED; + + TriStateBox aFileCB; +#ifdef DDE_AVAILABLE + CheckBox aDDECB; +#endif + FixedText aFileNameFT; +#ifdef DDE_AVAILABLE + FixedText aDDECommandFT; +#endif + Edit aFileNameED; + ComboBox aSubRegionED; + FixedText aSubRegionFT; + OKButton aOK; + CancelButton aCancel; + PushButton aOptionsPB; + PushButton aDismiss; + HelpButton aHelp; + PushButton aFilePB; + GroupBox aGroupBoxName; + GroupBox aGroupBoxOptions; + Bitmap aProtHideBM; + Bitmap aProtNoHideBM; + Bitmap aNoProtHideBM; + Bitmap aNoProtNoHideBM; + Bitmap aExpNode; + Bitmap aCollNode; + + Bitmap aBmpArr[4]; + String aNewPasswd; + SwWrtShell& rSh; + SectReprArr aSectReprArr; + SvLBoxEntry* pAktEntry; + const SwSection*pCurrSect; + + BOOL bIsPasswd :1; + BOOL bIsPasswdSet :1; + BOOL bWeb :1; + + + Bitmap& BuildBitmap(BOOL bProtect,BOOL bHidden) + { return aBmpArr[bProtect+(bHidden<<1)]; } + +public: + SwEditRegionDlg( Window* pParent, SwWrtShell& rWrtSh ); + virtual ~SwEditRegionDlg(); + + void RecurseList( const SwSectionFmt* pFmt, SvLBoxEntry* pEntry); + USHORT FindArrPos(const SwSectionFmt* pFmt); + + void SetPassword(const String& rPassWd); + + DECL_LINK( GetFirstEntryHdl, SvTreeListBox * ); + DECL_LINK( DeselectHdl, SvTreeListBox * ); + + DECL_LINK( OkHdl, CheckBox * ); + DECL_LINK( NameEditHdl, Edit * ); + DECL_LINK( ConditionEditHdl, Edit * ); + + DECL_LINK( ChangePasswdHdl, CheckBox * ); + DECL_LINK( ChangeProtectHdl, TriStateBox * ); + DECL_LINK( ChangeHideHdl, TriStateBox * ); + DECL_LINK( ChangeCondHdl, TriStateBox * ); + DECL_LINK( ChangeDismissHdl, CheckBox * ); + DECL_LINK( UseFileHdl, CheckBox* ); + DECL_LINK( FileSearchHdl, PushButton* ); + DECL_LINK( OptionsHdl, PushButton* ); + DECL_LINK( FileNameHdl, Edit* ); +#ifdef DDE_AVAILABLE + DECL_LINK( DDEHdl, CheckBox* ); +#endif +}; +/************************************************************************* + Dialog "Bereich einfuegen" +*************************************************************************/ + +/* -----------------21.05.99 11:05------------------- + * + * --------------------------------------------------*/ +class SwInsertSectionTabPage : public SfxTabPage +{ + ComboBox aCurName; + CheckBox aProtectCB; + CheckBox aHideCB; + CheckBox aCondCB; + ConditionEdit aConditionED; + CheckBox aFileCB; +#ifdef DDE_AVAILABLE + CheckBox aDDECB; + FixedText aDDECommandFT; +#endif + FixedText aFileNameFT; + Edit aFileNameED; + FixedText aSubRegionFT; + ComboBox aSubRegionED; + PushButton aFilePB; + GroupBox aGroupBoxName; + GroupBox aGroupBoxOptions; + String sSection; + String sFileName; + String sFilterName; + String sFilePasswd; + +// SwFmtCol* pCols; + const String* pPasswdSect; +// SfxRequest* pRequest; + SwWrtShell* pWrtSh; + + DECL_LINK( ChangeHideHdl, CheckBox * ); + DECL_LINK( ChangeProtectHdl, CheckBox * ); + DECL_LINK( ChangeCondHdl, CheckBox * ); + DECL_LINK( NameEditHdl, Edit * ); + DECL_LINK( UseFileHdl, CheckBox* ); + DECL_LINK( FileSearchHdl, PushButton* ); +#ifdef DDE_AVAILABLE + DECL_LINK( DDEHdl, CheckBox* ); +#endif + + void FillList( const SwSectionFmt* pFmt = 0 ); + +public: + SwInsertSectionTabPage(Window *pParent, const SfxItemSet &rAttrSet); + virtual ~SwInsertSectionTabPage(); + + void SetWrtShell(SwWrtShell& rSh); + + virtual BOOL FillItemSet( SfxItemSet& ); + virtual void Reset( const SfxItemSet& ); + + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet); +}; + +class SwSectionFtnEndTabPage : public SfxTabPage +{ + GroupBox aGroupBoxFtn; + CheckBox aFtnNtAtTextEndCB; + + CheckBox aFtnNtNumCB; + FixedText aFtnOffsetLbl; + NumericField aFtnOffsetFld; + + CheckBox aFtnNtNumFmtCB; + FixedText aFtnPrefixFT; + Edit aFtnPrefixED; + ListBox aFtnNumViewBox; + FixedText aFtnSuffixFT; + Edit aFtnSuffixED; + + GroupBox aGroupBoxEnd; + CheckBox aEndNtAtTextEndCB; + + CheckBox aEndNtNumCB; + FixedText aEndOffsetLbl; + NumericField aEndOffsetFld; + + CheckBox aEndNtNumFmtCB; + FixedText aEndPrefixFT; + Edit aEndPrefixED; + ListBox aEndNumViewBox; + FixedText aEndSuffixFT; + Edit aEndSuffixED; + + + DECL_LINK( FootEndHdl, CheckBox * ); + void ResetState( BOOL bFtn, const SwFmtFtnEndAtTxtEnd& ); + +public: + SwSectionFtnEndTabPage( Window *pParent, const SfxItemSet &rAttrSet ); + virtual ~SwSectionFtnEndTabPage(); + + virtual BOOL FillItemSet( SfxItemSet& ); + virtual void Reset( const SfxItemSet& ); + + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet); +}; + +/* -----------------21.05.99 13:07------------------- + * + * --------------------------------------------------*/ +class SwInsertSectionTabDialog : public SfxTabDialog +{ + SwWrtShell& rWrtSh; + SwSection* pToInsertSection; +protected: + virtual void PageCreated( USHORT nId, SfxTabPage &rPage ); + virtual short Ok(); +public: + SwInsertSectionTabDialog(Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh); + virtual ~SwInsertSectionTabDialog(); + + void SetSection(const SwSection& rSect); + SwSection* GetSection() { return pToInsertSection;} +}; + +/* -----------------21.05.99 13:07------------------- + * + * --------------------------------------------------*/ +class SwSectionPropertyTabDialog : public SfxTabDialog +{ +protected: + virtual void PageCreated( USHORT nId, SfxTabPage &rPage ); +public: + SwSectionPropertyTabDialog(Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh); + virtual ~SwSectionPropertyTabDialog(); +}; + +#endif + + diff --git a/sw/source/ui/inc/ribbar.hrc b/sw/source/ui/inc/ribbar.hrc new file mode 100644 index 000000000000..68d73f2b4a81 --- /dev/null +++ b/sw/source/ui/inc/ribbar.hrc @@ -0,0 +1,168 @@ +/************************************************************************* + * + * $RCSfile: ribbar.hrc,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _RIBBAR_HRC +#define _RIBBAR_HRC + +#include "rcid.hrc" + +#define MN_FORM1 1 // Defines fuer NumNames-Popup +#define MN_FORMBASE MN_FORM1 +#define MN_FORM2 2 +#define MN_FORM3 3 +#define MN_FORM4 4 +#define MN_FORM5 5 + +#define WIN_RIBBAR RC_RIBBAR_BEGIN + +#define CB_FORMAT (RC_RIBBAR_BEGIN +1) +#define CB_FONT (RC_RIBBAR_BEGIN +2) +#define CB_SIZE (RC_RIBBAR_BEGIN +3) +#define PB_FORMULA_OK (RC_RIBBAR_BEGIN +4) +#define PB_FORMULA_CANCEL (RC_RIBBAR_BEGIN +5) +#define BMP_OK PB_FORMULA_OK +#define BMP_CANCEL PB_FORMULA_CANCEL +#define RID_TBX_FORMULA (RC_RIBBAR_BEGIN +6) +#define FT_POS (RC_RIBBAR_BEGIN +7) +#define BT_FORMULA (RC_RIBBAR_BEGIN +8) +#define STR_FORMULA (RC_RIBBAR_BEGIN +9) + +#define STR_BACKGROUND_PATTERN (RC_RIBBAR_BEGIN + 10) +#define STR_BACKGROUND_COLOR (RC_RIBBAR_BEGIN + 11) +#define STR_BORDER_COLOR (RC_RIBBAR_BEGIN + 12) +#define STR_BORDER_STYLE (RC_RIBBAR_BEGIN + 13) +#define STR_BORDER_LINE (RC_RIBBAR_BEGIN + 14) +#define STR_TEXT_COLOR (RC_RIBBAR_BEGIN + 15) +#define STR_NUMLIST (RC_RIBBAR_BEGIN + 16) + +#define STR_HELP_TOOLBOX_TOGGLE (RC_RIBBAR_BEGIN + 17) + +#define RID_DRAW_WIN (RC_RIBBAR_BEGIN + 18) +#define RID_CNTRLR_WIN (RC_RIBBAR_BEGIN + 19) +#define RID_ALIGNMENT_WIN (RC_RIBBAR_BEGIN + 20) + +//Resourcen fuer Inputwin (Rechenleiste) +#define RID_WIN_FORMULA (RC_RIBBAR_BEGIN + 21) +#define MN_CALC_POPUP (RC_RIBBAR_BEGIN + 22) + +#define MN_NUMNAMES_POPUP (RC_RIBBAR_BEGIN + 23) +#define RID_INSERT_CTRL (RC_RIBBAR_BEGIN + 24) +#define RID_INSERT_OBJ_CTRL (RC_RIBBAR_BEGIN + 25) +#define RID_INSERT_FIELD_CTRL (RC_RIBBAR_BEGIN + 26) +#define RID_TBL_OPT_CTRL (RC_RIBBAR_BEGIN + 27) +#define RID_BEZIER_WIN (RC_RIBBAR_BEGIN + 28) +#define RID_SCROLL_NAVI_TBX (RC_RIBBAR_BEGIN + 29) +#define RID_SCROLL_NAVIGATION_WIN (RC_RIBBAR_BEGIN + 30) + +#define STR_IMGBTN_START (RC_RIBBAR_BEGIN + 31) + +#define STR_IMGBTN_NEXT_DOWN (STR_IMGBTN_START + 0) +#define STR_IMGBTN_PREV_DOWN (STR_IMGBTN_START + 1) +#define STR_IMGBTN_TBL_DOWN (STR_IMGBTN_START + 2) +#define STR_IMGBTN_FRM_DOWN (STR_IMGBTN_START + 3) +#define STR_IMGBTN_PGE_DOWN (STR_IMGBTN_START + 4) +#define STR_IMGBTN_DRW_DOWN (STR_IMGBTN_START + 5) +#define STR_IMGBTN_CTRL_DOWN (STR_IMGBTN_START + 6) +#define STR_IMGBTN_REG_DOWN (STR_IMGBTN_START + 7) +#define STR_IMGBTN_BKM_DOWN (STR_IMGBTN_START + 8) +#define STR_IMGBTN_GRF_DOWN (STR_IMGBTN_START + 9) +#define STR_IMGBTN_OLE_DOWN (STR_IMGBTN_START +10) +#define STR_IMGBTN_OUTL_DOWN (STR_IMGBTN_START +11) +#define STR_IMGBTN_SEL_DOWN (STR_IMGBTN_START +12) +#define STR_IMGBTN_FTN_DOWN (STR_IMGBTN_START +13) +#define STR_IMGBTN_MARK_DOWN (STR_IMGBTN_START +14) +#define STR_IMGBTN_POSTIT_DOWN (STR_IMGBTN_START +15) +#define STR_IMGBTN_SRCH_REP_DOWN (STR_IMGBTN_START +16) +#define STR_IMGBTN_INDEX_ENTRY_DOWN (STR_IMGBTN_START +17) +#define STR_IMGBTN_TBLFML_DOWN (STR_IMGBTN_START +18) +#define STR_IMGBTN_TBLFML_ERR_DOWN (STR_IMGBTN_START +19) + +#define STR_IMGBTN_NEXT_UP (STR_IMGBTN_START +20) +#define STR_IMGBTN_PREV_UP (STR_IMGBTN_START +21) +#define STR_IMGBTN_TBL_UP (STR_IMGBTN_START +22) +#define STR_IMGBTN_FRM_UP (STR_IMGBTN_START +23) +#define STR_IMGBTN_PGE_UP (STR_IMGBTN_START +24) +#define STR_IMGBTN_DRW_UP (STR_IMGBTN_START +25) +#define STR_IMGBTN_CTRL_UP (STR_IMGBTN_START +26) +#define STR_IMGBTN_REG_UP (STR_IMGBTN_START +27) +#define STR_IMGBTN_BKM_UP (STR_IMGBTN_START +28) +#define STR_IMGBTN_GRF_UP (STR_IMGBTN_START +29) +#define STR_IMGBTN_OLE_UP (STR_IMGBTN_START +30) +#define STR_IMGBTN_OUTL_UP (STR_IMGBTN_START +31) +#define STR_IMGBTN_SEL_UP (STR_IMGBTN_START +32) +#define STR_IMGBTN_FTN_UP (STR_IMGBTN_START +33) +#define STR_IMGBTN_MARK_UP (STR_IMGBTN_START +34) +#define STR_IMGBTN_POSTIT_UP (STR_IMGBTN_START +35) +#define STR_IMGBTN_SRCH_REP_UP (STR_IMGBTN_START +36) +#define STR_IMGBTN_INDEX_ENTRY_UP (STR_IMGBTN_START +37) +#define STR_IMGBTN_TBLFML_UP (STR_IMGBTN_START +38) +#define STR_IMGBTN_TBLFML_ERR_UP (STR_IMGBTN_START +39) + +#define BTN_NAVI (STR_IMGBTN_START +40) + +#define MN_ANCHOR_POPUP (STR_IMGBTN_START +41) + +#define RC_RIBBAR_ACT_END MN_ANCHOR_POPUP + +#if RC_RIBBAR_ACT_END > RC_RIBBAR_END +#error Resource-Id Ueberlauf in #file, #line +#endif + +#endif diff --git a/sw/source/ui/inc/rowht.hxx b/sw/source/ui/inc/rowht.hxx new file mode 100644 index 000000000000..4357697a786b --- /dev/null +++ b/sw/source/ui/inc/rowht.hxx @@ -0,0 +1,103 @@ +/************************************************************************* + * + * $RCSfile: rowht.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _ROWHT_HXX +#define _ROWHT_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +class SwWrtShell; + +class SwTableHeightDlg : public SvxStandardDialog +{ + MetricField aHeightEdit; + CheckBox aAutoHeightCB; + GroupBox aHeightFrm; + OKButton aOKBtn; + CancelButton aCancelBtn; + HelpButton aHelpBtn; + SwWrtShell &rSh; + +protected: + virtual void Apply(); + +public: + SwTableHeightDlg( Window *pParent, SwWrtShell &rS ); +}; + +#endif diff --git a/sw/source/ui/inc/scroll.hxx b/sw/source/ui/inc/scroll.hxx new file mode 100644 index 000000000000..0d15009d6ccd --- /dev/null +++ b/sw/source/ui/inc/scroll.hxx @@ -0,0 +1,105 @@ +/************************************************************************* + * + * $RCSfile: scroll.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:41 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SCROLL_HXX +#define _SCROLL_HXX + +#ifndef _SCRBAR_HXX //autogen +#include <vcl/scrbar.hxx> +#endif + +class SwRect; + +class SwScrollbar: public ScrollBar +{ + Size aDocSz; + BOOL bHori :1; // Horizontal = TRUE, sonst Vertikal + BOOL bAuto :1; // fuer Scrollingmode + BOOL bThumbEnabled:1; + BOOL bVisible :1; // Show/Hide sollen nur noch dieses Flag setzen + BOOL bSizeSet :1; // wurde die Groesse bereits gesetzt? + + void AutoShow(); +public: + void Show( BOOL bVisible = TRUE ); + void Hide() { Show( FALSE ); } + void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize ); + BOOL IsVisible(BOOL bReal = FALSE) const { return bReal ? ScrollBar::IsVisible() : bVisible; } + void SetUpdateMode( BOOL bUpdate ); + // Aenderung der Dokumentgroesse + void DocSzChgd(const Size &rNewSize); + // Aenderung des sichtbaren Bereiches + void ViewPortChgd(const Rectangle &rRectangle); + // was fuer einer ist es denn ?? + int IsHoriScroll() const { return bHori; } + + void SetAuto(BOOL bSet); + BOOL IsAuto() { return bAuto;} + + //Bewegungen des Thumbs abklemmen + void EnableThumbPos( BOOL bEnable, const SwRect &rVisArea ); + + SwScrollbar(Window *pParent, int bHori = TRUE ); + ~SwScrollbar(); +}; + + + +#endif diff --git a/sw/source/ui/inc/selglos.hxx b/sw/source/ui/inc/selglos.hxx new file mode 100644 index 000000000000..a348d5546b29 --- /dev/null +++ b/sw/source/ui/inc/selglos.hxx @@ -0,0 +1,113 @@ +/************************************************************************* + * + * $RCSfile: selglos.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SELGLOS_HXX +#define _SELGLOS_HXX + +#ifndef _DIALOG_HXX //autogen +#include <vcl/dialog.hxx> +#endif + + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + + +class SwSelGlossaryDlg : public ModalDialog +{ +protected: + ListBox aGlosBox; + GroupBox aGlosFrm; + OKButton aOKBtn; + CancelButton aCancelBtn; + HelpButton aHelpBtn; + + DECL_LINK(DoubleClickHdl, ListBox*); +public: + SwSelGlossaryDlg(Window * pParent, const String &rShortName); + ~SwSelGlossaryDlg(); + void InsertGlos(const String &rRegion, const String &rGlosName); // inline + USHORT GetSelectedIdx() const; // inline + void SelectEntryPos(USHORT nIdx); // inline +}; + +inline void SwSelGlossaryDlg::InsertGlos(const String &rRegion, + const String &rGlosName) +{ + String aTmp( rRegion ); + aTmp += ':'; + aTmp += rGlosName; + aGlosBox.InsertEntry( aTmp ); +} +inline USHORT SwSelGlossaryDlg::GetSelectedIdx() const +{ return aGlosBox.GetSelectEntryPos(); } +inline void SwSelGlossaryDlg::SelectEntryPos(USHORT nIdx) +{ aGlosBox.SelectEntryPos(nIdx); } + +#endif diff --git a/sw/source/ui/inc/shdwcrsr.hxx b/sw/source/ui/inc/shdwcrsr.hxx new file mode 100644 index 000000000000..17b63243fb77 --- /dev/null +++ b/sw/source/ui/inc/shdwcrsr.hxx @@ -0,0 +1,105 @@ +/************************************************************************* + * + * $RCSfile: shdwcrsr.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SHDWCRSR_HXX +#define _SHDWCRSR_HXX + + +#ifndef _GEN_HXX //autogen +#include <tools/gen.hxx> +#endif +#ifndef _SV_COLOR_HXX //autogen +#include <vcl/color.hxx> +#endif +#include <limits.h> + +class Window; + +class SwShadowCursor +{ + Window* pWin; + Color aCol; + Point aOldPt; + long nOldHeight; + USHORT nOldMode; + + void DrawTri( const Point& rPt, long nHeight, BOOL bLeft ); + void DrawCrsr( const Point& rPt, long nHeight, USHORT nMode ); + +public: + SwShadowCursor( Window& rWin, const Color& rCol ) + : pWin( &rWin ), nOldMode( USHRT_MAX ), aCol( rCol ) {} + ~SwShadowCursor(); + + void SetPos( const Point& rPt, long nHeight, USHORT nMode ); + + void Paint(); + + const Point& GetPoint() const { return aOldPt; } + long GetHeight() const { return nOldHeight; } + USHORT GetMode() const { return nOldMode; } + + Rectangle GetRect() const; +}; + + + +#endif + diff --git a/sw/source/ui/inc/shells.hrc b/sw/source/ui/inc/shells.hrc new file mode 100644 index 000000000000..44eb7efbe3cf --- /dev/null +++ b/sw/source/ui/inc/shells.hrc @@ -0,0 +1,140 @@ +/************************************************************************* + * + * $RCSfile: shells.hrc,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _SHELLS_HRC +#define _SHELLS_HRC + +#include "rcid.hrc" + +#define MSG_REMOVE_LINK (RC_SHELLS_BEGIN + 1) + +#define STR_GRFILTER_OPENERROR (RC_SHELLS_BEGIN + 1) +#define STR_GRFILTER_IOERROR (RC_SHELLS_BEGIN + 2) +#define STR_GRFILTER_FORMATERROR (RC_SHELLS_BEGIN + 3) +#define STR_GRFILTER_VERSIONERROR (RC_SHELLS_BEGIN + 4) +#define STR_GRFILTER_FILTERERROR (RC_SHELLS_BEGIN + 5) +#define STR_GRFILTER_TOOBIG (RC_SHELLS_BEGIN + 6) +#define STR_INSERT_GRAPHIC (RC_SHELLS_BEGIN + 7) +#define STR_NOTIZ_INSERT (RC_SHELLS_BEGIN + 8) +#define DLG_IMPORT_DBNAME (RC_SHELLS_BEGIN + 9) +#define STR_NO_ADDRESSBOOK (RC_SHELLS_BEGIN + 10) +#define STR_REDLINE_COMMENT (RC_SHELLS_BEGIN + 11) +#define STR_REDLINE_INSERTED (RC_SHELLS_BEGIN + 12) +#define STR_REDLINE_DELETED (RC_SHELLS_BEGIN + 13) +#define STR_REDLINE_FMTCOLLSET (RC_SHELLS_BEGIN + 14) + +#define RID_TEXT_TOOLBOX (RC_SHELLS_BEGIN + 15) +#define RID_TABLE_TOOLBOX (RC_SHELLS_BEGIN + 16) +#define RID_FRAME_TOOLBOX (RC_SHELLS_BEGIN + 17) +#define RID_GRAFIK_TOOLBOX (RC_SHELLS_BEGIN + 18) +#define RID_DRAW_TOOLBOX (RC_SHELLS_BEGIN + 19) +#define RID_DRAW_TEXT_TOOLBOX (RC_SHELLS_BEGIN + 20) +#define RID_NUM_TOOLBOX (RC_SHELLS_BEGIN + 21) +#define RID_OLE_TOOLBOX (RC_SHELLS_BEGIN + 22) +#define RID_TOOLS_TOOLBOX (RC_SHELLS_BEGIN + 23) + +#define STR_SHELLNAME_TEXT (RC_SHELLS_BEGIN + 24) +#define STR_SHELLNAME_TABLE (RC_SHELLS_BEGIN + 25) +#define STR_SHELLNAME_FRAME (RC_SHELLS_BEGIN + 26) +#define STR_SHELLNAME_GRAPHIC (RC_SHELLS_BEGIN + 27) +#define STR_SHELLNAME_OBJECT (RC_SHELLS_BEGIN + 28) +#define STR_SHELLNAME_LIST (RC_SHELLS_BEGIN + 29) +#define STR_SHELLNAME_DRAW (RC_SHELLS_BEGIN + 30) +#define STR_SHELLNAME_DRAW_TEXT (RC_SHELLS_BEGIN + 31) + +#define RID_SRCVIEW_TOOLBOX (RC_SHELLS_BEGIN + 32) + +#define RID_BEZIER_TOOLBOX (RC_SHELLS_BEGIN + 33) +#define STR_SHELLNAME_BEZIER (RC_SHELLS_BEGIN + 34) + +#define STR_SWBG_PARAGRAPH (RC_SHELLS_BEGIN + 37) +#define STR_SWBG_GRAPHIC (RC_SHELLS_BEGIN + 38) +#define STR_SWBG_OLE (RC_SHELLS_BEGIN + 39) +#define STR_SWBG_FRAME (RC_SHELLS_BEGIN + 40) +#define STR_SWBG_TABLE (RC_SHELLS_BEGIN + 41) +#define STR_SWBG_TABLE_ROW (RC_SHELLS_BEGIN + 42) +#define STR_SWBG_TABLE_CELL (RC_SHELLS_BEGIN + 43) +#define STR_SWBG_PAGE (RC_SHELLS_BEGIN + 44) +#define STR_SWBG_HEADER (RC_SHELLS_BEGIN + 45) +#define STR_SWBG_FOOTER (RC_SHELLS_BEGIN + 46) +#define MSG_NO_RULER (RC_SHELLS_BEGIN + 47) + +#define STR_SHELLNAME_DRAWFORM (RC_SHELLS_BEGIN + 48) +#define RID_DRAWFORM_TOOLBOX (RC_SHELLS_BEGIN + 49) + +#define STR_REDLINE_FORMATED (RC_SHELLS_BEGIN + 50) +#define STR_REDLINE_TABLECHG (RC_SHELLS_BEGIN + 51) + +#define STR_REDLINE_TITLE (RC_SHELLS_BEGIN + 52) +#define STR_REDLINE_MSG (RC_SHELLS_BEGIN + 53) +#define STR_REDLINE_ACCEPT_ALL (RC_SHELLS_BEGIN + 54) +#define STR_REDLINE_REJECT_ALL (RC_SHELLS_BEGIN + 55) +#define STR_REDLINE_EDIT (RC_SHELLS_BEGIN + 56) +#define STR_REDLINE_AUTOFMT (RC_SHELLS_BEGIN + 57) + +#define SHELLS_ACT_END STR_REDLINE_AUTOFMT + +#if SHELLS_ACT_END > RC_SHELLS_END +#error Resource-Id Ueberlauf in #file, #line +#endif + +#endif + diff --git a/sw/source/ui/inc/split.hxx b/sw/source/ui/inc/split.hxx new file mode 100644 index 000000000000..432e30240bd8 --- /dev/null +++ b/sw/source/ui/inc/split.hxx @@ -0,0 +1,115 @@ +/************************************************************************* + * + * $RCSfile: split.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _TAB_SPLIT_HXX +#define _TAB_SPLIT_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _IMAGEBTN_HXX //autogen +#include <vcl/imagebtn.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +class SwWrtShell; + +class SwSplitTableDlg : public SvxStandardDialog +{ + FixedText aCountLbl; + NumericField aCountEdit; + GroupBox aCountFrm; + ImageRadioButton aHorzBox; + ImageRadioButton aVertBox; + GroupBox aDirFrm; + OKButton aOKBtn; + CancelButton aCancelBtn; + HelpButton aHelpBtn; + SwWrtShell& rSh; + +protected: + virtual void Apply(); + +public: + SwSplitTableDlg(Window *pParent, SwWrtShell& rShell ); + DECL_STATIC_LINK( SwSplitTableDlg, ClickHdl, Button * ); +}; + +#endif diff --git a/sw/source/ui/inc/splittbl.hxx b/sw/source/ui/inc/splittbl.hxx new file mode 100644 index 000000000000..d516ae04188c --- /dev/null +++ b/sw/source/ui/inc/splittbl.hxx @@ -0,0 +1,100 @@ +/************************************************************************* + * + * $RCSfile: splittbl.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SPLITTBL_HXX +#define _SPLITTBL_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +class SwWrtShell; + +class SwSplitTblDlg : public SvxStandardDialog +{ + OKButton aOKPB; + CancelButton aCancelPB; + HelpButton aHelpPB; + GroupBox aSplitGB; + RadioButton aCntntCopyRB; + RadioButton aBoxAttrCopyWithParaRB ; + RadioButton aBoxAttrCopyNoParaRB ; + RadioButton aBorderCopyRB; + + SwWrtShell &rShell; + +protected: + virtual void Apply(); + +public: + SwSplitTblDlg( Window *pParent, SwWrtShell &rSh ); +}; + +#endif + + diff --git a/sw/source/ui/inc/srcedtw.hxx b/sw/source/ui/inc/srcedtw.hxx new file mode 100644 index 000000000000..0e76a8bc8068 --- /dev/null +++ b/sw/source/ui/inc/srcedtw.hxx @@ -0,0 +1,198 @@ +/************************************************************************* + * + * $RCSfile: srcedtw.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SRCEDTW_HXX +#define _SRCEDTW_HXX + +#ifndef _WINDOW_HXX //autogen +#include <vcl/window.hxx> +#endif + +#ifndef _SFXLSTNER_HXX //autogen +#include <svtools/lstner.hxx> +#endif + +#ifndef _TIMER_HXX //autogen +#include <vcl/timer.hxx> +#endif + +#ifndef _TABLE_HXX //autogen +#include <tools/table.hxx> +#endif + +#ifndef _XTEXTEDT_HXX //autogen +#include <svtools/xtextedt.hxx> +#endif + +class ScrollBar; +class SwSrcView; +class SwSrcEditWindow; +class SwSrcViewConfig; +class TextEngine; +class ExtTextView; +class DataChangedEvent; + +class TextViewOutWin : public Window +{ + ExtTextView* pTextView; + +protected: + virtual void Paint( const Rectangle& ); + virtual void KeyInput( const KeyEvent& rKeyEvt ); + virtual void MouseMove( const MouseEvent& rMEvt ); + virtual void MouseButtonDown( const MouseEvent& rMEvt ); + virtual void MouseButtonUp( const MouseEvent& rMEvt ); + virtual void Command( const CommandEvent& rCEvt ); + virtual BOOL Drop( const DropEvent& rEvt ); + virtual BOOL QueryDrop( DropEvent& rEvt ); + virtual void DataChanged( const DataChangedEvent& ); + +public: + TextViewOutWin(Window* pParent, WinBits nBits) : + Window(pParent, nBits), pTextView(0){} + + void SetTextView( ExtTextView* pView ) {pTextView = pView;} + +}; + +//------------------------------------------------------------ + +class SwSrcEditWindow : public Window, public SfxListener +{ +private: + ExtTextView* pTextView; + ExtTextEngine* pTextEngine; + + TextViewOutWin* pOutWin; + ScrollBar *pHScrollbar, + *pVScrollbar; + + SwSrcView* pSrcView; + + const SwSrcViewConfig* pSrcVwConfig; + + long nCurTextWidth; + USHORT nStartLine; + BOOL bReadonly; + BOOL bDoSyntaxHighlight; + BOOL bHighlighting; + + Timer aSyntaxIdleTimer; + Table aSyntaxLineTable; + + void ImpDoHighlight( const String& rSource, USHORT nLineOff ); + + DECL_LINK( SyntaxTimerHdl, Timer * ); + DECL_LINK( TimeoutHdl, Timer * ); + +protected: + + virtual void Resize(); + virtual void DataChanged( const DataChangedEvent& ); + virtual void GetFocus(); +// virtual void LoseFocus(); + + void CreateTextEngine(); + void DoSyntaxHighlight( USHORT nPara ); + + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + + DECL_LINK(ScrollHdl, ScrollBar*); + +public: + SwSrcEditWindow( Window* pParent, SwSrcView* pParentView ); + ~SwSrcEditWindow(); + + void SetScrollBarRanges(); + void InitScrollBars(); + ULONG Read( SvStream& rInput) + {return pTextEngine->Read(rInput);} + ULONG Write( SvStream& rOutput) + {return pTextEngine->Write(rOutput);} + + ExtTextView* GetTextView() + {return pTextView;} + TextEngine* GetTextEngine() + {return pTextEngine;} + SwSrcView* GetSrcView() {return pSrcView;} + + TextViewOutWin* GetOutWin() {return pOutWin;} + void Invalidate(); + + void ClearModifyFlag() + { pTextEngine->SetModified(FALSE); } + BOOL IsModified() const + { return pTextEngine->IsModified();} + void CreateScrollbars(); + + void SetReadonly(BOOL bSet){bReadonly = bSet;} + BOOL IsReadonly(){return bReadonly;} + + void DoDelayedSyntaxHighlight( USHORT nPara ); + + void SyntaxColorsChanged(); + + void SetStartLine(USHORT nLine){nStartLine = nLine;} + + virtual void Command( const CommandEvent& rCEvt ); + void HandleWheelCommand( const CommandEvent& rCEvt ); +}; + +#endif diff --git a/sw/source/ui/inc/srcview.hxx b/sw/source/ui/inc/srcview.hxx new file mode 100644 index 000000000000..d7f73e6594c5 --- /dev/null +++ b/sw/source/ui/inc/srcview.hxx @@ -0,0 +1,165 @@ +/************************************************************************* + * + * $RCSfile: srcview.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SRCVIEW_HXX +#define _SRCIEW_HXX + +#ifndef _VIEWFAC_HXX //autogen +#include <sfx2/viewfac.hxx> +#endif +#ifndef _SFXVIEWSH_HXX //autogen +#include <sfx2/viewsh.hxx> +#endif +#include "srcedtw.hxx" +#include "shellid.hxx" + +class SwDocShell; +class SvxSearchItem; +class SwSrcViewConfig; +class SfxMedium; + +/*-------------------------------------------------------------------- + Beschreibung: + --------------------------------------------------------------------*/ + +class SwSrcView: public SfxViewShell +{ + SwSrcEditWindow aEditWin; + + SvxSearchItem* pSearchItem; + SwSrcViewConfig* pSrcViewConfig; + + BOOL bSourceSaved :1; + void Init(); + + // fuer Readonly-Umschaltung + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + + +protected: + USHORT StartSearchAndReplace(const SvxSearchItem& rItem, + BOOL bFromStart, + BOOL bApi, + BOOL bRecursive = FALSE); + + +public: + + SFX_DECL_VIEWFACTORY(SwSrcView); + SFX_DECL_INTERFACE(SW_SRC_VIEWSHELL); + TYPEINFO(); + + + SwSrcView(SfxViewFrame* pFrame, const SwSrcView&); + SwSrcView(SfxViewFrame* pFrame, SfxViewShell*); + + ~SwSrcView(); + + SwDocShell* GetDocShell(); + SwSrcEditWindow& GetEditWin() {return aEditWin;} + void SaveContent(const String& rTmpFile); + void SaveContentTo(SfxMedium& rMed); + + BOOL IsModified() {return aEditWin.IsModified();} + + + + void Execute(SfxRequest&); + void GetState(SfxItemSet&); + + SvxSearchItem* GetSearchItem(); + void SetSearchItem( const SvxSearchItem& rItem ); + + void Load(SwDocShell* pDocShell); + + virtual USHORT SetPrinter( SfxPrinter* pNew, + USHORT nDiff = SFX_PRINTER_ALL); + virtual ErrCode DoPrint( SfxPrinter *pPrinter, PrintDialog *pPrintDialog, + BOOL bSilent ); + virtual SfxPrinter* GetPrinter( BOOL bCreate = FALSE ); + + void SourceSaved() {bSourceSaved = TRUE;} + BOOL HasSourceSaved() const {return bSourceSaved;} + +}; + + +#endif + + + + + + + + + + + + + + + + + + + + + diff --git a/sw/source/ui/inc/srtdlg.hxx b/sw/source/ui/inc/srtdlg.hxx new file mode 100644 index 000000000000..cbda0c7bef94 --- /dev/null +++ b/sw/source/ui/inc/srtdlg.hxx @@ -0,0 +1,142 @@ +/************************************************************************* + * + * $RCSfile: srtdlg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SRTDLG_HXX +#define _SRTDLG_HXX + +#ifndef _SVX_STDDLG_HXX //autogen +#include <svx/stddlg.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +class SwWrtShell; + +class SwSortDlg : public SvxStandardDialog +{ + FixedText aColLbl; + FixedText aTypLbl; + FixedText aDirLbl; + + CheckBox aKeyCB1; + NumericField aColEdt1; + ListBox aTypDLB1; + RadioButton aSortUpRB; + RadioButton aSortDnRB; + CheckBox aKeyCB2; + NumericField aColEdt2; + ListBox aTypDLB2; + RadioButton aSortUp2RB; + RadioButton aSortDn2RB; + CheckBox aKeyCB3; + NumericField aColEdt3; + ListBox aTypDLB3; + RadioButton aSortUp3RB; + RadioButton aSortDn3RB; + GroupBox aSortGrp; + RadioButton aColumnRB; + RadioButton aRowRB; + + GroupBox aDirGrp; + + RadioButton aDelimTabRB; + RadioButton aDelimFreeRB; + Edit aDelimEdt; + GroupBox aDelimGrp; + OKButton aOkBtn; + CancelButton aCancelBtn; + HelpButton aHelpBtn; + + String aColTxt; + String aRowTxt; + USHORT nX; + USHORT nY; + + SwWrtShell &rSh; + + virtual void Apply(); + DECL_LINK( CheckHdl, CheckBox * ); + DECL_LINK( DelimHdl, RadioButton* ); + +public: + SwSortDlg(Window * pParent, SwWrtShell &rSh); + ~SwSortDlg(); +}; + +#endif + diff --git a/sw/source/ui/inc/swcont.hxx b/sw/source/ui/inc/swcont.hxx new file mode 100644 index 000000000000..1d183504de2f --- /dev/null +++ b/sw/source/ui/inc/swcont.hxx @@ -0,0 +1,149 @@ +/************************************************************************* + * + * $RCSfile: swcont.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _SWCONT_HXX +#define _SWCONT_HXX + +#ifndef _STRING_HXX //autogen +#include <tools/string.hxx> +#endif + +class SwContentType; + +//Reihenfolge und Anzahl mit ResIds abgleichen!! +#define CONTENT_TYPE_OUTLINE 0 +#define CONTENT_TYPE_TABLE 1 +#define CONTENT_TYPE_FRAME 2 +#define CONTENT_TYPE_GRAPHIC 3 +#define CONTENT_TYPE_OLE 4 +#define CONTENT_TYPE_BOOKMARK 5 +#define CONTENT_TYPE_REGION 6 +#define CONTENT_TYPE_URLFIELD 7 +#define CONTENT_TYPE_REFERENCE 8 +#define CONTENT_TYPE_INDEX 9 +#define CONTENT_TYPE_POSTIT 10 +#define CONTENT_TYPE_DRAWOBJECT 11 +#define CONTENT_TYPE_MAX CONTENT_TYPE_DRAWOBJECT +1 + + +// Typen fuer das Globaldokument +#define GLOBAL_CONTENT_REGION 100 +#define GLOBAL_CONTENT_INDEX 101 +#define GLOBAL_CONTENT_TEXT 102 +#define GLOBAL_CONTENT_MAX 3 + +// Strings fuer Kontextmenue +#define CONTEXT_COUNT 12 +#define GLOBAL_CONTEXT_COUNT 13 + +// Modi fuer Drag 'n Drop +#define REGION_MODE_NONE 0 +#define REGION_MODE_LINK 1 +#define REGION_MODE_EMBEDDED 2 + +//---------------------------------------------------------------------------- +//---------------------------------------------------------------------------- + +//mini rtti +class SwTypeNumber +{ + BYTE nTypeId; + + public: + SwTypeNumber(BYTE nId) :nTypeId(nId){} + virtual ~SwTypeNumber(); + + virtual BYTE GetTypeId(); +}; +//---------------------------------------------------------------------------- + +class SwContent : public SwTypeNumber +{ + const SwContentType* pParent; + String sContentName; + long nYPosition; + BOOL bInvisible; +public: + SwContent(const SwContentType* pCnt, const String& rName, long nYPos ); + + virtual BOOL IsProtect() const; + const SwContentType* GetParent() const {return pParent;} + const String& GetName() const {return sContentName;} + int operator==(const SwContent& rCont) const + { + //gleich sind sie nie, sonst fallen sie aus dem Array + return FALSE; + } + int operator<(const SwContent& rCont) const + { + //zuerst nach Position dann nach Name sortieren + return nYPosition != rCont.nYPosition ? + nYPosition < rCont.nYPosition : + sContentName < rCont.sContentName;; + } + + long GetYPos() const {return nYPosition;} + + BOOL IsInvisible() const {return bInvisible;} + void SetInvisible(){ bInvisible = TRUE;} +}; + +#endif diff --git a/sw/source/ui/inc/swlbox.hxx b/sw/source/ui/inc/swlbox.hxx new file mode 100644 index 000000000000..7802eaad10ed --- /dev/null +++ b/sw/source/ui/inc/swlbox.hxx @@ -0,0 +1,231 @@ +/************************************************************************* + * + * $RCSfile: swlbox.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWLBOX_HXX +#define _SWLBOX_HXX + +#ifndef _SVARRAY_HXX //autogen +#include <svtools/svarray.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _COMBOBOX_HXX //autogen +#include <vcl/combobox.hxx> +#endif + +class SwBoxEntry; +class Window; + +SV_DECL_PTRARR_DEL(SwEntryLst, SwBoxEntry*, 10, 10) + +/*-------------------------------------------------------------------- + Beschreibung: SwBoxEntry + --------------------------------------------------------------------*/ + +class SwBoxEntry +{ + friend class SwComboBox; + + BOOL bModified : 1; + BOOL bNew : 1; + +public: + SwBoxEntry(const String& aName, USHORT nId=0); + SwBoxEntry(const SwBoxEntry& rOrg); + SwBoxEntry(); + + String aName; + USHORT nId; +}; + +/*-------------------------------------------------------------------- + Beschreibung: Listbox mit Entry-Verwaltung + --------------------------------------------------------------------*/ + +/*class SwListBox : private ListBox +{ + SwEntryLst aEntryLst; + SwBoxEntry aDefault; + + BOOL SeekEntry( const SwBoxEntry& rEntryLst, USHORT* pPos = 0 ); +public: + // die SwListBox ist default NICHT sortiert! + // Eine Sortierung erfolgt nur ueber das interne Array. Das errechnet + // die richtige Position in der Box! + SwListBox( Window* pParent, const ResId& rId ); + ~SwListBox(); + + void InsertEntry( const SwBoxEntry&, + USHORT nPos = LISTBOX_APPEND ); + void InsertEntrySort( const SwBoxEntry& ); + void RemoveEntry( USHORT nPos ); + void Clear(); + + const SwBoxEntry& GetEntry( USHORT ) const; + const SwBoxEntry& GetSelectEntry() const; + + // ueberladene Methoden der ListBox: + inline void SetSelectHdl( const Link& rLink ); + inline void SetDoubleClickHdl( const Link& rLink ); + inline void SetUpdateMode( BOOL bFlag ); + inline void SelectEntryPos( USHORT nPos, BOOL bSelect = TRUE ); + inline void SelectEntry( const String& rStr, BOOL bSelect = TRUE ); + inline USHORT GetSelectEntryPos( USHORT nSelIndex = 0 ) const; + inline USHORT GetEntryPos( const String& rStr ) const; + inline USHORT GetEntryCount() const; + // fuer zugriffe aufs Control, aber nicht auf die ListBox! + inline Control& GetControl() { return *this; } +}; + +/*-------------------------------------------------------------------- + Beschreibung: fuer ComboBoxen + --------------------------------------------------------------------*/ + +enum SwComboBoxStyle +{ + CBS_UPPER = 0x01, + CBS_LOWER = 0x02, + CBS_ALL = 0x04, + CBS_FILENAME = 0x08, +#ifdef WIN + CBS_SW_FILENAME = CBS_FILENAME | CBS_LOWER +#else + CBS_SW_FILENAME = CBS_FILENAME +#endif +}; + +class SwComboBox : public ComboBox +{ + SwEntryLst aEntryLst; + SwEntryLst aDelEntryLst; + SwBoxEntry aDefault; + USHORT nStyle; + + void InitComboBox(); + void InsertSorted(SwBoxEntry* pEntry); +public: + SwComboBox(Window* pParent, const ResId& rId, + USHORT nStyleBits = CBS_ALL); + ~SwComboBox(); + + virtual void KeyInput( const KeyEvent& rKEvt ); + + void InsertNewEntry(const SwBoxEntry&); + void InsertEntry(const SwBoxEntry&); + + void RemoveEntry(USHORT nPos); + + USHORT GetEntryPos(const SwBoxEntry& rEntry) const; + const SwBoxEntry& GetEntry(USHORT) const; + + USHORT GetRemovedCount() const; + const SwBoxEntry& GetRemovedEntry(USHORT nPos) const; + + USHORT GetNewCount() const; + const SwBoxEntry& GetNewEntry(USHORT nPos) const; + + USHORT GetStyle() const { return nStyle; } + void SetStyle(const USHORT nSt) { nStyle = nSt; } + + String GetText() const; +}; + +/*-------------------------------------------------------------------- + Beschreibung: Inlines + --------------------------------------------------------------------*/ + +/*inline void SwListBox::SetSelectHdl( const Link& rLink ) +{ + ListBox::SetSelectHdl(rLink); +} +inline void SwListBox::SetDoubleClickHdl( const Link& rLink ) +{ + ListBox::SetDoubleClickHdl( rLink ); +} +inline void SwListBox::SetUpdateMode( BOOL bFlag ) +{ + ListBox::SetUpdateMode(bFlag); +} +inline void SwListBox::SelectEntryPos( USHORT nPos, BOOL bSelect ) +{ + ListBox::SelectEntryPos( nPos, bSelect ); +} +inline void SwListBox::SelectEntry( const String& rStr, BOOL bSelect ) +{ + ListBox::SelectEntry( rStr, bSelect ); +} +inline USHORT SwListBox::GetSelectEntryPos( USHORT nSelIndex ) const +{ + return ListBox::GetSelectEntryPos( nSelIndex ); +} +inline USHORT SwListBox::GetEntryPos( const String& rStr ) const +{ + return ListBox::GetEntryPos( rStr ); +} +inline USHORT SwListBox::GetEntryCount() const +{ + return ListBox::GetEntryCount(); +} +*/ +#endif // _SWLBOX_HXX + diff --git a/sw/source/ui/inc/swvset.hxx b/sw/source/ui/inc/swvset.hxx new file mode 100644 index 000000000000..d9b828f10535 --- /dev/null +++ b/sw/source/ui/inc/swvset.hxx @@ -0,0 +1,88 @@ +/************************************************************************* + * + * $RCSfile: swvset.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWVSET_HXX +#define _SWVSET_HXX + +#ifndef _LIST_HXX //autogen +#include <tools/list.hxx> +#endif +#ifndef _SVX_NUMVSET_HXX +#include <svx/numvset.hxx> +#endif + +class SwDocShell; + +class SwRulerValueSet : public SvxBmpNumValueSet +{ + SwDocShell* pSwDocSh; + public: + SwRulerValueSet( Window* pParent, + const ResId& rResId, + const List& rStrNames, + SwDocShell* pSwDocSh ); + ~SwRulerValueSet(); + + virtual void UserDraw( const UserDrawEvent& rUDEvt ); + DECL_STATIC_LINK(SwRulerValueSet, GraphicArrivedHdl_Impl, SvxBrushItem*); + +}; +#endif + diff --git a/sw/source/ui/inc/syncbtn.hxx b/sw/source/ui/inc/syncbtn.hxx new file mode 100644 index 000000000000..361cf0665bb0 --- /dev/null +++ b/sw/source/ui/inc/syncbtn.hxx @@ -0,0 +1,113 @@ +/************************************************************************* + * + * $RCSfile: syncbtn.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWSYNCBTN_HXX +#define _SWSYNCBTN_HXX + +#ifndef _SFX_CHILDWIN_HXX //autogen +#include <sfx2/childwin.hxx> +#endif + +#ifdef _SYNCDLG + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif + +#ifndef _SV_BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +class SwWrtShell; + +/*------------------------------------------------------------------------ + Beschreibung: +------------------------------------------------------------------------*/ + +class SwSyncBtnDlg : public SfxFloatingWindow +{ + PushButton aSyncBtn; + + DECL_LINK( BtnHdl, PushButton* pBtn = 0 ); + +public: + SwSyncBtnDlg(SfxBindings*, SfxChildWindow*, Window *pParent); + ~SwSyncBtnDlg(); +}; +#endif + +/*------------------------------------------------------------------------ + Beschreibung: +------------------------------------------------------------------------*/ + +class SwSyncChildWin : public SfxChildWindow +{ +public: + SwSyncChildWin( Window* , + USHORT nId, + SfxBindings*, + SfxChildWinInfo* ); + + SFX_DECL_CHILDWINDOW( SwSyncChildWin ); +}; + + +#endif + diff --git a/sw/source/ui/inc/table.hrc b/sw/source/ui/inc/table.hrc new file mode 100644 index 000000000000..b0cd5097c8ef --- /dev/null +++ b/sw/source/ui/inc/table.hrc @@ -0,0 +1,84 @@ +/************************************************************************* + * + * $RCSfile: table.hrc,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#include "rcid.hrc" + +#define DLG_INSERT_TABLE RC_TABLE_BEGIN +#define DLG_FORMAT_TABLE (RC_TABLE_BEGIN + 1) +#define DLG_CONV_TEXT_TABLE (RC_TABLE_BEGIN + 2) +#define DLG_INS_ROW_COL (RC_TABLE_BEGIN + 3) +#define DLG_ROW_HEIGHT (RC_TABLE_BEGIN + 4) +#define DLG_SPLIT (RC_TABLE_BEGIN + 5) +#define DLG_COL_WIDTH (RC_TABLE_BEGIN + 6) +#define MSG_ERR_TABLE_MERGE (RC_TABLE_BEGIN + 7) +#define DLG_AUTOFMT_TABLE (RC_TABLE_BEGIN + 9) +#define DLG_SWDLG_STRINPUT (RC_TABLE_BEGIN + 10) +#define TP_TABLE_COLUMN (RC_TABLE_BEGIN + 11) +#define DLG_INSERT_CHART (RC_TABLE_BEGIN + 12) +#define MSG_WRONG_TABLENAME (RC_TABLE_BEGIN + 13) +#define DLG_SPLIT_TABLE (RC_TABLE_BEGIN + 14) +#define DLG_MERGE_TABLE (RC_TABLE_BEGIN + 15) + +#define TABLE_ACT_END DLG_MERGE_TABLE + +#if TABLE_ACT_END > RC_TABLE_END +#error Resource-Id Ueberlauf in #file, #line +#endif diff --git a/sw/source/ui/inc/tabledlg.hxx b/sw/source/ui/inc/tabledlg.hxx new file mode 100644 index 000000000000..bcc4ace8bb0e --- /dev/null +++ b/sw/source/ui/inc/tabledlg.hxx @@ -0,0 +1,148 @@ +/************************************************************************* + * + * $RCSfile: tabledlg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _TABLEDLG_HXX +#define _TABLEDLG_HXX + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +#include "swtypes.hxx" + +class SwWrtShell; +class SwTabCols; +struct TColumn; + +void lcl_ItemSetToTableParam( const SfxItemSet&, SwWrtShell& ); +extern const USHORT __FAR_DATA aUITableAttrRange[]; + +/*------------------------------------------------------- + Tabellendialog +--------------------------------------------------------- */ +class SwTableTabDlg : public SfxTabDialog +{ + SwWrtShell* pShell; + USHORT nHtmlMode; + + virtual void PageCreated(USHORT nId, SfxTabPage& rPage); +public: + SwTableTabDlg( Window* pParent, SfxItemPool& Pool, + const SfxItemSet* pItemSet, SwWrtShell* pSh ); +}; + +class SwTableRep +{ + TColumn* pTColumns; + + SwTwips nTblWidth; + SwTwips nSpace; + SwTwips nLeftSpace; + SwTwips nRightSpace; + USHORT nAlign; + USHORT nColCount; + USHORT nAllCols; + USHORT nWidthPercent; + BOOL bComplex : 1; + BOOL bLineSelected : 1; + BOOL bWidthChanged : 1; + BOOL bColsChanged : 1; + +public: + SwTableRep( const SwTabCols& rTabCol, BOOL bComplex ); + ~SwTableRep(); + + BOOL FillTabCols( SwTabCols& rTabCol ) const; + + SwTwips GetLeftSpace() const {return nLeftSpace;} + void SetLeftSpace(SwTwips nSet) {nLeftSpace = nSet;} + + SwTwips GetRightSpace() const {return nRightSpace;} + void SetRightSpace(SwTwips nSet) {nRightSpace = nSet;} + + SwTwips GetWidth() const {return nTblWidth;} + void SetWidth(SwTwips nSet) {nTblWidth = nSet;} + + USHORT GetWidthPercent() const {return nWidthPercent;} + void SetWidthPercent(USHORT nSet) {nWidthPercent = nSet;} + + USHORT GetAlign() const {return nAlign;} + void SetAlign(USHORT nSet) {nAlign = nSet;} + + BOOL IsComplex() const {return bComplex;} + USHORT GetColCount() const {return nColCount;} + USHORT GetAllColCount() const {return nAllCols;} + + BOOL HasColsChanged() const {return bColsChanged;} + void SetColsChanged() {bColsChanged = TRUE;} + + BOOL HasWidthChanged() const {return bWidthChanged;} + void SetWidthChanged() {bWidthChanged = TRUE;} + + BOOL IsLineSelected() const {return bLineSelected;} + void SetLineSelected(BOOL bSet) {bLineSelected = bSet;} + + SwTwips GetSpace() const { return nSpace;} + void SetSpace(SwTwips nSet) {nSpace = nSet;} + + TColumn* GetColumns() const {return pTColumns;} +}; + +#endif diff --git a/sw/source/ui/inc/tablemgr.hxx b/sw/source/ui/inc/tablemgr.hxx new file mode 100644 index 000000000000..464e6a3bb51c --- /dev/null +++ b/sw/source/ui/inc/tablemgr.hxx @@ -0,0 +1,112 @@ +/************************************************************************* + * + * $RCSfile: tablemgr.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _TABLEMGR_HXX +#define _TABLEMGR_HXX + +#include "swtypes.hxx" +#include "tabcol.hxx" + +class SwFrmFmt; +class SwWrtShell; +class Window; +class SchMemChart; +class SfxItemSet; + +const SwTwips lAutoWidth = INVALID_TWIPS; +const char cParaDelim = 0x0a; + +class SwTableFUNC +{ + SwFrmFmt *pFmt; + SwWrtShell *pSh; + BOOL bCopy; + SwTabCols aCols; +private: + int GetRightSeparator(int nNum) const; +public: + inline SwTableFUNC(SwFrmFmt &); + SwTableFUNC(SwWrtShell *pShell, BOOL bCopyFmt = FALSE); + ~SwTableFUNC(); + + void InitTabCols(); + void ColWidthDlg(Window *pParent ); + SwTwips GetColWidth(USHORT nNum) const; + SwTwips GetMaxColWidth(USHORT nNum) const; + void SetColWidth(USHORT nNum, SwTwips nWidth ); + USHORT GetColCount() const; + USHORT GetCurColNum() const; + + BOOL IsTableSelected() const { return pFmt != 0; } + + const SwFrmFmt *GetTableFmt() const { return pFmt; } + + void InsertChart( SchMemChart& rData, const SfxItemSet* pSet = 0 ); + void UpdateChart(); +}; + +inline SwTableFUNC::SwTableFUNC(SwFrmFmt &rFmt) : + pFmt(&rFmt), + bCopy(FALSE), + pSh(0) +{ +} + +#endif diff --git a/sw/source/ui/inc/tabsh.hxx b/sw/source/ui/inc/tabsh.hxx new file mode 100644 index 000000000000..9e6b3a05211a --- /dev/null +++ b/sw/source/ui/inc/tabsh.hxx @@ -0,0 +1,83 @@ +/************************************************************************* + * + * $RCSfile: tabsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWTABSH_HXX +#define _SWTABSH_HXX + +#include "basesh.hxx" + +class SwTableShell: public SwBaseShell +{ +public: + SFX_DECL_INTERFACE(SW_TABSHELL); + TYPEINFO(); + + void Execute(SfxRequest &); + void GetState(SfxItemSet &); + void GetFrmBorderState(SfxItemSet &rSet); + void GetLineStyleState(SfxItemSet &rSet); + void ExecTableStyle(SfxRequest& rReq); + + void ExecNumberFormat(SfxRequest& rReq); + + SwTableShell(SwView &rView); +}; + +#endif diff --git a/sw/source/ui/inc/tautofmt.hxx b/sw/source/ui/inc/tautofmt.hxx new file mode 100644 index 000000000000..a85da1bcacd2 --- /dev/null +++ b/sw/source/ui/inc/tautofmt.hxx @@ -0,0 +1,162 @@ +/************************************************************************* + * + * $RCSfile: tautofmt.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef SW_TAUTOFMT_HXX +#define SW_TAUTOFMT_HXX + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _LSTBOX_HXX //autogen +#include <vcl/lstbox.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _MOREBTN_HXX //autogen +#include <vcl/morebtn.hxx> +#endif + +#ifndef _VIRDEV_HXX //autogen +#include <vcl/virdev.hxx> +#endif + +class SwView; +class SwTableAutoFmt; +class SvxBoxItem; +class SvxBorderLine; +class AutoFmtPreview; +class SwTableAutoFmtTbl; + +//------------------------------------------------------------------------ + +enum AutoFmtLine { TOP_LINE, BOTTOM_LINE, LEFT_LINE, RIGHT_LINE }; + +//======================================================================== + +class SwAutoFormatDlg : public SfxModalDialog +{ + FixedText aFtFormat; + ListBox aLbFormat; + GroupBox aGbPreview; + CheckBox aBtnNumFormat; + CheckBox aBtnBorder; + CheckBox aBtnFont; + CheckBox aBtnPattern; + CheckBox aBtnAlignment; + GroupBox aGbFormat; + OKButton aBtnOk; + CancelButton aBtnCancel; + HelpButton aBtnHelp; + PushButton aBtnAdd; + PushButton aBtnRemove; + PushButton aBtnRename; + MoreButton aBtnMore; + String aStrTitle; + String aStrLabel; + String aStrClose; + String aStrDelTitle; + String aStrDelMsg; + String aStrRenameTitle; + String aStrInvalidFmt; + AutoFmtPreview* pWndPreview; + + //------------------------ + SwWrtShell* pShell; + SwTableAutoFmtTbl* pTableTbl; + BYTE nIndex; + BYTE nDfltStylePos; + BOOL bCoreDataChanged : 1; + BOOL bSetAutoFmt : 1; + + + void Init( const SwTableAutoFmt* pSelFmt ); + void UpdateChecks( const SwTableAutoFmt&, BOOL bEnableBtn ); + //------------------------ + DECL_LINK( CheckHdl, Button * ); + DECL_LINK( OkHdl, Button * ); + DECL_LINK( AddHdl, void * ); + DECL_LINK( RemoveHdl, void * ); + DECL_LINK( RenameHdl, void * ); + DECL_LINK( SelFmtHdl, void * ); + +public: + SwAutoFormatDlg( Window* pParent, SwWrtShell* pShell, + BOOL bSetAutoFmt = TRUE, + const SwTableAutoFmt* pSelFmt = 0 ); + virtual ~SwAutoFormatDlg(); + + void FillAutoFmtOfIndex( SwTableAutoFmt*& rToFill ) const; +}; + + +#endif // SW_AUTOFMT_HXX + diff --git a/sw/source/ui/inc/tblctrl.hxx b/sw/source/ui/inc/tblctrl.hxx new file mode 100644 index 000000000000..63c54b0d6e79 --- /dev/null +++ b/sw/source/ui/inc/tblctrl.hxx @@ -0,0 +1,93 @@ +/************************************************************************* + * + * $RCSfile: tblctrl.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _TBLCTRL_HXX +#define _TBLCTRL_HXX + + +#ifndef _SFXTBXCTRL_HXX //autogen +#include <sfx2/tbxctrl.hxx> +#endif + + +//---------------------------------------------------------------------------- +// +//---------------------------------------------------------------------------- + +class SwTableOptimizeCtrl : public SfxToolBoxControl +{ + +public: + SFX_DECL_TOOLBOX_CONTROL(); + + SwTableOptimizeCtrl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind ); + ~SwTableOptimizeCtrl(); + + virtual SfxPopupWindowType GetPopupWindowType() const; + virtual SfxPopupWindow* CreatePopupWindow(); + +}; + +// +//---------------------------------------------------------------------------- + +#endif + + diff --git a/sw/source/ui/inc/tblnumfm.hxx b/sw/source/ui/inc/tblnumfm.hxx new file mode 100644 index 000000000000..f24cb39a7462 --- /dev/null +++ b/sw/source/ui/inc/tblnumfm.hxx @@ -0,0 +1,80 @@ +/************************************************************************* + * + * $RCSfile: tblnumfm.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _TBLNUMFM_HXX +#define _TBLNUMFM_HXX + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif + +class Window; +class SfxItemSet; + +class SwNumFmtDlg : public SfxSingleTabDialog +{ +public: + + SwNumFmtDlg(Window* pParent, SfxItemSet& rSet); + ~SwNumFmtDlg(); +}; + +#endif + diff --git a/sw/source/ui/inc/tbxanchr.hxx b/sw/source/ui/inc/tbxanchr.hxx new file mode 100644 index 000000000000..c8f0471d3570 --- /dev/null +++ b/sw/source/ui/inc/tbxanchr.hxx @@ -0,0 +1,84 @@ +/************************************************************************* + * + * $RCSfile: tbxanchr.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _TBXANCHR_HXX +#define _TBXANCHR_HXX + +#ifndef _SFXTBXCTRL_HXX //autogen +#include <sfx2/tbxctrl.hxx> +#endif + +class SwTbxAnchor : public SfxToolBoxControl +{ + USHORT nActAnchorId; + +public: + + virtual void StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pState ); + virtual void Click(); + + SFX_DECL_TOOLBOX_CONTROL(); + + SwTbxAnchor( USHORT nId, ToolBox& rTbx, SfxBindings& rBind ); + ~SwTbxAnchor(); +}; + +#endif + diff --git a/sw/source/ui/inc/tbxmgr.hxx b/sw/source/ui/inc/tbxmgr.hxx new file mode 100644 index 000000000000..86ffbd85e13e --- /dev/null +++ b/sw/source/ui/inc/tbxmgr.hxx @@ -0,0 +1,86 @@ +/************************************************************************* + * + * $RCSfile: tbxmgr.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _TBXMGR_HXX +#define _TBXMGR_HXX + +#ifndef _TBXDRAW_HXX //autogen +#include <svx/tbxdraw.hxx> +#endif + +class SwPopupWindowTbxMgr : public SvxPopupWindowTbxMgr +{ + BOOL bWeb:1; //gilt der WebMode? + ResId aRIdWinTemp; + ResId aRIdTbxTemp; + +public: + SwPopupWindowTbxMgr( USHORT nId, + WindowAlign eAlign, + ResId aRIdWin, + ResId aRIdTbx, + SfxBindings& rBindings ); + + virtual void StateChanged(USHORT nSID, SfxItemState eState, const SfxPoolItem* pState); + virtual SfxPopupWindow* Clone() const; +}; + + +#endif // _TBX_DRAW_HXX diff --git a/sw/source/ui/inc/textsh.hxx b/sw/source/ui/inc/textsh.hxx new file mode 100644 index 000000000000..02a9290c3965 --- /dev/null +++ b/sw/source/ui/inc/textsh.hxx @@ -0,0 +1,132 @@ +/************************************************************************* + * + * $RCSfile: textsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _SWTEXTSH_HXX +#define _SWTEXTSH_HXX + +#ifndef _SWBASESH_HXX +#include <basesh.hxx> +#endif + +class Button; +class SwFldMgr; +class SvxHyperlinkItem; + +class SwTextShell: public SwBaseShell +{ + SwFldMgr* pPostItFldMgr; + + // Itemset pointer for the Graphic-Insert Dialog. This set contains all + // graphic sepcifict attributes and will only be created / deletec by the + // methods InsertGraphicDialog and InitGraphicFrame + SfxItemSet* pInsGrfSetPtr; + + void InsertSymbol( const String& rChars, const String& rFont ); + void InsertHyperlink(const SvxHyperlinkItem& rHlnkItem); + BOOL InsertGraphicDlg(); + void InsertURLButton(const String& rURL, const String& rTarget, const String& rTxt); + void InsertDBFld(const String& sFldName); + +public: + SFX_DECL_INTERFACE(SW_TEXTSHELL); + TYPEINFO(); + + DECL_LINK( PostItNextHdl, Button * ); + DECL_LINK( PostItPrevHdl, Button * ); + DECL_LINK( RedlineNextHdl, Button * ); + DECL_LINK( RedlinePrevHdl, Button * ); + + DECL_LINK( InitGraphicFrame, Button * ); + + void Execute(SfxRequest &); + void GetState(SfxItemSet &); + + void ExecInsert(SfxRequest &); + void StateInsert(SfxItemSet&); + void ExecDelete(SfxRequest &); + void ExecEnterNum(SfxRequest &); + void ExecBasicMove(SfxRequest &); + void ExecMove(SfxRequest &); + void ExecMovePage(SfxRequest &); + void ExecMoveCol(SfxRequest &); + void ExecMoveLingu(SfxRequest &); + void ExecMoveMisc(SfxRequest &); + void ExecField(SfxRequest &rReq); + void StateField(SfxItemSet &); + void ExecIdx(SfxRequest &); + void GetIdxState(SfxItemSet &); + void ExecGlossary(SfxRequest &); + + void ExecCharAttr(SfxRequest &); + void ExecCharButtonAttr(SfxRequest &); + void ExecCharAttrArgs(SfxRequest &); + void ExecParaAttr(SfxRequest &); + void ExecParaAttrArgs(SfxRequest &); + void ExecAttr(SfxRequest &); + void ExecDB(SfxRequest &); + + void GetAttrState(SfxItemSet &); + + SwTextShell(SwView &rView); + virtual ~SwTextShell(); +}; + +#endif diff --git a/sw/source/ui/inc/tmpdlg.hxx b/sw/source/ui/inc/tmpdlg.hxx new file mode 100644 index 000000000000..680b1cf85ee3 --- /dev/null +++ b/sw/source/ui/inc/tmpdlg.hxx @@ -0,0 +1,104 @@ +/************************************************************************* + * + * $RCSfile: tmpdlg.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _SWCHARDLG_HXX +#define _SWCHARDLG_HXX + +#ifndef _SFX_STYLEDLG_HXX //autogen +#include <sfx2/styledlg.hxx> +#endif + +class SfxItemSet; +class FontList; +class SwWrtShell; + +/*-------------------------------------------------------------------- + Beschreibung: Der Tabdialog Traeger der TabPages + --------------------------------------------------------------------*/ + +class SwTemplateDlg: public SfxStyleDialog +{ + + USHORT nType; + USHORT nHtmlMode; + SwWrtShell* pWrtShell; + BOOL bNewStyle; + + DECL_LINK( NumOptionsHdl, PushButton* ); + +public: + SwTemplateDlg( Window* pParent, + SfxStyleSheetBase& rBase, + USHORT nRegion, + BOOL bColumn = FALSE, + SwWrtShell* pActShell = 0, + BOOL bNew = FALSE ); + + ~SwTemplateDlg(); + const SfxItemSet* GetRefreshedSet(); + + virtual void PageCreated( USHORT nId, SfxTabPage &rPage ); + virtual short Ok(); +}; + + +#endif + diff --git a/sw/source/ui/inc/tmplctrl.hxx b/sw/source/ui/inc/tmplctrl.hxx new file mode 100644 index 000000000000..dfaac8722c79 --- /dev/null +++ b/sw/source/ui/inc/tmplctrl.hxx @@ -0,0 +1,96 @@ +/************************************************************************* + * + * $RCSfile: tmplctrl.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _TMPLCTRL_HXX +#define _TMPLCTRL_HXX + +// include --------------------------------------------------------------- + +#ifndef _SFXSTBITEM_HXX //autogen +#include <sfx2/stbitem.hxx> +#endif + +#ifndef _STRING_HXX //autogen +#include <tools/string.hxx> +#endif + + +// class BookmarkToolBoxControl ------------------------------------------- + +class SwTemplateControl : public SfxStatusBarControl +{ +protected: + virtual void Command( const CommandEvent& rCEvt ); +public: + virtual void StateChanged( const SfxPoolItem* pState ); + virtual void Paint( const UserDrawEvent& rEvt ); + + SFX_DECL_STATUSBAR_CONTROL(); + + SwTemplateControl( USHORT nId, StatusBar& rStb, SfxBindings& rBind ); + ~SwTemplateControl(); + +private: + String sTemplate; +}; + + +#endif + diff --git a/sw/source/ui/inc/toxmgr.hxx b/sw/source/ui/inc/toxmgr.hxx new file mode 100644 index 000000000000..05ed0282fe47 --- /dev/null +++ b/sw/source/ui/inc/toxmgr.hxx @@ -0,0 +1,351 @@ +/************************************************************************* + * + * $RCSfile: toxmgr.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _TOXMGR_HXX +#define _TOXMGR_HXX + +#include "tox.hxx" +#ifndef _AUTHFLD_HXX +#include <authfld.hxx> +#endif + +class SwWrtShell; +class SwForm; + +/*-------------------------------------------------------------------- + Beschreibung: Manager fuer Verzeichnisfunktionalitaet + --------------------------------------------------------------------*/ +//one single method will be sufficient to insert AND upate indexes + +class SwTOXDescription +{ + TOXTypes eTOXType; + String aStyleNames[MAXLEVEL]; + String sSequenceName; + String sMainEntryCharStyle; + String sAutoMarkURL; + String* pTitle; + String* pTOUName; + SwForm* pForm; + USHORT nContent; + USHORT nIndexOptions; + USHORT nOLEOptions; + String sAuthBrackets; + SwCaptionDisplay eCaptionDisplay; + SwTOXSortKey eSortKey1; + SwTOXSortKey eSortKey2; + SwTOXSortKey eSortKey3; + BYTE nLevel; + BOOL bFromObjectNames : 1; + BOOL bFromChapter : 1; + BOOL bReadonly: 1; + BOOL bLevelFromChapter : 1; + BOOL bIsAuthSequence :1; + BOOL bSortByDocument :1; + + //TODO: TemplateNames + //const String* pTemplateName = 0, ??? + SwTOXDescription(SwTOXDescription&); +public: + SwTOXDescription(TOXTypes eType) : + eTOXType(eType), + pTitle(0), + pForm(0), + nContent(TOX_MARK | TOX_OUTLINELEVEL), + nLevel(MAXLEVEL), + pTOUName(0), + nIndexOptions(TOI_SAME_ENTRY|TOI_FF|TOI_CASE_SENSITIVE), + nOLEOptions(0), + eCaptionDisplay(CAPTION_COMPLETE), + bFromObjectNames(FALSE), + bFromChapter(FALSE), + bReadonly(TRUE), + bLevelFromChapter(FALSE), + bIsAuthSequence(FALSE), + bSortByDocument(TRUE) + {} + ~SwTOXDescription() + { + delete pTitle; + delete pForm; + delete pTOUName; + } + + void SetTOXType(TOXTypes eSet) { eTOXType = eSet;} + TOXTypes GetTOXType() const { return eTOXType;} + + const String& GetStyleNames(USHORT nLevel) const + {return aStyleNames[nLevel];} + void SetStyleNames(const String& rSet, USHORT nLevel) + {aStyleNames[nLevel] = rSet; } + + const String& GetAutoMarkURL() const { return sAutoMarkURL;} + void SetAutoMarkURL(const String& rSet) {sAutoMarkURL = rSet;} + + void SetTitle(const String& pSet) {delete pTitle; pTitle = new String(pSet);} + const String* GetTitle() const {return pTitle; } + + void SetTOUName(const String& pSet) {delete pTOUName; pTOUName = new String(pSet);} + const String* GetTOUName() const {return pTOUName; } + + void SetForm(const SwForm& rSet) {delete pForm; pForm = new SwForm(rSet);} + const SwForm* GetForm() const {return pForm;} + + void SetContentOptions(USHORT nSet) { nContent = nSet;} + USHORT GetContentOptions() const { return nContent;} + + void SetIndexOptions(USHORT nSet) { nIndexOptions = nSet;} + USHORT GetIndexOptions() const { return nIndexOptions;} + + const String& GetMainEntryCharStyle() const {return sMainEntryCharStyle;} + void SetMainEntryCharStyle(const String& rSet) {sMainEntryCharStyle = rSet;} + + void SetLevel(BYTE nSet) {nLevel = nSet;} + BYTE GetLevel()const {return nLevel; } + + void SetCreateFromObjectNames(BOOL bSet) { bFromObjectNames = bSet;} + BOOL IsCreateFromObjectNames() const {return bFromObjectNames;} + + const String& GetSequenceName() const {return sSequenceName;} + void SetSequenceName(const String& rSet) {sSequenceName = rSet;} + + SwCaptionDisplay GetCaptionDisplay() const { return eCaptionDisplay;} + void SetCaptionDisplay(SwCaptionDisplay eSet) {eCaptionDisplay = eSet;} + + void SetFromChapter(BOOL bSet) { bFromChapter = bSet;} + BOOL IsFromChapter() const {return bFromChapter;} + + void SetReadonly(BOOL bSet){bReadonly = bSet;} + BOOL IsReadonly() const {return bReadonly;} + + USHORT GetOLEOptions() const {return nOLEOptions;} + void SetOLEOptions(USHORT nOpt) {nOLEOptions = nOpt;} + + BOOL IsLevelFromChapter() const {return bLevelFromChapter;} + void SetLevelFromChapter(BOOL bSet) {bLevelFromChapter = bSet;} + + String GetAuthBrackets() const {return sAuthBrackets;} + void SetAuthBrackets(const String& rSet) {sAuthBrackets = rSet;} + + BOOL IsAuthSequence() const {return bIsAuthSequence;} + void SetAuthSequence(BOOL bSet){bIsAuthSequence = bSet;} + + BOOL IsSortByDocument()const {return bSortByDocument ;} + void SetSortByDocument(BOOL bSet) {bSortByDocument = bSet;} + + void SetSortKeys(SwTOXSortKey eKey1, + SwTOXSortKey eKey2, + SwTOXSortKey eKey3); + + SwTOXSortKey GetSortKey1() const {return eSortKey1;} + SwTOXSortKey GetSortKey2() const {return eSortKey2;} + SwTOXSortKey GetSortKey3() const {return eSortKey3;} + + + void ApplyTo(SwTOXBase& rTOXBase); +}; +// -------------------------------------------------------------------------------- +class SwTOXMarkDescription +{ + TOXTypes eTOXType; + int nLevel; + BOOL bMainEntry; + + String* pPrimKey; + String* pSecKey; + String* pAltStr; + String* pTOUName; + +public: + SwTOXMarkDescription(TOXTypes eType) : + eTOXType(eType), + pPrimKey(0), + pSecKey(0), + pAltStr(0), + pTOUName(0), + nLevel(0), + bMainEntry(FALSE) + { + } + ~SwTOXMarkDescription() + { + delete pPrimKey; + delete pSecKey; + delete pAltStr; + delete pTOUName; + } + + TOXTypes GetTOXType()const {return eTOXType;} + + void SetLevel(int nSet) {nLevel = nSet;} + int GetLevel() const {return nLevel;} + + void SetMainEntry(BOOL bSet) {bMainEntry = bSet;} + BOOL IsMainEntry() const {return bMainEntry;} + + void SetPrimKey(const String& rSet) + {delete pPrimKey; pPrimKey = new String(rSet);} + const String* GetPrimKey() const {return pPrimKey;} + + void SetSecKey(const String& rSet) + {delete pSecKey; pSecKey = new String(rSet);} + const String* GetSecKey() const { return pSecKey; } + + void SetAltStr(const String& rSet) + {delete pAltStr; pAltStr = new String(rSet);} + const String* GetAltStr() const { return pAltStr; } + + void SetTOUName(const String& rSet) + {delete pTOUName; pTOUName = new String(rSet);} + const String* GetTOUName() const {return pTOUName;} +}; + +class SwTOXMgr +{ + SwWrtShell* pSh; + SwTOXMark* pCurTOXMark; + SwTOXMarks aCurMarks; + + USHORT GetUserTypeID(const String& rStr); + +public: + SwTOXMgr(SwWrtShell* pShell); + // + // Methoden fuer Verzeichnismarkierungen + // + void InsertTOXMark(const SwTOXMarkDescription& rDesc); + + void UpdateTOXMark(const SwTOXMarkDescription& rDesc); + + + void DeleteTOXMark(); + void NextTOXMark(BOOL bSame=FALSE); + void PrevTOXMark(BOOL bSame=FALSE); + + // Aktuelle TOXmarks holen + USHORT GetTOXMarks(); + USHORT GetTOXMarkCount(); + SwTOXMark* GetTOXMark(USHORT nId); + SwTOXMark* GetCurTOXMark(); + void SetCurTOXMark(USHORT nId); + + // + // Methoden fuer Verzeichnisse + // + BOOL UpdateOrInsertTOX(const SwTOXDescription& rDesc, SwTOXBase** ppBase = 0, const SfxItemSet* pSet = 0); + +#ifdef USE_OLD_INDEXES + void InsertTOI(const USHORT nOptions = TOI_SAME_ENTRY|TOI_FF|TOI_CASE_SENSITIVE, + const String* pTitel = 0, + const SwForm* pForm = 0, + SwTOXBase** ppBase = 0 ); + + BOOL UpdateTOI(const USHORT nOptions, + const String* pTitel = 0, + const SwForm* pForm = 0); + + + void InsertTOC(const USHORT nContent = TOX_MARK | TOX_OUTLINELEVEL, + int nLevel = MAXLEVEL, + const String* pTitel = 0, + const SwForm* pForm = 0, + SwTOXBase** ppBase = 0); + + BOOL UpdateTOC(const USHORT nContent = TOX_MARK | TOX_OUTLINELEVEL, + int nLevel = MAXLEVEL, + const String* pTitel = 0, + const SwForm* pForm = 0); + + void InsertTOU(const USHORT nContent = TOX_MARK, + const String* pTOUName = 0, + const String* pTemplateName = 0, + int nLevel = MAXLEVEL, + const String* pTitel = 0, + const SwForm* pForm = 0, + SwTOXBase** ppBase = 0); + + BOOL UpdateTOU(const USHORT nContent, + const String* pTOUName = 0, + const String* pTemplateName = 0, + int nLevel = MAXLEVEL, + const String* pTitel = 0, + const SwForm* pForm = 0); + +#endif + + const SwTOXType* GetTOXType(TOXTypes eTyp, USHORT nId) const; + const SwTOXBase* GetCurTOX(); + +}; + + +/*-------------------------------------------------------------------- + Beschreibung: Inlines + --------------------------------------------------------------------*/ + +inline USHORT SwTOXMgr::GetTOXMarkCount() + { return aCurMarks.Count(); } + + +inline SwTOXMark* SwTOXMgr::GetCurTOXMark() + { return pCurTOXMark; } + +#endif diff --git a/sw/source/ui/inc/uiborder.hxx b/sw/source/ui/inc/uiborder.hxx new file mode 100644 index 000000000000..fb2790a84896 --- /dev/null +++ b/sw/source/ui/inc/uiborder.hxx @@ -0,0 +1,85 @@ +/************************************************************************* + * + * $RCSfile: uiborder.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _UIBORDER_HXX +#define _UIBORDER_HXX + + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif +class Window; +class SfxItemSet; + +class SwBorderDlg : public SfxSingleTabDialog +{ +public: + + // nType may be: + // SW_BORDER_MODE_PARA + // SW_BORDER_MODE_TABLE + // SW_BORDER_MODE_FRAME + + SwBorderDlg(Window* pParent, SfxItemSet& rSet, USHORT nType); + ~SwBorderDlg(); +}; + +#endif + diff --git a/sw/source/ui/inc/uiitems.hxx b/sw/source/ui/inc/uiitems.hxx new file mode 100644 index 000000000000..4516476eeee4 --- /dev/null +++ b/sw/source/ui/inc/uiitems.hxx @@ -0,0 +1,147 @@ +/************************************************************************* + * + * $RCSfile: uiitems.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _UIITEMS_HXX +#define _UIITEMS_HXX + +#include "pagedesc.hxx" +#include "cmdid.h" +#ifndef _SFXINTITEM_HXX +#include <svtools/intitem.hxx> +#endif +class SwNumRule; +class International; + +/*-------------------------------------------------------------------- + Beschreibung: Container fuer FootNote + --------------------------------------------------------------------*/ +class SwPageFtnInfoItem : public SfxPoolItem +{ + SwPageFtnInfo aFtnInfo; + +public: + + SwPageFtnInfoItem(const USHORT nId, SwPageFtnInfo& rInfo); + SwPageFtnInfoItem(const SwPageFtnInfoItem& rItem ); + ~SwPageFtnInfoItem(); + + virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; + virtual int operator==( const SfxPoolItem& ) const; + virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, + SfxMapUnit eCoreMetric, + SfxMapUnit ePresMetric, + String &rText, + const International* pIntl = 0 ) const; + SwPageFtnInfo& GetPageFtnInfo() { return aFtnInfo; } + const SwPageFtnInfo& GetPageFtnInfo() const { return aFtnInfo; } + void SetPageFtnInfo(SwPageFtnInfo& rInf) { aFtnInfo = rInf; } +}; + +/*******************************************************************/ + +class SwPtrItem : public SfxPoolItem +{ + void* pMisc; + +public: + SwPtrItem( const USHORT nId = FN_PARAM_GRF_DIALOG, void* pPtr = 0); + SwPtrItem( const SwPtrItem& rItem ); + + virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; + virtual int operator==( const SfxPoolItem& ) const; + + void SetValue(void * pPtr) { pMisc= pPtr; } + void* GetValue() const { return pMisc; } +}; + +/*******************************************************************/ + +class SwUINumRuleItem : public SfxPoolItem +{ + SwNumRule* pRule; + +public: + SwUINumRuleItem( const String& rName, const USHORT = FN_PARAM_ACT_NUMBER); + SwUINumRuleItem( const SwNumRule& rRule, const USHORT = FN_PARAM_ACT_NUMBER); + SwUINumRuleItem( const SwUINumRuleItem& rItem ); + virtual ~SwUINumRuleItem(); + + virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; + virtual int operator==( const SfxPoolItem& ) const; + + virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const; + virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ); + + const SwNumRule* GetNumRule() const { return pRule; } + SwNumRule* GetNumRule() { return pRule; } +}; + +/* -----------------17.06.98 17:40------------------- + * + * --------------------------------------------------*/ +class SwBackgroundDestinationItem : public SfxUInt16Item +{ +public: + SwBackgroundDestinationItem(USHORT nWhich, USHORT nValue); + + virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; +}; + +#endif // _UIITEMS_HXX diff --git a/sw/source/ui/inc/uinums.hxx b/sw/source/ui/inc/uinums.hxx new file mode 100644 index 000000000000..601e2a145b03 --- /dev/null +++ b/sw/source/ui/inc/uinums.hxx @@ -0,0 +1,178 @@ +/************************************************************************* + * + * $RCSfile: uinums.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _UINUMS_HXX +#define _UINUMS_HXX + +#ifndef _SVARRAY_HXX //autogen +#include <svtools/svarray.hxx> +#endif + +#ifndef _NUMRULE_HXX +#include <numrule.hxx> +#endif +#ifndef _CFGID_H +#include <cfgid.h> +#endif + +class SfxPoolItem; +class SwWrtShell; +class SvStream; + +#define MAX_NUM_RULES 9 + +typedef SfxPoolItem* SfxPoolItemPtr; +SV_DECL_PTRARR_DEL( _SwNumFmtsAttrs, SfxPoolItemPtr, 5,0 ) + +//------------------------------------------------------------------------ +class SwNumRulesWithName +{ + String aName; + // die Formate der NumRule muessen! unabhaengig von einem Document sein + // (Sie sollen immer vorhanden sein!) + class _SwNumFmtGlobal + { + SwNumFmt aFmt; + String sCharFmtName; + USHORT nCharPoolId; + _SwNumFmtsAttrs aItems; + + _SwNumFmtGlobal& operator=( const _SwNumFmtGlobal& ); + + public: + _SwNumFmtGlobal( const SwNumFmt& rFmt ); + _SwNumFmtGlobal( const _SwNumFmtGlobal& ); + _SwNumFmtGlobal( SvStream&, USHORT nVersion ); + ~_SwNumFmtGlobal(); + + void Store( SvStream& ); + void ChgNumFmt( SwWrtShell& rSh, SwNumFmt& rChg ) const; + }; + + _SwNumFmtGlobal* aFmts[ MAXLEVEL ]; +protected: + void SetName(const String& rSet) {aName = rSet;} + +public: + SwNumRulesWithName(const SwNumRule &, const String &); + SwNumRulesWithName( const SwNumRulesWithName & ); + SwNumRulesWithName(SvStream &, USHORT nVersion); + ~SwNumRulesWithName(); + + const SwNumRulesWithName &operator=(const SwNumRulesWithName &); + + const String& GetName() const { return aName; } + void MakeNumRule( SwWrtShell& rSh, SwNumRule& rChg ) const; + + void Store( SvStream& ); +}; +/******************************************************************** + +********************************************************************/ +class SwBaseNumRules +{ +public: + enum { nMaxRules = MAX_NUM_RULES }; // zur Zeit 9 definierte Forms +protected: + SwNumRulesWithName *pNumRules[ MAX_NUM_RULES ]; + String sFileName; + USHORT nVersion; + BOOL bModified; + + virtual int Load(SvStream&); + virtual BOOL Store(SvStream&); + + void Init(); + +public: + SwBaseNumRules(const String& rFileName); + virtual ~SwBaseNumRules(); + + inline const SwNumRulesWithName* GetRules(USHORT nIdx) const; + const SwNumRulesWithName* GetRules(const String &rName) const; + virtual void ApplyNumRules( + const SwNumRulesWithName &rCopy, + USHORT nIdx); + +}; + +/******************************************************************** + +********************************************************************/ +class SwChapterNumRules : public SwBaseNumRules +{ + +public: + SwChapterNumRules(); + virtual ~SwChapterNumRules(); + + virtual String GetName() const; + virtual void ApplyNumRules( const SwNumRulesWithName &rCopy, + USHORT nIdx); +}; + +// INLINE METHODE -------------------------------------------------------- +inline const SwNumRulesWithName *SwBaseNumRules::GetRules(USHORT nIdx) const +{ + ASSERT(nIdx < nMaxRules, Array der NumRules ueberindiziert.); + return pNumRules[nIdx]; +} + +#endif diff --git a/sw/source/ui/inc/uitool.hxx b/sw/source/ui/inc/uitool.hxx new file mode 100644 index 000000000000..08f8c1ccb014 --- /dev/null +++ b/sw/source/ui/inc/uitool.hxx @@ -0,0 +1,139 @@ +/************************************************************************* + * + * $RCSfile: uitool.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _UITOOL_HXX +#define _UITOOL_HXX + +#ifndef _SV_WINTYPES_HXX //autogen +#include <vcl/wintypes.hxx> +#endif +#ifndef _SV_FIELD_HXX +#include <vcl/field.hxx> +#endif + +#ifndef _SWTYPES_HXX +#include <swtypes.hxx> +#endif + +class MetricFormatter; +class SfxItemSet; +class SfxMedium; +class SwPageDesc; +class Printer; +class SvxTabStopItem; +class SwWrtShell; +class ListBox; +class SwDocShell; +class SwFrmFmt; +class SwTabCols; + + +// Umschalten einer Metric +void SetMetric(MetricFormatter& rCtrl, FieldUnit eUnit); + +// BoxInfoAttribut fuellen +void PrepareBoxInfo(SfxItemSet& rSet, const SwWrtShell& rSh); + +// SfxItemSets <-> PageDesc +void ItemSetToPageDesc(const SfxItemSet& rSet, + SwPageDesc& rPageDesc, + SwWrtShell* pShell ); + +void PageDescToItemSet( const SwPageDesc& rPageDesc, SfxItemSet& rSet); + +// Auffuellen der Tabs mit DefaultTabs +void MakeDefTabs(SwTwips nDefDist, SvxTabStopItem& rTabs); + +// DefaultTabs loeschen aus dem TabStopArray +//void EraseDefTabs(SvxTabStopItem& rTabs); + +// Abstand zwischen dem 1. und zweitem Element ermitteln +USHORT GetTabDist(const SvxTabStopItem& rTabs); + +// erfrage ob im Set eine Sfx-PageDesc-Kombination vorliegt +// und setze diesen im Set und loesche die Transport Items +// (PageBreak & PageModel) aus dem Set +void SwToSfxPageDescAttr( SfxItemSet& rSet ); +void SfxToSwPageDescAttr( const SwWrtShell& rShell, SfxItemSet& rSet ); + +FieldUnit GetDfltMetric(BOOL bWeb); +void SetDfltMetric(FieldUnit eMetric, BOOL bWeb); + +// Umwandlung: Sub(LibName.ModulName) -> LibName.ModulName.Sub +String ConvertMacroFormat(const String& rInput ); + +// besorge einen Filenamen/Filternamen. Wird ppMed uebergeben, wird das +// erzeugte Medium returnt. Auch das FilePassword kann returnt werden. +BOOL GetFileFilterNameDlg( Window& rParent, String& rFileName, + String* pFilePassword =0, String* pFilterName =0, + SfxMedium** ppMed = 0 ); + +// ListBox mit allen Zeichenvorlagen fuellen - ausser Standard! +void FillCharStyleListBox(ListBox& rToFill, SwDocShell* pDocSh, BOOL bSorted = FALSE); +//inserts a string sorted into a ListBox, +USHORT InsertStringSorted(const String& rEntry, ListBox& rToFill, BOOL bHasOffset, const International& rInt); + +// Tabellenbreite und Ausrichtung ermitteln +SwTwips GetTableWidth( SwFrmFmt* pFmt, SwTabCols& rCols, USHORT *pPercent, + SwWrtShell* pSh ); + + +#endif // _UITOOL_HXX diff --git a/sw/source/ui/inc/uivwimp.hxx b/sw/source/ui/inc/uivwimp.hxx new file mode 100644 index 000000000000..cdd3e7935ca1 --- /dev/null +++ b/sw/source/ui/inc/uivwimp.hxx @@ -0,0 +1,121 @@ +/************************************************************************* + * + * $RCSfile: uivwimp.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _UIVWIMP_HXX +#define _UIVWIMP_HXX + +#ifndef _SWVIEW_HXX //autogen +#include <view.hxx> +#endif + +#ifndef _COM_SUN_STAR_VIEW_XSELECTIONSUPPLIER_HPP_ +#include <com/sun/star/view/XSelectionSupplier.hpp> +#endif +#ifndef _CPPUHELPER_IMPLBASE1_HXX_ +#include <cppuhelper/implbase1.hxx> // helper for implementations +#endif + +class SwXTextView; +/* -----------------------------29.05.00 08:22-------------------------------- + + ---------------------------------------------------------------------------*/ +class SwScannerEventListener : public ::cppu::WeakImplHelper1< ::com::sun::star::lang::XEventListener > +{ +private: + + SwView* m_pParent; + +public: + + SwScannerEventListener( SwView* pParent ) : m_pParent( pParent ) {}; + virtual ~SwScannerEventListener(); + + // XEventListener + virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& rEventObject ); + + void ParentDestroyed() { m_pParent = NULL; } +}; +/* --------------------------------------------------------------------------- + + ---------------------------------------------------------------------------*/ +class SwView_Impl +{ + SwView* pView; + ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionSupplier > *pxXTextView; // UNO object + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > xScanEvtLstnr; + SwScannerEventListener* pScanEvtLstnr; + ShellModes eShellMode; + + public: + SwView_Impl(SwView* pShell); + ~SwView_Impl(); + + void SetShellMode(ShellModes eSet); + + ::com::sun::star::view::XSelectionSupplier* GetUNOObject(); + SwXTextView* GetUNOObject_Impl(); + + ShellModes GetShellMode() {return eShellMode;} + + void ExcuteScan(USHORT nSlot); + SwScannerEventListener& GetScannerEventListener(); +}; +#endif + diff --git a/sw/source/ui/inc/unotools.hxx b/sw/source/ui/inc/unotools.hxx new file mode 100644 index 000000000000..fad07a577ec7 --- /dev/null +++ b/sw/source/ui/inc/unotools.hxx @@ -0,0 +1,218 @@ +/************************************************************************* + * + * $RCSfile: unotools.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _UNOTOOLS_HXX +#define _UNOTOOLS_HXX + + +#ifndef _SV_DIALOG_HXX //autogen +#include <vcl/dialog.hxx> +#endif +#ifndef _SV_FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif +#ifndef _SV_EDIT_HXX //autogen +#include <vcl/edit.hxx> +#endif +#ifndef _SV_GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif +#ifndef _SV_BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif +#ifndef _ACTCTRL_HXX //autogen +#include <actctrl.hxx> +#endif +#ifndef _COM_SUN_STAR_FRAME_XCONTROLLER_HPP_ +#include <com/sun/star/frame/XController.hpp> +#endif +#ifndef _COM_SUN_STAR_TEXT_XTEXTCURSOR_HPP_ +#include <com/sun/star/text/XTextCursor.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_ +#include <com/sun/star/container/XNameAccess.hpp> +#endif +#ifndef _COM_SUN_STAR_AWT_XCONTROL_HPP_ +#include <com/sun/star/awt/XControl.hpp> +#endif +#ifndef _COM_SUN_STAR_CONTAINER_XNAMED_HPP_ +#include <com/sun/star/container/XNamed.hpp> +#endif + +#ifndef _SV_RESARY_HXX +#include <vcl/resary.hxx> +#endif + +/* -----------------09.06.99 14:36------------------- + * + * --------------------------------------------------*/ +class SwRenameXNamedDlg : public ModalDialog +{ + FixedText aNewNameFT; + NoSpaceEdit aNewNameED; + GroupBox aNameGB; + OKButton aOk; + CancelButton aCancel; + HelpButton aHelp; + + String sRemoveWarning; + + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed > & xNamed; + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xNameAccess; + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > xSecondAccess; + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > xThirdAccess; + + DECL_LINK(OkHdl, OKButton*); + DECL_LINK(ModifyHdl, NoSpaceEdit*); + +public: + SwRenameXNamedDlg(Window* pParent, ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed > & xNamed, ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xNameAccess); + + void SetForbiddenChars(const String& rSet){aNewNameED.SetForbiddenChars(rSet);} + + void SetAlternativeAccess( ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xSecond, ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xThird) + { + xSecondAccess = xSecond; + xThirdAccess = xThird; + } + +}; +/* -----------------------------15.12.99 09:55-------------------------------- + + ---------------------------------------------------------------------------*/ +class SwOneExampleFrame; +class SwFrmCtrlWindow : public Window +{ + SwOneExampleFrame* pExampleFrame; +public: + SwFrmCtrlWindow(Window* pParent, WinBits nBits, SwOneExampleFrame* pFrame); + + virtual void Command( const CommandEvent& rCEvt ); +}; +/* -----------------------------15.12.99 12:56-------------------------------- + + ---------------------------------------------------------------------------*/ +class MenuResource : public Resource +{ + ResStringArray aMenuArray; + +public: + MenuResource(const ResId& rResId); + + ResStringArray& GetMenuArray() {return aMenuArray;} +}; +/* -----------------27.07.99 15:20------------------- + + --------------------------------------------------*/ +#define EX_SHOW_ONLINE_LAYOUT 0x001 + +//online layout and hard zoom value +#define EX_SHOW_BUSINESS_CARDS 0x003 + +class SwView; +class SwOneExampleFrame +{ + SwFrmCtrlWindow aTopWindow; + Window& rWindow; + ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > _xControl; + ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > _xModel; + ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > _xController; + ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor > _xCursor; + + Timer aLoadedTimer; + Link aInitializedLink; + + MenuResource aMenuRes; + + SwView* pModuleView; + + sal_uInt32 nStyleFlags; + + sal_Bool bIsInitialized; + sal_Bool bServiceAvailable; + + static sal_Bool bShowServiceNotAvailableMessage; + + DECL_LINK( TimeoutHdl, Timer* ); + DECL_LINK( PopupHdl, Menu* ); + +public: + SwOneExampleFrame(Window& rWin, + sal_uInt32 nStyleFlags = EX_SHOW_ONLINE_LAYOUT, + const Link* pInitalizedLink = 0, + String* pURL = 0); + ~SwOneExampleFrame(); + + ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > & GetControl() {return _xControl;} + ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > & GetModel() {return _xModel;} + ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > & GetController() {return _xController;} + ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor > & GetTextCursor() {return _xCursor;} + + void ExecUndo(); + + sal_Bool IsInitialized() const {return bIsInitialized;} + sal_Bool IsServiceAvailable() const {return bServiceAvailable;} + + void CreatePopup(const Point& rPt); + + static void CreateErrorMessage(Window* pParent); +}; +#endif + diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx new file mode 100644 index 000000000000..b792953ddf5a --- /dev/null +++ b/sw/source/ui/inc/unotxvw.hxx @@ -0,0 +1,262 @@ +/************************************************************************* + * + * $RCSfile: unotxvw.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _UNOTXVW_HXX +#define _UNOTXVW_HXX + +#ifndef _SFX_SFXBASECONTROLLER_HXX_ +#include <sfx2/sfxbasecontroller.hxx> +#endif +#ifndef _COM_SUN_STAR_TEXT_XTEXTVIEWCURSOR_HPP_ +#include <com/sun/star/text/XTextViewCursor.hpp> +#endif +#ifndef _COM_SUN_STAR_TEXT_XTEXTVIEWCURSORSUPPLIER_HPP_ +#include <com/sun/star/text/XTextViewCursorSupplier.hpp> +#endif +#ifndef _COM_SUN_STAR_VIEW_XCONTROLACCESS_HPP_ +#include <com/sun/star/view/XControlAccess.hpp> +#endif +#ifndef _COM_SUN_STAR_VIEW_XSCREENCURSOR_HPP_ +#include <com/sun/star/view/XScreenCursor.hpp> +#endif +#ifndef _COM_SUN_STAR_VIEW_XVIEWSETTINGSSUPPLIER_HPP_ +#include <com/sun/star/view/XViewSettingsSupplier.hpp> +#endif +#ifndef _COM_SUN_STAR_VIEW_XSELECTIONSUPPLIER_HPP_ +#include <com/sun/star/view/XSelectionSupplier.hpp> +#endif +#ifndef _COM_SUN_STAR_VIEW_XLINECURSOR_HPP_ +#include <com/sun/star/view/XLineCursor.hpp> +#endif +#ifndef _COM_SUN_STAR_VIEW_XVIEWCURSOR_HPP_ +#include <com/sun/star/view/XViewCursor.hpp> +#endif +#ifndef _COM_SUN_STAR_TEXT_XPAGECURSOR_HPP_ +#include <com/sun/star/text/XPageCursor.hpp> +#endif +#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_ +#include <com/sun/star/beans/XPropertySet.hpp> +#endif +#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSTATE_HPP_ +#include <com/sun/star/beans/XPropertyState.hpp> +#endif +#ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_ +#include <com/sun/star/lang/XServiceInfo.hpp> +#endif +#ifndef _CPPUHELPER_IMPLBASE8_HXX_ +#include <cppuhelper/implbase8.hxx> // helper for implementations +#endif +#ifndef _SFX_ITEMPROP_HXX +#include <svtools/itemprop.hxx> +#endif + + +class SwView; +typedef ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > * XSelectionChangeListenerPtr; +SV_DECL_PTRARR_DEL( SelectionChangeListenerArr, XSelectionChangeListenerPtr, 4, 4 ); + +/****************************************************************************** + * + ******************************************************************************/ +class SwXTextView : + public ::com::sun::star::view::XSelectionSupplier, + public ::com::sun::star::lang::XServiceInfo, + public ::com::sun::star::view::XControlAccess, + public ::com::sun::star::text::XTextViewCursorSupplier, + public ::com::sun::star::view::XViewSettingsSupplier, + public SfxBaseController +{ + SelectionChangeListenerArr aSelChangedListeners; + + SwView* pView; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > * pxViewSettings; + ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextViewCursor > * pxTextViewCursor; + +public: + SwXTextView(SwView* pSwView); + virtual ~SwXTextView(); + + virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL acquire( ) throw(); + virtual void SAL_CALL release( ) throw(); + + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException); + + //XSelectionSupplier + virtual ::com::sun::star::uno::Any SAL_CALL getSelection(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL select(const ::com::sun::star::uno::Any& aInterface) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL addSelectionChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > & xListener) throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removeSelectionChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > & xListener) throw( ::com::sun::star::uno::RuntimeException ); + + //XControlAccess + virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > SAL_CALL getControl(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > & Model) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException ); + + //XTextViewCursorSupplier + virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextViewCursor > SAL_CALL getViewCursor(void) throw( ::com::sun::star::uno::RuntimeException ); + + //XViewSettings + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getViewSettings(void) throw( ::com::sun::star::uno::RuntimeException ); + + //XServiceInfo + virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual BOOL SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); + + void NotifySelChanged(); + + SwView* GetView() {return pView;} + void Invalidate(){pView = 0;} +}; + +/* -----------------17.09.98 12:52------------------- + * + * --------------------------------------------------*/ +class SwXTextViewCursor : public cppu::WeakImplHelper8 +< +::com::sun::star::text::XTextViewCursor, +::com::sun::star::lang::XServiceInfo, +::com::sun::star::text::XPageCursor, +::com::sun::star::view::XScreenCursor, +::com::sun::star::view::XViewCursor, +::com::sun::star::view::XLineCursor, +::com::sun::star::beans::XPropertySet, +::com::sun::star::beans::XPropertyState +> +{ + SwView* pView; + SfxItemPropertySet aPropSet; +public: + SwXTextViewCursor(SwView* pVw); + virtual ~SwXTextViewCursor(); + + //XTextViewCursor + virtual sal_Bool SAL_CALL isVisible(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setVisible(sal_Bool bVisible) throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::awt::Point SAL_CALL getPosition(void) throw( ::com::sun::star::uno::RuntimeException ); + + //XTextCursor - neu + virtual void SAL_CALL collapseToStart( ) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL collapseToEnd( ) throw(::com::sun::star::uno::RuntimeException); + virtual BOOL SAL_CALL isCollapsed( ) throw(::com::sun::star::uno::RuntimeException); + virtual BOOL SAL_CALL goLeft( sal_Int16 nCount, BOOL bExpand ) throw(::com::sun::star::uno::RuntimeException); + virtual BOOL SAL_CALL goRight( sal_Int16 nCount, BOOL bExpand ) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL gotoStart( BOOL bExpand ) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL gotoEnd( BOOL bExpand ) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL gotoRange( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xRange, BOOL bExpand ) throw(::com::sun::star::uno::RuntimeException); + + //XPageCursor + virtual sal_Bool SAL_CALL jumpToFirstPage(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL jumpToLastPage(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL jumpToPage(sal_Int16 nPage) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL jumpToNextPage(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL jumpToPreviousPage(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL jumpToEndOfPage(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL jumpToStartOfPage(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Int16 SAL_CALL getPage(void) throw( ::com::sun::star::uno::RuntimeException ); + + //XTextRange + virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > SAL_CALL getText(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getStart(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getEnd(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual rtl::OUString SAL_CALL getString(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setString(const rtl::OUString& aString) throw( ::com::sun::star::uno::RuntimeException ); + + //XScreenCursor + virtual sal_Bool SAL_CALL screenDown(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL screenUp(void) throw( ::com::sun::star::uno::RuntimeException ); + + //XViewCursor + virtual sal_Bool SAL_CALL goDown(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL goUp(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); +// virtual sal_Bool goLeft(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); +// virtual sal_Bool goRight(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); + + //XLineCursor + virtual sal_Bool SAL_CALL isAtStartOfLine(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL isAtEndOfLine(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL gotoEndOfLine(sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL gotoStartOfLine(sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); + + //XPropertySet + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + + //XPropertyState + virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + + //XServiceInfo + virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual BOOL SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); + + void Invalidate(){pView = 0;} +}; +#endif + + diff --git a/sw/source/ui/inc/usrpref.hxx b/sw/source/ui/inc/usrpref.hxx new file mode 100644 index 000000000000..d07bf0995459 --- /dev/null +++ b/sw/source/ui/inc/usrpref.hxx @@ -0,0 +1,86 @@ +/************************************************************************* + * + * $RCSfile: usrpref.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _USRPREF_HXX +#define _USRPREF_HXX + + +#ifndef _SFXCFGITEM_HXX //autogen +#include <sfx2/cfgitem.hxx> +#endif +#include "viewopt.hxx" + +class SwMasterUsrPref: public SwViewOption, public SfxConfigItem +{ +protected: + virtual int Load(SvStream&); + virtual BOOL Store(SvStream&); + virtual void UseDefault(); + +public: + SwMasterUsrPref(USHORT nType); + + virtual String GetName() const; + + void SetUsrPref(const SwViewOption &rCopy); +}; + +#endif + diff --git a/sw/source/ui/inc/utlui.hrc b/sw/source/ui/inc/utlui.hrc new file mode 100644 index 000000000000..0b1d6ceb02fc --- /dev/null +++ b/sw/source/ui/inc/utlui.hrc @@ -0,0 +1,198 @@ +/************************************************************************* + * + * $RCSfile: utlui.hrc,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _UTLUI_HRC +#define _UTLUI_HRC + +#include "rcid.hrc" + + +#define RID_SW_SHELLRES (RC_UTLUI_BEGIN + 1) +#define RID_STR_SYSTEM (RC_UTLUI_BEGIN + 2) + +// ------------------------------------------------------------------------ + +// Strings in NumberFormatter-Listbox +#define STR_DEFINE_NUMBERFORMAT (RC_UTLUI_BEGIN + 4) + +// Namene der Inhaltstypen (RC_UTLUI_BEGIN + 7) +#define STR_CONTENT_TYPE_FIRST (RC_UTLUI_BEGIN + 8) +#define STR_CONTENT_TYPE_OUTLINE STR_CONTENT_TYPE_FIRST +#define STR_CONTENT_TYPE_TABLE (RC_UTLUI_BEGIN + 9) +#define STR_CONTENT_TYPE_FRAME (RC_UTLUI_BEGIN + 10) +#define STR_CONTENT_TYPE_GRAPHIC (RC_UTLUI_BEGIN + 11) +#define STR_CONTENT_TYPE_OLE (RC_UTLUI_BEGIN + 12) +#define STR_CONTENT_TYPE_BOOKMARK (RC_UTLUI_BEGIN + 13) +#define STR_CONTENT_TYPE_REGION (RC_UTLUI_BEGIN + 14) +#define STR_CONTENT_TYPE_URLFIELD (RC_UTLUI_BEGIN + 15) +#define STR_CONTENT_TYPE_REFERENCE (RC_UTLUI_BEGIN + 16) +#define STR_CONTENT_TYPE_INDEX (RC_UTLUI_BEGIN + 17) +#define STR_CONTENT_TYPE_POSTIT (RC_UTLUI_BEGIN + 18) +#define STR_CONTENT_TYPE_DRAWOBJECT (RC_UTLUI_BEGIN + 19) +#define STR_CONTENT_END (RC_UTLUI_BEGIN + 19) + +#define STR_CONTENT_TYPE_SINGLE_FIRST (STR_CONTENT_END + 1) +#define STR_CONTENT_TYPE_SINGLE_OUTLINE (STR_CONTENT_TYPE_SINGLE_FIRST + 0) +#define STR_CONTENT_TYPE_SINGLE_TABLE (STR_CONTENT_TYPE_SINGLE_FIRST + 1) +#define STR_CONTENT_TYPE_SINGLE_FRAME (STR_CONTENT_TYPE_SINGLE_FIRST + 2) +#define STR_CONTENT_TYPE_SINGLE_GRAPHIC (STR_CONTENT_TYPE_SINGLE_FIRST + 3) +#define STR_CONTENT_TYPE_SINGLE_OLE (STR_CONTENT_TYPE_SINGLE_FIRST + 4) +#define STR_CONTENT_TYPE_SINGLE_BOOKMARK (STR_CONTENT_TYPE_SINGLE_FIRST + 5) +#define STR_CONTENT_TYPE_SINGLE_REGION (STR_CONTENT_TYPE_SINGLE_FIRST + 6) +#define STR_CONTENT_TYPE_SINGLE_URLFIELD (STR_CONTENT_TYPE_SINGLE_FIRST + 7) +#define STR_CONTENT_TYPE_SINGLE_REFERENCE (STR_CONTENT_TYPE_SINGLE_FIRST + 8) +#define STR_CONTENT_TYPE_SINGLE_INDEX (STR_CONTENT_TYPE_SINGLE_FIRST + 9) +#define STR_CONTENT_TYPE_SINGLE_POSTIT (STR_CONTENT_TYPE_SINGLE_FIRST + 10) +#define STR_CONTENT_TYPE_SINGLE_DRAWOBJECT (STR_CONTENT_TYPE_SINGLE_FIRST + 11) +#define STR_CONTENT_SINGLE_END STR_CONTENT_TYPE_SINGLE_DRAWOBJECT + +#define FLD_DOCINFO_BEGIN STR_CONTENT_SINGLE_END +#define FLD_DOCINFO_TITEL FLD_DOCINFO_BEGIN +#define FLD_DOCINFO_THEMA (FLD_DOCINFO_BEGIN + 1) +#define FLD_DOCINFO_KEYS (FLD_DOCINFO_BEGIN + 2) +#define FLD_DOCINFO_COMMENT (FLD_DOCINFO_BEGIN + 3) +#define FLD_DOCINFO_INFO1 (FLD_DOCINFO_BEGIN + 4) +#define FLD_DOCINFO_INFO2 (FLD_DOCINFO_BEGIN + 5) +#define FLD_DOCINFO_INFO3 (FLD_DOCINFO_BEGIN + 6) +#define FLD_DOCINFO_INFO4 (FLD_DOCINFO_BEGIN + 7) +#define FLD_DOCINFO_CREATE (FLD_DOCINFO_BEGIN + 8) +#define FLD_DOCINFO_CHANGE (FLD_DOCINFO_BEGIN + 9) +#define FLD_DOCINFO_PRINT (FLD_DOCINFO_BEGIN + 10) +#define FLD_DOCINFO_DOCNO (FLD_DOCINFO_BEGIN + 11) +#define FLD_DOCINFO_EDIT (FLD_DOCINFO_BEGIN + 12) +#define FLD_DOCINFO_END (FLD_DOCINFO_BEGIN + 13) + +#define STR_SERVICE_UNAVAILABLE (FLD_DOCINFO_END + 1) + +#define STR_AUTH_TYPE_START (FLD_DOCINFO_END + 2) +#define STR_AUTH_TYPE_ARTICLE (STR_AUTH_TYPE_START + 0) +#define STR_AUTH_TYPE_BOOK (STR_AUTH_TYPE_START + 1) +#define STR_AUTH_TYPE_BOOKLET (STR_AUTH_TYPE_START + 2) +#define STR_AUTH_TYPE_CONFERENCE (STR_AUTH_TYPE_START + 3) +#define STR_AUTH_TYPE_INBOOK (STR_AUTH_TYPE_START + 4) +#define STR_AUTH_TYPE_INCOLLECTION (STR_AUTH_TYPE_START + 5) +#define STR_AUTH_TYPE_INPROCEEDINGS (STR_AUTH_TYPE_START + 6) +#define STR_AUTH_TYPE_JOURNAL (STR_AUTH_TYPE_START + 7) +#define STR_AUTH_TYPE_MANUAL (STR_AUTH_TYPE_START + 8) +#define STR_AUTH_TYPE_MASTERSTHESIS (STR_AUTH_TYPE_START + 9) +#define STR_AUTH_TYPE_MISC (STR_AUTH_TYPE_START + 10) +#define STR_AUTH_TYPE_PHDTHESIS (STR_AUTH_TYPE_START + 11) +#define STR_AUTH_TYPE_PROCEEDINGS (STR_AUTH_TYPE_START + 12) +#define STR_AUTH_TYPE_TECHREPORT (STR_AUTH_TYPE_START + 13) +#define STR_AUTH_TYPE_UNPUBLISHED (STR_AUTH_TYPE_START + 14) +#define STR_AUTH_TYPE_EMAIL (STR_AUTH_TYPE_START + 15) +#define STR_AUTH_TYPE_WWW (STR_AUTH_TYPE_START + 16) +#define STR_AUTH_TYPE_CUSTOM1 (STR_AUTH_TYPE_START + 17) +#define STR_AUTH_TYPE_CUSTOM2 (STR_AUTH_TYPE_START + 18) +#define STR_AUTH_TYPE_CUSTOM3 (STR_AUTH_TYPE_START + 19) +#define STR_AUTH_TYPE_CUSTOM4 (STR_AUTH_TYPE_START + 20) +#define STR_AUTH_TYPE_CUSTOM5 (STR_AUTH_TYPE_START + 21) +#define STR_AUTH_TYPE_END (STR_AUTH_TYPE_CUSTOM5) + +#define STR_AUTH_FIELD_START (STR_AUTH_TYPE_END + 1) +#define STR_AUTH_FIELD_IDENTIFIER (STR_AUTH_FIELD_START + 0) +#define STR_AUTH_FIELD_AUTHORITY_TYPE (STR_AUTH_FIELD_START + 1) +#define STR_AUTH_FIELD_ADDRESS (STR_AUTH_FIELD_START + 2) +#define STR_AUTH_FIELD_ANNOTE (STR_AUTH_FIELD_START + 3) +#define STR_AUTH_FIELD_AUTHOR (STR_AUTH_FIELD_START + 4) +#define STR_AUTH_FIELD_BOOKTITLE (STR_AUTH_FIELD_START + 5) +#define STR_AUTH_FIELD_CHAPTER (STR_AUTH_FIELD_START + 6) +#define STR_AUTH_FIELD_EDITION (STR_AUTH_FIELD_START + 7) +#define STR_AUTH_FIELD_EDITOR (STR_AUTH_FIELD_START + 8) +#define STR_AUTH_FIELD_HOWPUBLISHED (STR_AUTH_FIELD_START + 9) +#define STR_AUTH_FIELD_INSTITUTION (STR_AUTH_FIELD_START + 10) +#define STR_AUTH_FIELD_JOURNAL (STR_AUTH_FIELD_START + 11) +#define STR_AUTH_FIELD_MONTH (STR_AUTH_FIELD_START + 12) +#define STR_AUTH_FIELD_NOTE (STR_AUTH_FIELD_START + 13) +#define STR_AUTH_FIELD_NUMBER (STR_AUTH_FIELD_START + 14) +#define STR_AUTH_FIELD_ORGANIZATIONS (STR_AUTH_FIELD_START + 15) +#define STR_AUTH_FIELD_PAGES (STR_AUTH_FIELD_START + 16) +#define STR_AUTH_FIELD_PUBLISHER (STR_AUTH_FIELD_START + 17) +#define STR_AUTH_FIELD_SCHOOL (STR_AUTH_FIELD_START + 18) +#define STR_AUTH_FIELD_SERIES (STR_AUTH_FIELD_START + 19) +#define STR_AUTH_FIELD_TITLE (STR_AUTH_FIELD_START + 20) +#define STR_AUTH_FIELD_TYPE (STR_AUTH_FIELD_START + 21) +#define STR_AUTH_FIELD_VOLUME (STR_AUTH_FIELD_START + 22) +#define STR_AUTH_FIELD_YEAR (STR_AUTH_FIELD_START + 23) +#define STR_AUTH_FIELD_URL (STR_AUTH_FIELD_START + 24) +#define STR_AUTH_FIELD_CUSTOM1 (STR_AUTH_FIELD_START + 25) +#define STR_AUTH_FIELD_CUSTOM2 (STR_AUTH_FIELD_START + 26) +#define STR_AUTH_FIELD_CUSTOM3 (STR_AUTH_FIELD_START + 27) +#define STR_AUTH_FIELD_CUSTOM4 (STR_AUTH_FIELD_START + 28) +#define STR_AUTH_FIELD_CUSTOM5 (STR_AUTH_FIELD_START + 29) +#define STR_AUTH_FIELD_ISBN (STR_AUTH_FIELD_START + 30) +#define STR_AUTH_FIELD_END (STR_AUTH_FIELD_ISBN) + +#define RES_FRMEX_MENU (STR_AUTH_FIELD_END + 1) + +#define DLG_NAVIGATION_PI (RC_UTLUI_BEGIN + 1) +#define DLG_ADDR_PI (RC_UTLUI_BEGIN + 2) +#define DLG_GLOSSARY_DECIDE_DLG (RC_UTLUI_BEGIN + 3) + +#define IMG_NAVI_ENTRYBMP (RC_UTLUI_BEGIN + 4) + +#define UTLUI_ACT_END RES_FRMEX_MENU + +#if UTLUI_ACT_END > RC_UTLUI_END +#error Resource-Id Ueberlauf in #file, #line +#endif + +#endif diff --git a/sw/source/ui/inc/view.hxx b/sw/source/ui/inc/view.hxx new file mode 100644 index 000000000000..38694520c2f3 --- /dev/null +++ b/sw/source/ui/inc/view.hxx @@ -0,0 +1,655 @@ +/************************************************************************* + * + * $RCSfile: view.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWVIEW_HXX +#define _SWVIEW_HXX + +#ifndef _TIMER_HXX //autogen +#include <vcl/timer.hxx> +#endif +#ifndef _SV_FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif +#ifndef _VIEWFAC_HXX //autogen +#include <sfx2/viewfac.hxx> +#endif +#ifndef _SFXVIEWSH_HXX //autogen +#include <sfx2/viewsh.hxx> +#endif +#ifndef _SVX_SVXENUM_HXX //autogen +#include <svx/svxenum.hxx> +#endif +#ifndef _SVX_ZOOMITEM_HXX //autogen +#include <svx/zoomitem.hxx> +#endif + +#ifndef _SWTYPES_HXX +#include <swtypes.hxx> +#endif +#ifndef _SHELLID_HXX +#include <shellid.hxx> +#endif + +class SwBaseShell; +class Button; +class ImageButton; +class SwTxtFmtColl; +class SwPageDesc; +class SwFrmFmt; +class SwCharFmt; +class SwNumRule; +class SwViewOption; +class SwGlossaryHdl; +class SwDrawBase; +class SvxRuler; +class SvxLRSpaceItem; +class SwDocShell; +class SwScrollbar; +class PrintDialog; +class SvxVCBrowser; +class SvBorder; +class Ruler; +class OutlinerView; +class SvxSearchItem; +class SearchAttrItemList; +class SvxSearchDialog; +class SdrView; +class Dialog; +class SdrObject; +class SdrPageView; +class SwNaviImageButton; +class SwHlpImageButton; +class Outliner; +class SwView; +class SwEditWin; +class SwWrtShell; +class SwView_Impl; +namespace com{ namespace sun { namespace star {namespace view{ class XSelectionSupplier;}}}} +class XSelectionObject; +struct SwSearchOptions; +class FmFormShell; +class CommandEvent; +class InsCaptionOpt; +class SvGlobalName; + +const long nLeftOfst = -370; +const long nScrollX = 30; +const long nScrollY = 30; + +#define MINZOOM 20 +#define MAXZOOM 600 + +#define MAX_MARKS 5 + + +enum ShellModes +{ + SEL_TEXT, + SEL_FRAME, + SEL_GRAPHIC, + SEL_OBJECT, + SEL_DRAW, + SEL_DRAW_CTRL, + SEL_DRAW_FORM, + SEL_DRAWTEXT, + SEL_BEZIER, + SEL_LIST_TEXT, + SEL_TABLE_TEXT, + SEL_TABLE_LIST_TEXT +}; + +/*-------------------------------------------------------------------- + Beschreibung: Anwendung einer Vorlage + --------------------------------------------------------------------*/ + +struct SwApplyTemplate +{ + union + { + SwTxtFmtColl* pTxtColl; + SwPageDesc* pPageDesc; + SwFrmFmt* pFrmFmt; + SwCharFmt* pCharFmt; + SwNumRule* pNumRule; + } aColl; + + int eType; + USHORT nColor; + BOOL bUndo; + + SwApplyTemplate() : + eType(0), + nColor(0), + bUndo(FALSE) + { + aColl.pTxtColl = 0; + } +}; + + +/*-------------------------------------------------------------------- + Beschreibung: Sicht auf ein Dokument + --------------------------------------------------------------------*/ + +class SwView: public SfxViewShell +{ + //Messehack (MA,MBA) + friend void lcl_SelectShellForDrop( SwView &rView ); + + friend class TestTemplateItem; + friend class SwSpellWrapper; + friend class SwHyphWrapper; + friend class SwView_Impl; + + //suchen & ersetzen + static SvxSearchDialog *pSrchDlg; + static SvxSearchItem *pSrchItem; + + static USHORT nInsertCtrlState; + static USHORT nWebInsertCtrlState; + static USHORT nInsertObjectCtrlState; + static USHORT nInsertFieldCtrlState; + static USHORT nMoveType; // fuer Buttons unter dem Scrollbar (viewmdi) + static BYTE nActMark; // aktuelle Sprungmarke fuer unbenannte Merker + + static BOOL bExtra; + static BOOL bFound; + static BOOL bJustOpened; + + static SearchAttrItemList* pSrchList; + static SearchAttrItemList* pReplList; + + + Timer aTimer; //Fuer verzoegerte ChgLnks waehrend + //einer Aktion + String aPageStr; //Statusanzeige, aktuelle Seite + String sSwViewData, + //and the new cursor position if the user double click in the PagePreView + sNewCrsrPos; + + Point aTabColFromDocPos; //Verschieben von Tabellenspalten aus + //aus dem Dokument heraus. + Size aDocSz; // aktuelle Dokumentgroesse + Rectangle aVisArea; // sichtbarer Bereich + + SwEditWin *pEditWin; + SwWrtShell *pWrtShell; + + SfxShell *pShell; //aktuelle SubShell auf dem Dispatcher + FmFormShell *pFormShell; // DB-FormShell + + SwView_Impl *pViewImpl; // Impl-Daten fuer UNO + Basic + + + SwScrollbar *pHScrollbar, // MDI Bedienelemente + *pVScrollbar; + + Window *pScrollFill; // Dummy-Window zum Fllen der rechten + // unteren Ecke, wenn beide Scrollbars + // aktiv sind + + SvxRuler *pHLineal, + *pVLineal; + ImageButton *pTogglePageBtn; + + SwHlpImageButton *pPageUpBtn, + *pPageDownBtn; + + SwNaviImageButton *pNaviBtn; + SwGlossaryHdl *pGlosHdl; // Henkel Textbausteine + SwDrawBase *pDrawActual; + + const SwFrmFmt* pLastTableFormat; + + int nSelectionType; + + // Aktueller Drawmode + USHORT nDrawSfxId; + USHORT nFormSfxId; + + BOOL bCenterCrsr : 1, + bTopCrsr : 1, + bAllwaysShowSel : 1, + bTabColFromDoc : 1, + bSetTabColFromDoc : 1 , + bAttrChgNotified : 1, + bAttrChgNotifiedWithRegistrations : 1, + bVerbsActive : 1, + bDrawRotate : 1, + bDrawSelMode : 1, + bShowAtResize : 1, + bInOuterResizePixel : 1, + bIsApi : 1; + + // Methoden fuers Suchen + // Suchkontext setzen + BOOL SearchAndWrap(BOOL bApi = FALSE); + BOOL SearchAll(USHORT* pFound = 0); + ULONG FUNC_Search( const SwSearchOptions& rOptions ); + void Replace(); + + inline BOOL IsDocumentBorder(); + + BOOL IsTextTool() const; + + // Bedienelemente verwalten anlegen + void CreateBtns(); + DECL_LINK( BtnPage, Button * ); + + DECL_LINK( TimeoutHdl, Timer * ); + + inline long GetXScroll() const; + inline long GetYScroll() const; + Point AlignToPixel(const Point& rPt) const; + void CalcPt( Point* pPt,const Rectangle& rRect, + USHORT nRangeX = USHRT_MAX, + USHORT nRangeY = USHRT_MAX); + + BOOL GetPageScrollUpOffset(SwTwips& rOff) const; + BOOL GetPageScrollDownOffset(SwTwips& rOff) const; + + // Scrollbar Movements + long PageUp(); + long PageDown(); + long PageUpCrsr(BOOL bSelect); + long PageDownCrsr(BOOL bSelect); + long PhyPageUp(); + long PhyPageDown(); + + int _CreateScrollbar( int bHori ); + int _KillScrollbar( int bHori ); + DECL_LINK( ScrollHdl, SwScrollbar * ); + DECL_LINK( EndScrollHdl, SwScrollbar * ); + BOOL UpdateScrollbars(); + void CalcVisArea( const Size &rPixelSz ); + + int _CreateVLineal(); + int _KillVLineal(); + int _CreateTab(); + int _KillTab(); + void CreatePageButtons(BOOL bShow); + + // Linguistik-Funktionen + void SpellDocument( const String* pStr, BOOL bAllRight = FALSE ); + void HyphenateDocument(); + BOOL IsDrawTextHyphenate(); + void HyphenateDrawText(); + void StartThesaurus(); + + void SpellStart( SvxSpellArea eSpell, BOOL bStartDone, + BOOL bEndDone ); + void HyphStart( SvxSpellArea eSpell ); + void SpellEnd(); + void _SpellDocument( const String* pStr, BOOL bAllRight ); + BOOL CheckSpecialCntnt(); + void SpellKontext(BOOL bOn = TRUE) + { bCenterCrsr = bOn; bAllwaysShowSel = bOn; } + + // Methoden fuers Printing + virtual SfxPrinter* GetPrinter( BOOL bCreate = FALSE ); + virtual PrintDialog* CreatePrintDialog( Window* pParent ); + SfxTabPage* CreatePrintOptionsPage( Window* pParent, + const SfxItemSet& rSet); + // fuer Readonly-Umschaltung + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); + void _CheckReadonlyState(); + void _CheckReadonlySelection(); + + // Methode fuer PageDesc drehen + void SwapPageMargin(const SwPageDesc&, SvxLRSpaceItem& rLR); + + void _SetZoom( const Size &rEditSz, + SvxZoomType eZoomType, + short nFactor = 100, + BOOL bViewOnly = FALSE); + void CalcAndSetBorderPixel( SvBorder &rToFill, FASTBOOL bInner ); + + void ShowAtResize(); + + virtual void Move(); + + +protected: + + SwView_Impl* GetViewImpl() {return pViewImpl;} + + void ImpSetVerb( int nSelType ); + + int GetSelectionType() const { return nSelectionType; } + void SetSelectionType(int nSet) { nSelectionType = nSet;} + + // fuer die SwWebView + void SetShell( SfxShell* pS ) { pShell = pS; } + void SetFormShell( FmFormShell* pSh ) { pFormShell = pSh; } + + virtual void SelectShell(); + + virtual void Activate(BOOL); + virtual void Deactivate(BOOL); + virtual void InnerResizePixel( const Point &rOfs, const Size &rSize ); + virtual void OuterResizePixel( const Point &rOfs, const Size &rSize ); + virtual Size GetOptimalSizePixel() const; + + void SetImageButtonColor(Color& rColor); + + const SwFrmFmt* GetLastTblFrmFmt() const {return pLastTableFormat;} + void SetLastTblFrmFmt(const SwFrmFmt* pSet) {pLastTableFormat = pSet;} + +public: + + SFX_DECL_VIEWFACTORY(SwView); + SFX_DECL_INTERFACE(SW_VIEWSHELL); + TYPEINFO(); + + SfxDispatcher &GetDispatcher(); + + virtual SdrView* GetDrawView() const; + virtual void UIDeactivate( SvInPlaceObject *pIPObj ); + virtual BOOL HasUIFeature( ULONG nFeature ); + virtual void ShowCursor( FASTBOOL bOn = TRUE ); + virtual ErrCode DoVerb( long nVerb ); + + virtual USHORT SetPrinter( SfxPrinter* pNew, + USHORT nDiff = SFX_PRINTER_ALL); + virtual ErrCode DoPrint( SfxPrinter *pPrinter, PrintDialog *pPrintDialog, + BOOL bSilent ); + ShellModes GetShellMode(); + + com::sun::star::view::XSelectionSupplier* GetUNOObject(); + + String GetSelectionTextParam( BOOL bCompleteWords, + BOOL bEraseTrail, + BOOL bExtendedDelimiter = FALSE ); + virtual BOOL HasSelection( BOOL bText ) const; + virtual String GetSelectionText( BOOL bCompleteWords ); + virtual USHORT PrepareClose( BOOL bUI = TRUE, BOOL bForBrowsing = FALSE ); + virtual void MarginChanged(); + + // Shell sofort wechseln -> fuer GetSelectionObject + void StopShellTimer(); + // hier wird bei Bedarf SelectShell gerufen (getSelection) + void PrepareGetSelection(); + + inline SwWrtShell& GetWrtShell () const { return *pWrtShell; } + inline SwWrtShell* GetWrtShellPtr() const { return pWrtShell; } + + inline SwEditWin &GetEditWin() { return *pEditWin; } + inline const SwEditWin &GetEditWin () const { return *pEditWin; } + +#if defined WIN || defined WNT || defined UNX + void ScannerEventHdl( const ::com::sun::star::lang::EventObject& rEventObject ); +#endif + + //Handler fuer Textbausteine an die Textshell rausreichen, gfs. anlegen + SwGlossaryHdl* GetGlosHdl(); + + inline const Rectangle& GetVisArea() const { return aVisArea; } + + BOOL IsScroll(const Rectangle& rRect) const; + void Scroll( const Rectangle& rRect, + USHORT nRangeX = USHRT_MAX, + USHORT nRangeY = USHRT_MAX); + + long SetVScrollMax(long lMax); + long SetHScrollMax(long lMax); + + DECL_LINK( SpellError, void * ); + BOOL ExecSpellPopup( const Point& rPt ); + BOOL ExecDrwTxtSpellPopup(const Point& rPt); + + void SetTabColFromDocPos( const Point &rPt ) { aTabColFromDocPos = rPt; } + void SetTabColFromDoc( BOOL b ) { bTabColFromDoc = b; } + BOOL IsTabColFromDoc() const { return bTabColFromDoc; } + + void DocSzChgd( const Size& rNewSize ); + const Size& GetDocSz() const { return aDocSz; } + virtual void SetVisArea( const Rectangle&, BOOL bUpdateScrollbar = TRUE); + void SetVisArea( const Point&, BOOL bUpdateScrollbar = TRUE); + void CheckVisArea(); + + static Dialog* GetSearchDialog(); + + static USHORT GetMoveType(); + static void SetMoveType(USHORT nSet); + void MoveNavigation(BOOL bNext); + static void SetActMark(BYTE nSet); + + BOOL HandleWheelCommands( const CommandEvent& ); + + // Rahmen einfuegen + void InsFrmMode(USHORT nCols); + + void SetZoom( SvxZoomType eZoomType, short nFactor = 100, BOOL bViewOnly = FALSE); + virtual void SetZoomFactor( const Fraction &rX, const Fraction & ); + + inline int StatHScrollbar() const; + inline int CreateHScrollbar(); + inline int KillHScrollbar(); + + inline int CreateVScrollbar(); + inline int KillVScrollbar(); + inline int StatVScrollbar() const; + + inline int CreateVLineal(); + inline int KillVLineal(); + int StatVLineal() const { return pVLineal != 0; } + void ChangeVLinealMetric(FieldUnit eUnit); + + inline int CreateTab(); + inline int KillTab(); + int StatTab() const { return ((Window*)pHLineal)->IsVisible(); } + SvxRuler *GetHLineal() { return pHLineal; } + SvxRuler *GetVLineal() { return pVLineal; } + void InvalidateRulerPos(); + void ChangeTabMetric(FieldUnit eUnit); + + // Handler + void Execute(SfxRequest&); + void ExecPageMove(SfxRequest&); + void ExecStyle(SfxRequest&); + void ExecLingu(SfxRequest&); + void ExecDataBase(SfxRequest&); + void ExecDlg(SfxRequest&); + void ExecDlgExt(SfxRequest&); + void ExecDBDlg(SfxRequest &); + void ExecColl(SfxRequest&); + void ExecutePrint(SfxRequest&); + void ExecDraw(SfxRequest&); + void ExecTabWin(SfxRequest&); + void ExecuteStatusLine(SfxRequest&); + DECL_LINK( ExecRulerClick, Ruler * ); + void ExecSearch(SfxRequest&, BOOL bNoMessage = FALSE); + + void StateSearch(SfxItemSet &); + void GetState(SfxItemSet&); + void StateStatusLine(SfxItemSet&); + + + // Funktionen fuer Drawing + void SetDrawFuncPtr(SwDrawBase* pFuncPtr); + inline SwDrawBase* GetDrawFuncPtr(BOOL bBuf = FALSE) const { return pDrawActual; } + void GetDrawState(SfxItemSet &rSet); + void ExitDraw(); + inline BOOL IsDrawRotate() { return bDrawRotate; } + inline void FlipDrawRotate() { bDrawRotate = !bDrawRotate; } + inline BOOL IsDrawSelMode() { return bDrawSelMode; } + void SetSelDrawSlot(); + inline void FlipDrawSelMode() { bDrawSelMode = !bDrawSelMode; } + void NoRotate(); // Rotate-Mode abschalten + BOOL EnterDrawTextMode(const Point& aDocPos); + void LeaveDrawCreate() { nDrawSfxId = nFormSfxId = USHRT_MAX; } + BOOL IsDrawMode() { return (nDrawSfxId != USHRT_MAX || nFormSfxId != USHRT_MAX); } + BOOL IsFormMode() const; + BOOL IsBezierEditMode(); + BOOL AreOnlyFormsSelected() const; + BOOL HasDrwObj(SdrObject *pSdrObj) const; + BOOL HasOnlyObj(SdrObject *pSdrObj, UINT32 eObjInventor) const; + BOOL BeginTextEdit( SdrObject* pObj, SdrPageView* pPV=NULL, + Window* pWin=NULL, BOOL bIsNewObj=FALSE); + + void StateTabWin(SfxItemSet&); + + // Attribute haben sich geaendert + DECL_LINK( AttrChangedNotify, SwWrtShell * ); + + // Links bearbeiten + void EditLinkDlg(); + void AutoCaption(const USHORT nType, const SvGlobalName *pOleId = 0); + void InsertCaption(const InsCaptionOpt *pOpt); + + // Async Aufruf durch Core + void UpdatePageNums(USHORT nPhyNum, USHORT nVirtNum, const String& rPgStr); + + String GetPageStr(USHORT nPhyNum, USHORT nVirtNum, const String& rPgStr); + + // Shell rausreichen + SfxShell *GetCurShell() { return pShell; } + SwDocShell *GetDocShell(); + inline const SwDocShell *GetDocShell() const; + inline FmFormShell *GetFormShell() { return pFormShell; } + + //damit in DToren der SubShells ggf. pShell zurueckgesetzt werden kann + void ResetSubShell() { pShell = 0; } + + virtual void WriteUserData(String &, BOOL bBrowse = FALSE ); + virtual void ReadUserData(const String &, BOOL bBrowse = FALSE ); + + void SetCrsrAtTop( BOOL bFlag, BOOL bCenter = FALSE ) + { bTopCrsr = bFlag, bCenterCrsr = bCenter; } + BOOL IsCrsrAtTop() const { return bTopCrsr; } + BOOL IsCrsrAtCenter() const { return bCenterCrsr; } + + BOOL JumpToSwMark( const String& rMark ); + + long InsertDoc( USHORT nSlotId, const String& rFileName, + const String& rFilterName, INT16 nVersion = 0 ); + + SwView(SfxViewFrame* pFrame, SfxViewShell*); + ~SwView(); +}; + +// ----------------- inline Methoden ---------------------- + +inline int SwView::StatHScrollbar() const +{ + return 0 != pHScrollbar; +} +inline int SwView::CreateHScrollbar() +{ + return StatHScrollbar() ? 1 : _CreateScrollbar( TRUE ); +} +inline int SwView::KillHScrollbar() +{ + return StatHScrollbar() ? _KillScrollbar( TRUE ) : 1; +} + +inline int SwView::StatVScrollbar() const +{ + return 0 != pVScrollbar; +} +inline int SwView::CreateVScrollbar() +{ + return StatVScrollbar() ? 1 : _CreateScrollbar( FALSE ); +} +inline int SwView::KillVScrollbar() +{ + return StatVScrollbar() ? _KillScrollbar( FALSE ) : 1; +} + +inline int SwView::CreateVLineal() +{ + return StatVLineal() ? 1 : _CreateVLineal(); +} +inline int SwView::KillVLineal() +{ + return StatVLineal() ? _KillVLineal() : 1; +} + +inline int SwView::CreateTab() +{ + return StatTab() ? 1 : _CreateTab(); +} +inline int SwView::KillTab() +{ + return StatTab() ? _KillTab() : 1; +} + +inline long SwView::GetXScroll() const +{ + return aVisArea.GetWidth() * nScrollX / 100L; +} + +inline long SwView::GetYScroll() const +{ + return aVisArea.GetHeight() * nScrollY / 100L; +} + +inline const SwDocShell *SwView::GetDocShell() const +{ + return ((SwView*)this)->GetDocShell(); +} + +//*********************************************************** + +SfxTabPage* CreatePrintOptionsPage( Window *pParent, + const SfxItemSet &rOptions, + BOOL bPreview); + +#endif diff --git a/sw/source/ui/inc/web.hrc b/sw/source/ui/inc/web.hrc new file mode 100644 index 000000000000..10795ac0899e --- /dev/null +++ b/sw/source/ui/inc/web.hrc @@ -0,0 +1,117 @@ +/************************************************************************* + * + * $RCSfile: web.hrc,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _WEB_HRC +#define _WEB_HRC + +#include "rcid.hrc" + +#define RC_WEB_ICON (RC_WEB_BEGIN + 1) +#define RID_WEBTOOLS_TOOLBOX (RC_WEB_BEGIN + 2) +#define RID_WEBTEXT_TOOLBOX (RC_WEB_BEGIN + 3) +#define STR_HUMAN_SWWEBDOC_NAME (RC_WEB_BEGIN + 4) +#define STR_WRITER_WEBDOC_FULLTYPE_40 (RC_WEB_BEGIN + 5) +#define STR_SHELLNAME_WEBTEXT (RC_WEB_BEGIN + 6) +#define STR_SHELLNAME_WEBFRAME (RC_WEB_BEGIN + 7) +#define RID_WEBFRAME_TOOLBOX (RC_WEB_BEGIN + 8) +#define STR_WRITER_WEBDOC_FULLTYPE (RC_WEB_BEGIN + 9) +#define RID_WEBGRAPHIC_TOOLBOX (RC_WEB_BEGIN + 10) +#define RID_WEBOLE_TOOLBOX (RC_WEB_BEGIN + 11) + + +#define MN_WEBFILE (RC_WEB_BEGIN + 30) +#define MN_WEBEDIT (RC_WEB_BEGIN + 31) +#define MN_WEBVIEW (RC_WEB_BEGIN + 32) +#define MN_WEBINS (RC_WEB_BEGIN + 33) +#define MN_WEBFORMAT (RC_WEB_BEGIN + 34) +#define MN_WEBEXTRA (RC_WEB_BEGIN + 35) +#define MN_WEBWIN (RC_WEB_BEGIN + 36) + +#define MN_OBJECTMENU_WEBTEXT (RC_WEB_BEGIN + 37) +#define MN_OBJECTMENU_WEBLIST (RC_WEB_BEGIN + 38) +#define MN_OBJECTMENU_WEBTABLE (RC_WEB_BEGIN + 39) +#define MN_OBJECTMENU_WEBFRAME (RC_WEB_BEGIN + 40) +#define MN_OBJECTMENU_WEBGRAFIK (RC_WEB_BEGIN + 41) +#define MN_OBJECTMENU_WEBDRAW (RC_WEB_BEGIN + 42) +#define MN_OBJECTMENU_WEBDRWTXT (RC_WEB_BEGIN + 43) +#define MN_OBJECTMENU_WEBOLE (RC_WEB_BEGIN + 44) +#define MN_OBJECTMENU_WEBDRAWCONTROL (RC_WEB_BEGIN + 45) + +#define MN_WEB_TEXT_POPUPMENU (RC_WEB_BEGIN + 46) + +#define MN_WEBFILE_PORT (RC_WEB_BEGIN + 47) +#define MN_WEBEDIT_PORT (RC_WEB_BEGIN + 48) +#define MN_WEBVIEW_PORT (RC_WEB_BEGIN + 49) +#define MN_WEBINS_PORT (RC_WEB_BEGIN + 50) +#define MN_WEBFORMAT_PORT (RC_WEB_BEGIN + 51) +#define MN_WEBEXTRA_PORT (RC_WEB_BEGIN + 52) +#define MN_WEBWIN_PORT (RC_WEB_BEGIN + 53) + +// ------------------------------------------------------------------------ + +#define WEB_ACT_END MN_OBJECTMENU_WEBDRAWCONTROL + + +#if WEB_ACT_END > RC_WEB_END +#error Resource-Id Ueberlauf in #file, #line +#endif + +#endif diff --git a/sw/source/ui/inc/wformsh.hxx b/sw/source/ui/inc/wformsh.hxx new file mode 100644 index 000000000000..dfa89ca1338d --- /dev/null +++ b/sw/source/ui/inc/wformsh.hxx @@ -0,0 +1,79 @@ +/************************************************************************* + * + * $RCSfile: wformsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWWDRWFORMSH_HXX +#define _SWWDRWFORMSH_HXX + +#include "drformsh.hxx" + +class SwWebDrawFormShell : public SwDrawFormShell +{ +public: + SwWebDrawFormShell(SwView &rShell); + virtual ~SwWebDrawFormShell(); + + SFX_DECL_INTERFACE(SW_WEBDRAWFORMSHELL); + TYPEINFO(); +}; + + +#endif + + diff --git a/sw/source/ui/inc/wfrmsh.hxx b/sw/source/ui/inc/wfrmsh.hxx new file mode 100644 index 000000000000..e7f40ae5d051 --- /dev/null +++ b/sw/source/ui/inc/wfrmsh.hxx @@ -0,0 +1,82 @@ +/************************************************************************* + * + * $RCSfile: wfrmsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _SWWFRMSH_HXX +#define _SWWFRMSH_HXX + +#include "frmsh.hxx" + + +class SwWebFrameShell: public SwFrameShell +{ + +public: + SFX_DECL_INTERFACE(SW_WEBFRAMESHELL); + TYPEINFO(); + + SwWebFrameShell(SwView &rView); + virtual ~SwWebFrameShell(); +}; + +#endif + + + diff --git a/sw/source/ui/inc/wgrfsh.hxx b/sw/source/ui/inc/wgrfsh.hxx new file mode 100644 index 000000000000..56b1c44f7c9a --- /dev/null +++ b/sw/source/ui/inc/wgrfsh.hxx @@ -0,0 +1,79 @@ +/************************************************************************* + * + * $RCSfile: wgrfsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWWGRFSH_HXX +#define _SWWGRFSH_HXX + +#include "grfsh.hxx" + +class SwWebGrfShell: public SwGrfShell +{ +public: + SwWebGrfShell(SwView &rShell); + virtual ~SwWebGrfShell(); + + SFX_DECL_INTERFACE(SW_WEBGRFSHELL); + TYPEINFO(); +}; + + +#endif + + diff --git a/sw/source/ui/inc/wlistsh.hxx b/sw/source/ui/inc/wlistsh.hxx new file mode 100644 index 000000000000..7c824c8b7fe8 --- /dev/null +++ b/sw/source/ui/inc/wlistsh.hxx @@ -0,0 +1,76 @@ +/************************************************************************* + * + * $RCSfile: wlistsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWWLISTSH_HXX +#define _SWWLISTSH_HXX + +#include "listsh.hxx" + +class SwWebListShell: public SwListShell +{ +public: + SFX_DECL_INTERFACE(SW_WEBLISTSHELL); + TYPEINFO(); + + virtual ~SwWebListShell(); + SwWebListShell(SwView &rView); +}; + +#endif diff --git a/sw/source/ui/inc/wolesh.hxx b/sw/source/ui/inc/wolesh.hxx new file mode 100644 index 000000000000..fccee3aa35bd --- /dev/null +++ b/sw/source/ui/inc/wolesh.hxx @@ -0,0 +1,82 @@ +/************************************************************************* + * + * $RCSfile: wolesh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWWOLESH_HXX +#define _SWWOLESH_HXX + +#include "olesh.hxx" + +class SwWebOleShell: public SwOleShell +{ +public: + SFX_DECL_INTERFACE(SW_WEBOLESHELL); + + virtual ~SwWebOleShell(); + SwWebOleShell(SwView &rView); +}; + +#endif + + + + + + + diff --git a/sw/source/ui/inc/workctrl.hxx b/sw/source/ui/inc/workctrl.hxx new file mode 100644 index 000000000000..982461eefb39 --- /dev/null +++ b/sw/source/ui/inc/workctrl.hxx @@ -0,0 +1,228 @@ +/************************************************************************* + * + * $RCSfile: workctrl.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _WORKCTRL_HXX +#define _WORKCTRL_HXX + +#ifndef _SFXTBXCTRL_HXX //autogen +#include <sfx2/tbxctrl.hxx> +#endif + +#ifndef _VALUESET_HXX //autogen +#include <svtools/valueset.hxx> +#endif + +#ifndef _IMAGEBTN_HXX //autogen +#include <vcl/imagebtn.hxx> +#endif + +class PopupMenu; +class SwView; + +// doppelter Eintrag! hrc und hxx +// diese Ids bestimmen, was die Buttons unter dem Scrollbar tun +#define NID_START 20000 +#define NID_NEXT 20000 +#define NID_PREV 20001 +#define NID_TBL 20002 +#define NID_FRM 20003 +#define NID_PGE 20004 +#define NID_DRW 20005 +#define NID_CTRL 20006 +#define NID_REG 20007 +#define NID_BKM 20008 +#define NID_GRF 20009 +#define NID_OLE 20010 +#define NID_OUTL 20011 +#define NID_SEL 20012 +#define NID_FTN 20013 +#define NID_MARK 20014 +#define NID_POSTIT 20015 +#define NID_SRCH_REP 20016 +#define NID_INDEX_ENTRY 20017 +#define NID_TABLE_FORMULA 20018 +#define NID_TABLE_FORMULA_ERROR 20019 +#define NID_COUNT 20 + + + +//---------------------------------------------------------------------------- +// +//---------------------------------------------------------------------------- + +class SwTbxInsertCtrl : public SfxToolBoxControl +{ + USHORT nLastSlotId; + + virtual void Select( BOOL bMod1 = FALSE ); + +public: + SFX_DECL_TOOLBOX_CONTROL(); + + SwTbxInsertCtrl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind ); + ~SwTbxInsertCtrl(); + + virtual SfxPopupWindowType GetPopupWindowType() const; + virtual SfxPopupWindow* CreatePopupWindow(); + virtual void StateChanged( USHORT nSID, + SfxItemState eState, + const SfxPoolItem* pState ); + +}; + +//---------------------------------------------------------------------------- +// +//---------------------------------------------------------------------------- + +class SwTbxAutoTextCtrl : public SfxToolBoxControl +{ + PopupMenu* pPopup; + SwView* pView; + + + void DelPopup(); +public: + SFX_DECL_TOOLBOX_CONTROL(); + + SwTbxAutoTextCtrl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind ); + ~SwTbxAutoTextCtrl(); + + virtual SfxPopupWindowType GetPopupWindowType() const; + virtual SfxPopupWindow* CreatePopupWindow(); + virtual void StateChanged( USHORT nSID, + SfxItemState eState, + const SfxPoolItem* pState ); + + DECL_LINK(PopupHdl, PopupMenu*); +}; + + +//---------------------------------------------------------------------------- +// +//---------------------------------------------------------------------------- + +class SwScrollNaviValueSet : public ValueSet +{ + virtual void MouseButtonUp( const MouseEvent& rMEvt ); + virtual void RequestHelp( const HelpEvent& rHEvt ); + + public: + SwScrollNaviValueSet(Window* pParent, WinBits nWinStyle ) : + ValueSet(pParent, nWinStyle ) {} +}; + +class SwScrollNaviPopup : public SfxPopupWindow +{ + SwScrollNaviValueSet aVSet; + ImageList aIList; + const ResId& rResId; + + String sQuickHelp[2 * NID_COUNT]; + + USHORT nFwdId; + USHORT nBackId; + + protected: + DECL_LINK(SelectHdl, ValueSet*); + + public: + SwScrollNaviPopup( USHORT nId, const ResId &rId, SfxBindings & ); + ~SwScrollNaviPopup(); + + static String GetQuickHelpText(BOOL bNext); + virtual void PopupModeEnd(); + virtual SfxPopupWindow* Clone() const; +}; + +//---------------------------------------------------------------------------- +// +//---------------------------------------------------------------------------- + +class SwNaviImageButton : public ImageButton +{ + SwScrollNaviPopup* pPopup; + Image aImage; + String sQuickText; + + protected: + virtual void MouseButtonDown( const MouseEvent& rMEvt ); + virtual void MouseButtonUp( const MouseEvent& rMEvt ); + public: + SwNaviImageButton(Window* pParent); +}; + +//---------------------------------------------------------------------------- +// Die ImageButtons muessen sich bei Bedarf den HelpText selbst setzen +//---------------------------------------------------------------------------- + +class SwHlpImageButton : public ImageButton +{ + BOOL bUp; + public: + SwHlpImageButton(Window* pParent, const ResId& rResId, BOOL bUpBtn) : + ImageButton(pParent, rResId), bUp(bUpBtn){} + + virtual void RequestHelp( const HelpEvent& rHEvt ); + +}; +#endif + + + diff --git a/sw/source/ui/inc/wrap.hxx b/sw/source/ui/inc/wrap.hxx new file mode 100644 index 000000000000..3a9cc0f55f95 --- /dev/null +++ b/sw/source/ui/inc/wrap.hxx @@ -0,0 +1,185 @@ +/************************************************************************* + * + * $RCSfile: wrap.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _WRAP_HXX +#define _WRAP_HXX + +#ifndef _SFXTABDLG_HXX //autogen +#include <sfx2/tabdlg.hxx> +#endif + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif + +#ifndef _IMAGEBTN_HXX //autogen +#include <vcl/imagebtn.hxx> +#endif + +#ifndef _GROUP_HXX //autogen +#include <vcl/group.hxx> +#endif + +#ifndef _BUTTON_HXX //autogen +#include <vcl/button.hxx> +#endif + +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif + +#ifndef _FIELD_HXX //autogen +#include <vcl/field.hxx> +#endif + +class Window; +class SfxItemSet; +class SwWrtShell; + +class SwWrapDlg : public SfxSingleTabDialog +{ + SwWrtShell* pWrtShell; + +public: + SwWrapDlg(Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, BOOL bDrawMode); + ~SwWrapDlg(); + + inline SwWrtShell* GetWrtShell() { return pWrtShell; } +}; + + +/*-------------------------------------------------------------------- + Beschreibung: Umlauf-TabPage + --------------------------------------------------------------------*/ + +class SwWrapTabPage: public SfxTabPage +{ + // WRAPPING + ImageRadioButton aNoWrapRB; + ImageRadioButton aWrapLeftRB; + ImageRadioButton aWrapRightRB; + ImageRadioButton aWrapParallelRB; + ImageRadioButton aWrapThroughRB; + ImageRadioButton aIdealWrapRB; + GroupBox aWrapBoxC; + + CheckBox aWrapAnchorOnlyCB; + CheckBox aWrapTransparentCB; + CheckBox aWrapOutlineCB; + CheckBox aWrapOutsideCB; + GroupBox aOptionsGB; + + // MARGIN + FixedText aLeftMarginFT; + MetricField aLeftMarginED; + FixedText aRightMarginFT; + MetricField aRightMarginED; + FixedText aTopMarginFT; + MetricField aTopMarginED; + FixedText aBottomMarginFT; + MetricField aBottomMarginED; + GroupBox aMarginGB; + + ImageList aWrapIL; + + USHORT nOldLeftMargin; + USHORT nOldRightMargin; + USHORT nOldUpperMargin; + USHORT nOldLowerMargin; + + USHORT nAnchorId; + USHORT nHtmlMode; + + Size aFrmSize; + SwWrtShell* pWrtSh; + + BOOL bFormat; + BOOL bNew; + BOOL bHtmlMode; + BOOL bDrawMode; + BOOL bContourImage; + + SwWrapTabPage(Window *pParent, const SfxItemSet &rSet); + ~SwWrapTabPage(); + + void EnableModes(const SfxItemSet& rSet); + virtual void ActivatePage(const SfxItemSet& rSet); + virtual int DeactivatePage(SfxItemSet *pSet); + + DECL_LINK( RangeModifyHdl, MetricField * ); + DECL_LINK( WrapTypeHdl, ImageRadioButton * ); + DECL_LINK( ContourHdl, CheckBox * ); + +public: + static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); + + virtual BOOL FillItemSet(SfxItemSet &rSet); + virtual void Reset(const SfxItemSet &rSet); + + static USHORT* GetRanges(); + inline void SetNewFrame(BOOL bNewFrame) { bNew = bNewFrame; } + inline void SetFormatUsed(BOOL bFmt, BOOL bDrw) { bFormat = bFmt; + bDrawMode = bDrw; } + inline void SetShell(SwWrtShell* pSh) { pWrtSh = pSh; } +}; + +#endif + + diff --git a/sw/source/ui/inc/wrtsh.hxx b/sw/source/ui/inc/wrtsh.hxx new file mode 100644 index 000000000000..410a6a8ef14f --- /dev/null +++ b/sw/source/ui/inc/wrtsh.hxx @@ -0,0 +1,611 @@ +/************************************************************************* + * + * $RCSfile: wrtsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _WRTSH_HXX +#define _WRTSH_HXX + +#ifndef _FESH_HXX +#include <fesh.hxx> +#endif +#ifndef _SORTOPT_HXX +#include <sortopt.hxx> +#endif +#ifndef _SWURL_HXX +#include <swurl.hxx> +#endif + +class Window; +class SbxArray; +class SwDoc; +class SvInPlaceObjectRef; +class SvEmbeddedObjectRef; +class SpellCheck; +class SwViewOption; +class SwFlyFrmAttrMgr; +class SwField; +class SwTOXBase; +class SdrView; +class SwView; +class SvGlobalName; +class SwInputFieldList; +class SwSection; +class Timer; +class SvxMacro; +class SwFmtINetFmt; +class SvxINetBookmark; +class SvxAutoCorrect; +class NaviContentBookmark; +struct SwCallMouseEvent; +class DropEvent; +struct ChartSelectionInfo; + +#ifndef _COM_SUN_STAR_LINGUISTIC_XSPELLCHECKER1_HPP_ +#include <com/sun/star/linguistic/XSpellChecker1.hpp> +#endif +#ifndef _COM_SUN_STAR_LINGUISTIC_XHYPHENATOR_HPP_ +#include <com/sun/star/linguistic/XHyphenator.hpp> +#endif + +class SwWrtShell: public SwFEShell +{ +public: + typedef long (SwWrtShell::*SELECTFUNC)(const Point *, BOOL bProp ); + + SELECTFUNC fnDrag; + SELECTFUNC fnSetCrsr; + SELECTFUNC fnEndDrag; + SELECTFUNC fnKillSel; + + // Alle Selektionen aufheben + long ResetSelect( const Point *, BOOL ); + + //setzt den Cursorstack nach dem Bewegen mit PageUp/-Down + //zurueck, falls ein Stack aufgebaut ist + inline void ResetCursorStack(); + + enum SelectionType + { + SEL_TXT = CNT_TXT, // Text, niemals auch Rahmen 0x0001 + SEL_GRF = CNT_GRF, // Grafik 0x0002 + SEL_OLE = CNT_OLE, // OLE 0x0010 + SEL_FRM = 0x0020, // Rahmen, keine Inhaltsform + SEL_NUM = 0x0040, // NumListe + SEL_TBL = 0x0080, // Cursor steht in Tabelle + SEL_TBL_CELLS = 0x0100, // Tabellenzellen sind selektiert + SEL_DRW = 0x0200, // Zeichenobjekte (Rechteck, Kreis...) + SEL_DRW_TXT = 0x0400, // Draw-Textobjekte im Editmode + SEL_BEZ = 0x0800, // Bezierobjekte editieren + SEL_DRW_FORM = 0x1000 // Zeichenobjekte: DB-Forms + }; + int GetSelectionType() const; + + BOOL IsModePushed() const { return 0 != pModeStack; } + void PushMode(); + void PopMode(); + + void SttSelect(); + void EndSelect(); + BOOL IsInSelect() const { return bInSelect; } + void SetInSelect(BOOL bSel = TRUE) { bInSelect = bSel; } + // Liegt eine Text- oder Rahmenselektion vor? + BOOL HasSelection() const { return IsSelection() || IsSelFrmMode() || IsObjSelected(); } + FASTBOOL Pop( BOOL bOldCrsr = TRUE ); + + void EnterStdMode(); + BOOL IsStdMode() const { return !bExtMode && !bAddMode; } + + void EnterExtMode(); + void LeaveExtMode(); + long ToggleExtMode(); + BOOL IsExtMode() const { return bExtMode; } + + void EnterAddMode(); + void LeaveAddMode(); + long ToggleAddMode(); + BOOL IsAddMode() const { return bAddMode; } + + void SetInsMode( BOOL bOn = TRUE ); + void ToggleInsMode() { SetInsMode( !bIns ); } + BOOL IsInsMode() const { return bIns; } + + void EnterSelFrmMode(const Point *pStartDrag = 0); + void LeaveSelFrmMode(); + BOOL IsSelFrmMode() const { return bLayoutMode; } + // Selektion von Rahmen aufheben + void UnSelectFrm(); + + // Tabellenzellen selektieren fuer Bearbeiten von Formeln in der Ribbonbar + inline void SelTblCells( const Link &rLink, BOOL bMark = TRUE ); + inline void EndSelTblCells(); + + //Wortweisen oder zeilenweisen Selektionsmodus verlassen. Wird + //in der Regel in MB-Up gerufen. + BOOL IsExtSel() const { return bSelWrd || bSelLn; } + + // erfrage, ob der akt. fnDrag - Pointer auf BeginDrag gesetzt ist + // Wird fuer MouseMove gebraucht, um die Bugs 55592/55931 zu umgehen. + inline BOOL Is_FnDragEQBeginDrag() const; + + //Basisabfragen + BOOL IsInWrd() { return IsInWord(); } + BOOL IsSttWrd() { return IsStartWord(); } + BOOL IsEndWrd(); + BOOL IsSttOfPara() const { return IsSttPara(); } + BOOL IsEndOfPara() const { return IsEndPara(); } + + //Word bzw. Satz selektieren. + BOOL SelNearestWrd(); + BOOL SelWrd (const Point * = 0, BOOL bProp=FALSE ); + BOOL SelSentence (const Point * = 0, BOOL bProp=FALSE ); + void SelLine (const Point * = 0, BOOL bProp=FALSE ); + long SelAll(); + + //Basiscursortravelling +typedef FASTBOOL (SwWrtShell:: *FNSimpleMove)(); + FASTBOOL SimpleMove( FNSimpleMove, FASTBOOL bSelect ); + + FASTBOOL Left ( FASTBOOL bSelect = FALSE, USHORT nCount = 1, + BOOL bBasicCall = FALSE ); + FASTBOOL Right ( FASTBOOL bSelect = FALSE, USHORT nCount = 1, + BOOL bBasicCall = FALSE ); + FASTBOOL Up ( FASTBOOL bSelect = FALSE, USHORT nCount = 1, + BOOL bBasicCall = FALSE ); + FASTBOOL Down ( FASTBOOL bSelect = FALSE, USHORT nCount = 1, + BOOL bBasicCall = FALSE ); + FASTBOOL NxtWrd ( FASTBOOL bSelect = FALSE ) { return SimpleMove( &SwWrtShell::_NxtWrd, bSelect ); } + FASTBOOL PrvWrd ( FASTBOOL bSelect = FALSE ) { return SimpleMove( &SwWrtShell::_PrvWrd, bSelect ); } + FASTBOOL LeftMargin ( FASTBOOL bSelect = FALSE, FASTBOOL bBasicCall = FALSE ); + FASTBOOL RightMargin( FASTBOOL bSelect = FALSE, FASTBOOL bBasicCall = FALSE ); + FASTBOOL SttDoc ( FASTBOOL bSelect = FALSE ); + FASTBOOL EndDoc ( FASTBOOL bSelect = FALSE ); + + FASTBOOL SttNxtPg ( FASTBOOL bSelect = FALSE ); + FASTBOOL SttPrvPg ( FASTBOOL bSelect = FALSE ); + FASTBOOL EndNxtPg ( FASTBOOL bSelect = FALSE ); + FASTBOOL EndPrvPg ( FASTBOOL bSelect = FALSE ); + FASTBOOL SttPg ( FASTBOOL bSelect = FALSE ); + FASTBOOL EndPg ( FASTBOOL bSelect = FALSE ); + FASTBOOL SttPara ( FASTBOOL bSelect = FALSE ); + FASTBOOL EndPara ( FASTBOOL bSelect = FALSE ); + FASTBOOL FwdPara ( FASTBOOL bSelect = FALSE ) + { return SimpleMove( &SwWrtShell::_FwdPara, bSelect ); } + FASTBOOL BwdPara ( FASTBOOL bSelect = FALSE ) + { return SimpleMove( &SwWrtShell::_BwdPara, bSelect ); } + FASTBOOL FwdSentence( FASTBOOL bSelect = FALSE ) + { return SimpleMove( &SwWrtShell::_FwdSentence, bSelect ); } + FASTBOOL BwdSentence( FASTBOOL bSelect = FALSE ) + { return SimpleMove( &SwWrtShell::_BwdSentence, bSelect ); } + + FASTBOOL SelectTableRow(); + FASTBOOL SelectTableCol(); + FASTBOOL SelectTxtAttr( USHORT nWhich, const SwTxtAttr* pAttr = 0 ); + + // Spaltenweise Spruenge + FASTBOOL StartOfColumn ( FASTBOOL bSelect = FALSE ); + FASTBOOL EndOfColumn ( FASTBOOL bSelect = FALSE ); + FASTBOOL StartOfNextColumn ( FASTBOOL bSelect = FALSE ); + FASTBOOL EndOfNextColumn ( FASTBOOL bSelect = FALSE ); + FASTBOOL StartOfPrevColumn ( FASTBOOL bSelect = FALSE ); + FASTBOOL EndOfPrevColumn ( FASTBOOL bSelect = FALSE ); + + // setze den Cursor auf die Seite "nPage" an den Anfang + // zusaetzlich zu der gleichnamigen Implementierung in crsrsh.hxx + // werden hier alle bestehenden Selektionen vor dem Setzen des + // Cursors aufgehoben + BOOL GotoPage(USHORT nPage, BOOL bRecord = TRUE); + + //setzen des Cursors; merken der alten Position fuer Zurueckblaettern. + DECL_LINK( ExecFlyMac, void * ); + + BOOL PageCrsr(SwTwips lOffset, BOOL bSelect); + + // Felder Update + void UpdateInputFlds( SwInputFieldList* pLst = 0, BOOL bOnlyInSel = FALSE ); + + void NoEdit(BOOL bHideCrsr = TRUE); + void Edit(); + BOOL IsNoEdit() const { return bNoEdit; } + + // Loeschen + long DelToEndOfLine(); + long DelToStartOfLine(); + long DelLine(); + long DelLeft(); + + // loescht auch Rahmen bzw. setzt den Cursor in den Rahmen, + // wenn bDelFrm == FALSE ist + long DelRight( BOOL bDelFrm = FALSE ); + long DelToEndOfPara(); + long DelToStartOfPara(); + long DelToEndOfSentence(); + long DelToStartOfSentence(); + long DelNxtWord(); + long DelPrvWord(); + + // Prueft, ob eine Wortselektion vorliegt. + // Gemaess den Regeln fuer intelligentes Cut / Paste + // werden umgebende Spaces rausgeschnitten. + // Liefert Art der Wortselektion zurueck (siehe enum) + enum { + NO_WORD = 0, + WORD_SPACE_BEFORE = 1, + WORD_SPACE_AFTER = 2, + WORD_NO_SPACE = 3 + }; + int IntelligentCut(int nSelectionType, BOOL bCut = TRUE); + + // Editieren + void Insert(SwField &); + void Insert(const String &); + void InsertByWord( const String & ); + void InsertPageBreak(const String *pPageDesc = 0, USHORT nPgNum = 0 ); + void InsertLineBreak(); + void InsertColumnBreak(); + void InsertFootnote(const String &, BOOL bEndNote = FALSE, BOOL bEdit = TRUE ); + void SplitNode( BOOL bAutoFormat = FALSE, BOOL bCheckTableStart = TRUE ); + BOOL CanInsert(); + + // Verzeichnisse + void InsertTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet = 0); + BOOL UpdateTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet = 0); + + // Numerierung und Bullets + void NumOn(); + void BulletOn(); + + // Graphic + void Insert( const String &rPath, const String &rFilter, + const Graphic &, SwFlyFrmAttrMgr * = 0, + BOOL bRule = FALSE ); + //OLE + void Insert ( SvInPlaceObjectRef *pObj, // != 0 fuer Clipboard + SvGlobalName *pName = 0, // != 0 entspr. Object erzeugen. + BOOL bActivate = TRUE, + USHORT nSlotId = 0); // SlotId fuer Dialog + BOOL InsertOle ( SvInPlaceObjectRef aRef ); // In die Core einfuegen. + void LaunchOLEObj( long nVerb = 0 ); // Server starten + BOOL FinishOLEObj(); // Server wird beendet + BOOL IsOLEObj() const { return GetCntType() == CNT_OLE;} + virtual void CalcAndSetScale( SvEmbeddedObjectRef xObj, + const SwRect *pFlyPrtRect = 0, + const SwRect *pFlyFrmRect = 0 ); + virtual void ConnectObj( SvInPlaceObjectRef xIPObj, const SwRect &rPrt, + const SwRect &rFrm ); + DECL_LINK( ChartSelectionHdl, ChartSelectionInfo * ); + + // Vorlagen und Formate + + // enum gibt an, was geschehen soll, wenn das Style nicht gefunden wurde + enum GetStyle { GETSTYLE_NOCREATE, // keins anlegen + GETSTYLE_CREATESOME, // falls auf PoolId mapt anlegen + GETSTYLE_CREATEANY }; // ggfs Standard returnen + + SwTxtFmtColl* GetParaStyle(const String &rCollName, + GetStyle eCreate = GETSTYLE_NOCREATE); + SwCharFmt* GetCharStyle(const String &rFmtName, + GetStyle eCreate = GETSTYLE_NOCREATE); + SwFrmFmt* GetTblStyle(const String &rFmtName); + + void SetPageStyle(const String &rCollName); + + String GetCurPageStyle( const BOOL bCalcFrm = TRUE ) const; + + // Aktuelle Vorlage anhand der geltenden Attribute aendern + void QuickUpdateStyle(); + + enum DoType { UNDO, REDO, REPEAT }; + + void Do( DoType eDoType ); + String GetDoString( DoType eDoType ) const; + String GetRepeatString() const; + + //Suchen oder Ersetzen + ULONG SearchPattern(const SearchParam& rParam, + SwDocPositions eStart, SwDocPositions eEnde, + FindRanges eFlags = FND_IN_BODY, + int bReplace = FALSE ); + + ULONG SearchTempl (const String &rTempl, + SwDocPositions eStart, SwDocPositions eEnde, + FindRanges eFlags = FND_IN_BODY, + const String* pReplTempl = 0 ); + + ULONG SearchAttr (const SfxItemSet& rFindSet, + BOOL bNoColls, + SwDocPositions eStart,SwDocPositions eEnde, + FindRanges eFlags = FND_IN_BODY, + const SearchParam* pParam = 0, + const SfxItemSet* pReplaceSet = 0); + + void AutoCorrect( SvxAutoCorrect& rACorr, sal_Unicode cChar = ' ' ); + + // Aktion vor Cursorbewegung + // Hebt gfs. Selektionen auf, triggert Timer und GCAttr() + void MoveCrsr( FASTBOOL bWithSelect = FALSE ); + + // Eingabefelder updaten + BOOL StartInputFldDlg(SwField*, BOOL bNextButton); + + //"Handler" fuer Anederungen an der DrawView - fuer Controls. + virtual void DrawSelChanged( SdrView * ); + + // springe zum Bookmark und setze die "Selections-Flags" wieder richtig + FASTBOOL GotoBookmark( USHORT nPos ); + FASTBOOL GotoBookmark( USHORT nPos, BOOL bSelect, BOOL bStart ); + FASTBOOL GotoBookmark( const String& rName ); + FASTBOOL GoNextBookmark(); // TRUE, wenn's noch eine gab + FASTBOOL GoPrevBookmark(); + + // Zugehoerige SwView ermitteln + const SwView& GetView() const { return rView; } + SwView& GetView() { return rView; } + + //Weil es sonst keiner macht, gibt es hier eine ExecMacro() + void ExecMacro( const SvxMacro& rMacro, String* pRet = 0, SbxArray* pArgs = 0 ); + // rufe ins dunkle Basic/JavaScript + USHORT CallEvent( USHORT nEvent, const SwCallMouseEvent& rCallEvent, + BOOL bCheckPtr = FALSE, SbxArray* pArgs = 0, + const Link* pCallBack = 0 ); + + void StartBasicAction(); + void EndBasicAction(); + void SetBasicActionCount(USHORT nSet); + USHORT EndAllBasicActions(); + + // ein Klick aus das angegebene Feld. Der Cursor steht auf diesem. + // Fuehre die vor definierten Aktionen aus. + void ClickToField( const SwField& rFld, USHORT nFilter = URLLOAD_NOFILTER ); + void ClickToINetAttr( const SwFmtINetFmt& rItem, USHORT nFilter = URLLOAD_NOFILTER ); + BOOL ClickToINetGrf( const Point& rDocPt, USHORT nFilter = URLLOAD_NOFILTER ); + inline BOOL IsInClickToEdit() const ; + + // fall ein URL-Button selektiert ist, dessen URL returnen, ansonsten + // einen LeerString + BOOL GetURLFromButton( String& rURL, String& rDescr ) const; + BOOL SetURLToButton( const String& rURL, const String& rDescr ); + + void NavigatorPaste( const NaviContentBookmark& rBkmk, const DropEvent* pEvt ); + + // die Core erzeugt eine Selektion, das SttSelect muss gerufen werden + virtual void NewCoreSelection(); + + // autom. Update von Vorlagen + void AutoUpdateFrame(SwFrmFmt* pFmt, const SfxItemSet& rStyleSet); + void AutoUpdatePara(SwTxtFmtColl* pColl, const SfxItemSet& rStyleSet); + + // Link fuers einfuegen von Bereichen uebers Drag&Drop/Clipboard + DECL_STATIC_LINK( SwWrtShell, InsertRegionDialog, SwSection* ); + + + //ctoren, der erstere ist eine Art kontrollierter copy ctor fuer weitere + //Sichten auf ein Dokument + SwWrtShell( SwWrtShell *, Window *pWin, SwView &rShell); + SwWrtShell( SwDoc *pDoc, + ::com::sun::star::uno::Reference< + ::com::sun::star::linguistic::XSpellChecker1 >&, + ::com::sun::star::uno::Reference< + ::com::sun::star::linguistic::XHyphenator >&, + Window *pWin, SwView &rShell, + SwRootFrm* pMaster = 0, const SwViewOption *pViewOpt = 0); + ~SwWrtShell(); + +private: + + void OpenMark(); + void CloseMark( BOOL bOkFlag ); + + String GetWrdDelim(); + String GetSDelim(); + String GetBothDelim(); + + struct ModeStack + { + ModeStack *pNext; + BOOL bAdd, + bExt, + bIns; + ModeStack(ModeStack *pNextMode, BOOL _bIns, BOOL _bExt, BOOL _bAdd): + pNext(pNextMode), + bIns(_bIns), + bExt(_bExt), + bAdd(_bAdd) {} + } *pModeStack; + + // Cursor bei PageUp / -Down mitnehmen + enum PageMove + { + MV_NO, + MV_PAGE_UP, + MV_PAGE_DOWN + } ePageMove; + + struct CrsrStack + { + Point aDocPos; + CrsrStack *pNext; + BOOL bValidCurPos : 1; + BOOL bIsFrmSel : 1; + SwTwips lOffset; + + CrsrStack( BOOL bValid, BOOL bFrmSel, const Point &rDocPos, + SwTwips lOff, CrsrStack *pN ) + : aDocPos(rDocPos), lOffset(lOff), pNext(pN) + { + bValidCurPos = bValid; + bIsFrmSel = bFrmSel; + } + + } *pCrsrStack; + + SwView &rView; + + Point aDest; + BOOL bDestOnStack; + BOOL HasCrsrStack() const { return 0 != pCrsrStack; } + BOOL PushCrsr(SwTwips lOffset, BOOL bSelect); + BOOL PopCrsr(BOOL bUpdate, BOOL bSelect = FALSE); + + // ENDE Cursor bei PageUp / -Down mitnehmen + FASTBOOL _SttWrd(); + FASTBOOL _EndWrd(); + FASTBOOL _NxtWrd(); + FASTBOOL _PrvWrd(); + FASTBOOL _FwdSentence(); + FASTBOOL _BwdSentence(); + FASTBOOL _FwdPara(); + FASTBOOL _BwdPara(); + + // Selektionen + BOOL bIns :1; + BOOL bInSelect :1; + BOOL bExtMode :1; + BOOL bAddMode :1; + BOOL bLayoutMode :1; + BOOL bNoEdit :1; + BOOL bCopy :1; + BOOL bSelWrd :1; + BOOL bSelLn :1; + BOOL bIsInClickToEdit:1; + BOOL bClearMark :1; // Selektion fuer ChartAutoPilot nicht loeschen + + Point aStart; + Link aSelTblLink; + + SELECTFUNC fnLeaveSelect; + + //setzt den Cursorstack nach dem Bewegen mit PageUp/-Down zurueck. + void _ResetCursorStack(); + + void SttDragDrop(Timer *); + long SetCrsr(const Point *, BOOL bProp=FALSE ); + long SetCrsrKillSel(const Point *, BOOL bProp=FALSE ); + + long StdSelect(const Point *, BOOL bProp=FALSE ); + long BeginDrag(const Point *, BOOL bProp=FALSE ); + long Drag(const Point *, BOOL bProp=FALSE ); + long EndDrag(const Point *, BOOL bProp=FALSE ); + + long ExtSelWrd(const Point *, BOOL bProp=FALSE ); + long ExtSelLn(const Point *, BOOL bProp=FALSE ); + + //Verschieben von Text aus Drag and Drop; Point ist + //Destination fuer alle Selektionen. + long MoveText(const Point *, BOOL bProp=FALSE ); + + long BeginFrmDrag(const Point *, BOOL bProp=FALSE ); + + //nach SSize/Move eines Frames Update; Point ist Destination. + long UpdateLayoutFrm(const Point *, BOOL bProp=FALSE ); + + long SttLeaveSelect(const Point *, BOOL bProp=FALSE ); + long AddLeaveSelect(const Point *, BOOL bProp=FALSE ); + long Ignore(const Point *, BOOL bProp=FALSE ); + + void LeaveExtSel() { bSelWrd = bSelLn = FALSE;} + BOOL _CanInsert(); + + BOOL GoStart(BOOL KeepArea = FALSE, BOOL * = 0, + BOOL bSelect = FALSE, BOOL bDontMoveRegion = FALSE); + BOOL GoEnd(BOOL KeepArea = FALSE, BOOL * = 0); + + enum BookMarkMove + { + BOOKMARK_INDEX, + BOOKMARK_NEXT, + BOOKMARK_PREV, + BOOKMARK_LAST_LAST_ENTRY + }; + + FASTBOOL MoveBookMark( BookMarkMove eFuncId, + USHORT nPos = 0, + BOOL bStart = TRUE ); +}; + +inline void SwWrtShell::ResetCursorStack() +{ + if ( HasCrsrStack() ) + _ResetCursorStack(); +} + +inline void SwWrtShell::SelTblCells(const Link &rLink, BOOL bMark ) +{ + SetSelTblCells( TRUE ); + bClearMark = bMark; + aSelTblLink = rLink; +} +inline void SwWrtShell::EndSelTblCells() +{ + SetSelTblCells( FALSE ); + bClearMark = TRUE; +} + +inline BOOL SwWrtShell::IsInClickToEdit() const { return bIsInClickToEdit; } + +inline BOOL SwWrtShell::Is_FnDragEQBeginDrag() const +{ +#ifdef GCC + SELECTFUNC fnTmp = &SwWrtShell::BeginDrag; + return fnDrag == fnTmp; +#else + return fnDrag == &SwWrtShell::BeginDrag; +#endif +} + +#endif diff --git a/sw/source/ui/inc/wtabsh.hxx b/sw/source/ui/inc/wtabsh.hxx new file mode 100644 index 000000000000..8fda4bac4a22 --- /dev/null +++ b/sw/source/ui/inc/wtabsh.hxx @@ -0,0 +1,76 @@ +/************************************************************************* + * + * $RCSfile: wtabsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWWTABSH_HXX +#define _SWWTABSH_HXX + +#include "tabsh.hxx" + +class SwWebTableShell: public SwTableShell +{ +public: + SFX_DECL_INTERFACE(SW_WEBTABSHELL); + TYPEINFO(); + + virtual ~SwWebTableShell(); + SwWebTableShell(SwView &rView); +}; + +#endif diff --git a/sw/source/ui/inc/wtextsh.hxx b/sw/source/ui/inc/wtextsh.hxx new file mode 100644 index 000000000000..71c82ebdc9ab --- /dev/null +++ b/sw/source/ui/inc/wtextsh.hxx @@ -0,0 +1,82 @@ +/************************************************************************* + * + * $RCSfile: wtextsh.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef _SWWTEXTSH_HXX +#define _SWWTEXTSH_HXX + +#include "textsh.hxx" + + +class SwWebTextShell: public SwTextShell +{ + +public: + SFX_DECL_INTERFACE(SW_WEBTEXTSHELL); + TYPEINFO(); + + SwWebTextShell(SwView &rView); + virtual ~SwWebTextShell(); +}; + +#endif + + + diff --git a/sw/source/ui/inc/wview.hxx b/sw/source/ui/inc/wview.hxx new file mode 100644 index 000000000000..56c2a1e27a72 --- /dev/null +++ b/sw/source/ui/inc/wview.hxx @@ -0,0 +1,85 @@ +/************************************************************************* + * + * $RCSfile: wview.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _SWWVIEW_HXX +#define _SWWVIEW_HXX + +#include "view.hxx" + + +/*-------------------------------------------------------------------- + Beschreibung: + --------------------------------------------------------------------*/ + +class SwWebView: public SwView +{ +protected: + virtual void SelectShell(); +public: + + SFX_DECL_VIEWFACTORY(SwWebView); + SFX_DECL_INTERFACE(SW_WEBVIEWSHELL); + TYPEINFO(); + + SwWebView(SfxViewFrame* pFrame, SfxViewShell*); + ~SwWebView(); +}; + +#endif diff --git a/sw/source/ui/inc/zoomctrl.hxx b/sw/source/ui/inc/zoomctrl.hxx new file mode 100644 index 000000000000..422baa871b6f --- /dev/null +++ b/sw/source/ui/inc/zoomctrl.hxx @@ -0,0 +1,88 @@ +/************************************************************************* + * + * $RCSfile: zoomctrl.hxx,v $ + * + * $Revision: 1.1.1.1 $ + * + * last change: $Author: hr $ $Date: 2000-09-18 17:14:43 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library 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 for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ +#ifndef _ZOOMCTRL_HXX +#define _ZOOMCTRL_HXX + +#ifndef _SVX_ZOOMCTRL_HXX //autogen +#include <svx/zoomctrl.hxx> +#endif + +class SwZoomControl : public SvxZoomStatusBarControl +{ +private: + String sPreviewZoom; +public: + virtual void Command( const CommandEvent& rCEvt ); + virtual void StateChanged( USHORT nSID, SfxItemState eState, + const SfxPoolItem* pState ); + virtual void Paint( const UserDrawEvent& rEvt ); + + SFX_DECL_STATUSBAR_CONTROL(); + + SwZoomControl( USHORT nId, StatusBar& rStb, SfxBindings& rBind ); + ~SwZoomControl(); + +}; + + +#endif + + |