diff options
Diffstat (limited to 'sw/source/ui/inc')
200 files changed, 0 insertions, 23078 deletions
diff --git a/sw/source/ui/inc/DropDownFieldDialog.hxx b/sw/source/ui/inc/DropDownFieldDialog.hxx deleted file mode 100644 index 490339f4e9..0000000000 --- a/sw/source/ui/inc/DropDownFieldDialog.hxx +++ /dev/null @@ -1,71 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SW_DROPDOWNFIELDDIALOG_HXX -#define _SW_DROPDOWNFIELDDIALOG_HXX - -#include <svx/stddlg.hxx> -#include <vcl/fixed.hxx> -#include <vcl/lstbox.hxx> -#include <vcl/button.hxx> - -class SwDropDownField; -class SwField; -class SwWrtShell; - -/*-------------------------------------------------------------------- - Dialog to edit drop down field selection - --------------------------------------------------------------------*/ -namespace sw -{ -class DropDownFieldDialog : public SvxStandardDialog -{ - FixedLine aItemsFL; - ListBox aListItemsLB; - - OKButton aOKPB; - CancelButton aCancelPB; - PushButton aNextPB; - HelpButton aHelpPB; - - PushButton aEditPB; - - SwWrtShell &rSh; - SwDropDownField* pDropField; - - DECL_LINK(ButtonHdl, PushButton*); - virtual void Apply(); -public: - DropDownFieldDialog( Window *pParent, SwWrtShell &rSh, - SwField* pField, sal_Bool bNextButton = sal_False ); - ~DropDownFieldDialog(); -}; -} //namespace sw - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/SidebarWindowsConsts.hxx b/sw/source/ui/inc/SidebarWindowsConsts.hxx deleted file mode 100644 index 5df62bdee1..0000000000 --- a/sw/source/ui/inc/SidebarWindowsConsts.hxx +++ /dev/null @@ -1,40 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _SIDEBARWINDOWSCONSTS_HXX -#define _SIDEBARWINDOWSCONSTS_HXX - -namespace sw { namespace sidebarwindows { - -const sal_Int8 ANCHORLINE_WIDTH = 1; - -} } // end of namespace sw::sidebarwindows - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/SwSpellDialogChildWindow.hxx b/sw/source/ui/inc/SwSpellDialogChildWindow.hxx deleted file mode 100644 index cdca54a93c..0000000000 --- a/sw/source/ui/inc/SwSpellDialogChildWindow.hxx +++ /dev/null @@ -1,76 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef SW_SPELL_DIALOG_CHILD_WINDOW_HXX -#define SW_SPELL_DIALOG_CHILD_WINDOW_HXX - -#include <svx/SpellDialogChildWindow.hxx> -#include <view.hxx> - -class SwWrtShell; -struct SpellState; -class SwSpellDialogChildWindow - : public ::svx::SpellDialogChildWindow -{ - bool m_bIsGrammarCheckingOn; - SpellState* m_pSpellState; - - SwWrtShell* GetWrtShell_Impl(); - bool MakeTextSelection_Impl(SwWrtShell& rSh, ShellModes eSelMode); - bool FindNextDrawTextError_Impl(SwWrtShell& rSh); - bool SpellDrawText_Impl(SwWrtShell& rSh, ::svx::SpellPortions& rPortions); - void LockFocusNotification(bool bLock); - -protected: - virtual svx::SpellPortions GetNextWrongSentence(bool bRecheck); - virtual void ApplyChangedSentence(const svx::SpellPortions& rChanged, bool bRecheck); - virtual void AddAutoCorrection(const String& rOld, const String& rNew, LanguageType eLanguage); - virtual bool HasAutoCorrection(); - virtual bool HasGrammarChecking(); - virtual bool IsGrammarChecking(); - virtual void SetGrammarChecking(bool bOn); - virtual void GetFocus(); - virtual void LoseFocus(); - -public: - SwSpellDialogChildWindow ( - Window*pParent, - sal_uInt16 nId, - SfxBindings* pBindings, - SfxChildWinInfo* pInfo); - ~SwSpellDialogChildWindow(); - - SFX_DECL_CHILDWINDOW(SwSpellDialogChildWindow); - - void InvalidateSpellDialog(); - -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/SwXFilterOptions.hxx b/sw/source/ui/inc/SwXFilterOptions.hxx deleted file mode 100644 index 64f67a3f9a..0000000000 --- a/sw/source/ui/inc/SwXFilterOptions.hxx +++ /dev/null @@ -1,111 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWXFILTEROPTIONS_HXX -#define _SWXFILTEROPTIONS_HXX - -#include <com/sun/star/beans/XPropertyAccess.hpp> -#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp> -#include <com/sun/star/document/XImporter.hpp> -#include <com/sun/star/document/XExporter.hpp> -#include <com/sun/star/lang/XServiceInfo.hpp> -#include <cppuhelper/implbase5.hxx> - -namespace com { namespace sun { namespace star { namespace io { - class XInputStream; -} } } } - -class SwXFilterOptions : public ::cppu::WeakImplHelper5< - ::com::sun::star::beans::XPropertyAccess, - ::com::sun::star::ui::dialogs::XExecutableDialog, - ::com::sun::star::document::XImporter, - ::com::sun::star::document::XExporter, - ::com::sun::star::lang::XServiceInfo > -{ - ::rtl::OUString sFilterName; - ::rtl::OUString sFilterOptions; - - ::com::sun::star::uno::Reference< - ::com::sun::star::io::XInputStream > xInputStream; - ::com::sun::star::uno::Reference< - ::com::sun::star::lang::XComponent > xModel; - sal_Bool bExport; - -public: - SwXFilterOptions(); - virtual ~SwXFilterOptions(); - - static ::rtl::OUString getImplementationName_Static(); - static ::com::sun::star::uno::Sequence< ::rtl::OUString> getSupportedServiceNames_Static(); - - // XPropertyAccess - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > - SAL_CALL getPropertyValues() throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< - ::com::sun::star::beans::PropertyValue >& aProps ) - 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); - - // XExecutableDialog - virtual void SAL_CALL setTitle( const ::rtl::OUString& aTitle ) - throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int16 SAL_CALL execute() throw (::com::sun::star::uno::RuntimeException); - - // XImporter - virtual void SAL_CALL setTargetDocument( const ::com::sun::star::uno::Reference< - ::com::sun::star::lang::XComponent >& xDoc ) - throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException); - - // XExporter - virtual void SAL_CALL setSourceDocument( const ::com::sun::star::uno::Reference< - ::com::sun::star::lang::XComponent >& xDoc ) - throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException); - - // XServiceInfo - virtual ::rtl::OUString SAL_CALL getImplementationName() - throw(::com::sun::star::uno::RuntimeException); - virtual sal_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() - throw(::com::sun::star::uno::RuntimeException); - -}; - -::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL - SwXFilterOptions_createInstance( - const ::com::sun::star::uno::Reference< - ::com::sun::star::lang::XMultiServiceFactory >& ); - -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/abstract.hxx b/sw/source/ui/inc/abstract.hxx deleted file mode 100644 index 10fb9aa14c..0000000000 --- a/sw/source/ui/inc/abstract.hxx +++ /dev/null @@ -1,65 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _ABSTRACT_HXX -#define _ABSTRACT_HXX - -#include <sfx2/basedlgs.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/field.hxx> - -#include <vcl/button.hxx> - -class SwInsertAbstractDlg : public SfxModalDialog -{ - FixedLine aFL; - FixedText aLevelFT; - NumericField aLevelNF; - FixedText aParaFT; - NumericField aParaNF; - FixedText aDescFT; - OKButton aOkPB; - CancelButton aCancelPB; - HelpButton aHelpPB; - -protected: - -public: - SwInsertAbstractDlg( Window* pParent ); - ~SwInsertAbstractDlg(); - - sal_uInt8 GetLevel() const; - sal_uInt8 GetPara() const; -}; - -#endif - - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/actctrl.hxx b/sw/source/ui/inc/actctrl.hxx deleted file mode 100644 index 259c8871aa..0000000000 --- a/sw/source/ui/inc/actctrl.hxx +++ /dev/null @@ -1,99 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _ACTCTRL_HXX -#define _ACTCTRL_HXX - -#include <vcl/field.hxx> -#include "swdllapi.h" - -/*-------------------------------------------------------------------- - Description: numerical input - --------------------------------------------------------------------*/ -class SW_DLLPUBLIC NumEditAction: public NumericField -{ - Link aActionLink; - -protected: - virtual void Action(); - virtual long Notify( NotifyEvent& rNEvt ); -public: - NumEditAction( Window* pParent, const ResId& rResId ) : - NumericField(pParent, rResId) {} - - void SetActionHdl( const Link& rLink ) { aActionLink = rLink;} - const Link& GetActionHdl() const { return aActionLink; } -}; - - -/* -------------------------------------------------- - * Edit that doesn't accept spaces - * --------------------------------------------------*/ -class SW_DLLPUBLIC NoSpaceEdit : public Edit -{ - String sForbiddenChars; -protected: - virtual void KeyInput( const KeyEvent& ); - virtual void Modify(); - -public: - NoSpaceEdit( Window* pParent, const ResId& rResId); - virtual ~NoSpaceEdit(); - void SetForbiddenChars(const String& rSet){sForbiddenChars = rSet;} - const String& GetForbiddenChars(){return sForbiddenChars;} -}; - -/* -------------------------------------------------- - * No space and no full stop - * --------------------------------------------------*/ -class TableNameEdit : public NoSpaceEdit -{ -public: - TableNameEdit(Window* pWin, const ResId& rResId) : - NoSpaceEdit(pWin, rResId) - {SetForbiddenChars(String::CreateFromAscii(" .<>"));} -}; - -/* -------------------------------------------------- - call a link when KEY_RETURN is pressed - --------------------------------------------------*/ -class SW_DLLPUBLIC ReturnActionEdit : public Edit -{ - Link aReturnActionLink; -public: - ReturnActionEdit( Window* pParent, const ResId& rResId) - : Edit(pParent, rResId){} - ~ReturnActionEdit(); - virtual void KeyInput( const KeyEvent& ); - - void SetReturnActionLink(const Link& rLink) - { aReturnActionLink = rLink;} -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/addrdlg.hxx b/sw/source/ui/inc/addrdlg.hxx deleted file mode 100644 index bfb98b0707..0000000000 --- a/sw/source/ui/inc/addrdlg.hxx +++ /dev/null @@ -1,46 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _ADDRDLG_HXX -#define _ADDRDLG_HXX - -#include <sfx2/basedlgs.hxx> - -class SwAddrDlg : public SfxSingleTabDialog -{ -public: - - SwAddrDlg( Window* pParent, const SfxItemSet& rSet ); - ~SwAddrDlg(); -}; - -#endif - - - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/annotsh.hxx b/sw/source/ui/inc/annotsh.hxx deleted file mode 100644 index b8bd66d745..0000000000 --- a/sw/source/ui/inc/annotsh.hxx +++ /dev/null @@ -1,84 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWANNOTSH_HXX -#define _SWANNOTSH_HXX - -#include <sfx2/shell.hxx> -#include "shellid.hxx" -#include "swmodule.hxx" -#include <unotools/caserotate.hxx> - -class SwView; -class SwAnnotationShell: public SfxShell -{ - SwView& rView; - RotateTransliteration m_aRotateCase; - -public: - SFX_DECL_INTERFACE(SW_ANNOTATIONSHELL) - TYPEINFO(); - - SwAnnotationShell(SwView&); - virtual ~SwAnnotationShell(); - - void StateDisableItems(SfxItemSet &); - void Exec(SfxRequest &); - - void GetState(SfxItemSet &); - void StateInsert(SfxItemSet &rSet); - - void NoteExec(SfxRequest &); - void GetNoteState(SfxItemSet &); - - void ExecLingu(SfxRequest &rReq); - void GetLinguState(SfxItemSet &); - - void ExecClpbrd(SfxRequest &rReq); - void StateClpbrd(SfxItemSet &rSet); - - void ExecTransliteration(SfxRequest &); - void ExecRotateTransliteration(SfxRequest &); - - void ExecUndo(SfxRequest &rReq); - void StateUndo(SfxItemSet &rSet); - - void StateStatusLine(SfxItemSet &rSet); - - void InsertSymbol(SfxRequest& rReq); - - void ExecSearch(SfxRequest&, sal_Bool bNoMessage = sal_False); - void StateSearch(SfxItemSet &); - - - virtual ::svl::IUndoManager* - GetUndoManager(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/app.hrc b/sw/source/ui/inc/app.hrc deleted file mode 100644 index b13583113c..0000000000 --- a/sw/source/ui/inc/app.hrc +++ /dev/null @@ -1,134 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _APP_HRC -#define _APP_HRC - -#include "rcid.hrc" - -// Document-Icon -#define RC_DOC_ICON (RC_APP_BEGIN + 2) - -// Should the clipboard for other applications... -#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) - -// For the interface because the RID_APP_BEGIN is now Desktop. -#define RID_SW_NAME ( RC_APP_BEGIN + 8) -#define MSG_SAVEAS_HTML_QUERY ( RC_APP_BEGIN + 9) - - -#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 for the numbering style in organizer -#define BMP_STYLES_FAMILY_NUM (RC_APP_BEGIN + 17) - -// Strings for regions in the configuration -#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 STR_REDLINE_UNKNOWN_AUTHOR (RC_APP_BEGIN + 76) -#define STR_WESTERN_FONT (RC_APP_BEGIN + 77) -#define STR_CJK_FONT (RC_APP_BEGIN + 78) -#define MSG_PRINT_AS_MERGE (RC_APP_BEGIN + 80) -#define MSG_DATA_SOURCES_UNAVAILABLE (RC_APP_BEGIN + 82) -#define DLG_MERGE_SOURCE_UNAVAILABLE (RC_APP_BEGIN + 83) - -#define ST_MERGE_SOURCE_UNAVAILABLE 1 -#define PB_MERGE_OK 2 -#define PB_MERGE_CANCEL 3 -#define IMG_MERGE 4 - -#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 for all the PopUpMenues -#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_FORMAT_FRM_HORZ (RC_APP_BEGIN + 23) -#define MN_CELL (RC_APP_BEGIN + 29) -#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_ARRANGE (RC_APP_BEGIN + 46) - -#define MN_SUB_ALIGN (RC_APP_BEGIN + 50) - -#define STR_WRITER_DOCUMENT_FULLTYPE (RC_APP_BEGIN + 100) -#define STR_ABSTRACT_TITLE (RC_APP_BEGIN + 102) -#define STR_DONT_ASK_AGAIN (RC_APP_BEGIN + 103) -// --> OD 2008-04-14 #outlinelevel# -#define STR_OUTLINE_NUMBERING (RC_APP_BEGIN + 104) -//#outline level,zhaojianwei -#define STR_FDLG_OUTLINE_LEVEL (RC_APP_BEGIN + 105) -#define STR_FDLG_STYLE (RC_APP_BEGIN + 106) -//<-end,zhaojianwei - -#define APP_ACT_END STR_FDLG_STYLE - -#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 deleted file mode 100644 index fe3793a110..0000000000 --- a/sw/source/ui/inc/ascfldlg.hxx +++ /dev/null @@ -1,78 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _ASCFLDLG_HXX -#define _ASCFLDLG_HXX -#include <vcl/fixed.hxx> - -#include <vcl/button.hxx> -#include <vcl/lstbox.hxx> -#include <sfx2/basedlgs.hxx> -#include <svx/txencbox.hxx> -#include <svx/langbox.hxx> - -class SwAsciiOptions; -class SvStream; -class SwDocShell; - -class SwAsciiFilterDlg : public SfxModalDialog -{ - FixedLine aFL; - FixedText aCharSetFT; - SvxTextEncodingBox aCharSetLB; - FixedText aFontFT; - ListBox aFontLB; - FixedText aLanguageFT; - SvxLanguageBox aLanguageLB; - FixedText aCRLF_FT; - RadioButton aCRLF_RB, aCR_RB, aLF_RB; - OKButton aOkPB; - CancelButton aCancelPB; - HelpButton aHelpPB; - String sSystemCharSet; - sal_Bool bSaveLineStatus; - - DECL_LINK( CharSetSelHdl, SvxTextEncodingBox* ); - 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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/autoedit.hxx b/sw/source/ui/inc/autoedit.hxx deleted file mode 100644 index 5f349333c5..0000000000 --- a/sw/source/ui/inc/autoedit.hxx +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _AUTOEDIT_HXX -#define _AUTOEDIT_HXX - -#include <vcl/edit.hxx> - - -class AutoEdit : public Edit -{ -public: - AutoEdit( Window* pParent, ResId aResId ) : Edit( pParent, aResId ){} - -protected: - virtual void KeyInput( const KeyEvent& rEvent ); -}; - -// Implementation in autocorr.cxx - - - -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/barcfg.hxx b/sw/source/ui/inc/barcfg.hxx deleted file mode 100644 index bedf9c5d90..0000000000 --- a/sw/source/ui/inc/barcfg.hxx +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef SW_BARCFG_HXX -#define SW_BARCFG_HXX -#include <unotools/configitem.hxx> - -class SwToolbarConfigItem : public utl::ConfigItem -{ - sal_Int32 aTbxIdArray[5]; - - com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); - -public: - SwToolbarConfigItem( sal_Bool bWeb ); - ~SwToolbarConfigItem(); - - virtual void Commit(); - virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); - - void SetTopToolbar( sal_Int32 nSelType, sal_Int32 nBarId ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/basesh.hxx b/sw/source/ui/inc/basesh.hxx deleted file mode 100644 index dae181def9..0000000000 --- a/sw/source/ui/inc/basesh.hxx +++ /dev/null @@ -1,130 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWBASESH_HXX -#define _SWBASESH_HXX - - -#include <shellid.hxx> - -#define _SVSTDARR_USHORTS -#include <tools/link.hxx> -#include <vcl/timer.hxx> -#include <sfx2/module.hxx> -#include <sfx2/shell.hxx> -#include <svl/svstdarr.hxx> - -#include <mdiexp.hxx> -#include <set> - -class SwWrtShell; -class SwCrsrShell; -class SwView; -class SfxItemSet; -class Graphic; - -struct DBTextStruct_Impl; -class SwBaseShell: public SfxShell -{ - SwView &rView; - - // DragMode - static FlyMode eFrameMode; - - // Bug 75078 - if in GetState the asynch call of GetGraphic returns - // synch, the set the state directly into the itemset - SfxItemSet* pGetStateSet; - - // Update-Timer for graphic - std::set<sal_uInt16> aGrfUpdateSlots; - - DECL_LINK( GraphicArrivedHdl, SwCrsrShell* ); - -protected: - SwWrtShell& GetShell(); - SwWrtShell* GetShellPtr(); - - inline SwView& GetView() { return rView; } - inline void SetGetStateSet( SfxItemSet* p ) { pGetStateSet = p; } - inline sal_Bool AddGrfUpdateSlot( sal_uInt16 nSlot ){ return aGrfUpdateSlots.insert( nSlot ).second; } - - DECL_STATIC_LINK( SwBaseShell, InsertDBTextHdl, DBTextStruct_Impl* ); - - void InsertURLButton( const String& rURL, const String& rTarget, const String& rTxt ); - void InsertTable( SfxRequest& _rRequest ); - -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 GetTxtFontCtrlState(SfxItemSet& rSet); - void GetTxtCtrlState(SfxItemSet& rSet); - void GetBorderState(SfxItemSet &rSet); - void GetBckColState(SfxItemSet &rSet); - - void ExecBckCol(SfxRequest& rReq); - void SetWrapMode( sal_uInt16 nSlot ); - - void StateDisableItems(SfxItemSet &); - - void EditRegionDialog(SfxRequest& rReq); - void InsertRegionDialog(SfxRequest& rReq); - - void ExecField(SfxRequest& rReq); - - static void SetFrmMode( FlyMode eMode, SwWrtShell *pShell ); // with update! - static void _SetFrmMode( FlyMode eMode ) { eFrameMode = eMode; } - static FlyMode GetFrmMode() { return eFrameMode; } - -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/beziersh.hxx b/sw/source/ui/inc/beziersh.hxx deleted file mode 100644 index 2e821feee3..0000000000 --- a/sw/source/ui/inc/beziersh.hxx +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/bmpwin.hxx b/sw/source/ui/inc/bmpwin.hxx deleted file mode 100644 index 2a146194d2..0000000000 --- a/sw/source/ui/inc/bmpwin.hxx +++ /dev/null @@ -1,66 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _BMPWIN_HXX -#define _BMPWIN_HXX - -#include <vcl/graph.hxx> -#include <vcl/bitmapex.hxx> -#include <vcl/window.hxx> - -/*-------------------------------------------------------------------- - Description: extended page for graphics - --------------------------------------------------------------------*/ -class BmpWindow : public Window -{ -private: - Graphic aGraphic; - BitmapEx aBmp; - - sal_Bool bHorz : 1; - sal_Bool bVert : 1; - sal_Bool bGraphic : 1; - sal_Bool bLeftAlign : 1; - - void Paint(const Rectangle& rRect); - -public: - BmpWindow(Window* pPar, sal_uInt16 nId, - const Graphic& rGraphic, const BitmapEx& rBmp); - BmpWindow(Window* pParent, const ResId rResId) : - Window(pParent, rResId), - bHorz(sal_False), bVert(sal_False),bGraphic(sal_False), bLeftAlign(sal_True) {} - ~BmpWindow(); - void MirrorVert(sal_Bool bMirror) { bVert = bMirror; Invalidate(); } - void MirrorHorz(sal_Bool bMirror) { bHorz = bMirror; Invalidate(); } - void SetGraphic(const Graphic& rGrf); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/bookctrl.hxx b/sw/source/ui/inc/bookctrl.hxx deleted file mode 100644 index d1e21b3dc3..0000000000 --- a/sw/source/ui/inc/bookctrl.hxx +++ /dev/null @@ -1,59 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _BOOKCTRL_HXX -#define _BOOKCTRL_HXX - -// include --------------------------------------------------------------- - -#include <sfx2/stbitem.hxx> -#include <tools/string.hxx> - -// class BookmarkToolBoxControl ------------------------------------------- - -class SwBookmarkControl : public SfxStatusBarControl -{ - virtual void Command( const CommandEvent& rCEvt ); - -public: - virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, - const SfxPoolItem* pState ); - virtual void Paint( const UserDrawEvent& rEvt ); - - SFX_DECL_STATUSBAR_CONTROL(); - - SwBookmarkControl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb ); - ~SwBookmarkControl(); - -private: - String sPageNumber; -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/bookmark.hxx b/sw/source/ui/inc/bookmark.hxx deleted file mode 100644 index b2dcc87d1b..0000000000 --- a/sw/source/ui/inc/bookmark.hxx +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _BOOKMARK_HXX -#define _BOOKMARK_HXX - -#include <svx/stddlg.hxx> -#include <vcl/fixed.hxx> - -#include <vcl/button.hxx> - -#include "swlbox.hxx" // SwComboBox - -class SwWrtShell; -class SfxRequest; - -class BookmarkCombo : public SwComboBox -{ - sal_uInt16 GetFirstSelEntryPos() const; - sal_uInt16 GetNextSelEntryPos(sal_uInt16 nPos) const; - sal_uInt16 GetSelEntryPos(sal_uInt16 nPos) const; - - virtual long PreNotify(NotifyEvent& rNEvt); -public: - BookmarkCombo( Window* pWin, const ResId& rResId ); - - sal_uInt16 GetSelectEntryCount() const; - sal_uInt16 GetSelectEntryPos( sal_uInt16 nSelIndex = 0 ) const; - - static const String aForbiddenChars; -}; - -class SwInsertBookmarkDlg: public SvxStandardDialog -{ - FixedLine aBookmarkFl; - BookmarkCombo aBookmarkBox; - OKButton aOkBtn; - CancelButton aCancelBtn; - PushButton aDeleteBtn; - - String sRemoveWarning; - SwWrtShell &rSh; - SfxRequest& rReq; - - DECL_LINK( ModifyHdl, BookmarkCombo * ); - DECL_LINK( DeleteHdl, Button * ); - - virtual void Apply(); - -public: - SwInsertBookmarkDlg( Window *pParent, SwWrtShell &rSh, SfxRequest& rReq ); - ~SwInsertBookmarkDlg(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/break.hxx b/sw/source/ui/inc/break.hxx deleted file mode 100644 index 71d191d144..0000000000 --- a/sw/source/ui/inc/break.hxx +++ /dev/null @@ -1,86 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _BREAK_HXX -#define _BREAK_HXX - -#include <svx/stddlg.hxx> - -#include <vcl/button.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/lstbox.hxx> - -#include <vcl/field.hxx> - -class SwWrtShell; - -class SwBreakDlg: public SvxStandardDialog -{ - SwWrtShell &rSh; - FixedLine aBreakFL; - RadioButton aLineBtn; - RadioButton aColumnBtn; - RadioButton aPageBtn; - FixedText aPageCollText; - ListBox aPageCollBox; - CheckBox aPageNumBox; - NumericField aPageNumEdit; - - OKButton aOkBtn; - CancelButton aCancelBtn; - HelpButton aHelpBtn; - - String aTemplate; - sal_uInt16 nKind; - sal_uInt16 nPgNum; - - sal_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(); - - String GetTemplateName() { return aTemplate; } - sal_uInt16 GetKind() { return nKind; } - sal_uInt16 GetPageNumber() { return nPgNum; } -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/caption.hxx b/sw/source/ui/inc/caption.hxx deleted file mode 100644 index 2c72e6d15e..0000000000 --- a/sw/source/ui/inc/caption.hxx +++ /dev/null @@ -1,113 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CAPTION_HXX -#define _CAPTION_HXX - -#include <tools/string.hxx> -#include <tools/globname.hxx> -#include <SwCapObjType.hxx> -#include "swdllapi.h" - -class SW_DLLPUBLIC InsCaptionOpt -{ -private: - sal_Bool bUseCaption; - SwCapObjType eObjType; - SvGlobalName aOleId; - String sCategory; - sal_uInt16 nNumType; - ::rtl::OUString sNumberSeparator; - String sCaption; - sal_uInt16 nPos; - sal_uInt16 nLevel; -// sal_Unicode cSeparator; - String sSeparator; - String sCharacterStyle; - - sal_Bool bIgnoreSeqOpts; // is not being saved - sal_Bool bCopyAttributes; // -""- - -public: - InsCaptionOpt(const SwCapObjType eType = FRAME_CAP, const SvGlobalName* pOleId = 0); - InsCaptionOpt(const InsCaptionOpt&); - ~InsCaptionOpt(); - - inline sal_Bool& UseCaption() { return bUseCaption; } - inline sal_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 sal_uInt16 GetNumType() const { return nNumType; } - inline void SetNumType(const sal_uInt16 nNT) { nNumType = nNT; } - - const ::rtl::OUString& GetNumSeparator() const { return sNumberSeparator; } - void SetNumSeparator(const ::rtl::OUString& rSet) {sNumberSeparator = rSet;} - - inline const String& GetCaption() const { return sCaption; } - inline void SetCaption(const String& rCap) { sCaption = rCap; } - - inline sal_uInt16 GetPos() const { return nPos; } - inline void SetPos(const sal_uInt16 nP) { nPos = nP; } - - inline sal_uInt16 GetLevel() const { return nLevel; } - inline void SetLevel(const sal_uInt16 nLvl) { nLevel = nLvl; } - -// inline sal_Unicode GetSeparator() const { return cSeparator; } -// inline void SetSeparator(const sal_Unicode cSep){ cSeparator = cSep; } - inline const String& GetSeparator() const { return sSeparator; } - inline void SetSeparator(const String& rSep) { sSeparator = rSep; } - - const String& GetCharacterStyle() const { return sCharacterStyle; } - void SetCharacterStyle(const String& rStyle) - { sCharacterStyle = rStyle; } - - inline sal_Bool& IgnoreSeqOpts() { return bIgnoreSeqOpts; } - inline sal_Bool IgnoreSeqOpts() const { return bIgnoreSeqOpts; } - - inline sal_Bool& CopyAttributes() { return bCopyAttributes; } - inline sal_Bool CopyAttributes() const { return bCopyAttributes; } - - sal_Bool operator==( const InsCaptionOpt& rOpt ) const; - InsCaptionOpt& operator= ( const InsCaptionOpt& rOpt ); - inline sal_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 - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/cfgdesc.hxx b/sw/source/ui/inc/cfgdesc.hxx deleted file mode 100644 index e93d5135fd..0000000000 --- a/sw/source/ui/inc/cfgdesc.hxx +++ /dev/null @@ -1,71 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CFGDESC_HXX -#define _CFGDESC_HXX - -#include <tools/string.hxx> - -class SwCfgDesc -{ -protected: - String aFuncText; - String aLibName; - sal_uInt16 nEvent; - - SwCfgDesc(const String &rFuncName, sal_uInt16 nId); - SwCfgDesc(const String &rLib,const String &rMacro); - ~SwCfgDesc(); - -public: - void SetEvent(sal_uInt16 nE); // inline - void SetFuncText(const String &rStr); // inline - void SetMacro(const String &rLib, const String &rMac); - sal_Bool IsMacro() const; - sal_uInt16 GetEvent() const; // inline - String GetFuncText() const; // inline - String GetMacro() const; // inline - String GetLib() const; // inline -}; - -// INLINE METHODE -------------------------------------------------------- -inline void SwCfgDesc::SetEvent(sal_uInt16 nE) { - nEvent = nE; -} - -inline void SwCfgDesc::SetFuncText(const String &rStr) { - aFuncText = rStr; -} - -inline sal_uInt16 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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/cfgid.h b/sw/source/ui/inc/cfgid.h deleted file mode 100644 index b8b794b7b7..0000000000 --- a/sw/source/ui/inc/cfgid.h +++ /dev/null @@ -1,43 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CFGID_H -#define _CFGID_H - -#include <sfx2/sfx.hrc> - -#define CFG_STATUSBAR (SFX_ITEMTYPE_SW_BEGIN +13) -#define CFG_SW_MENU (SFX_ITEMTYPE_SW_BEGIN +16) -#define CFG_SW_ACCEL (SFX_ITEMTYPE_SW_BEGIN +17) -#define CFG_SWWEB_MENU (SFX_ITEMTYPE_SW_BEGIN +19) -#define CFG_SWWEB_ACCEL (SFX_ITEMTYPE_SW_BEGIN +20) -#define CFG_INSERT_DBCOLUMN_ITEM (SFX_ITEMTYPE_SW_BEGIN +25) -#define CFG_SWGLOBAL_MENU (SFX_ITEMTYPE_SW_BEGIN +29) - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/cfgitems.hxx b/sw/source/ui/inc/cfgitems.hxx deleted file mode 100644 index 999415b281..0000000000 --- a/sw/source/ui/inc/cfgitems.hxx +++ /dev/null @@ -1,242 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CFGITEMS_HXX -#define _CFGITEMS_HXX - -#include <tools/color.hxx> -#include <svl/poolitem.hxx> -#include "swdllapi.h" -#include <printdata.hxx> - -#include <cmdid.h> - -class SwWriterApp; -class SwModule; -#if OSL_DEBUG_LEVEL > 1 -class SwTestTabPage; -#endif -class SwAddPrinterTabPage; -class SfxPrinter; -class ViewShell; -class SwViewOption; -class SwContentOptPage; -class SwShdwCrsrOptionsTabPage; -class SwDocEditDialog; - -SfxPrinter* GetPrt( ViewShell* ); -void SetPrt( SfxPrinter* ); - -/*--------OS 12.01.95 ----------------------------------- -Item for settings dialog - document view ---------------------------------------------------------- */ -class SW_DLLPUBLIC SwDocDisplayItem : public SfxPoolItem -{ - friend class SwWriterApp; - friend class SwShdwCrsrOptionsTabPage; - friend class SwModule; - - sal_Bool bParagraphEnd :1; - sal_Bool bTab :1; - sal_Bool bSpace :1; - sal_Bool bNonbreakingSpace :1; - sal_Bool bSoftHyphen :1; - sal_Bool bCharHiddenText :1; - sal_Bool bFldHiddenText :1; - sal_Bool bManualBreak :1; - sal_Bool bShowHiddenPara :1; - - Color aIndexBackgrndCol; - - -public: - TYPEINFO(); - SwDocDisplayItem( sal_uInt16 nWhich = FN_PARAM_DOCDISP ); - SwDocDisplayItem( - const SwDocDisplayItem& rSwDocDisplayItem ); - SwDocDisplayItem( const SwViewOption& rVOpt, - sal_uInt16 nWhich ); - - - virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - virtual int operator==( const SfxPoolItem& ) const; - void operator=( const SwDocDisplayItem& ); - void FillViewOptions( SwViewOption& rVOpt) const; -}; - -/*--------OS 12.01.95 ----------------------------------- -Item for settings dialog, element page ---------------------------------------------------------- */ -class SW_DLLPUBLIC SwElemItem : public SfxPoolItem -{ - //view - sal_Bool bHorzScrollbar :1; - sal_Bool bVertScrollbar :1; - sal_Bool bAnyRuler : 1; - sal_Bool bHorzRuler :1; - sal_Bool bVertRuler :1; - sal_Bool bVertRulerRight:1; - sal_Bool bSmoothScroll :1; - //visual aids - sal_Bool bCrosshair :1; - sal_Bool bHandles :1; - sal_Bool bBigHandles :1; - //display - sal_Bool bTable :1; - sal_Bool bGraphic :1; - sal_Bool bDrawing :1; - sal_Bool bFieldName :1; - sal_Bool bNotes :1; - - friend class SwContentOptPage; - -public: - TYPEINFO(); - SwElemItem( sal_uInt16 nWhich = FN_PARAM_ELEM ); - SwElemItem(const SwElemItem& rElemItem); - SwElemItem(const SwViewOption& rVOpt, sal_uInt16 nWhich); - - - virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - virtual int operator==( const SfxPoolItem& ) const; - void operator=( const SwElemItem& ); - - void FillViewOptions( SwViewOption& rVOpt) const; - -}; - -/*--------OS 12.01.95 ----------------------------------- -Item for settings dialog - printer/add ons ---------------------------------------------------------- */ -class SW_DLLPUBLIC SwAddPrinterItem : public SfxPoolItem, public SwPrintData -{ - friend class SwAddPrinterTabPage; - - using SwPrintData::operator ==; - -public: - TYPEINFO(); - SwAddPrinterItem( sal_uInt16 nWhich = FN_PARAM_ADDPRINTER ); - SwAddPrinterItem( sal_uInt16 nWhich, const SwPrintData& rPrtData ); - SwAddPrinterItem( const SwAddPrinterItem& rAddPrinterItem); - - virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - - virtual int operator==( const SfxPoolItem& ) const; - - const rtl::OUString &GetFax() const { return sFaxName; } - void SetFax( const String& rFax) { sFaxName = rFax; } - - - sal_Bool IsPrintProspect() const { return bPrintProspect; } - sal_Bool IsPrintProspectRTL() const { return bPrintProspectRTL; } - void SetPrintProspect(sal_Bool bFlag ){ bPrintProspect = bFlag; } - void SetPrintProspectRTL(sal_Bool bFlag ){ bPrintProspectRTL = bFlag; } - 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 bPrintLeftPages; } - sal_Bool IsPrintRightPage() const { return bPrintRightPages; } - sal_Bool IsPrintReverse () const { return bPrintReverse; } - sal_Bool IsPaperFromSetup() const { return bPaperFromSetup; } - sal_Bool IsPrintEmptyPages() const { return bPrintEmptyPages; } - sal_Bool IsPrintPageBackground() const { return bPrintPageBackground; } - sal_Bool IsPrintBlackFont() const { return bPrintBlackFont; } - //#i81434# - printing of hidden text - sal_Bool IsPrintHiddenText() const { return bPrintHiddenText; } - sal_Bool IsPrintTextPlaceholder() const { return bPrintTextPlaceholder; } - - sal_Bool IsPrintSingleJobs() const { return bPrintSingleJobs; } - sal_uLong GetPrintPostIts () const { return nPrintPostIts; } - -}; - -/*--------OS 12.01.95 ----------------------------------- -Item for settings dialog, ShadowCursorPage ---------------------------------------------------------- */ -class SW_DLLPUBLIC SwShadowCursorItem : public SfxPoolItem -{ - sal_uInt8 eMode; - sal_Bool bOn; -public: - TYPEINFO(); - SwShadowCursorItem( sal_uInt16 nWhich = FN_PARAM_SHADOWCURSOR ); - SwShadowCursorItem( const SwShadowCursorItem& rElemItem ); - SwShadowCursorItem( const SwViewOption& rVOpt, sal_uInt16 nWhich ); - - - virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - virtual int operator==( const SfxPoolItem& ) const; - void operator=( const SwShadowCursorItem& ); - - void FillViewOptions( SwViewOption& rVOpt) const; - - sal_uInt8 GetMode() const { return eMode; } - sal_Bool IsOn() const { return bOn; } - - void SetMode( sal_uInt8 eM ) { eMode = eM; } - void SetOn( sal_Bool bFlag ) { bOn = bFlag; } -}; - -#if OSL_DEBUG_LEVEL > 1 - -/*--------OS 12.01.95 ----------------------------------- -Item for settings dialog - test settings ---------------------------------------------------------- */ -class SW_DLLPUBLIC SwTestItem : public SfxPoolItem -{ - friend class SwModule; - friend class SwWriterApp; - friend class SwTestTabPage; - friend class SwDocEditDialog; - - sal_Bool bTest1:1; - sal_Bool bTest2:1; - sal_Bool bTest3:1; - sal_Bool bTest4:1; - sal_Bool bTest5:1; - sal_Bool bTest6:1; - sal_Bool bTest7:1; - sal_Bool bTest8:1; - sal_Bool bTest9:1; - sal_Bool bTest10:1; - -public: - SwTestItem( sal_uInt16 _nWhich): - SfxPoolItem(_nWhich){}; - SwTestItem( const SwTestItem& pTestItem); - - virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - virtual int operator==( const SfxPoolItem& ) const; - -}; -#endif - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/changedb.hxx b/sw/source/ui/inc/changedb.hxx deleted file mode 100644 index 92dbdcb218..0000000000 --- a/sw/source/ui/inc/changedb.hxx +++ /dev/null @@ -1,85 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CHANGEDB_HXX -#define _CHANGEDB_HXX - - -#include <vcl/bitmap.hxx> -#include <vcl/button.hxx> -#include <vcl/fixed.hxx> -#include <svtools/stdctrl.hxx> -#include <svtools/svtreebx.hxx> -#include <svx/stddlg.hxx> -#include "dbtree.hxx" - -class SwFldMgr; -class SwView; -class SwWrtShell; -struct SwDBData; - -/*-------------------------------------------------------------------- - Description: exchange database at fields - --------------------------------------------------------------------*/ -class SwChangeDBDlg: public SvxStandardDialog -{ - FixedLine aDBListFL; - FixedText aUsedDBFT; - FixedText aAvailDBFT; - SvTreeListBox aUsedDBTLB; - SwDBTreeList aAvailDBTLB; - PushButton aAddDBPB; - FixedInfo aDescFT; - FixedText aDocDBTextFT; - FixedText aDocDBNameFT; - OKButton aOKBT; - CancelButton aCancelBT; - HelpButton aHelpBT; - - ImageList aImageList; - - SwWrtShell *pSh; - SwFldMgr *pMgr; - - DECL_LINK(TreeSelectHdl, SvTreeListBox* pBox = 0); - DECL_LINK(ButtonHdl, Button* pBtn); - DECL_LINK(AddDBHdl, PushButton*); - - virtual void Apply(); - void UpdateFlds(); - void FillDBPopup(); - SvLBoxEntry* Insert(const String& rDBName); - void ShowDBName(const SwDBData& rDBData); - -public: - SwChangeDBDlg(SwView& rVw); - ~SwChangeDBDlg(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/chartins.hxx b/sw/source/ui/inc/chartins.hxx deleted file mode 100644 index 668f587e60..0000000000 --- a/sw/source/ui/inc/chartins.hxx +++ /dev/null @@ -1,37 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CHARTINS_HXX -#define _CHARTINS_HXX - - -Point SwGetChartDialogPos( const Window *pParentWin, const Size& rDialogSize, const Rectangle& rLogicChart ); -void SwInsertChart( Window *pParent, SfxBindings *pBindings ); - -#endif /*_CHARTINS_HXX*/ - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/chldwrap.hxx b/sw/source/ui/inc/chldwrap.hxx deleted file mode 100644 index a7ff87fc54..0000000000 --- a/sw/source/ui/inc/chldwrap.hxx +++ /dev/null @@ -1,57 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CHLDWRAP_HXX -#define _CHLDWRAP_HXX - -#include <sfx2/childwin.hxx> -#include <vcl/timer.hxx> - -class SwDocShell; - -class SwChildWinWrapper : public SfxChildWindow -{ - Timer m_aUpdateTimer; - SwDocShell* m_pDocSh; - - DECL_LINK( UpdateHdl, void* ); - - // Implementation in fldtdlg.cxx -protected: - SwChildWinWrapper(Window *pParentWindow, sal_uInt16 nId); - -public: - virtual sal_Bool ReInitDlg(SwDocShell *pDocSh); - - inline SwDocShell* GetOldDocShell() { return m_pDocSh; } - inline void SetOldDocShell(SwDocShell *pDcSh) { m_pDocSh = pDcSh; } -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/chrdlg.hxx b/sw/source/ui/inc/chrdlg.hxx deleted file mode 100644 index d6cbe5fe93..0000000000 --- a/sw/source/ui/inc/chrdlg.hxx +++ /dev/null @@ -1,101 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWCHARDLG_HXX -#define _SWCHARDLG_HXX -#include <sfx2/tabdlg.hxx> - -#include <vcl/group.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/edit.hxx> - -#include <vcl/combobox.hxx> - -#include <vcl/button.hxx> - -#include <vcl/lstbox.hxx> - -class SwView; -class SvxMacroItem; - -class SwCharDlg: public SfxTabDialog -{ - SwView& rView; - sal_Bool bIsDrwTxtMode; - -public: - SwCharDlg(Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet, - const String* pFmtStr = 0, sal_Bool bIsDrwTxtDlg = sal_False); - - ~SwCharDlg(); - - virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ); -}; - -class SwCharURLPage : public SfxTabPage -{ - FixedLine aURLFL; - - FixedText aURLFT; - Edit aURLED; - FixedText aTextFT; - Edit aTextED; - FixedText aNameFT; - Edit aNameED; - FixedText aTargetFrmFT; - ComboBox aTargetFrmLB; - PushButton aURLPB; - PushButton aEventPB; - FixedLine aStyleFL; - FixedText aVisitedFT; - ListBox aVisitedLB; - FixedText aNotVisitedFT; - ListBox aNotVisitedLB; - - SvxMacroItem* pINetItem; - sal_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 sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/cnttab.hxx b/sw/source/ui/inc/cnttab.hxx deleted file mode 100644 index 4343efd2f3..0000000000 --- a/sw/source/ui/inc/cnttab.hxx +++ /dev/null @@ -1,85 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CNTTAB_HXX -#define _CNTTAB_HXX - -#include <svx/stddlg.hxx> - -#include <vcl/button.hxx> - -#include <vcl/edit.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/field.hxx> -#include <vcl/lstbox.hxx> -#include <sfx2/tabdlg.hxx> - -#include "tox.hxx" -#include <toxmgr.hxx> -#include <svx/checklbx.hxx> -#include <tools/resary.hxx> -#include <svtools/svtreebx.hxx> -#include <vcl/menubtn.hxx> -#include <svx/langbox.hxx> - -#define TOX_PAGE_SELECT 1 -#define TOX_PAGE_ENTRY 2 -#define TOX_PAGE_STYLES 3 - -struct CurTOXType -{ - TOXTypes eType; - sal_uInt16 nIndex; //for TOX_USER only - - sal_Bool operator==(const CurTOXType aCmp) - { - return eType == aCmp.eType && nIndex == aCmp.nIndex; - } - sal_uInt16 GetFlatIndex() const; - - CurTOXType () : eType (TOX_INDEX), nIndex (0) {}; - - CurTOXType (TOXTypes t, sal_uInt16 i) : eType (t), nIndex (i) {}; -}; - -class SwOLENames : public Resource -{ - ResStringArray aNamesAry; -public: - SwOLENames(const ResId& rResId) : - Resource(rResId), - aNamesAry(ResId(1,*rResId.GetResMgr())){FreeResource();} - - ResStringArray& GetNames() { return aNamesAry;} - -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/colex.hxx b/sw/source/ui/inc/colex.hxx deleted file mode 100644 index 2e95573372..0000000000 --- a/sw/source/ui/inc/colex.hxx +++ /dev/null @@ -1,111 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _COLEX_HXX -#define _COLEX_HXX - -#include <svx/pagectrl.hxx> -#include <editeng/paperinf.hxx> -#include "swdllapi.h" -#include <fmtclds.hxx> -#include "frmatr.hxx" - -class SwColMgr; -class SfxItemSet; - -class SW_DLLPUBLIC SwPageExample : public SvxPageWindow -{ -public: - SwPageExample(Window* pPar, const ResId& rResId ) : - SvxPageWindow(pPar, rResId ) - {SetSize(SvxPaperInfo::GetPaperSize(PAPER_A4));/*DIN A4*/} - - void UpdateExample( const SfxItemSet& rSet ); -}; - -class SwTextGridItem; - -class SW_DLLPUBLIC SwPageGridExample : public SwPageExample -{ - SwTextGridItem* pGridItem; - sal_Bool m_bVertical; -protected: - virtual void DrawPage( const Point& rPoint, - const sal_Bool bSecond, - const sal_Bool bEnabled ); -public: - SwPageGridExample(Window* pPar, const ResId& rResId ) : - SwPageExample(pPar, rResId ), - pGridItem(0), - m_bVertical(sal_False){} - ~SwPageGridExample(); - void UpdateExample( const SfxItemSet& rSet ); -}; - -class SW_DLLPUBLIC SwColExample : public SwPageExample -{ - SwColMgr* pColMgr; - - using SwPageExample::UpdateExample; - -protected: - virtual void DrawPage( const Point& rPoint, - const sal_Bool bSecond, - const sal_Bool bEnabled ); - -public: - SwColExample(Window* pPar, const ResId& rResId ) : - SwPageExample(pPar, rResId ), - pColMgr(0){} - - void UpdateExample( const SfxItemSet& rSet, SwColMgr* pMgr ) - { pColMgr = pMgr; - SwPageExample::UpdateExample(rSet); - } -}; - -class SW_DLLPUBLIC SwColumnOnlyExample : public Window -{ -private: - Size m_aWinSize; - - Size m_aFrmSize; - SwFmtCol m_aCols; - -protected: - virtual void Paint( const Rectangle& rRect ); - -public: - SwColumnOnlyExample( Window* , const ResId& ); - - void SetColumns(const SwFmtCol& rCol); - -}; - -#endif // _COLEX_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/colmgr.hxx b/sw/source/ui/inc/colmgr.hxx deleted file mode 100644 index 7ded3b51f5..0000000000 --- a/sw/source/ui/inc/colmgr.hxx +++ /dev/null @@ -1,138 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _COLMGR_HXX -#define _COLMGR_HXX - -#include "swdllapi.h" -#include <fmtclds.hxx> - -SW_DLLPUBLIC void FitToActualSize(SwFmtCol& rCol, sal_uInt16 nWidth); - -class SW_DLLPUBLIC SwColMgr -{ -public: - // lActWidth is passed directly from the page dialogs edits - SwColMgr(const SfxItemSet &rSet, sal_uInt16 nActWidth = USHRT_MAX); - ~SwColMgr(); - - - inline sal_uInt16 GetCount() const; - void SetCount(sal_uInt16 nCount, sal_uInt16 nGutterWidth); - sal_uInt16 GetGutterWidth(sal_uInt16 nPos = USHRT_MAX) const; - void SetGutterWidth(sal_uInt16 nWidth, sal_uInt16 nPos = USHRT_MAX); - - sal_uInt16 GetColWidth(sal_uInt16 nIdx) const; - void SetColWidth(sal_uInt16 nIdx, sal_uInt16 nWidth); - - inline sal_Bool IsAutoWidth() const; - void SetAutoWidth(sal_Bool bOn = sal_True, sal_uInt16 lGutterWidth = 0); - - inline sal_Bool HasLine() const; - inline void SetNoLine(); - - void SetLineWidthAndColor(::editeng::SvxBorderStyle eStyle, sal_uLong nWidth, const Color& rCol); - inline ::editeng::SvxBorderStyle GetLineStyle() const; - inline sal_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(sal_uInt16 nW); - sal_uInt16 GetActualSize() const { return nWidth; } - - -private: - - SwFmtCol aFmtCol; - sal_uInt16 nWidth; -}; - -// INLINE METHOD -------------------------------------------------------- -inline sal_uInt16 SwColMgr::GetCount() const -{ - return aFmtCol.GetNumCols(); -} - -inline ::editeng::SvxBorderStyle SwColMgr::GetLineStyle() const -{ - return aFmtCol.GetLineStyle(); -} -inline sal_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 sal_Bool SwColMgr::IsAutoWidth() const -{ - return aFmtCol.IsOrtho(); -} -inline void SwColMgr::SetAutoWidth(sal_Bool bOn, sal_uInt16 nGutterWidth) -{ - aFmtCol.SetOrtho(bOn, nGutterWidth, nWidth); -} - -inline void SwColMgr::NoCols() -{ - aFmtCol.GetColumns().DeleteAndDestroy(0, aFmtCol.GetColumns().Count()); -} -inline sal_Bool SwColMgr::HasLine() const -{ - return GetAdjust() != COLADJ_NONE; -} - -inline void SwColMgr::SetNoLine() -{ - SetAdjust(COLADJ_NONE); -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/column.hxx b/sw/source/ui/inc/column.hxx deleted file mode 100644 index 2c352dd3c6..0000000000 --- a/sw/source/ui/inc/column.hxx +++ /dev/null @@ -1,211 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _COLUMN_HXX -#define _COLUMN_HXX - - -#include <vcl/fixed.hxx> -#include <vcl/field.hxx> -#include <vcl/image.hxx> -#include <vcl/group.hxx> -#include <vcl/lstbox.hxx> -#include <vcl/button.hxx> -#include <vcl/timer.hxx> -#include <vcl/button.hxx> -#include <svtools/ctrlbox.hxx> -#include <svtools/valueset.hxx> -#include <sfx2/basedlgs.hxx> -#include <sfx2/tabdlg.hxx> -#include <fmtclbl.hxx> -#include <colex.hxx> -#include <prcntfld.hxx> - -const int nMaxCols = 99; -class SwColMgr; -class SwWrtShell; -class SwColumnPage; - -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; - - sal_Bool bPageChanged : 1; - sal_Bool bSectionChanged : 1; - sal_Bool bSelSectionChanged : 1; - sal_Bool bFrameChanged : 1; - - - DECL_LINK(ObjectHdl, ListBox*); - DECL_LINK(OkHdl, OKButton*); - -public: - SwColumnDlg(Window* pParent, SwWrtShell& rSh); - virtual ~SwColumnDlg(); - - SwWrtShell& GetWrtShell() { return rWrtShell; } -}; - -class ColumnValueSet : public ValueSet -{ - public: - ColumnValueSet(Window* pParent, const ResId& rResId) : - ValueSet(pParent, rResId){} - ~ColumnValueSet(); - - virtual void UserDraw( const UserDrawEvent& rUDEvt ); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); -}; - -/*-------------------------------------------------------------------- - Description: column dialog now as TabPage - --------------------------------------------------------------------*/ -class SwColumnPage : public SfxTabPage -{ - FixedLine aFLGroup; - FixedText aClNrLbl; - NumericField aCLNrEdt; - ColumnValueSet aDefaultVS; - ImageList aPreColsIL; - CheckBox aBalanceColsCB; - - FixedLine aFLLayout; - ImageButton aBtnUp; - FixedText aColumnFT; - FixedText aWidthFT; - FixedText aDistFT; - FixedText aLbl1; - PercentField aEd1; - PercentField aDistEd1; - FixedText aLbl2; - PercentField aEd2; - PercentField aDistEd2; - FixedText aLbl3; - PercentField aEd3; - ImageButton aBtnDown; - CheckBox aAutoWidthBox; - - - FixedLine aFLLineType; - FixedText aLineTypeLbl; - LineListBox aLineTypeDLB; - FixedText aLineWidthLbl; - MetricField aLineWidthEdit; - FixedText aLineColorLbl; - ColorListBox aLineColorDLB; - FixedText aLineHeightLbl; - MetricField aLineHeightEdit; - FixedText aLinePosLbl; - ListBox aLinePosDLB; - - FixedText aTextDirectionFT; - ListBox aTextDirectionLB; - - // Example - SwColExample aPgeExampleWN; - SwColumnOnlyExample aFrmExampleWN; - - SwColMgr* pColMgr; - - sal_uInt16 nFirstVis; - sal_uInt16 nCols; - long nColWidth[nMaxCols]; - long nColDist[nMaxCols]; - sal_uInt16 nMinWidth; - PercentField *pModifiedField; - sal_Bool bFormat; - sal_Bool bFrm; - sal_Bool bHtmlMode; - sal_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( sal_uInt16 nVis ); - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - - virtual void ActivatePage(const SfxItemSet& rSet); - virtual int DeactivatePage(SfxItemSet *pSet); - - SwColumnPage(Window *pParent, const SfxItemSet &rSet); - -public: - virtual ~SwColumnPage(); - - static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); - static sal_uInt16* GetRanges(); - - virtual sal_Bool FillItemSet(SfxItemSet &rSet); - virtual void Reset(const SfxItemSet &rSet); - - void SetFrmMode(sal_Bool bMod); - void SetPageWidth(long nPageWidth); - - void SetFormatUsed(sal_Bool bFmt) { bFormat = bFmt; } - - void ShowBalance(sal_Bool bShow) {aBalanceColsCB.Show(bShow);} - void SetInSection(sal_Bool bSet); - - void ActivateColumnControl() {aCLNrEdt.GrabFocus();} -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/conarc.hxx b/sw/source/ui/inc/conarc.hxx deleted file mode 100644 index 3e2779e8ba..0000000000 --- a/sw/source/ui/inc/conarc.hxx +++ /dev/null @@ -1,59 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CONARC_HXX -#define _CONARC_HXX - -#include "drawbase.hxx" - -/************************************************************************* -|* -|* draw rectangle -|* -\************************************************************************/ - -class ConstArc : public SwDrawBase -{ - Point aStartPnt; - sal_uInt16 nAnzButUp; - -public: - ConstArc(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView); - - // Mouse- & Key-Events - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt); - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt); - - virtual void Activate(const sal_uInt16 nSlotId); // activate function - virtual void Deactivate(); -}; - - - -#endif // _CONARC_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/concustomshape.hxx b/sw/source/ui/inc/concustomshape.hxx deleted file mode 100644 index 254f670a01..0000000000 --- a/sw/source/ui/inc/concustomshape.hxx +++ /dev/null @@ -1,74 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _SW_CONCUSTOMSHAPE_HXX -#define _SW_CONCUSTOMSHAPE_HXX - -#include <rtl/ustring.hxx> -#include "drawbase.hxx" - -class SdrObject; -class SfxRequest; - -/************************************************************************* -|* -|* draw rectangle -|* -\************************************************************************/ - -class ConstCustomShape : public SwDrawBase -{ - - rtl::OUString aCustomShape; - - void SetAttributes( SdrObject* pObj ); - - public: - - ConstCustomShape( SwWrtShell* pSh, SwEditWin* pWin, SwView* pView, SfxRequest& rReq ); - - // Mouse- & Key-Events - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt); - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt); - - virtual void Activate(const sal_uInt16 nSlotId); // activate function - - rtl::OUString GetShapeType() const; - static rtl::OUString GetShapeTypeFromRequest( SfxRequest& rReq ); - - virtual void CreateDefaultObject(); - - // #i33136# - virtual bool doConstructOrthogonal() const; -}; - - - -#endif // _SW_CONRECT_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/condedit.hxx b/sw/source/ui/inc/condedit.hxx deleted file mode 100644 index aa4014f025..0000000000 --- a/sw/source/ui/inc/condedit.hxx +++ /dev/null @@ -1,53 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CONDEDTI_HXX -#define _CONDEDTI_HXX - -#include <vcl/edit.hxx> -#include <svtools/transfer.hxx> -#include "swdllapi.h" - -class SW_DLLPUBLIC ConditionEdit : public Edit, public DropTargetHelper -{ - sal_Bool bBrackets, bEnableDrop; - - SW_DLLPRIVATE virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); - SW_DLLPRIVATE virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); - -public: - ConditionEdit( Window* pParent, const ResId& rResId ); - - inline void ShowBrackets(sal_Bool bShow) { bBrackets = bShow; } - - inline void SetDropEnable( sal_Bool bFlag ) { bEnableDrop = bFlag; } - inline sal_Bool IsDropEnable() const { return bEnableDrop; } -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/conform.hxx b/sw/source/ui/inc/conform.hxx deleted file mode 100644 index e7750d85ce..0000000000 --- a/sw/source/ui/inc/conform.hxx +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#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 sal_Bool MouseButtonDown(const MouseEvent& rMEvt); - - virtual void Activate(const sal_uInt16 nSlotId); // activate function - virtual void CreateDefaultObject(); -}; - - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/conpoly.hxx b/sw/source/ui/inc/conpoly.hxx deleted file mode 100644 index a765d4f9e1..0000000000 --- a/sw/source/ui/inc/conpoly.hxx +++ /dev/null @@ -1,57 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CONPOLY_HXX -#define _CONPOLY_HXX - -#include "drawbase.hxx" - -/************************************************************************* -|* -|* base class for all functions -|* -\************************************************************************/ - -class ConstPolygon : public SwDrawBase -{ - Point aLastPos; - -public: - ConstPolygon(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView); - - // Mouse- & Key-Events - virtual sal_Bool MouseMove(const MouseEvent& rMEvt); - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt); - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt); - - virtual void Activate(const sal_uInt16 nSlotId); // activate function -}; - - -#endif // _CONPOLY_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/conrect.hxx b/sw/source/ui/inc/conrect.hxx deleted file mode 100644 index 5152bd26ee..0000000000 --- a/sw/source/ui/inc/conrect.hxx +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _SW_CONRECT_HXX -#define _SW_CONRECT_HXX - -#include "drawbase.hxx" - -/************************************************************************* -|* -|* draw rectangle -|* -\************************************************************************/ - -class ConstRectangle : public SwDrawBase -{ - sal_Bool bMarquee; - sal_Bool bCapVertical; - - // #93382# - sal_Bool mbVertical; - - public: - ConstRectangle(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView); - - // Mouse- & Key-Events - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt); - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt); - - virtual void Activate(const sal_uInt16 nSlotId); // activate function -}; - - - -#endif // _SW_CONRECT_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/content.hxx b/sw/source/ui/inc/content.hxx deleted file mode 100644 index 60f91505fe..0000000000 --- a/sw/source/ui/inc/content.hxx +++ /dev/null @@ -1,224 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CONTENT_HXX -#define _CONTENT_HXX -#include <limits.h> // USHRT_MAX -#include "swcont.hxx" - -#include <vcl/menu.hxx> - -class SwWrtShell; -class SwContentArr; -class SwContentType; -class SwFmtFld; -class SwTxtINetFmt; -class SwTOXBase; -class SwRedline; - -//---------------------------------------------------------------------------- -// helper classes -//---------------------------------------------------------------------------- - -class SwPopup : public PopupMenu -{ - sal_uInt16 nCurId; - virtual void Select(){nCurId = GetCurItemId();} - -public: - SwPopup() : - PopupMenu(), - nCurId(USHRT_MAX){} - - sal_uInt16 GetCurId() const { return nCurId; } - -}; - -//---------------------------------------------------------------------------- - -class SwOutlineContent : public SwContent -{ - sal_uInt16 nOutlinePos; - sal_uInt8 nOutlineLevel; - sal_Bool bIsMoveable; - public: - SwOutlineContent( const SwContentType* pCnt, - const String& rName, - sal_uInt16 nArrPos, - sal_uInt8 nLevel, - sal_Bool bMove, - long nYPos) : - SwContent(pCnt, rName, nYPos), - nOutlinePos(nArrPos), nOutlineLevel(nLevel), bIsMoveable(bMove) {} - - sal_uInt16 GetPos(){return nOutlinePos;} - sal_uInt8 GetOutlineLevel(){return nOutlineLevel;} - sal_Bool IsMoveable(){return bIsMoveable;}; -}; - -//---------------------------------------------------------------------------- -class SwRegionContent : public SwContent -{ - - sal_uInt8 nRegionLevel; - - public: - SwRegionContent( const SwContentType* pCnt, - const String& rName, - sal_uInt8 nLevel, - long nYPos) : - SwContent(pCnt, rName, nYPos), - nRegionLevel(nLevel){} - sal_uInt8 GetRegionLevel() const {return nRegionLevel;} -}; -//---------------------------------------------------------------------------- - -class SwURLFieldContent : public SwContent -{ - String sURL; - const SwTxtINetFmt* pINetAttr; - -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 sal_Bool IsProtect() const; - const String& GetURL() { return sURL; } - const SwTxtINetFmt* GetINetAttr() { return pINetAttr; } -}; - -//---------------------------------------------------------------------------- -class SwPostItContent : public SwContent -{ - const SwFmtFld* pFld; - SwRedline* pRedline; - bool mbPostIt; -public: - SwPostItContent( const SwContentType* pCnt, - const String& rName, - const SwFmtFld* pField, - long nYPos ) - : SwContent( pCnt, rName, nYPos ), pFld( pField ),mbPostIt(true) - {} - SwPostItContent( const SwContentType* pCnt, - const String& rName, - SwRedline* pRed, - long nYPos ) - : SwContent( pCnt, rName, nYPos ), pRedline( pRed ),mbPostIt(false) - {} - - const SwFmtFld* GetPostIt() { return pFld; } - SwRedline* GetRedline() { return pRedline; } - virtual sal_Bool IsProtect() const; - bool IsPostIt() {return mbPostIt; } -}; - -//---------------------------------------------------------------------------- - -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 contains information to one type of content. - MemberArray is only populated if the content is requested by - GetMember. It is reloaded after Invalidate() only if the content - should be read again. -*/ -//---------------------------------------------------------------------------- - -class SwContentType : public SwTypeNumber -{ - SwWrtShell* pWrtShell; - SwContentArr* pMember; // array for content - String sContentTypeName; // name of content type - String sSingleContentTypeName; // name of content type, singular - String sTypeToken; // attachment for URL - sal_uInt16 nMemberCount; // content count - sal_uInt16 nContentType; // content type's Id - sal_uInt8 nOutlineLevel; - sal_Bool bMemberFilled : 1; // has content already been inserted? - sal_Bool bIsInternalDrag:1; // can content be relocated? - sal_Bool bDataValid : 1; // - sal_Bool bEdit: 1; // can this type be edited? - sal_Bool bDelete: 1; // can this type be deleted? -protected: - void RemoveNewline(String&); -public: - SwContentType(SwWrtShell* pParent, sal_uInt16 nType, sal_uInt8 nLevel ); - ~SwContentType(); - - void Init(sal_Bool* pbInvalidateWindow = 0); - void FillMemberList(sal_Bool* pbLevelChanged = NULL); - sal_uInt16 GetMemberCount() const - {return nMemberCount;}; - sal_uInt16 GetType() const {return nContentType;} - const SwContent* GetMember(sal_uInt16 nIndex); - const String& GetName() {return sContentTypeName;} - const String& GetSingleName() const {return sSingleContentTypeName;} - const String& GetTypeToken() const{return sTypeToken;} - - void SetOutlineLevel(sal_uInt8 nNew) - { - nOutlineLevel = nNew; - Invalidate(); - } - - void Invalidate(); // only nMemberCount is read again - - sal_Bool IsEditable() const {return bEdit;} - sal_Bool IsDeletable() const {return bDelete;} -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/conttree.hxx b/sw/source/ui/inc/conttree.hxx deleted file mode 100644 index 899f7d6af1..0000000000 --- a/sw/source/ui/inc/conttree.hxx +++ /dev/null @@ -1,338 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CONTTREE_HXX -#define _CONTTREE_HXX - -#include <svtools/svtreebx.hxx> -#include "swcont.hxx" - -#include <map> - -class SwWrtShell; -class SwContentType; -class SwNavigationPI; -class SwNavigationConfig; -class Menu; -class ToolBox; -class SwGlblDocContents; -class SwGlblDocContent; -class SfxObjectShell; - - -#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 -{ - ImageList aEntryImages; - String sSpace; - AutoTimer aUpdTimer; - - 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; - String sPostItShow; - String sPostItHide; - String sPostItDelete; - - SwWrtShell* pHiddenShell; // dropped Doc - SwWrtShell* pActiveShell; // the active or a const. open view - SwNavigationConfig* pConfig; - - std::map< void*, sal_Bool > mOutLineNodeMap; - - sal_Int32 nActiveBlock; - sal_uInt16 nHiddenBlock; - sal_uInt16 nRootType; - sal_uInt16 nLastSelType; - sal_uInt8 nOutlineLevel; - - sal_Bool bIsActive :1; - sal_Bool bIsConstant :1; - sal_Bool bIsHidden :1; - sal_Bool bDocChgdInDragging :1; - sal_Bool bIsInternalDrag :1; - sal_Bool bIsRoot :1; - sal_Bool bIsIdleClear :1; - sal_Bool bIsLastReadOnly :1; - sal_Bool bIsOutlineMoveable :1; - sal_Bool bViewHasChanged :1; - sal_Bool bIsImageListInitialized : 1; - - static sal_Bool bIsInDrag; - - void FindActiveTypeAndRemoveUserData(); - - using SvLBox::ExecuteDrop; - using SvTreeListBox::EditEntry; - using SvListView::Expand; - using SvListView::Collapse; - using SvListView::Select; - -protected: - virtual void RequestHelp( const HelpEvent& rHEvt ); - virtual void InitEntry(SvLBoxEntry*,const XubString&,const Image&,const Image&,SvLBoxButtonKind); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - - SwNavigationPI* GetParentWindow(){return - (SwNavigationPI*)Window::GetParent();} - - virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ); - virtual void DragFinished( sal_Int8 ); - virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); - - virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); - - sal_Bool FillTransferData( TransferDataContainer& rTransfer, - sal_Int8& rDragMode ); - sal_Bool HasContentChanged(); - - virtual DragDropMode NotifyStartDrag( TransferDataContainer& rData, - SvLBoxEntry* ); - virtual sal_Bool NotifyAcceptDrop( SvLBoxEntry* ); - - virtual sal_Bool NotifyMoving( SvLBoxEntry* pTarget, - SvLBoxEntry* pEntry, - SvLBoxEntry*& rpNewParent, - sal_uLong& rNewChildPos - ); - virtual sal_Bool NotifyCopying( SvLBoxEntry* pTarget, - SvLBoxEntry* pEntry, - SvLBoxEntry*& rpNewParent, - sal_uLong& rNewChildPos - ); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - - void EditEntry( SvLBoxEntry* pEntry, sal_uInt8 nMode ); - - void GotoContent(SwContent* pCnt); - static void SetInDrag(sal_Bool bSet) {bIsInDrag = bSet;} - - virtual PopupMenu* CreateContextMenu( void ); - virtual void ExcecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry ); - -public: - SwContentTree(Window* pParent, const ResId& rResId); - ~SwContentTree(); - - sal_Bool ToggleToRoot(); - sal_Bool IsRoot() const {return bIsRoot;} - sal_uInt16 GetRootType() const {return nRootType;} - void SetRootType(sal_uInt16 nType); - void Display( sal_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 sal_Bool IsInDrag() {return bIsInDrag;} - sal_Bool IsInternalDrag() const {return bIsInternalDrag != 0;} - - sal_Int32 GetActiveBlock() const {return nActiveBlock;} - - sal_uInt8 GetOutlineLevel()const {return nOutlineLevel;} - void SetOutlineLevel(sal_uInt8 nSet); - - sal_Bool Expand( SvLBoxEntry* pParent ); - - sal_Bool Collapse( SvLBoxEntry* pParent ); - - void ExecCommand(sal_uInt16 nCmd, sal_Bool bModifier); - - void ShowTree(); - void HideTree(); - - sal_Bool IsConstantView() {return bIsConstant;} - sal_Bool IsActiveView() {return bIsActive;} - sal_Bool IsHiddenView() {return bIsHidden;} - - const SwWrtShell* GetActiveWrtShell() {return pActiveShell;} - SwWrtShell* GetHiddenWrtShell() {return pHiddenShell;} - - DECL_LINK( ContentDoubleClickHdl, SwContentTree * ); - DECL_LINK( TimerUpdate, Timer * ); - - virtual long GetTabPos( SvLBoxEntry*, SvLBoxTab* ); - virtual void RequestingChilds( SvLBoxEntry* pParent ); - virtual void GetFocus(); - virtual void KeyInput(const KeyEvent& rKEvt); - - virtual sal_Bool Select( SvLBoxEntry* pEntry, sal_Bool bSelect=sal_True ); -}; - - -//---------------------------------------------------------------------------- -// TreeListBox for global documents -//---------------------------------------------------------------------------- - -class SwLBoxString : public SvLBoxString -{ -public: - - SwLBoxString( SvLBoxEntry* pEntry, sal_uInt16 nFlags, - const String& rStr ) : SvLBoxString(pEntry,nFlags,rStr) - { - } - - virtual void Paint( const Point& rPos, SvLBox& rDev, sal_uInt16 nFlags, - SvLBoxEntry* pEntry); -}; - -namespace sfx2 { class DocumentInserter; } -namespace sfx2 { class FileDialogHelper; } - -class SwGlobalTree : public SvTreeListBox -{ -private: - AutoTimer aUpdateTimer; - String aContextStrings[GLOBAL_CONTEXT_COUNT]; - - ImageList aEntryImages; - - SwWrtShell* pActiveShell; // - SvLBoxEntry* pEmphasisEntry; // Drag'n Drop emphasis - SvLBoxEntry* pDDSource; // source for Drag'n Drop - SwGlblDocContents* pSwGlblDocContents; // array with sorted content - - Window* pDefParentWin; - SwGlblDocContent* pDocContent; - sfx2::DocumentInserter* pDocInserter; - - sal_Bool bIsInternalDrag :1; - sal_Bool bLastEntryEmphasis :1; // Drag'n Drop - sal_Bool bIsImageListInitialized : 1; - - static const SfxObjectShell* pShowShell; - - void InsertRegion( const SwGlblDocContent* _pContent, - const com::sun::star::uno::Sequence< ::rtl::OUString >& _rFiles ); - - DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper* ); - - using SvLBox::DoubleClickHdl; - using SvLBox::ExecuteDrop; - using Window::Update; - -protected: - - virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); - - virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); - - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - - virtual void RequestHelp( const HelpEvent& rHEvt ); - - virtual long GetTabPos( SvLBoxEntry*, SvLBoxTab* ); - virtual sal_Bool NotifyMoving( SvLBoxEntry* pTarget, - SvLBoxEntry* pEntry, - SvLBoxEntry*& rpNewParent, - sal_uLong& rNewChildPos - ); - virtual sal_Bool NotifyCopying( SvLBoxEntry* pTarget, - SvLBoxEntry* pEntry, - SvLBoxEntry*& rpNewParent, - sal_uLong& rNewChildPos - ); - - virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ); - virtual void DragFinished( sal_Int8 ); - virtual DragDropMode NotifyStartDrag( TransferDataContainer& rData, - SvLBoxEntry* ); - virtual sal_Bool NotifyAcceptDrop( SvLBoxEntry* ); - - 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&,SvLBoxButtonKind); - - void Clear(); - - DECL_LINK( PopupHdl, Menu* ); - DECL_LINK( Timeout, Timer* ); - DECL_LINK( DoubleClickHdl, SwGlobalTree * ); - - sal_Bool IsInternalDrag() const {return bIsInternalDrag != 0;} - SwNavigationPI* GetParentWindow() - { return (SwNavigationPI*)Window::GetParent(); } - - void OpenDoc(const SwGlblDocContent*); - void GotoContent(const SwGlblDocContent*); - sal_uInt16 GetEnableFlags() const; - - static const SfxObjectShell* GetShowShell() {return pShowShell;} - static void SetShowShell(const SfxObjectShell*pSet) {pShowShell = pSet;} - DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, SwGlobalTree*); - - virtual PopupMenu* CreateContextMenu( void ); - virtual void ExcecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry ); - -public: - SwGlobalTree(Window* pParent, const ResId& rResId); - virtual ~SwGlobalTree(); - - void TbxMenuHdl(sal_uInt16 nTbxId, ToolBox* pBox); - void InsertRegion( const SwGlblDocContent* pCont, - const String* pFileName = 0 ); - void EditContent(const SwGlblDocContent* pCont ); - - void ShowTree(); - void HideTree(); - - void ExecCommand(sal_uInt16 nCmd); - - void Display(sal_Bool bOnlyUpdateUserData = sal_False); - - sal_Bool Update(sal_Bool bHard); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/convert.hxx b/sw/source/ui/inc/convert.hxx deleted file mode 100644 index b6b3ff07d7..0000000000 --- a/sw/source/ui/inc/convert.hxx +++ /dev/null @@ -1,92 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SW_CONVERT_HXX -#define _SW_CONVERT_HXX - -#include <vcl/fixed.hxx> -#include <vcl/button.hxx> -#include <vcl/edit.hxx> -#include <sfx2/basedlgs.hxx> -#include <textcontrolcombo.hxx> - -class SwTableAutoFmt; -class SwView; -class SwWrtShell; -class NumericField; -struct SwInsertTableOptions; - -class SwConvertTableDlg: public SfxModalDialog -{ - RadioButton aTabBtn; - RadioButton aSemiBtn; - RadioButton aParaBtn; - RadioButton aOtherBtn; - Edit aOtherEd; - CheckBox aKeepColumn; - FixedLine aDelimFL; - - CheckBox aHeaderCB; - CheckBox aRepeatHeaderCB; - - FixedText aRepeatHeaderFT; // "dummy" to build before and after FT - FixedText aRepeatHeaderBeforeFT; - NumericField aRepeatHeaderNF; - FixedText aRepeatHeaderAfterFT; - TextControlCombo aRepeatHeaderCombo; - - FixedLine aOptionsFL; - CheckBox aDontSplitCB; - CheckBox aBorderCB; - PushButton aAutoFmtBtn; - - OKButton aOkBtn; - CancelButton aCancelBtn; - HelpButton aHelpBtn; - - String sConvertTextTable; - SwTableAutoFmt* pTAutoFmt; - SwWrtShell* pShell; - - DECL_LINK( AutoFmtHdl, PushButton* ); - DECL_LINK( BtnHdl, Button* ); - DECL_LINK( CheckBoxHdl, CheckBox *pCB = 0 ); - DECL_LINK( ReapeatHeaderCheckBoxHdl, void* p = 0 ); - -public: - SwConvertTableDlg( SwView& rView, bool bToTable ); - ~SwConvertTableDlg(); - - void GetValues( sal_Unicode& rDelim, - SwInsertTableOptions& rInsTblOpts, - SwTableAutoFmt *& prTAFmt ); -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/cption.hxx b/sw/source/ui/inc/cption.hxx deleted file mode 100644 index 144f05ceb4..0000000000 --- a/sw/source/ui/inc/cption.hxx +++ /dev/null @@ -1,130 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _CPTION_HXX -#define _CPTION_HXX - -#include <svx/stddlg.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/lstbox.hxx> - -#include <vcl/edit.hxx> - -#include <vcl/group.hxx> - -#include <vcl/button.hxx> -#include <actctrl.hxx> - - -#include <com/sun/star/container/XEnumerationAccess.hpp> -#include <com/sun/star/container/XHierarchicalNameAccess.hpp> -#include <com/sun/star/container/XNameAccess.hpp> -#include <com/sun/star/container/XContentEnumerationAccess.hpp> -#include <com/sun/star/container/XEnumeration.hpp> -#include <com/sun/star/container/XElementAccess.hpp> -#include <com/sun/star/container/XIndexAccess.hpp> -#include <com/sun/star/container/XNamed.hpp> - -class SwFldMgr; -class SwView; - -#include <wrtsh.hxx> -#include "optload.hxx" -#include "swlbox.hxx" - - -class SwCaptionDialog : public SvxStandardDialog -{ - class CategoryBox : public ComboBox - { - public: - CategoryBox( Window* pParent, const ResId& rResId ) - : ComboBox( pParent, rResId ) - {} - - virtual long PreNotify( NotifyEvent& rNEvt ); - }; - - FixedText aTextText; - Edit aTextEdit; - FixedLine aSettingsFL; - FixedText aCategoryText; - CategoryBox aCategoryBox; - FixedText aFormatText; - ListBox aFormatBox; - //#i61007# order of captions - FixedText aNumberingSeparatorFT; - Edit aNumberingSeparatorED; - FixedText aSepText; - Edit aSepEdit; - FixedText aPosText; - ListBox aPosBox; - OKButton aOKButton; - CancelButton aCancelButton; - HelpButton aHelpButton; - PushButton aAutoCaptionButton; - PushButton aOptionButton; - - String sNone; - - SwCaptionPreview aPrevWin; - - SwView &rView; // search per active, avoid ::com::sun::star::sdbcx::View - SwFldMgr *pMgr; // pointer to save the include - SelectionType eType; - - String sCharacterStyle; - String sObjectName; - bool bCopyAttributes; - bool bOrderNumberingFirst; //#i61007# order of captions - - ::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 * ); - DECL_LINK( CaptionHdl, PushButton*); - - virtual void Apply(); - - void DrawSample(); - void CheckButtonWidth(); - void ApplyCaptionOrder(); //#i61007# order of captions - - static String our_aSepTextSave; // Save caption separator text -public: - SwCaptionDialog( Window *pParent, SwView &rV ); - ~SwCaptionDialog(); -}; - -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/dbconfig.hxx b/sw/source/ui/inc/dbconfig.hxx deleted file mode 100644 index 2b64258983..0000000000 --- a/sw/source/ui/inc/dbconfig.hxx +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _DBCONFIG_HXX -#define _DBCONFIG_HXX - -#include <unotools/configitem.hxx> -#include "swdllapi.h" - -struct SwDBData; - -class SW_DLLPUBLIC SwDBConfig : public utl::ConfigItem -{ - SW_DLLPRIVATE const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames(); - - SwDBData* pAdrImpl; - SwDBData* pBibImpl; - -public: - SwDBConfig(); - virtual ~SwDBConfig(); - - void Load(); - const SwDBData& GetAddressSource(); - const SwDBData& GetBibliographySource(); - virtual void Commit(); - virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/dbinsdlg.hxx b/sw/source/ui/inc/dbinsdlg.hxx deleted file mode 100644 index 89a59482f8..0000000000 --- a/sw/source/ui/inc/dbinsdlg.hxx +++ /dev/null @@ -1,183 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _DBINSDLG_HXX -#define _DBINSDLG_HXX - - -#include <vcl/button.hxx> -#include <vcl/group.hxx> -#include <vcl/fixed.hxx> -#include <vcl/edit.hxx> -#include <vcl/lstbox.hxx> -#include <svtools/svmedit.hxx> -#include <sfx2/basedlgs.hxx> -#include <svl/svarray.hxx> -#include <unotools/configitem.hxx> -#include <numfmtlb.hxx> -#include <swdbdata.hxx> -#include <com/sun/star/uno/Reference.h> -#include <com/sun/star/uno/Sequence.h> -namespace com{namespace sun{namespace star{ - namespace sdbcx{ - class XColumnsSupplier; - } - namespace sdbc{ - class XDataSource; - class XConnection; - class XResultSet; - } -}}} - -class SwTableAutoFmt; -class SwView; -class SfxItemSet; -class SwTableRep; -class _DB_Columns; - -struct SwInsDBColumn -{ - rtl::OUString sColumn, sUsrNumFmt; - sal_Int32 nDBNumFmt; - sal_uInt32 nUsrNumFmt; - LanguageType eUsrNumFmtLng; - sal_uInt16 nCol; - sal_Bool bHasFmt : 1; - sal_Bool bIsDBFmt : 1; - - SwInsDBColumn( const String& rStr, sal_uInt16 nColumn ) - : sColumn( rStr ), - nDBNumFmt( 0 ), - nUsrNumFmt( 0 ), - eUsrNumFmtLng( LANGUAGE_SYSTEM ), - nCol( nColumn ), - bHasFmt(sal_False), - bIsDBFmt(sal_True) - {} - - int operator==( const SwInsDBColumn& rCmp ) const - { return sColumn == rCmp.sColumn; } - int operator<( const SwInsDBColumn& rCmp ) const; -}; - -typedef SwInsDBColumn* SwInsDBColumnPtr; -SV_DECL_PTRARR_SORT_DEL( SwInsDBColumns, SwInsDBColumnPtr, 32, 32 ) - - -class SwInsertDBColAutoPilot : public SfxModalDialog, public utl::ConfigItem -{ - FixedText aFtInsertData; - RadioButton aRbAsTable; - RadioButton aRbAsField; - RadioButton aRbAsText; - - FixedLine aFlHead; - FixedText aFtDbColumn; - - ListBox aLbTblDbColumn; - ListBox aLbTxtDbColumn; - - FixedLine aFlFormat; - RadioButton aRbDbFmtFromDb; - RadioButton aRbDbFmtFromUsr; - NumFormatListBox aLbDbFmtFromUsr; - - /* ----- Page Text/Field ------- */ - ImageButton aIbDbcolToEdit; - MultiLineEdit aEdDbText; - FixedText aFtDbParaColl; - ListBox aLbDbParaColl; - - /* ----- Page Table ------------ */ - ImageButton aIbDbcolAllTo; - ImageButton aIbDbcolOneTo; - ImageButton aIbDbcolOneFrom; - ImageButton aIbDbcolAllFrom; - FixedText aFtTableCol; - ListBox aLbTableCol; - CheckBox aCbTableHeadon; - RadioButton aRbHeadlColnms; - RadioButton aRbHeadlEmpty; - PushButton aPbTblFormat; - PushButton aPbTblAutofmt; - - OKButton aBtOk; - CancelButton aBtCancel; - HelpButton aBtHelp; - - FixedLine aFlBottom; - - SwInsDBColumns aDBColumns; - const SwDBData aDBData; - - Link aOldNumFmtLnk; - String sNoTmpl; - - SwView* pView; - SwTableAutoFmt* pTAutoFmt; - - SfxItemSet* pTblSet; - SwTableRep* pRep; - sal_uInt16 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* ); - - sal_Bool SplitTextToColArr( const String& rTxt, _DB_Columns& rColArr, sal_Bool bInsField ); - using SfxModalDialog::Notify; - virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); - virtual void Commit(); - void Load(); - - // set the tables - properties - void SetTabSet(); - -public: - 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 SwDBData& rData ); - - virtual ~SwInsertDBColAutoPilot(); - - void DataToDoc( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rSelection, - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource> rxSource, - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> xConnection, - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > xResultSet); - -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/dbtree.hxx b/sw/source/ui/inc/dbtree.hxx deleted file mode 100644 index d5d73c3962..0000000000 --- a/sw/source/ui/inc/dbtree.hxx +++ /dev/null @@ -1,87 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _DBTREE_HXX -#define _DBTREE_HXX - -#include <svtools/svtreebx.hxx> -#include <com/sun/star/uno/Reference.h> - -namespace com{namespace sun{namespace star{namespace container{ - class XNameAccess; -}}}} -#include "swdllapi.h" -#include <swtypes.hxx> -#include <swunodef.hxx> - -class SwDBTreeList_Impl; -class SwWrtShell; - -class SW_DLLPUBLIC SwDBTreeList : public SvTreeListBox -{ - ImageList aImageList; - Image aDBBMP; - Image aTableBMP; - Image aQueryBMP; - - String sDefDBName; - sal_Bool bInitialized; - sal_Bool bShowColumns; - - SwDBTreeList_Impl* pImpl; - - SW_DLLPRIVATE DECL_LINK( DBCompare, SvSortData* ); - - SW_DLLPRIVATE void InitTreeList(); - SW_DLLPRIVATE virtual void RequestingChilds( SvLBoxEntry* pParent ); - - SW_DLLPRIVATE virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); - SW_DLLPRIVATE virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ); - - using SvTreeListBox::Select; - -public: - SwDBTreeList( Window* pParent, const ResId& rResId, - SwWrtShell* pSh, - const String& rDefDBName = aEmptyStr, - const sal_Bool bShowCol = sal_False ); - virtual ~SwDBTreeList(); - - String GetDBName( String& rTableName, String& rColumnName, sal_Bool* pbIsTable = 0); - - void Select( const String& rDBName, const String& rTableName, - const String& rColumnName ); - - void ShowColumns(sal_Bool bShowCol); - void SetWrtShell(SwWrtShell& rSh); - - void AddDataSource(const String& rSource); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/dbui.hxx b/sw/source/ui/inc/dbui.hxx deleted file mode 100644 index 0a490f9a8f..0000000000 --- a/sw/source/ui/inc/dbui.hxx +++ /dev/null @@ -1,86 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _DBUI_HXX -#define _DBUI_HXX - -#include <svx/stddlg.hxx> - -#include <vcl/button.hxx> -#include <vcl/fixed.hxx> - - -class SW_DLLPUBLIC PrintMonitor: public ModelessDialog -{ -public: - enum PrintMonitorType - { - MONITOR_TYPE_PRINT, - MONITOR_TYPE_MAIL, - MONITOR_TYPE_SAVE - }; - FixedText aDocName; - FixedText aPrinting; - FixedText aPrinter; - FixedText aPrintInfo; - CancelButton aCancel; - - PrintMonitor( Window *pParent, PrintMonitorType eType ); - - void ResizeControls(); -}; - -class CreateMonitor : public ModelessDialog -{ -public: - CreateMonitor( Window *pParent ); - - void SetTotalCount( sal_Int32 nTotal ); - void SetCurrentPosition( sal_Int32 nCurrent ); - - void SetCancelHdl( const Link& rLink ); - -private: //methods - void UpdateCountingText(); - -private: //member - FixedText m_aStatus; - FixedText m_aProgress; - FixedText m_aCreateDocuments; - FixedText m_aCounting; - CancelButton m_aCancelButton; - - String m_sCountingPattern; - String m_sVariable_Total; - String m_sVariable_Position; - sal_Int32 m_nTotalCount; - sal_Int32 m_nCurrentPosition; -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/dialmgr.hxx b/sw/source/ui/inc/dialmgr.hxx deleted file mode 100644 index dba1a87833..0000000000 --- a/sw/source/ui/inc/dialmgr.hxx +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SW_DIALMGR_HXX -#define _SW_DIALMGR_HXX - -// include --------------------------------------------------------------- - -#include <tools/resid.hxx> - -// forward --------------------------------------------------------------- - -class ResMgr; - -struct SwDialogsResMgr -{ - static ResMgr* GetResMgr(); -}; - -#define SWDIALOG_MGR() SwDialogsResMgr::GetResMgr() -#define SW_RES(i) ResId(i,SWDIALOG_MGR()) -#define SW_RESSTR(i) UniString(ResId(i,SWDIALOG_MGR())) -#define SW_RESSSTR(i) String(ResId(i,SWDIALOG_MGR())) - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/docfnote.hxx b/sw/source/ui/inc/docfnote.hxx deleted file mode 100644 index 526ad17571..0000000000 --- a/sw/source/ui/inc/docfnote.hxx +++ /dev/null @@ -1,53 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _DOCFNOTE_HXX -#define _DOCFNOTE_HXX - -#include <sfx2/tabdlg.hxx> - -class SwWrtShell; - -class SwFootNoteOptionDlg :public SfxTabDialog -{ - SwWrtShell &rSh; - Link aOldOkHdl; - - virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ); - -#ifdef _SOLAR__PRIVATE - DECL_LINK( OkHdl, Button * ); -#endif - -public: - SwFootNoteOptionDlg(Window *pParent, SwWrtShell &rSh ); - ~SwFootNoteOptionDlg(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/docstdlg.hxx b/sw/source/ui/inc/docstdlg.hxx deleted file mode 100644 index 233f7d25a3..0000000000 --- a/sw/source/ui/inc/docstdlg.hxx +++ /dev/null @@ -1,86 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _DOCSTDLG_HXX -#define _DOCSTDLG_HXX - -#include <sfx2/tabdlg.hxx> - -#include <vcl/fixed.hxx> -#include <svtools/stdctrl.hxx> - -#include "docstat.hxx" - -/*-------------------------------------------------------------------- - Description: DocInfo now as page - --------------------------------------------------------------------*/ -class SwDocStatPage: public SfxTabPage -{ -public: - SwDocStatPage(Window *pParent, const SfxItemSet &rSet); - ~SwDocStatPage(); - - static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); - -protected: - virtual sal_Bool FillItemSet( SfxItemSet &rSet); - virtual void Reset (const SfxItemSet &rSet); - - DECL_LINK( UpdateHdl, PushButton*); - -private: - FixedText aPageLbl; - FixedInfo aPageNo; - FixedText aTableLbl; - FixedInfo aTableNo; - FixedText aGrfLbl; - FixedInfo aGrfNo; - FixedText aOLELbl; - FixedInfo aOLENo; - FixedText aParaLbl; - FixedInfo aParaNo; - FixedText aWordLbl; - FixedInfo aWordNo; - FixedText aCharLbl; - FixedInfo aCharNo; - FixedText aCharExclSpacesLbl; - FixedInfo aCharExclSpacesNo; - FixedText aLineLbl; - FixedInfo aLineNo; - - PushButton aUpdatePB; - SwDocStat aDocStat; - - void Update(); - - using Window::SetData; - void SetData(const SwDocStat &rStat); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/drawbase.hxx b/sw/source/ui/inc/drawbase.hxx deleted file mode 100644 index 24430ca36a..0000000000 --- a/sw/source/ui/inc/drawbase.hxx +++ /dev/null @@ -1,92 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SW_DRAWBASE_HXX -#define _SW_DRAWBASE_HXX - -#include <tools/gen.hxx> - -class SwView; -class SwWrtShell; -class SwEditWin; -class KeyEvent; -class MouseEvent; - -#define MIN_FREEHAND_DISTANCE 10 - -/************************************************************************* -|* -|* base class for all functions -|* -\************************************************************************/ - -class SwDrawBase -{ -protected: - SwView* m_pView; - SwWrtShell* m_pSh; - SwEditWin* m_pWin; - Point m_aStartPos; // position of BeginCreate - Point m_aMDPos; // position of MouseButtonDown - sal_uInt16 m_nSlotId; - sal_Bool m_bCreateObj :1; - sal_Bool m_bInsForm :1; - - Point GetDefaultCenterPos(); -public: - SwDrawBase(SwWrtShell *pSh, SwEditWin* pWin, SwView* pView); - virtual ~SwDrawBase(); - - void SetDrawPointer(); - void EnterSelectMode(const MouseEvent& rMEvt); - inline sal_Bool IsInsertForm() const { return m_bInsForm; } - inline sal_Bool IsCreateObj() const { return m_bCreateObj; } - - // mouse- & key events; return value=sal_True: event was edited - virtual sal_Bool KeyInput(const KeyEvent& rKEvt); - virtual sal_Bool MouseMove(const MouseEvent& rMEvt); - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt); - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt); - - void BreakCreate(); - void SetSlotId(sal_uInt16 nSlot) {m_nSlotId = nSlot;} - sal_uInt16 GetSlotId() { return m_nSlotId;} - - virtual void Activate(const sal_uInt16 nSlotId); // activate fuction - virtual void Deactivate(); // deactivate function - - virtual void CreateDefaultObject(); - - // #i33136# - virtual bool doConstructOrthogonal() const; -}; - - - -#endif // _SW_DRAWBASE_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/drawsh.hxx b/sw/source/ui/inc/drawsh.hxx deleted file mode 100644 index fc39b69bac..0000000000 --- a/sw/source/ui/inc/drawsh.hxx +++ /dev/null @@ -1,55 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWDRAWSH_HXX -#define _SWDRAWSH_HXX - -#include "drwbassh.hxx" - -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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/drformsh.hxx b/sw/source/ui/inc/drformsh.hxx deleted file mode 100644 index ca08eb8b54..0000000000 --- a/sw/source/ui/inc/drformsh.hxx +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWDRWFORMSH_HXX -#define _SWDRWFORMSH_HXX - -#include "drwbassh.hxx" - -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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/drpcps.hxx b/sw/source/ui/inc/drpcps.hxx deleted file mode 100644 index 908fdeb7df..0000000000 --- a/sw/source/ui/inc/drpcps.hxx +++ /dev/null @@ -1,117 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _DRPCPS_HXX -#define _DRPCPS_HXX - -#include <sfx2/basedlgs.hxx> -#include <sfx2/tabdlg.hxx> - -#include <vcl/button.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/field.hxx> - -#include <vcl/edit.hxx> - -#include <vcl/lstbox.hxx> - -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; - - FixedLine aSettingsFL; - CheckBox aDropCapsBox; - CheckBox aWholeWordCB; - FixedText aSwitchText; - NumericField aDropCapsField; - FixedText aLinesText; - NumericField aLinesField; - FixedText aDistanceText; - MetricField aDistanceField; - - FixedLine aContentFL; - FixedText aTextText; - Edit aTextEdit; - FixedText aTemplateText; - ListBox aTemplateBox; - - SwDropCapsPict *pPict; - - sal_Bool bModified; - sal_Bool bFormat; - sal_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 * ); - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - -public: - - static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); - static sal_uInt16* GetRanges(); - - virtual sal_Bool FillItemSet( SfxItemSet &rSet); - virtual void Reset (const SfxItemSet &rSet); - - void SetFormat(sal_Bool bSet){bFormat = bSet;} -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/drwbassh.hxx b/sw/source/ui/inc/drwbassh.hxx deleted file mode 100644 index 3e9cae0570..0000000000 --- a/sw/source/ui/inc/drwbassh.hxx +++ /dev/null @@ -1,67 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWDRWBASSH_HXX -#define _SWDRWBASSH_HXX -#include "basesh.hxx" - -class SwView; -class SfxItemSet; -class SwDrawBase; -class AbstractSvxNameDialog; -struct SvxSwFrameValidation; - -class SwDrawBaseShell: public SwBaseShell -{ - SwDrawBase* pDrawActual; - - sal_uInt16 eDrawMode; - sal_Bool bRotate : 1; - sal_Bool bSelMove: 1; - - DECL_LINK( CheckGroupShapeNameHdl, AbstractSvxNameDialog* ); - DECL_LINK(ValidatePosition, SvxSwFrameValidation* ); -public: - SwDrawBaseShell(SwView &rShell); - virtual ~SwDrawBaseShell(); - - SFX_DECL_INTERFACE(SW_DRAWBASESHELL) - TYPEINFO(); - - void Execute(SfxRequest &); - void GetState(SfxItemSet &); - void DisableState(SfxItemSet &rSet) { Disable(rSet);} - sal_Bool Disable(SfxItemSet& rSet, sal_uInt16 nWhich = 0); - - void StateStatusline(SfxItemSet &rSet); - -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/drwtxtsh.hxx b/sw/source/ui/inc/drwtxtsh.hxx deleted file mode 100644 index 9119479e23..0000000000 --- a/sw/source/ui/inc/drwtxtsh.hxx +++ /dev/null @@ -1,92 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWDRWTXTSH_HXX -#define _SWDRWTXTSH_HXX - -#include <sfx2/shell.hxx> -#include "shellid.hxx" -#include <unotools/caserotate.hxx> - -class SdrView; -class SwView; -class SwWrtShell; -class SfxModule; - -class SwDrawTextShell: public SfxShell -{ - SwView &rView; - RotateTransliteration m_aRotateCase; - - SdrView *pSdrView; - - sal_Bool bRotate : 1; - sal_Bool bSelMove: 1; - - void SetAttrToMarked(const SfxItemSet& rAttr); - void InsertSymbol(SfxRequest& rReq); - sal_Bool IsTextEdit(); -public: - SFX_DECL_INTERFACE(SW_DRWTXTSHELL) - TYPEINFO(); - - SwView &GetView() { return rView; } - SwWrtShell &GetShell(); - - SwDrawTextShell(SwView &rView); - virtual ~SwDrawTextShell(); - - virtual ::svl::IUndoManager* - GetUndoManager(); - - 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 ExecTransliteration(SfxRequest &); - void ExecRotateTransliteration(SfxRequest &); - - void Init(); - void StateStatusline(SfxItemSet &rSet); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/dselect.hxx b/sw/source/ui/inc/dselect.hxx deleted file mode 100644 index fa6e036797..0000000000 --- a/sw/source/ui/inc/dselect.hxx +++ /dev/null @@ -1,54 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SW_DSELECT_HXX -#define _SW_DSELECT_HXX - -#include "drawbase.hxx" - -/************************************************************************* -|* -|* draw rectangle -|* -\************************************************************************/ - -class DrawSelection : public SwDrawBase -{ - public: - DrawSelection(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView); - - // mouse- & key events - virtual sal_Bool KeyInput(const KeyEvent& rKEvt); - - virtual void Activate(const sal_uInt16 nSlotId); // activate function -}; - - - -#endif // _SW_DSELECT_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/edtwin.hxx b/sw/source/ui/inc/edtwin.hxx deleted file mode 100644 index a7ca84f7b0..0000000000 --- a/sw/source/ui/inc/edtwin.hxx +++ /dev/null @@ -1,308 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _EDTWIN_HXX -#define _EDTWIN_HXX - -#include <svx/svdobj.hxx> -#include <tools/link.hxx> -#include <vcl/timer.hxx> -#include <vcl/window.hxx> -#include <svtools/transfer.hxx> -#include <swevent.hxx> - -#define _SVSTDARR_STRINGSISORTDTOR -#include <svl/svstdarr.hxx> - -class SwWrtShell; -class SwView; -class SwRect; -class ViewShell; -class SwAnchorMarker; -class SdrObject; -class SwShadowCursor; -class DataChangedEvent; -class SvxAutoCorrCfg; -class SvxAutoCorrect; -class SwPaM; -struct SwApplyTemplate; -struct QuickHelpData; -class SdrDropMarkerOverlay; - -/*-------------------------------------------------------------------- - Description: input window - --------------------------------------------------------------------*/ - -class SwEditWin: public Window, - public DropTargetHelper, public DragSourceHelper -{ -friend void ScrollMDI(ViewShell* pVwSh, const SwRect&, - sal_uInt16 nRangeX, sal_uInt16 nRangeY); -friend sal_Bool IsScrollMDI(ViewShell* pVwSh, const SwRect&); - -friend void SizeNotify(ViewShell* pVwSh, const Size &); - -friend void PageNumNotify( ViewShell* pVwSh, - sal_uInt16 nPhyNum, - sal_uInt16 nVirtNum, - const String& rPg ); - - static QuickHelpData* pQuickHlpData; - - static sal_Bool bReplaceQuote; - static long nDDStartPosX, nDDStartPosY; - - static Color aTextColor; // text color; for the watering can - static sal_Bool bTransparentBackColor; // transparent background - static Color aTextBackColor; // text background; for the watering can - - /* - * timer and handler for scrolling on when the mousepointer - * stopps outside of EditWin during a drag-operation. - * The selection is increased towards the mouse position - * regularly. - */ - AutoTimer aTimer; - // timer for overlapping KeyInputs (e.g. for tables) - Timer aKeyInputTimer; - // timer for ANY-KeyInut question without a following KeyInputEvent - Timer aKeyInputFlushTimer; - - String aInBuffer; - LanguageType eBufferLanguage; - Point aStartPos; - Point aMovePos; - Point aRszMvHdlPt; - Timer aTemplateTimer; - - // type/object where the mouse pointer is - SwCallMouseEvent aSaveCallEvent; - - SwApplyTemplate *pApplyTempl; - SwAnchorMarker *pAnchorMarker; // for relocating the anchor - - SdrDropMarkerOverlay *pUserMarker; - SdrObject *pUserMarkerObj; - SwShadowCursor *pShadCrsr; - Point *pRowColumnSelectionStart; // save position where table row/column selection has been started - - SwView &rView; - - int aActHitType; // current mouse pointer - - sal_uLong m_nDropFormat; // format from the last QueryDrop - sal_uInt16 m_nDropAction; // action from the last QueryDrop - sal_uInt16 m_nDropDestination; // destination from the last QueryDrop - - sal_uInt16 eBezierMode; - sal_uInt16 nInsFrmColCount; // column number for interactive frame - SdrObjKind eDrawMode; - sal_Bool bLinkRemoved : 1, - bMBPressed : 1, - bInsDraw : 1, - bInsFrm : 1, - bIsInMove : 1, - bIsInDrag : 1, // don't execute StartExecuteDrag twice - bOldIdle : 1, // to stop to idle - bOldIdleSet : 1, // during QeueryDrop - bTblInsDelMode : 1, // - bTblIsInsMode : 1, // - bTblIsColMode : 1, // - bChainMode : 1, // connect frames - bWasShdwCrsr : 1, // ShadowCrsr was on in MouseButtonDown - bLockInput : 1, // lock while calc panel is active - bIsRowDrag : 1, //selection of rows is used, in combination with pRowColumnSelectionStart - /** #i42732# display status of font size/name depending on either the input language or the - selection position depending on what has changed lately - */ - bUseInputLanguage: 1, - bObjectSelect : 1; - - - sal_uInt16 nKS_NUMDOWN_Count; // #i23725# - sal_uInt16 nKS_NUMINDENTINC_Count; - - void LeaveArea(const Point &); - void JustifyAreaTimer(); - inline void EnterArea(); - - void RstMBDownFlags(); - - void ChangeFly( sal_uInt8 nDir, sal_Bool bWeb = sal_False ); - void ChangeDrawing( sal_uInt8 nDir ); - - sal_Bool EnterDrawMode(const MouseEvent& rMEvt, const Point& aDocPos); - sal_Bool RulerColumnDrag( const MouseEvent& rMEvt, sal_Bool bVerticalMode); - - // helper function for D&D - void DropCleanup(); - void CleanupDropUserMarker(); - sal_uInt16 GetDropDestination( const Point& rPixPnt, - SdrObject ** ppObj = 0 ); - //select the object/cursor at the mouse position of the context menu request - sal_Bool SelectMenuPosition(SwWrtShell& rSh, const Point& rMousePos ); - - /* - * handler for scrolling on when the mousepointer - * stopps outside of EditWin during a drag-operation. - * The selection is regularly increased towards the mouse - * position. - */ - 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 for overlapping KeyInputs (e.g. for tables) - DECL_LINK( KeyInputTimerHandler, Timer * ); - - // timer for ApplyTemplates via mouse (in disguise Drag&Drop) - DECL_LINK( TemplateTimerHdl, Timer* ); - - using OutputDevice::GetTextColor; - -protected: - - virtual void DataChanged( const DataChangedEvent& ); - virtual void PrePaint(); - 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 ); - - // Drag & Drop Interface - virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); - virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); - virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ); - - virtual XubString GetSurroundingText() const; - virtual Selection GetSurroundingTextSelection() const; - - void ShowAutoTextCorrectQuickHelp( const String& rWord, SvxAutoCorrCfg* pACfg, - SvxAutoCorrect* pACorr, sal_Bool bFromIME = sal_False ); -public: - - void UpdatePointer(const Point &, sal_uInt16 nButtons = 0); - - sal_Bool IsDrawSelMode(); - sal_Bool IsDrawAction() { return (bInsDraw); } - void SetDrawAction(sal_Bool bFlag) { bInsDraw = bFlag; } - - void SetObjectSelect( sal_Bool bVal ) { bObjectSelect = bVal; } - sal_Bool IsObjectSelect() const { return bObjectSelect; } - - inline SdrObjKind GetSdrDrawMode(/*sal_Bool bBuf = sal_False*/) const { return eDrawMode; } - inline void SetSdrDrawMode( SdrObjKind eSdrObjectKind ) { eDrawMode = eSdrObjectKind; SetObjectSelect( sal_False ); } - void StdDrawMode( SdrObjKind eSdrObjectKind, sal_Bool bObjSelect ); - - sal_Bool IsFrmAction() { return (bInsFrm); } - inline sal_uInt16 GetBezierMode() { return eBezierMode; } - void SetBezierMode(sal_uInt16 eBezMode) { eBezierMode = eBezMode; } - void EnterDrawTextMode(const Point& aDocPos); // turn on DrawTextEditMode - void InsFrm(sal_uInt16 nCols); - void StopInsFrm(); - sal_uInt16 GetFrmColCount() const {return nInsFrmColCount;} // column number for interactive frame - - - void SetChainMode( sal_Bool bOn ); - sal_Bool IsChainMode() const { return bChainMode; } - - void FlushInBuffer(); - sal_Bool IsInputSequenceCheckingRequired( const String &rText, const SwPaM& rCrsr ) const; - - - static void SetReplaceQuote(sal_Bool bOn = sal_True) { bReplaceQuote = bOn; } - static sal_Bool IsReplaceQuote() { return bReplaceQuote; } - - void SetApplyTemplate(const SwApplyTemplate &); - SwApplyTemplate* GetApplyTemplate() const { return pApplyTempl; } - - void StartExecuteDrag(); - void DragFinished(); - sal_uInt16 GetDropAction() const { return m_nDropAction; } - sal_uLong GetDropFormat() const { return m_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(sal_Bool bSet) - { bTransparentBackColor = bSet; } - sal_Bool IsTextBackColorTransparent() - { return bTransparentBackColor; } - void LockKeyInput(sal_Bool bSet){bLockInput = bSet;} - - const SwView &GetView() const { return rView; } - SwView &GetView() { return rView; } - - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible(); - - // delete tip window - static void ClearTip(); - - static inline long GetDDStartPosX() { return nDDStartPosX; } - static inline long GetDDStartPosY() { return nDDStartPosY; } - - static void _InitStaticData(); - static void _FinitStaticData(); - - //#i3370# remove quick help to prevent saving of autocorrection suggestions - void StopQuickHelp(); - - // #i42921# - add parameter <bVerticalMode> - sal_Bool RulerMarginDrag( const MouseEvent& rMEvt, - const bool bVerticalMode ); - - /** #i42732# display status of font size/name depending on either the input - language or the selection position depending on what has changed lately - */ - void SetUseInputLanguage( sal_Bool bNew ); - sal_Bool IsUseInputLanguage() const { return bUseInputLanguage; } - - SwEditWin(Window *pParent, SwView &); - virtual ~SwEditWin(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/envimg.hxx b/sw/source/ui/inc/envimg.hxx deleted file mode 100644 index 6eae7d9f20..0000000000 --- a/sw/source/ui/inc/envimg.hxx +++ /dev/null @@ -1,100 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _ENVIMG_HXX -#define _ENVIMG_HXX - -#include <svl/poolitem.hxx> -#include <unotools/configitem.hxx> -#include "swdllapi.h" - -// MakeSender ----------------------------------------------------------------- -SW_DLLPUBLIC String MakeSender(); - -// 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 SW_DLLPUBLIC SwEnvItem : public SfxPoolItem -{ -public: - - rtl::OUString aAddrText; // text for reciever - sal_Bool bSend; // sender? - rtl::OUString aSendText; // text for sender - sal_Int32 lAddrFromLeft; // left gap for reciever (twips) - sal_Int32 lAddrFromTop; // upper gap for reciever (twips) - sal_Int32 lSendFromLeft; // left gap for sender (twips) - sal_Int32 lSendFromTop; // upper gap for sender (twips) - sal_Int32 lWidth; // envelope's width (twips) - sal_Int32 lHeight; // envelope's height (twips) - SwEnvAlign eAlign; // alignment at indent - sal_Bool bPrintFromAbove; // print from above? - sal_Int32 lShiftRight; // shift to right (twips) - sal_Int32 lShiftDown; // shift down (twips) - - SwEnvItem(); - SwEnvItem(const SwEnvItem& rItem); - - TYPEINFO(); - - SwEnvItem& operator =(const SwEnvItem& rItem); - - virtual int operator ==(const SfxPoolItem& rItem) const; - - virtual SfxPoolItem* Clone(SfxItemPool* = 0) const; - virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; - virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); -}; - -// class SwEnvCfgItem ------------------------------------------------------- -class SwEnvCfgItem : public utl::ConfigItem -{ - SwEnvItem aEnvItem; - - com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); -public: - SwEnvCfgItem(); - ~SwEnvCfgItem(); - - SwEnvItem& GetItem() {return aEnvItem;} - - virtual void Commit(); - virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/envlop.hxx b/sw/source/ui/inc/envlop.hxx deleted file mode 100644 index 3036a07006..0000000000 --- a/sw/source/ui/inc/envlop.hxx +++ /dev/null @@ -1,137 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _ENVLOP_HXX -#define _ENVLOP_HXX - -#include <svtools/svmedit.hxx> -#include <sfx2/tabdlg.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/edit.hxx> - -#include <vcl/lstbox.hxx> - -#include <vcl/button.hxx> - -#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(); - -protected: - virtual void DataChanged( const DataChangedEvent& rDCEvt ); -}; - -// 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( sal_uInt16 nId, SfxTabPage &rPage ); - virtual short Ok(); - -public: - SwEnvDlg(Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, sal_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(); - - using Window::GetParent; - SwEnvDlg* GetParent() {return (SwEnvDlg*) SfxTabPage::GetParent()->GetParent();} - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - -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 sal_Bool FillItemSet(SfxItemSet& rSet); - virtual void Reset(const SfxItemSet& rSet); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/extedit.hxx b/sw/source/ui/inc/extedit.hxx deleted file mode 100644 index d013890a33..0000000000 --- a/sw/source/ui/inc/extedit.hxx +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * Version: MPL 1.1 / GPLv3+ / LGPLv3+ - * - * The contents of this file are subject to the Mozilla Public 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.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Initial Developer of the Original Code is - * [ Surendran Mahendran <surenspost@gmail.com>] - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 3 or later (the "GPLv3+"), or - * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), - * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable - * instead of those above. - */ -#ifndef _EXTEDIT_HXX -#define _EXTEDIT_HXX - -#include <osl/file.hxx> -#include <osl/process.h> -#include <vcl/graph.hxx> -#include <svtools/grfmgr.hxx> -#include <wrtsh.hxx> -#include <vcl/timer.hxx> - -struct Data -{ - GraphicObject *pGraphicObject; - rtl::OUString fileName; - SwWrtShell *rSh ; -}; - -class ExternalProcessClass_Impl -{ - public: - DECL_LINK( CloseEvent, void *pEvent ); - DECL_LINK( StartListeningEvent, void *pEvent ); -}; - -void EditWithExternalTool(GraphicObject *pGraphic, SwWrtShell *rSh); - -#endif diff --git a/sw/source/ui/inc/fldedt.hxx b/sw/source/ui/inc/fldedt.hxx deleted file mode 100644 index 9caf4b6dff..0000000000 --- a/sw/source/ui/inc/fldedt.hxx +++ /dev/null @@ -1,64 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _FLDEDT_HXX -#define _FLDEDT_HXX -#include <sfx2/basedlgs.hxx> -#include <vcl/button.hxx> - -class SwView; -class SwWrtShell; - -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(sal_uInt16 nGroup); - -public: - - SwFldEditDlg(SwView& rVw); - ~SwFldEditDlg(); - - DECL_LINK( OKHdl, Button * ); - - virtual short Execute(); - - void EnableInsert(sal_Bool bEnable); - void InsertHdl(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/fldmgr.hxx b/sw/source/ui/inc/fldmgr.hxx deleted file mode 100644 index 52c8eff852..0000000000 --- a/sw/source/ui/inc/fldmgr.hxx +++ /dev/null @@ -1,235 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _FLDMGR_HXX -#define _FLDMGR_HXX -#ifndef _SVSTDARR_HXX -#define _SVSTDARR_STRINGSDTOR -#include <svl/svstdarr.hxx> -#endif -#include <tools/string.hxx> -#include "swdllapi.h" -#include "swtypes.hxx" -#include <com/sun/star/uno/Reference.h> -#include <com/sun/star/uno/Any.h> - -namespace com{namespace sun{namespace star{ - namespace container{ - class XNameAccess; - } - namespace text{ - class XNumberingTypeInfo; - } -}}} - -class SwWrtShell; -class SwField; -class SwFieldType; -class SbModule; -class SvxMacroItem; -class SvNumberFormatter; -class Window; - -/*-------------------------------------------------------------------- - Description: the groups of fields - --------------------------------------------------------------------*/ -enum SwFldGroups -{ - GRP_DOC, - GRP_FKT, - GRP_REF, - GRP_REG, - GRP_DB, - GRP_VAR -}; - -struct SwFldGroupRgn -{ - sal_uInt16 nStart; - sal_uInt16 nEnd; -}; - -/*-------------------------------------------------------------------- - Description: the field manager handles the insertation of fields - with command strings - --------------------------------------------------------------------*/ -struct SwInsertFld_Data -{ - sal_uInt16 nTypeId; - sal_uInt16 nSubType; - const String sPar1; - const String sPar2; - sal_uLong nFormatId; - SwWrtShell* pSh; - sal_Unicode cSeparator; - sal_Bool bIsAutomaticLanguage; - ::com::sun::star::uno::Any aDBDataSource; - ::com::sun::star::uno::Any aDBConnection; - ::com::sun::star::uno::Any aDBColumn; - Window* pParent; // parent dialog used for SwWrtShell::StartInputFldDlg() - - SwInsertFld_Data(sal_uInt16 nType, sal_uInt16 nSub, const String& rPar1, const String& rPar2, - sal_uLong nFmtId, SwWrtShell* pShell = NULL, sal_Unicode cSep = ' ', sal_Bool bIsAutoLanguage = sal_True) : - nTypeId(nType), - nSubType(nSub), - sPar1(rPar1), - sPar2(rPar2), - nFormatId(nFmtId), - pSh(pShell), - cSeparator(cSep), - bIsAutomaticLanguage(bIsAutoLanguage), - pParent(0) {} - - SwInsertFld_Data() : - pSh(0), - cSeparator(' '), - bIsAutomaticLanguage(sal_True){} - -}; - -class SW_DLLPUBLIC SwFldMgr -{ -private: - SwField* pCurFld; - SbModule* pModule; - const SvxMacroItem* pMacroItem; - SwWrtShell* pWrtShell; // can be ZERO too! - String aCurPar1; - String aCurPar2; - String sCurFrame; - - String sMacroPath; - String sMacroName; - - sal_uLong nCurFmt; - sal_Bool bEvalExp; - - SW_DLLPRIVATE sal_uInt16 GetCurrLanguage() const; - - com::sun::star::uno::Reference<com::sun::star::container::XNameAccess> xDBContext; - com::sun::star::uno::Reference<com::sun::star::text::XNumberingTypeInfo> xNumberingInfo; - SW_DLLPRIVATE com::sun::star::uno::Reference<com::sun::star::text::XNumberingTypeInfo> GetNumberingInfo()const; - -public: - SwFldMgr(SwWrtShell* pSh = 0); - ~SwFldMgr(); - - void SetWrtShell( SwWrtShell* pShell ) - { pWrtShell = pShell; } - - // insert field using TypeID (TYP_ ...) - sal_Bool InsertFld( const SwInsertFld_Data& rData ); - - // change the current field directly - void UpdateCurFld(sal_uLong nFormat, - const String& rPar1, - const String& rPar2, - SwField * _pField = 0); // #111840# - - inline const String& GetCurFldPar1() const; - inline const String& GetCurFldPar2() const; - inline sal_uLong GetCurFldFmt() const; - - // determine a field - SwField* GetCurFld(); - - void InsertFldType(SwFieldType& rType); - - sal_Bool ChooseMacro(const String &rSelMacro = aEmptyStr); - void SetMacroPath(const String& rPath); - inline const String& GetMacroPath() const { return (sMacroPath); } - inline const String& GetMacroName() const { return (sMacroName); } - inline void SetMacroModule(SbModule* pMod) { pModule = pMod; } - - // previous and next of the same type - sal_Bool GoNextPrev( sal_Bool bNext = sal_True, SwFieldType* pTyp = 0 ); - sal_Bool GoNext( SwFieldType* pTyp = 0 ) { return GoNextPrev( sal_True, pTyp ); } - sal_Bool GoPrev( SwFieldType* pTyp = 0 ) { return GoNextPrev( sal_False, pTyp ); } - - // query values from database fields (BASIC ) -// String GetDataBaseFieldValue(const String &rDBName, const String &rFieldName, SwWrtShell* pSh); - sal_Bool IsDBNumeric(const String& rDBName, const String& rTblQryName, - sal_Bool bIsTable, const String& rFldName); - - // organise RefMark with names - sal_Bool CanInsertRefMark( const String& rStr ); - - - // access to field types via ResId - sal_uInt16 GetFldTypeCount(sal_uInt16 nResId = USHRT_MAX) const; - SwFieldType* GetFldType(sal_uInt16 nResId, sal_uInt16 nId = 0) const; - SwFieldType* GetFldType(sal_uInt16 nResId, const String& rName) const; - - void RemoveFldType(sal_uInt16 nResId, const String& rName); - - // access via TypeId from the dialog - // Ids for a range of fields - const SwFldGroupRgn& GetGroupRange(sal_Bool bHtmlMode, sal_uInt16 nGrpId) const; - sal_uInt16 GetGroup(sal_Bool bHtmlMode, sal_uInt16 nTypeId, sal_uInt16 nSubType = 0) const; - - // the current field's TypeId - sal_uInt16 GetCurTypeId() const; - - // TypeId for a concrete position in the list - static sal_uInt16 GetTypeId(sal_uInt16 nPos); - // name of the type in the list of fields - static const String& GetTypeStr(sal_uInt16 nPos); - - // Pos in the list of fields - static sal_uInt16 GetPos(sal_uInt16 nTypeId); - - // subtypes to a type - sal_Bool GetSubTypes(sal_uInt16 nId, SvStringsDtor& rToFill); - - // format to a type - sal_uInt16 GetFormatCount(sal_uInt16 nTypeId, sal_Bool bIsText, sal_Bool bHtmlMode = sal_False) const; - String GetFormatStr(sal_uInt16 nTypeId, sal_uLong nFormatId) const; - sal_uInt16 GetFormatId(sal_uInt16 nTypeId, sal_uLong nFormatId) const; - sal_uLong GetDefaultFormat(sal_uInt16 nTypeId, sal_Bool bIsText, SvNumberFormatter* pFormatter, double* pVal = 0L); - - // turn off evaluation of expression fields for insertation - // of many expressino fields (see labels) - // - inline void SetEvalExpFlds(sal_Bool bEval); - void EvalExpFlds(SwWrtShell* pSh = NULL); -}; - -inline void SwFldMgr::SetEvalExpFlds(sal_Bool bEval) - { bEvalExp = bEval; } - -inline const String& SwFldMgr::GetCurFldPar1() const - { return aCurPar1; } - -inline const String& SwFldMgr::GetCurFldPar2() const - { return aCurPar2; } - -inline sal_uLong SwFldMgr::GetCurFldFmt() const - { return nCurFmt; } - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/fldtdlg.hxx b/sw/source/ui/inc/fldtdlg.hxx deleted file mode 100644 index 2d2349a4f9..0000000000 --- a/sw/source/ui/inc/fldtdlg.hxx +++ /dev/null @@ -1,67 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWFLDTDLG_HXX -#define _SWFLDTDLG_HXX -#include <sfx2/tabdlg.hxx> - -class SfxBindings; -class SfxTabPage; -class SwChildWinWrapper; -struct SfxChildWinInfo; - -class SwFldDlg: public SfxTabDialog -{ - SwChildWinWrapper* m_pChildWin; - SfxBindings* m_pBindings; - sal_Bool m_bHtmlMode; - sal_Bool m_bDataBaseMode; - - virtual sal_Bool Close(); - virtual SfxItemSet* CreateInputItemSet( sal_uInt16 nId ); - virtual void Activate(); - virtual void PageCreated(sal_uInt16 nId, SfxTabPage& rPage); - - void ReInitTabPage( sal_uInt16 nPageId, - sal_Bool bOnlyActivate = sal_False ); - -public: - SwFldDlg(SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent); - virtual ~SwFldDlg(); - - DECL_LINK( OKHdl, Button * ); - - void Initialize(SfxChildWinInfo *pInfo); - void ReInitDlg(); - void EnableInsert(sal_Bool bEnable); - void InsertHdl(); - void ActivateDatabasePage(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/fldwrap.hxx b/sw/source/ui/inc/fldwrap.hxx deleted file mode 100644 index f45689f6fc..0000000000 --- a/sw/source/ui/inc/fldwrap.hxx +++ /dev/null @@ -1,65 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _FLDWRAP_HXX -#define _FLDWRAP_HXX - -#include "chldwrap.hxx" -class AbstractSwFldDlg; - -class SwFldDlgWrapper : public SwChildWinWrapper -{ -public: - AbstractSwFldDlg * pDlgInterface; - SwFldDlgWrapper( Window* pParent, sal_uInt16 nId, - SfxBindings* pBindings, SfxChildWinInfo* pInfo ); - - SFX_DECL_CHILDWINDOW(SwFldDlgWrapper); - - virtual sal_Bool ReInitDlg(SwDocShell *pDocSh); - void ShowPage(sal_uInt16 nPage = 0); -}; - -/* -------------------------------------------------- - * field dialog only showing database page to support - * mail merge - * --------------------------------------------------*/ -class SwFldDataOnlyDlgWrapper : public SwChildWinWrapper -{ -public: - AbstractSwFldDlg * pDlgInterface; - SwFldDataOnlyDlgWrapper( Window* pParent, sal_uInt16 nId, - SfxBindings* pBindings, SfxChildWinInfo* pInfo ); - - SFX_DECL_CHILDWINDOW(SwFldDataOnlyDlgWrapper); - - virtual sal_Bool ReInitDlg(SwDocShell *pDocSh); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/fontcfg.hxx b/sw/source/ui/inc/fontcfg.hxx deleted file mode 100644 index ce7dbb1505..0000000000 --- a/sw/source/ui/inc/fontcfg.hxx +++ /dev/null @@ -1,123 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _FONTCFG_HXX -#define _FONTCFG_HXX - -#include <unotools/configitem.hxx> -#include <tools/string.hxx> -#include <i18npool/lang.h> -#include <osl/diagnose.h> -#include "swdllapi.h" - -#define FONT_STANDARD 0 -#define FONT_OUTLINE 1 -#define FONT_LIST 2 -#define FONT_CAPTION 3 -#define FONT_INDEX 4 -#define FONT_STANDARD_CJK 5 -#define FONT_OUTLINE_CJK 6 -#define FONT_LIST_CJK 7 -#define FONT_CAPTION_CJK 8 -#define FONT_INDEX_CJK 9 -#define FONT_STANDARD_CTL 10 -#define FONT_OUTLINE_CTL 11 -#define FONT_LIST_CTL 12 -#define FONT_CAPTION_CTL 13 -#define FONT_INDEX_CTL 14 -#define DEF_FONT_COUNT 15 - -#define FONT_PER_GROUP 5 - -#define FONT_GROUP_DEFAULT 0 -#define FONT_GROUP_CJK 1 -#define FONT_GROUP_CTL 2 - -//pt-size of fonts -#define FONTSIZE_DEFAULT 240 -#define FONTSIZE_CJK_DEFAULT 210 -#define FONTSIZE_OUTLINE 280 - - -class SW_DLLPUBLIC SwStdFontConfig : public utl::ConfigItem -{ - String sDefaultFonts[DEF_FONT_COUNT]; - sal_Int32 nDefaultFontHeight[DEF_FONT_COUNT]; - - SW_DLLPRIVATE com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); - - void ChangeString(sal_uInt16 nFontType, const String& rSet) - { - if(sDefaultFonts[nFontType] != rSet) - { - SetModified(); - sDefaultFonts[nFontType] = rSet; - } - } - - void ChangeInt( sal_uInt16 nFontType, sal_Int32 nHeight ); - -public: - SwStdFontConfig(); - ~SwStdFontConfig(); - - virtual void Commit(); - virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); - - const String& GetFontStandard(sal_uInt8 nFontGroup) const {return sDefaultFonts[FONT_STANDARD + FONT_PER_GROUP * nFontGroup];} - const String& GetFontOutline(sal_uInt8 nFontGroup) const {return sDefaultFonts[FONT_OUTLINE + FONT_PER_GROUP * nFontGroup];} - const String& GetFontList (sal_uInt8 nFontGroup) const {return sDefaultFonts[FONT_LIST + FONT_PER_GROUP * nFontGroup];} - const String& GetFontCaption(sal_uInt8 nFontGroup) const {return sDefaultFonts[FONT_CAPTION + FONT_PER_GROUP * nFontGroup];} - const String& GetFontIndex (sal_uInt8 nFontGroup) const {return sDefaultFonts[FONT_INDEX + FONT_PER_GROUP * nFontGroup];} - - const String& GetFontFor(sal_uInt16 nFontType) const {return sDefaultFonts[nFontType];} - sal_Bool IsFontDefault(sal_uInt16 nFontType) const; - - void SetFontStandard(const String& rSet, sal_uInt8 nFontGroup) - {ChangeString(FONT_STANDARD + FONT_PER_GROUP * nFontGroup, rSet);} - - void SetFontOutline(const String& rSet, sal_uInt8 nFontGroup) - { ChangeString(FONT_OUTLINE + FONT_PER_GROUP * nFontGroup, rSet);} - void SetFontList (const String& rSet, sal_uInt8 nFontGroup) - { ChangeString(FONT_LIST + FONT_PER_GROUP * nFontGroup, rSet);} - void SetFontCaption(const String& rSet, sal_uInt8 nFontGroup) - { ChangeString(FONT_CAPTION + FONT_PER_GROUP * nFontGroup, rSet);} - void SetFontIndex (const String& rSet, sal_uInt8 nFontGroup) - { ChangeString(FONT_INDEX + FONT_PER_GROUP * nFontGroup, rSet);} - - void SetFontHeight( sal_Int32 nHeight, sal_uInt8 nFont, sal_uInt8 nScriptType ) - { ChangeInt(nFont + FONT_PER_GROUP * nScriptType, nHeight);} - - sal_Int32 GetFontHeight( sal_uInt8 nFont, sal_uInt8 nScriptType, LanguageType eLang ); - - static String GetDefaultFor(sal_uInt16 nFontType, LanguageType eLang); - static sal_Int32 GetDefaultHeightFor(sal_uInt16 nFontType, LanguageType eLang); -}; -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/formatclipboard.hxx b/sw/source/ui/inc/formatclipboard.hxx deleted file mode 100644 index 0de096964c..0000000000 --- a/sw/source/ui/inc/formatclipboard.hxx +++ /dev/null @@ -1,72 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _SWFORMATCLIPBOARD_HXX -#define _SWFORMATCLIPBOARD_HXX - -// header for class SwWrtShell -#include <wrtsh.hxx> -// header for class SfxItemSet -#include <svl/itemset.hxx> -// header for class SfxStyleSheetBasePool -#include <svl/style.hxx> - -//----------------------------------------------------------------------------- -/** This class acts as data container and execution class for the format paintbrush feature in writer. -*/ - -class SwFormatClipboard -{ -public: - SwFormatClipboard(); - ~SwFormatClipboard(); - - bool HasContent() const; - bool HasContentForThisType( int nSelectionType ) const; - bool CanCopyThisType( int nSelectionType ) const; - - void Copy( SwWrtShell& rWrtShell, SfxItemPool& rPool, bool bPersistentCopy=false ); - void Paste( SwWrtShell& rWrtShell, SfxStyleSheetBasePool* pPool - , bool bNoCharacterFormats=false, bool bNoParagraphFormats=false ); - void Erase(); - -private: - int m_nSelectionType; - SfxItemSet* m_pItemSet; - SfxItemSet* m_pTableItemSet; - - String m_aCharStyle; - String m_aParaStyle; - //no frame style because it contains position information - - bool m_bPersistentCopy; -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/formedt.hxx b/sw/source/ui/inc/formedt.hxx deleted file mode 100644 index 5372c963ff..0000000000 --- a/sw/source/ui/inc/formedt.hxx +++ /dev/null @@ -1,102 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _FORMEDT_HXX -#define _FORMEDT_HXX - -#include <svx/stddlg.hxx> - -#include <vcl/lstbox.hxx> - -#include <vcl/button.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/edit.hxx> - -#include "toxe.hxx" - -class SwWrtShell; -class SwForm; - -/*-------------------------------------------------------------------- - Description: insert marker for index entry - --------------------------------------------------------------------*/ -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; - FixedLine aEntryFL; - FixedText aLevelFT2; - ListBox aLevelLB; - FixedText aTemplateFT; - ListBox aParaLayLB; - PushButton aStdBT; - PushButton aAssignBT; - FixedLine aFormatFL; - - SwWrtShell &rSh; - SwForm *pForm; - sal_uInt16 nAktLevel; - sal_Bool bLastLinkIsEnd; - -public: - SwIdxFormDlg( Window* pParent, SwWrtShell &rShell, const SwForm& rForm ); - ~SwIdxFormDlg(); - - static sal_Bool IsNoNum(SwWrtShell& rSh, const String& rName); - const SwForm& GetTOXForm(); -}; - -inline const SwForm& SwIdxFormDlg::GetTOXForm() -{ - return *pForm; -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/frmdlg.hxx b/sw/source/ui/inc/frmdlg.hxx deleted file mode 100644 index 792b629978..0000000000 --- a/sw/source/ui/inc/frmdlg.hxx +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _FRMDLG_HXX -#define _FRMDLG_HXX - -#include "globals.hrc" -#include <sfx2/tabdlg.hxx> -class SwWrtShell; - -/*-------------------------------------------------------------------- - Description: frame dialog - --------------------------------------------------------------------*/ -class SwFrmDlg : public SfxTabDialog -{ - sal_Bool m_bFormat; - sal_Bool m_bNew; - sal_Bool m_bHTMLMode; - bool m_bEnableVertPos; - const SfxItemSet& m_rSet; - sal_uInt16 m_nDlgType; - SwWrtShell* m_pWrtShell; - - - virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ); - -public: - SwFrmDlg( SfxViewFrame *pFrame, Window *pParent, - const SfxItemSet& rCoreSet, - sal_Bool bNewFrm = sal_True, - sal_uInt16 nResType = DLG_FRM_STD, - sal_Bool bFmt = sal_False, - sal_uInt16 nDefPage = 0, - const String* pFmtStr = 0); - - ~SwFrmDlg(); - - inline SwWrtShell* GetWrtShell() { return m_pWrtShell; } -}; - -#endif // _FRMDLG_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/frmmgr.hxx b/sw/source/ui/inc/frmmgr.hxx deleted file mode 100644 index 792ca8b17e..0000000000 --- a/sw/source/ui/inc/frmmgr.hxx +++ /dev/null @@ -1,198 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _FRMMGR_HXX -#define _FRMMGR_HXX - -#include "swtypes.hxx" -#include "frmatr.hxx" -#include <editeng/svxenum.hxx> -#include <tools/gen.hxx> -#include <fmtfsize.hxx> -#include <fmtsrnd.hxx> -#include <fmtornt.hxx> -#include <fmtanchr.hxx> -#include "swdllapi.h" - -class SwWrtShell; -struct SvxSwFrameValidation; -struct SwPosition; - -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 SW_DLLPUBLIC SwFlyFrmAttrMgr -{ - SfxItemSet aSet; - Point aAbsPos; - SwWrtShell *pOwnSh; - - sal_Bool bAbsPos, - bNewFrm; - sal_Bool bIsInVertical; - // --> OD 2009-09-01 #mongolianlayout# - sal_Bool bIsInVerticalL2R; - - // internal calculation for borders - SW_DLLPRIVATE SwTwips CalcTopSpace(); - SW_DLLPRIVATE SwTwips CalcBottomSpace(); - SW_DLLPRIVATE SwTwips CalcLeftSpace(); - SW_DLLPRIVATE SwTwips CalcRightSpace(); - - SW_DLLPRIVATE void _UpdateFlyFrm(); // post-treatment after insert or update - -public: - SwFlyFrmAttrMgr( sal_Bool bNew, SwWrtShell* pSh, sal_uInt8 nType ); - - //CopyCtor for dialogs to check the metrics - SwFlyFrmAttrMgr( sal_Bool bNew, SwWrtShell *pSh, const SfxItemSet &rSet ); - - inline SwWrtShell* GetShell() { return pOwnSh; } - - void SetAnchor(RndStdIds eId); - inline RndStdIds GetAnchor() const; - - void SetHorzOrientation(sal_Int16 eOrient); - void SetVertOrientation(sal_Int16 eOrient); - - // absolute position - void SetAbsPos(const Point& rLPoint); - - // anchor's relative position - void SetPos(const Point& rLPoint); - inline Point GetPos() const; - - // size - void SetSize(const Size& rLSize); - inline const Size& GetSize() const; - - inline sal_uInt16 GetHeightPercent() const; - - void SetHeightSizeType(SwFrmSize eType); - - // space to content - void SetLRSpace( long nLeft = LONG_MAX, - long nRight = LONG_MAX ); - void SetULSpace( long nTop = LONG_MAX, - long nBottom= LONG_MAX ); - - void SetCol( const SwFmtCol &rCol); - - // change and query attributes - void UpdateAttrMgr(); - void UpdateFlyFrm(); - - // create new frame - sal_Bool InsertFlyFrm(); - void InsertFlyFrm(RndStdIds eAnchorType, - const Point &rPos, - const Size &rSize, - sal_Bool bAbsPos = sal_False); - - // check and change metrics - void ValidateMetrics(SvxSwFrameValidation& rVal, - const SwPosition* pToCharCntntPos, - sal_Bool bOnlyPercentRefValue = sal_False); - - void DelAttr(sal_uInt16 nId); - - // reach out the set - 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 CalcWidthBorder() { return CalcLeftSpace()+CalcRightSpace(); } - long CalcHeightBorder() { return CalcTopSpace()+CalcBottomSpace(); } -}; - -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 sal_uInt16 SwFlyFrmAttrMgr::GetHeightPercent() const -{ - return GetFrmSize().GetHeightPercent(); -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/frmpage.hxx b/sw/source/ui/inc/frmpage.hxx deleted file mode 100644 index 97ddfcf868..0000000000 --- a/sw/source/ui/inc/frmpage.hxx +++ /dev/null @@ -1,337 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _FRMPAGE_HXX -#define _FRMPAGE_HXX - -#include <vcl/fixed.hxx> -#include <vcl/button.hxx> -#include <vcl/lstbox.hxx> -#include <vcl/field.hxx> -#include <sfx2/tabdlg.hxx> -#include <svx/swframeposstrings.hxx> -#include <swtypes.hxx> -#include <bmpwin.hxx> -#include <svx/swframeexample.hxx> -#include <prcntfld.hxx> -#include <globals.hrc> - -namespace sfx2{class FileDialogHelper;} -class SwWrtShell; -struct FrmMap; -// OD 12.11.2003 #i22341# -struct SwPosition; - -/*-------------------------------------------------------------------- - Description: frame dialog - --------------------------------------------------------------------*/ -class SwFrmPage: public SfxTabPage -{ - // size - FixedLine aSizeFL; - FixedText aWidthFT; - FixedText aWidthAutoFT; - PercentField aWidthED; - CheckBox aRelWidthCB; - CheckBox aAutoWidthCB; - FixedText aHeightFT; - FixedText aHeightAutoFT; - PercentField aHeightED; - CheckBox aRelHeightCB; - CheckBox aAutoHeightCB; - CheckBox aFixedRatioCB; - PushButton aRealSizeBT; - - // anchor - FixedLine aTypeSepFL; - FixedLine aTypeFL; - RadioButton aAnchorAtPageRB; - RadioButton aAnchorAtParaRB; - RadioButton aAnchorAtCharRB; - RadioButton aAnchorAsCharRB; - RadioButton aAnchorAtFrameRB; - - // position - FixedLine aPositionFL; - 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; - // OD 02.10.2003 #i18732# - check box for new option 'FollowTextFlow' - CheckBox aFollowTextFlowCB; - - // example - SvxSwFrameExample aExampleWN; - - //'string provider' - SvxSwFramePosString aFramePosString; - - sal_Bool bAtHorzPosModified; - sal_Bool bAtVertPosModified; - - sal_Bool bFormat; - sal_Bool bNew; - sal_Bool bNoModifyHdl; - sal_Bool bVerticalChanged; //check done whether frame is in vertical environment - sal_Bool bIsVerticalFrame; //current frame is in vertical environment - strings are exchanged - // --> OD 2009-08-31 #mongolianlayou# - sal_Bool bIsVerticalL2R; - sal_Bool bIsInRightToLeft; // current frame is in right-to-left environment - strings are exchanged - sal_Bool bHtmlMode; - sal_uInt16 nHtmlMode; - sal_uInt16 nDlgType; - Size aGrfSize; - Size aWrap; - SwTwips nUpperBorder; - SwTwips nLowerBorder; - double fWidthHeightRatio; //width-to-height ratio to support the KeepRatio button - - // OD 12.11.2003 #i22341# - keep content position of character for - // to character anchored objects. - const SwPosition* mpToCharCntntPos; - - // old alignment - short nOldH; - short nOldHRel; - short nOldV; - short nOldVRel; - - FrmMap* pVMap; - FrmMap* pHMap; - - bool m_bAllowVertPositioning; - bool m_bIsMathOLE; - bool m_bIsMathBaselineAlignment; - - virtual void ActivatePage(const SfxItemSet& rSet); - virtual int DeactivatePage(SfxItemSet *pSet); - - - DECL_LINK( RangeModifyHdl, Edit * ); - DECL_LINK( AnchorTypeHdl, RadioButton * ); - DECL_LINK( PosHdl, ListBox * ); - DECL_LINK( RelHdl, ListBox * ); - void InitPos(RndStdIds eId, sal_uInt16 nH, sal_uInt16 nHRel, - sal_uInt16 nV, sal_uInt16 nVRel, - long nX, long nY); - - DECL_LINK( RealSizeHdl, Button * ); - DECL_LINK( RelSizeClickHdl, CheckBox * ); - DECL_LINK( MirrorHdl, CheckBox * ); - - DECL_LINK( AutoWidthClickHdl, void* ); - DECL_LINK( AutoHeightClickHdl, void* ); - - // update example - void UpdateExample(); - DECL_LINK( ModifyHdl, Edit * ); - - void Init(const SfxItemSet& rSet, sal_Bool bReset = sal_False); - // OD 12.11.2003 #i22341# - adjustment to handle maps, that are ambigous - // in the alignment. - sal_uInt16 FillPosLB( const FrmMap* _pMap, - const sal_uInt16 _nAlign, - const sal_uInt16 _nRel, - ListBox& _rLB ); - // OD 14.11.2003 #i22341# - adjustment to handle maps, that are ambigous - // in their string entries. - sal_uLong FillRelLB( const FrmMap* _pMap, - const sal_uInt16 _nLBSelPos, - const sal_uInt16 _nAlign, - sal_uInt16 _nRel, - ListBox& _rLB, - FixedText& _rFT ); - sal_uInt16 GetMapPos( const FrmMap *pMap, ListBox &rAlignLB ); - short GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBox &rAlignLB, ListBox &rRelationLB); - short GetRelation(FrmMap *pMap, ListBox &rRelationLB); - RndStdIds GetAnchor(); - - void EnableGraficMode( void ); // hides auto check boxes and re-org controls for "Real Size" button - - SwFrmPage(Window *pParent, const SfxItemSet &rSet); - ~SwFrmPage(); - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - -public: - - static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); - static sal_uInt16* GetRanges(); - - virtual sal_Bool FillItemSet(SfxItemSet &rSet); - virtual void Reset(const SfxItemSet &rSet); - - void SetNewFrame(sal_Bool bNewFrame) { bNew = bNewFrame; } - void SetFormatUsed(sal_Bool bFmt); - void SetFrmType(sal_uInt16 nType) { nDlgType = nType; } - inline sal_Bool IsInGraficMode( void ) { return nDlgType == DLG_FRM_GRF || nDlgType == DLG_FRM_OLE; } - void EnableVerticalPositioning( bool bEnable ); -}; - -class SwGrfExtPage: public SfxTabPage -{ - // mirror - FixedLine aMirrorFL; - CheckBox aMirrorVertBox; - CheckBox aMirrorHorzBox; - RadioButton aAllPagesRB; - RadioButton aLeftPagesRB; - RadioButton aRightPagesRB; - BmpWindow aBmpWin; - - FixedLine aConnectFL; - FixedText aConnectFT; - Edit aConnectED; - PushButton aBrowseBT; - - String aFilterName; - String aGrfName, aNewGrfName; - - ::sfx2::FileDialogHelper* pGrfDlg; - - sal_Bool bHtmlMode; - - // handler for mirroring - DECL_LINK( MirrorHdl, CheckBox * ); - DECL_LINK( BrowseHdl, Button * ); - - virtual void ActivatePage(const SfxItemSet& rSet); - SwGrfExtPage(Window *pParent, const SfxItemSet &rSet); - ~SwGrfExtPage(); - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - -public: - - static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); - - virtual sal_Bool FillItemSet(SfxItemSet &rSet); - virtual void Reset(const SfxItemSet &rSet); - virtual int DeactivatePage(SfxItemSet *pSet); -}; - -class SwFrmURLPage : public SfxTabPage -{ - // hyperlink - FixedLine aHyperLinkFL; - FixedText aURLFT; - Edit aURLED; - PushButton aSearchPB; - FixedText aNameFT; - Edit aNameED; - FixedText aFrameFT; - ComboBox aFrameCB; - - // image map - FixedLine aImageFL; - CheckBox aServerCB; - CheckBox aClientCB; - - DECL_LINK( InsertFileHdl, PushButton * ); - - - SwFrmURLPage(Window *pParent, const SfxItemSet &rSet); - ~SwFrmURLPage(); - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - -public: - - static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); - - virtual sal_Bool FillItemSet(SfxItemSet &rSet); - virtual void Reset(const SfxItemSet &rSet); -}; - -class SwFrmAddPage : public SfxTabPage -{ - FixedLine aNamesFL; - FixedText aNameFT; - Edit aNameED; - FixedText aAltNameFT; - Edit aAltNameED; - FixedText aPrevFT; - ListBox aPrevLB; - FixedText aNextFT; - ListBox aNextLB; - FixedLine aProtectFL; - - CheckBox aProtectContentCB; - CheckBox aProtectFrameCB; - CheckBox aProtectSizeCB; - FixedLine aExtFL; - - CheckBox aEditInReadonlyCB; - CheckBox aPrintFrameCB; - FixedText aTextFlowFT; - ListBox aTextFlowLB; - - - SwWrtShell* pWrtSh; - - sal_uInt16 nDlgType; - sal_Bool bHtmlMode; - sal_Bool bFormat; - sal_Bool bNew; - - DECL_LINK(EditModifyHdl, Edit*); - DECL_LINK(ChainModifyHdl, ListBox*); - - SwFrmAddPage(Window *pParent, const SfxItemSet &rSet); - ~SwFrmAddPage(); - -public: - - static SfxTabPage* Create(Window *pParent, const SfxItemSet &rSet); - static sal_uInt16* GetRanges(); - - virtual sal_Bool FillItemSet(SfxItemSet &rSet); - virtual void Reset(const SfxItemSet &rSet); - - void SetFormatUsed(sal_Bool bFmt); - void SetFrmType(sal_uInt16 nType) { nDlgType = nType; } - void SetNewFrame(sal_Bool bNewFrame) { bNew = bNewFrame; } - void SetShell(SwWrtShell* pSh) { pWrtSh = pSh; } - -}; - -#endif // _FRMPAGE_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/frmsh.hxx b/sw/source/ui/inc/frmsh.hxx deleted file mode 100644 index 5eeb05538e..0000000000 --- a/sw/source/ui/inc/frmsh.hxx +++ /dev/null @@ -1,53 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWFRMSH_HXX -#define _SWFRMSH_HXX - -#include "basesh.hxx" - -class SwFrameShell: public SwBaseShell -{ - -public: - SFX_DECL_INTERFACE(SW_FRAMESHELL) - - SwFrameShell(SwView &rView); - virtual ~SwFrameShell(); - - void Execute(SfxRequest &); - void GetState(SfxItemSet &); - void ExecFrameStyle(SfxRequest& rReq); - void GetLineStyleState(SfxItemSet &rSet); - void StateInsert(SfxItemSet &rSet); - - void StateStatusline(SfxItemSet &rSet); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/frmui.hrc b/sw/source/ui/inc/frmui.hrc deleted file mode 100644 index bb06c71576..0000000000 --- a/sw/source/ui/inc/frmui.hrc +++ /dev/null @@ -1,144 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#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 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 deleted file mode 100644 index 7a404392ab..0000000000 --- a/sw/source/ui/inc/globals.h +++ /dev/null @@ -1,40 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _GLOBALS_H -#define _GLOBALS_H - -enum SwChangeState -{ - STATE_OFF = 0, - STATE_ON = 1, - STATE_TOGGLE = 2 -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/globdoc.hrc b/sw/source/ui/inc/globdoc.hrc deleted file mode 100644 index 1a27e62362..0000000000 --- a/sw/source/ui/inc/globdoc.hrc +++ /dev/null @@ -1,64 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#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_50 (RC_GLOBDOC_BEGIN + 4) -#define STR_WRITER_GLOBALDOC_FULLTYPE (RC_GLOBDOC_BEGIN + 5) - -#define MN_GLOBALFILE (RC_GLOBDOC_BEGIN + 30) -#define MN_GLOBALEDIT (RC_GLOBDOC_BEGIN + 31) -#define MN_GLOBALVIEW (RC_GLOBDOC_BEGIN + 32) -#define MN_GLOBALINS (RC_GLOBDOC_BEGIN + 33) -#define MN_GLOBALFORMAT (RC_GLOBDOC_BEGIN + 34) -#define MN_GLOBALEXTRA (RC_GLOBDOC_BEGIN + 35) -#define MN_GLOBALWIN (RC_GLOBDOC_BEGIN + 36) - -#define MN_GLOBALFILE_PORT (RC_GLOBDOC_BEGIN + 47) -#define MN_GLOBALEDIT_PORT (RC_GLOBDOC_BEGIN + 48) -#define MN_GLOBALVIEW_PORT (RC_GLOBDOC_BEGIN + 49) -#define MN_GLOBALINS_PORT (RC_GLOBDOC_BEGIN + 50) -#define MN_GLOBALFORMAT_PORT (RC_GLOBDOC_BEGIN + 51) -#define MN_GLOBALEXTRA_PORT (RC_GLOBDOC_BEGIN + 52) -#define MN_GLOBALWIN_PORT (RC_GLOBDOC_BEGIN + 53) - -#define MN_GLOBAL_TEXT_POPUPMENU (RC_GLOBDOC_BEGIN + 63) -// ------------------------------------------------------------------------ - -#define GLOBDOC_ACT_END MN_GLOBAL_TEXT_POPUPMENU - - -#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 deleted file mode 100644 index cc675c6986..0000000000 --- a/sw/source/ui/inc/glosbib.hxx +++ /dev/null @@ -1,114 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _GLOSBIB_HXX -#define _GLOSBIB_HXX - -#include <vcl/edit.hxx> -#include <svx/stddlg.hxx> - -#include <vcl/lstbox.hxx> -#include <svtools/svtabbx.hxx> - -#include <vcl/button.hxx> -#include <vcl/fixed.hxx> - -class SwGlossaryHdl; -class SvStrings; - -class FEdit : public Edit -{ - public: - FEdit(Window * pParent, const ResId& rResId) : - Edit(pParent, rResId){} - - virtual void KeyInput( const KeyEvent& rKEvent ); -}; - -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 ); -}; - -class SwGlossaryGroupDlg : public SvxStandardDialog -{ - FixedText aBibFT; - FEdit aNameED; - FixedText aPathFT; - ListBox aPathLB; - FixedText aSelectFT; - SwGlossaryGroupTLB aGroupTLB; - - OKButton aOkPB; - CancelButton aCancelPB; - HelpButton aHelpPB; - PushButton aNewPB; - PushButton aDelPB; - PushButton aRenamePB; - - SvStrings* pRemovedArr; - SvStrings* pInsertedArr; - SvStrings* pRenamedArr; - - SwGlossaryHdl *pGlosHdl; - - String sCreatedGroup; - - sal_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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/glosdoc.hxx b/sw/source/ui/inc/glosdoc.hxx deleted file mode 100644 index e2fc4f378e..0000000000 --- a/sw/source/ui/inc/glosdoc.hxx +++ /dev/null @@ -1,151 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _GLOSDOC_HXX -#define _GLOSDOC_HXX - -#include <tools/string.hxx> -#include <svl/svarray.hxx> -#include <com/sun/star/text/XAutoTextGroup.hpp> - -class SwTextBlocks; -class SvStrings; -class SwDocShell; - -#ifndef SW_DECL_SWDOCSHELL_DEFINED -#define SW_DECL_SWDOCSHELL_DEFINED -#include <tools/ref.hxx> -SV_DECL_REF( SwDocShell ) -#endif -#include <cppuhelper/weakref.hxx> - -#ifndef INCLUDED_VECTOR -#include <vector> -#define INCLUDED_VECTOR -#endif -#include "swdllapi.h" - -typedef ::com::sun::star::uno::WeakReference< ::com::sun::star::text::XAutoTextGroup > AutoTextGroupRef; -typedef ::std::vector< AutoTextGroupRef > UnoAutoTextGroups; - -typedef ::com::sun::star::uno::WeakReference< ::com::sun::star::text::XAutoTextEntry > AutoTextEntryRef; -typedef ::std::vector< AutoTextEntryRef > UnoAutoTextEntries; - -#define GLOS_DELIM (sal_Unicode)'*' - -// CLASS ----------------------------------------------------------------- -class SW_DLLPUBLIC SwGlossaries -{ - UnoAutoTextGroups m_aGlossaryGroups; - UnoAutoTextEntries m_aGlossaryEntries; - - String m_aPath; - String m_sOldErrPath; - String m_sErrPath; - SvStrings *m_pPathArr; - SvStrings *m_pGlosArr; - sal_Bool m_bError; - - SW_DLLPRIVATE SwTextBlocks* GetGlosDoc(const String &rName, sal_Bool bCreate = sal_True) const; - SW_DLLPRIVATE SvStrings *GetNameList(); - - // implementation in unoatxt.cxx - SW_DLLPRIVATE void RemoveFileFromList( const String& rGroup ); - SW_DLLPRIVATE void InvalidateUNOOjects(); - -public: - SwGlossaries(); - ~SwGlossaries(); - - /** returns the cached AutoTextGroup (if any) for the given group name - - @precond - If <arg>_bCreate</arg> is <TRUE/>, the SolarMutex must be locked when calling into this method. - - @param _rGroupName - the name of the glossaries group - @param _bCreate - if <TRUE/>, the group is created if it does not yet exist - */ - ::com::sun::star::uno::Reference< ::com::sun::star::text::XAutoTextGroup > - GetAutoTextGroup( - const ::rtl::OUString& _rGroupName, - bool _bCreate = false - ); - - /** returns the cached AutoTextEntry (if any) for the given group/with the given name - - @precond - If <arg>_bCreate</arg> is <TRUE/>, the SolarMutex must be locked when calling into this method. - - @param _rGroupAccessName - the name to access the group - @param _rGroupName - the name of the glossaries group, as to be passed to the entry - @param _rEntryName - the name of the auto text entry - @param _bCreate - if <TRUE/>, the entry is created if it does not yet exist - */ - ::com::sun::star::uno::Reference< ::com::sun::star::text::XAutoTextEntry > - GetAutoTextEntry( - const String& _rCompleteGroupName, - const ::rtl::OUString& _rGroupName, - const ::rtl::OUString& _rEntryName, - bool _bCreate = false - ); - - sal_uInt16 GetGroupCnt(); - String GetGroupName(sal_uInt16 ); - String GetGroupTitle( const String& rGroupName ); - - sal_Bool FindGroupName(String & rGroup); - - SwTextBlocks* GetGroupDoc(const String &rName, - sal_Bool bCreate = sal_False) const; - SwTextBlocks* GetDefGroupDoc() const {return GetGroupDoc(GetDefName());} - void PutGroupDoc(SwTextBlocks *pBlock); - static String GetDefName(); - static String GetExtension(); - - String GetCompleteGroupName( const ::rtl::OUString& GroupName ); - - sal_Bool NewGroupDoc(String &rGroupName, const String& rTitle); - sal_Bool RenameGroupDoc(const String& sOldGroup, String& sNewGroup, const String& rNewTitle); - sal_Bool DelGroupDoc(const String &); - SwDocShellRef EditGroupDoc(const String &rGrpName, const String& rShortName, sal_Bool bShow = sal_True ); - void SaveGroupDoc(const String &rGrpName, const String& rLongName ); - void UpdateGlosPath(sal_Bool bFull); - void ShowError(); - inline sal_uLong IsGlosPathErr() { return m_bError; } - const SvStrings* GetPathArray() const {return m_pPathArr;} -}; - - -#endif // _GLOSDOC_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/gloshdl.hxx b/sw/source/ui/inc/gloshdl.hxx deleted file mode 100644 index 3e26b9edce..0000000000 --- a/sw/source/ui/inc/gloshdl.hxx +++ /dev/null @@ -1,113 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _GLOSHDL_HXX -#define _GLOSHDL_HXX - -#include <tools/string.hxx> -#include "swdllapi.h" - -class SwWrtShell; -class SwTextBlocks; -class SvxMacro; -class SwGlossaries; -class SfxViewFrame; - -// CLASS ----------------------------------------------------------------- -class SW_DLLPUBLIC SwGlossaryHdl -{ - - SwGlossaries& rStatGlossaries; - String aCurGrp; - SfxViewFrame* pViewFrame; - SwWrtShell* pWrtShell; - SwTextBlocks* pCurGrp; - - SW_DLLPRIVATE void _SetMacros(const String &rName, - const SvxMacro *pStart, - const SvxMacro *pEnd); - - SW_DLLPRIVATE sal_Bool Expand( const String& rShortName, - SwGlossaries* pGlossaries, - SwTextBlocks *pGlossary ); - -public: - sal_Bool ConvertToNew(SwTextBlocks& rOld); - void GlossaryDlg(); - - sal_uInt16 GetGroupCnt() const; - String GetGroupName( sal_uInt16, String* pTitle = 0 ); - sal_Bool NewGroup(String & rGroupName, const String& rTitle); - sal_Bool DelGroup(const String &); - sal_Bool RenameGroup(const String & rOld, String& rNew, const String& rNewTitle); - void SetCurGroup(const String &aGrp, sal_Bool bApi = sal_False, sal_Bool bAlwaysCreateNew = sal_False); - - const String &GetCurGroup() const { return aCurGrp; } - - sal_uInt16 GetGlossaryCnt(); - String GetGlossaryName(sal_uInt16); - String GetGlossaryShortName(const String &rName); - String GetGlossaryShortName(sal_uInt16); - - sal_Bool Rename( const String& rOldShortName, const String& rNewShortName, - const String& rNewName); - sal_Bool CopyOrMove( const String& rSourceGroupName, String& rSourceShortName, - const String& rDestGroupName, const String& rLongName, sal_Bool bMove ); - sal_Bool HasShortName(const String &rShortName) const; - // when NewGlossary is called from Basic then the previously set group should - // be newly created if applicable. - sal_Bool NewGlossary(const String &rName, const String &rShortName, - sal_Bool bApiCall = sal_False, sal_Bool bNoAttr = sal_False ); - sal_Bool DelGlossary(const String&); - sal_Bool CopyToClipboard(SwWrtShell& rSh, const String& rShortName); - - sal_Bool ExpandGlossary(); - sal_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 ); - - sal_Bool IsReadOnly( const String* = 0 ) const; - sal_Bool IsOld() const; - - sal_Bool FindGroupName(String & rGroup); // find group without path index - - sal_Bool ImportGlossaries( const String& rName ); - - SwGlossaryHdl(SfxViewFrame* pViewFrame, SwWrtShell *); - ~SwGlossaryHdl(); -}; - -#endif // _GLOSHDL_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/gloslst.hxx b/sw/source/ui/inc/gloslst.hxx deleted file mode 100644 index 58be8b9e49..0000000000 --- a/sw/source/ui/inc/gloslst.hxx +++ /dev/null @@ -1,91 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _GLOSLST_HXX -#define _GLOSLST_HXX - - -#include <tools/datetime.hxx> -#include <tools/string.hxx> -#include <vcl/timer.hxx> -#include <svl/svarray.hxx> - -class SwGlossaries; -class SvStringsISortDtor; - -struct AutoTextGroup -{ - sal_uInt16 nCount; - String sName; - String sTitle; - String sLongNames; // by 0x0A seperated long names - String sShortNames; // by 0x0A seperated short names - DateTime aDateModified; -}; - - -typedef AutoTextGroup* AutoTextGroupPtr; -SV_DECL_PTRARR(AutoTextGroups, AutoTextGroupPtr, 4, 4) - -class SwGlossaryList : public AutoTimer -{ - AutoTextGroups aGroupArr; - String sPath; - sal_Bool bFilled; - - AutoTextGroup* FindGroup(const String& rGroupName); - void FillGroup(AutoTextGroup* pGroup, SwGlossaries* pGloss); - -public: - SwGlossaryList(); - ~SwGlossaryList(); - - sal_Bool HasLongName(const String& rBegin, SvStringsISortDtor* pLongNames ); - sal_Bool GetShortName(const String& rLongName, - String& rShortName, String& rGroupName ); - - sal_uInt16 GetGroupCount(); - String GetGroupName(sal_uInt16 nPos, sal_Bool bNoPath = sal_True, String* pTitle = 0); - sal_uInt16 GetBlockCount(sal_uInt16 nGroup); - String GetBlockName(sal_uInt16 nGroup, sal_uInt16 nBlock, String& rShortName); - - void Update(); - - virtual void Timeout(); - - void ClearGroups(); -}; - -#endif - - - - - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/glossary.hxx b/sw/source/ui/inc/glossary.hxx deleted file mode 100644 index 335f691f7b..0000000000 --- a/sw/source/ui/inc/glossary.hxx +++ /dev/null @@ -1,183 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _GLOSSARY_HXX -#define _GLOSSARY_HXX - -#include <vcl/edit.hxx> -#include <svtools/svtreebx.hxx> -#include <svx/stddlg.hxx> - -#include <vcl/button.hxx> -#include <vcl/fixed.hxx> - -#include <vcl/combobox.hxx> - -#include <vcl/menubtn.hxx> -#include <com/sun/star/container/XEnumerationAccess.hpp> -#include <com/sun/star/container/XHierarchicalNameAccess.hpp> -#include <com/sun/star/container/XNameAccess.hpp> -#include <com/sun/star/container/XContentEnumerationAccess.hpp> -#include <com/sun/star/container/XEnumeration.hpp> -#include <com/sun/star/container/XElementAccess.hpp> -#include <com/sun/star/container/XIndexAccess.hpp> - -#include <actctrl.hxx> - -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 NotifyStartDrag( TransferDataContainer& rContainer, - SvLBoxEntry* ); - virtual sal_Bool NotifyAcceptDrop( SvLBoxEntry* ); - - virtual sal_Bool NotifyMoving( SvLBoxEntry* pTarget, - SvLBoxEntry* pEntry, - SvLBoxEntry*& rpNewParent, - sal_uLong& rNewChildPos - ); - virtual sal_Bool NotifyCopying( SvLBoxEntry* pTarget, - SvLBoxEntry* pEntry, - SvLBoxEntry*& rpNewParent, - sal_uLong& rNewChildPos); -public: - SwGlTreeListBox(Window* pParent, const ResId& rResId); - - virtual void RequestHelp( const HelpEvent& rHEvt ); - void Clear(); -}; - -//------------------------------------------------------------------ -class SwOneExampleFrame; -class SwGlossaryDlg : public SvxStandardDialog -{ - friend class SwNewGlosNameDlg; - friend class SwGlTreeListBox; - - CheckBox aInsertTipCB; - FixedText aNameLbl; - Edit aNameED; - FixedText aShortNameLbl; - NoSpaceEdit aShortNameEdit; - SwGlTreeListBox aCategoryBox; - FixedLine aRelativeFL; - CheckBox aFileRelCB; - CheckBox aNetRelCB; - Window aExampleWIN; - Window aExampleDummyWIN; - CheckBox aShowExampleCB; - 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; - - String sResumeGroup; - String sResumeShortName; - sal_Bool bResume; - - - 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); - void ResumeShowAutoText(); - - sal_Bool GetResumeData(String& rGroup, String& rShortName) - {rGroup = sResumeGroup; rShortName = sResumeShortName; return bResume;} - void SetResumeData(const String& rGroup, const String& rShortName) - {sResumeGroup = rGroup; sResumeShortName = rShortName; bResume = sal_True;} - void ResetResumeData() {bResume = sal_False;} -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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/glshell.hxx b/sw/source/ui/inc/glshell.hxx deleted file mode 100644 index ffdcdd61c3..0000000000 --- a/sw/source/ui/inc/glshell.hxx +++ /dev/null @@ -1,116 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _AUTODOC_HXX -#define _AUTODOC_HXX -#include "wdocsh.hxx" - -class SwGlosDocShell : public SwDocShell -{ - String aLongName; - String aShortName; - String aGroupName; - sal_Bool bShow; - - using SotObject::GetInterface; - -protected: - virtual sal_Bool Save(); - -public: - - TYPEINFO(); - SFX_DECL_INTERFACE(SW_GLOSDOCSHELL) - - SwGlosDocShell( sal_Bool bNewShow = sal_True); - 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; - - using SotObject::GetInterface; - -protected: - virtual sal_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 - - - - - - - - - - - - - - - - - - - - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/grfsh.hxx b/sw/source/ui/inc/grfsh.hxx deleted file mode 100644 index 3bbe9e3e5e..0000000000 --- a/sw/source/ui/inc/grfsh.hxx +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWGRFSH_HXX -#define _SWGRFSH_HXX - -#include "frmsh.hxx" - -class SwGrfShell: public SwBaseShell -{ -public: - SFX_DECL_INTERFACE(SW_GRFSHELL) - - void Execute(SfxRequest &); - void ExecAttr(SfxRequest &); - void GetAttrState(SfxItemSet &); - - SwGrfShell(SwView &rView); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/hyp.hxx b/sw/source/ui/inc/hyp.hxx deleted file mode 100644 index e9f3018a34..0000000000 --- a/sw/source/ui/inc/hyp.hxx +++ /dev/null @@ -1,70 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _HYP_HXX -#define _HYP_HXX - -#include <tools/link.hxx> -#include <editeng/splwrap.hxx> -#include <com/sun/star/linguistic2/XHyphenator.hpp> - -class SwView; - -class SwHyphWrapper : public SvxSpellWrapper { -private: - SwView* pView; - ::com::sun::star::uno::Reference< - ::com::sun::star::linguistic2::XHyphenator > xHyph; - Link aOldLnk; - LanguageType nLangError; // non existing language - sal_uInt16 nPageCount; // page count for progress view - sal_uInt16 nPageStart; // 1st checked page - sal_Bool bInSelection : 1; // seperating selected text - sal_Bool bShowError : 1; // report non existing language - sal_Bool bAutomatic : 1; // insert seperators without further inquiry - sal_Bool bInfoBox : 1; // display info-box when ending - DECL_LINK( SpellError, LanguageType * ); - -protected: - virtual void SpellStart( SvxSpellArea eSpell ); - virtual sal_Bool SpellContinue(); - virtual void SpellEnd( ); - virtual sal_Bool SpellMore(); - virtual void InsertHyphen( const sal_uInt16 nPos ); // insert hyphen - -public: - SwHyphWrapper( SwView* pVw, - ::com::sun::star::uno::Reference< - ::com::sun::star::linguistic2::XHyphenator > &rxHyph, - sal_Bool bStart, sal_Bool bOther, sal_Bool bSelect ); - ~SwHyphWrapper(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/idxmrk.hxx b/sw/source/ui/inc/idxmrk.hxx deleted file mode 100644 index ff5c562705..0000000000 --- a/sw/source/ui/inc/idxmrk.hxx +++ /dev/null @@ -1,69 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _IDXMRK_HXX -#define _IDXMRK_HXX - -#include <sfx2/childwin.hxx> - -#include "swabstdlg.hxx" - -class SwWrtShell; - -class SwInsertIdxMarkWrapper : public SfxChildWindow -{ - AbstractMarkFloatDlg* pAbstDlg; -protected: - SwInsertIdxMarkWrapper( Window *pParentWindow, - sal_uInt16 nId, - SfxBindings* pBindings, - SfxChildWinInfo* pInfo ); - - SFX_DECL_CHILDWINDOW(SwInsertIdxMarkWrapper); - -public: - void ReInitDlg(SwWrtShell& rWrtShell); -}; - -class SwInsertAuthMarkWrapper : public SfxChildWindow -{ - AbstractMarkFloatDlg* pAbstDlg; -protected: - SwInsertAuthMarkWrapper( Window *pParentWindow, - sal_uInt16 nId, - SfxBindings* pBindings, - SfxChildWinInfo* pInfo ); - - SFX_DECL_CHILDWINDOW(SwInsertAuthMarkWrapper); - -public: - void ReInitDlg(SwWrtShell& rWrtShell); -}; - -#endif // _IDXMRK_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/imaildsplistener.hxx b/sw/source/ui/inc/imaildsplistener.hxx deleted file mode 100644 index f90a4b8b53..0000000000 --- a/sw/source/ui/inc/imaildsplistener.hxx +++ /dev/null @@ -1,80 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef INCLUDED_IMAILDSPLISTENER_HXX -#define INCLUDED_IMAILDSPLISTENER_HXX - -#include "com/sun/star/mail/XMailMessage.hpp" -#include <salhelper/refobj.hxx> - - -class MailDispatcher; - -/** - MailDispatcher listener interface. - Clients may implement and register instances of the - mail dispatcher interface in order to get notifications - about the MailDispatcher status. - - @see MailDispatcher -*/ -class IMailDispatcherListener : public ::salhelper::ReferenceObject -{ -public: - /** - Called when the MailDispatcher is started. - */ - virtual void started(::rtl::Reference<MailDispatcher> xMailDispatcher) = 0; - - /** - Called when the MailDispatcher is stopped. - */ - virtual void stopped(::rtl::Reference<MailDispatcher> xMailDispatcher) = 0; - - /** - Called when there are no more mail messages - to deliver. - */ - virtual void idle(::rtl::Reference<MailDispatcher> xMailDispatcher) = 0; - - /** - Called for every mail message that has been - successfully delivered. - */ - virtual void mailDelivered(::rtl::Reference<MailDispatcher> xMailDispatcher, ::com::sun::star::uno::Reference< ::com::sun::star::mail::XMailMessage> xMailMessage) = 0; - - /** - Called for every mail message whose delivery - failed. - */ - virtual void mailDeliveryError(::rtl::Reference<MailDispatcher> xMailDispatcher, ::com::sun::star::uno::Reference< ::com::sun::star::mail::XMailMessage> xMailMessage, const rtl::OUString& sErrorMessage) = 0; -}; - -#endif // INCLUDED_IMAILDISPATCHERLISTENER_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/initui.hxx b/sw/source/ui/inc/initui.hxx deleted file mode 100644 index 9ec0bb30ff..0000000000 --- a/sw/source/ui/inc/initui.hxx +++ /dev/null @@ -1,82 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _INITUI_HXX -#define _INITUI_HXX - -#include "tools/solar.h" -#include "swdllapi.h" - -/* - * Forward Declarations - */ -class String; -class SwThesaurus; -class SvStringsDtor; - -/* - * Extern Definitions - */ -extern SwThesaurus* pThes; - -extern String* pOldGrfCat; -extern String* pOldTabCat; -extern String* pOldFrmCat; - -extern String* pCurrGlosGroup; - -SW_DLLPUBLIC String* GetOldGrfCat(); -SW_DLLPUBLIC String* GetOldTabCat(); -SW_DLLPUBLIC String* GetOldFrmCat(); -SW_DLLPUBLIC String* GetOldDrwCat(); - -SW_DLLPUBLIC String* GetCurrGlosGroup(); -SW_DLLPUBLIC void SetCurrGlosGroup(String* pStr); - -extern SvStringsDtor* pDBNameList; - -extern SvStringsDtor* pAuthFieldNameList; -extern SvStringsDtor* pAuthFieldTypeList; - -// provides textblock management -class SwGlossaries; -SW_DLLPUBLIC SwGlossaries* GetGlossaries(); - -class SwGlossaryList; - -sal_Bool HasGlossaryList(); -SwGlossaryList* GetGlossaryList(); - -extern void _InitUI(); -extern void _FinitUI(); -extern void _InitSpell(); -extern void _FinitSpell(); - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/inpdlg.hxx b/sw/source/ui/inc/inpdlg.hxx deleted file mode 100644 index 0fe511aaf2..0000000000 --- a/sw/source/ui/inc/inpdlg.hxx +++ /dev/null @@ -1,77 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _INPDLG_HXX -#define _INPDLG_HXX - -#include <svx/stddlg.hxx> - -#include <svtools/svmedit.hxx> -#include <vcl/fixed.hxx> -#include <vcl/button.hxx> - -class SwInputField; -class SwSetExpField; -class SwUserFieldType; -class SwField; -class SwWrtShell; - -/*-------------------------------------------------------------------- - Description: insert fields - --------------------------------------------------------------------*/ - -class SwFldInputDlg: public SvxStandardDialog -{ - virtual void Apply(); - virtual void StateChanged( StateChangedType ); - - SwWrtShell &rSh; - SwInputField* pInpFld; - SwSetExpField* pSetFld; - SwUserFieldType* pUsrType; - - Edit aLabelED; - - MultiLineEdit aEditED; - FixedLine aEditFL; - - OKButton aOKBT; - CancelButton aCancelBT; - PushButton aNextBT; - HelpButton aHelpBT; - - DECL_LINK(NextHdl, PushButton*); -public: - SwFldInputDlg( Window *pParent, SwWrtShell &rSh, - SwField* pField, sal_Bool bNextButton = sal_False ); - ~SwFldInputDlg(); -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/inputwin.hxx b/sw/source/ui/inc/inputwin.hxx deleted file mode 100644 index a43438c045..0000000000 --- a/sw/source/ui/inc/inputwin.hxx +++ /dev/null @@ -1,135 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef SW_INPUTWIN_HXX -#define SW_INPUTWIN_HXX - -#include <vcl/edit.hxx> -#include <vcl/menu.hxx> -#include <vcl/toolbox.hxx> - -#include <sfx2/childwin.hxx> - -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; - SfxBindings* pBindings; - String aAktTableName, sOldFml; - sal_Int32 m_nActionCount; - - sal_Bool bFirst : 1; // initialisations at first call - sal_Bool bActive : 1; // for hide/show when switching documents - sal_Bool bIsTable : 1; - sal_Bool bDelSel : 1; - bool m_bDoesUndo : 1; - bool m_bResetUndo : 1; - bool m_bCallUndo : 1; - - void CleanupUglyHackWithUndo(); - - void DelBoxCntnt(); - DECL_LINK( ModifyHdl, InputEdit* ); - - using Window::IsActive; - -protected: - virtual void Resize(); - virtual void Click(); - DECL_LINK( MenuHdl, Menu * ); - DECL_LINK( DropdownClickHdl, ToolBox* ); - void ApplyFormula(); - void CancelFormula(); - -public: - SwInputWindow( Window* pParent, SfxBindings* pBindings ); - virtual ~SwInputWindow(); - - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - - void SelectHdl( ToolBox*); - - void ShowWin(); - - sal_Bool IsActive(){ return bActive; }; - - DECL_LINK( SelTblCellsNotify, SwWrtShell * ); - - void SetFormula( const String& rFormula, sal_Bool bDelSel = sal_True ); - const SwView* GetView() const{return pView;} -}; - -class SwInputChild : public SfxChildWindow -{ - sal_Bool bObjVis; - SfxDispatcher* pDispatch; -public: - SwInputChild( Window* , - sal_uInt16 nId, - SfxBindings*, - SfxChildWinInfo* ); - ~SwInputChild(); - SFX_DECL_CHILDWINDOW( SwInputChild ); - void SetFormula( const String& rFormula, sal_Bool bDelSel = sal_True ) - { ((SwInputWindow*)pWindow)->SetFormula( - rFormula, bDelSel ); } - const SwView* GetView() const{return ((SwInputWindow*)pWindow)->GetView();} - -}; - -//================================================================== - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/insfnote.hxx b/sw/source/ui/inc/insfnote.hxx deleted file mode 100644 index adf30f94f5..0000000000 --- a/sw/source/ui/inc/insfnote.hxx +++ /dev/null @@ -1,96 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _INSFNOTE_HXX -#define _INSFNOTE_HXX - -#include <svx/stddlg.hxx> - -#include <vcl/button.hxx> - -#include <vcl/edit.hxx> -#include <vcl/fixed.hxx> - -class SwWrtShell; - -class SwInsFootNoteDlg: public SvxStandardDialog -{ - SwWrtShell &rSh; - - // everything for the character(s) - String aFontName; - CharSet eCharSet; - char cExtChar; - sal_Bool bExtCharAvailable; - sal_Bool bEdit; - FixedLine aNumberFL; - RadioButton aNumberAutoBtn; - RadioButton aNumberCharBtn; - Edit aNumberCharEdit; - PushButton aNumberExtChar; - - // everything for the selection footnote/endnote - FixedLine aTypeFL; - RadioButton aFtnBtn; - RadioButton aEndNoteBtn; - - 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, sal_Bool bEd = sal_False); - ~SwInsFootNoteDlg(); - - CharSet GetCharSet() { return eCharSet; } - sal_Bool IsExtCharAvailable() { return bExtCharAvailable; } - String GetFontName() { return aFontName; } - sal_Bool IsEndNote() { return aEndNoteBtn.IsChecked(); } - String GetStr() - { - if ( aNumberCharBtn.IsChecked() ) - return aNumberCharEdit.GetText(); - else - return String(); - } -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/insrule.hxx b/sw/source/ui/inc/insrule.hxx deleted file mode 100644 index ae142650ea..0000000000 --- a/sw/source/ui/inc/insrule.hxx +++ /dev/null @@ -1,69 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _INSRULE_HXX -#define _INSRULE_HXX - -#include <vector> - -#include "num.hxx" - -class SwRulerValueSet; -class ValueSet; - -class SwInsertGrfRulerDlg : public SfxModalDialog -{ - FixedLine aSelectionFL; - OKButton aOkPB; - CancelButton aCancelPB; - HelpButton aHelpPB; - - std::vector<String> aGrfNames; - String sSimple; - String sRulers; - sal_uInt16 nSelPos; - - SwRulerValueSet* pExampleVS; - -protected: - DECL_LINK(SelectHdl, ValueSet*); - DECL_LINK(DoubleClickHdl, ValueSet*); - -public: - SwInsertGrfRulerDlg( Window* pParent ); - ~SwInsertGrfRulerDlg(); - - String GetGraphicName(); - sal_Bool IsSimpleLine() {return nSelPos == 1;} - sal_Bool HasImages() const {return !aGrfNames.empty();} -}; - -#endif - - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/instable.hxx b/sw/source/ui/inc/instable.hxx deleted file mode 100644 index afa0303108..0000000000 --- a/sw/source/ui/inc/instable.hxx +++ /dev/null @@ -1,95 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _INSTABLE_HXX -#define _INSTABLE_HXX - -#include <vcl/button.hxx> -#include <vcl/field.hxx> -#include <vcl/fixed.hxx> -#include <vcl/edit.hxx> -#include <sfx2/basedlgs.hxx> -#include <actctrl.hxx> -#include <textcontrolcombo.hxx> - -class SwWrtShell; -class SwTableAutoFmt; -class SwView; -struct SwInsertTableOptions; - - -class SwInsTableDlg : public SfxModalDialog -{ - FixedText aNameFT; - TableNameEdit aNameEdit; - - FixedLine aFL; - FixedText aColLbl; - NumericField aColEdit; - FixedText aRowLbl; - NumericField aRowEdit; - - FixedLine aOptionsFL; - CheckBox aHeaderCB; - CheckBox aRepeatHeaderCB; - FixedText aRepeatHeaderFT; // "dummy" to build before and after FT - FixedText aRepeatHeaderBeforeFT; - NumericField aRepeatHeaderNF; - FixedText aRepeatHeaderAfterFT; - TextControlCombo aRepeatHeaderCombo; - - CheckBox aDontSplitCB; - CheckBox aBorderCB; - - OKButton aOkBtn; - CancelButton aCancelBtn; - HelpButton aHelpBtn; - PushButton aAutoFmtBtn; - - SwWrtShell* pShell; - SwTableAutoFmt* pTAutoFmt; - sal_Int64 nEnteredValRepeatHeaderNF; - - DECL_LINK( ModifyName, Edit * ); - DECL_LINK( ModifyRowCol, NumericField * ); - DECL_LINK( AutoFmtHdl, PushButton* ); - DECL_LINK( CheckBoxHdl, CheckBox *pCB = 0 ); - DECL_LINK( ReapeatHeaderCheckBoxHdl, void* p = 0 ); - DECL_LINK( ModifyRepeatHeaderNF_Hdl, void* p = 0 ); - -public: - SwInsTableDlg( SwView& rView ); - ~SwInsTableDlg(); - - void GetValues( String& rName, sal_uInt16& rRow, sal_uInt16& rCol, - SwInsertTableOptions& rInsTblOpts, String& rTableAutoFmtName, - SwTableAutoFmt *& prTAFmt ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/javaedit.hxx b/sw/source/ui/inc/javaedit.hxx deleted file mode 100644 index 9a2f54c904..0000000000 --- a/sw/source/ui/inc/javaedit.hxx +++ /dev/null @@ -1,112 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SW_JAVAEDIT_HXX -#define _SW_JAVAEDIT_HXX - -// include --------------------------------------------------------------- - -#include <svx/stddlg.hxx> - -#include <vcl/fixed.hxx> - -#include <svtools/svmedit.hxx> - -#include <vcl/button.hxx> - -#include <vcl/button.hxx> - -class SwWrtShell; -class SwFldMgr; -class SwScriptField; - -namespace sfx2 { class FileDialogHelper; } - -// class SwJavaEditDialog ------------------------------------------------- - -class SwJavaEditDialog : public SvxStandardDialog -{ -private: - FixedText aTypeFT; - Edit aTypeED; - RadioButton aUrlRB; - RadioButton aEditRB; - PushButton aUrlPB; - Edit aUrlED; - MultiLineEdit aEditED; - FixedLine aPostItFL; - - OKButton aOKBtn; - CancelButton aCancelBtn; - ImageButton aPrevBtn; - ImageButton aNextBtn; - HelpButton aHelpBtn; - - String aText; - String aType; - - sal_Bool bNew; - sal_Bool bIsUrl; - - SwScriptField* pFld; - SwFldMgr* pMgr; - SwWrtShell* pSh; - sfx2::FileDialogHelper* pFileDlg; - Window* pOldDefDlgParent; - - DECL_LINK( OKHdl, Button* ); - DECL_LINK( PrevHdl, Button* ); - DECL_LINK( NextHdl, Button* ); - DECL_LINK( RadioButtonHdl, RadioButton* pBtn ); - DECL_LINK( InsertFileHdl, PushButton * ); - DECL_LINK( DlgClosedHdl, sfx2::FileDialogHelper * ); - - virtual void Apply(); - - void CheckTravel(); - void SetFld(); - - using Window::GetText; - using Window::GetType; - -public: - SwJavaEditDialog(Window* pParent, SwWrtShell* pWrtSh); - ~SwJavaEditDialog(); - - String GetText() { return aText; } - - String GetType() { return aType; } - - sal_Bool IsUrl() { return bIsUrl; } - sal_Bool IsNew() { return bNew; } - sal_Bool IsUpdate(); -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/label.hxx b/sw/source/ui/inc/label.hxx deleted file mode 100644 index 9a330e712c..0000000000 --- a/sw/source/ui/inc/label.hxx +++ /dev/null @@ -1,102 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _LABEL_HXX -#define _LABEL_HXX - -#ifndef _SVSTDARR_HXX -#define _SVSTDARR_STRINGSDTOR -#include <svl/svstdarr.hxx> -#endif -#include <sfx2/tabdlg.hxx> -#include <com/sun/star/frame/XModel.hpp> -#include <labelcfg.hxx> -#include <vector> - -class SwLabRec; -class SwLabRecs; -class SwLabItem; -class SwLabPrtPage; -class SwNewDBMgr; -class Printer; - -class SwLabDlg : public SfxTabDialog -{ - SwLabelConfig aLabelsCfg; - SwNewDBMgr* pNewDBMgr; - SwLabPrtPage* pPrtPage; - - std::vector<sal_uInt16> aTypeIds; - SvStringsDtor aMakes; - - SwLabRecs* pRecs; - String aLstGroup; - String sBusinessCardDlg; - String sFormat; - String sMedium; - sal_Bool m_bLabel; - void _ReplaceGroup( const String &rMake ); - - virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ); -public: - - SwLabDlg( Window* pParent, const SfxItemSet& rSet, - SwNewDBMgr* pNewDBMgr, sal_Bool bLabel); - ~SwLabDlg(); - - SwLabRec* GetRecord(const String &rRecName, sal_Bool bCont); - void GetLabItem(SwLabItem &rItem); - - SwLabRecs &Recs() { return *pRecs; } - const SwLabRecs &Recs() const { return *pRecs; } - - std::vector<sal_uInt16> &TypeIds() { return aTypeIds; } - const std::vector<sal_uInt16> &TypeIds() const { return aTypeIds; } - - SvStringsDtor &Makes() { return aMakes; } - const SvStringsDtor &Makes() const { return aMakes; } - - Printer *GetPrt(); - inline void ReplaceGroup( const String &rMake ); - void UpdateGroup( const String &rMake ) {_ReplaceGroup( rMake );} - static void UpdateFieldInformation(::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel>& xModel, - const SwLabItem& rItem); - const String& GetBusinessCardStr() const {return sBusinessCardDlg;} - - SwLabelConfig& GetLabelsConfig() {return aLabelsCfg;} - -}; - -inline void SwLabDlg::ReplaceGroup( const String &rMake ) -{ - if ( rMake != aLstGroup ) - _ReplaceGroup( rMake ); -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/labelcfg.hxx b/sw/source/ui/inc/labelcfg.hxx deleted file mode 100644 index f178c91fc8..0000000000 --- a/sw/source/ui/inc/labelcfg.hxx +++ /dev/null @@ -1,61 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _LABELCFG_HXX -#define _LABELCFG_HXX - -#include <unotools/configitem.hxx> -#include "swdllapi.h" - -class SwLabRecs; -class SwLabRec; - -class SW_DLLPUBLIC SwLabelConfig : public utl::ConfigItem -{ - com::sun::star::uno::Sequence<rtl::OUString> aNodeNames; - - SW_DLLPRIVATE com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); - -public: - SwLabelConfig(); - virtual ~SwLabelConfig(); - - virtual void Commit(); - virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); - - void FillLabels(const rtl::OUString& rManufacturer, SwLabRecs& rLabArr); - const com::sun::star::uno::Sequence<rtl::OUString>& - GetManufacturers() const {return aNodeNames;} - - sal_Bool HasLabel(const rtl::OUString& rManufacturer, const rtl::OUString& rType); - void SaveLabel(const rtl::OUString& rManufacturer, const rtl::OUString& rType, - const SwLabRec& rRec); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/labimg.hxx b/sw/source/ui/inc/labimg.hxx deleted file mode 100644 index 6dcc8c3a48..0000000000 --- a/sw/source/ui/inc/labimg.hxx +++ /dev/null @@ -1,132 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _LABIMG_HXX -#define _LABIMG_HXX - -#include <svl/poolitem.hxx> -#include <unotools/configitem.hxx> -#include "swdllapi.h" - -// class SwLabItem ---------------------------------------------------------- -class SwLabCfgItem; - -class SW_DLLPUBLIC 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; - - rtl::OUString aLstMake; // remember last selection - rtl::OUString aLstType; - rtl::OUString sDBName; // used database - - rtl::OUString aWriting; // label - rtl::OUString aMake; // label mark - rtl::OUString aType; // label type - rtl::OUString aBin; // printer shaft - sal_Int32 lHDist; // horizontal distance (user) - sal_Int32 lVDist; // vertical distance (user) - sal_Int32 lWidth; // width (user) - sal_Int32 lHeight; // height (user) - sal_Int32 lLeft; // left border (user) - sal_Int32 lUpper; // upper border (user) - sal_Int32 nCols; // number of columns (user) - sal_Int32 nRows; // number of rows (user) - sal_Int32 nCol; // column for single print - sal_Int32 nRow; // row for single print - sal_Bool bAddr;// adress as label? - sal_Bool bCont;// continuous paper? - sal_Bool bPage;// whole page or single labels? - sal_Bool bSynchron;// synchronise all labels - - //parts of the business card - rtl::OUString aPrivFirstName; - rtl::OUString aPrivName; - rtl::OUString aPrivShortCut; - rtl::OUString aPrivFirstName2; - rtl::OUString aPrivName2; - rtl::OUString aPrivShortCut2; - rtl::OUString aPrivStreet; - rtl::OUString aPrivZip; - rtl::OUString aPrivCity; - rtl::OUString aPrivCountry; - rtl::OUString aPrivState; - rtl::OUString aPrivTitle; - rtl::OUString aPrivProfession; - rtl::OUString aPrivPhone; - rtl::OUString aPrivMobile; - rtl::OUString aPrivFax; - rtl::OUString aPrivWWW; - rtl::OUString aPrivMail; - rtl::OUString aCompCompany; - rtl::OUString aCompCompanyExt; - rtl::OUString aCompSlogan; - rtl::OUString aCompStreet; - rtl::OUString aCompZip; - rtl::OUString aCompCity; - rtl::OUString aCompCountry; - rtl::OUString aCompState; - rtl::OUString aCompPosition; - rtl::OUString aCompPhone; - rtl::OUString aCompMobile; - rtl::OUString aCompFax; - rtl::OUString aCompWWW; - rtl::OUString aCompMail; - - rtl::OUString sGlossaryGroup; - rtl::OUString sGlossaryBlockName; -}; - -// class SwLabCfgItem ------------------------------------------------------- -class SwLabCfgItem : public utl::ConfigItem -{ - SwLabItem aItem; - sal_Bool bIsLabel; - - com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); -public: - SwLabCfgItem(sal_Bool bLabel); - - SwLabItem& GetItem() {return aItem;} - - virtual void Commit(); - virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/langhelper.hxx b/sw/source/ui/inc/langhelper.hxx deleted file mode 100644 index 9d2b8306a7..0000000000 --- a/sw/source/ui/inc/langhelper.hxx +++ /dev/null @@ -1,71 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWLANGHELPER_HXX -#define _SWLANGHELPER_HXX - -class SwWrtShell; -class SwView; -class EditEngine; -class EditView; -class OutlinerView; -class SfxItemSet; -struct ESelection; - -namespace SwLangHelper -{ - extern sal_uInt16 GetLanguageStatus( OutlinerView* pOLV, SfxItemSet& rSet ); - extern bool SetLanguageStatus( OutlinerView* pOLV, SfxRequest &rReq, SwView &rView, SwWrtShell &rSh ); - - extern void SetLanguage( SwWrtShell &rWrtSh, const String &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet ); -// extern void SetLanguage( SwWrtShell &rWrtSh, EditEngine* pEditEngine, ESelection aSelection, const String &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet ); - extern void SetLanguage( SwWrtShell &rWrtSh, OutlinerView* pOLV, ESelection aSelection, const String &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet ); - extern void SetLanguage_None( SwWrtShell &rWrtSh, bool bIsForSelection, SfxItemSet &rCoreSet ); -// extern void SetLanguage_None( SwWrtShell &rWrtSh, EditEngine* pEditEngine, ESelection aSelection, bool bIsForSelection, SfxItemSet &rCoreSet ); - extern void SetLanguage_None( SwWrtShell &rWrtSh, OutlinerView* pOLV, ESelection aSelection, bool bIsForSelection, SfxItemSet &rCoreSet ); - extern void ResetLanguages( SwWrtShell &rWrtSh, bool bIsForSelection ); -// extern void ResetLanguages( SwWrtShell &rWrtSh, EditEngine* pEditEngine, ESelection aSelection, bool bIsForSelection ); - extern void ResetLanguages( SwWrtShell &rWrtSh, OutlinerView* pOLV, ESelection aSelection, bool bIsForSelection ); - - // document - extern void SelectCurrentPara( SwWrtShell &rWrtSh ); - // EditView - extern void SelectPara( EditView &rEditView, const ESelection &rCurSel ); - - extern String GetTextForLanguageGuessing( EditEngine* rEditEngine, ESelection aDocSelection ); - extern String GetTextForLanguageGuessing( SwWrtShell &rSh ); - - extern LanguageType GetLanguage( SfxItemSet aSet, sal_uInt16 nLangWhichId ); - extern LanguageType GetLanguage( SwWrtShell &rSh, sal_uInt16 nLangWhichId ); - - extern LanguageType GetCurrentLanguage( SfxItemSet aSet, sal_uInt16 nScriptType ); - extern LanguageType GetCurrentLanguage( SwWrtShell &rSh ); -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/linenum.hxx b/sw/source/ui/inc/linenum.hxx deleted file mode 100644 index ba2ac59548..0000000000 --- a/sw/source/ui/inc/linenum.hxx +++ /dev/null @@ -1,107 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWLINENUM_HXX -#define _SWLINENUM_HXX - -#include <sfx2/basedlgs.hxx> -#include <sfx2/tabdlg.hxx> -#include <vcl/fixed.hxx> -#include <vcl/field.hxx> -#include <numberingtypelistbox.hxx> - -#include <vcl/lstbox.hxx> - -class Window; -class SfxItemSet; -class SwView; -class SwWrtShell; - -/*-------------------------------------------------------------------- - Description: SingleTabDialog - --------------------------------------------------------------------*/ -class SwLineNumberingDlg : public SfxSingleTabDialog -{ - SwWrtShell* pSh; - - DECL_LINK( OKHdl, Button * ); - -public: - inline SwWrtShell* GetWrtShell() const { return pSh; } - - SwLineNumberingDlg(SwView *pVw); - ~SwLineNumberingDlg(); -}; - -/*-------------------------------------------------------------------- - Description: TabPage - --------------------------------------------------------------------*/ -class SwLineNumberingPage : public SfxTabPage -{ - CheckBox aNumberingOnCB; - FixedLine aDisplayFL; - FixedText aCharStyleFT; - ListBox aCharStyleLB; - FixedText aFormatFT; - SwNumberingTypeListBox aFormatLB; - FixedText aPosFT; - ListBox aPosLB; - FixedText aOffsetFT; - MetricField aOffsetMF; - FixedText aNumIntervalFT; - NumericField aNumIntervalNF; - FixedText aNumRowsFT; - FixedLine aDivisorFL; - FixedText aDivisorFT; - Edit aDivisorED; - FixedText aDivIntervalFT; - NumericField aDivIntervalNF; - FixedText aDivRowsFT; - FixedLine aCountFL; - CheckBox aCountEmptyLinesCB; - CheckBox aCountFrameLinesCB; - CheckBox aRestartEachPageCB; - - 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 sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/listsh.hxx b/sw/source/ui/inc/listsh.hxx deleted file mode 100644 index 939f3cc6ef..0000000000 --- a/sw/source/ui/inc/listsh.hxx +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/macassgn.hxx b/sw/source/ui/inc/macassgn.hxx deleted file mode 100644 index e1329564c4..0000000000 --- a/sw/source/ui/inc/macassgn.hxx +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _MACASSGN_HXX -#define _MACASSGN_HXX - -#include <sfx2/evntconf.hxx> - -class SwWrtShell; -class SvxMacroItem; - -enum DlgEventType -{ - MACASSGN_AUTOTEXT, - MACASSGN_GRAPHIC, - MACASSGN_OLE, - MACASSGN_FRMURL, - MACASSGN_INETFMT, - MACASSGN_ALLFRM -}; - -class SwMacroAssignDlg -{ -public: - static SfxEventNamesItem AddEvents( DlgEventType eType ); - static sal_Bool INetFmtDlg( Window* pParent, SwWrtShell& rSh, - SvxMacroItem*& rpINetItem ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/mailconfigpage.hxx b/sw/source/ui/inc/mailconfigpage.hxx deleted file mode 100644 index 7bdc45b6c9..0000000000 --- a/sw/source/ui/inc/mailconfigpage.hxx +++ /dev/null @@ -1,99 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _MAILCONFIGPAGE_HXX -#define _MAILCONFIGPAGE_HXX - -#include <sfx2/tabdlg.hxx> -#include <vcl/button.hxx> -#include <vcl/lstbox.hxx> -#include <vcl/field.hxx> -#include <vcl/fixed.hxx> -#include <sfx2/basedlgs.hxx> - -class SwTestAccountSettingsDialog; -class SwMailMergeConfigItem; - -class SwMailConfigPage : public SfxTabPage -{ - friend class SwTestAccountSettingsDialog; - - FixedLine m_aIdentityFL; - - FixedText m_aDisplayNameFT; - Edit m_aDisplayNameED; - FixedText m_aAddressFT; - Edit m_aAddressED; - - CheckBox m_aReplyToCB; - FixedText m_aReplyToFT; - Edit m_aReplyToED; - - FixedLine m_aSMTPFL; - - FixedText m_aServerFT; - Edit m_aServerED; - FixedText m_aPortFT; - NumericField m_aPortNF; - - CheckBox m_aSecureCB; - - PushButton m_aServerAuthenticationPB; - - FixedLine m_aSeparatorFL; - PushButton m_aTestPB; - - SwMailMergeConfigItem* m_pConfigItem; - - DECL_LINK(ReplyToHdl, CheckBox*); - DECL_LINK(AuthenticationHdl, PushButton*); - DECL_LINK(TestHdl, PushButton*); - - -public: - SwMailConfigPage( Window* pParent, const SfxItemSet& rSet ); - ~SwMailConfigPage(); - - static SfxTabPage* Create( Window* pParent, - const SfxItemSet& rAttrSet); - - virtual sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); - -}; - -class SwMailConfigDlg : public SfxSingleTabDialog -{ -public: - - SwMailConfigDlg( Window* pParent, SfxItemSet& rSet ); - ~SwMailConfigDlg(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/maildispatcher.hxx b/sw/source/ui/inc/maildispatcher.hxx deleted file mode 100644 index 5e1ec61335..0000000000 --- a/sw/source/ui/inc/maildispatcher.hxx +++ /dev/null @@ -1,168 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef INCLUDED_MAILDISPATCHER_HXX -#define INCLUDED_MAILDISPATCHER_HXX - -#include "com/sun/star/mail/XSmtpService.hpp" -#include "com/sun/star/mail/XMailMessage.hpp" -#include <osl/thread.hxx> -#include <osl/conditn.hxx> -#include <salhelper/refobj.hxx> - -#include <list> - -class IMailDispatcherListener; - -/** - A MailDispatcher should be used for sending a bunch a mail messages - asynchronously. Usually a client enqueues a number of mail messages - and then calls start to begin sending them. An instance of this class - must not be shared among different client threads. Instead each client - thread should create an own instance of this class. -*/ -class MailDispatcher : public ::salhelper::ReferenceObject, private ::osl::Thread -{ -public: - // bringing operator new/delete into scope - using osl::Thread::operator new; - using osl::Thread::operator delete; - using osl::Thread::join; - -public: - - /** - @param xSmtpService - [in] a reference to a mail server. A user must be - connected to the mail server otherwise errors occur - during the delivery of mail messages. - - @throws ::com::sun::star::uno::RuntimeException - on errors during construction of an instance of this class. - */ - MailDispatcher(::com::sun::star::uno::Reference< ::com::sun::star::mail::XSmtpService> xMailService); - - /** - Shutdown the mail dispatcher. Every mail messages - not yet sent will be discarded. - */ - virtual ~MailDispatcher(); - - /** - Enqueue a mail message for delivery. A client must - start the mail dispatcher in order to send the - enqueued mail messages. - - @param xMailMessage - [in] a mail message that should be send. - */ - void enqueueMailMessage(::com::sun::star::uno::Reference< ::com::sun::star::mail::XMailMessage> xMailMessage); - /** - Dequeues a mail message. - This enables the caller to remove attachments when sending mails is to be cancelled. - */ - ::com::sun::star::uno::Reference< ::com::sun::star::mail::XMailMessage> dequeueMailMessage(); - - /** - Start sending mail messages asynchronously. A client may register - a listener for mail dispatcher events. For every mail message sent - the notification will be sent. While handling such notification a - client may enqueue new mail messages. If there are no more mail - messages to send an respective notification is sent and the mail - dispatcher waits for more mail messages. - - @precond not isStarted() - */ - void start(); - - /** - Stop sending mail messages. - - @precond isStarted() - */ - void stop(); - - /** - Request shutdown of the mail dispatcher thread. - NOTE: You must call this method before you release - your last reference to this class otherwise the - mail dispatcher thread will never end. - */ - void shutdown(); - - /** - Check whether the mail dispatcher is started or not. - - @return - <TRUE/> if the sending thread is running. - */ - bool isStarted() const; - - /** returns if the thread is still running - */ - using osl::Thread::isRunning; - - /** returns if shutdown has already been called - */ - bool isShutdownRequested() const - { return shutdown_requested_; } - /** - Register a listener for mail dispatcher events. - */ - void addListener(::rtl::Reference<IMailDispatcherListener> listener); - - /** - Unregister a listener for mail dispatcher events - */ - void removeListener(::rtl::Reference<IMailDispatcherListener> listener); - -protected: - virtual void SAL_CALL run(); - virtual void SAL_CALL onTerminated(); - -private: - std::list< ::rtl::Reference<IMailDispatcherListener> > cloneListener(); - void sendMailMessageNotifyListener(::com::sun::star::uno::Reference< ::com::sun::star::mail::XMailMessage> message); - -private: - ::com::sun::star::uno::Reference< ::com::sun::star::mail::XSmtpService> mailserver_; - ::std::list< ::com::sun::star::uno::Reference< ::com::sun::star::mail::XMailMessage > > messages_; - ::std::list< ::rtl::Reference<IMailDispatcherListener> > listeners_; - ::osl::Mutex message_container_mutex_; - ::osl::Mutex listener_container_mutex_; - ::osl::Mutex thread_status_mutex_; - ::osl::Condition mail_dispatcher_active_; - ::osl::Condition wakening_call_; - ::rtl::Reference<MailDispatcher> m_xSelfReference; - bool run_; - bool shutdown_requested_; -}; - -#endif // INCLUDED_MAILDISPATCHER_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/mailmergechildwindow.hxx b/sw/source/ui/inc/mailmergechildwindow.hxx deleted file mode 100644 index 83a9420f86..0000000000 --- a/sw/source/ui/inc/mailmergechildwindow.hxx +++ /dev/null @@ -1,63 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWMAILMERGECHILDWINDOW_HXX -#define _SWMAILMERGECHILDWINDOW_HXX -#include <sfx2/childwin.hxx> -#include <sfx2/basedlgs.hxx> -#include <vcl/toolbox.hxx> -#include "swdllapi.h" - -class SwMailMergeChildWin : public SfxFloatingWindow -{ - ToolBox m_aBackTB; - - DECL_LINK( BackHdl, ToolBox* ); - -public: - SwMailMergeChildWin(SfxBindings*, SfxChildWindow*, Window *pParent); - ~SwMailMergeChildWin(); - - virtual void FillInfo(SfxChildWinInfo&) const; -}; - -class SwSendMailDialog; - -class SwMailMergeChildWindow : public SfxChildWindow -{ -public: - SwMailMergeChildWindow( Window* , - sal_uInt16 nId, - SfxBindings*, - SfxChildWinInfo* ); - - SFX_DECL_CHILDWINDOW( SwMailMergeChildWindow ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/mailmergehelper.hxx b/sw/source/ui/inc/mailmergehelper.hxx deleted file mode 100644 index 35e1c8c297..0000000000 --- a/sw/source/ui/inc/mailmergehelper.hxx +++ /dev/null @@ -1,331 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _MAILMERGEHELPER_HXX -#define _MAILMERGEHELPER_HXX - -#include <svtools/stdctrl.hxx> -#include <unotools/configitem.hxx> -#include <com/sun/star/uno/Sequence.h> -#include "com/sun/star/mail/XAuthenticator.hpp" -#include "com/sun/star/mail/XConnectionListener.hpp" -#include "com/sun/star/uno/XCurrentContext.hpp" -#include "com/sun/star/mail/XMailMessage.hpp" -#include "com/sun/star/datatransfer/XTransferable.hpp" -#include <com/sun/star/beans/XPropertySet.hpp> -#include <cppuhelper/implbase1.hxx> -#include <cppuhelper/compbase1.hxx> -#include <cppuhelper/compbase2.hxx> -#include <vcl/scrbar.hxx> -#include "swdllapi.h" - -class SwMailMergeConfigItem; - -namespace com{ namespace sun{ namespace star{ - namespace uno{ - class XComponentContext; - } - namespace lang{ - class XMultiServiceFactory; - } - namespace mail{ - class XSmtpService; - class XMailService; - } -}}} - -namespace SwMailMergeHelper -{ - SW_DLLPUBLIC String CallSaveAsDialog(String& rFilter); - SW_DLLPUBLIC bool CheckMailAddress( const ::rtl::OUString& rMailAddress ); - SW_DLLPUBLIC com::sun::star::uno::Reference< com::sun::star::mail::XSmtpService > - ConnectToSmtpServer( SwMailMergeConfigItem& rConfigItem, - com::sun::star::uno::Reference< com::sun::star::mail::XMailService >& xInMailService, - const String& rInMailServerPassword, - const String& rOutMailServerPassword, - Window* pDialogParentWindow = 0 ); -} - -class SW_DLLPUBLIC SwBoldFixedInfo : public FixedInfo -{ -public: - SwBoldFixedInfo(Window* pParent, const ResId& rResId); - ~SwBoldFixedInfo(); -}; -struct SwAddressPreview_Impl; -namespace com{namespace sun{namespace star{ - namespace container{ - class XNameAccess; - } -}}} - -/*------------------------------------------------------------------------- - Preview window used to show the possible selection of address blocks - and also the resulting address filled with database data - -----------------------------------------------------------------------*/ -class SW_DLLPUBLIC SwAddressPreview : public Window -{ - ScrollBar aVScrollBar; - SwAddressPreview_Impl* pImpl; - Link m_aSelectHdl; - - void DrawText_Impl( const ::rtl::OUString& rAddress, const Point& rTopLeft, const Size& rSize, bool bIsSelected); - - virtual void Paint(const Rectangle&); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void KeyInput( const KeyEvent& rKEvt ); - virtual void StateChanged( StateChangedType nStateChange ); - void UpdateScrollBar(); - - DECL_LINK(ScrollHdl, ScrollBar*); - -public: - SwAddressPreview(Window* pParent, const ResId rResId); - ~SwAddressPreview(); - - /** The address string is a list of address elements separated by spaces - and breaks. The addresses fit into the given layout. If more addresses then - rows/columns should be used a scrollbar will be added. - - AddAddress appends the new address to the already added ones. - Initially the first added address will be selected - */ - void AddAddress(const ::rtl::OUString& rAddress); - // for preview mode - replaces the currently used address by the given one - void SetAddress(const ::rtl::OUString& rAddress); - // removes all addresses - void Clear(); - - // returns the selected address - sal_uInt16 GetSelectedAddress() const; - void SelectAddress(sal_uInt16 nSelect); - void ReplaceSelectedAddress(const ::rtl::OUString&); - void RemoveSelectedAddress(); - - // set the number of rows and columns of addresses - void SetLayout(sal_uInt16 nRows, sal_uInt16 nColumns); - void EnableScrollBar(bool bEnable = true); - - // fill the actual data into a string (address block or greeting) - static String FillData( - const ::rtl::OUString& rAddress, - SwMailMergeConfigItem& rConfigItem, - const ::com::sun::star::uno::Sequence< ::rtl::OUString>* pAssignments = 0); - - void SetSelectHdl (const Link& rLink) {m_aSelectHdl = rLink;} -}; - -/*------------------------------------------------------------------------- - iterate over an address block or a greeting line - the iterator returns the parts either as pure string - or as column - -----------------------------------------------------------------------*/ -struct SwMergeAddressItem -{ - String sText; - bool bIsColumn; - bool bIsReturn; - SwMergeAddressItem() : - bIsColumn(false), - bIsReturn(false) {} -}; - -class SW_DLLPUBLIC SwAddressIterator -{ - String sAddress; -public: - SwAddressIterator(const String& rAddress) : - sAddress(rAddress){} - - SwMergeAddressItem Next(); - bool HasMore() const{return sAddress.Len() > 0;} -}; - -class SW_DLLPUBLIC SwAuthenticator : - public cppu::WeakImplHelper1< ::com::sun::star::mail::XAuthenticator> -{ - ::rtl::OUString m_aUserName; - ::rtl::OUString m_aPassword; - Window* m_pParentWindow; -public: - SwAuthenticator() : m_pParentWindow(0) {} - SwAuthenticator(const ::rtl::OUString& username, const ::rtl::OUString& password, Window* pParent) : - m_aUserName(username), - m_aPassword(password), - m_pParentWindow( pParent ) - {} - ~SwAuthenticator(); - - virtual ::rtl::OUString SAL_CALL getUserName( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getPassword( ) throw (::com::sun::star::uno::RuntimeException); - -}; - -class SW_DLLPUBLIC SwConnectionContext : - public cppu::WeakImplHelper1< ::com::sun::star::uno::XCurrentContext > -{ - ::rtl::OUString m_sMailServer; - sal_Int16 m_nPort; - ::rtl::OUString m_sConnectionType; - -public: - SwConnectionContext(const ::rtl::OUString& rMailServer, sal_Int16 nPort, const ::rtl::OUString& rConnectionType); - ~SwConnectionContext(); - - virtual ::com::sun::star::uno::Any SAL_CALL getValueByName( const ::rtl::OUString& Name ) - throw (::com::sun::star::uno::RuntimeException); -}; - -class SwMutexBase -{ -public: - osl::Mutex m_aMutex; -}; - -class SW_DLLPUBLIC SwConnectionListener : - public SwMutexBase, - public cppu::WeakComponentImplHelper1< ::com::sun::star::mail::XConnectionListener > -{ - using cppu::WeakComponentImplHelperBase::disposing; - -public: - SwConnectionListener() : - cppu::WeakComponentImplHelper1< ::com::sun::star::mail::XConnectionListener>(m_aMutex) - {} - ~SwConnectionListener(); - - virtual void SAL_CALL connected(const ::com::sun::star::lang::EventObject& aEvent) - throw (::com::sun::star::uno::RuntimeException); - - virtual void SAL_CALL disconnected(const ::com::sun::star::lang::EventObject& aEvent) - throw (::com::sun::star::uno::RuntimeException); - - virtual void SAL_CALL disposing(const com::sun::star::lang::EventObject& aEvent) - throw(com::sun::star::uno::RuntimeException); -}; - -class SwMailTransferable : - public SwMutexBase, - public cppu::WeakComponentImplHelper2 - < - ::com::sun::star::datatransfer::XTransferable, - ::com::sun::star::beans::XPropertySet - > -{ - rtl::OUString m_aMimeType; - rtl::OUString m_sBody; - rtl::OUString m_aURL; - rtl::OUString m_aName; - bool m_bIsBody; - - public: - SwMailTransferable(const rtl::OUString& rURL, const rtl::OUString& rName, const rtl::OUString& rMimeType); - SwMailTransferable(const rtl::OUString& rBody, const rtl::OUString& rMimeType); - ~SwMailTransferable(); - virtual ::com::sun::star::uno::Any SAL_CALL - getTransferData( const ::com::sun::star::datatransfer::DataFlavor& aFlavor ) - throw (::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL - getTransferDataFlavors( ) - throw (::com::sun::star::uno::RuntimeException) ; - virtual ::sal_Bool SAL_CALL - isDataFlavorSupported( const ::com::sun::star::datatransfer::DataFlavor& aFlavor ) - 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); - -}; - -class SwMailMessage : - public SwMutexBase, - public cppu::WeakComponentImplHelper1< ::com::sun::star::mail::XMailMessage > -{ - ::rtl::OUString m_sSenderName; - ::rtl::OUString m_sSenderAddress; - ::rtl::OUString m_sReplyToAddress; - ::rtl::OUString m_sSubject; - - ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable> m_xBody; -// ::com::sun::star::mail::MailMessageBody m_aBody; - - ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aRecipients; - ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aCcRecipients; - ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aBccRecipients; -// ::com::sun::star::uno::Sequence< ::com::sun::star::mail::MailAttachmentDescriptor > m_aAttachments; - ::com::sun::star::uno::Sequence< ::com::sun::star::mail::MailAttachment > m_aAttachments; -public: - SwMailMessage(); - ~SwMailMessage(); - - // attributes - virtual ::rtl::OUString SAL_CALL getSenderName() throw (::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getSenderAddress() throw (::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getReplyToAddress() throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setReplyToAddress( const ::rtl::OUString& _replytoaddress ) throw (::com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL getSubject() throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setSubject( const ::rtl::OUString& _subject ) throw (::com::sun::star::uno::RuntimeException); - - virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL - getBody() - throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setBody( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& _body ) - throw (::com::sun::star::uno::RuntimeException); - - // methods - virtual void SAL_CALL addRecipient( const ::rtl::OUString& sRecipientAddress ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL addCcRecipient( const ::rtl::OUString& sRecipientAddress ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL addBccRecipient( const ::rtl::OUString& sRecipientAddress ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL - getRecipients( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL - getCcRecipients( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL - getBccRecipients( ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL addAttachment( const ::com::sun::star::mail::MailAttachment& aMailAttachment ) - throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::mail::MailAttachment > SAL_CALL - getAttachments( ) throw (::com::sun::star::uno::RuntimeException); - void SetSenderName(const ::rtl::OUString& rSenderName) - {m_sSenderName = rSenderName;} - void SetSenderAddress(const ::rtl::OUString& rSenderAddress) - {m_sSenderAddress = rSenderAddress;} -}; - -SW_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext> - getCurrentCmpCtx( - ::com::sun::star::uno::Reference< - ::com::sun::star::lang::XMultiServiceFactory> rSrvMgr); -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/mailmergewizard.hxx b/sw/source/ui/inc/mailmergewizard.hxx deleted file mode 100644 index da0e68442b..0000000000 --- a/sw/source/ui/inc/mailmergewizard.hxx +++ /dev/null @@ -1,105 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _MAILMERGEWIZARD_HXX -#define _MAILMERGEWIZARD_HXX - -#include <svtools/roadmapwizard.hxx> - -class SwView; -class SwMailMergeConfigItem; - -#define MM_DOCUMENTSELECTPAGE 0 -#define MM_OUTPUTTYPETPAGE 1 -#define MM_ADDRESSBLOCKPAGE 2 -#define MM_GREETINGSPAGE 3 -#define MM_LAYOUTPAGE 4 -#define MM_PREPAREMERGEPAGE 5 -#define MM_MERGEPAGE 6 -#define MM_OUTPUTPAGE 7 - -class SwMailMergeWizard : public ::svt::RoadmapWizard -{ - SwView* m_pSwView; - String sDocumentURL; - bool m_bDocumentLoad; - - SwMailMergeConfigItem& m_rConfigItem; - - String m_sStarting; - String m_sDocumentType; - String m_sAddressBlock; - String m_sAddressList; - String m_sGreetingsLine; - String m_sLayout; - String m_sPrepareMerge; - String m_sMerge; - String m_sOutput; - String m_sFinish; - - sal_uInt16 m_nRestartPage; - - using svt::OWizardMachine::skipUntil; - -protected: - virtual svt::OWizardPage* createPage(WizardState _nState); - virtual void enterState( WizardState _nState ); - -// roadmap feature ?? -// virtual sal_Bool prepareLeaveCurrentState( CommitPageReason _eReason ); - virtual String getStateDisplayName( WizardState _nState ) const; - -public: - SwMailMergeWizard(SwView& rView, SwMailMergeConfigItem& rConfigItem); - ~SwMailMergeWizard(); - - SwView* GetSwView() {return m_pSwView;} - SwMailMergeConfigItem& GetConfigItem() { return m_rConfigItem;} - - void SetReloadDocument(const String& rURL){sDocumentURL = rURL;} - const String& GetReloadDocument() const {return sDocumentURL;} - - //next step requires loading of document - void SetDocumentLoad(bool bSet) {m_bDocumentLoad = bSet;} - - void UpdateRoadmap(); - void CreateTargetDocument(); - - sal_uInt16 GetRestartPage() const {return m_nRestartPage;} - void SetRestartPage(sal_uInt16 nPage) { m_nRestartPage = nPage;} - - sal_Bool skipUntil( sal_uInt16 nPage) - {return ::svt::RoadmapWizard::skipUntil(WizardState(nPage));} - - void updateRoadmapItemLabel( WizardState _nState ); - - virtual short Execute(); - virtual void StartExecuteModal( const Link& rEndDialogHdl ); -}; -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/mailmrge.hxx b/sw/source/ui/inc/mailmrge.hxx deleted file mode 100644 index b018a79830..0000000000 --- a/sw/source/ui/inc/mailmrge.hxx +++ /dev/null @@ -1,198 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _MAILMRGE_HXX -#define _MAILMRGE_HXX - -#include <svx/stddlg.hxx> - -#include <vcl/button.hxx> - -#include <vcl/field.hxx> - -#include <vcl/fixed.hxx> -#include <vcl/edit.hxx> -#include <svtools/stdctrl.hxx> - -#include <vcl/lstbox.hxx> -#include <com/sun/star/uno/Sequence.h> -#include <com/sun/star/uno/Reference.h> - -class SwWrtShell; -class SwModuleOptions; -class SwXSelChgLstnr_Impl; -struct SwMailMergeDlg_Impl; -namespace com{namespace sun{namespace star{ - namespace frame{ - class XFrame; - } - namespace sdbc{ - class XResultSet; - class XConnection; - } -}}} - -class SwMailMergeDlg : public SvxStandardDialog -{ - friend class SwXSelChgLstnr_Impl; - - Window* pBeamerWin; - - RadioButton aAllRB; - RadioButton aMarkedRB; - RadioButton aFromRB; - NumericField aFromNF; - FixedText aBisFT; - NumericField aToNF; - FixedLine aRecordFL; - - FixedLine aSeparatorFL; - - RadioButton aPrinterRB; - RadioButton aMailingRB; - RadioButton aFileRB; - - CheckBox aSingleJobsCB; - - FixedLine aSaveMergedDocumentFL; - RadioButton aSaveSingleDocRB; - RadioButton aSaveIndividualRB; - - CheckBox aGenerateFromDataBaseCB; - - FixedText aColumnFT; - ListBox aColumnLB; - FixedText aPathFT; - Edit aPathED; - PushButton aPathPB; - FixedText aFilterFT; - ListBox aFilterLB; - - ListBox aAddressFldLB; - FixedText aSubjectFT; - Edit aSubjectED; - FixedText aFormatFT; - FixedText aAttachFT; - Edit aAttachED; - PushButton aAttachPB; - CheckBox aFormatHtmlCB; - CheckBox aFormatRtfCB; - CheckBox aFormatSwCB; - FixedLine aDestFL; - - FixedLine aBottomSeparatorFL; - - OKButton aOkBTN; - CancelButton aCancelBTN; - HelpButton aHelpBTN; - - SwMailMergeDlg_Impl* pImpl; - - SwWrtShell& rSh; - SwModuleOptions* pModOpt; - const String& rDBName; - const String& rTableName; - - sal_uInt16 nMergeType; - ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > m_aSelection; - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > xFrame; - - Size m_aDialogSize; - ::rtl::OUString m_sSaveFilter; - - - DECL_LINK( ButtonHdl, Button* pBtn ); - DECL_LINK( InsertPathHdl, PushButton * ); - DECL_LINK( AttachFileHdl, PushButton * ); - DECL_LINK( OutputTypeHdl, RadioButton* pBtn ); - DECL_LINK( FilenameHdl, CheckBox* pBtn ); - DECL_LINK( ModifyHdl, NumericField* pLB ); - DECL_LINK( SaveTypeHdl, RadioButton* pBtn ); - - virtual void Apply(); - virtual void Resize(); - bool ExecQryShell(); - -public: - SwMailMergeDlg(Window* pParent, SwWrtShell& rSh, - const String& rSourceName, - const String& rTblName, - sal_Int32 nCommandType, - const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& xConnection, - ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >* pSelection = 0); - ~SwMailMergeDlg(); - - inline sal_uInt16 GetMergeType() { return nMergeType; } - - bool IsSaveIndividualDocs() const { return aSaveIndividualRB.IsChecked(); } - bool IsGenerateFromDataBase() const { return aGenerateFromDataBaseCB.IsChecked(); } - String GetColumnName() const { return aColumnLB.GetSelectEntry();} - String GetPath() const { return aPathED.GetText();} - - const ::rtl::OUString& GetSaveFilter() const {return m_sSaveFilter;} - inline const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > GetSelection() const { return m_aSelection; } - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet> GetResultSet() const; - -}; - -class SwMailMergeCreateFromDlg : public ModalDialog -{ - FixedLine aCreateFromFL; - RadioButton aThisDocRB; - RadioButton aUseTemplateRB; - - OKButton aOK; - CancelButton aCancel; - HelpButton aHelp; -public: - SwMailMergeCreateFromDlg(Window* pParent); - ~SwMailMergeCreateFromDlg(); - - sal_Bool IsThisDocument() const {return aThisDocRB.IsChecked();} -}; - -class SwMailMergeFieldConnectionsDlg : public ModalDialog -{ - FixedLine aConnectionsFL; - RadioButton aUseExistingRB; - RadioButton aCreateNewRB; - - FixedInfo aInfoFI; - - OKButton aOK; - CancelButton aCancel; - HelpButton aHelp; -public: - SwMailMergeFieldConnectionsDlg(Window* pParent); - ~SwMailMergeFieldConnectionsDlg(); - - sal_Bool IsUseExistingConnections() const {return aUseExistingRB.IsChecked();} -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/mediash.hxx b/sw/source/ui/inc/mediash.hxx deleted file mode 100644 index f90a18d551..0000000000 --- a/sw/source/ui/inc/mediash.hxx +++ /dev/null @@ -1,46 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWMEDIASH_HXX -#define _SWMEDIASH_HXX - -#include "frmsh.hxx" - -class SwMediaShell: public SwBaseShell -{ -public: - SFX_DECL_INTERFACE(SW_MEDIASHELL) - - void ExecMedia(SfxRequest &); - void GetMediaState(SfxItemSet &); - - SwMediaShell(SwView &rView); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/mergetbl.hxx b/sw/source/ui/inc/mergetbl.hxx deleted file mode 100644 index 81cc96de77..0000000000 --- a/sw/source/ui/inc/mergetbl.hxx +++ /dev/null @@ -1,57 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _MERGETBL_HXX -#define _MERGETBL_HXX - -#include <vcl/button.hxx> - -#include <vcl/fixed.hxx> -#include <svx/stddlg.hxx> - - -class SwMergeTblDlg : public SvxStandardDialog -{ - OKButton aOKPB; - CancelButton aCancelPB; - HelpButton aHelpPB; - FixedLine aMergeFL; - RadioButton aMergePrevRB; - RadioButton aMergeNextRB; - - sal_Bool& rMergePrev; -protected: - virtual void Apply(); - -public: - SwMergeTblDlg( Window *pParent, sal_Bool& rWithPrev ); -}; - -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/misc.hrc b/sw/source/ui/inc/misc.hrc deleted file mode 100644 index 6e71237edf..0000000000 --- a/sw/source/ui/inc/misc.hrc +++ /dev/null @@ -1,107 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#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_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 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 STRRES_NUMTYPES (RC_MISC_BEGIN + 63) -#define STR_MY_AUTOTEXT (RC_MISC_BEGIN + 64) - -#define MISC_ACT_END STRRES_NUMTYPES - -#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/mmconfigitem.hxx b/sw/source/ui/inc/mmconfigitem.hxx deleted file mode 100644 index ba2b202aea..0000000000 --- a/sw/source/ui/inc/mmconfigitem.hxx +++ /dev/null @@ -1,281 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _MMCONFIGITEM_HXX -#define _MMCONFIGITEM_HXX - -#include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/uno/Reference.hxx> -#include <tools/resary.hxx> -#include <swdbdata.hxx> -#include "swdllapi.h" -#include "sharedconnection.hxx" - -namespace com{namespace sun{namespace star{ - namespace sdbc{ - class XDataSource; - class XConnection; - class XResultSet; - } - namespace sdbcx{ - class XColumnsSupplier; - } -}}} - -class SwMailMergeConfigItem_Impl; -class SwView; - -struct SwDocMergeInfo -{ - long nStartPageInTarget; - long nEndPageInTarget; - long nDBRow; -}; - -class SW_DLLPUBLIC SwMailMergeConfigItem -{ -// com::sun::star::uno::Sequence< ::rtl::OUString> m_aSavedDocuments; - SwMailMergeConfigItem_Impl* m_pImpl; - //session information - not stored in configuration - bool m_bAddressInserted; - bool m_bMergeDone; - bool m_bGreetingInserted; - sal_Int32 m_nGreetingMoves; - ::rtl::OUString m_rAddressBlockFrame; - ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any> m_aSelection; - - sal_uInt16 m_nStartPrint; - sal_uInt16 m_nEndPrint; - - ::rtl::OUString m_sSelectedPrinter; - - SwView* m_pSourceView; - SwView* m_pTargetView; -public: - SwMailMergeConfigItem(); - ~SwMailMergeConfigItem(); - - enum Gender - { - FEMALE, - MALE, - NEUTRAL - }; - - void Commit(); - - const ResStringArray& GetDefaultAddressHeaders() const; - - void SetCurrentConnection( - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource> xSource, - SharedConnection xConnection, - ::com::sun::star::uno::Reference< ::com::sun::star::sdbcx::XColumnsSupplier> xColumnsSupplier, - const SwDBData& rDBData); - - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource> - GetSource(); - - SharedConnection GetConnection(); - - ::com::sun::star::uno::Reference< ::com::sun::star::sdbcx::XColumnsSupplier> - GetColumnsSupplier(); - - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet> - GetResultSet() const; - - void DisposeResultSet(); - - ::rtl::OUString& GetFilter() const; - void SetFilter(::rtl::OUString&); - - ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any> - GetSelection()const; - void SetSelection(::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > rSelection); - - void SetCurrentDBData( const SwDBData& rDBData); - const SwDBData& GetCurrentDBData() const; - - // move absolute, nTarget == -1 -> goto last record - sal_Int32 MoveResultSet(sal_Int32 nTarget); - sal_Int32 GetResultSetPosition()const; - bool IsResultSetFirstLast(bool& bIsFirst, bool& bIsLast); - - bool IsRecordExcluded(sal_Int32 nRecord); - void ExcludeRecord(sal_Int32 nRecord, bool bExclude); - - const com::sun::star::uno::Sequence< ::rtl::OUString>& - GetSavedDocuments() const; - void AddSavedDocument(::rtl::OUString rName); - - sal_Bool IsOutputToLetter()const; - void SetOutputToLetter(sal_Bool bSet); - - sal_Bool IsAddressBlock()const; - void SetAddressBlock(sal_Bool bSet); - - sal_Bool IsHideEmptyParagraphs() const; - void SetHideEmptyParagraphs(sal_Bool bSet); - - const com::sun::star::uno::Sequence< ::rtl::OUString> - GetAddressBlocks() const; - void SetAddressBlocks(const com::sun::star::uno::Sequence< ::rtl::OUString>& rBlocks); - - void SetCurrentAddressBlockIndex( sal_Int32 nSet ); - sal_Int32 GetCurrentAddressBlockIndex() const; - - sal_Bool IsIncludeCountry() const; - rtl::OUString& GetExcludeCountry() const; - void SetCountrySettings(sal_Bool bSet, const rtl::OUString& sCountry); - - sal_Bool IsIndividualGreeting(sal_Bool bInEMail) const; - void SetIndividualGreeting(sal_Bool bSet, sal_Bool bInEMail); - - sal_Bool IsGreetingLine(sal_Bool bInEMail) const; - void SetGreetingLine(sal_Bool bSet, sal_Bool bInEMail); - - const com::sun::star::uno::Sequence< ::rtl::OUString> - GetGreetings(Gender eType) const; - void SetGreetings(Gender eType, const com::sun::star::uno::Sequence< ::rtl::OUString>& rBlocks); - - sal_Int32 GetCurrentGreeting(Gender eType) const; - void SetCurrentGreeting(Gender eType, sal_Int32 nIndex); - - //the content of the gender column that marks it as female - const ::rtl::OUString& GetFemaleGenderValue() const; - void SetFemaleGenderValue(const ::rtl::OUString rValue); - - //returns the assignment in the order of the default headers (GetDefaultAddressHeaders()) - com::sun::star::uno::Sequence< ::rtl::OUString > - GetColumnAssignment( const SwDBData& rDBData ) const; - void SetColumnAssignment( - const SwDBData& rDBData, - const com::sun::star::uno::Sequence< ::rtl::OUString>& ); - - bool IsAddressFieldsAssigned() const; - bool IsGreetingFieldsAssigned() const; - - //e-Mail settings: - ::rtl::OUString GetMailDisplayName() const; - void SetMailDisplayName(const ::rtl::OUString& rName); - - ::rtl::OUString GetMailAddress() const; - void SetMailAddress(const ::rtl::OUString& rAddress); - - sal_Bool IsMailReplyTo() const; - void SetMailReplyTo(sal_Bool bSet); - - ::rtl::OUString GetMailReplyTo() const; - void SetMailReplyTo(const ::rtl::OUString& rReplyTo); - - ::rtl::OUString GetMailServer() const; - void SetMailServer(const ::rtl::OUString& rAddress); - - sal_Int16 GetMailPort() const; - void SetMailPort(sal_Int16 nSet); - - sal_Bool IsSecureConnection() const; - void SetSecureConnection(sal_Bool bSet); - - sal_Bool IsAuthentication() const; - void SetAuthentication(sal_Bool bSet); - - ::rtl::OUString GetMailUserName() const; - void SetMailUserName(const ::rtl::OUString& rName); - - ::rtl::OUString GetMailPassword() const; - void SetMailPassword(const ::rtl::OUString& rPassword); - - sal_Bool IsSMTPAfterPOP() const; - void SetSMTPAfterPOP(sal_Bool bSet); - - ::rtl::OUString GetInServerName() const; - void SetInServerName(const ::rtl::OUString& rServer); - - sal_Int16 GetInServerPort() const; - void SetInServerPort(sal_Int16 nSet); - - sal_Bool IsInServerPOP() const; - void SetInServerPOP(sal_Bool bSet); - - ::rtl::OUString GetInServerUserName() const; - void SetInServerUserName(const ::rtl::OUString& rName); - - ::rtl::OUString GetInServerPassword() const; - void SetInServerPassword(const ::rtl::OUString& rPassword); - - //session information - bool IsAddressInserted() const { return m_bAddressInserted; } - void SetAddressInserted(const ::rtl::OUString& rFrameName) - { m_bAddressInserted = true; - m_rAddressBlockFrame = rFrameName; - } - - bool IsGreetingInserted() const { return m_bGreetingInserted; } - void SetGreetingInserted() - { m_bGreetingInserted = true; } - - // counts the moves in the layout page - void MoveGreeting( sal_Int32 nMove) { m_nGreetingMoves += nMove;} - sal_Int32 GetGreetingMoves() const { return m_nGreetingMoves;} - - bool IsMergeDone() const { return m_bMergeDone;} - void SetMergeDone( ) { m_bMergeDone = true; } - - // new source document - reset some flags - void DocumentReloaded(); - - bool IsMailAvailable() const; - - // notify a completed merge, provid the appropriate e-Mail address if available - void AddMergedDocument(SwDocMergeInfo& rInfo); - //returns the page and database cursor information of each merged document - SwDocMergeInfo& GetDocumentMergeInfo(sal_uInt32 nDocument); - sal_uInt32 GetMergedDocumentCount() const; - - void SetPrintRange( sal_uInt16 nStartDocument, sal_uInt16 nEndDocument) - {m_nStartPrint = nStartDocument; m_nEndPrint = nEndDocument;} - sal_uInt16 GetPrintRangeStart() const {return m_nStartPrint;} - sal_uInt16 GetPrintRangeEnd() const {return m_nEndPrint;} - - const ::rtl::OUString& GetSelectedPrinter() const {return m_sSelectedPrinter;} - void SetSelectedPrinter(const ::rtl::OUString& rSet ) - {m_sSelectedPrinter = rSet;} - - - SwView* GetTargetView(); - void SetTargetView(SwView* pView); - - SwView* GetSourceView(); - void SetSourceView(SwView* pView); - - //helper methods - ::rtl::OUString GetAssignedColumn(sal_uInt32 nColumn)const; -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/multmrk.hxx b/sw/source/ui/inc/multmrk.hxx deleted file mode 100644 index efae555f4a..0000000000 --- a/sw/source/ui/inc/multmrk.hxx +++ /dev/null @@ -1,69 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _MULTMRK_HXX -#define _MULTMRK_HXX - - -#include <svx/stddlg.hxx> -#include <vcl/fixed.hxx> -#include <svtools/stdctrl.hxx> -#include <vcl/lstbox.hxx> -#include <vcl/button.hxx> - -class SwTOXMgr; - -/*-------------------------------------------------------------------- - Description: insert mark for index entry - --------------------------------------------------------------------*/ - -class SwMultiTOXMarkDlg : public SvxStandardDialog -{ - DECL_LINK( SelectHdl, ListBox * ); - - FixedLine aTOXFL; - FixedText aEntryFT; - FixedInfo aTextFT; - FixedText aTOXFT; - ListBox aTOXLB; - OKButton aOkBT; - CancelButton aCancelBT; - - SwTOXMgr &rMgr; - sal_uInt16 nPos; - - void Apply(); -public: - SwMultiTOXMarkDlg( Window* pParent, SwTOXMgr &rTOXMgr ); - ~SwMultiTOXMarkDlg(); -}; - - -#endif // _MULTMRK_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/navicfg.hxx b/sw/source/ui/inc/navicfg.hxx deleted file mode 100644 index d5a0db5f45..0000000000 --- a/sw/source/ui/inc/navicfg.hxx +++ /dev/null @@ -1,120 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _NAVICFG_HXX -#define _NAVICFG_HXX - -#include <unotools/configitem.hxx> - -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// global view for GlobalDoc valid? - - com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); - -public: - SwNavigationConfig(); - ~SwNavigationConfig(); - - virtual void Commit(); - virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); - - 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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/navicont.hxx b/sw/source/ui/inc/navicont.hxx deleted file mode 100644 index 9b4b96f245..0000000000 --- a/sw/source/ui/inc/navicont.hxx +++ /dev/null @@ -1,64 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _NAVICONT_HXX -#define _NAVICONT_HXX - -#include <tools/string.hxx> - -class SwDocShell; -class TransferDataContainer; -class TransferableDataHelper; - -/* - navigator bookmark for distinct identification in Sw -*/ - -class NaviContentBookmark -{ - String aUrl; // URL including jump mark - String aDescr; // description - long nDocSh; // adress of DocShell - sal_uInt16 nDefDrag; // description contains defaultDragType - -public: - NaviContentBookmark(); - NaviContentBookmark( const String &rUrl, const String& rDesc, - sal_uInt16 nDragType, const SwDocShell* ); - - const String& GetURL() const { return aUrl; } - const String& GetDescription() const { return aDescr; } - sal_uInt16 GetDefaultDragType() const { return nDefDrag; } - long GetDocShell() const { return nDocSh; } - void Copy( TransferDataContainer& rData ) const; - sal_Bool Paste( TransferableDataHelper& rData ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/navipi.hxx b/sw/source/ui/inc/navipi.hxx deleted file mode 100644 index 110775fae3..0000000000 --- a/sw/source/ui/inc/navipi.hxx +++ /dev/null @@ -1,196 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _NAVIPI_HXX -#define _NAVIPI_HXX - -// INCLUDE --------------------------------------------------------------- - -#include <vcl/lstbox.hxx> -#include <svl/lstner.hxx> -#include <svtools/transfer.hxx> -#include <sfx2/childwin.hxx> -#include <sfx2/ctrlitem.hxx> -#include <sfx2/tbxctrl.hxx> -#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 SwNavigationPI; - -class SwNavHelpToolBox : public SwHelpToolBox -{ - virtual void MouseButtonDown(const MouseEvent &rEvt); - virtual void RequestHelp( const HelpEvent& rHEvt ); - public: - SwNavHelpToolBox(SwNavigationPI* pParent, const ResId &rResId); -}; - -// CLASS ----------------------------------------------------------------- -class SwNavigationPI : public Window, - public SfxControllerItem, public SfxListener -{ - friend class SwNavigationChild; - friend class SwContentTree; - friend class SwGlobalTree; - - // --------- members ----------------------------- - SwNavHelpToolBox aContentToolBox; - SwHelpToolBox aGlobalToolBox; - ImageList aContentImageList; - SwContentTree aContentTree; - SwGlobalTree aGlobalTree; - ListBox aDocListBox; - Timer aPageChgTimer; - String sContentFileName; - String aContextArr[3]; - String aStatusArr[4]; - Point aBoxBottomLeft; // Pos when Box is at bottom - - SfxObjectShellLock *pxObjectShell; - SwView *pContentView; - SwWrtShell *pContentWrtShell; - SwView *pActContView; - SwView *pCreateView; - SfxPopupWindow *pPopupWindow; - SfxPopupWindow *pFloatingWindow; - - SfxChildWindowContext* pContextWin; - - SwNavigationConfig *pConfig; - SfxBindings &rBindings; - - long nDocLBIniHeight; - long nWishWidth; - sal_uInt16 nAutoMarkIdx; - sal_uInt16 nRegionMode; // 0 - URL, 1 - region with link 2 - region without link - short nZoomIn; - short nZoomOutInit; - short nZoomOut; - - sal_Bool bSmallMode : 1; - sal_Bool bIsZoomedIn : 1; - sal_Bool bPageCtrlsVisible : 1; - sal_Bool bGlobalMode : 1; - - // --------- methods ----------------------------- - sal_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( ToolBoxDropdownClickHdl, ToolBox* ); - DECL_LINK( EditAction, NumEditAction * ); - DECL_LINK( EditGetFocus, NumEditAction * ); - DECL_LINK( DoneLink, SfxPoolItem * ); - DECL_LINK( MenuSelectHdl, Menu * ); - DECL_LINK( ChangePageHdl, Timer* ); - DECL_LINK( PageEditModifyHdl, Edit* ); - DECL_LINK( PopupModeEndHdl, void * ); - DECL_LINK( ClosePopupWindow, SfxPopupWindow * ); - void UsePage(SwWrtShell *); - - void MakeVisible(); - void InitImageList(); - virtual SfxChildAlignment - CheckAlignment(SfxChildAlignment,SfxChildAlignment); - void SetPopupWindow( SfxPopupWindow* ); - - using Window::Notify; - using Window::StateChanged; - -protected: - - virtual sal_Bool Close(); - virtual void Resize(); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - - - // release ObjectShellLock early enough for app end - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); - - NumEditAction& GetPageEdit(); - sal_Bool ToggleTree(); - void SetGlobalMode(sal_Bool bSet) {bGlobalMode = bSet;} - -public: - - SwNavigationPI(SfxBindings*, SfxChildWindowContext*, Window*); - ~SwNavigationPI(); - - void GotoPage(); // jump to page; bindable function - - void Update() { FillBox(); } - void UpdateListBox(); - void MoveOutline(sal_uInt16 nSource, sal_uInt16 nTarget, sal_Bool bWithCilds); - - virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, - const SfxPoolItem* pState ); - - static String CreateDropFileName( TransferableDataHelper& rData ); - static void CleanEntry( String& rEntry ); - - sal_uInt16 GetRegionDropMode() const {return nRegionMode;} - void SetRegionDropMode(sal_uInt16 nNewMode); - - sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); - sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); - - sal_Bool IsGlobalDoc() const; - sal_Bool IsGlobalMode() const {return bGlobalMode;} - - SwView* GetCreateView() const; - void CreateNavigationTool(const Rectangle& rRect, sal_Bool bSetFocus); -}; - -class SwNavigationChild : public SfxChildWindowContext -{ -public: - SwNavigationChild( Window* , - sal_uInt16 nId, - SfxBindings*, - SfxChildWinInfo* ); - - SFX_DECL_CHILDWINDOW_CONTEXT( SwNavigationChild ) -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/navmgr.hxx b/sw/source/ui/inc/navmgr.hxx deleted file mode 100644 index 2a86172e6c..0000000000 --- a/sw/source/ui/inc/navmgr.hxx +++ /dev/null @@ -1,74 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * Version: MPL 1.1 / GPLv3+ / LGPLv3+ - * - * The contents of this file are subject to the Mozilla Public 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.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Initial Developer of the Original Code is - * [ Maja Djordjevic < ovcica@gmail.com > ] - * Portions created by the Initial Developer are Copyright (C) 2010 the - * Initial Developer. All Rights Reserved. - * - * Contributor(s): Cédric Bosdonnat <cbosdonnat@novell.com> - * Caolan McNamara <caolanm@redhat.com> - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 3 or later (the "GPLv3+"), or - * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), - * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable - * instead of those above. - */ -#ifndef _NAVMGR_HXX -#define _NAVMGR_HXX - -#include "swtypes.hxx" -#include "pam.hxx" -#include "swdllapi.h" - -class SwWrtShell; -struct SwPosition; - -class SW_DLLPUBLIC SwNavigationMgr -{ -private: - /* - * List of entries in the navigation history - * Each entry is a SwPosition, which represents a position within the document - * SwPosition is given by a node index (SwNodeIndex) which usually represents the paragraph the position is in - * and an index (SwIndex), which represents the position inside this paragraph. - * You can find more on SwPositions at http://wiki.services.openoffice.org/wiki/Writer_Core_And_Layout - * - * The navigation history behaves as a stack, to which items are added when we jump to a new position - * (e.g. click a link, or double click an entry from the navigator). - * Every use of the back/forward buttons results in moving the stack pointer within the navigation history - */ - std::vector<SwPosition> _entries; - std::vector<SwPosition>::size_type _nCurrent; /* Current position within the navigation history */ - SwWrtShell* _pMyShell; /* The active shell within which the navigation occurs */ - - void GotoSwPosition(const SwPosition &rPos); - -public: - /* Constructor that initializes the shell to the current shell */ - SwNavigationMgr( SwWrtShell* pShell ); - /* Can we go back in the history ? */ - sal_Bool backEnabled() ; - /* Can we go forward in the history ? */ - sal_Bool forwardEnabled(); - /* The method that is called when we click the back button */ - void goBack() ; - /* The method that is called when we click the forward button */ - void goForward() ; - /* The method that adds the position pPos to the navigation history */ - bool addEntry(const SwPosition& rPos); -}; -#endif -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/navsh.hxx b/sw/source/ui/inc/navsh.hxx deleted file mode 100644 index 28390687c3..0000000000 --- a/sw/source/ui/inc/navsh.hxx +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * Version: MPL 1.1 / GPLv3+ / LGPLv3+ - * - * The contents of this file are subject to the Mozilla Public 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.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Initial Developer of the Original Code is - * [ Maja Djordjevic < ovcica@gmail.com > ] - * Portions created by the Initial Developer are Copyright (C) 2010 the - * Initial Developer. All Rights Reserved. - * - * Contributor(s): Cédric Bosdonnat <cbosdonnat@novell.com> - * Caolan McNamara <caolanm@redhat.com> - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 3 or later (the "GPLv3+"), or - * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), - * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable - * instead of those above. - */ -#ifndef _SWNAVIGATIONSH_HXX -#define _SWNAVIGATIONSH_HXX - -#include "frmsh.hxx" - -class SfxItemSet; -class SwWrtShell; - - - -class SwNavigationShell: public SwBaseShell -{ -public: - SFX_DECL_INTERFACE(SW_NAVIGATIONSHELL) - - SwNavigationShell(SwView &rView); - - void GetState(SfxItemSet &); - void Execute(SfxRequest &); -}; - -#endif -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/num.hxx b/sw/source/ui/inc/num.hxx deleted file mode 100644 index f0bb1a679b..0000000000 --- a/sw/source/ui/inc/num.hxx +++ /dev/null @@ -1,175 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _NUM_HXX -#define _NUM_HXX - - -#include <sfx2/tabdlg.hxx> -#include <vcl/menubtn.hxx> -#include <vcl/field.hxx> -#include <vcl/fixed.hxx> -#include <svtools/stdctrl.hxx> -#include <vcl/button.hxx> -#include <vcl/lstbox.hxx> -#include <vcl/edit.hxx> -#include <svx/stddlg.hxx> -#include <numprevw.hxx> -#include "numrule.hxx" - -class SwWrtShell; -class SvxBrushItem; -class SwOutlineTabDialog; - -struct SwBmpItemInfo -{ - SvxBrushItem* pBrushItem; - sal_uInt16 nItemId; -}; - -#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 - -class SwNumPositionTabPage : public SfxTabPage -{ - FixedLine aLevelFL; - MultiListBox aLevelLB; - - // former set of controls shown for numbering rules containing list level - // attributes in SvxNumberFormat::SvxNumPositionAndSpaceMode == LABEL_WIDTH_AND_POSITION - FixedLine aPositionFL; - FixedText aDistBorderFT; - MetricField aDistBorderMF; - CheckBox aRelativeCB; - FixedText aIndentFT; - MetricField aIndentMF; - FixedText aDistNumFT; - MetricField aDistNumMF; - FixedText aAlignFT; - ListBox aAlignLB; - - // new set of controls shown for numbering rules containing list level - // attributes in SvxNumberFormat::SvxNumPositionAndSpaceMode == LABEL_ALIGNMENT - FixedText aLabelFollowedByFT; - ListBox aLabelFollowedByLB; - FixedText aListtabFT; - MetricField aListtabMF; - FixedText aAlign2FT; - ListBox aAlign2LB; - FixedText aAlignedAtFT; - MetricField aAlignedAtMF; - FixedText aIndentAtFT; - MetricField aIndentAtMF; - - PushButton aStandardPB; - - NumberingPreview aPreviewWIN; - - SwNumRule* pActNum; - SwNumRule* pSaveNum; - SwWrtShell* pWrtSh; - - SwOutlineTabDialog* pOutlineDlg; - sal_uInt16 nActNumLvl; - - sal_Bool bModified : 1; - sal_Bool bPreset : 1; - sal_Bool bInInintControl : 1; // work around modify-error; should be resolved from 391 on - bool bLabelAlignmentPosAndSpaceModeActive; - - void InitControls(); - - DECL_LINK( LevelHdl, ListBox * ); - DECL_LINK( EditModifyHdl, Edit*); - DECL_LINK( DistanceHdl, MetricField * ); - DECL_LINK( RelativeHdl, CheckBox * ); - DECL_LINK( StandardHdl, PushButton * ); - - void InitPosAndSpaceMode(); - void ShowControlsDependingOnPosAndSpaceMode(); - - DECL_LINK( LabelFollowedByHdl_Impl, ListBox* ); - DECL_LINK( ListtabPosHdl_Impl, MetricField* ); - DECL_LINK( AlignAtHdl_Impl, MetricField* ); - DECL_LINK( IndentAtHdl_Impl, MetricField* ); - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - -public: - - SwNumPositionTabPage(Window* pParent, - const SfxItemSet& rSet); - ~SwNumPositionTabPage(); - - virtual void ActivatePage(const SfxItemSet& rSet); - virtual int DeactivatePage(SfxItemSet *pSet); - virtual sal_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); -#if OSL_DEBUG_LEVEL > 1 - void SetModified(sal_Bool bRepaint = sal_True); -#else - void SetModified(sal_Bool bRepaint = sal_True) - { bModified = sal_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(sal_uInt16 nPageId, SfxTabPage& rPage); - DECL_LINK(RemoveNumberingHdl, PushButton*); - public: - SwSvxNumBulletTabDialog(Window* pParent, - const SfxItemSet* pSwItemSet, - SwWrtShell &); - ~SwSvxNumBulletTabDialog(); -}; -#endif // _NUM_CXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/numberingtypelistbox.hxx b/sw/source/ui/inc/numberingtypelistbox.hxx deleted file mode 100644 index 164e3526a2..0000000000 --- a/sw/source/ui/inc/numberingtypelistbox.hxx +++ /dev/null @@ -1,60 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _NUMBERINGTYPELISTBOX_HXX -#define _NUMBERINGTYPELISTBOX_HXX - -#include <vcl/lstbox.hxx> -#include "swdllapi.h" - -#define INSERT_NUM_TYPE_NO_NUMBERING 0x01 -#define INSERT_NUM_TYPE_PAGE_STYLE_NUMBERING 0x02 -#define INSERT_NUM_TYPE_BITMAP 0x04 -#define INSERT_NUM_TYPE_BULLET 0x08 -#define INSERT_NUM_EXTENDED_TYPES 0x10 - -struct SwNumberingTypeListBox_Impl; - -class SW_DLLPUBLIC SwNumberingTypeListBox : public ListBox -{ - SwNumberingTypeListBox_Impl* pImpl; - -public: - SwNumberingTypeListBox( Window* pWin, const ResId& rResId, - sal_uInt16 nTypeFlags = INSERT_NUM_TYPE_PAGE_STYLE_NUMBERING|INSERT_NUM_TYPE_NO_NUMBERING|INSERT_NUM_EXTENDED_TYPES ); - ~SwNumberingTypeListBox(); - - void Reload(sal_uInt16 nTypeFlags); - - sal_Int16 GetSelectedNumberingType(); - sal_Bool SelectNumberingType(sal_Int16 nType); -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/numfmtlb.hxx b/sw/source/ui/inc/numfmtlb.hxx deleted file mode 100644 index 72204448f9..0000000000 --- a/sw/source/ui/inc/numfmtlb.hxx +++ /dev/null @@ -1,89 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWNUMFMTLB_HXX -#define _SWNUMFMTLB_HXX - -#include <vcl/lstbox.hxx> -#include <svl/zforlist.hxx> -#include "swdllapi.h" - -class SwView; - -class SW_DLLPUBLIC NumFormatListBox : public ListBox -{ - short nCurrFormatType; - sal_uInt16 nStdEntry; - sal_Bool bOneArea; - sal_uLong nDefFormat; - SwView* pVw; - SvNumberFormatter* pOwnFormatter; - LanguageType eCurLanguage; - sal_Bool bShowLanguageControl; //determine whether the language control has - //to be shown in the number format dialog - sal_Bool bUseAutomaticLanguage;//determine whether language is automatically assigned - - SW_DLLPRIVATE DECL_LINK( SelectHdl, ListBox * ); - - SW_DLLPRIVATE double GetDefValue(const short nFormatType) const; - SW_DLLPRIVATE void Init(short nFormatType, sal_Bool bUsrFmts); - SW_DLLPRIVATE SwView* GetView(); - -public: - NumFormatListBox( Window* pWin, const ResId& rResId, - short nFormatType = NUMBERFORMAT_NUMBER, sal_uLong nDefFmt = 0, - sal_Bool bUsrFmts = sal_True ); - - NumFormatListBox( Window* pWin, SwView* pView, const ResId& rResId, - short nFormatType = NUMBERFORMAT_NUMBER, sal_uLong nDefFmt = 0, - sal_Bool bUsrFmts = sal_True ); - - ~NumFormatListBox(); - - void Clear(); - - inline void SetOneArea(sal_Bool bOnlyOne = sal_True) { bOneArea = bOnlyOne; } - - void SetFormatType(const short nFormatType); - inline short GetFormatType() const { return nCurrFormatType; } - void SetDefFormat(const sal_uLong nDefFmt); - sal_uLong GetFormat() const; - - inline LanguageType GetCurLanguage() const { return eCurLanguage;} - void SetLanguage(LanguageType eSet) { eCurLanguage = eSet;} - - void SetAutomaticLanguage(sal_Bool bSet){bUseAutomaticLanguage = bSet;} - sal_Bool IsAutomaticLanguage()const {return bUseAutomaticLanguage;} - - void SetShowLanguageControl(sal_Bool bSet){bShowLanguageControl = bSet;} - -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/numpara.hxx b/sw/source/ui/inc/numpara.hxx deleted file mode 100644 index af4049727b..0000000000 --- a/sw/source/ui/inc/numpara.hxx +++ /dev/null @@ -1,97 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _NUMPARA_HXX -#define _NUMPARA_HXX - - -#include <sfx2/tabdlg.hxx> -#include <vcl/lstbox.hxx> -#include <vcl/fixed.hxx> -#include <vcl/field.hxx> -#include <vcl/button.hxx> - - -/* --- class SwParagraphNumTabPage ---------------------------------------- - with this TabPage numbering settings at the paragraph / paragraph style - are performed. - - ---------------------------------------------------------------------------*/ -class SwParagraphNumTabPage : public SfxTabPage -{ - FixedLine aOutlineStartFL; - FixedText aOutlineLvFT; - ListBox aOutlineLvLB; - - FixedLine aNewStartFL; - FixedText aNumberStyleFT; - ListBox aNumberStyleLB; - - TriStateBox aNewStartCB; - TriStateBox aNewStartNumberCB; - NumericField aNewStartNF; - - FixedLine aCountParaFL; - TriStateBox aCountParaCB; - TriStateBox aRestartParaCountCB; - FixedText aRestartFT; - NumericField aRestartNF; - - // --> OD 2008-04-14 #outlinelevel# - const String msOutlineNumbering; - - sal_Bool bModified : 1; - sal_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 sal_uInt16* GetRanges(); - - virtual sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); - - void EnableNewStart(); - void DisableOutline(); - void DisableNumbering(); - - ListBox& GetStyleBox() {return aNumberStyleLB;}; -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/numprevw.hxx b/sw/source/ui/inc/numprevw.hxx deleted file mode 100644 index e08e809979..0000000000 --- a/sw/source/ui/inc/numprevw.hxx +++ /dev/null @@ -1,70 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _NUMPREVW_HXX -#define _NUMPREVW_HXX - - -#include <vcl/window.hxx> - -class SwNumRule; - -class NumberingPreview : public Window -{ - const SwNumRule* pActNum; - Font aStdFont; - long nPageWidth; - const String* pOutlineNames; - sal_Bool bPosition; - sal_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(sal_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 = sal_True;} - void SetLevel(sal_uInt16 nSet) {nActLevel = nSet;} - -}; - -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/olesh.hxx b/sw/source/ui/inc/olesh.hxx deleted file mode 100644 index 2a36cbf73c..0000000000 --- a/sw/source/ui/inc/olesh.hxx +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWOLESH_HXX -#define _SWOLESH_HXX - -#include "frmsh.hxx" - -class SwOleShell: public SwFrameShell -{ -public: - SFX_DECL_INTERFACE(SW_OLESHELL) - - SwOleShell(SwView &rView); - -}; - -#endif - - - - - - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/olmenu.hxx b/sw/source/ui/inc/olmenu.hxx deleted file mode 100644 index bd8f2d68a4..0000000000 --- a/sw/source/ui/inc/olmenu.hxx +++ /dev/null @@ -1,93 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _OLMENU_HXX -#define _OLMENU_HXX - -#include <com/sun/star/linguistic2/XDictionary.hpp> -#include <com/sun/star/linguistic2/XSpellAlternatives.hpp> -#include <com/sun/star/linguistic2/ProofreadingResult.hpp> -#include <com/sun/star/uno/Sequence.h> - -#include <rtl/ustring.hxx> -#include <vcl/image.hxx> -#include <vcl/menu.hxx> - -#include <map> -#include <vector> - - -class SwWrtShell; - -class SwSpellPopup : public PopupMenu -{ - SwWrtShell* pSh; - ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< - ::com::sun::star::linguistic2::XDictionary > > aDics; - ::com::sun::star::uno::Reference< - ::com::sun::star::linguistic2::XSpellAlternatives > xSpellAlt; - - ::com::sun::star::uno::Sequence< rtl::OUString > aSuggestions; - - LanguageType nCheckedLanguage; - LanguageType nGuessLangWord; - LanguageType nGuessLangPara; - - std::map< sal_Int16, ::rtl::OUString > aLangTable_Text; - std::map< sal_Int16, ::rtl::OUString > aLangTable_Paragraph; -// std::map< sal_Int16, ::rtl::OUString > aLangTable_Document; - - bool bGrammarResults; // show grammar results? Or show spellcheck results? - - Image aInfo16; - - void fillLangPopupMenu( PopupMenu *pPopupMenu, sal_uInt16 nLangStart, - ::com::sun::star::uno::Sequence< ::rtl::OUString > aSeq, SwWrtShell* pWrtSh, - std::map< sal_Int16, ::rtl::OUString > &rLangTable ); - - using PopupMenu::Execute; - -public: - SwSpellPopup( SwWrtShell *pWrtSh, - const ::com::sun::star::uno::Reference< - ::com::sun::star::linguistic2::XSpellAlternatives > &xAlt, - const String & rParaText ); - - SwSpellPopup( SwWrtShell *pWrtSh, - const ::com::sun::star::linguistic2::ProofreadingResult &rResult, - sal_Int32 nErrorInResult, - const ::com::sun::star::uno::Sequence< rtl::OUString > &rSuggestions, - const String & rParaText ); - - sal_uInt16 Execute( const Rectangle& rPopupPos, Window* pWin ); - void Execute( sal_uInt16 nId ); - -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/optcomp.hxx b/sw/source/ui/inc/optcomp.hxx deleted file mode 100644 index 0416b15167..0000000000 --- a/sw/source/ui/inc/optcomp.hxx +++ /dev/null @@ -1,88 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _OPTCOMP_HXX -#define _OPTCOMP_HXX - -#include <sfx2/tabdlg.hxx> -#include <vcl/fixed.hxx> -#include <vcl/lstbox.hxx> -#include <unotools/compatibility.hxx> -#include <svx/checklbx.hxx> - -// class SwCompatibilityOptPage ------------------------------------------ -class SwWrtShell; -struct SwCompatibilityOptPage_Impl; - -class SwCompatibilityOptPage : public SfxTabPage -{ -private: - // controls - FixedLine m_aMainFL; - FixedText m_aFormattingFT; - ListBox m_aFormattingLB; - FixedText m_aOptionsFT; - SvxCheckListBox m_aOptionsLB; - PushButton m_aResetPB; - PushButton m_aDefaultPB; - // config item - SvtCompatibilityOptions m_aConfigItem; - // text of the user entry - String m_sUserEntry; - // text of the "use as default" querybox - String m_sUseAsDefaultQuery; - // shell of the current document - SwWrtShell* m_pWrtShell; - // impl object - SwCompatibilityOptPage_Impl* m_pImpl; - // saved options after "Reset"; used in "FillItemSet" for comparison - sal_uLong m_nSavedOptions; - - // handler - DECL_LINK( SelectHdl, ListBox* ); - DECL_LINK( UseAsDefaultHdl, PushButton* ); - - // private methods - void InitControls( const SfxItemSet& rSet ); - void ReplaceFormatName( String& rEntry ); - void SetCurrentOptions( sal_uLong nOptions ); - sal_uLong GetDocumentOptions() const; - void WriteOptions(); - -public: - SwCompatibilityOptPage( Window* pParent, const SfxItemSet& rSet ); - ~SwCompatibilityOptPage(); - - static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); - - virtual sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/optload.hxx b/sw/source/ui/inc/optload.hxx deleted file mode 100644 index c96789733a..0000000000 --- a/sw/source/ui/inc/optload.hxx +++ /dev/null @@ -1,199 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _OPTLOAD_HXX -#define _OPTLOAD_HXX - -#include <sfx2/tabdlg.hxx> - -#include <vcl/group.hxx> -#include <vcl/fixed.hxx> -#include <vcl/lstbox.hxx> -#include <vcl/field.hxx> -#include <svx/strarray.hxx> -#include <sfx2/basedlgs.hxx> -#include <svx/checklbx.hxx> -#include <swlbox.hxx> -#include <caption.hxx> - -class SwFldMgr; -class SvLBoxEntry; -class SwWrtShell; - -class SwLoadOptPage : public SfxTabPage -{ -private: - FixedLine aUpdateFL; - FixedText aLinkFT; - RadioButton aAlwaysRB; - RadioButton aRequestRB; - RadioButton aNeverRB; - - FixedText aFieldFT; - CheckBox aAutoUpdateFields; - CheckBox aAutoUpdateCharts; - - FixedLine aSettingsFL; - FixedText aMetricFT; - ListBox aMetricLB; - FixedText aTabFT; - MetricField aTabMF; - CheckBox aUseSquaredPageMode; - CheckBox aUseCharUnit; - - SwWrtShell* pWrtShell; - sal_Bool bHTMLMode; - sal_uInt16 nLastTab; - sal_Int32 nOldLinkMode; - - DECL_LINK(CaptionHdl, PushButton*); - DECL_LINK(MetricHdl, ListBox*); - -public: - SwLoadOptPage( Window* pParent, const SfxItemSet& rSet ); - ~SwLoadOptPage(); - - static SfxTabPage* Create( Window* pParent, - const SfxItemSet& rAttrSet); - - virtual sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); -}; - -class SwCaptionOptDlg : public SfxSingleTabDialog -{ -public: - SwCaptionOptDlg(Window* pParent, const SfxItemSet& rSet); - ~SwCaptionOptDlg(); -}; - -class CaptionComboBox : public SwComboBox -{ -protected: - virtual void KeyInput( const KeyEvent& ); - -public: - CaptionComboBox( Window* pParent, const ResId& rResId) - : SwComboBox(pParent, rResId) - {} -}; - -class SwCaptionPreview : public Window -{ -private: - String maText; - Point maDrawPos; -public: - SwCaptionPreview( Window* pParent, const ResId& rResId ); - void SetPreviewText( const String& rText ); - virtual void Paint( const Rectangle& rRect ); -}; - -class SwCaptionOptPage : public SfxTabPage -{ -private: - FixedText aCheckFT; - SvxCheckListBox aCheckLB; - - FixedText aFtCaptionOrder; - ListBox aLbCaptionOrder; - - SwCaptionPreview aPreview; - - FixedLine aSettingsGroupFL; - FixedText aCategoryText; - CaptionComboBox aCategoryBox; - FixedText aFormatText; - ListBox aFormatBox; - //#i61007# order of captions - FixedText aNumberingSeparatorFT; - Edit aNumberingSeparatorED; - FixedText aTextText; - Edit aTextEdit; - FixedText aPosText; - ListBox aPosBox; - - FixedLine aNumCaptFL; - FixedText aFtLevel; - ListBox aLbLevel; - FixedText aFtDelim; - Edit aEdDelim; - - FixedLine aCategoryFL; - FixedText aCharStyleFT; - ListBox aCharStyleLB; - CheckBox aApplyBorderCB; - - String sSWTable; - String sSWFrame; - String sSWGraphic; - String sOLE; - - String sIllustration; - String sTable; - String sText; - String sDrawing; - - String sBegin; - String sEnd; - String sAbove; - String sBelow; - - String sNone; - - SwFldMgr *pMgr; - sal_uInt16 eType; - sal_Bool bHTMLMode; - - DECL_LINK( SelectHdl, ListBox *pLB = 0 ); - DECL_LINK( ModifyHdl, Edit *pEdt = 0 ); - DECL_LINK( OrderHdl, ListBox* ); - DECL_LINK( ShowEntryHdl, SvxCheckListBox *pLB = 0 ); - DECL_LINK( SaveEntryHdl, SvxCheckListBox *pLB = 0 ); - - void DelUserData(); - void SetOptions( const sal_uInt16 nPos, - const SwCapObjType eType, - const SvGlobalName *pOleId = 0); - void SaveEntry( SvLBoxEntry* pEntry ); - void DrawSample(); - -public: - SwCaptionOptPage( Window* pParent, - const SfxItemSet& rSet ); - ~SwCaptionOptPage(); - - static SfxTabPage* Create( Window* pParent, - const SfxItemSet& rAttrSet); - - virtual sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/optpage.hxx b/sw/source/ui/inc/optpage.hxx deleted file mode 100644 index d9c44363b7..0000000000 --- a/sw/source/ui/inc/optpage.hxx +++ /dev/null @@ -1,487 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _OPTPAGE_HXX -#define _OPTPAGE_HXX -#include <sfx2/tabdlg.hxx> - -#include <vcl/group.hxx> - -#include <vcl/button.hxx> - -#include <vcl/lstbox.hxx> - -#include <vcl/field.hxx> - -#include <vcl/fixed.hxx> -#include <svtools/ctrlbox.hxx> -#include <svx/fntctrl.hxx> -#include <fontcfg.hxx> -class SvStringsDtor; -class SfxPrinter; -class SwStdFontConfig; -class SwWrtShell; -class FontList; - -class SwContentOptPage : public SfxTabPage -{ - //visual aids - FixedLine aLineFL; - CheckBox aCrossCB; - CheckBox aSolidHandleCB; - CheckBox aBigHandleCB; - - //view - FixedLine aWindowFL; - CheckBox aHScrollBox; - CheckBox aVScrollBox; - CheckBox aAnyRulerCB; - CheckBox aHRulerCBox; - ListBox aHMetric; - CheckBox aVRulerCBox; - CheckBox aVRulerRightCBox; - ListBox aVMetric; - CheckBox aSmoothCBox; - - //display - FixedLine aDispFL; - CheckBox aGrfCB; - CheckBox aTblCB; - CheckBox aDrwCB; - CheckBox aFldNameCB; - CheckBox aPostItCB; - - FixedLine aSettingsFL; - FixedText aMetricFT; - ListBox aMetricLB; - - DECL_LINK(VertRulerHdl, CheckBox*); - DECL_LINK(AnyRulerHdl, CheckBox*); -public: - SwContentOptPage( Window* pParent, - const SfxItemSet& rSet ); - ~SwContentOptPage(); - - static SfxTabPage* Create( Window* pParent, - const SfxItemSet& rAttrSet); - - virtual sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); - -}; - -/*-------------------------------------------------------- - TabPage printer settings additions ---------------------------------------------------------- */ -class SwAddPrinterTabPage : public SfxTabPage -{ - FixedLine aFL1; - CheckBox aGrfCB; -// CheckBox aTabCB; -// CheckBox aDrawCB; - CheckBox aCtrlFldCB; - CheckBox aBackgroundCB; - CheckBox aBlackFontCB; - CheckBox aPrintHiddenTextCB; - CheckBox aPrintTextPlaceholderCB; - - FixedLine aSeparatorLFL; - - FixedLine aFL2; - CheckBox aLeftPageCB; - CheckBox aRightPageCB; -// CheckBox aReverseCB; - CheckBox aProspectCB; - CheckBox aProspectCB_RTL; - - FixedLine aSeparatorRFL; - - FixedLine aFL3; - RadioButton aNoRB; - RadioButton aOnlyRB; - RadioButton aEndRB; - RadioButton aEndPageRB; - FixedLine aFL4; - CheckBox aPrintEmptyPagesCB; -// CheckBox aSingleJobsCB; - CheckBox aPaperFromSetupCB; - FixedText aFaxFT; - ListBox aFaxLB; - String sNone; - - sal_Bool bAttrModified; - sal_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 sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); - void SetFax( const SvStringsDtor& ); - void SelectFax( const String& ); - void SetPreview(sal_Bool bPrev); - virtual void PageCreated (SfxAllItemSet aSet); - -}; - -class SwStdFontTabPage : public SfxTabPage -{ - FixedLine aStdChrFL ; - - FixedText aTypeFT; - - FixedText aStandardLbl; - ComboBox aStandardBox; - - FixedText aHeightFT; - FontSizeBox aStandardHeightLB; - - FixedText aTitleLbl ; - ComboBox aTitleBox ; - FontSizeBox aTitleHeightLB; - - FixedText aListLbl ; - ComboBox aListBox ; - FontSizeBox aListHeightLB; - - FixedText aLabelLbl ; - ComboBox aLabelBox ; - FontSizeBox aLabelHeightLB; - - FixedText aIdxLbl ; - ComboBox aIdxBox ; - FontSizeBox aIndexHeightLB; - - CheckBox aDocOnlyCB ; - PushButton aStandardPB; - - String sShellStd; - String sShellTitle; - String sShellList; - String sShellLabel; - String sShellIndex; - - SfxPrinter* pPrt; - FontList* pFontList; - SwStdFontConfig* pFontConfig; - SwWrtShell* pWrtShell; - LanguageType eLanguage; - // only defaults were there? they were signed with the boxes - sal_Bool bListDefault :1; - sal_Bool bSetListDefault :1; - sal_Bool bLabelDefault :1; - sal_Bool bSetLabelDefault :1; - sal_Bool bIdxDefault :1; - sal_Bool bSetIdxDefault :1; - sal_Bool bDeletePrinter :1; - - sal_Bool bListHeightDefault :1; - sal_Bool bSetListHeightDefault :1; - sal_Bool bLabelHeightDefault :1; - sal_Bool bSetLabelHeightDefault :1; - sal_Bool bIndexHeightDefault :1; - sal_Bool bSetIndexHeightDefault :1; - - sal_uInt8 nFontGroup; //fontcfg.hxx: FONT_GROUP_[STANDARD|CJK|CTL] - - String sScriptWestern; - String sScriptAsian; - String sScriptComplex; - - DECL_LINK( StandardHdl, PushButton * ); - DECL_LINK( ModifyHdl, ComboBox * ); - DECL_LINK( ModifyHeightHdl, FontSizeBox * ); - DECL_LINK( LoseFocusHdl, ComboBox * ); - - SwStdFontTabPage( Window* pParent, - const SfxItemSet& rSet ); - ~SwStdFontTabPage(); - -public: - static SfxTabPage* Create( Window* pParent, - const SfxItemSet& rAttrSet ); - - virtual sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); - - void SetFontMode(sal_uInt8 nGroup) {nFontGroup = nGroup;} - virtual void PageCreated (SfxAllItemSet aSet); -}; - -class SwTableOptionsTabPage : public SfxTabPage -{ - FixedLine aTableFL; - CheckBox aHeaderCB; - CheckBox aRepeatHeaderCB; - CheckBox aDontSplitCB; - CheckBox aBorderCB; - - FixedLine aSeparatorFL; - - FixedLine aTableInsertFL; - CheckBox aNumFormattingCB; - CheckBox aNumFmtFormattingCB; - CheckBox aNumAlignmentCB; - - FixedLine aMoveFL; - FixedText aMoveFT; - FixedText aRowMoveFT; - MetricField aRowMoveMF; - FixedText aColMoveFT; - MetricField aColMoveMF; - - FixedText aInsertFT; - FixedText aRowInsertFT; - MetricField aRowInsertMF; - FixedText aColInsertFT; - MetricField aColInsertMF; - - FixedText aHandlingFT; - RadioButton aFixRB; - RadioButton aFixPropRB; - RadioButton aVarRB; - FixedText aFixFT; - FixedText aFixPropFT; - FixedText aVarFT; - - SwWrtShell* pWrtShell; - sal_Bool bHTMLMode; - - DECL_LINK(CheckBoxHdl, CheckBox *pCB); - - - SwTableOptionsTabPage( Window* pParent, - const SfxItemSet& rSet ); - ~SwTableOptionsTabPage(); - -public: - - static SfxTabPage* Create( Window* pParent, - const SfxItemSet& rAttrSet ); - - virtual sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); - - void SetWrtShell(SwWrtShell* pSh) {pWrtShell = pSh;} - virtual void PageCreated (SfxAllItemSet aSet); - -}; - -/*-------------------------------------------------- - TabPage for ShadowCrsr ---------------------------------------------------*/ -class SwShdwCrsrOptionsTabPage : public SfxTabPage -{ - //nonprinting characters - FixedLine aUnprintFL; - CheckBox aParaCB; - CheckBox aSHyphCB; - CheckBox aSpacesCB; - CheckBox aHSpacesCB; - CheckBox aTabCB; - CheckBox aBreakCB; - CheckBox aCharHiddenCB; - CheckBox aFldHiddenCB; - CheckBox aFldHiddenParaCB; - - FixedLine aSeparatorFL; - - FixedLine aFlagFL; - CheckBox aOnOffCB; - - FixedText aFillModeFT; - RadioButton aFillMarginRB; - RadioButton aFillIndentRB; - RadioButton aFillTabRB; - RadioButton aFillSpaceRB; - - FixedLine aCrsrOptFL; - CheckBox aCrsrInProtCB; - - FixedLine m_aLayoutOptionsFL; - CheckBox m_aMathBaselineAlignmentCB; - - SwWrtShell * m_pWrtShell; - - - SwShdwCrsrOptionsTabPage( Window* pParent, const SfxItemSet& rSet ); - ~SwShdwCrsrOptionsTabPage(); - -public: - - static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); - - virtual sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); - - void SetWrtShell( SwWrtShell * pSh ) { m_pWrtShell = pSh; } - virtual void PageCreated( SfxAllItemSet aSet ); -}; - -/*----------------------------------------------------------------------- - Description: mark preview - -----------------------------------------------------------------------*/ -class SwMarkPreview : public Window -{ - Color m_aBgCol; // background - Color m_aTransCol; // transparency - Color m_aMarkCol; // marks - Color m_aLineCol; // general lines - Color m_aShadowCol; // shadow - Color m_aTxtCol; // text - Color m_aPrintAreaCol; // frame for print area - - Rectangle aPage; - Rectangle aLeftPagePrtArea; - Rectangle aRightPagePrtArea; - - sal_uInt16 nMarkPos; - - using OutputDevice::DrawRect; - void DrawRect(const Rectangle &rRect, const Color &rFillColor, const Color &rLineColor); - - void Paint(const Rectangle&); - void PaintPage(const Rectangle &rRect); - void InitColors( void ); - -protected: - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - -public: - SwMarkPreview(Window* pParent, const ResId& rResID); - virtual ~SwMarkPreview(); - - inline void SetColor(const Color& rCol) { m_aMarkCol = rCol; } - inline void SetMarkPos(sal_uInt16 nPos) { nMarkPos = nPos; } -}; - -/*----------------------------------------------------------------------- - Description: redlining options - -----------------------------------------------------------------------*/ -class SwRedlineOptionsTabPage : public SfxTabPage -{ - FixedLine aInsertFL; - - FixedText aInsertFT; - FixedText aInsertAttrFT; - ListBox aInsertLB; - FixedText aInsertColorFT; - ColorListBox aInsertColorLB; - SvxFontPrevWindow aInsertedPreviewWN; - - FixedText aDeletedFT; - FixedText aDeletedAttrFT; - ListBox aDeletedLB; - FixedText aDeletedColorFT; - ColorListBox aDeletedColorLB; - SvxFontPrevWindow aDeletedPreviewWN; - - FixedText aChangedFT; - FixedText aChangedAttrFT; - ListBox aChangedLB; - FixedText aChangedColorFT; - ColorListBox aChangedColorLB; - SvxFontPrevWindow aChangedPreviewWN; - - FixedLine aChangedFL; - - FixedText aMarkPosFT; - ListBox aMarkPosLB; - FixedText aMarkColorFT; - ColorListBox aMarkColorLB; - SwMarkPreview aMarkPreviewWN; - - String sAuthor; - String sNone; - - SwRedlineOptionsTabPage( Window* pParent, const SfxItemSet& rSet ); - ~SwRedlineOptionsTabPage(); - - 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 sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); -}; - -/*------------------------------------------------------- - TabPage test settings for SW ---------------------------------------------------------- */ - -#if OSL_DEBUG_LEVEL > 1 - -class SwTestTabPage : public SfxTabPage -{ -public: - SwTestTabPage( Window* pParent, - const SfxItemSet& rSet ); - - static SfxTabPage* Create( Window* pParent, - const SfxItemSet& rAttrSet ); - - virtual sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); - -private: - FixedLine aTestFL; - CheckBox aTest1CBox; - CheckBox aTest2CBox; - CheckBox aTest3CBox; - CheckBox aTest4CBox; - CheckBox aTest5CBox; - CheckBox aTest6CBox; - CheckBox aTest7CBox; - CheckBox aTest8CBox; - CheckBox aTest9CBox; - CheckBox aTest10CBox; - - sal_Bool bAttrModified; - - void Init(); - DECL_LINK( AutoClickHdl, CheckBox * ); - -}; -#endif //PRODUCT - -#endif -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/outline.hxx b/sw/source/ui/inc/outline.hxx deleted file mode 100644 index 083921f865..0000000000 --- a/sw/source/ui/inc/outline.hxx +++ /dev/null @@ -1,155 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _OUTLINE_HXX -#define _OUTLINE_HXX - -#include <sfx2/tabdlg.hxx> - - -#include <vcl/menu.hxx> - -#include <vcl/button.hxx> -#include <svtools/stdctrl.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/lstbox.hxx> - -#include <vcl/edit.hxx> - -#include <vcl/field.hxx> - -#include "swtypes.hxx" //for MAXLEVEL -#include <numprevw.hxx> -#include <numberingtypelistbox.hxx> - -class SwWrtShell; -class SwNumRule; -class SwChapterNumRules; - -class SwOutlineTabDialog : public SfxTabDialog -{ - static sal_uInt16 nNumLevel; - - String aNullStr; - String aCollNames[MAXLEVEL]; - PopupMenu aFormMenu; - - SwWrtShell& rWrtSh; - SwNumRule* pNumRule; - SwChapterNumRules* pChapterNumRules; - - sal_Bool bModified : 1; - - protected: - DECL_LINK( CancelHdl, Button * ); - DECL_LINK( FormHdl, Button * ); - DECL_LINK( MenuSelectHdl, Menu * ); - - virtual void PageCreated(sal_uInt16 nPageId, SfxTabPage& rPage); - virtual short Ok(); - - public: - SwOutlineTabDialog(Window* pParent, - const SfxItemSet* pSwItemSet, - SwWrtShell &); - ~SwOutlineTabDialog(); - - SwNumRule* GetNumRule() {return pNumRule;} - sal_uInt16 GetLevel(const String &rFmtName) const; - String* GetCollNames() {return aCollNames;} - - static sal_uInt16 GetActNumLevel() {return nNumLevel;} - static void SetActNumLevel(sal_uInt16 nSet) {nNumLevel = nSet;} -}; - -class SwOutlineSettingsTabPage : public SfxTabPage -{ - FixedLine aLevelFL; - ListBox aLevelLB; - - FixedLine aNumberFL; - FixedText aCollLbl; - ListBox aCollBox; - FixedText aNumberLbl; - SwNumberingTypeListBox aNumberBox; - FixedText aCharFmtFT; - ListBox aCharFmtLB; - FixedText aAllLevelFT; - NumericField aAllLevelNF; - FixedText aDelim; - FixedText aPrefixFT; - Edit aPrefixED; - FixedText aSuffixFT; - Edit aSuffixED; - FixedText aStartLbl; - NumericField aStartEdit; - NumberingPreview aPreviewWIN; - - String aNoFmtName; - String aSaveCollNames[MAXLEVEL]; - SwWrtShell* pSh; - SwNumRule* pNumRule; - String* pCollNames; - sal_uInt16 nActLevel; - - DECL_LINK( LevelHdl, ListBox * ); - DECL_LINK( ToggleComplete, NumericField * ); - DECL_LINK( CollSelect, ListBox * ); - DECL_LINK( CollSelectGetFocus, ListBox * ); - DECL_LINK( NumberSelect, SwNumberingTypeListBox * ); - DECL_LINK( DelimModify, Edit * ); - DECL_LINK( StartModified, NumericField * ); - DECL_LINK( CharFmtHdl, ListBox * ); - - void Update(); - - void SetModified(){aPreviewWIN.Invalidate();} - void CheckForStartValue_Impl(sal_uInt16 nNumberingType); - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - -public: - SwOutlineSettingsTabPage(Window* pParent, const SfxItemSet& rSet); - ~SwOutlineSettingsTabPage(); - - void SetWrtShell(SwWrtShell* pShell); - - virtual void ActivatePage(const SfxItemSet& rSet); - virtual int DeactivatePage(SfxItemSet *pSet); - - virtual sal_Bool FillItemSet( SfxItemSet& rSet ); - virtual void Reset( const SfxItemSet& rSet ); - static SfxTabPage* Create( Window* pParent, - const SfxItemSet& rAttrSet); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/pardlg.hxx b/sw/source/ui/inc/pardlg.hxx deleted file mode 100644 index 1ee9b31c13..0000000000 --- a/sw/source/ui/inc/pardlg.hxx +++ /dev/null @@ -1,42 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SW_PARDLG_HXX -#define _SW_PARDLG_HXX - -#include <sfx2/tabdlg.hxx> - -class SwView; -class SfxItemSet; - -//DialogModes: -#define DLG_STD 0 -#define DLG_ENVELOP 2 - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/pattern.hxx b/sw/source/ui/inc/pattern.hxx deleted file mode 100644 index d28afaafc8..0000000000 --- a/sw/source/ui/inc/pattern.hxx +++ /dev/null @@ -1,46 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _PATTERN_HXX -#define _PATTERN_HXX - -#include <sfx2/basedlgs.hxx> -class Window; -class SfxItemSet; - -class SwBackgroundDlg : public SfxSingleTabDialog -{ -public: - - SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet); - ~SwBackgroundDlg(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/pgfnote.hxx b/sw/source/ui/inc/pgfnote.hxx deleted file mode 100644 index d9e92e46a0..0000000000 --- a/sw/source/ui/inc/pgfnote.hxx +++ /dev/null @@ -1,95 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _PGFNOTE_HXX -#define _PGFNOTE_HXX - -#include <sfx2/tabdlg.hxx> - -#include <vcl/field.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/group.hxx> -#include <svtools/ctrlbox.hxx> - -/*-------------------------------------------------------------------- - Description: footnote settings TabPage - --------------------------------------------------------------------*/ -class SwFootNotePage: public SfxTabPage -{ -public: - static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); - static sal_uInt16* GetRanges(); - - virtual sal_Bool FillItemSet(SfxItemSet &rSet); - virtual void Reset(const SfxItemSet &rSet); - -private: - SwFootNotePage(Window *pParent, const SfxItemSet &rSet); - ~SwFootNotePage(); - - FixedLine aPosHeader; - RadioButton aMaxHeightPageBtn; - RadioButton aMaxHeightBtn; - MetricField aMaxHeightEdit; - FixedText aDistLbl; - MetricField aDistEdit; - - FixedLine aLineHeader; - FixedText aLinePosLbl; - ListBox aLinePosBox; - FixedText aLineTypeLbl; - LineListBox aLineTypeBox; - FixedText aLineWidthLbl; - MetricField aLineWidthEdit; - FixedText aLineColorLbl; - ColorListBox aLineColorBox; - FixedText aLineLengthLbl; - MetricField aLineLengthEdit; - FixedText aLineDistLbl; - MetricField aLineDistEdit; - - DECL_LINK( HeightPage, Button * ); - DECL_LINK( HeightMetric, Button * ); - DECL_LINK( HeightModify, MetricField * ); - DECL_LINK( LineWidthChanged_Impl, void * ); - DECL_LINK( LineColorSelected_Impl, void * ); - - long lMaxHeight; - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - - virtual void ActivatePage( const SfxItemSet& rSet ); - virtual int DeactivatePage( SfxItemSet* pSet = 0 ); - -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/pggrid.hxx b/sw/source/ui/inc/pggrid.hxx deleted file mode 100644 index 3290088472..0000000000 --- a/sw/source/ui/inc/pggrid.hxx +++ /dev/null @@ -1,117 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _PGGRID_HXX -#define _PGGRID_HXX - -#include <sfx2/tabdlg.hxx> -#include <colex.hxx> -#include <vcl/field.hxx> -#include <vcl/fixed.hxx> -#include <svtools/ctrlbox.hxx> - -/*-------------------------------------------------------------------- - Description: TabPage Format/(Styles/)Page/Text grid - --------------------------------------------------------------------*/ -class SwTextGridPage: public SfxTabPage -{ - FixedLine aGridTypeFL; - RadioButton aNoGridRB; - RadioButton aLinesGridRB; - RadioButton aCharsGridRB; - CheckBox aSnapToCharsCB; - - SwPageGridExample aExampleWN; - - FixedLine aLayoutFL; - - FixedText aLinesPerPageFT; - NumericField aLinesPerPageNF; - FixedText aLinesRangeFT; - - FixedText aTextSizeFT; - MetricField aTextSizeMF; - - FixedText aCharsPerLineFT; - NumericField aCharsPerLineNF; - FixedText aCharsRangeFT; - - FixedText aCharWidthFT; - MetricField aCharWidthMF; - - FixedText aRubySizeFT; - MetricField aRubySizeMF; - - CheckBox aRubyBelowCB; - - FixedLine aDisplayFL; - - CheckBox aDisplayCB; - CheckBox aPrintCB; - FixedText aColorFT; - ColorListBox aColorLB; - - Window* aControls[20]; - - sal_Int32 m_nRubyUserValue; - sal_Bool m_bRubyUserValue; - Size m_aPageSize; - sal_Bool m_bVertical; - sal_Bool m_bSquaredMode; - sal_Bool m_bHRulerChanged; - sal_Bool m_bVRulerChanged; - - SwTextGridPage(Window *pParent, const SfxItemSet &rSet); - ~SwTextGridPage(); - - void UpdatePageSize(const SfxItemSet& rSet); - void PutGridItem(SfxItemSet& rSet); - void SetLinesOrCharsRanges(FixedText & rField, const sal_Int32 nValue ); - - DECL_LINK(GridTypeHdl, RadioButton*); - DECL_LINK(CharorLineChangedHdl, SpinField*); - DECL_LINK(TextSizeChangedHdl, SpinField*); - DECL_LINK(GridModifyHdl, void*); - DECL_LINK(DisplayGridHdl, CheckBox*); - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - -public: - static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); - static sal_uInt16* GetRanges(); - - virtual sal_Bool FillItemSet(SfxItemSet &rSet); - virtual void Reset(const SfxItemSet &rSet); - - virtual void ActivatePage( const SfxItemSet& rSet ); - virtual int DeactivatePage( SfxItemSet* pSet = 0 ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/popbox.hxx b/sw/source/ui/inc/popbox.hxx deleted file mode 100644 index 41595dc0b1..0000000000 --- a/sw/source/ui/inc/popbox.hxx +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _POPBOX_HXX -#define _POPBOX_HXX - - -#include <vcl/toolbox.hxx> -#include <svtools/transfer.hxx> - -class SwNavigationPI; - -class SwHelpToolBox: public ToolBox, public DropTargetHelper -{ - Link aDoubleClickLink; - Link aRightClickLink; // link gets mouse event as parameter !!! - - using ToolBox::DoubleClick; - -protected: - virtual void MouseButtonDown(const MouseEvent &rEvt); - virtual long DoubleClick(ToolBox *); - virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); - virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); - -public: - SwHelpToolBox(SwNavigationPI* 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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/popup.hrc b/sw/source/ui/inc/popup.hrc deleted file mode 100644 index 72fc074b52..0000000000 --- a/sw/source/ui/inc/popup.hrc +++ /dev/null @@ -1,58 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#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) -#define MN_MEDIA_POPUPMENU (RC_POPUPS_BEGIN + 10) -#define MN_LANGUAGE_FOR_TEXT (RC_POPUPS_BEGIN + 11) -#define MN_LANGUAGE_FOR_PARAGRAPH (RC_POPUPS_BEGIN + 12) -#define MN_LANGUAGE_FOR_DOCUMENT (RC_POPUPS_BEGIN + 13) -#define MN_ANNOTATION_POPUPMENU (RC_POPUPS_BEGIN + 14) -#define MN_ANNOTATION_BUTTON (RC_POPUPS_BEGIN + 15) -#define MN_REDCOMMENT_POPUPMENU (RC_POPUPS_BEGIN + 16) -#define MN_REDCOMMENT_BUTTON (RC_POPUPS_BEGIN + 17) - -#if MN_MEDIA_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 deleted file mode 100644 index 0ec702a9e8..0000000000 --- a/sw/source/ui/inc/prcntfld.hxx +++ /dev/null @@ -1,99 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _PRCNTFLD_HXX -#define _PRCNTFLD_HXX - -#include <vcl/field.hxx> -#include "swdllapi.h" - -class SW_DLLPUBLIC PercentField : public MetricField -{ - sal_Int64 nRefValue; // 100% value for conversion (in Twips) - sal_Int64 nOldMax; - sal_Int64 nOldMin; - sal_Int64 nOldSpinSize; - sal_Int64 nOldBaseValue; - sal_Int64 nLastPercent; - sal_Int64 nLastValue; - sal_uInt16 nOldDigits; - FieldUnit eOldUnit; - sal_Bool bLockAutoCalculation; //prevent recalcution of percent values when the - //reference value is changed - - SW_DLLPRIVATE sal_Int64 ImpPower10(sal_uInt16 n); - - using MetricField::SetValue; - using MetricField::GetValue; - using MetricFormatter::SetUserValue; - using MetricFormatter::SetBaseValue; - using MetricFormatter::SetMax; - using MetricFormatter::SetMin; - using NumericFormatter::IsValueModified; - -public: - - virtual void SetValue(sal_Int64 nNewValue, FieldUnit eInUnit = FUNIT_NONE); - - PercentField( Window* pWin, const ResId& rResId ); - - void SetPrcntValue(sal_Int64 nNewValue, FieldUnit eInUnit = FUNIT_NONE); - - void SetUserValue(sal_Int64 nNewValue, FieldUnit eInUnit = FUNIT_NONE); - - void SetBaseValue(sal_Int64 nNewValue, FieldUnit eInUnit = FUNIT_NONE); - - sal_Int64 GetValue(FieldUnit eOutUnit = FUNIT_NONE); - - sal_Bool IsValueModified(); - - //using NumericFormatter::SetMax; - void SetMax(sal_Int64 nNewMax, FieldUnit eInUnit = FUNIT_NONE); - - //using NumericFormatter::SetMin; - void SetMin(sal_Int64 nNewMin, FieldUnit eInUnit = FUNIT_NONE); - - sal_Int64 NormalizePercent(sal_Int64 nValue); - sal_Int64 DenormalizePercent(sal_Int64 nValue); - - void SetRefValue(sal_Int64 nValue); - inline sal_Int64 GetRefValue() const { return nRefValue; } - sal_Int64 GetRealValue(FieldUnit eOutUnit = FUNIT_NONE); - - sal_Int64 Convert(sal_Int64 nValue, FieldUnit eInUnit, FieldUnit eOutUnit); - - void ShowPercent(sal_Bool bPercent); - - sal_uInt16 GetOldDigits() const {return nOldDigits;} - - void LockAutoCalculation(sal_Bool bLock) {bLockAutoCalculation = bLock;} - sal_Bool IsAutoCalculationLocked()const {return bLockAutoCalculation;} -}; - -#endif // _PRCNTFLD_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/pview.hxx b/sw/source/ui/inc/pview.hxx deleted file mode 100644 index 92dba1e203..0000000000 --- a/sw/source/ui/inc/pview.hxx +++ /dev/null @@ -1,334 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWPVIEW_HXX -#define _SWPVIEW_HXX - -#include <tools/link.hxx> -#include <vcl/window.hxx> -#include <sfx2/viewfrm.hxx> -#include <sfx2/viewfac.hxx> -#include <sfx2/viewsh.hxx> -#include <svx/zoomitem.hxx> -#include "swdllapi.h" -#include "shellid.hxx" - -class SwViewOption; -class SwDocShell; -class SwScrollbar; -class ViewShell; -class SwPagePreView; -class ImageButton; -class Button; -class SwRect; -class DataChangedEvent; -class CommandEvent; -class SvtAccessibilityOptions; -// OD 12.12.2002 #103492# -class SwPagePreviewLayout; - -// OD 24.03.2003 #108282# - delete member <mnVirtPage> and its accessor. -class SwPagePreViewWin : public Window -{ - ViewShell* mpViewShell; - sal_uInt16 mnSttPage; - sal_uInt8 mnRow, mnCol; - Size maPxWinSize; - Fraction maScale; - SwPagePreView& mrView; - // OD 02.12.2002 #103492# - bool mbCalcScaleForPreviewLayout; - Rectangle maPaintedPreviewDocRect; - // OD 12.12.2002 #103492# - SwPagePreviewLayout* mpPgPrevwLayout; - - void SetPagePreview( sal_uInt8 nRow, sal_uInt8 nCol ); - - using Window::Scroll; - -public: - SwPagePreViewWin( Window* pParent, SwPagePreView& rView ); - ~SwPagePreViewWin(); - - // calls 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 ); - - ViewShell* GetViewShell() const { return mpViewShell; } - - sal_uInt8 GetRow() const { return mnRow; } - void SetRow( sal_uInt8 n ) { if( n ) mnRow = n; } - - sal_uInt8 GetCol() const { return mnCol; } - void SetCol( sal_uInt8 n ) { if( n ) mnCol = n; } - - sal_uInt16 GetSttPage() const { return mnSttPage; } - void SetSttPage( sal_uInt16 n ) { mnSttPage = n; } - - /** get selected page number of document preview - - OD 13.12.2002 #103492# - - @author OD - - @return selected page number - */ - sal_uInt16 SelectedPage() const; - - /** set selected page number in document preview - - OD 13.12.2002 #103492# - - @author OD - - @param _nSelectedPageNum - input parameter - physical page number of page that will be the selected one. - */ - void SetSelectedPage( sal_uInt16 _nSelectedPageNum ); - - //JP 19.08.98: bei Einspaltigkeit gibt es keine 0. Seite! - sal_uInt16 GetDefSttPage() const { return 1 == mnCol ? 1 : 0; } - - void CalcWish( sal_uInt8 nNewRow, sal_uInt8 nNewCol ); - - const Size& GetWinSize() const { return maPxWinSize; } - void SetWinSize( const Size& rNewSize ); - - // OD 18.12.2002 #103492# - add <MV_SELPAGE>, <MV_SCROLL> - enum MoveMode{ MV_CALC, MV_PAGE_UP, MV_PAGE_DOWN, MV_DOC_STT, MV_DOC_END, - MV_SELPAGE, MV_SCROLL, MV_NEWWINSIZE }; - int MovePage( int eMoveMode ); - - // erzeuge den String fuer die StatusLeiste - void GetStatusStr( String& rStr, sal_uInt16 nPageCount ) const; - - void RepaintCoreRect( const SwRect& rRect ); - - /** method to adjust preview to a new zoom factor - - OD 02.12.2002 #103492# - paint of preview is prepared for a new zoom factor - OD 24.09.2003 #i19975# - zoom type has also been considered. - Thus, add new parameter <_eZoomType> - - @author OD - */ - void AdjustPreviewToNewZoom( const sal_uInt16 _nZoomFactor, - const SvxZoomType _eZoomType ); - - const Rectangle& GetPaintedPreviewDocRect() const - { - return maPaintedPreviewDocRect; - } - - void Scroll(long nXMove, long nYMove, sal_uInt16 nFlags = 0); - - /** method to enable/disable book preview - - OD 2004-03-05 #i18143# - - @author OD - - @param _bBookPreview - input parameter - boolean indicating, if book preview mode has to - switch on <sal_True> or of <sal_False> - - @return boolean indicating, if book preview mode has changed. - */ - bool SetBookPreviewMode( const bool _bBookPreview ); - - virtual ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessible> - CreateAccessible(); -}; - -/*-------------------------------------------------------------------- - Description: view of a document - --------------------------------------------------------------------*/ -class SW_DLLPUBLIC SwPagePreView: public SfxViewShell -{ - // ViewWindow and handle to core - // current 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; - // to support keyboard the number of the page to go to can be set too - sal_uInt16 nNewPage; - // visible range - String sPageStr; - Size aDocSz; - Rectangle aVisArea; - - // MDI control elements - SwScrollbar *pHScrollbar; - SwScrollbar *pVScrollbar; - ImageButton *pPageUpBtn, - *pPageDownBtn; - // dummy window for filling the lower right edge when both scrollbars are active - Window *pScrollFill; - - sal_uInt16 mnPageCount; - sal_Bool bNormalPrint; - - // OD 09.01.2003 #106334# - // new members to reset design mode at draw view for form shell on switching - // back from writer page preview to normal view. - sal_Bool mbResetFormDesignMode:1; - sal_Bool mbFormDesignModeToReset:1; - - SW_DLLPRIVATE void Init(const SwViewOption* = 0); - SW_DLLPRIVATE Point AlignToPixel(const Point& rPt) const; - - SW_DLLPRIVATE int _CreateScrollbar( sal_Bool bHori ); - SW_DLLPRIVATE DECL_LINK( ScrollHdl, SwScrollbar * ); - SW_DLLPRIVATE DECL_LINK( EndScrollHdl, SwScrollbar * ); - SW_DLLPRIVATE DECL_LINK( BtnPage, Button * ); - SW_DLLPRIVATE int ChgPage( int eMvMode, int bUpdateScrollbar = sal_True ); - - - SW_DLLPRIVATE virtual SfxPrinter* GetPrinter( sal_Bool bCreate = sal_False ); - SW_DLLPRIVATE virtual sal_uInt16 SetPrinter( SfxPrinter *pNewPrinter, sal_uInt16 nDiffFlags = SFX_PRINTER_ALL, bool bIsAPI=false ); - SW_DLLPRIVATE virtual SfxTabPage* CreatePrintOptionsPage( Window *pParent, - const SfxItemSet &rOptions ); - - SW_DLLPRIVATE void CalcAndSetBorderPixel( SvBorder &rToFill, sal_Bool bInner ); - - /** help method to execute SfxRequest FN_PAGE_UP and FN_PAGE_DOWN - - OD 04.03.2003 #107369# - - @param _bPgUp - input parameter - boolean that indicates, if FN_PAGE_UP or FN_PAGE_DOWN - has to be executed. - - @param _pReq - optional input parameter - pointer to the <SfxRequest> instance, if existing. - - @author OD - */ - SW_DLLPRIVATE void _ExecPgUpAndPgDown( const bool _bPgUp, - SfxRequest* _pReq = 0 ); - -protected: - virtual void InnerResizePixel( const Point &rOfs, const Size &rSize ); - virtual void OuterResizePixel( const Point &rOfs, const Size &rSize ); - virtual Size GetOptimalSizePixel() const; - - void SetZoom(SvxZoomType eSet, sal_uInt16 nFactor); - -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&, sal_Bool bUpdateScrollbar = sal_True); - - inline void AdjustEditWin(); - - void ScrollViewSzChg(); - void ScrollDocSzChg(); - void ShowHScrollbar(sal_Bool bShow); - - void ShowVScrollbar(sal_Bool bShow); - - sal_uInt16 GetPageCount() const { return mnPageCount; } - - sal_Bool HandleWheelCommands( const CommandEvent& ); - - const String& GetPrevSwViewData() const { return sSwViewData; } - void SetNewCrsrPos( const String& rStr ) { sNewCrsrPos = rStr; } - const String& GetNewCrsrPos() const { return sNewCrsrPos; } - - sal_uInt16 GetNewPage() const {return nNewPage;} - void SetNewPage(sal_uInt16 nSet) {nNewPage = nSet;} - - // handler - void Execute(SfxRequest&); - void GetState(SfxItemSet&); - void StateUndo(SfxItemSet&); - - SwDocShell* GetDocShell(); - - //apply Accessiblity options - void ApplyAccessiblityOptions(SvtAccessibilityOptions& rAccessibilityOptions); - - // OD 09.01.2003 #106334# - inline method to request values of new members - // <mbResetFormDesignMode> and <mbFormDesignModeToReset> - inline sal_Bool ResetFormDesignMode() const - { - return mbResetFormDesignMode; - } - - inline sal_Bool FormDesignModeToReset() const - { - return mbFormDesignModeToReset; - } - - /** adjust position of vertical scrollbar - - OD 19.02.2003 #107369 - Currently used, if the complete preview layout rows fit into to the given - window, if a new page is selected and this page is visible. - - @author OD - - @param _nNewThumbPos - input parameter - new position, which will be assigned to the vertical - scrollbar. - */ - void SetVScrollbarThumbPos( const sal_uInt16 _nNewThumbPos ); - - SwPagePreView( SfxViewFrame* pFrame, SfxViewShell* ); - ~SwPagePreView(); -}; - -// ----------------- inline methods ---------------------- -inline void SwPagePreView::AdjustEditWin() -{ - OuterResizePixel( Point(), GetFrameWindow()->GetOutputSizePixel() ); -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/redlndlg.hxx b/sw/source/ui/inc/redlndlg.hxx deleted file mode 100644 index bb42ab15e5..0000000000 --- a/sw/source/ui/inc/redlndlg.hxx +++ /dev/null @@ -1,180 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWREDLNDLG_HXX -#define _SWREDLNDLG_HXX -#include "swdllapi.h" -#include "chldwrap.hxx" -#include <redline.hxx> -#include <tools/datetime.hxx> -#include <vcl/msgbox.hxx> -#include <svl/svstdarr.hxx> -#include <svl/eitem.hxx> -#include <sfx2/basedlgs.hxx> -#include <sfx2/viewfrm.hxx> -#include <sfx2/dispatch.hxx> -#include <svx/ctredlin.hxx> -#include <svx/postattr.hxx> - -class SwChildWinWrapper; - -struct SwRedlineDataChild -{ - const SwRedlineData* pChild; // link to original stacked data - const SwRedlineDataChild* pNext; // link to stacked data - SvLBoxEntry* pTLBChild; // corresponding TreeListBox entry -}; - -struct SwRedlineDataParent -{ - const SwRedlineData* pData; // RedlineDataPtr - const SwRedlineDataChild* pNext; // link to stacked data - SvLBoxEntry* pTLBParent; // corresponding TreeListBox entry - String sComment; // redline comment - - inline sal_Bool operator==( const SwRedlineDataParent& rObj ) const - { return (pData && pData->GetSeqNo() == rObj.pData->GetSeqNo()); } - inline sal_Bool operator< ( const SwRedlineDataParent& rObj ) const - { return (pData && pData->GetSeqNo() < rObj.pData->GetSeqNo()); } -}; - -typedef SwRedlineDataParent* SwRedlineDataParentPtr; -SV_DECL_PTRARR_DEL(SwRedlineDataParentArr, SwRedlineDataParentPtr, 10, 20) - - -SV_DECL_PTRARR_SORT(SwRedlineDataParentSortArr, SwRedlineDataParentPtr, 10, 20) - - -typedef SwRedlineDataChild* SwRedlineDataChildPtr; -SV_DECL_PTRARR_DEL(SwRedlineDataChildArr, SwRedlineDataChildPtr, 4, 4) - - -typedef SvLBoxEntry* SvLBoxEntryPtr; -SV_DECL_PTRARR(SvLBoxEntryArr, SvLBoxEntryPtr, 100, 100) - -class SW_DLLPUBLIC SwRedlineAcceptDlg -{ - Dialog* pParentDlg; - SwRedlineDataParentArr aRedlineParents; - SwRedlineDataChildArr aRedlineChilds; - SwRedlineDataParentSortArr aUsedSeqNo; - SvxAcceptChgCtr aTabPagesCTRL; - PopupMenu aPopup; - Timer aDeselectTimer; - Timer aSelectTimer; - String sInserted; - String sDeleted; - String sFormated; - String sTableChgd; - String sFmtCollSet; - String sFilterAction; - String sAutoFormat; - Size aBorderSz; - SvxTPView* pTPView; - SvxRedlinTable* pTable; // PB 2006/02/02 #i48648 now SvHeaderTabListBox - Link aOldSelectHdl; - Link aOldDeselectHdl; - sal_Bool bOnlyFormatedRedlines; - sal_Bool bHasReadonlySel; - sal_Bool bRedlnAutoFmt; - - // prevent update dialog data during longer operations (cf #102657#) - bool bInhibitActivate; - - SW_DLLPRIVATE DECL_LINK( AcceptHdl, void* ); - SW_DLLPRIVATE DECL_LINK( AcceptAllHdl, void* ); - SW_DLLPRIVATE DECL_LINK( RejectHdl, void* ); - SW_DLLPRIVATE DECL_LINK( RejectAllHdl, void* ); - SW_DLLPRIVATE DECL_LINK( UndoHdl, void* ); - SW_DLLPRIVATE DECL_LINK( DeselectHdl, void* ); - SW_DLLPRIVATE DECL_LINK( SelectHdl, void* ); - SW_DLLPRIVATE DECL_LINK( GotoHdl, void* ); - SW_DLLPRIVATE DECL_LINK( CommandHdl, void* ); - - SW_DLLPRIVATE sal_uInt16 CalcDiff(sal_uInt16 nStart, sal_Bool bChild); - SW_DLLPRIVATE void InsertChilds(SwRedlineDataParent *pParent, const SwRedline& rRedln, const sal_uInt16 nAutoFmt); - SW_DLLPRIVATE void InsertParents(sal_uInt16 nStart, sal_uInt16 nEnd = USHRT_MAX); - SW_DLLPRIVATE void RemoveParents(sal_uInt16 nStart, sal_uInt16 nEnd); - SW_DLLPRIVATE void InitAuthors(); - - SW_DLLPRIVATE String GetRedlineText(const SwRedline& rRedln, DateTime &rDateTime, sal_uInt16 nStack = 0); - SW_DLLPRIVATE const String& GetActionText(const SwRedline& rRedln, sal_uInt16 nStack = 0); - SW_DLLPRIVATE sal_uInt16 GetRedlinePos( const SvLBoxEntry& rEntry) const; - -public: - SwRedlineAcceptDlg(Dialog *pParent, sal_Bool bAutoFmt = sal_False); - virtual ~SwRedlineAcceptDlg(); - - DECL_LINK( FilterChangedHdl, void *pDummy = 0 ); - - inline SvxAcceptChgCtr* GetChgCtrl() { return &aTabPagesCTRL; } - inline sal_Bool HasRedlineAutoFmt() const { return bRedlnAutoFmt; } - - void Init(sal_uInt16 nStart = 0); - void CallAcceptReject( sal_Bool bSelect, sal_Bool bAccept ); - - void Initialize(const String &rExtraData); - void FillInfo(String &rExtraData) const; - - virtual void Activate(); - virtual void Resize(); -}; - -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); -}; - -class SwRedlineAcceptChild : public SwChildWinWrapper -{ -public: - SwRedlineAcceptChild( Window* , - sal_uInt16 nId, - SfxBindings*, - SfxChildWinInfo* ); - - SFX_DECL_CHILDWINDOW( SwRedlineAcceptChild ); - - virtual sal_Bool ReInitDlg(SwDocShell *pDocSh); -}; - - -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/regionsw.hxx b/sw/source/ui/inc/regionsw.hxx deleted file mode 100644 index 206f7358e4..0000000000 --- a/sw/source/ui/inc/regionsw.hxx +++ /dev/null @@ -1,319 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _REGIONSW_HXX -#define _REGIONSW_HXX - -#include <hintids.hxx> -#include <vcl/field.hxx> -#include <vcl/lstbox.hxx> -#include <vcl/edit.hxx> -#include <vcl/button.hxx> -#include <vcl/fixed.hxx> -#include <vcl/combobox.hxx> -#include <vcl/group.hxx> -#include <svtools/svtreebx.hxx> -#include <sfx2/basedlgs.hxx> -#include <sfx2/tabdlg.hxx> -#include <editeng/brshitem.hxx> - -#include <condedit.hxx> -#include <section.hxx> -#include <fmtclds.hxx> -#include <fmtftntx.hxx> -#include <fmtclbl.hxx> -#include <numberingtypelistbox.hxx> -#include <editeng/frmdiritem.hxx> -#include <vcl/image.hxx> -#include <svx/paraprev.hxx> -#include <editeng/lrspitem.hxx> - -class SwWrtShell; -class EditRegionDlg; - -namespace sfx2 -{ - class DocumentInserter; - class FileDialogHelper; -} - -/************************************************************************* - dialog "edit regions" -*************************************************************************/ -class SectRepr; -typedef SectRepr* SectReprPtr; -SV_DECL_PTRARR_SORT( SectReprArr, SectReprPtr, 0, 4 ) - -class SwEditRegionDlg : public SfxModalDialog -{ - FixedLine aNameFL; - Edit aCurName; - SvTreeListBox aTree; - - FixedLine aLinkFL; - TriStateBox aFileCB; - CheckBox aDDECB; - FixedText aFileNameFT; - FixedText aDDECommandFT; - Edit aFileNameED; - PushButton aFilePB; - FixedText aSubRegionFT; - ComboBox aSubRegionED; - bool bSubRegionsFilled; - - FixedLine aProtectFL; - TriStateBox aProtectCB; - CheckBox aPasswdCB; - PushButton aPasswdPB; - - FixedLine aHideFL; - TriStateBox aHideCB; - FixedText aConditionFT; - ConditionEdit aConditionED; - - // #114856# edit in readonly sections - FixedLine aPropertiesFL; - TriStateBox aEditInReadonlyCB; - - OKButton aOK; - CancelButton aCancel; - PushButton aOptionsPB; - PushButton aDismiss; - HelpButton aHelp; - ImageList aImageIL; - - SwWrtShell& rSh; - SectReprArr aSectReprArr; - SvLBoxEntry* pAktEntry; - const SwSection* pCurrSect; - sfx2::DocumentInserter* m_pDocInserter; - Window* m_pOldDefDlgParent; - - sal_Bool bDontCheckPasswd :1; - sal_Bool bWeb :1; - - - Image BuildBitmap(sal_Bool bProtect,sal_Bool bHidden); - - void RecurseList( const SwSectionFmt* pFmt, SvLBoxEntry* pEntry); - sal_uInt16 FindArrPos(const SwSectionFmt* pFmt); - - DECL_LINK( GetFirstEntryHdl, SvTreeListBox * ); - DECL_LINK( DeselectHdl, SvTreeListBox * ); - - DECL_LINK( OkHdl, CheckBox * ); - DECL_LINK( NameEditHdl, Edit * ); - DECL_LINK( ConditionEditHdl, Edit * ); - - DECL_LINK( ChangePasswdHdl, Button * ); - DECL_LINK( ChangeProtectHdl, TriStateBox * ); - DECL_LINK( ChangeHideHdl, TriStateBox * ); - // #114856# edit in readonly sections - DECL_LINK( ChangeEditInReadonlyHdl, TriStateBox * ); - DECL_LINK( ChangeDismissHdl, CheckBox * ); - DECL_LINK( UseFileHdl, CheckBox* ); - DECL_LINK( FileSearchHdl, PushButton* ); - DECL_LINK( OptionsHdl, PushButton* ); - DECL_LINK( FileNameHdl, Edit* ); - DECL_LINK( DDEHdl, CheckBox* ); - DECL_LINK( DlgClosedHdl, sfx2::FileDialogHelper* ); - DECL_LINK( SubRegionEventHdl, VclWindowEvent * ); - - sal_Bool CheckPasswd(CheckBox* pBox = 0); - -public: - SwEditRegionDlg( Window* pParent, SwWrtShell& rWrtSh ); - virtual ~SwEditRegionDlg(); - - void SelectSection(const String& rSectionName); - -}; - -/************************************************************************* - dialog "insert region" -*************************************************************************/ -class SwInsertSectionTabPage : public SfxTabPage -{ - FixedLine aNameFL; - ComboBox aCurName; - - FixedLine aLinkFL; - CheckBox aFileCB; - CheckBox aDDECB; - FixedText aDDECommandFT; - FixedText aFileNameFT; - Edit aFileNameED; - PushButton aFilePB; - FixedText aSubRegionFT; - ComboBox aSubRegionED; - - FixedLine aProtectFL; - CheckBox aProtectCB; - CheckBox aPasswdCB; - PushButton aPasswdPB; - - FixedLine aHideFL; - CheckBox aHideCB; - FixedText aConditionFT; - ConditionEdit aConditionED; - - // #114856# edit in readonly sections - FixedLine aPropertiesFL; - CheckBox aEditInReadonlyCB; - - String m_sFileName; - String m_sFilterName; - String m_sFilePasswd; - -// SwFmtCol* pCols; - ::com::sun::star::uno::Sequence <sal_Int8 > m_aNewPasswd; - SwWrtShell* m_pWrtSh; - sfx2::DocumentInserter* m_pDocInserter; - Window* m_pOldDefDlgParent; - - DECL_LINK( ChangeHideHdl, CheckBox * ); - // #114856# edit in readonly sections - DECL_LINK( ChangeEditInReadonlyHdl, CheckBox * ); - DECL_LINK( ChangeProtectHdl, CheckBox * ); - DECL_LINK( ChangePasswdHdl, Button * ); - DECL_LINK( NameEditHdl, Edit * ); - DECL_LINK( UseFileHdl, CheckBox* ); - DECL_LINK( FileSearchHdl, PushButton* ); - DECL_LINK( DDEHdl, CheckBox* ); - DECL_LINK( DlgClosedHdl, sfx2::FileDialogHelper* ); - -public: - SwInsertSectionTabPage(Window *pParent, const SfxItemSet &rAttrSet); - virtual ~SwInsertSectionTabPage(); - - void SetWrtShell(SwWrtShell& rSh); - - virtual sal_Bool FillItemSet( SfxItemSet& ); - virtual void Reset( const SfxItemSet& ); - - static SfxTabPage* Create( Window* pParent, - const SfxItemSet& rAttrSet); -}; - -class SwSectionFtnEndTabPage : public SfxTabPage -{ - FixedLine aFtnFL; - CheckBox aFtnNtAtTextEndCB; - - CheckBox aFtnNtNumCB; - FixedText aFtnOffsetLbl; - NumericField aFtnOffsetFld; - - CheckBox aFtnNtNumFmtCB; - FixedText aFtnPrefixFT; - Edit aFtnPrefixED; - SwNumberingTypeListBox aFtnNumViewBox; - FixedText aFtnSuffixFT; - Edit aFtnSuffixED; - - FixedLine aEndFL; - CheckBox aEndNtAtTextEndCB; - - CheckBox aEndNtNumCB; - FixedText aEndOffsetLbl; - NumericField aEndOffsetFld; - - CheckBox aEndNtNumFmtCB; - FixedText aEndPrefixFT; - Edit aEndPrefixED; - SwNumberingTypeListBox aEndNumViewBox; - FixedText aEndSuffixFT; - Edit aEndSuffixED; - - - DECL_LINK( FootEndHdl, CheckBox * ); - void ResetState( sal_Bool bFtn, const SwFmtFtnEndAtTxtEnd& ); - -public: - SwSectionFtnEndTabPage( Window *pParent, const SfxItemSet &rAttrSet ); - virtual ~SwSectionFtnEndTabPage(); - - virtual sal_Bool FillItemSet( SfxItemSet& ); - virtual void Reset( const SfxItemSet& ); - - static SfxTabPage* Create( Window* pParent, - const SfxItemSet& rAttrSet); -}; - -class SwSectionIndentTabPage : public SfxTabPage -{ - FixedLine aIndentFL; - FixedText aBeforeFT; - MetricField aBeforeMF; - FixedText aAfterFT; - MetricField aAfterMF; - - SvxParaPrevWindow aPreviewWin; - - DECL_LINK(IndentModifyHdl, MetricField*); -public: - SwSectionIndentTabPage( Window *pParent, const SfxItemSet &rAttrSet ); - virtual ~SwSectionIndentTabPage(); - - virtual sal_Bool FillItemSet( SfxItemSet& ); - virtual void Reset( const SfxItemSet& ); - - static SfxTabPage* Create( Window* pParent, - const SfxItemSet& rAttrSet); - - void SetWrtShell(SwWrtShell& rSh); -}; - -class SwInsertSectionTabDialog : public SfxTabDialog -{ - SwWrtShell& rWrtSh; - ::std::auto_ptr<SwSectionData> m_pSectionData; - -protected: - virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ); - virtual short Ok(); -public: - SwInsertSectionTabDialog(Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh); - virtual ~SwInsertSectionTabDialog(); - - void SetSectionData(SwSectionData const& rSect); - SwSectionData * GetSectionData() { return m_pSectionData.get(); } -}; - -class SwSectionPropertyTabDialog : public SfxTabDialog -{ - SwWrtShell& rWrtSh; -protected: - virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ); -public: - SwSectionPropertyTabDialog(Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh); - virtual ~SwSectionPropertyTabDialog(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/ribbar.hrc b/sw/source/ui/inc/ribbar.hrc deleted file mode 100644 index 301acb1ddc..0000000000 --- a/sw/source/ui/inc/ribbar.hrc +++ /dev/null @@ -1,132 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#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_TBL_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_FIELD_CTRL (RC_RIBBAR_BEGIN + 26) -#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 RID_PVIEW_ZOOM_LB (RC_RIBBAR_BEGIN + 31) - -#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 deleted file mode 100644 index 069684e417..0000000000 --- a/sw/source/ui/inc/rowht.hxx +++ /dev/null @@ -1,57 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _ROWHT_HXX -#define _ROWHT_HXX - -#include <svx/stddlg.hxx> -#include <vcl/field.hxx> -#include <vcl/fixed.hxx> -#include <vcl/button.hxx> - -class SwWrtShell; - -class SwTableHeightDlg : public SvxStandardDialog -{ - FixedLine aHeightFL; - MetricField aHeightEdit; - CheckBox aAutoHeightCB; - OKButton aOKBtn; - CancelButton aCancelBtn; - HelpButton aHelpBtn; - SwWrtShell &rSh; - -protected: - virtual void Apply(); - -public: - SwTableHeightDlg( Window *pParent, SwWrtShell &rS ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/scroll.hxx b/sw/source/ui/inc/scroll.hxx deleted file mode 100644 index c99ecaa30e..0000000000 --- a/sw/source/ui/inc/scroll.hxx +++ /dev/null @@ -1,72 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SCROLL_HXX -#define _SCROLL_HXX -#include <vcl/scrbar.hxx> - -class SwScrollbar: public ScrollBar -{ - Size aDocSz; - sal_Bool bHori :1; // horizontal = salTrue, otherwise vertical - sal_Bool bAuto :1; // for scrolling mode - sal_Bool bThumbEnabled:1; - sal_Bool bVisible :1; // show/hide should only set this flag - sal_Bool bSizeSet :1; // was the size already set? - - void AutoShow(); - - using Window::Hide; - using Window::SetPosSizePixel; - using Window::IsVisible; - -public: - - void ExtendedShow( sal_Bool bVisible = sal_True ); - void Hide() { Show( sal_False ); } - void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize ); - sal_Bool IsVisible(sal_Bool bReal) const { return bReal ? ScrollBar::IsVisible() : bVisible; } - - // changing of document size - void DocSzChgd(const Size &rNewSize); - // changing of visible region - void ViewPortChgd(const Rectangle &rRectangle); - // what is it?? - sal_Bool IsHoriScroll() const { return bHori; } - - void SetAuto(sal_Bool bSet); - sal_Bool IsAuto() { return bAuto;} - - SwScrollbar(Window *pParent, sal_Bool bHori = sal_True ); - ~SwScrollbar(); -}; - - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/selglos.hxx b/sw/source/ui/inc/selglos.hxx deleted file mode 100644 index 7cbe016e50..0000000000 --- a/sw/source/ui/inc/selglos.hxx +++ /dev/null @@ -1,71 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SELGLOS_HXX -#define _SELGLOS_HXX - -#include <vcl/dialog.hxx> - -#include <vcl/lstbox.hxx> -#include <vcl/fixed.hxx> - -#include <vcl/button.hxx> - -class SwSelGlossaryDlg : public ModalDialog -{ -protected: - ListBox aGlosBox; - FixedLine aGlosFL; - 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 - sal_uInt16 GetSelectedIdx() const; // inline - void SelectEntryPos(sal_uInt16 nIdx); // inline -}; - -inline void SwSelGlossaryDlg::InsertGlos(const String &rRegion, - const String &rGlosName) -{ - String aTmp( rRegion ); - aTmp += ':'; - aTmp += rGlosName; - aGlosBox.InsertEntry( aTmp ); -} -inline sal_uInt16 SwSelGlossaryDlg::GetSelectedIdx() const -{ return aGlosBox.GetSelectEntryPos(); } -inline void SwSelGlossaryDlg::SelectEntryPos(sal_uInt16 nIdx) -{ aGlosBox.SelectEntryPos(nIdx); } - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/sharedconnection.hxx b/sw/source/ui/inc/sharedconnection.hxx deleted file mode 100644 index faa27c384c..0000000000 --- a/sw/source/ui/inc/sharedconnection.hxx +++ /dev/null @@ -1,39 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef SW_UI_SHARED_CONNECTION_HXX -#define SW_UI_SHARED_CONNECTION_HXX - -#include <unotools/sharedunocomponent.hxx> -#include <com/sun/star/sdbc/XConnection.hpp> - -typedef ::utl::SharedUNOComponent< ::com::sun::star::sdbc::XConnection > SharedConnection; - -#endif // SW_UI_SHARED_CONNECTION_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/shdwcrsr.hxx b/sw/source/ui/inc/shdwcrsr.hxx deleted file mode 100644 index 7ea12f66dd..0000000000 --- a/sw/source/ui/inc/shdwcrsr.hxx +++ /dev/null @@ -1,69 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SHDWCRSR_HXX -#define _SHDWCRSR_HXX - - -#include <tools/gen.hxx> -#include <tools/color.hxx> -#include <limits.h> - -class Window; - -class SwShadowCursor -{ - Window* pWin; - Color aCol; - Point aOldPt; - long nOldHeight; - sal_uInt16 nOldMode; - - void DrawTri( const Point& rPt, long nHeight, sal_Bool bLeft ); - void DrawCrsr( const Point& rPt, long nHeight, sal_uInt16 nMode ); - -public: - SwShadowCursor( Window& rWin, const Color& rCol ) - : pWin( &rWin ), aCol( rCol ), nOldHeight(0), nOldMode( USHRT_MAX ) {} - ~SwShadowCursor(); - - void SetPos( const Point& rPt, long nHeight, sal_uInt16 nMode ); - - void Paint(); - - const Point& GetPoint() const { return aOldPt; } - long GetHeight() const { return nOldHeight; } - sal_uInt16 GetMode() const { return nOldMode; } - - Rectangle GetRect() const; -}; - - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/shells.hrc b/sw/source/ui/inc/shells.hrc deleted file mode 100644 index 4392babdea..0000000000 --- a/sw/source/ui/inc/shells.hrc +++ /dev/null @@ -1,114 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _SHELLS_HRC -#define _SHELLS_HRC - -#include "rcid.hrc" - -#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 STR_SHELLNAME_MEDIA (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) - // FREE - -#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) - -// #i68101# no longer needed -// #define STR_NAME_SHAPE_LABEL (RC_SHELLS_BEGIN + 58) -// #define STR_NAME_SHAPE_DIALOG (RC_SHELLS_BEGIN + 59) - -#define RID_MODULE_TOOLBOX (RC_SHELLS_BEGIN + 60) - -#define RID_MEDIA_TOOLBOX (RC_SHELLS_BEGIN + 61) - -#define STR_SHELLNAME_NAVIGATION (RC_SHELLS_BEGIN + 62) - -#define SHELLS_ACT_END STR_SHELLNAME_NAVIGATION - -#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 deleted file mode 100644 index ce733500a4..0000000000 --- a/sw/source/ui/inc/split.hxx +++ /dev/null @@ -1,71 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _TAB_SPLIT_HXX -#define _TAB_SPLIT_HXX - -#include <svx/stddlg.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/field.hxx> - -#include <vcl/button.hxx> - -#include <vcl/button.hxx> - -class SwWrtShell; - -class SwSplitTableDlg : public SvxStandardDialog -{ - FixedLine aCountFL; - FixedText aCountLbl; - NumericField aCountEdit; - FixedLine aDirFL; - ImageRadioButton aHorzBox; - ImageRadioButton aVertBox; - CheckBox aPropCB; - OKButton aOKBtn; - CancelButton aCancelBtn; - HelpButton aHelpBtn; - SwWrtShell& rSh; - -protected: - virtual void Apply(); - -public: - SwSplitTableDlg(Window *pParent, SwWrtShell& rShell ); - DECL_LINK( ClickHdl, Button * ); - - sal_Bool IsHorizontal() const { return aHorzBox.IsChecked(); } - sal_Bool IsProportional() const { return aPropCB.IsChecked() && aHorzBox.IsChecked(); } - long GetCount() const { return sal::static_int_cast< long >(aCountEdit.GetValue()); } -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/splittbl.hxx b/sw/source/ui/inc/splittbl.hxx deleted file mode 100644 index 4d26df7cc7..0000000000 --- a/sw/source/ui/inc/splittbl.hxx +++ /dev/null @@ -1,63 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SPLITTBL_HXX -#define _SPLITTBL_HXX - -#include <svx/stddlg.hxx> -#include <vcl/fixed.hxx> -#include <vcl/button.hxx> - -class SwWrtShell; - -class SwSplitTblDlg : public SvxStandardDialog -{ - OKButton aOKPB; - CancelButton aCancelPB; - HelpButton aHelpPB; - FixedLine aSplitFL; - RadioButton aCntntCopyRB; - RadioButton aBoxAttrCopyWithParaRB ; - RadioButton aBoxAttrCopyNoParaRB ; - RadioButton aBorderCopyRB; - - SwWrtShell &rShell; - sal_uInt16 m_nSplit; - -protected: - virtual void Apply(); - -public: - SwSplitTblDlg( Window *pParent, SwWrtShell &rSh ); - - sal_uInt16 GetSplitMode() const { return m_nSplit; } -}; - -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/srcedtw.hxx b/sw/source/ui/inc/srcedtw.hxx deleted file mode 100644 index 39858a36ee..0000000000 --- a/sw/source/ui/inc/srcedtw.hxx +++ /dev/null @@ -1,165 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SRCEDTW_HXX -#define _SRCEDTW_HXX - -#include <vcl/window.hxx> -#include <svl/lstner.hxx> -#include <unotools/options.hxx> -#include <vcl/timer.hxx> - -#include <tools/table.hxx> -#include <svtools/xtextedt.hxx> - -class ScrollBar; -class SwSrcView; -class SwSrcEditWindow; -class TextEngine; -class ExtTextView; -class DataChangedEvent; - -namespace utl -{ - class SourceViewConfig; -} - -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 void DataChanged( const DataChangedEvent& ); - -public: - TextViewOutWin(Window* pParent, WinBits nBits) : - Window(pParent, nBits), pTextView(0){} - - void SetTextView( ExtTextView* pView ) {pTextView = pView;} - -}; - -//------------------------------------------------------------ -namespace svt{ class SourceViewConfig;} -class SwSrcEditWindow : public Window, public SfxListener, public utl::ConfigurationListener -{ -private: - ExtTextView* pTextView; - ExtTextEngine* pTextEngine; - - TextViewOutWin* pOutWin; - ScrollBar *pHScrollbar, - *pVScrollbar; - - SwSrcView* pSrcView; - utl::SourceViewConfig* pSourceViewConfig; - - long nCurTextWidth; - sal_uInt16 nStartLine; - rtl_TextEncoding eSourceEncoding; - sal_Bool bReadonly; - sal_Bool bDoSyntaxHighlight; - sal_Bool bHighlighting; - - Timer aSyntaxIdleTimer; - Table aSyntaxLineTable; - - void ImpDoHighlight( const String& rSource, sal_uInt16 nLineOff ); - - using OutputDevice::SetFont; - void SetFont(); - - DECL_LINK( SyntaxTimerHdl, Timer * ); - DECL_LINK( TimeoutHdl, Timer * ); - - using Window::Notify; - using Window::Invalidate; - -protected: - - virtual void Resize(); - virtual void DataChanged( const DataChangedEvent& ); - virtual void GetFocus(); -// virtual void LoseFocus(); - - void CreateTextEngine(); - void DoSyntaxHighlight( sal_uInt16 nPara ); - - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); - virtual void ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uInt32 ); - - DECL_LINK(ScrollHdl, ScrollBar*); - -public: - SwSrcEditWindow( Window* pParent, SwSrcView* pParentView ); - ~SwSrcEditWindow(); - - void SetScrollBarRanges(); - void InitScrollBars(); - sal_uLong Read( SvStream& rInput) - {return pTextEngine->Read(rInput);} - sal_uLong Write( SvStream& rOutput) - {return pTextEngine->Write(rOutput);} - - ExtTextView* GetTextView() - {return pTextView;} - TextEngine* GetTextEngine() - {return pTextEngine;} - SwSrcView* GetSrcView() {return pSrcView;} - - TextViewOutWin* GetOutWin() {return pOutWin;} - - virtual void Invalidate( sal_uInt16 nFlags = 0 ); - - void ClearModifyFlag() - { pTextEngine->SetModified(sal_False); } - sal_Bool IsModified() const - { return pTextEngine->IsModified();} - void CreateScrollbars(); - - void SetReadonly(sal_Bool bSet){bReadonly = bSet;} - sal_Bool IsReadonly(){return bReadonly;} - - void DoDelayedSyntaxHighlight( sal_uInt16 nPara ); - - void SetStartLine(sal_uInt16 nLine){nStartLine = nLine;} - - virtual void Command( const CommandEvent& rCEvt ); - void HandleWheelCommand( const CommandEvent& rCEvt ); - - void SetTextEncoding(rtl_TextEncoding eEncoding); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/srcview.hxx b/sw/source/ui/inc/srcview.hxx deleted file mode 100644 index 8ee18eddc4..0000000000 --- a/sw/source/ui/inc/srcview.hxx +++ /dev/null @@ -1,103 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SRCVIEW_HXX -#define _SRCVIEW_HXX - -#include <sfx2/viewfac.hxx> -#include <sfx2/viewsh.hxx> -#include <vcl/outdev.hxx> - -#include "srcedtw.hxx" -#include "shellid.hxx" - -class SwDocShell; -class SvxSearchItem; -class SfxMedium; - -class SwSrcView: public SfxViewShell -{ - SwSrcEditWindow aEditWin; - - SvxSearchItem* pSearchItem; - - sal_Bool bSourceSaved :1; - rtl_TextEncoding eLoadEncoding; - void Init(); - - // for read-only switching - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); - - -protected: - sal_uInt16 StartSearchAndReplace(const SvxSearchItem& rItem, - sal_Bool bFromStart, - sal_Bool bApi, - sal_Bool bRecursive = sal_False); - - -public: - - SFX_DECL_VIEWFACTORY(SwSrcView); - SFX_DECL_INTERFACE(SW_SRC_VIEWSHELL) - TYPEINFO(); - - - SwSrcView(SfxViewFrame* pFrame, SfxViewShell*); - - ~SwSrcView(); - - SwDocShell* GetDocShell(); - SwSrcEditWindow& GetEditWin() {return aEditWin;} - void SaveContent(const String& rTmpFile); - void SaveContentTo(SfxMedium& rMed); - - sal_Bool IsModified() {return aEditWin.IsModified();} - - - - void Execute(SfxRequest&); - void GetState(SfxItemSet&); - - SvxSearchItem* GetSearchItem(); - void SetSearchItem( const SvxSearchItem& rItem ); - - void Load(SwDocShell* pDocShell); - - virtual sal_uInt16 SetPrinter( SfxPrinter* pNew, sal_uInt16 nDiff = SFX_PRINTER_ALL, bool bIsAPI=false ); - virtual SfxPrinter* GetPrinter( sal_Bool bCreate = sal_False ); - - sal_Int32 PrintSource( OutputDevice *pOutDev, sal_Int32 nPage, bool bCalcNumPagesOnly ); - - void SourceSaved() {bSourceSaved = sal_True;} - sal_Bool HasSourceSaved() const {return bSourceSaved;} - -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/srtdlg.hxx b/sw/source/ui/inc/srtdlg.hxx deleted file mode 100644 index 689aca753d..0000000000 --- a/sw/source/ui/inc/srtdlg.hxx +++ /dev/null @@ -1,112 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SRTDLG_HXX -#define _SRTDLG_HXX - -#include <vcl/fixed.hxx> -#include <vcl/button.hxx> -#include <vcl/field.hxx> -#include <vcl/lstbox.hxx> -#include <svx/stddlg.hxx> -#include <svx/langbox.hxx> - -class SwWrtShell; -class CollatorRessource; - -class SwSortDlg : public SvxStandardDialog -{ - FixedText aColLbl; - FixedText aTypLbl; - FixedText aDirLbl; - - FixedLine aSortFL; - - 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; - - FixedLine aDirFL; - RadioButton aColumnRB; - RadioButton aRowRB; - - FixedLine aDelimFL; - RadioButton aDelimTabRB; - RadioButton aDelimFreeRB; - Edit aDelimEdt; - PushButton aDelimPB; - - FixedLine aLangFL; - SvxLanguageBox aLangLB; - - FixedLine aSortOptFL; - CheckBox aCaseCB; - - OKButton aOkBtn; - CancelButton aCancelBtn; - HelpButton aHelpBtn; - - String aColTxt; - String aRowTxt; - String aNumericTxt; - - SwWrtShell &rSh; - CollatorRessource* pColRes; - - sal_uInt16 nX; - sal_uInt16 nY; - - virtual void Apply(); - sal_Unicode GetDelimChar() const; - - DECL_LINK( CheckHdl, CheckBox * ); - DECL_LINK( DelimHdl, RadioButton* ); - DECL_LINK( LanguageHdl, ListBox* ); - DECL_LINK( DelimCharHdl, PushButton* ); - -public: - SwSortDlg(Window * pParent, SwWrtShell &rSh); - ~SwSortDlg(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/stmenu.hxx b/sw/source/ui/inc/stmenu.hxx deleted file mode 100644 index 61ba61034b..0000000000 --- a/sw/source/ui/inc/stmenu.hxx +++ /dev/null @@ -1,83 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -// SMARTTAGS - -#ifndef _STMENU_HXX -#define _STMENU_HXX - -#include <vcl/menu.hxx> - -#include <vector> -#include <com/sun/star/smarttags/XSmartTagAction.hpp> - -#include <com/sun/star/container/XStringKeyMap.hpp> -#include <com/sun/star/text/XTextRange.hpp> - -class SwView; - -/** Class: SwSmartTagPopup - - This class contains the implementation of the smarttag popup - menu that is opened if a user clicks on an underlined word. - - The menu is built in the constructor and the actions for each - menu entry are invoked in the excute-method. -*/ - -class SwSmartTagPopup : public PopupMenu -{ - SwView* mpSwView; - com::sun::star::uno::Reference< com::sun::star::text::XTextRange > mxTextRange; - - struct InvokeAction - { - com::sun::star::uno::Reference< com::sun::star::smarttags::XSmartTagAction > mxAction; - com::sun::star::uno::Reference< com::sun::star::container::XStringKeyMap > mxSmartTagProperties; - sal_uInt32 mnActionID; - InvokeAction( com::sun::star::uno::Reference< com::sun::star::smarttags::XSmartTagAction > xAction, - com::sun::star::uno::Reference< com::sun::star::container::XStringKeyMap > xSmartTagProperties, - sal_uInt32 nActionID ) : mxAction( xAction ), mxSmartTagProperties( xSmartTagProperties ), mnActionID( nActionID ) {} - }; - - std::vector< InvokeAction > maInvokeActions; - - using PopupMenu::Execute; - -public: - SwSmartTagPopup( SwView* _pSwView, - ::com::sun::star::uno::Sequence< rtl::OUString >& rSmartTagTypes, - ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::container::XStringKeyMap > >& rStringKeyMaps, - ::com::sun::star::uno::Reference< com::sun::star::text::XTextRange > xTextRange ); - - sal_uInt16 Execute( const Rectangle& rPopupPos, Window* pWin ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/swcont.hxx b/sw/source/ui/inc/swcont.hxx deleted file mode 100644 index 58111b562d..0000000000 --- a/sw/source/ui/inc/swcont.hxx +++ /dev/null @@ -1,116 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _SWCONT_HXX -#define _SWCONT_HXX - -#include <tools/string.hxx> - -class SwContentType; - -// synchronize order and number with ResIds!! -#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 - - -// types for global document -#define GLOBAL_CONTENT_REGION 100 -#define GLOBAL_CONTENT_INDEX 101 -#define GLOBAL_CONTENT_TEXT 102 -#define GLOBAL_CONTENT_MAX 3 - -// strings for context menus -#define CONTEXT_COUNT 12 -#define GLOBAL_CONTEXT_COUNT 14 - -// modes for Drag 'n Drop -#define REGION_MODE_NONE 0 -#define REGION_MODE_LINK 1 -#define REGION_MODE_EMBEDDED 2 - -//---------------------------------------------------------------------------- -//---------------------------------------------------------------------------- - -//mini rtti -class SwTypeNumber -{ - sal_uInt8 nTypeId; - - public: - SwTypeNumber(sal_uInt8 nId) :nTypeId(nId){} - virtual ~SwTypeNumber(); - - virtual sal_uInt8 GetTypeId(); -}; -//---------------------------------------------------------------------------- - -class SwContent : public SwTypeNumber -{ - const SwContentType* pParent; - String sContentName; - long nYPosition; - sal_Bool bInvisible; -public: - SwContent(const SwContentType* pCnt, const String& rName, long nYPos ); - - virtual sal_Bool IsProtect() const; - const SwContentType* GetParent() const {return pParent;} - const String& GetName() const {return sContentName;} - int operator==(const SwContent& /*rCont*/) const - { - // they're never equal, otherwise they'd fall out of the array - return sal_False; - } - int operator<(const SwContent& rCont) const - { - // at first sort by position and then by name - return nYPosition != rCont.nYPosition ? - nYPosition < rCont.nYPosition : - sContentName < rCont.sContentName;; - } - - long GetYPos() const {return nYPosition;} - - sal_Bool IsInvisible() const {return bInvisible;} - void SetInvisible(){ bInvisible = sal_True;} -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/swdtflvr.hxx b/sw/source/ui/inc/swdtflvr.hxx deleted file mode 100644 index 845a7efcb2..0000000000 --- a/sw/source/ui/inc/swdtflvr.hxx +++ /dev/null @@ -1,225 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWDTFLVR_HXX -#define _SWDTFLVR_HXX - -#include <sfx2/objsh.hxx> - -#include <svtools/transfer.hxx> -#include <vcl/graph.hxx> -#include <sfx2/lnkbase.hxx> -#include <com/sun/star/embed/XEmbeddedObject.hpp> - -class Graphic; -class ImageMap; -class INetBookmark; -class INetImage; -class SwDoc; -class SwDocFac; -class SwTextBlocks; -class SwWrtShell; -class SvxClipboardFmtItem; -class ViewShell; -class SwView_Impl; - -typedef sal_uInt16 TransferBufferType; -namespace nsTransferBufferType -{ - const sal_uInt16 TRNSFR_NONE = 0x0000; - const sal_uInt16 TRNSFR_DOCUMENT = 0x0001; - const sal_uInt16 TRNSFR_DOCUMENT_WORD = 0x0002; - const sal_uInt16 TRNSFR_GRAPHIC = 0x0004; - const sal_uInt16 TRNSFR_TABELLE = 0x0008; - const sal_uInt16 TRNSFR_DDELINK = 0x0010; - const sal_uInt16 TRNSFR_OLE = 0x0020; - const sal_uInt16 TRNSFR_INETFLD = 0x0040; - const sal_uInt16 TRNSFR_DRAWING = 0x0081; // drawing is internal too! -} - -#define DATA_FLAVOR ::com::sun::star::datatransfer::DataFlavor - -class SwTransferable : public TransferableHelper -{ - friend class SwView_Impl; - SfxObjectShellLock aDocShellRef; - TransferableDataHelper aOleData; - TransferableObjectDescriptor aObjDesc; - ::sfx2::SvBaseLinkRef refDdeLink; - - SwWrtShell *pWrtShell; - /* #96392# Added pCreatorView to distinguish SwFrameShell from - SwWrtShell. */ - const ViewShell *pCreatorView; - SwDocFac *pClpDocFac; - Graphic *pClpGraphic, *pClpBitmap, *pOrigGrf; - INetBookmark *pBkmk; // URL and description! - ImageMap *pImageMap; - INetImage *pTargetURL; - - TransferBufferType eBufferType; - - sal_Bool bOldIdle :1; //D&D Idle flag from the viewsettings - sal_Bool bCleanUp :1; //D&D cleanup after Drop (not by internal Drop) - - // helper methods for the copy - com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > FindOLEObj( sal_Int64& nAspect ) const; - Graphic* FindOLEReplacementGraphic() const; - void DeleteSelection(); - - // helper methods for the paste - static SwTransferable* GetSwTransferable( const TransferableDataHelper& rData ); - static void SetSelInShell( SwWrtShell& , sal_Bool , const Point* ); - static sal_Bool _CheckForURLOrLNKFile( TransferableDataHelper& rData, - String& rFileName, String* pTitle = 0 ); - static int _TestAllowedFormat( const TransferableDataHelper& rData, - sal_uLong nFormat, sal_uInt16 nDestination ); - - static int _PasteFileContent( TransferableDataHelper&, - SwWrtShell& rSh, sal_uLong nFmt, sal_Bool bMsg ); - static int _PasteOLE( TransferableDataHelper& rData, SwWrtShell& rSh, - sal_uLong nFmt, sal_uInt8 nActionFlags, sal_Bool bMsg ); - static int _PasteTargetURL( TransferableDataHelper& rData, SwWrtShell& rSh, - sal_uInt16 nAction, const Point* pPt, sal_Bool bInsertGRF ); - - static int _PasteDDE( TransferableDataHelper& rData, SwWrtShell& rWrtShell, - sal_Bool bReReadGrf, sal_Bool bMsg ); - - static int _PasteSdrFormat( TransferableDataHelper& rData, - SwWrtShell& rSh, sal_uInt16 nAction, - const Point* pPt, sal_uInt8 nActionFlags ); - - static int _PasteGrf( TransferableDataHelper& rData, SwWrtShell& rSh, - sal_uLong nFmt, sal_uInt16 nAction, const Point* pPt, - sal_uInt8 nActionFlags, sal_Bool bMsg ); - - static int _PasteImageMap( TransferableDataHelper& rData, - SwWrtShell& rSh ); - - static int _PasteAsHyperlink( TransferableDataHelper& rData, - SwWrtShell& rSh, sal_uLong nFmt ); - - static int _PasteFileName( TransferableDataHelper& rData, - SwWrtShell& rSh, sal_uLong nFmt, sal_uInt16 nAction, - const Point* pPt, sal_uInt8 nActionFlags, sal_Bool bMsg ); - - static int _PasteDBData( TransferableDataHelper& rData, SwWrtShell& rSh, - sal_uLong nFmt, sal_Bool bLink, const Point* pDragPt, - sal_Bool bMsg ); - - static int _PasteFileList( TransferableDataHelper& rData, - SwWrtShell& rSh, sal_Bool bLink, - const Point* pPt, sal_Bool bMsg ); - - int PrivateDrop( SwWrtShell& rSh, const Point& rDragPt, sal_Bool bMove, - sal_Bool bIsXSelection ); - int PrivatePaste( SwWrtShell& rShell ); - - void SetDataForDragAndDrop( const Point& rSttPos ); - - // not available - SwTransferable(); - SwTransferable( const SwTransferable& ); - SwTransferable& operator=( const SwTransferable& ); - -protected: - virtual void AddSupportedFormats(); - virtual sal_Bool GetData( const DATA_FLAVOR& rFlavor ); - virtual sal_Bool WriteObject( SotStorageStreamRef& rxOStm, - void* pUserObject, - sal_uInt32 nUserObjectId, - const DATA_FLAVOR& rFlavor ); - virtual void DragFinished( sal_Int8 nDropAction ); - virtual void ObjectReleased(); - - using TransferableHelper::StartDrag; - -public: - SwTransferable( SwWrtShell& ); - virtual ~SwTransferable(); - - static sal_uInt16 GetSotDestination( const SwWrtShell& rSh, const Point* = 0 ); - - // set properties on the document, like PageMargin, VisArea. - // And set real Size - static void InitOle( SfxObjectShell* pDoc, SwDoc& rDoc ); - - // copy - methods and helper methods for the copy - int Cut(); - int Copy( sal_Bool bIsCut = sal_False ); - int PrepareForCopy( sal_Bool bIsCut = sal_False ); - int CalculateAndCopy(); // special for Calculator - int CopyGlossary( SwTextBlocks& rGlossary, const String& rStr ); - - // remove the DDE-Link format promise - void RemoveDDELinkFormat( const Window& rWin ); - - // paste - methods and helper methods for the paste - static sal_Bool IsPaste( const SwWrtShell&, const TransferableDataHelper& ); - static int Paste( SwWrtShell&, TransferableDataHelper& ); - static int PasteData( TransferableDataHelper& rData, - SwWrtShell& rSh, sal_uInt16 nAction, sal_uLong nFormat, - sal_uInt16 nDestination, sal_Bool bIsPasteFmt, - sal_Bool bIsDefault, - const Point* pDDPos = 0, sal_Int8 nDropAction = 0, - sal_Bool bPasteSelection = sal_False ); - - static sal_Bool IsPasteSpecial( const SwWrtShell& rWrtShell, - const TransferableDataHelper& ); - static int PasteUnformatted( SwWrtShell& rSh, TransferableDataHelper& ); - static int PasteSpecial( SwWrtShell& rSh, TransferableDataHelper&, sal_uLong& rFormatUsed ); - static int PasteFormat( SwWrtShell& rSh, TransferableDataHelper& rData, - sal_uLong nFormat ); - - static void FillClipFmtItem( const SwWrtShell& rSh, - const TransferableDataHelper& rData, - SvxClipboardFmtItem & rToFill ); - - // Interfaces for Drag & Drop - void StartDrag( Window* pWin, const Point& rPos ); - - SwWrtShell* GetShell() { return pWrtShell; } - void SetCleanUp( sal_Bool bFlag ) { bCleanUp = bFlag; } - - // Interfaces for Selection - /* #96392# Added pCreator to distinguish SwFrameShell from SwWrtShell. */ - static void CreateSelection( SwWrtShell & rSh, - const ViewShell * pCreator = NULL ); - static void ClearSelection( SwWrtShell& rSh, - const ViewShell * pCreator = NULL ); - - // the related SwView is being closed and the SwTransferable is invalid now - void Invalidate() {pWrtShell = 0;} - static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId(); - - virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw( ::com::sun::star::uno::RuntimeException ); -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/swlbox.hxx b/sw/source/ui/inc/swlbox.hxx deleted file mode 100644 index 6aab6cc84b..0000000000 --- a/sw/source/ui/inc/swlbox.hxx +++ /dev/null @@ -1,122 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWLBOX_HXX -#define _SWLBOX_HXX - -#include <svl/svarray.hxx> - -#include <vcl/lstbox.hxx> - -#include <vcl/combobox.hxx> -#include "swdllapi.h" - -class SwBoxEntry; -class Window; - -SV_DECL_PTRARR_DEL(SwEntryLst, SwBoxEntry*, 10, 10) - -/*-------------------------------------------------------------------- - Description: SwBoxEntry - --------------------------------------------------------------------*/ -class SW_DLLPUBLIC SwBoxEntry -{ - friend class SwComboBox; - - sal_Bool bModified : 1; - sal_Bool bNew : 1; - - String aName; - sal_uInt16 nId; - -public: - SwBoxEntry(const String& aName, sal_uInt16 nId=0); - SwBoxEntry(const SwBoxEntry& rOrg); - SwBoxEntry(); - - const String& GetName() const { return aName;} -}; - -/*-------------------------------------------------------------------- - Description: for combo boxes - --------------------------------------------------------------------*/ -typedef sal_uInt16 SwComboBoxStyle; - -namespace nsSwComboBoxStyle -{ - const SwComboBoxStyle CBS_UPPER = 0x01; - const SwComboBoxStyle CBS_LOWER = 0x02; - const SwComboBoxStyle CBS_ALL = 0x04; - const SwComboBoxStyle CBS_FILENAME = 0x08; - const SwComboBoxStyle CBS_SW_FILENAME = CBS_FILENAME; -} - -class SW_DLLPUBLIC SwComboBox : public ComboBox -{ - SwEntryLst aEntryLst; - SwEntryLst aDelEntryLst; - SwBoxEntry aDefault; - sal_uInt16 nStyle; - - SW_DLLPRIVATE void InitComboBox(); - SW_DLLPRIVATE void InsertSorted(SwBoxEntry* pEntry); - - using ComboBox::InsertEntry; - using ComboBox::RemoveEntry; - using Window::SetStyle; - -public: - - using ComboBox::GetEntryPos; - - SwComboBox(Window* pParent, const ResId& rId, - sal_uInt16 nStyleBits = nsSwComboBoxStyle::CBS_ALL); - ~SwComboBox(); - - virtual void KeyInput( const KeyEvent& rKEvt ); - - void InsertEntry(const SwBoxEntry&); - sal_uInt16 InsertEntry( const XubString& rStr, sal_uInt16 = 0) - { InsertEntry( SwBoxEntry( rStr ) ); return 0; } - - void RemoveEntry(sal_uInt16 nPos); - - sal_uInt16 GetEntryPos(const SwBoxEntry& rEntry) const; - const SwBoxEntry& GetEntry(sal_uInt16) const; - - sal_uInt16 GetRemovedCount() const; - const SwBoxEntry& GetRemovedEntry(sal_uInt16 nPos) const; - - sal_uInt16 GetStyle() const { return nStyle; } - void SetStyle(const sal_uInt16 nSt) { nStyle = nSt; } - - String GetText() const; -}; - -#endif /* _SWLBOX_HXX */ - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/swmodalredlineacceptdlg.hxx b/sw/source/ui/inc/swmodalredlineacceptdlg.hxx deleted file mode 100644 index bfc6ad5aaa..0000000000 --- a/sw/source/ui/inc/swmodalredlineacceptdlg.hxx +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWMODALREDLINEACCEPTDLG_HXX -#define _SWMODALREDLINEACCEPTDLG_HXX -#include "chldwrap.hxx" -#include <sfx2/basedlgs.hxx> - -class SwRedlineAcceptDlg; - -class SwModalRedlineAcceptDlg : public SfxModalDialog -{ - SwRedlineAcceptDlg* pImplDlg; - - virtual void Resize(); - -public: - SwModalRedlineAcceptDlg(Window *pParent); - ~SwModalRedlineAcceptDlg(); - - void AcceptAll( sal_Bool bAccept ); - virtual void Activate(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/swrenamexnameddlg.hxx b/sw/source/ui/inc/swrenamexnameddlg.hxx deleted file mode 100644 index 0e53b28337..0000000000 --- a/sw/source/ui/inc/swrenamexnameddlg.hxx +++ /dev/null @@ -1,83 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWRENAMEXNAMEDDLG_HXX -#define _SWRENAMEXNAMEDDLG_HXX - - -#include <vcl/dialog.hxx> -#include <vcl/fixed.hxx> -#include <vcl/edit.hxx> -#include <vcl/button.hxx> -#include <actctrl.hxx> -#include <com/sun/star/frame/XController.hpp> -#include <com/sun/star/text/XTextCursor.hpp> -#include <com/sun/star/container/XNameAccess.hpp> -#include <com/sun/star/awt/XControl.hpp> -#include <com/sun/star/container/XNamed.hpp> -#include <tools/resary.hxx> -#include <swunodef.hxx> - -class SwRenameXNamedDlg : public ModalDialog -{ - FixedLine aNameFL; - FixedText aNewNameFT; - NoSpaceEdit aNewNameED; - OKButton aOk; - CancelButton aCancel; - HelpButton aHelp; - - String sRemoveWarning; - - STAR_REFERENCE( container::XNamed ) & xNamed; - STAR_REFERENCE( container::XNameAccess ) & xNameAccess; - STAR_REFERENCE( container::XNameAccess ) xSecondAccess; - STAR_REFERENCE( container::XNameAccess ) xThirdAccess; - - DECL_LINK(OkHdl, OKButton*); - DECL_LINK(ModifyHdl, NoSpaceEdit*); - -public: - SwRenameXNamedDlg( Window* pParent, - STAR_REFERENCE( container::XNamed ) & xNamed, - STAR_REFERENCE( container::XNameAccess ) & xNameAccess ); - - void SetForbiddenChars( const String& rSet ) - { aNewNameED.SetForbiddenChars( rSet ); } - - void SetAlternativeAccess( - STAR_REFERENCE( container::XNameAccess ) & xSecond, - STAR_REFERENCE( container::XNameAccess ) & xThird ) - { - xSecondAccess = xSecond; - xThirdAccess = xThird; - } -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/swtablerep.hxx b/sw/source/ui/inc/swtablerep.hxx deleted file mode 100644 index d0807d0e18..0000000000 --- a/sw/source/ui/inc/swtablerep.hxx +++ /dev/null @@ -1,96 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWTABLEREP_HXX -#define _SWTABLEREP_HXX - - -#include <sfx2/tabdlg.hxx> -#include "swdllapi.h" -#include "swtypes.hxx" - -class SwTabCols; -struct TColumn; -class SW_DLLPUBLIC SwTableRep -{ - TColumn* pTColumns; - - SwTwips nTblWidth; - SwTwips nSpace; - SwTwips nLeftSpace; - SwTwips nRightSpace; - sal_uInt16 nAlign; - sal_uInt16 nColCount; - sal_uInt16 nAllCols; - sal_uInt16 nWidthPercent; - sal_Bool bComplex : 1; - sal_Bool bLineSelected : 1; - sal_Bool bWidthChanged : 1; - sal_Bool bColsChanged : 1; - -public: - SwTableRep( const SwTabCols& rTabCol, sal_Bool bComplex ); - ~SwTableRep(); - - sal_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;} - - sal_uInt16 GetWidthPercent() const {return nWidthPercent;} - void SetWidthPercent(sal_uInt16 nSet) {nWidthPercent = nSet;} - - sal_uInt16 GetAlign() const {return nAlign;} - void SetAlign(sal_uInt16 nSet) {nAlign = nSet;} - - sal_Bool IsComplex() const {return bComplex;} - sal_uInt16 GetColCount() const {return nColCount;} - sal_uInt16 GetAllColCount() const {return nAllCols;} - - sal_Bool HasColsChanged() const {return bColsChanged;} - void SetColsChanged() {bColsChanged = sal_True;} - - sal_Bool HasWidthChanged() const {return bWidthChanged;} - void SetWidthChanged() {bWidthChanged = sal_True;} - - sal_Bool IsLineSelected() const {return bLineSelected;} - void SetLineSelected(sal_Bool bSet) {bLineSelected = bSet;} - - SwTwips GetSpace() const { return nSpace;} - void SetSpace(SwTwips nSet) {nSpace = nSet;} - - TColumn* GetColumns() const {return pTColumns;} -}; -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/swuiccoll.hxx b/sw/source/ui/inc/swuiccoll.hxx deleted file mode 100644 index ff520e4e4d..0000000000 --- a/sw/source/ui/inc/swuiccoll.hxx +++ /dev/null @@ -1,91 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWUI_CCOLL_HXX -#define _SWUI_CCOLL_HXX - -#include "ccoll.hxx" - -class SwWrtShell; -class SwFmt; - -class SwCondCollPage : public SfxTabPage -{ - FixedLine aConditionFL; - CheckBox aConditionCB; - - FixedText aContextFT; - FixedText aUsedFT; - SvTabListBox aTbLinks; - - FixedText aStyleFT; - ListBox aStyleLB; - ListBox aFilterLB; - - PushButton aRemovePB; - PushButton aAssignPB; - - String sNoTmpl; - ResStringArray aStrArr; - - SwWrtShell &rSh; - const CommandStruct*pCmds; - SwFmt* pFmt; - - CollName* pNms; - - sal_Bool bNewTemplate; - - - SwCondCollPage(Window *pParent, const SfxItemSet &rSet); - virtual ~SwCondCollPage(); - - virtual int DeactivatePage(SfxItemSet *pSet); - - DECL_LINK( OnOffHdl, CheckBox* ); - DECL_LINK( AssignRemoveHdl, PushButton*); - DECL_LINK( SelectHdl, ListBox* ); - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - -public: - - static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); - static sal_uInt16* GetRanges(); - - virtual sal_Bool FillItemSet( SfxItemSet &rSet); - virtual void Reset (const SfxItemSet &rSet); - - void SetCollection( SwFmt* pFormat, sal_Bool bNew ); -}; - - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/swuicnttab.hxx b/sw/source/ui/inc/swuicnttab.hxx deleted file mode 100644 index 35269892cb..0000000000 --- a/sw/source/ui/inc/swuicnttab.hxx +++ /dev/null @@ -1,522 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWUI_CNTTAB_HXX -#define _SWUI_CNTTAB_HXX - -#include <svx/stddlg.hxx> - -#include <vcl/button.hxx> - -#include <vcl/edit.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/field.hxx> -#include <vcl/lstbox.hxx> -#include <sfx2/tabdlg.hxx> - -#include "tox.hxx" -#include <toxmgr.hxx> -#include <svx/checklbx.hxx> -#include <tools/resary.hxx> -#include <svtools/svtreebx.hxx> -#include <vcl/menubtn.hxx> -#include <svx/langbox.hxx> -#include <cnttab.hxx> -#include <vector> - -class SwWrtShell; -class SwTOXMgr; -namespace com{namespace sun{namespace star{ - namespace text{ - class XTextSection; - class XDocumentIndex; - } -}}} - -struct SwIndexSections_Impl -{ - com::sun::star::uno::Reference< com::sun::star::text::XTextSection > xContainerSection; - com::sun::star::uno::Reference< com::sun::star::text::XDocumentIndex > xDocumentIndex; -}; - -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; - - SwTOXBase* pParamTOXBase; - - CurTOXType eCurrentTOXType; - - String sUserDefinedIndex; - sal_uInt16 nTypeCount; - sal_uInt16 nInitialTOXType; - - sal_Bool bEditTOX; - sal_Bool bExampleCreated; - sal_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, - SwTOXBase* pCurTOX, sal_uInt16 nToxType = USHRT_MAX, - sal_Bool bGlobal = sal_False); - ~SwMultiTOXTabDialog(); - - virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ); - - SwForm* GetForm(CurTOXType eType); - - CurTOXType GetCurrentTOXType() const { return eCurrentTOXType;} - void SetCurrentTOXType(CurTOXType eSet) - { - eCurrentTOXType = eSet; - } - - void UpdateExample(); - sal_Bool IsTOXEditMode() const { return bEditTOX;} - - SwWrtShell& GetWrtShell() {return rSh;} - - SwTOXDescription& GetTOXDescription(CurTOXType eTOXTypes); - void CreateOrUpdateExample( - TOXTypes nTOXIndex, sal_uInt16 nPage = 0, sal_uInt16 nCurLevel = USHRT_MAX); - - static sal_Bool IsNoNum(SwWrtShell& rSh, const String& rName); -}; - -class IndexEntryRessource; -class IndexEntrySupplierWrapper; - -class SwTOXSelectTabPage : public SfxTabPage -{ - FixedLine aTypeTitleFL; - FixedText aTitleFT; - Edit aTitleED; - FixedText aTypeFT; - ListBox aTypeLB; - CheckBox aReadOnlyCB; - - FixedLine aAreaFL; - FixedText aAreaFT; - ListBox aAreaLB; - FixedText aLevelFT; //content, user - NumericField aLevelNF; //content, user - - //content - FixedLine aCreateFromFL; // content, user, illustration - CheckBox aFromHeadingsCB; - CheckBox aAddStylesCB; - PushButton aAddStylesPB; - Point aAddStylesPosDef; - Point aAddStylesPosUser; - //user - 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; - - // - - //index only - FixedLine aIdxOptionsFL; - CheckBox aCollectSameCB; - CheckBox aUseFFCB; - CheckBox aUseDashCB; - CheckBox aCaseSensitiveCB; - CheckBox aInitialCapsCB; - CheckBox aKeyAsEntryCB; - CheckBox aFromFileCB; - MenuButton aAutoMarkPB; - - // object only - SwOLENames aFromNames; - SvxCheckListBox aFromObjCLB; - FixedLine aFromObjFL; - - CheckBox aSequenceCB; - FixedText aBracketFT; - ListBox aBracketLB; - FixedLine aAuthorityFormatFL; - - //all - FixedLine aSortOptionsFL; - FixedText aLanguageFT; - SvxLanguageBox aLanguageLB; - FixedText aSortAlgorithmFT; - ListBox aSortAlgorithmLB; - - IndexEntryRessource* pIndexRes; - - Point aCBLeftPos1; - Point aCBLeftPos2; - Point aCBLeftPos3; - - String aStyleArr[MAXLEVEL]; - String sAutoMarkURL; - String sAutoMarkType; - String sAddStyleUser; - String sAddStyleContent; - - const IndexEntrySupplierWrapper* pIndexEntryWrapper; - - sal_Bool bFirstCall; - - DECL_LINK(TOXTypeHdl, ListBox* ); - DECL_LINK(TOXAreaHdl, ListBox* ); - DECL_LINK(AddStylesHdl, PushButton* ); - DECL_LINK(MenuEnableHdl, Menu*); - DECL_LINK(MenuExecuteHdl, Menu*); - DECL_LINK(LanguageHdl, ListBox*); - - DECL_LINK(CheckBoxHdl, CheckBox* ); - DECL_LINK(RadioButtonHdl, RadioButton* ); - DECL_LINK(ModifyHdl, void*); - - void ApplyTOXDescription(); - void FillTOXDescription(); - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - -public: - SwTOXSelectTabPage(Window* pParent, const SfxItemSet& rAttrSet); - ~SwTOXSelectTabPage(); - - virtual sal_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); -}; - -class SwTOXEdit; -class SwTOXButton; -class SwTOXEntryTabPage; - -class SwTokenWindow : public Window -{ - typedef std::vector<Control*>::iterator ctrl_iterator; - typedef std::vector<Control*>::const_iterator ctrl_const_iterator; - typedef std::vector<Control*>::reverse_iterator ctrl_reverse_iterator; - typedef std::vector<Control*>::const_reverse_iterator ctrl_const_reverse_iterator; - - ImageButton aLeftScrollWin; - Window aCtrlParentWin; - ImageButton aRightScrollWin; - std::vector<Control*> aControlList; - SwForm* pForm; - sal_uInt16 nLevel; - sal_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, sal_uInt16 nLevel); - sal_uInt16 GetLastLevel()const {return nLevel;}; - - sal_Bool IsValid() const {return bValid;} - - void SetInvalid() {bValid = sal_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, sal_Bool bInternalCall = sal_False); - - sal_Bool Contains(FormTokenType) const; - - sal_Bool DetermineLinkStart(); - - //helper for pattern buttons and edits - sal_Bool CreateQuickHelp(Control* pCtrl, - const SwFormToken& rToken, const HelpEvent& ); - - virtual void Resize(); - virtual void GetFocus(); -}; - -class SwTOXEntryTabPage; - -class SwIdxTreeListBox : public SvTreeListBox -{ - SwTOXEntryTabPage* pParent; - - virtual void RequestHelp( const HelpEvent& rHEvt ); -public: - SwIdxTreeListBox(SwTOXEntryTabPage* pPar, const ResId& rResId); -}; - -class SwTOXEntryTabPage : public SfxTabPage -{ - FixedText aLevelFT; - SwIdxTreeListBox aLevelLB; - - FixedLine aEntryFL; - FixedText aTokenFT; - 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 aNumberFormatFT; - ListBox aNumberFormatLB; //!< format for numbering (E#) - - FixedText aEntryOutlineLevelFT; //!< Fixed text, for i53420 - NumericField aEntryOutlineLevelNF; //!< level to evaluate outline level to, for i53420 - FixedText aFillCharFT; - ComboBox aFillCharCB; // fill char for tab stop - FixedText aTabPosFT; - MetricField aTabPosMF; // tab stop position - CheckBox aAutoRightCB; - FixedLine aFormatFL; - - 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; - - RadioButton aSortDocPosRB; - RadioButton aSortContentRB; - FixedLine aSortingFL; - - FixedText aFirstKeyFT; - ListBox aFirstKeyLB; - ImageRadioButton aFirstSortUpRB; - ImageRadioButton aFirstSortDownRB; - - FixedText aSecondKeyFT; - ListBox aSecondKeyLB; - ImageRadioButton aSecondSortUpRB; - ImageRadioButton aSecondSortDownRB; - - FixedText aThirdKeyFT; - ListBox aThirdKeyLB; - ImageRadioButton aThirdSortUpRB; - ImageRadioButton aThirdSortDownRB; - - FixedLine aSortKeyFL; - - String sDelimStr; - String sLevelStr; - String sAuthTypeStr; - - String sNoCharStyle; - String sNoCharSortKey; - Point aButtonPositions[5]; - SwForm* m_pCurrentForm; - - Point aRelToStylePos; - Point aRelToStyleIdxPos; - Size aLevelFLSize; - - CurTOXType aLastTOXType; - sal_Bool bInLevelHdl; - - Point aChapterEntryFTPosition; //!< holds position of ChapterEntryFT control, - //to be used in moving the element among different tokens - Point aEntryOutlineLevelFTPosition;//!< holds position ofrEntryOutlineLevelFT control - sal_Int32 nBiasToEntryPoint; - - 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(ChapterInfoOutlineHdl, NumericField*); - DECL_LINK(NumberFormatHdl, ListBox*); - - DECL_LINK(AllLevelsHdl, PushButton*); - - void EnableButtons(); - void WriteBackLevel(); - void UpdateDescriptor(); - DECL_LINK(ModifyHdl, void*); - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - -public: - SwTOXEntryTabPage(Window* pParent, const SfxItemSet& rAttrSet); - ~SwTOXEntryTabPage(); - - virtual sal_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(sal_uInt16 nLevel) const; - - void PreTokenButtonRemoved(const SwFormToken& rToken); -}; - -class SwTOXStylesTabPage : public SfxTabPage -{ - FixedLine aFormatFL; - FixedText aLevelFT2; - ListBox aLevelLB; - ImageButton aAssignBT; - FixedText aTemplateFT; - ListBox aParaLayLB; - PushButton aStdBT; - PushButton aEditStyleBT; - - SwForm* m_pCurrentForm; - - 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()); - } - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - -public: - SwTOXStylesTabPage(Window* pParent, const SfxItemSet& rAttrSet); - ~SwTOXStylesTabPage(); - - virtual sal_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 // _SWUI_CNTTAB_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/swuiidxmrk.hxx b/sw/source/ui/inc/swuiidxmrk.hxx deleted file mode 100644 index 9b546fbf9d..0000000000 --- a/sw/source/ui/inc/swuiidxmrk.hxx +++ /dev/null @@ -1,275 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWUI_IDXMRK_HXX -#define _SWUI_IDXMRK_HXX - -#include <com/sun/star/container/XNameAccess.hpp> -#include <sfx2/basedlgs.hxx> - -#include <vcl/fixed.hxx> -#include <vcl/lstbox.hxx> -#include <vcl/combobox.hxx> -#include <svx/stddlg.hxx> - -#include <vcl/field.hxx> - -#include <vcl/group.hxx> - -#include <vcl/button.hxx> - -#include <vcl/button.hxx> -#include <sfx2/childwin.hxx> -#include "toxe.hxx" -#include <svtools/stdctrl.hxx> -#include <com/sun/star/i18n/XExtendedIndexEntrySupplier.hpp> - -class SwWrtShell; -class SwTOXMgr; -class SwTOXMark; -/*-------------------------------------------------------------------- - Description: insert mark for index entry - --------------------------------------------------------------------*/ -class SwIndexMarkFloatDlg; -class SwIndexMarkModalDlg; - -class SwIndexMarkDlg : public Window -{ - friend class SwIndexMarkFloatDlg; - friend class SwIndexMarkModalDlg; - FixedLine aIndexFL; - FixedText aTypeFT; - ListBox aTypeDCB; - ImageButton aNewBT; - - FixedText aEntryFT; - Edit aEntryED; - FixedText aPhoneticFT0; - Edit aPhoneticED0; - - FixedText aKeyFT; - ComboBox aKeyDCB; - FixedText aPhoneticFT1; - Edit aPhoneticED1; - - FixedText aKey2FT; - ComboBox aKey2DCB; - FixedText aPhoneticFT2; - Edit aPhoneticED2; - - FixedText aLevelFT; - NumericField aLevelED; - CheckBox aMainEntryCB; - CheckBox aApplyToAllCB; - CheckBox aSearchCaseSensitiveCB; - CheckBox aSearchCaseWordOnlyCB; - - - OKButton aOKBT; - CancelButton aCancelBT; - HelpButton aHelpBT; - PushButton aDelBT; - //PushButton aNewBT; - - ImageButton aPrevSameBT; - ImageButton aNextSameBT; - ImageButton aPrevBT; - ImageButton aNextBT; - - String aOrgStr; - sal_Int32 nOptionsId; - sal_Bool bDel; - sal_Bool bNewMark; - sal_Bool bSelected; - - sal_Bool bPhoneticED0_ChangedByUser; - sal_Bool bPhoneticED1_ChangedByUser; - sal_Bool bPhoneticED2_ChangedByUser; - LanguageType nLangForPhoneticReading; //Language of current text used for phonetic reading proposal - sal_Bool bIsPhoneticReadingEnabled; //this value states wether phopentic reading is enabled in principle dependend of global cjk settings and language of current entry - com::sun::star::uno::Reference< com::sun::star::i18n::XExtendedIndexEntrySupplier > - xExtendedIndexEntrySupplier; - - 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*); - DECL_LINK( PhoneticEDModifyHdl, Edit * ); - - //this method updates the values from 'nLangForPhoneticReading' and 'bIsPhoneticReadingEnabled' - //it needs to be called ones if this dialog is opened to create a new entry (in InitControls), - //or otherwise it has to be called for each changed TOXMark (in UpdateDialog) - void UpdateLanguageDependenciesForPhoneticReading(); - String GetDefaultPhoneticReading( const String& rText ); - - void UpdateKeyBoxes(); - - void UpdateDialog(); - void InsertUpdate(); - - virtual void Activate(); - -public: - - SwIndexMarkDlg( Window *pParent, - sal_Bool bNewDlg, - const ResId& rResId, - sal_Int32 _nOptionsId, - SwWrtShell& rWrtShell ); - - - ~SwIndexMarkDlg(); - - void ReInitDlg(SwWrtShell& rWrtShell, SwTOXMark* pCurTOXMark = 0); - sal_Bool IsTOXType(const String& rName) - {return LISTBOX_ENTRY_NOTFOUND != aTypeDCB.GetEntryPos(rName);} -}; - -class SwIndexMarkFloatDlg : public SfxModelessDialog -{ - SwIndexMarkDlg aDlg; - virtual void Activate(); - public: - SwIndexMarkFloatDlg( SfxBindings* pBindings, - SfxChildWindow* pChild, - Window *pParent, - SfxChildWinInfo* pInfo, - sal_Bool bNew=sal_True); - void ReInitDlg(SwWrtShell& rWrtShell); -}; - -class SwIndexMarkModalDlg : public SvxStandardDialog -{ - SwIndexMarkDlg aDlg; -public: - SwIndexMarkModalDlg(Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark); - - virtual void Apply(); - void ReInitDlg(SwWrtShell& rWrtShell); -}; - -class SwAuthMarkModalDlg; - -class SwAuthMarkDlg : public Window -{ - static sal_Bool bIsFromComponent; - - friend class SwAuthMarkModalDlg; - friend class SwAuthMarkFloatDlg; - - RadioButton aFromComponentRB; - RadioButton aFromDocContentRB; - FixedText aAuthorFT; - FixedInfo aAuthorFI; - FixedText aTitleFT; - FixedInfo aTitleFI; - FixedText aEntryFT; - Edit aEntryED; - ListBox aEntryLB; - - FixedLine aEntryFL; - - 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*); - DECL_LINK(EditModifyHdl, Edit*); - - void InitControls(); - virtual void Activate(); -public: - - SwAuthMarkDlg( Window *pParent, - const ResId& rResId, - sal_Bool bNew=sal_True); - ~SwAuthMarkDlg(); - - void ReInitDlg(SwWrtShell& rWrtShell); -}; - -class SwAuthMarkFloatDlg : public SfxModelessDialog -{ - SwAuthMarkDlg aDlg; - virtual void Activate(); - public: - SwAuthMarkFloatDlg( SfxBindings* pBindings, - SfxChildWindow* pChild, - Window *pParent, - SfxChildWinInfo* pInfo, - sal_Bool bNew=sal_True); - void ReInitDlg(SwWrtShell& rWrtShell); -}; - -class SwAuthMarkModalDlg : public SvxStandardDialog -{ - SwAuthMarkDlg aDlg; -public: - SwAuthMarkModalDlg(Window *pParent, SwWrtShell& rSh); - - virtual void Apply(); - void ReInitDlg(SwWrtShell& rWrtShell); -}; - -#endif // _SWUI_IDXMRK_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/swuipardlg.hxx b/sw/source/ui/inc/swuipardlg.hxx deleted file mode 100644 index 475265ee87..0000000000 --- a/sw/source/ui/inc/swuipardlg.hxx +++ /dev/null @@ -1,54 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWUI_PARDLG_HXX -#define _SWUI_PARDLG_HXX -#include "pardlg.hxx" - -class SwParaDlg: public SfxTabDialog -{ - SwView& rView; - sal_uInt16 nHtmlMode; - sal_uInt8 nDlgMode; - sal_Bool bDrawParaDlg; - - void PageCreated(sal_uInt16 nID, SfxTabPage& rPage); - -public: - SwParaDlg( Window *pParent, - SwView& rVw, - const SfxItemSet&, - sal_uInt8 nDialogMode, - const String *pCollName = 0, - sal_Bool bDraw = sal_False, - sal_uInt16 nDefPage = 0); - ~SwParaDlg(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/swvset.hxx b/sw/source/ui/inc/swvset.hxx deleted file mode 100644 index 39a6a1fc1b..0000000000 --- a/sw/source/ui/inc/swvset.hxx +++ /dev/null @@ -1,42 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWVSET_HXX -#define _SWVSET_HXX -#include <svx/numvset.hxx> - -class SwRulerValueSet : public SvxBmpNumValueSet -{ - public: - SwRulerValueSet( Window* pParent, - const ResId& rResId ); - ~SwRulerValueSet(); - virtual void UserDraw( const UserDrawEvent& rUDEvt ); -}; -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/swwrtshitem.hxx b/sw/source/ui/inc/swwrtshitem.hxx deleted file mode 100644 index 95530b608d..0000000000 --- a/sw/source/ui/inc/swwrtshitem.hxx +++ /dev/null @@ -1,55 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SW_WRTSHELLITEM_HXX -#define _SW_WRTSHELLITEM_HXX -#include <svl/poolitem.hxx> -#include "swdllapi.h" - -class SwWrtShell; - -class SW_DLLPUBLIC SwWrtShellItem: public SfxPoolItem -{ - SwWrtShell* pWrtSh; - -public: - TYPEINFO(); - SwWrtShellItem(); - SwWrtShellItem( sal_uInt16 nWhich , SwWrtShell* pWrtSh); - SwWrtShellItem( const SwWrtShellItem& ); - - - virtual int operator==( const SfxPoolItem& ) const; - virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; - - SwWrtShell* GetValue() const { return pWrtSh; } - -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/syncbtn.hxx b/sw/source/ui/inc/syncbtn.hxx deleted file mode 100644 index edfff239aa..0000000000 --- a/sw/source/ui/inc/syncbtn.hxx +++ /dev/null @@ -1,63 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWSYNCBTN_HXX -#define _SWSYNCBTN_HXX -#include <sfx2/childwin.hxx> - -#ifdef _SYNCDLG -#include <sfx2/basedlgs.hxx> - -#include <vcl/button.hxx> - -class SwSyncBtnDlg : public SfxFloatingWindow -{ - PushButton aSyncBtn; - - DECL_LINK( BtnHdl, PushButton* pBtn = 0 ); - -public: - SwSyncBtnDlg(SfxBindings*, SfxChildWindow*, Window *pParent); - ~SwSyncBtnDlg(); -}; -#endif - -class SwSyncChildWin : public SfxChildWindow -{ -public: - SwSyncChildWin( Window* , - sal_uInt16 nId, - SfxBindings*, - SfxChildWinInfo* ); - - SFX_DECL_CHILDWINDOW( SwSyncChildWin ); -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/table.hrc b/sw/source/ui/inc/table.hrc deleted file mode 100644 index 721c6de5b6..0000000000 --- a/sw/source/ui/inc/table.hrc +++ /dev/null @@ -1,50 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#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) moved to svx -#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 deleted file mode 100644 index ec7c5eabe5..0000000000 --- a/sw/source/ui/inc/tabledlg.hxx +++ /dev/null @@ -1,58 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _TABLEDLG_HXX -#define _TABLEDLG_HXX - -#include <sfx2/tabdlg.hxx> - - -#include "swtypes.hxx" -#include "swtablerep.hxx" - -class SwWrtShell; -class SwTabCols; -struct TColumn; - -/*------------------------------------------------------- - table dialog ---------------------------------------------------------- */ -class SwTableTabDlg : public SfxTabDialog -{ - SwWrtShell* pShell; - sal_uInt16 nHtmlMode; - - virtual void PageCreated(sal_uInt16 nId, SfxTabPage& rPage); -public: - SwTableTabDlg( Window* pParent, SfxItemPool& Pool, - const SfxItemSet* pItemSet, SwWrtShell* pSh ); -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/tablemgr.hxx b/sw/source/ui/inc/tablemgr.hxx deleted file mode 100644 index 2ffc47c306..0000000000 --- a/sw/source/ui/inc/tablemgr.hxx +++ /dev/null @@ -1,98 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _TABLEMGR_HXX -#define _TABLEMGR_HXX - -#include "swdllapi.h" -#include "swtypes.hxx" -#include "tabcol.hxx" - -class SwFrmFmt; -class SwWrtShell; -class Window; -class SfxItemSet; -class SwFlyFrmFmt; - -namespace com { namespace sun { namespace star { - namespace frame { - class XModel; } - namespace chart2 { - namespace data { - class XDataProvider; } } -}}} - -const SwTwips lAutoWidth = INVALID_TWIPS; -const char cParaDelim = 0x0a; - -class SW_DLLPUBLIC SwTableFUNC -{ - SwFrmFmt *pFmt; - SwWrtShell *pSh; - sal_Bool bCopy; - SwTabCols aCols; - -private: - SW_DLLPRIVATE int GetRightSeparator(int nNum) const; - -public: - inline SwTableFUNC(SwFrmFmt &); - SwTableFUNC(SwWrtShell *pShell, sal_Bool bCopyFmt = sal_False); - ~SwTableFUNC(); - - void InitTabCols(); - void ColWidthDlg(Window *pParent ); - SwTwips GetColWidth(sal_uInt16 nNum) const; - SwTwips GetMaxColWidth(sal_uInt16 nNum) const; - void SetColWidth(sal_uInt16 nNum, SwTwips nWidth ); - sal_uInt16 GetColCount() const; - sal_uInt16 GetCurColNum() const; - - sal_Bool IsTableSelected() const { return pFmt != 0; } - - const SwFrmFmt *GetTableFmt() const { return pFmt; } - - SwWrtShell* GetShell() const { return pSh; } - - // @deprecated - void UpdateChart(); - - /// @return the XModel of the newly inserted chart if successfull - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > - InsertChart( ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataProvider > &rxDataProvider, sal_Bool bFillWithData, const rtl::OUString &rCellRange, SwFlyFrmFmt** ppFlyFrmFmt = 0 ); -}; - -inline SwTableFUNC::SwTableFUNC(SwFrmFmt &rFmt) : - pFmt(&rFmt), - pSh(0), - bCopy(sal_False) -{ -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/tabsh.hxx b/sw/source/ui/inc/tabsh.hxx deleted file mode 100644 index 163e69d76c..0000000000 --- a/sw/source/ui/inc/tabsh.hxx +++ /dev/null @@ -1,61 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWTABSH_HXX -#define _SWTABSH_HXX - -#include "basesh.hxx" -#include "swdllapi.h" - -class SfxItemSet; -class SwWrtShell; - -SW_DLLPUBLIC void ItemSetToTableParam( const SfxItemSet& rSet, SwWrtShell &rSh ); - -extern const sal_uInt16 aUITableAttrRange[]; -SW_DLLPUBLIC const sal_uInt16* SwuiGetUITableAttrRange(); - -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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/tautofmt.hxx b/sw/source/ui/inc/tautofmt.hxx deleted file mode 100644 index 11d8a4b1ad..0000000000 --- a/sw/source/ui/inc/tautofmt.hxx +++ /dev/null @@ -1,110 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef SW_TAUTOFMT_HXX -#define SW_TAUTOFMT_HXX -#include <sfx2/basedlgs.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/lstbox.hxx> - -#include <vcl/button.hxx> - -#include <vcl/morebtn.hxx> - -#include <vcl/virdev.hxx> - -class SwTableAutoFmt; -class AutoFmtPreview; -class SwTableAutoFmtTbl; -class SwWrtShell; - -//------------------------------------------------------------------------ - -enum AutoFmtLine { TOP_LINE, BOTTOM_LINE, LEFT_LINE, RIGHT_LINE }; - -//======================================================================== - -class SwAutoFormatDlg : public SfxModalDialog -{ - FixedLine aFlFormat; - ListBox aLbFormat; - FixedLine aFlFormats; - CheckBox aBtnNumFormat; - CheckBox aBtnBorder; - CheckBox aBtnFont; - CheckBox aBtnPattern; - CheckBox aBtnAlignment; - 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; - sal_uInt8 nIndex; - sal_uInt8 nDfltStylePos; - sal_Bool bCoreDataChanged : 1; - sal_Bool bSetAutoFmt : 1; - - - void Init( const SwTableAutoFmt* pSelFmt ); - void UpdateChecks( const SwTableAutoFmt&, sal_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, - sal_Bool bSetAutoFmt = sal_True, - const SwTableAutoFmt* pSelFmt = 0 ); - virtual ~SwAutoFormatDlg(); - - void FillAutoFmtOfIndex( SwTableAutoFmt*& rToFill ) const; -}; - - -#endif // SW_AUTOFMT_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/tblctrl.hxx b/sw/source/ui/inc/tblctrl.hxx deleted file mode 100644 index 73fa55a587..0000000000 --- a/sw/source/ui/inc/tblctrl.hxx +++ /dev/null @@ -1,59 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _TBLCTRL_HXX -#define _TBLCTRL_HXX - - -#include <sfx2/tbxctrl.hxx> - - -//---------------------------------------------------------------------------- -// -//---------------------------------------------------------------------------- - -class SwTableOptimizeCtrl : public SfxToolBoxControl -{ - -public: - SFX_DECL_TOOLBOX_CONTROL(); - - SwTableOptimizeCtrl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); - ~SwTableOptimizeCtrl(); - - virtual SfxPopupWindowType GetPopupWindowType() const; - virtual SfxPopupWindow* CreatePopupWindow(); - -}; - -// -//---------------------------------------------------------------------------- - -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/tblnumfm.hxx b/sw/source/ui/inc/tblnumfm.hxx deleted file mode 100644 index d385f4122d..0000000000 --- a/sw/source/ui/inc/tblnumfm.hxx +++ /dev/null @@ -1,46 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _TBLNUMFM_HXX -#define _TBLNUMFM_HXX - -#include <sfx2/basedlgs.hxx> - -class Window; -class SfxItemSet; - -class SwNumFmtDlg : public SfxSingleTabDialog -{ -public: - - SwNumFmtDlg(Window* pParent, const SfxItemSet& rSet); - ~SwNumFmtDlg(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/tbxanchr.hxx b/sw/source/ui/inc/tbxanchr.hxx deleted file mode 100644 index cfff29f2fb..0000000000 --- a/sw/source/ui/inc/tbxanchr.hxx +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _TBXANCHR_HXX -#define _TBXANCHR_HXX - -#include <sfx2/tbxctrl.hxx> - -class SwTbxAnchor : public SfxToolBoxControl -{ - sal_uInt16 nActAnchorId; - -public: - - virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); - virtual void Click(); - virtual SfxPopupWindow* CreatePopupWindow(); - - SFX_DECL_TOOLBOX_CONTROL(); - - SwTbxAnchor( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); - ~SwTbxAnchor(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/textcontrolcombo.hxx b/sw/source/ui/inc/textcontrolcombo.hxx deleted file mode 100644 index d1ad4126ea..0000000000 --- a/sw/source/ui/inc/textcontrolcombo.hxx +++ /dev/null @@ -1,67 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _TEXTCONTROLCOMBO_HXX -#define _TEXTCONTROLCOMBO_HXX - -#include <vcl/fixed.hxx> - -#include <vcl/field.hxx> -#include "swdllapi.h" - -class SW_DLLPUBLIC TextControlCombo : public Window -{ -protected: - - Control& mrCtrl; - FixedText& mrFTbefore; - FixedText& mrFTafter; - -public: - - using Window::Enable; - using Window::Disable; - - TextControlCombo( Window* _pParent, const ResId& _rResId, - Control& _rCtrl, FixedText& _rFTbefore, FixedText& _rFTafter ); - virtual ~TextControlCombo(); - - void Arrange( FixedText& _rOrg, sal_Bool bShow = true ); - - // identical to window functionality - void Show( sal_Bool bVisible = sal_True, sal_uInt16 nFlags = 0 ); - void Hide( sal_uInt16 nFlags = 0 ) { Show( sal_False, nFlags ); } - - void Enable( sal_Bool bEnable = sal_True, sal_Bool bChild = sal_True ); - void Disable( sal_Bool bChild = sal_True ) { Enable( sal_False, bChild ); } -}; - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/textsh.hxx b/sw/source/ui/inc/textsh.hxx deleted file mode 100644 index 8108749395..0000000000 --- a/sw/source/ui/inc/textsh.hxx +++ /dev/null @@ -1,92 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _SWTEXTSH_HXX -#define _SWTEXTSH_HXX - -#include <basesh.hxx> -#include <unotools/caserotate.hxx> - -class AbstractSvxPostItDialog; -class SwFldMgr; -class SvxHyperlinkItem; - -class SwTextShell: public SwBaseShell -{ - SwFldMgr* pPostItFldMgr; - RotateTransliteration m_aRotateCase; - - void InsertSymbol( SfxRequest& ); - void InsertHyperlink(const SvxHyperlinkItem& rHlnkItem); - bool InsertMediaDlg( SfxRequest& ); - void ChangeHeaderOrFooter(const String& rStyleName, sal_Bool bHeader, sal_Bool bOn, sal_Bool bShowWarning); - -public: - SFX_DECL_INTERFACE(SW_TEXTSHELL) - TYPEINFO(); - - DECL_LINK( RedlineNextHdl, AbstractSvxPostItDialog * ); - DECL_LINK( RedlinePrevHdl, AbstractSvxPostItDialog * ); - - 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 ExecCharAttrArgs(SfxRequest &); - void ExecParaAttr(SfxRequest &); - void ExecParaAttrArgs(SfxRequest &); - void ExecAttr(SfxRequest &); - void ExecDB(SfxRequest &); - void ExecTransliteration(SfxRequest &); - void ExecRotateTransliteration(SfxRequest &); - - void GetAttrState(SfxItemSet &); - - SwTextShell(SwView &rView); - virtual ~SwTextShell(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/titlepage.hxx b/sw/source/ui/inc/titlepage.hxx deleted file mode 100644 index 5f102e0082..0000000000 --- a/sw/source/ui/inc/titlepage.hxx +++ /dev/null @@ -1,102 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * Version: MPL 1.1 / GPLv3+ / LGPLv3+ - * - * The contents of this file are subject to the Mozilla Public 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.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Initial Developer of the Original Code is - * Caolán McNamara <caolanm@redhat.com> (Red Hat, Inc.) - * Portions created by the Initial Developer are Copyright (C) 2010 the - * Initial Developer. All Rights Reserved. - * - * Contributor(s): Caolán McNamara <caolanm@redhat.com> - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 3 or later (the "GPLv3+"), or - * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), - * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable - * instead of those above. - */ -#ifndef _SWTITLEPAGE_HXX -#define _SWTITLEPAGE_HXX - -#include <sfx2/basedlgs.hxx> -#include <sfx2/tabdlg.hxx> -#include <vcl/fixed.hxx> -#include <vcl/field.hxx> -#include <vcl/lstbox.hxx> -#include <numberingtypelistbox.hxx> - -class Window; -class SfxItemSet; -class SwView; -class SwWrtShell; -class SwPageDesc; - -class SwTitlePageDlg : public SfxModalDialog -{ -private: - FixedLine aMakeInsertFL; - RadioButton aUseExistingPagesRB; - RadioButton aInsertNewPagesRB; - FixedText aPageCountFT; - NumericField aPageCountNF; - FixedText aPagePagesFT; - - FixedText aPageStartFT; - RadioButton aDocumentStartRB; - RadioButton aPageStartRB; - NumericField aPageStartNF; - - FixedLine aNumberingFL; - CheckBox aRestartNumberingCB; - FixedText aRestartNumberingFT; - NumericField aRestartNumberingNF; - CheckBox aSetPageNumberCB; - FixedText aSetPageNumberFT; - NumericField aSetPageNumberNF; - - FixedLine aPagePropertiesFL; - ListBox aPagePropertiesLB; - PushButton aPagePropertiesPB; - - FixedLine aBottomFL; - OKButton aOkPB; - CancelButton aCancelPB; - HelpButton aHelpPB; - - SwWrtShell *mpSh; - - const SwFmtPageDesc *mpPageFmtDesc; - - SwPageDesc *mpTitleDesc; - const SwPageDesc *mpIndexDesc; - const SwPageDesc *mpNormalDesc; - - void FillList(); - - sal_uInt16 GetInsertPosition() const; - - DECL_LINK( OKHdl, Button * ); - DECL_LINK( EditHdl, Button * ); - DECL_LINK( RestartNumberingHdl, CheckBox* ); - DECL_LINK( SetPageNumberHdl, CheckBox* ); - DECL_LINK( UpHdl, NumericField * ); - DECL_LINK( DownHdl, NumericField * ); - DECL_LINK( StartPageHdl, RadioButton * ); -public: - SwTitlePageDlg( Window *pParent ); - ~SwTitlePageDlg(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/tmpdlg.hxx b/sw/source/ui/inc/tmpdlg.hxx deleted file mode 100644 index dae38cf650..0000000000 --- a/sw/source/ui/inc/tmpdlg.hxx +++ /dev/null @@ -1,67 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWTMPDLG_HXX -#define _SWTMPDLG_HXX - -#include <sfx2/styledlg.hxx> - -class SfxItemSet; -class SwWrtShell; - -/*-------------------------------------------------------------------- - Description: the tab dialog carrier of TabPages - --------------------------------------------------------------------*/ -class SwTemplateDlg: public SfxStyleDialog -{ - - sal_uInt16 nType; - sal_uInt16 nHtmlMode; - SwWrtShell* pWrtShell; - sal_Bool bNewStyle; - - DECL_LINK( NumOptionsHdl, PushButton* ); - DECL_LINK( ApplyHdl, void* ); - -public: - SwTemplateDlg( Window* pParent, - SfxStyleSheetBase& rBase, - sal_uInt16 nRegion, - sal_Bool bColumn = sal_False, - SwWrtShell* pActShell = 0, - sal_Bool bNew = sal_False ); - - ~SwTemplateDlg(); - const SfxItemSet* GetRefreshedSet(); - - virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ); - virtual short Ok(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/tmplctrl.hxx b/sw/source/ui/inc/tmplctrl.hxx deleted file mode 100644 index 6a9a2d35c2..0000000000 --- a/sw/source/ui/inc/tmplctrl.hxx +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _TMPLCTRL_HXX -#define _TMPLCTRL_HXX - -// include --------------------------------------------------------------- -#include <sfx2/stbitem.hxx> -#include <tools/string.hxx> - -// class BookmarkToolBoxControl ------------------------------------------- -class SwTemplateControl : public SfxStatusBarControl -{ -protected: - virtual void Command( const CommandEvent& rCEvt ); -public: - virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, - const SfxPoolItem* pState ); - virtual void Paint( const UserDrawEvent& rEvt ); - - SFX_DECL_STATUSBAR_CONTROL(); - - SwTemplateControl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb ); - ~SwTemplateControl(); - -private: - String sTemplate; -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/toolbox.hrc b/sw/source/ui/inc/toolbox.hrc deleted file mode 100644 index 8c73a70c60..0000000000 --- a/sw/source/ui/inc/toolbox.hrc +++ /dev/null @@ -1,563 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _TOOLBOX_HRC -#define _TOOLBOX_HRC -#include "shells.hrc" -#include "globals.hrc" -#include "cmdid.h" -#define MN_FONT\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_CHAR_FONT;\ - HelpID = SID_ATTR_CHAR_FONT;\ - };\ - ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; }; \ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_CHAR_FONTHEIGHT ; \ - HelpID = SID_ATTR_CHAR_FONTHEIGHT ; \ - };\ - ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; }; - -#define MN_TEXT1( HIDE )\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_CHAR_WEIGHT ; \ - HelpID = SID_ATTR_CHAR_WEIGHT ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_CHAR_POSTURE ; \ - HelpID = SID_ATTR_CHAR_POSTURE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_CHAR_UNDERLINE ; \ - HelpID = SID_ATTR_CHAR_UNDERLINE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_CHAR_OVERLINE ; \ - HelpID = SID_ATTR_CHAR_OVERLINE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_SET_SUPER_SCRIPT;\ - HelpID = FN_SET_SUPER_SCRIPT;\ - Hide = HIDE;\ - };\ - ToolBoxItem\ - {\ - Identifier = FN_SET_SUB_SCRIPT;\ - HelpID = FN_SET_SUB_SCRIPT;\ - Hide = HIDE;\ - };\ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_ADJUST_LEFT ; \ - HelpID = SID_ATTR_PARA_ADJUST_LEFT ; \ - RadioCheck = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_ADJUST_CENTER ; \ - HelpID = SID_ATTR_PARA_ADJUST_CENTER ; \ - RadioCheck = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_ADJUST_RIGHT ; \ - HelpID = SID_ATTR_PARA_ADJUST_RIGHT ; \ - RadioCheck = TRUE ; \ - };\ - -#define MN_TEXT1_RTL( HIDE )\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_CHAR_WEIGHT ; \ - HelpID = SID_ATTR_CHAR_WEIGHT ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_CHAR_POSTURE ; \ - HelpID = SID_ATTR_CHAR_POSTURE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_CHAR_UNDERLINE ; \ - HelpID = SID_ATTR_CHAR_UNDERLINE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_CHAR_OVERLINE ; \ - HelpID = SID_ATTR_CHAR_OVERLINE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_SET_SUPER_SCRIPT;\ - HelpID = FN_SET_SUPER_SCRIPT;\ - Hide = HIDE;\ - };\ - ToolBoxItem\ - {\ - Identifier = FN_SET_SUB_SCRIPT;\ - HelpID = FN_SET_SUB_SCRIPT;\ - Hide = HIDE;\ - };\ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_ADJUST_RIGHT ; \ - HelpID = SID_ATTR_PARA_ADJUST_RIGHT ; \ - RadioCheck = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_ADJUST_CENTER ; \ - HelpID = SID_ATTR_PARA_ADJUST_CENTER ; \ - RadioCheck = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_ADJUST_LEFT ; \ - HelpID = SID_ATTR_PARA_ADJUST_LEFT ; \ - RadioCheck = TRUE ; \ - };\ - -#define MN_TEXT1_BLOCK \ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_ADJUST_BLOCK ; \ - HelpID = SID_ATTR_PARA_ADJUST_BLOCK ; \ - RadioCheck = TRUE ; \ - };\ - -#define MN_TEXT_LINESPACE \ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_LINESPACE_10;\ - HelpID = SID_ATTR_PARA_LINESPACE_10;\ - RadioCheck = TRUE;\ - Hide = TRUE;\ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_LINESPACE_15;\ - HelpID = SID_ATTR_PARA_LINESPACE_15;\ - RadioCheck = TRUE;\ - Hide = TRUE;\ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_LINESPACE_20;\ - HelpID = SID_ATTR_PARA_LINESPACE_20;\ - RadioCheck = TRUE;\ - Hide = TRUE;\ - };\ - -#define MN_TEXT_LTR_RTL \ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_LEFT_TO_RIGHT;\ - HelpID = SID_ATTR_PARA_LEFT_TO_RIGHT;\ - RadioCheck = TRUE;\ - Hide = TRUE;\ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_RIGHT_TO_LEFT;\ - HelpID = SID_ATTR_PARA_RIGHT_TO_LEFT;\ - RadioCheck = TRUE;\ - Hide = TRUE;\ - };\ - -#define MN_TEXT_RTL_LTR \ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_RIGHT_TO_LEFT;\ - HelpID = SID_ATTR_PARA_RIGHT_TO_LEFT;\ - RadioCheck = TRUE;\ - Hide = TRUE;\ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_PARA_LEFT_TO_RIGHT;\ - HelpID = SID_ATTR_PARA_LEFT_TO_RIGHT;\ - RadioCheck = TRUE;\ - Hide = TRUE;\ - };\ - -#define MN_TEXT2\ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_NUM_NUMBERING_ON ; \ - HelpID = FN_NUM_NUMBERING_ON ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_NUM_BULLET_ON ; \ - HelpID = FN_NUM_BULLET_ON ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_DEC_INDENT ; \ - HelpId = SID_DEC_INDENT ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_INC_INDENT ; \ - HelpId = SID_INC_INDENT ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_GROW_FONT_SIZE;\ - HelpID = FN_GROW_FONT_SIZE;\ - Hide = TRUE;\ - };\ - ToolBoxItem\ - {\ - Identifier = FN_SHRINK_FONT_SIZE;\ - HelpID = FN_SHRINK_FONT_SIZE;\ - Hide = TRUE;\ - };\ - -#define MN_BACKGROUND_COLOR\ - ToolBoxItem\ - {\ - ITEM_TOOLBAR_BACKGROUND_COLOR\ - }; - -#define MN_TEXT_BACKGROUND \ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR ; \ - };\ - ToolBoxItem\ - {\ - ITEM_TOOLBAR_ATTR_CHAR_COLOR\ - Identifier = SID_ATTR_CHAR_COLOR2 ; \ - Command = ".uno:FontColor"; \ - DropDown = TRUE ;\ - };\ - ToolBoxItem\ - {\ - Identifier = SID_ATTR_CHAR_COLOR_BACKGROUND ; \ - HelpID = SID_ATTR_CHAR_COLOR_BACKGROUND ; \ - DropDown = TRUE ;\ - };\ - ToolBoxItem\ - {\ - ITEM_TOOLBAR_BACKGROUND_COLOR\ - Text [ en-US ] = "Paragraph Background" ; \ - Text [ x-comment ] = " ";\ - }; - -#define MN_TEXT_DIALOGS(HIDE)\ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_SELECTALL;\ - HelpId = SID_SELECTALL;\ - Hide = HIDE;\ - };\ - ToolBoxItem\ - {\ - Identifier = SID_CHAR_DLG;\ - HelpId = SID_CHAR_DLG;\ - Hide = HIDE;\ - };\ - ToolBoxItem\ - {\ - Identifier = SID_PARA_DLG;\ - HelpId = SID_PARA_DLG;\ - Hide = HIDE;\ - }; - - -#define MN_TEMPLATE\ - ToolBoxItem\ - {\ - ITEM_TOOLBAR_TEMPLATE_APPLY\ - };\ - ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; }; - -#define MN_FRAME_WRAP\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_NOWRAP ; \ - HelpID = FN_FRAME_NOWRAP ; \ - RadioCheck = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_WRAP ; \ - HelpID = FN_FRAME_WRAP ; \ - RadioCheck = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_WRAP_IDEAL ; \ - HelpID = FN_FRAME_WRAP_IDEAL ; \ - RadioCheck = TRUE ; \ - Hide = TRUE;\ - };\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_WRAP_LEFT ; \ - HelpID = FN_FRAME_WRAP_LEFT ; \ - RadioCheck = TRUE ; \ - Hide = TRUE;\ - };\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_WRAP_RIGHT ; \ - HelpID = FN_FRAME_WRAP_RIGHT ; \ - RadioCheck = TRUE ; \ - Hide = TRUE;\ - };\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_WRAPTHRU ; \ - HelpID = FN_FRAME_WRAPTHRU ; \ - RadioCheck = TRUE ; \ - }; - -#define MN_FRAME_WRAP_WEB\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_NOWRAP ; \ - HelpID = FN_FRAME_NOWRAP ; \ - RadioCheck = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_WRAP_LEFT ; \ - HelpID = FN_FRAME_WRAP_LEFT ; \ - RadioCheck = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_WRAP_RIGHT ; \ - HelpID = FN_FRAME_WRAP_RIGHT ; \ - RadioCheck = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_IMAP ; \ - HelpID = SID_IMAP ; \ - RadioCheck = TRUE ; \ - }; - -#define MN_CONTOUR\ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_WRAP_CONTOUR ; \ - HelpID = FN_FRAME_WRAP_CONTOUR ; \ - Hide = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_CONTOUR_DLG ; \ - HelpID = SID_CONTOUR_DLG ; \ - Hide = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_IMAP ; \ - HelpID = SID_IMAP ; \ - Hide = TRUE ; \ - }; - - -#define MN_FRAME1\ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_ALIGN_HORZ_LEFT ; \ - HelpID = FN_FRAME_ALIGN_HORZ_LEFT ; \ - RadioCheck = TRUE ; \ - }; - -#define MN_FRAME2\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_ALIGN_HORZ_CENTER ; \ - HelpID = FN_FRAME_ALIGN_HORZ_CENTER ; \ - RadioCheck = TRUE ; \ - }; - -#define MN_FRAME3\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_ALIGN_HORZ_RIGHT ; \ - HelpID = FN_FRAME_ALIGN_HORZ_RIGHT ; \ - RadioCheck = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_ALIGN_VERT_TOP ; \ - HelpID = FN_FRAME_ALIGN_VERT_TOP ; \ - RadioCheck = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_ALIGN_VERT_CENTER ; \ - HelpID = FN_FRAME_ALIGN_VERT_CENTER ; \ - RadioCheck = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Identifier = FN_FRAME_ALIGN_VERT_BOTTOM ; \ - HelpID = FN_FRAME_ALIGN_VERT_BOTTOM ; \ - RadioCheck = TRUE ; \ - };\ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR ; \ - }; - -#define MN_LAYER\ - ToolBoxItem\ - {\ - Identifier = SID_FRAME_TO_TOP ; \ - HelpID = SID_FRAME_TO_TOP ; \ - };\ - ToolBoxItem\ - {\ - Identifier = SID_FRAME_TO_BOTTOM ; \ - HelpID = SID_FRAME_TO_BOTTOM ; \ - }; - -#define MN_LINESTYLE\ - ToolBoxItem\ - {\ - ITEM_TOOLBAR_ATTR_BORDER\ - };\ - ToolBoxItem\ - {\ - ITEM_TOOLBAR_FRAME_LINESTYLE\ - };\ - ToolBoxItem\ - {\ - ITEM_TOOLBAR_FRAME_LINECOLOR\ - }; - -#define MN_ATTRIBUTES_FRAME\ - ToolBoxItem\ - {\ - Identifier = FN_FORMAT_FRAME_DLG ; \ - HelpID = FN_FORMAT_FRAME_DLG ; \ - }; - -#define MN_ATTRIBUTES_GRAFIK\ - ToolBoxItem\ - {\ - Identifier = FN_FORMAT_FRAME_DLG;\ - HelpID = FN_FORMAT_GRAFIC_DLG;\ - Text [ en-US ] = "Graphics Properties";\ - Text [ x-comment ] = " ";\ - }; - - -#define MN_ATTRIBUTES_OLE\ - ToolBoxItem\ - {\ - Identifier = FN_FORMAT_FRAME_DLG;\ - HelpID = FN_FORMAT_FRAME_DLG;\ - Text [ en-US ] = "Object Properties";\ - Text [ x-comment ] = " ";\ - }; - -#define MN_GRID(hide)\ - ToolBoxItem\ - {\ - Type = TOOLBOXITEM_SEPARATOR;\ - };\ - ToolBoxItem\ - {\ - Identifier = SID_GRID_VISIBLE;\ - HelpID = SID_GRID_VISIBLE;\ - hide;\ - };\ - ToolBoxItem\ - {\ - Identifier = SID_GRID_USE;\ - HelpID = SID_GRID_USE;\ - hide;\ - };\ - ToolBoxItem\ - {\ - Identifier = SID_HELPLINES_MOVE;\ - HelpID = SID_HELPLINES_MOVE;\ - hide;\ - }; - - - -#endif // _TOOLBOX_HRC - diff --git a/sw/source/ui/inc/toxmgr.hxx b/sw/source/ui/inc/toxmgr.hxx deleted file mode 100644 index c419776854..0000000000 --- a/sw/source/ui/inc/toxmgr.hxx +++ /dev/null @@ -1,323 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _TOXMGR_HXX -#define _TOXMGR_HXX - -#include "swdllapi.h" -#include "tox.hxx" -#include <authfld.hxx> - -class SwWrtShell; -class SwForm; - -/*-------------------------------------------------------------------- - Description: manager for directory functionality - --------------------------------------------------------------------*/ -//one single method will be sufficient to insert AND upate indexes -class SW_DLLPUBLIC SwTOXDescription -{ - TOXTypes eTOXType; - String aStyleNames[MAXLEVEL]; - String sSequenceName; - String sMainEntryCharStyle; - String sAutoMarkURL; - String* pTitle; - String* pTOUName; - SwForm* pForm; - sal_uInt16 nContent; - sal_uInt16 nIndexOptions; - sal_uInt16 nOLEOptions; - LanguageType eLanguage; - String sSortAlgorithm; - - String sAuthBrackets; - SwCaptionDisplay eCaptionDisplay; - SwTOXSortKey eSortKey1; - SwTOXSortKey eSortKey2; - SwTOXSortKey eSortKey3; - sal_uInt8 nLevel; - sal_Bool bFromObjectNames : 1; - sal_Bool bFromChapter : 1; - sal_Bool bReadonly: 1; - sal_Bool bLevelFromChapter : 1; - sal_Bool bIsAuthSequence :1; - sal_Bool bSortByDocument :1; - - //TODO: TemplateNames - //const String* pTemplateName = 0, ??? - - // forbidden and not implemented. - SwTOXDescription(); - SwTOXDescription(SwTOXDescription&); - SwTOXDescription & operator= (SwTOXDescription&); - -public: - // single argument ctors shall be explicit. - explicit SwTOXDescription(TOXTypes eType) : - eTOXType(eType), - pTitle(0), - pTOUName(0), - pForm(0), - nContent(nsSwTOXElement::TOX_MARK | nsSwTOXElement::TOX_OUTLINELEVEL), - nIndexOptions(nsSwTOIOptions::TOI_SAME_ENTRY|nsSwTOIOptions::TOI_FF|nsSwTOIOptions::TOI_CASE_SENSITIVE), - nOLEOptions(0), - eLanguage((LanguageType)::GetAppLanguage()), - eCaptionDisplay(CAPTION_COMPLETE), - nLevel(MAXLEVEL), - bFromObjectNames(sal_False), - bFromChapter(sal_False), - bReadonly(sal_True), - bLevelFromChapter(sal_False), - bIsAuthSequence(sal_False), - bSortByDocument(sal_True) - {} - ~SwTOXDescription() - { - delete pTitle; - delete pForm; - delete pTOUName; - } - - void SetTOXType(TOXTypes eSet) { eTOXType = eSet;} - TOXTypes GetTOXType() const { return eTOXType;} - - const String& GetStyleNames(sal_uInt16 nLvl) const - {return aStyleNames[nLvl];} - void SetStyleNames(const String& rSet, sal_uInt16 nLvl) - {aStyleNames[nLvl] = 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(sal_uInt16 nSet) { nContent = nSet;} - sal_uInt16 GetContentOptions() const { return nContent;} - - void SetIndexOptions(sal_uInt16 nSet) { nIndexOptions = nSet;} - sal_uInt16 GetIndexOptions() const { return nIndexOptions;} - - const String& GetMainEntryCharStyle() const {return sMainEntryCharStyle;} - void SetMainEntryCharStyle(const String& rSet) {sMainEntryCharStyle = rSet;} - - void SetLevel(sal_uInt8 nSet) {nLevel = nSet;} - sal_uInt8 GetLevel()const {return nLevel; } - - void SetCreateFromObjectNames(sal_Bool bSet) { bFromObjectNames = bSet;} - sal_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(sal_Bool bSet) { bFromChapter = bSet;} - sal_Bool IsFromChapter() const {return bFromChapter;} - - void SetReadonly(sal_Bool bSet){bReadonly = bSet;} - sal_Bool IsReadonly() const {return bReadonly;} - - sal_uInt16 GetOLEOptions() const {return nOLEOptions;} - void SetOLEOptions(sal_uInt16 nOpt) {nOLEOptions = nOpt;} - - sal_Bool IsLevelFromChapter() const {return bLevelFromChapter;} - void SetLevelFromChapter(sal_Bool bSet) {bLevelFromChapter = bSet;} - - String GetAuthBrackets() const {return sAuthBrackets;} - void SetAuthBrackets(const String& rSet) {sAuthBrackets = rSet;} - - sal_Bool IsAuthSequence() const {return bIsAuthSequence;} - void SetAuthSequence(sal_Bool bSet){bIsAuthSequence = bSet;} - - sal_Bool IsSortByDocument()const {return bSortByDocument ;} - void SetSortByDocument(sal_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;} - - LanguageType GetLanguage() const {return eLanguage;} - void SetLanguage(LanguageType nLang) {eLanguage = nLang;} - - const String& GetSortAlgorithm()const {return sSortAlgorithm;} - void SetSortAlgorithm(const String& rSet) {sSortAlgorithm = rSet;} - - void ApplyTo(SwTOXBase& rTOXBase); - -}; - -class SwTOXMarkDescription -{ - TOXTypes eTOXType; - int nLevel; - sal_Bool bMainEntry; - - String* pPrimKey; - String* pSecKey; - String* pAltStr; - String* pTOUName; - - String* pPhoneticReadingOfAltStr; - String* pPhoneticReadingOfPrimKey; - String* pPhoneticReadingOfSecKey; - - // forbidden and not implemented. - SwTOXMarkDescription(); - SwTOXMarkDescription(SwTOXMarkDescription&); - SwTOXMarkDescription & operator= (SwTOXMarkDescription&); - -public: - // single argument ctors shall be explicit. - explicit SwTOXMarkDescription(TOXTypes eType) : - eTOXType(eType), - nLevel(0), - bMainEntry(sal_False), - pPrimKey(0), - pSecKey(0), - pAltStr(0), - pTOUName(0), - pPhoneticReadingOfAltStr(0), - pPhoneticReadingOfPrimKey(0), - pPhoneticReadingOfSecKey(0) - { - } - ~SwTOXMarkDescription() - { - delete pPrimKey; - delete pSecKey; - delete pAltStr; - delete pTOUName; - delete pPhoneticReadingOfAltStr; - delete pPhoneticReadingOfPrimKey; - delete pPhoneticReadingOfSecKey; - } - - TOXTypes GetTOXType()const {return eTOXType;} - - void SetLevel(int nSet) {nLevel = nSet;} - int GetLevel() const {return nLevel;} - - void SetMainEntry(sal_Bool bSet) {bMainEntry = bSet;} - sal_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;} - - - void SetPhoneticReadingOfAltStr(const String& rSet) - {delete pPhoneticReadingOfAltStr; pPhoneticReadingOfAltStr = new String(rSet);} - const String* GetPhoneticReadingOfAltStr() const { return pPhoneticReadingOfAltStr; } - - void SetPhoneticReadingOfPrimKey(const String& rSet) - {delete pPhoneticReadingOfPrimKey; pPhoneticReadingOfPrimKey = new String(rSet);} - const String* GetPhoneticReadingOfPrimKey() const { return pPhoneticReadingOfPrimKey; } - - void SetPhoneticReadingOfSecKey(const String& rSet) - {delete pPhoneticReadingOfSecKey; pPhoneticReadingOfSecKey = new String(rSet);} - const String* GetPhoneticReadingOfSecKey() const { return pPhoneticReadingOfSecKey; } -}; - -class SW_DLLPUBLIC SwTOXMgr -{ - SwWrtShell* pSh; - SwTOXMark* pCurTOXMark; - SwTOXMarks aCurMarks; - - SW_DLLPRIVATE sal_uInt16 GetUserTypeID(const String& rStr); - -public: - // single argument ctors shall be explicit. - explicit SwTOXMgr(SwWrtShell* pShell); - - // - // methods for directory marks - // - void InsertTOXMark(const SwTOXMarkDescription& rDesc); - - void UpdateTOXMark(const SwTOXMarkDescription& rDesc); - - - void DeleteTOXMark(); - void NextTOXMark(sal_Bool bSame=sal_False); - void PrevTOXMark(sal_Bool bSame=sal_False); - - // get current TOXmarks - sal_uInt16 GetTOXMarks(); - sal_uInt16 GetTOXMarkCount(); - SwTOXMark* GetTOXMark(sal_uInt16 nId); - SwTOXMark* GetCurTOXMark(); - void SetCurTOXMark(sal_uInt16 nId); - - // - // methods for directories - // - sal_Bool UpdateOrInsertTOX(const SwTOXDescription& rDesc, SwTOXBase** ppBase = 0, const SfxItemSet* pSet = 0); - - const SwTOXType* GetTOXType(TOXTypes eTyp, sal_uInt16 nId) const; - const SwTOXBase* GetCurTOX(); - -}; - -/*-------------------------------------------------------------------- - Description: inlines - --------------------------------------------------------------------*/ -inline sal_uInt16 SwTOXMgr::GetTOXMarkCount() - { return aCurMarks.Count(); } - -inline SwTOXMark* SwTOXMgr::GetCurTOXMark() - { return pCurTOXMark; } - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/uiborder.hxx b/sw/source/ui/inc/uiborder.hxx deleted file mode 100644 index 44900332e3..0000000000 --- a/sw/source/ui/inc/uiborder.hxx +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _UIBORDER_HXX -#define _UIBORDER_HXX - - -#include <sfx2/basedlgs.hxx> -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, sal_uInt16 nType); - ~SwBorderDlg(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/uiitems.hxx b/sw/source/ui/inc/uiitems.hxx deleted file mode 100644 index 1e7f55c7e7..0000000000 --- a/sw/source/ui/inc/uiitems.hxx +++ /dev/null @@ -1,112 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _UIITEMS_HXX -#define _UIITEMS_HXX - -#include <svl/intitem.hxx> -#include "swdllapi.h" -#include "cmdid.h" -#include "pagedesc.hxx" - -class SwNumRule; -class IntlWrapper; - -/*-------------------------------------------------------------------- - Description: container for FootNote - --------------------------------------------------------------------*/ -class SW_DLLPUBLIC SwPageFtnInfoItem : public SfxPoolItem -{ - SwPageFtnInfo aFtnInfo; - -public: - - SwPageFtnInfoItem(const sal_uInt16 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 IntlWrapper* pIntl = 0 ) const; - - virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; - virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - - SwPageFtnInfo& GetPageFtnInfo() { return aFtnInfo; } - const SwPageFtnInfo& GetPageFtnInfo() const { return aFtnInfo; } - void SetPageFtnInfo(SwPageFtnInfo& rInf) { aFtnInfo = rInf; } -}; - -class SW_DLLPUBLIC SwPtrItem : public SfxPoolItem -{ - void* pMisc; - -public: - SwPtrItem( const sal_uInt16 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 SW_DLLPUBLIC SwUINumRuleItem : public SfxPoolItem -{ - SwNumRule* pRule; - -public: - SwUINumRuleItem( const SwNumRule& rRule, const sal_uInt16 = 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, sal_uInt8 nMemberId = 0 ) const; - virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - - const SwNumRule* GetNumRule() const { return pRule; } - SwNumRule* GetNumRule() { return pRule; } -}; - -class SwBackgroundDestinationItem : public SfxUInt16Item -{ -public: - SwBackgroundDestinationItem(sal_uInt16 nWhich, sal_uInt16 nValue); - - virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; -}; - -#endif // _UIITEMS_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/uinums.hxx b/sw/source/ui/inc/uinums.hxx deleted file mode 100644 index 59d910cd4f..0000000000 --- a/sw/source/ui/inc/uinums.hxx +++ /dev/null @@ -1,133 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _UINUMS_HXX -#define _UINUMS_HXX - -#include <svl/svarray.hxx> -#include <numrule.hxx> -#include "swdllapi.h" - -class SfxPoolItem; -class SwWrtShell; -class SvStream; - -#define MAX_NUM_RULES 9 - -typedef SfxPoolItem* SfxPoolItemPtr; -SV_DECL_PTRARR_DEL( _SwNumFmtsAttrs, SfxPoolItemPtr, 5,0 ) - -class SW_DLLPUBLIC SwNumRulesWithName -{ - String aName; - // the NumRule's formats _have_ to be independent of a document - // (They should always be there!) - class SW_DLLPRIVATE _SwNumFmtGlobal - { - SwNumFmt aFmt; - String sCharFmtName; - sal_uInt16 nCharPoolId; - _SwNumFmtsAttrs aItems; - - _SwNumFmtGlobal& operator=( const _SwNumFmtGlobal& ); - - public: - _SwNumFmtGlobal( const SwNumFmt& rFmt ); - _SwNumFmtGlobal( const _SwNumFmtGlobal& ); - _SwNumFmtGlobal( SvStream&, sal_uInt16 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 &, sal_uInt16 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 }; // currently 9 defined forms -protected: - SwNumRulesWithName *pNumRules[ MAX_NUM_RULES ]; - String sFileName; - sal_uInt16 nVersion; - sal_Bool bModified; - - virtual int Load(SvStream&); - virtual sal_Bool Store(SvStream&); - - void Init(); - -public: - SwBaseNumRules(const String& rFileName); - virtual ~SwBaseNumRules(); - - inline const SwNumRulesWithName* GetRules(sal_uInt16 nIdx) const; - virtual void ApplyNumRules( - const SwNumRulesWithName &rCopy, - sal_uInt16 nIdx); - -}; - -class SwChapterNumRules : public SwBaseNumRules -{ - -public: - SwChapterNumRules(); - virtual ~SwChapterNumRules(); - - virtual void ApplyNumRules( const SwNumRulesWithName &rCopy, - sal_uInt16 nIdx); -}; - -// INLINE METHODE -------------------------------------------------------- -inline const SwNumRulesWithName *SwBaseNumRules::GetRules(sal_uInt16 nIdx) const -{ - OSL_ENSURE(nIdx < nMaxRules, "Array der NumRules ueberindiziert."); - return pNumRules[nIdx]; -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/uitool.hxx b/sw/source/ui/inc/uitool.hxx deleted file mode 100644 index 9a1304aa7a..0000000000 --- a/sw/source/ui/inc/uitool.hxx +++ /dev/null @@ -1,98 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _UITOOL_HXX -#define _UITOOL_HXX - -#include <tools/wintypes.hxx> -#include <vcl/field.hxx> -#include <swtypes.hxx> -#include "swdllapi.h" - -class MetricFormatter; -class SfxItemSet; -class SfxMedium; -class SwPageDesc; -class SvxTabStopItem; -class SwWrtShell; -class ListBox; -class SwDocShell; -class SwFrmFmt; -class SwTabCols; -class DateTime; -class SfxViewFrame; - -// switch a metric -SW_DLLPUBLIC void SetMetric(MetricFormatter& rCtrl, FieldUnit eUnit); - -// fill BoxInfoAttribut -SW_DLLPUBLIC void PrepareBoxInfo(SfxItemSet& rSet, const SwWrtShell& rSh); - -// SfxItemSets <-> PageDesc -void ItemSetToPageDesc( const SfxItemSet& rSet, SwPageDesc& rPageDesc ); -void PageDescToItemSet( const SwPageDesc& rPageDesc, SfxItemSet& rSet); - -// fill tabs with default tabs -SW_DLLPUBLIC void MakeDefTabs(SwTwips nDefDist, SvxTabStopItem& rTabs); - -// erase DefaultTabs from TabStopArray -//void EraseDefTabs(SvxTabStopItem& rTabs); - -// determine space between 1st and 2nd element -SW_DLLPUBLIC sal_uInt16 GetTabDist(const SvxTabStopItem& rTabs); - -// determine whether a Sfx-PageDesc combination exists in the set -// and set this in the set and delete the transport items -// (PageBreak & PageModel) from the set -void SwToSfxPageDescAttr( SfxItemSet& rSet ); -void SfxToSwPageDescAttr( const SwWrtShell& rShell, SfxItemSet& rSet ); - -SW_DLLPUBLIC FieldUnit GetDfltMetric(sal_Bool bWeb); -void SetDfltMetric(FieldUnit eMetric, sal_Bool bWeb); - -SW_DLLPUBLIC sal_Bool HasCharUnit( sal_Bool bWeb ); -void SetApplyCharUnit(sal_Bool bApplyChar, sal_Bool bWeb); - -// ListBox mit allen Zeichenvorlagen fuellen - ausser Standard! -SW_DLLPUBLIC void FillCharStyleListBox(ListBox& rToFill, SwDocShell* pDocSh, sal_Bool bSorted = sal_False, sal_Bool bWithDefault = sal_False); - -//inserts a string sorted into a ListBox, -SW_DLLPUBLIC sal_uInt16 InsertStringSorted(const String& rEntry, ListBox& rToFill, sal_uInt16 nOffset); - -// Tabellenbreite und Ausrichtung ermitteln -SwTwips GetTableWidth( SwFrmFmt* pFmt, SwTabCols& rCols, sal_uInt16 *pPercent, - SwWrtShell* pSh ); - -String GetAppLangDateTimeString( const DateTime& ); - -// search for a command string withing the menu structure and execute it -// at the dispatcher if there is one, if executed return true -bool ExecuteMenuCommand( PopupMenu& rMenu, SfxViewFrame& rViewFrame, sal_uInt16 nId ); - -#endif // _UITOOL_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/uivwimp.hxx b/sw/source/ui/inc/uivwimp.hxx deleted file mode 100644 index dc97992b66..0000000000 --- a/sw/source/ui/inc/uivwimp.hxx +++ /dev/null @@ -1,183 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _UIVWIMP_HXX -#define _UIVWIMP_HXX - -#include <com/sun/star/embed/XEmbeddedObject.hpp> -#include <view.hxx> - -#include <sfx2/objsh.hxx> -#include <com/sun/star/view/XSelectionSupplier.hpp> -#include <com/sun/star/datatransfer/clipboard/XClipboardListener.hpp> -#include <cppuhelper/implbase1.hxx> // helper for implementations -#include <swunodef.hxx> -#include <cppuhelper/weakref.hxx> - -class SwXTextView; -class SfxRequest; -class SwTransferable; -class SfxRequest; - -namespace sfx2 { class DocumentInserter; } -namespace com{ namespace sun{ namespace star { - namespace frame { - class XDispatchProviderInterceptor; - } - namespace lang { - class XUnoTunnel; - } -}}} - -class SwScannerEventListener : public ::cppu::WeakImplHelper1< - STAR_NMSPC::lang::XEventListener > -{ - SwView* pView; - -public: - - SwScannerEventListener( SwView& rView ) : pView( &rView ) {} - virtual ~SwScannerEventListener(); - - // XEventListener - virtual void SAL_CALL disposing( - const ::com::sun::star::lang::EventObject& rEventObject ) throw(::com::sun::star::uno::RuntimeException); - - void ViewDestroyed() { pView = 0; } -}; - -// --------------------------- Clipboard EventListener ------------------ -class SwClipboardChangeListener : public ::cppu::WeakImplHelper1< - CLIP_NMSPC::XClipboardListener > -{ - SwView* pView; - - // XEventListener - virtual void SAL_CALL disposing( const STAR_NMSPC::lang::EventObject& rEventObject ) - throw ( com::sun::star::uno::RuntimeException ); - - // XClipboardListener - virtual void SAL_CALL changedContents( const CLIP_NMSPC::ClipboardEvent& rEventObject ) - throw ( com::sun::star::uno::RuntimeException ); - -public: - SwClipboardChangeListener( SwView& rView ) : pView( &rView ) {} - virtual ~SwClipboardChangeListener(); - - void ViewDestroyed() { pView = 0; } - - void AddRemoveListener( sal_Bool bAdd ); -}; - -class SwMailMergeConfigItem; - -class SwView_Impl -{ - STAR_REFERENCE( lang::XEventListener ) xScanEvtLstnr; - STAR_REFERENCE( lang::XEventListener ) xClipEvtLstnr; - STAR_REFERENCE( frame::XDispatchProviderInterceptor ) xDisProvInterceptor; - STAR_REFERENCE( view::XSelectionSupplier ) *pxXTextView; // UNO object - com::sun::star::uno::WeakReference< com::sun::star::lang::XUnoTunnel > xTransferable; - - // temporary document for printing text of selection / multi selection - // in PDF export. - SfxObjectShellLock xTmpSelDocSh; - - SwView* pView; - SwScannerEventListener* pScanEvtLstnr; - SwClipboardChangeListener* pClipEvtLstnr; - ShellModes eShellMode; - - SwMailMergeConfigItem* pConfigItem; - sal_uInt16 nMailMergeRestartPage; - sal_Bool bMailMergeSourceView; - - sfx2::DocumentInserter* m_pDocInserter; - SfxRequest* m_pRequest; - sal_Int16 m_nParam; - - Point m_aEditingPosition; - bool m_bSelectObject; - bool m_bEditingPositionSet; - -public: - SwView_Impl(SwView* pShell); - ~SwView_Impl(); - - void SetShellMode(ShellModes eSet); - - ::com::sun::star::view::XSelectionSupplier* GetUNOObject(); - SwXTextView* GetUNOObject_Impl(); - void Invalidate(); - - ShellModes GetShellMode() {return eShellMode;} - - void ExecuteScan(SfxRequest& rReq); - SwScannerEventListener& GetScannerEventListener(); - - void AddClipboardListener(); - - SfxObjectShellLock& GetTmpSelectionDoc() { return xTmpSelDocSh; } - - void AddTransferable(SwTransferable& rTransferable); - - void SetMailMergeConfigItem(SwMailMergeConfigItem* pItem, - sal_uInt16 nRestart, sal_Bool bIsSource) - { pConfigItem = pItem; - nMailMergeRestartPage = nRestart; - bMailMergeSourceView = bIsSource; - } - SwMailMergeConfigItem* GetMailMergeConfigItem() {return pConfigItem;} - sal_uInt16 GetMailMergeRestartPage() const {return nMailMergeRestartPage;} - sal_Bool IsMailMergeSourceView() const { return bMailMergeSourceView; } - - //#i33307# restore editing position - void SetRestorePosition(const Point& rCrsrPos, bool bSelectObj) - { - m_aEditingPosition = rCrsrPos; - m_bSelectObject = bSelectObj; - m_bEditingPositionSet = true; - } - bool GetRestorePosition(Point& rCrsrPos, bool& rbSelectObj) - { - rCrsrPos = m_aEditingPosition; - rbSelectObj = m_bSelectObject; - return m_bEditingPositionSet; - } - - - void StartDocumentInserter( const String& rFactory, const Link& rEndDialogHdl ); - SfxMedium* CreateMedium(); - void InitRequest( const SfxRequest& rRequest ); - - inline SfxRequest* GetRequest() const { return m_pRequest; } - inline sal_Int16 GetParam() const { return m_nParam; } - inline void SetParam( sal_Int16 nParam ) { m_nParam = nParam; } -}; -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/unodispatch.hxx b/sw/source/ui/inc/unodispatch.hxx deleted file mode 100644 index dc77100552..0000000000 --- a/sw/source/ui/inc/unodispatch.hxx +++ /dev/null @@ -1,134 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _UNODISPATCH_HXX -#define _UNODISPATCH_HXX - -#include <com/sun/star/frame/XDispatchProviderInterception.hpp> -#include <com/sun/star/frame/XDispatchProviderInterceptor.hpp> -#include <com/sun/star/view/XSelectionChangeListener.hpp> -#include <com/sun/star/lang/XUnoTunnel.hpp> -#include <com/sun/star/frame/XDispatch.hpp> -#include <cppuhelper/implbase2.hxx> -#include <cppuhelper/implbase3.hxx> -#include <list> -#include <osl/mutex.hxx> - -class SwView; - -class SwXDispatchProviderInterceptor : public cppu::WeakImplHelper3 -< - ::com::sun::star::frame::XDispatchProviderInterceptor, - ::com::sun::star::lang::XEventListener, - ::com::sun::star::lang::XUnoTunnel -> -{ - class DispatchMutexLock_Impl - { - //::osl::MutexGuard aGuard; #102295# solar mutex has to be used currently - osl::SolarGuard aGuard; - DispatchMutexLock_Impl(); - public: - DispatchMutexLock_Impl(SwXDispatchProviderInterceptor&); - ~DispatchMutexLock_Impl(); - }; - friend class DispatchMutexLock_Impl; - -// ::osl::Mutex m_aMutex;#102295# solar mutex has to be used currently - - // the component which's dispatches we're intercepting - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterception> m_xIntercepted; - - // chaining - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider> m_xSlaveDispatcher; - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider> m_xMasterDispatcher; - - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch> m_xDispatch; - - SwView* m_pView; - -public: - SwXDispatchProviderInterceptor(SwView& rView); - ~SwXDispatchProviderInterceptor(); - - //XDispatchProvider - virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > SAL_CALL queryDispatch( const ::com::sun::star::util::URL& aURL, const ::rtl::OUString& aTargetFrameName, sal_Int32 nSearchFlags ) throw(::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > > SAL_CALL queryDispatches( const ::com::sun::star::uno::Sequence< ::com::sun::star::frame::DispatchDescriptor >& aDescripts ) throw(::com::sun::star::uno::RuntimeException); - - //XDispatchProviderInterceptor - virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > SAL_CALL getSlaveDispatchProvider( ) throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setSlaveDispatchProvider( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider >& xNewDispatchProvider ) throw(::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > SAL_CALL getMasterDispatchProvider( ) throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setMasterDispatchProvider( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider >& xNewSupplier ) throw(::com::sun::star::uno::RuntimeException); - - // XEventListener - virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException); - - //XUnoTunnel - static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId(); - virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); - - // view destroyed - void Invalidate(); -}; -//--------------------------------------------------------------------------------------------------------------------- -struct StatusStruct_Impl -{ - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener> xListener; - ::com::sun::star::util::URL aURL; -}; -typedef std::list< StatusStruct_Impl > StatusListenerList; -class SwXDispatch : public cppu::WeakImplHelper2 -< - ::com::sun::star::frame::XDispatch, - ::com::sun::star::view::XSelectionChangeListener -> -{ - SwView* m_pView; - StatusListenerList m_aListenerList; - sal_Bool m_bOldEnable; - sal_Bool m_bListenerAdded; -public: - SwXDispatch(SwView& rView); - ~SwXDispatch(); - - virtual void SAL_CALL dispatch( const ::com::sun::star::util::URL& aURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgs ) throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL addStatusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& xControl, const ::com::sun::star::util::URL& aURL ) throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL removeStatusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& xControl, const ::com::sun::star::util::URL& aURL ) throw(::com::sun::star::uno::RuntimeException); - - //XSelectionChangeListener - virtual void SAL_CALL selectionChanged( const ::com::sun::star::lang::EventObject& aEvent ) throw(::com::sun::star::uno::RuntimeException); - - //XEventListener - virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException); - - static const sal_Char* GetDBChangeURL(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/unotools.hxx b/sw/source/ui/inc/unotools.hxx deleted file mode 100644 index 16572bb779..0000000000 --- a/sw/source/ui/inc/unotools.hxx +++ /dev/null @@ -1,130 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _UNOTOOLS_HXX -#define _UNOTOOLS_HXX - - -#include <vcl/dialog.hxx> -#include <vcl/fixed.hxx> -#include <vcl/edit.hxx> -#include <vcl/button.hxx> -#include <actctrl.hxx> -#include <com/sun/star/frame/XController.hpp> -#include <com/sun/star/text/XTextCursor.hpp> -#include <com/sun/star/container/XNameAccess.hpp> -#include <com/sun/star/awt/XControl.hpp> -#include <com/sun/star/container/XNamed.hpp> -#include <tools/resary.hxx> -#include <swunodef.hxx> -#include "swdllapi.h" - -class SwOneExampleFrame; - -class SwFrmCtrlWindow : public Window -{ - SwOneExampleFrame* pExampleFrame; -public: - SwFrmCtrlWindow(Window* pParent, WinBits nBits, SwOneExampleFrame* pFrame); - - virtual void Command( const CommandEvent& rCEvt ); -}; - -class MenuResource : public Resource -{ - ResStringArray aMenuArray; - -public: - MenuResource(const ResId& rResId); - - ResStringArray& GetMenuArray() {return aMenuArray;} -}; - -#define EX_SHOW_ONLINE_LAYOUT 0x001 - -// hard zoom value -#define EX_SHOW_BUSINESS_CARDS 0x02 -//don't modify page size -#define EX_SHOW_DEFAULT_PAGE 0x04 - -class SwView; - -class SW_DLLPUBLIC SwOneExampleFrame -{ - ::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; - - SwFrmCtrlWindow aTopWindow; - Window& rWindow; - Timer aLoadedTimer; - Link aInitializedLink; - - MenuResource aMenuRes; - String sArgumentURL; - - SwView* pModuleView; - - sal_uInt32 nStyleFlags; - - sal_Bool bIsInitialized; - sal_Bool bServiceAvailable; - - static sal_Bool bShowServiceNotAvailableMessage; - - SW_DLLPRIVATE DECL_LINK( TimeoutHdl, Timer* ); - SW_DLLPRIVATE DECL_LINK( PopupHdl, Menu* ); - - SW_DLLPRIVATE void CreateControl(); - SW_DLLPRIVATE void DisposeControl(); - -public: - SwOneExampleFrame(Window& rWin, - sal_uInt32 nStyleFlags = EX_SHOW_ONLINE_LAYOUT, - const Link* pInitalizedLink = 0, - String* pURL = 0); - ~SwOneExampleFrame(); - - STAR_REFERENCE( awt::XControl ) & GetControl() {return _xControl; } - STAR_REFERENCE( frame::XModel ) & GetModel() {return _xModel;} - STAR_REFERENCE( frame::XController ) & GetController() {return _xController;} - STAR_REFERENCE( text::XTextCursor ) & GetTextCursor() {return _xCursor;} - - void ClearDocument( sal_Bool bStartTimer = sal_False ); - - sal_Bool IsInitialized() const {return bIsInitialized;} - sal_Bool IsServiceAvailable() const {return bServiceAvailable;} - - void CreatePopup(const Point& rPt); - - static void CreateErrorMessage(Window* pParent); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx deleted file mode 100644 index 93c42fee61..0000000000 --- a/sw/source/ui/inc/unotxvw.hxx +++ /dev/null @@ -1,269 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _UNOTXVW_HXX -#define _UNOTXVW_HXX -#include <sfx2/sfxbasecontroller.hxx> -#include <com/sun/star/embed/XEmbeddedObject.hpp> -#include <com/sun/star/text/XTextViewCursor.hpp> -#include <com/sun/star/text/XTextViewCursorSupplier.hpp> -#include <com/sun/star/text/XRubySelection.hpp> -#include <com/sun/star/view/XFormLayerAccess.hpp> -#include <com/sun/star/view/XScreenCursor.hpp> -#include <com/sun/star/view/XViewSettingsSupplier.hpp> -#include <com/sun/star/view/XSelectionSupplier.hpp> -#include <com/sun/star/view/XLineCursor.hpp> -#include <com/sun/star/view/XViewCursor.hpp> -#include <com/sun/star/text/XPageCursor.hpp> -#include <com/sun/star/beans/XPropertySet.hpp> -#include <com/sun/star/beans/XPropertySetInfo.hpp> -#include <com/sun/star/beans/XPropertyState.hpp> -#include <com/sun/star/lang/XServiceInfo.hpp> -#include <com/sun/star/datatransfer/XTransferableSupplier.hpp> -#include <cppuhelper/implbase8.hxx> // helper for implementations -#include <svl/itemprop.hxx> -#include "calbck.hxx" -#include "TextCursorHelper.hxx" -#include <comphelper/uno3.hxx> - -#include <sfx2/objsh.hxx> - -class SdrObject; -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::XFormLayerAccess, - public ::com::sun::star::text::XTextViewCursorSupplier, - public ::com::sun::star::text::XRubySelection, - public ::com::sun::star::view::XViewSettingsSupplier, - public ::com::sun::star::beans::XPropertySet, - public ::com::sun::star::datatransfer::XTransferableSupplier, - public SfxBaseController -{ - SelectionChangeListenerArr aSelChangedListeners; - - SwView* m_pView; - const SfxItemPropertySet* m_pPropSet; // property map for SwXTextView properties - // (not related to pxViewSettings!) - - ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > * pxViewSettings; - ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextViewCursor > * pxTextViewCursor; - - - SdrObject* GetControl( - const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > & Model, - ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& xToFill ); - -protected: - virtual ~SwXTextView(); -public: - SwXTextView(SwView* pSwView); - - - 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(); - - //XTypeProvider - 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 ); - - // XFormLayerAccess - virtual ::com::sun::star::uno::Reference< ::com::sun::star::form::runtime::XFormController > SAL_CALL getFormController( const ::com::sun::star::uno::Reference< ::com::sun::star::form::XForm >& Form ) throw (::com::sun::star::uno::RuntimeException); - virtual ::sal_Bool SAL_CALL isFormDesignMode( ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setFormDesignMode( ::sal_Bool DesignMode ) 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 ); - - //XRubySelection - virtual ::com::sun::star::uno::Sequence< - ::com::sun::star::uno::Sequence< - ::com::sun::star::beans::PropertyValue > > SAL_CALL getRubyList( sal_Bool bAutomatic ) - throw(::com::sun::star::uno::RuntimeException); - - virtual void SAL_CALL setRubyList( - const ::com::sun::star::uno::Sequence< - ::com::sun::star::uno::Sequence< - ::com::sun::star::beans::PropertyValue > >& RubyList, sal_Bool bAutomatic ) - 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); - - //XServiceInfo - virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); - virtual sal_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 ); - - //XTransferableSupplier - virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getTransferable( ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL insertTransferable( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTrans ) throw (::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::uno::RuntimeException); - - void NotifySelChanged(); - void NotifyDBChanged(); - - SwView* GetView() {return m_pView;} - void Invalidate(); - - // temporary document used for PDF export of selections/multi-selections - SfxObjectShellLock BuildTmpSelectionDoc(); -}; - -typedef 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 - > SwXTextViewCursor_Base; - -class SwXTextViewCursor : public SwXTextViewCursor_Base, -public SwClient, -public OTextCursorHelper -{ - SwView* m_pView; - const SfxItemPropertySet* m_pPropSet; -protected: - sal_Bool IsTextSelection( sal_Bool bAllowTables = sal_True ) const; - virtual ~SwXTextViewCursor(); -public: - SwXTextViewCursor(SwView* pVw); - - DECLARE_XINTERFACE() - - //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 sal_Bool SAL_CALL isCollapsed( ) throw(::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL goLeft( sal_Int16 nCount, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL goRight( sal_Int16 nCount, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL gotoStart( sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL gotoEnd( sal_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, sal_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 sal_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 ); - - static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId(); - - //XUnoTunnel - virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); - - void Invalidate(){m_pView = 0;} - - // ITextCursorHelper - virtual const SwPaM* GetPaM() const; - virtual SwPaM* GetPaM(); - virtual const SwDoc* GetDoc() const; - virtual SwDoc* GetDoc(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/usrpref.hxx b/sw/source/ui/inc/usrpref.hxx deleted file mode 100644 index 53f2d76af1..0000000000 --- a/sw/source/ui/inc/usrpref.hxx +++ /dev/null @@ -1,288 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _USRPREF_HXX -#define _USRPREF_HXX - - - -#include <unotools/configitem.hxx> -#include <fldupde.hxx> -#include "viewopt.hxx" -#include <tools/fldunit.hxx> - -class SwMasterUsrPref; - -class SwContentViewConfig : public utl::ConfigItem -{ - SwMasterUsrPref& rParent; - sal_Bool bWeb; - - com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); - public: - SwContentViewConfig(sal_Bool bWeb, SwMasterUsrPref& rParent); - ~SwContentViewConfig(); - - // utl::ConfigItem - virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString > &rPropertyNames ); - virtual void Commit(); - - void Load(); - void SetModified(){ConfigItem::SetModified();} -}; - -class SwLayoutViewConfig : public utl::ConfigItem -{ - SwMasterUsrPref& rParent; - sal_Bool bWeb; - - com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); - public: - SwLayoutViewConfig(sal_Bool bWeb, SwMasterUsrPref& rParent); - ~SwLayoutViewConfig(); - - virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); - virtual void Commit(); - void Load(); - void SetModified(){ConfigItem::SetModified();} -}; - -class SwGridConfig : public utl::ConfigItem -{ - SwMasterUsrPref& rParent; - sal_Bool bWeb; - - com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); - public: - SwGridConfig(sal_Bool bWeb, SwMasterUsrPref& rParent); - ~SwGridConfig(); - - virtual void Commit(); - virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); - void Load(); - void SetModified(){ConfigItem::SetModified();} -}; - -class SwCursorConfig : public utl::ConfigItem -{ - SwMasterUsrPref& rParent; - - com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); - public: - SwCursorConfig(SwMasterUsrPref& rParent); - ~SwCursorConfig(); - - virtual void Commit(); - virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); - void Load(); - void SetModified(){ConfigItem::SetModified();} -}; - -class SwWebColorConfig : public utl::ConfigItem -{ - SwMasterUsrPref& rParent; - com::sun::star::uno::Sequence<rtl::OUString> aPropNames; - - public: - SwWebColorConfig(SwMasterUsrPref& rParent); - ~SwWebColorConfig(); - - virtual void Commit(); - virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); - void Load(); - void SetModified(){ConfigItem::SetModified();} -}; - -class SwMasterUsrPref : public SwViewOption -{ - friend class SwContentViewConfig; - friend class SwLayoutViewConfig; - friend class SwGridConfig; - friend class SwCursorConfig; - friend class SwWebColorConfig; - - SwFldUpdateFlags eFldUpdateFlags; //udpate of fields and charts - sal_Int32 nLinkUpdateMode; - FieldUnit eUserMetric; - FieldUnit eHScrollMetric; - sal_Bool bIsHScrollMetricSet; - FieldUnit eVScrollMetric; - sal_Bool bIsVScrollMetricSet; - - sal_Int32 nDefTab; //default tab stop distance - - sal_Bool bIsSquaredPageMode; //default page mode for text grid - sal_Bool bIsAlignMathObjectsToBaseline; - - SwContentViewConfig aContentConfig; - SwLayoutViewConfig aLayoutConfig; - SwGridConfig aGridConfig; - SwCursorConfig aCursorConfig; - SwWebColorConfig* pWebColorConfig; - - sal_Bool bApplyCharUnit; // apply_char_unit -public: - SwMasterUsrPref(sal_Bool bWeb); - ~SwMasterUsrPref(); - - void SetUsrPref(const SwViewOption &rCopy); - - void Commit() - { - aContentConfig.Commit(); - aLayoutConfig.Commit(); - aGridConfig.Commit(); - aCursorConfig.Commit(); - if(pWebColorConfig) - pWebColorConfig->Commit(); - } - void SetModified() - { - aContentConfig.SetModified(); - aLayoutConfig.SetModified(); - aGridConfig.SetModified(); - aCursorConfig.SetModified(); - if(pWebColorConfig) - pWebColorConfig->SetModified(); - } - - void SetUpdateLinkMode(sal_Int32 nSet, sal_Bool bNoModify = sal_False) - { - nLinkUpdateMode = nSet; - if(!bNoModify) - aContentConfig.SetModified(); - } - sal_Int32 GetUpdateLinkMode() const {return nLinkUpdateMode; } - - void SetUpdateFields(sal_Bool bSet, sal_Bool bNoModify = sal_False) - { - if(bSet && eFldUpdateFlags == AUTOUPD_OFF) - { - eFldUpdateFlags = AUTOUPD_FIELD_ONLY; - if(!bNoModify) - aContentConfig.SetModified(); - } - else if(!bSet) - { - eFldUpdateFlags = AUTOUPD_OFF; - if(!bNoModify) - aContentConfig.SetModified(); - } - }; - sal_Bool IsUpdateFields()const {return eFldUpdateFlags != AUTOUPD_OFF; } - - SwFldUpdateFlags GetFldUpdateFlags()const {return eFldUpdateFlags;} - void SetFldUpdateFlags(SwFldUpdateFlags eSet, sal_Bool bNoModify = sal_False) - { - eFldUpdateFlags = eSet; - if(!bNoModify) - aContentConfig.SetModified(); - } - - void SetUpdateCharts(sal_Bool bSet, sal_Bool bNoModify = sal_False) - { - if(bSet) - { - eFldUpdateFlags = AUTOUPD_FIELD_AND_CHARTS; - if(!bNoModify) - aContentConfig.SetModified(); - } - else if(eFldUpdateFlags == AUTOUPD_FIELD_AND_CHARTS) - { - eFldUpdateFlags = AUTOUPD_FIELD_ONLY; - if(!bNoModify) - aContentConfig.SetModified(); - } - }; - sal_Bool IsUpdateCharts()const {return eFldUpdateFlags == AUTOUPD_FIELD_AND_CHARTS; } - - FieldUnit GetMetric() const { return eUserMetric;} - void SetMetric(FieldUnit eSet, sal_Bool bNoModify = sal_False) - { - eUserMetric = eSet; - if(!bNoModify) - aLayoutConfig.SetModified(); - } - - sal_Bool IsHScrollMetric()const {return bIsHScrollMetricSet;} - FieldUnit GetHScrollMetric() const { return bIsHScrollMetricSet ? eHScrollMetric : eUserMetric;} - void SetHScrollMetric(FieldUnit eSet, sal_Bool bNoModify = sal_False) - { - eHScrollMetric = eSet; bIsHScrollMetricSet = sal_True; - if(!bNoModify) - aLayoutConfig.SetModified(); - } - - sal_Bool IsVScrollMetric()const {return bIsVScrollMetricSet;} - FieldUnit GetVScrollMetric() const { return bIsVScrollMetricSet ? eVScrollMetric : eUserMetric;} - void SetVScrollMetric(FieldUnit eSet, sal_Bool bNoModify = sal_False) - { - eVScrollMetric = eSet; bIsVScrollMetricSet = sal_True; - if(!bNoModify) - aLayoutConfig.SetModified(); - } - - sal_Bool IsApplyCharUnit() const - { - return bApplyCharUnit; - } - void SetApplyCharUnit(sal_Bool bSet, sal_Bool bNoModify = sal_False) - { - bApplyCharUnit = bSet; - if(!bNoModify) - aLayoutConfig.SetModified(); - } - - sal_Int32 GetDefTab() const { return nDefTab;} - void SetDefTab( sal_Int32 nSet, sal_Bool bNoModify = sal_False ) - { - nDefTab = nSet; - if(!bNoModify) - aLayoutConfig.SetModified(); - } - - //default page mode for text grid - sal_Bool IsSquaredPageMode() const {return bIsSquaredPageMode;} - void SetDefaultPageMode( sal_Bool bVal, sal_Bool bNoModify = sal_False ) - { - bIsSquaredPageMode = bVal; - if(!bNoModify) - aLayoutConfig.SetModified(); - } - - sal_Bool IsAlignMathObjectsToBaseline() const { return bIsAlignMathObjectsToBaseline; } - void SetAlignMathObjectsToBaseline( sal_Bool bVal, sal_Bool bNoModify = sal_False ) - { - bIsAlignMathObjectsToBaseline = bVal; - if(!bNoModify) - aLayoutConfig.SetModified(); - } -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/utlui.hrc b/sw/source/ui/inc/utlui.hrc deleted file mode 100644 index 939644c68f..0000000000 --- a/sw/source/ui/inc/utlui.hrc +++ /dev/null @@ -1,180 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#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) -// hyperlink status bar control -#define STR_HYPERCTRL_SEL (RC_UTLUI_BEGIN + 5) -#define STR_HYPERCTRL_HYP (RC_UTLUI_BEGIN + 6) - -// names of content types (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_CREATE (FLD_DOCINFO_BEGIN + 4) -#define FLD_DOCINFO_CHANGE (FLD_DOCINFO_BEGIN + 5) -#define FLD_DOCINFO_PRINT (FLD_DOCINFO_BEGIN + 6) -#define FLD_DOCINFO_DOCNO (FLD_DOCINFO_BEGIN + 7) -#define FLD_DOCINFO_EDIT (FLD_DOCINFO_BEGIN + 8) -#define FLD_DOCINFO_END (FLD_DOCINFO_BEGIN + 9) - -#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 ILIST_DB_DLG (RC_UTLUI_BEGIN + 6) - -#define IMG_VIEWLAYOUT_AUTOMATIC (RC_UTLUI_BEGIN + 12) -#define IMG_VIEWLAYOUT_AUTOMATIC_ACTIVE (RC_UTLUI_BEGIN + 13) -#define IMG_VIEWLAYOUT_BOOKMODE (RC_UTLUI_BEGIN + 14) -#define IMG_VIEWLAYOUT_BOOKMODE_ACTIVE (RC_UTLUI_BEGIN + 15) -#define IMG_VIEWLAYOUT_SINGLECOLUMN (RC_UTLUI_BEGIN + 16) -#define IMG_VIEWLAYOUT_SINGLECOLUMN_ACTIVE (RC_UTLUI_BEGIN + 17) - - -//local ids of the Database ImageLists -#define IMG_COLLAPSE 18002 /*RID_SVXIMG_COLLAPSEDNODE*/ -#define IMG_EXPAND 18003 /*RID_SVXIMG_EXPANDEDNODE*/ -#define IMG_DB 1 -#define IMG_DBTABLE 2 -#define IMG_DBQUERY 3 - -#define 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 deleted file mode 100755 index 6c7828b3ee..0000000000 --- a/sw/source/ui/inc/view.hxx +++ /dev/null @@ -1,696 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWVIEW_HXX -#define _SWVIEW_HXX - -#include <vcl/timer.hxx> -#include <vcl/field.hxx> -#include <vcl/floatwin.hxx> -#include <svtools/htmlcfg.hxx> -#include <sfx2/viewfac.hxx> -#include <sfx2/viewsh.hxx> -#include <sfx2/objsh.hxx> -#include <editeng/svxenum.hxx> -#include <svx/zoomitem.hxx> -#include <editeng/editstat.hxx> -#include "swdllapi.h" -#include <swtypes.hxx> -#include <shellid.hxx> -#include <layout/layout.hxx> -#include <IMark.hxx> - -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 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; -class XSelectionObject; -struct SwSearchOptions; -class FmFormShell; -class CommandEvent; -class InsCaptionOpt; -class SvGlobalName; -class SvtAccessibilityOptions; -class SwTransferable; -class SwMailMergeConfigItem; -class SwTxtNode; // #i23726# -class SwPrintData; -class SwFormatClipboard; -struct SwConversionArgs; -class Graphic; -class GraphicFilter; -class SwPostItMgr; -class SwFieldBookmark; - -namespace com{ namespace sun { namespace star { - namespace view{ class XSelectionSupplier; } -}}} -namespace sfx2 { class FileDialogHelper; } - -const long nLeftOfst = -370; -const long nScrollX = 30; -const long nScrollY = 30; - -#define MINZOOM 20 -#define MAXZOOM 600 - -#define MAX_MARKS 5 - -#define CHILDWIN_LABEL 1 -#define CHILDWIN_MAILMERGE 2 - -enum ShellModes -{ - SHELL_MODE_TEXT, - SHELL_MODE_FRAME, - SHELL_MODE_GRAPHIC, - SHELL_MODE_OBJECT, - SHELL_MODE_DRAW, - SHELL_MODE_DRAW_CTRL, - SHELL_MODE_DRAW_FORM, - SHELL_MODE_DRAWTEXT, - SHELL_MODE_BEZIER, - SHELL_MODE_LIST_TEXT, - SHELL_MODE_TABLE_TEXT, - SHELL_MODE_TABLE_LIST_TEXT, - SHELL_MODE_MEDIA, - SHELL_MODE_EXTRUDED_CUSTOMSHAPE, - SHELL_MODE_FONTWORK, - SHELL_MODE_POSTIT, - SHELL_MODE_NAVIGATION -}; - -/*-------------------------------------------------------------------- - Description: apply a template - --------------------------------------------------------------------*/ -struct SwApplyTemplate -{ - union - { - SwTxtFmtColl* pTxtColl; - SwPageDesc* pPageDesc; - SwFrmFmt* pFrmFmt; - SwCharFmt* pCharFmt; - SwNumRule* pNumRule; - } aColl; - - int eType; - sal_uInt16 nColor; - SwFormatClipboard* pFormatClipboard; - sal_Bool bUndo; - - SwApplyTemplate() : - eType(0), - nColor(0), - pFormatClipboard(0), - bUndo(sal_False) - { - aColl.pTxtColl = 0; - } -}; - -/*-------------------------------------------------------------------- - Description: view of a document - --------------------------------------------------------------------*/ -class SW_DLLPUBLIC SwView: public SfxViewShell -{ - // exhibition hack (MA,MBA) - friend void lcl_SelectShellForDrop( SwView &rView ); - - friend class TestTemplateItem; - friend class SwHHCWrapper; - friend class SwHyphWrapper; - friend class SwView_Impl; - friend class SwClipboardChangeListener; - - // search & replace - static SvxSearchDialog *pSrchDlg; - static SvxSearchItem *pSrchItem; - - static sal_uInt16 nInsertCtrlState; - static sal_uInt16 nWebInsertCtrlState; - static sal_uInt16 nInsertObjectCtrlState; - static sal_uInt16 nInsertFieldCtrlState; - static sal_uInt16 nMoveType; // for buttons below the scrollbar (viewmdi) - static sal_Int32 nActMark; // current jump mark for unknown mark - - static sal_Bool bExtra; - static sal_Bool bFound; - static sal_Bool bJustOpened; - - static SearchAttrItemList* pSrchList; - static SearchAttrItemList* pReplList; - - - SvxHtmlOptions aHTMLOpt; - Timer aTimer; // for delayed ChgLnks during an action - String aPageStr; // status view, current page - String sSwViewData, - //and the new cursor position if the user double click in the PagePreView - sNewCrsrPos; - // to support keyboard the number of the page to go to can be set too - sal_uInt16 nNewPage; - - Point aTabColFromDocPos; // moving table colmns out of the document - SwTxtNode * pNumRuleNodeFromDoc; // Moving indent of numrule #i23726# - - Size aDocSz; // current document size - Rectangle aVisArea; // visible region - - SwEditWin *pEditWin; - SwWrtShell *pWrtShell; - - SfxShell *pShell; // current SubShell at the dispatcher - FmFormShell *pFormShell; // DB-FormShell - - SwView_Impl *pViewImpl; // Impl-data for UNO + Basic - - - SwScrollbar *pHScrollbar, // MDI control elements - *pVScrollbar; - - Window *pScrollFill; // dummy window for filling the lower right edge - // when both scrollbars are active - - SvxRuler *pHRuler, - *pVRuler; - ImageButton *pTogglePageBtn; - - SwHlpImageButton *pPageUpBtn, - *pPageDownBtn; - - SwNaviImageButton *pNaviBtn; - SwGlossaryHdl *pGlosHdl; // handle text block - SwDrawBase *pDrawActual; - - const SwFrmFmt *pLastTableFormat; - - SwFormatClipboard *pFormatClipboard; //holds data for format paintbrush - - SwPostItMgr *mpPostItMgr; - - int nSelectionType; - FloatingWindow *mpFieldPopup; - - static const int MASTERENUMCOMMANDS = 6; - - String aCurrShapeEnumCommand[ MASTERENUMCOMMANDS ]; - - sal_uInt16 nPageCnt; - - // current draw mode - sal_uInt16 nDrawSfxId; - String sDrawCustom; //some drawing types are marked with strings! - sal_uInt16 nFormSfxId; - sal_uInt16 nLastPasteDestination; - - // save the border distance status from SwView::StateTabWin to re-use it in SwView::ExecTabWin() - sal_uInt16 nLeftBorderDistance; - sal_uInt16 nRightBorderDistance; - - sal_Bool bCenterCrsr : 1, - bTopCrsr : 1, - bAllwaysShowSel : 1, - bTabColFromDoc : 1, - bNumIndentFromDoc : 1, // #i23726# - bTabRowFromDoc : 1, - bSetTabColFromDoc : 1 , - bSetTabRowFromDoc : 1, - bAttrChgNotified : 1, - bAttrChgNotifiedWithRegistrations : 1, - bVerbsActive : 1, - bDrawRotate : 1, - bDrawSelMode : 1, - bShowAtResize : 1, - bInOuterResizePixel : 1, - bInInnerResizePixel : 1, - bPasteState : 1, - bPasteSpecialState : 1, - bInMailMerge : 1, - bInDtor : 1, //detect destructor to prevent creating of sub shells while closing - bOldShellWasPagePreView : 1, - bIsPreviewDoubleClick : 1, // #i114045# - bMakeSelectionVisible : 1; // transport the bookmark selection - - // methods for searching - // set search context - SW_DLLPRIVATE sal_Bool SearchAndWrap(sal_Bool bApi = sal_False); - SW_DLLPRIVATE sal_Bool SearchAll(sal_uInt16* pFound = 0); - SW_DLLPRIVATE sal_uLong FUNC_Search( const SwSearchOptions& rOptions ); - SW_DLLPRIVATE void Replace(); - - sal_Bool IsDocumentBorder(); - - SW_DLLPRIVATE sal_Bool IsTextTool() const; - - // create control elements - SW_DLLPRIVATE void CreateBtns(); - SW_DLLPRIVATE DECL_LINK( BtnPage, Button * ); - - SW_DLLPRIVATE DECL_LINK( TimeoutHdl, Timer * ); - SW_DLLPRIVATE DECL_LINK( UpdatePercentHdl, GraphicFilter* ); - - SW_DLLPRIVATE DECL_LINK( HtmlOptionsHdl, void * ); - - SW_DLLPRIVATE DECL_LINK( FieldPopupModeEndHdl, FloatingWindow * ); - - inline long GetXScroll() const; - inline long GetYScroll() const; - SW_DLLPRIVATE Point AlignToPixel(const Point& rPt) const; - SW_DLLPRIVATE void CalcPt( Point* pPt,const Rectangle& rRect, - sal_uInt16 nRangeX = USHRT_MAX, - sal_uInt16 nRangeY = USHRT_MAX); - - SW_DLLPRIVATE sal_Bool GetPageScrollUpOffset(SwTwips& rOff) const; - SW_DLLPRIVATE sal_Bool GetPageScrollDownOffset(SwTwips& rOff) const; - - // scrollbar movements - SW_DLLPRIVATE long PageUp(); - SW_DLLPRIVATE long PageDown(); - SW_DLLPRIVATE long PageUpCrsr(sal_Bool bSelect); - SW_DLLPRIVATE long PageDownCrsr(sal_Bool bSelect); - SW_DLLPRIVATE long PhyPageUp(); - SW_DLLPRIVATE long PhyPageDown(); - - SW_DLLPRIVATE int _CreateScrollbar( sal_Bool bHori ); - SW_DLLPRIVATE DECL_LINK( ScrollHdl, SwScrollbar * ); - SW_DLLPRIVATE DECL_LINK( EndScrollHdl, SwScrollbar * ); - SW_DLLPRIVATE sal_Bool UpdateScrollbars(); - SW_DLLPRIVATE DECL_LINK( WindowChildEventListener, VclSimpleEvent* ); - SW_DLLPRIVATE void CalcVisArea( const Size &rPixelSz ); - - SW_DLLPRIVATE void CreatePageButtons(sal_Bool bShow); - - // linguistics functions - SW_DLLPRIVATE void HyphenateDocument(); - SW_DLLPRIVATE sal_Bool IsDrawTextHyphenate(); - SW_DLLPRIVATE void HyphenateDrawText(); - SW_DLLPRIVATE void StartThesaurus(); - - // text conversion - SW_DLLPRIVATE void StartTextConversion( LanguageType nSourceLang, LanguageType nTargetLang, const Font *pTargetFont, sal_Int32 nOptions, sal_Bool bIsInteractive ); - - // used for spell checking and text conversion - SW_DLLPRIVATE void SpellStart( SvxSpellArea eSpell, sal_Bool bStartDone, - sal_Bool bEndDone, SwConversionArgs *pConvArgs = 0 ); - SW_DLLPRIVATE void SpellEnd( SwConversionArgs *pConvArgs = 0 ); - - SW_DLLPRIVATE void HyphStart( SvxSpellArea eSpell ); - SW_DLLPRIVATE sal_Bool CheckSpecialCntnt(); - SW_DLLPRIVATE void SpellKontext(sal_Bool bOn = sal_True) - { bCenterCrsr = bOn; bAllwaysShowSel = bOn; } - - // methods for printing - SW_DLLPRIVATE virtual SfxPrinter* GetPrinter( sal_Bool bCreate = sal_False ); - SfxTabPage* CreatePrintOptionsPage( Window* pParent, - const SfxItemSet& rSet); - // for readonly switching - SW_DLLPRIVATE virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); - SW_DLLPRIVATE void _CheckReadonlyState(); - SW_DLLPRIVATE void _CheckReadonlySelection(); - - // method for rotating PageDesc - SW_DLLPRIVATE void SwapPageMargin(const SwPageDesc&, SvxLRSpaceItem& rLR); - - SW_DLLPRIVATE void _SetZoom( const Size &rEditSz, - SvxZoomType eZoomType, - short nFactor = 100, - sal_Bool bViewOnly = sal_False); - SW_DLLPRIVATE void CalcAndSetBorderPixel( SvBorder &rToFill, sal_Bool bInner ); - - SW_DLLPRIVATE void ShowAtResize(); - - SW_DLLPRIVATE virtual void Move(); - - SW_DLLPRIVATE sal_Bool InsertGraphicDlg( SfxRequest& ); - -protected: - - SwView_Impl* GetViewImpl() {return pViewImpl;} - - void ImpSetVerb( int nSelType ); - - int GetSelectionType() const { return nSelectionType; } - void SetSelectionType(int nSet) { nSelectionType = nSet;} - - // for SwWebView - void SetShell( SfxShell* pS ) { pShell = pS; } - void SetFormShell( FmFormShell* pSh ) { pFormShell = pSh; } - - virtual void SelectShell(); - - virtual void Activate(sal_Bool); - virtual void Deactivate(sal_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;} - - // form letter execution - void GenerateFormLetter(sal_Bool bUseCurrentDocument); - - using SfxShell::GetDispatcher; - -public: - - SFX_DECL_VIEWFACTORY(SwView); - SFX_DECL_INTERFACE(SW_VIEWSHELL) - TYPEINFO(); - - SfxDispatcher &GetDispatcher(); - - void GotFocus() const; - virtual SdrView* GetDrawView() const; - virtual sal_Bool HasUIFeature( sal_uInt32 nFeature ); - virtual void ShowCursor( bool bOn = sal_True ); - virtual ErrCode DoVerb( long nVerb ); - - virtual sal_uInt16 SetPrinter( SfxPrinter* pNew, - sal_uInt16 nDiff = SFX_PRINTER_ALL, bool bIsAPI=false); - ShellModes GetShellMode(); - - com::sun::star::view::XSelectionSupplier* GetUNOObject(); - - String GetSelectionTextParam( sal_Bool bCompleteWords, - sal_Bool bEraseTrail ); - virtual sal_Bool HasSelection( sal_Bool bText ) const; - virtual String GetSelectionText( sal_Bool bCompleteWords = sal_False ); - virtual sal_uInt16 PrepareClose( sal_Bool bUI = sal_True, sal_Bool bForBrowsing = sal_False ); - virtual void MarginChanged(); - - // replace word/selection with text from the thesaurus - // (this code has special handling for "in word" character) - void InsertThesaurusSynonym( const String &rSynonmText, const String &rLookUpText, bool bValidSelection ); - bool IsValidSelectionForThesaurus() const; - String GetThesaurusLookUpText( bool bSelection ) const; - - // immediately switch shell -> for GetSelectionObject - void StopShellTimer(); - - 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 WNT || defined UNX - void ScannerEventHdl( const ::com::sun::star::lang::EventObject& rEventObject ); -#endif - - // hand the handler for text blocks to the shell; create if applicable - SwGlossaryHdl* GetGlosHdl(); - - inline const Rectangle& GetVisArea() const { return aVisArea; } - - sal_Bool IsScroll(const Rectangle& rRect) const; - void Scroll( const Rectangle& rRect, - sal_uInt16 nRangeX = USHRT_MAX, - sal_uInt16 nRangeY = USHRT_MAX); - - long SetVScrollMax(long lMax); - long SetHScrollMax(long lMax); - - DECL_LINK( SpellError, LanguageType * ); - sal_Bool ExecSpellPopup( const Point& rPt ); - void ExecFieldPopup( const Point& rPt, sw::mark::IFieldmark *fieldBM ); - - // SMARTTAGS - sal_Bool ExecSmartTagPopup( const Point& rPt ); - - DECL_LINK( OnlineSpellCallback, SpellCallbackInfo*); - sal_Bool ExecDrwTxtSpellPopup(const Point& rPt); - - void SetTabColFromDocPos( const Point &rPt ) { aTabColFromDocPos = rPt; } - void SetTabColFromDoc( sal_Bool b ) { bTabColFromDoc = b; } - sal_Bool IsTabColFromDoc() const { return bTabColFromDoc; } - void SetTabRowFromDoc( sal_Bool b ) { bTabRowFromDoc = b; } - sal_Bool IsTabRowFromDoc() const { return bTabRowFromDoc; } - - // -> #i23726# - void SetNumRuleNodeFromDoc( SwTxtNode * pNumRuleNode ) - { pNumRuleNodeFromDoc = pNumRuleNode; } - void SetNumIndentFromDoc(sal_Bool b) { bNumIndentFromDoc = b; } - sal_Bool IsNumIndentFromDoc() const { return NULL != pNumRuleNodeFromDoc; } - // <- #i23726# - - void DocSzChgd( const Size& rNewSize ); - const Size& GetDocSz() const { return aDocSz; } - virtual void SetVisArea( const Rectangle&, sal_Bool bUpdateScrollbar = sal_True); - void SetVisArea( const Point&, sal_Bool bUpdateScrollbar = sal_True); - void CheckVisArea(); - - void RecheckBrowseMode(); - static LAYOUT_NS Dialog* GetSearchDialog(); - - static sal_uInt16 GetMoveType(); - static void SetMoveType(sal_uInt16 nSet); - DECL_STATIC_LINK( SwView, MoveNavigationHdl, bool* ); // #i75416# - static void SetActMark(sal_Int32 nSet); - - sal_Bool HandleWheelCommands( const CommandEvent& ); - - // insert frames - void InsFrmMode(sal_uInt16 nCols); - - void SetZoom( SvxZoomType eZoomType, short nFactor = 100, sal_Bool bViewOnly = sal_False); - virtual void SetZoomFactor( const Fraction &rX, const Fraction & ); - - void SetViewLayout( sal_uInt16 nColumns, bool bBookMode, sal_Bool bViewOnly = sal_False ); - - void ShowHScrollbar(sal_Bool bShow); - sal_Bool IsHScrollbarVisible()const; - - void ShowVScrollbar(sal_Bool bShow); - sal_Bool IsVScrollbarVisible()const; - - int CreateVLineal(); - int KillVLineal(); - int CreateTab(); - int KillTab(); - - int StatVLineal() const { return ((Window*)pVRuler)->IsVisible(); } - void ChangeVLinealMetric(FieldUnit eUnit); - void GetVLinealMetric(FieldUnit& rToFill) const; - - int StatTab() const { return ((Window*)pHRuler)->IsVisible(); } - SvxRuler& GetHLineal() { return *pHRuler; } - SvxRuler& GetVLineal() { return *pVRuler; } - void InvalidateRulerPos(); - void ChangeTabMetric(FieldUnit eUnit); - void GetHLinealMetric(FieldUnit& rToFill) const; - - // 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&, sal_Bool bNoMessage = sal_False); - void ExecViewOptions(SfxRequest &); - - void StateViewOptions(SfxItemSet &); - void StateSearch(SfxItemSet &); - void GetState(SfxItemSet&); - void StateStatusLine(SfxItemSet&); - - - // functions for drawing - void SetDrawFuncPtr(SwDrawBase* pFuncPtr); - inline SwDrawBase* GetDrawFuncPtr(/*sal_Bool bBuf = sal_False*/) const { return pDrawActual; } - void GetDrawState(SfxItemSet &rSet); - void ExitDraw(); - inline sal_Bool IsDrawRotate() { return bDrawRotate; } - inline void FlipDrawRotate() { bDrawRotate = !bDrawRotate; } - inline sal_Bool IsDrawSelMode() { return bDrawSelMode; } - void SetSelDrawSlot(); - inline void FlipDrawSelMode() { bDrawSelMode = !bDrawSelMode; } - void NoRotate(); // turn off rotate mode - sal_Bool EnterDrawTextMode(const Point& aDocPos); - void LeaveDrawCreate() { nDrawSfxId = nFormSfxId = USHRT_MAX; sDrawCustom.Erase();} - sal_Bool IsDrawMode() { return (nDrawSfxId != USHRT_MAX || nFormSfxId != USHRT_MAX); } - sal_Bool IsFormMode() const; - sal_Bool IsBezierEditMode(); - sal_Bool AreOnlyFormsSelected() const; - sal_Bool HasDrwObj(SdrObject *pSdrObj) const; - sal_Bool HasOnlyObj(SdrObject *pSdrObj, sal_uInt32 eObjInventor) const; - sal_Bool BeginTextEdit( SdrObject* pObj, SdrPageView* pPV=NULL, - Window* pWin=NULL, bool bIsNewObj=false, bool bSetSelectionToStart=false ); - - void StateTabWin(SfxItemSet&); - - // attributes have changed - DECL_LINK( AttrChangedNotify, SwWrtShell * ); - - // form control has been activated - DECL_LINK( FormControlActivated, FmFormShell* ); - - // edit links - void EditLinkDlg(); - void AutoCaption(const sal_uInt16 nType, const SvGlobalName *pOleId = 0); - void InsertCaption(const InsCaptionOpt *pOpt); - - // Async call by Core - void UpdatePageNums(sal_uInt16 nPhyNum, sal_uInt16 nVirtNum, const String& rPgStr); - - String GetPageStr(sal_uInt16 nPhyNum, sal_uInt16 nVirtNum, const String& rPgStr); - - // hand over Shell - SfxShell *GetCurShell() { return pShell; } - SwDocShell *GetDocShell(); - inline const SwDocShell *GetDocShell() const; - inline FmFormShell *GetFormShell() { return pFormShell; } - inline const FmFormShell *GetFormShell() const { return pFormShell; } - - // so that in the SubShells' DTors pShell can be reset if applicable - void ResetSubShell() { pShell = 0; } - - virtual void WriteUserData(String &, sal_Bool bBrowse = sal_False ); - virtual void ReadUserData(const String &, sal_Bool bBrowse = sal_False ); - virtual void ReadUserDataSequence ( const com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse ); - virtual void WriteUserDataSequence ( com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse ); - - void SetCrsrAtTop( sal_Bool bFlag, sal_Bool bCenter = sal_False ) - { bTopCrsr = bFlag, bCenterCrsr = bCenter; } - sal_Bool IsCrsrAtTop() const { return bTopCrsr; } - sal_Bool IsCrsrAtCenter() const { return bCenterCrsr; } - - sal_Bool JumpToSwMark( const String& rMark ); - - long InsertDoc( sal_uInt16 nSlotId, const String& rFileName, - const String& rFilterName, sal_Int16 nVersion = 0 ); - - void ExecuteInsertDoc( SfxRequest& rRequest, const SfxPoolItem* pItem ); - long InsertMedium( sal_uInt16 nSlotId, SfxMedium* pMedium, sal_Int16 nVersion ); - DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper * ); - - // status methods for clipboard. - // Status changes now notified from the clipboard. - sal_Bool IsPasteAllowed(); - sal_Bool IsPasteSpecialAllowed(); - - // Enable mail merge - mail merge field dialog enabled - void EnableMailMerge(sal_Bool bEnable = sal_True); - //apply Accessiblity options - void ApplyAccessiblityOptions(SvtAccessibilityOptions& rAccessibilityOptions); - - SwView(SfxViewFrame* pFrame, SfxViewShell*); - ~SwView(); - - void NotifyDBChanged(); - - SfxObjectShellLock & GetTmpSelectionDoc(); - SfxObjectShellLock & GetOrCreateTmpSelectionDoc(); - - void AddTransferable(SwTransferable& rTransferable); - - // store MailMerge data while "Back to Mail Merge Wizard" FloatingWindow is active - // or to support printing - void SetMailMergeConfigItem(SwMailMergeConfigItem* pConfigItem, sal_uInt16 nRestart, sal_Bool bIsSource); - SwMailMergeConfigItem* GetMailMergeConfigItem(); - sal_uInt16 GetMailMergeRestartPage() const; - sal_Bool IsMailMergeSourceView() const; - - void ExecFormatPaintbrush(SfxRequest &); - void StateFormatPaintbrush(SfxItemSet &); - - //public fuer D&D - int InsertGraphic( const String &rPath, const String &rFilter, - sal_Bool bLink = sal_True, GraphicFilter *pFlt = 0, - Graphic* pPreviewGrf = 0, - sal_Bool bRule = sal_False ); - - void ExecuteScan( SfxRequest& rReq ); - - SwPostItMgr* GetPostItMgr() { return mpPostItMgr;} - const SwPostItMgr* GetPostItMgr() const { return mpPostItMgr;} -}; - -// ----------------- inline Methoden ---------------------- -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, - sal_Bool bPreview); - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/viewlayoutctrl.hxx b/sw/source/ui/inc/viewlayoutctrl.hxx deleted file mode 100644 index 6a0a59414a..0000000000 --- a/sw/source/ui/inc/viewlayoutctrl.hxx +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _VIEWLAYOUTCTRL_HXX -#define _VIEWLAYOUTCTRL_HXX - -// include --------------------------------------------------------------- -#include <sfx2/stbitem.hxx> - -// class SwViewLayoutControl ---------------------------------------------- -class SwViewLayoutControl : public SfxStatusBarControl -{ -private: - - struct SwViewLayoutControl_Impl; - SwViewLayoutControl_Impl* mpImpl; - -public: - - SFX_DECL_STATUSBAR_CONTROL(); - - SwViewLayoutControl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb ); - ~SwViewLayoutControl(); - - virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); - virtual void Paint( const UserDrawEvent& rEvt ); - virtual sal_Bool MouseButtonDown( const MouseEvent & ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/web.hrc b/sw/source/ui/inc/web.hrc deleted file mode 100644 index 7f6f1b8c85..0000000000 --- a/sw/source/ui/inc/web.hrc +++ /dev/null @@ -1,74 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#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_50 (RC_WEB_BEGIN + 9) -#define RID_WEBGRAPHIC_TOOLBOX (RC_WEB_BEGIN + 10) -#define RID_WEBOLE_TOOLBOX (RC_WEB_BEGIN + 11) -#define STR_WRITER_WEBDOC_FULLTYPE (RC_WEB_BEGIN + 12) - - -#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_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_WEBWIN_PORT - - -#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 deleted file mode 100644 index 44fc9769d0..0000000000 --- a/sw/source/ui/inc/wformsh.hxx +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#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 - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/wfrmsh.hxx b/sw/source/ui/inc/wfrmsh.hxx deleted file mode 100644 index 31750dd389..0000000000 --- a/sw/source/ui/inc/wfrmsh.hxx +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#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 - - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/wgrfsh.hxx b/sw/source/ui/inc/wgrfsh.hxx deleted file mode 100644 index 3d0d9921fb..0000000000 --- a/sw/source/ui/inc/wgrfsh.hxx +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#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 - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/wlistsh.hxx b/sw/source/ui/inc/wlistsh.hxx deleted file mode 100644 index 2f34938e0d..0000000000 --- a/sw/source/ui/inc/wlistsh.hxx +++ /dev/null @@ -1,45 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/wolesh.hxx b/sw/source/ui/inc/wolesh.hxx deleted file mode 100644 index ffb6c81270..0000000000 --- a/sw/source/ui/inc/wolesh.hxx +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#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 - - - - - - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/wordcountdialog.hxx b/sw/source/ui/inc/wordcountdialog.hxx deleted file mode 100644 index 3d640caac2..0000000000 --- a/sw/source/ui/inc/wordcountdialog.hxx +++ /dev/null @@ -1,70 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef SW_WORDCOUNTDIALOG_HXX -#define SW_WORDCOUNTDIALOG_HXX -#include <sfx2/basedlgs.hxx> -#include <svtools/stdctrl.hxx> -#include <vcl/button.hxx> -#include <layout/layout.hxx> -#include <layout/layout-pre.hxx> -struct SwDocStat; -class SwWordCountDialog : public SfxModalDialog -{ - FixedLine aCurrentFL; - FixedText aCurrentWordFT; - FixedInfo aCurrentWordFI; - FixedText aCurrentCharacterFT; - FixedInfo aCurrentCharacterFI; - FixedText aCurrentCharacterExcludingSpacesFT; - FixedInfo aCurrentCharacterExcludingSpacesFI; - - FixedLine aDocFL; - FixedText aDocWordFT; - FixedInfo aDocWordFI; - FixedText aDocCharacterFT; - FixedInfo aDocCharacterFI; - FixedText aDocCharacterExcludingSpacesFT; - FixedInfo aDocCharacterExcludingSpacesFI; - - FixedLine aBottomFL; - - OKButton aOK; - HelpButton aHelp; - -public: - SwWordCountDialog(Window* pParent); - ~SwWordCountDialog(); - - void SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc); -}; - -#include <layout/layout-post.hxx> - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/workctrl.hxx b/sw/source/ui/inc/workctrl.hxx deleted file mode 100644 index 2707794cd4..0000000000 --- a/sw/source/ui/inc/workctrl.hxx +++ /dev/null @@ -1,221 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _WORKCTRL_HXX -#define _WORKCTRL_HXX - -#include <sfx2/tbxctrl.hxx> -#include <vcl/toolbox.hxx> -#include <svtools/stdctrl.hxx> -#include <vcl/button.hxx> - -class PopupMenu; -class SwView; - -// double entry! hrc and hxx -// these Ids say what the buttons below the scrollbar are doing -#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 -{ - sal_uInt16 nLastSlotId; - - using SfxToolBoxControl::Select; - virtual void Select( sal_Bool bMod1 = sal_False ); - -public: - SFX_DECL_TOOLBOX_CONTROL(); - - SwTbxInsertCtrl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); - ~SwTbxInsertCtrl(); - - virtual SfxPopupWindowType GetPopupWindowType() const; - virtual SfxPopupWindow* CreatePopupWindow(); - virtual void StateChanged( sal_uInt16 nSID, - SfxItemState eState, - const SfxPoolItem* pState ); - - virtual void SAL_CALL update() throw (::com::sun::star::uno::RuntimeException); -}; - -//---------------------------------------------------------------------------- -// -//---------------------------------------------------------------------------- - -class SwTbxAutoTextCtrl : public SfxToolBoxControl -{ - PopupMenu* pPopup; - SwView* pView; - - - void DelPopup(); -public: - SFX_DECL_TOOLBOX_CONTROL(); - - SwTbxAutoTextCtrl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); - ~SwTbxAutoTextCtrl(); - - virtual SfxPopupWindowType GetPopupWindowType() const; - virtual SfxPopupWindow* CreatePopupWindow(); - virtual void StateChanged( sal_uInt16 nSID, - SfxItemState eState, - const SfxPoolItem* pState ); - - DECL_LINK(PopupHdl, PopupMenu*); -}; - - -//---------------------------------------------------------------------------- -// -//---------------------------------------------------------------------------- - -class SwScrollNaviToolBox : public ToolBox -{ - virtual void MouseButtonUp( const MouseEvent& rMEvt ); - virtual void RequestHelp( const HelpEvent& rHEvt ); - - public: - SwScrollNaviToolBox(Window* pParent, WinBits nWinStyle ) : - ToolBox(pParent, nWinStyle ) {} -}; - -class SwScrollNaviPopup : public SfxPopupWindow -{ - SwScrollNaviToolBox aToolBox; - FixedLine aSeparator; - FixedInfo aInfoField; - ImageList aIList; - - String sQuickHelp[2 * NID_COUNT]; - - sal_uInt16 nFwdId; - sal_uInt16 nBackId; - - void ApplyImageList(); - - using Window::GetQuickHelpText; - -protected: - DECL_LINK(SelectHdl, ToolBox*); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - -public: - SwScrollNaviPopup( sal_uInt16 nId, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame ); - ~SwScrollNaviPopup(); - - static String GetQuickHelpText(sal_Bool bNext); - - virtual SfxPopupWindow* Clone() const; - void GrabFocus(){aToolBox.GrabFocus();} -}; - -//---------------------------------------------------------------------------- -// -//---------------------------------------------------------------------------- - -class SwNaviImageButton : public ImageButton -{ - SwScrollNaviPopup* pPopup; - Image aImage; - String sQuickText; - SfxPopupWindow* pPopupWindow; - SfxPopupWindow* pFloatingWindow; - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame; - - protected: - DECL_LINK( PopupModeEndHdl, void * ); - DECL_LINK( ClosePopupWindow, SfxPopupWindow * ); - - virtual void Click(); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - void SetPopupWindow( SfxPopupWindow* pWindow ); - - public: - SwNaviImageButton(Window* pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame ); -}; - -//---------------------------------------------------------------------------- -// ImageButtons have to set the HelpText themselves if needed -//---------------------------------------------------------------------------- - -class SwHlpImageButton : public ImageButton -{ - sal_Bool bUp; - public: - SwHlpImageButton(Window* pParent, const ResId& rResId, sal_Bool bUpBtn) : - ImageButton(pParent, rResId), bUp(bUpBtn){} - - virtual void RequestHelp( const HelpEvent& rHEvt ); - -}; - -class SwPreviewZoomControl : public SfxToolBoxControl -{ -public: - SFX_DECL_TOOLBOX_CONTROL(); - - SwPreviewZoomControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); - ~SwPreviewZoomControl(); - - virtual void StateChanged( sal_uInt16 nSID, - SfxItemState eState, - const SfxPoolItem* pState ); - - virtual Window* CreateItemWindow( Window *pParent ); -}; -#endif - - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/wrap.hxx b/sw/source/ui/inc/wrap.hxx deleted file mode 100644 index 689de3c7b6..0000000000 --- a/sw/source/ui/inc/wrap.hxx +++ /dev/null @@ -1,145 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _WRAP_HXX -#define _WRAP_HXX - -#include <sfx2/tabdlg.hxx> -#include <sfx2/basedlgs.hxx> - -#include <vcl/button.hxx> - -#include <vcl/button.hxx> - -#include <vcl/fixed.hxx> - -#include <vcl/field.hxx> - -class Window; -class SfxItemSet; -class SwWrtShell; - -class SwWrapDlg : public SfxSingleTabDialog -{ - SwWrtShell* pWrtShell; - -public: - SwWrapDlg(Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, sal_Bool bDrawMode); - ~SwWrapDlg(); - - inline SwWrtShell* GetWrtShell() { return pWrtShell; } -}; - - -/*-------------------------------------------------------------------- - Description: circulation TabPage - --------------------------------------------------------------------*/ - -class SwWrapTabPage: public SfxTabPage -{ - // WRAPPING - FixedLine aWrapFLC; - ImageRadioButton aNoWrapRB; - ImageRadioButton aWrapLeftRB; - ImageRadioButton aWrapRightRB; - ImageRadioButton aWrapParallelRB; - ImageRadioButton aWrapThroughRB; - ImageRadioButton aIdealWrapRB; - - // MARGIN - FixedLine aMarginFL; - FixedText aLeftMarginFT; - MetricField aLeftMarginED; - FixedText aRightMarginFT; - MetricField aRightMarginED; - FixedText aTopMarginFT; - MetricField aTopMarginED; - FixedText aBottomMarginFT; - MetricField aBottomMarginED; - - // OPTIONS - FixedLine aOptionsSepFL; - FixedLine aOptionsFL; - CheckBox aWrapAnchorOnlyCB; - CheckBox aWrapTransparentCB; - CheckBox aWrapOutlineCB; - CheckBox aWrapOutsideCB; - - ImageList aWrapIL; - ImageList aWrapILH; - - sal_uInt16 nOldLeftMargin; - sal_uInt16 nOldRightMargin; - sal_uInt16 nOldUpperMargin; - sal_uInt16 nOldLowerMargin; - - RndStdIds nAnchorId; - sal_uInt16 nHtmlMode; - - Size aFrmSize; - SwWrtShell* pWrtSh; - - sal_Bool bFormat; - sal_Bool bNew; - sal_Bool bHtmlMode; - sal_Bool bDrawMode; - sal_Bool bContourImage; - - SwWrapTabPage(Window *pParent, const SfxItemSet &rSet); - ~SwWrapTabPage(); - - void ApplyImageList(); - void EnableModes(const SfxItemSet& rSet); - virtual void ActivatePage(const SfxItemSet& rSet); - virtual int DeactivatePage(SfxItemSet *pSet); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - - DECL_LINK( RangeModifyHdl, MetricField * ); - DECL_LINK( WrapTypeHdl, ImageRadioButton * ); - DECL_LINK( ContourHdl, CheckBox * ); - - using SfxTabPage::ActivatePage; - using SfxTabPage::DeactivatePage; - -public: - - static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet); - - virtual sal_Bool FillItemSet(SfxItemSet &rSet); - virtual void Reset(const SfxItemSet &rSet); - - static sal_uInt16* GetRanges(); - inline void SetNewFrame(sal_Bool bNewFrame) { bNew = bNewFrame; } - inline void SetFormatUsed(sal_Bool bFmt, sal_Bool bDrw) { bFormat = bFmt; - bDrawMode = bDrw; } - inline void SetShell(SwWrtShell* pSh) { pWrtSh = pSh; } -}; - -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/wrtsh.hxx b/sw/source/ui/inc/wrtsh.hxx deleted file mode 100644 index ebed5eedc0..0000000000 --- a/sw/source/ui/inc/wrtsh.hxx +++ /dev/null @@ -1,664 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _WRTSH_HXX -#define _WRTSH_HXX - -#include <com/sun/star/embed/XEmbeddedObject.hpp> -#include "swdllapi.h" -#include <fesh.hxx> -#include <sortopt.hxx> -#include <swurl.hxx> -#include <IMark.hxx> -#include "navmgr.hxx" - -class Window; -class OutputDevice; -class SbxArray; -class SwDoc; -class SpellCheck; -class SwViewOption; -class SwFlyFrmAttrMgr; -class SwField; -class SwTOXBase; -class SdrView; -class SwView; -class SvGlobalName; -class SwInputFieldList; -class SwSectionData; -class Timer; -class SvxMacro; -class SwFmtINetFmt; -class SvxINetBookmark; -class SvxAutoCorrect; -class NaviContentBookmark; -struct SwCallMouseEvent; -class DropEvent; -struct ChartSelectionInfo; -class SfxStringListItem; -class SfxRequest; - -namespace com { namespace sun { namespace star { namespace util { - struct SearchOptions; -} } } } - - -typedef sal_Int32 SelectionType; -namespace nsSelectionType -{ - const SelectionType SEL_TXT = CNT_TXT; // text, never frames too 0x0001 - const SelectionType SEL_GRF = CNT_GRF; // graphic 0x0002 - const SelectionType SEL_OLE = CNT_OLE; // OLE 0x0010 - const SelectionType SEL_FRM = 0x000020; // frame, no content type - const SelectionType SEL_NUM = 0x000040; // NumList - const SelectionType SEL_TBL = 0x000080; // cursor is in table - const SelectionType SEL_TBL_CELLS = 0x000100; // table cells are selected - const SelectionType SEL_DRW = 0x000200; // drawing objects (rectangle, circle...) - const SelectionType SEL_DRW_TXT = 0x000400; // draw-textobjects in edit mode - const SelectionType SEL_BEZ = 0x000800; // edit ornament objects - const SelectionType SEL_DRW_FORM = 0x001000; // drawing objects: DB-Forms - const SelectionType SEL_FOC_FRM_CTRL = 0x002000; // a form control is focused. Neither set nor evaluated by the SwWrtShell itself, only by it's clients. - const SelectionType SEL_MEDIA = 0x004000; // Media object - const SelectionType SEL_EXTRUDED_CUSTOMSHAPE = 0x008000; // extruded custom shape - const SelectionType SEL_FONTWORK = 0x010000; // fontwork - const SelectionType SEL_POSTIT = 0x020000; //annotation -} - - -class SW_DLLPUBLIC SwWrtShell: public SwFEShell -{ -private: - using SwCrsrShell::Left; - using SwCrsrShell::Right; - using SwCrsrShell::Up; - using SwCrsrShell::Down; - using SwCrsrShell::LeftMargin; - using SwCrsrShell::RightMargin; - using SwCrsrShell::SelectTxtAttr; - using SwCrsrShell::GotoPage; - using SwFEShell::InsertObject; - using SwEditShell::AutoCorrect; - using SwCrsrShell::GotoMark; - -public: - - using SwEditShell::Insert; - - typedef long (SwWrtShell::*SELECTFUNC)(const Point *, sal_Bool bProp ); - - SELECTFUNC fnDrag; - SELECTFUNC fnSetCrsr; - SELECTFUNC fnEndDrag; - SELECTFUNC fnKillSel; - - // reset all selections - long ResetSelect( const Point *, sal_Bool ); - - // resets the cursorstack after movement with PageUp/-Down if a stack is built up - inline void ResetCursorStack(); - SelectionType GetSelectionType() const; - - sal_Bool IsModePushed() const { return 0 != pModeStack; } - void PushMode(); - void PopMode(); - - void SttSelect(); - void EndSelect(); - sal_Bool IsInSelect() const { return bInSelect; } - void SetInSelect(sal_Bool bSel = sal_True) { bInSelect = bSel; } - // is there a text- or frameselection? - sal_Bool HasSelection() const { return SwCrsrShell::HasSelection() || - IsMultiSelection() || IsSelFrmMode() || IsObjSelected(); } - sal_Bool Pop( sal_Bool bOldCrsr = sal_True ); - - void EnterStdMode(); - sal_Bool IsStdMode() const { return !bExtMode && !bAddMode && !bBlockMode; } - - void EnterExtMode(); - void LeaveExtMode(); - long ToggleExtMode(); - sal_Bool IsExtMode() const { return bExtMode; } - - void EnterAddMode(); - void LeaveAddMode(); - long ToggleAddMode(); - sal_Bool IsAddMode() const { return bAddMode; } - - void EnterBlockMode(); - void LeaveBlockMode(); - long ToggleBlockMode(); - sal_Bool IsBlockMode() const { return bBlockMode; } - - void SetInsMode( sal_Bool bOn = sal_True ); - void ToggleInsMode() { SetInsMode( !bIns ); } - sal_Bool IsInsMode() const { return bIns; } - void SetRedlineModeAndCheckInsMode( sal_uInt16 eMode ); - - void EnterSelFrmMode(const Point *pStartDrag = 0); - void LeaveSelFrmMode(); - sal_Bool IsSelFrmMode() const { return bLayoutMode; } - // reset selection of frames - void UnSelectFrm(); - - void Invalidate(); - - // select table cells for editing of formulas in the ribbonbar - inline void SelTblCells( const Link &rLink, sal_Bool bMark = sal_True ); - inline void EndSelTblCells(); - - // leave per word or per line selection mode. Is usually called in MB-Up. - sal_Bool IsExtSel() const { return bSelWrd || bSelLn; } - - // query whether the active fnDrag pointer is set to BeginDrag - // is needed for MouseMove to work around bugs 55592/55931 - inline sal_Bool Is_FnDragEQBeginDrag() const; - - // base requests - sal_Bool IsInWrd() { return IsInWord(); } - sal_Bool IsSttWrd() { return IsStartWord(); } - sal_Bool IsEndWrd(); - sal_Bool IsSttOfPara() const { return IsSttPara(); } - sal_Bool IsEndOfPara() const { return IsEndPara(); } - - // select word / sentense - sal_Bool SelNearestWrd(); - sal_Bool SelWrd (const Point * = 0, sal_Bool bProp=sal_False ); - // #i32329# Enhanced selection - void SelSentence (const Point * = 0, sal_Bool bProp=sal_False ); - void SelPara (const Point * = 0, sal_Bool bProp=sal_False ); - long SelAll(); - - // basecursortravelling -typedef sal_Bool (SwWrtShell:: *FNSimpleMove)(); - sal_Bool SimpleMove( FNSimpleMove, sal_Bool bSelect ); - - sal_Bool Left ( sal_uInt16 nMode, sal_Bool bSelect, - sal_uInt16 nCount, sal_Bool bBasicCall, sal_Bool bVisual = sal_False ); - sal_Bool Right ( sal_uInt16 nMode, sal_Bool bSelect, - sal_uInt16 nCount, sal_Bool bBasicCall, sal_Bool bVisual = sal_False ); - sal_Bool Up ( sal_Bool bSelect = sal_False, sal_uInt16 nCount = 1, - sal_Bool bBasicCall = sal_False ); - sal_Bool Down ( sal_Bool bSelect = sal_False, sal_uInt16 nCount = 1, - sal_Bool bBasicCall = sal_False ); - sal_Bool NxtWrd ( sal_Bool bSelect = sal_False ) { return SimpleMove( &SwWrtShell::_NxtWrd, bSelect ); } - sal_Bool PrvWrd ( sal_Bool bSelect = sal_False ) { return SimpleMove( &SwWrtShell::_PrvWrd, bSelect ); } - - sal_Bool LeftMargin ( sal_Bool bSelect, sal_Bool bBasicCall ); - sal_Bool RightMargin( sal_Bool bSelect, sal_Bool bBasicCall ); - - sal_Bool SttDoc ( sal_Bool bSelect = sal_False ); - sal_Bool EndDoc ( sal_Bool bSelect = sal_False ); - - sal_Bool SttNxtPg ( sal_Bool bSelect = sal_False ); - sal_Bool SttPrvPg ( sal_Bool bSelect = sal_False ); - sal_Bool EndNxtPg ( sal_Bool bSelect = sal_False ); - sal_Bool EndPrvPg ( sal_Bool bSelect = sal_False ); - sal_Bool SttPg ( sal_Bool bSelect = sal_False ); - sal_Bool EndPg ( sal_Bool bSelect = sal_False ); - sal_Bool SttPara ( sal_Bool bSelect = sal_False ); - sal_Bool EndPara ( sal_Bool bSelect = sal_False ); - sal_Bool FwdPara ( sal_Bool bSelect = sal_False ) - { return SimpleMove( &SwWrtShell::_FwdPara, bSelect ); } - sal_Bool BwdPara ( sal_Bool bSelect = sal_False ) - { return SimpleMove( &SwWrtShell::_BwdPara, bSelect ); } - sal_Bool FwdSentence( sal_Bool bSelect = sal_False ) - { return SimpleMove( &SwWrtShell::_FwdSentence, bSelect ); } - sal_Bool BwdSentence( sal_Bool bSelect = sal_False ) - { return SimpleMove( &SwWrtShell::_BwdSentence, bSelect ); } - - // #i20126# Enhanced table selection - sal_Bool SelectTableRowCol( const Point& rPt, const Point* pEnd = 0, bool bRowDrag = false ); - sal_Bool SelectTableRow(); - sal_Bool SelectTableCol(); - sal_Bool SelectTableCell(); - - sal_Bool SelectTxtAttr( sal_uInt16 nWhich, const SwTxtAttr* pAttr = 0 ); - - // per column jumps - sal_Bool StartOfColumn ( sal_Bool bSelect = sal_False ); - sal_Bool EndOfColumn ( sal_Bool bSelect = sal_False ); - sal_Bool StartOfNextColumn ( sal_Bool bSelect = sal_False ); - sal_Bool EndOfNextColumn ( sal_Bool bSelect = sal_False ); - sal_Bool StartOfPrevColumn ( sal_Bool bSelect = sal_False ); - sal_Bool EndOfPrevColumn ( sal_Bool bSelect = sal_False ); - - // set the cursor to page "nPage" at the beginning - // additionally to a identically named implementation in crsrsh.hxx - // here all existing selections are being reset before setting the - // cursor - sal_Bool GotoPage( sal_uInt16 nPage, sal_Bool bRecord ); - - // setting the cursor; remember the old position for turning back - DECL_LINK( ExecFlyMac, void * ); - - sal_Bool PageCrsr(SwTwips lOffset, sal_Bool bSelect); - - // update fields - void UpdateInputFlds( SwInputFieldList* pLst = 0, sal_Bool bOnlyInSel = sal_False ); - - void NoEdit(sal_Bool bHideCrsr = sal_True); - void Edit(); - sal_Bool IsNoEdit() const { return bNoEdit; } - - sal_Bool IsRetainSelection() const { return mbRetainSelection; } - void SetRetainSelection( sal_Bool bRet ) { mbRetainSelection = bRet; } - - // change current data base and notify - void ChgDBData(const SwDBData& SwDBData); - - // delete - long DelToEndOfLine(); - long DelToStartOfLine(); - long DelLine(); - long DelLeft(); - - // also deletes the frame or sets the cursor in the frame when bDelFrm == sal_False - long DelRight(); - long DelToEndOfPara(); - long DelToStartOfPara(); - long DelToEndOfSentence(); - long DelToStartOfSentence(); - long DelNxtWord(); - long DelPrvWord(); - - // checks whether a word selection exists. - // According to the rules for intelligent Cut / Paste - // surrounding spaces are cut out. - // returns type of word selection (see enum) - enum word { - NO_WORD = 0, - WORD_SPACE_BEFORE = 1, - WORD_SPACE_AFTER = 2, - WORD_NO_SPACE = 3 - }; - int IntelligentCut(int nSelectionType, sal_Bool bCut = sal_True); - - // edit - void Insert(SwField &); - void Insert(const String &); - // graphic - void Insert( const String &rPath, const String &rFilter, - const Graphic &, SwFlyFrmAttrMgr * = 0, - sal_Bool bRule = sal_False ); - - void InsertByWord( const String & ); - void InsertPageBreak(const String *pPageDesc = 0, sal_uInt16 nPgNum = 0 ); - void InsertLineBreak(); - void InsertColumnBreak(); - void InsertFootnote(const String &, sal_Bool bEndNote = sal_False, sal_Bool bEdit = sal_True ); - void SplitNode( sal_Bool bAutoFormat = sal_False, sal_Bool bCheckTableStart = sal_True ); - sal_Bool CanInsert(); - - // indexes - void InsertTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet = 0); - sal_Bool UpdateTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet = 0); - - // numbering and bullets - /** - Turns on numbering or bullets. - - @param bNum sal_True: turn on numbering - sal_False: turn on bullets - */ - void NumOrBulletOn(sal_Bool bNum); // #i29560# - void NumOrBulletOff(); // #i29560# - void NumOn(); - void BulletOn(); - - //OLE - void InsertObject( /*SvInPlaceObjectRef *pObj, */ // != 0 for clipboard - const svt::EmbeddedObjectRef&, - SvGlobalName *pName = 0, // != 0 create object accordingly - sal_Bool bActivate = sal_True, - sal_uInt16 nSlotId = 0); // SlotId for dialog - - sal_Bool InsertOleObject( const svt::EmbeddedObjectRef& xObj, SwFlyFrmFmt **pFlyFrmFmt = 0 ); - void LaunchOLEObj( long nVerb = 0 ); // start server - sal_Bool IsOLEObj() const { return GetCntType() == CNT_OLE;} - virtual void MoveObjectIfActive( svt::EmbeddedObjectRef& xObj, const Point& rOffset ); - virtual void CalcAndSetScale( svt::EmbeddedObjectRef& xObj, - const SwRect *pFlyPrtRect = 0, - const SwRect *pFlyFrmRect = 0, - const bool bNoTxtFrmPrtAreaChanged = false ); - virtual void ConnectObj( svt::EmbeddedObjectRef& xIPObj, const SwRect &rPrt, - const SwRect &rFrm ); - - // styles and formats - - // enum tells when should happen when the style was not found - enum GetStyle { GETSTYLE_NOCREATE, // create none - GETSTYLE_CREATESOME, // if on PoolId create mapt - GETSTYLE_CREATEANY }; // return standard if applicable - - 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 sal_Bool bCalcFrm = sal_True ) const; - - // change current style using the attributes in effect - void QuickUpdateStyle(); - - enum DoType { UNDO, REDO, REPEAT }; - - void Do( DoType eDoType, sal_uInt16 nCnt = 1 ); - String GetDoString( DoType eDoType ) const; - String GetRepeatString() const; - sal_uInt16 GetDoStrings( DoType eDoType, SfxStringListItem& rStrLstItem ) const; - - // search and replace - sal_uLong SearchPattern(const com::sun::star::util::SearchOptions& rSearchOpt, - sal_Bool bSearchInNotes, - SwDocPositions eStart, SwDocPositions eEnde, - FindRanges eFlags = FND_IN_BODY, - int bReplace = sal_False ); - - sal_uLong SearchTempl (const String &rTempl, - SwDocPositions eStart, SwDocPositions eEnde, - FindRanges eFlags = FND_IN_BODY, - const String* pReplTempl = 0 ); - - sal_uLong SearchAttr (const SfxItemSet& rFindSet, - sal_Bool bNoColls, - SwDocPositions eStart,SwDocPositions eEnde, - FindRanges eFlags = FND_IN_BODY, - const com::sun::star::util::SearchOptions* pSearchOpt = 0, - const SfxItemSet* pReplaceSet = 0); - - void AutoCorrect( SvxAutoCorrect& rACorr, sal_Unicode cChar = ' ' ); - - // action ahead of cursor movement - // resets selection if applicable, triggers timer and GCAttr() - void MoveCrsr( sal_Bool bWithSelect = sal_False ); - - // update input fields - sal_Bool StartInputFldDlg(SwField*, sal_Bool bNextButton, Window* pParentWin = 0, ByteString* pWindowState = 0); - // update DropDown fields - sal_Bool StartDropDownFldDlg(SwField*, sal_Bool bNextButton, ByteString* pWindowState = 0); - - //"Handler" for changes at DrawView - for controls. - virtual void DrawSelChanged( ); - - // jump to bookmark and set the "selctions-flags" correctly again - sal_Bool GotoMark( const ::sw::mark::IMark* const pMark ); - sal_Bool GotoMark( const ::sw::mark::IMark* const pMark, sal_Bool bSelect, sal_Bool bStart ); - sal_Bool GotoMark( const ::rtl::OUString& rName ); - sal_Bool GoNextBookmark(); // sal_True when there still was one - sal_Bool GoPrevBookmark(); - - bool GotoFieldmark(::sw::mark::IFieldmark const * const pMark); - - sal_Bool GotoField( const SwFmtFld& rFld ); - - // jump to the next / previous hyperlink - inside text and also - // on graphics - sal_Bool SelectNextPrevHyperlink( sal_Bool bNext = sal_True ); - - // determine corresponding SwView - const SwView& GetView() const { return rView; } - SwView& GetView() { return rView; } - - // Because nobody else is doing it, here is a ExecMacro() - void ExecMacro( const SvxMacro& rMacro, String* pRet = 0, SbxArray* pArgs = 0 ); - // call into the dark Basic/JavaScript - sal_uInt16 CallEvent( sal_uInt16 nEvent, const SwCallMouseEvent& rCallEvent, - sal_Bool bCheckPtr = sal_False, SbxArray* pArgs = 0, - const Link* pCallBack = 0 ); - - // a click at the given field. the cursor is on it. - // execute the predefined actions. - void ClickToField( const SwField& rFld ); - void ClickToINetAttr( const SwFmtINetFmt& rItem, sal_uInt16 nFilter = URLLOAD_NOFILTER ); - sal_Bool ClickToINetGrf( const Point& rDocPt, sal_uInt16 nFilter = URLLOAD_NOFILTER ); - inline sal_Bool IsInClickToEdit() const ; - - // if a URL-Button is selected, return its URL; otherwise an empty string - sal_Bool GetURLFromButton( String& rURL, String& rDescr ) const; - - void NavigatorPaste( const NaviContentBookmark& rBkmk, - const sal_uInt16 nAction ); - - // Core creates a selection, SttSelect has to be called - virtual void NewCoreSelection(); - - virtual void ApplyViewOptions( const SwViewOption &rOpt ); - - // automatic update of styles - void AutoUpdateFrame(SwFrmFmt* pFmt, const SfxItemSet& rStyleSet); - void AutoUpdatePara(SwTxtFmtColl* pColl, const SfxItemSet& rStyleSet); - - // link for inserting ranges via Drag&Drop/Clipboard - DECL_STATIC_LINK( SwWrtShell, InsertRegionDialog, SwSectionData* ); - - - // ctor, the first one is a kind of a controlled copy ctor for more views of a document - SwWrtShell( SwWrtShell&, Window *pWin, SwView &rShell); - SwWrtShell( SwDoc& rDoc, Window *pWin, SwView &rShell, - const SwViewOption *pViewOpt = 0); - virtual ~SwWrtShell(); - - sal_Bool TryRemoveIndent(); // #i23725# - - String GetSelDescr() const; - - SwNavigationMgr& GetNavigationMgr(); - void addCurrentPosition(); - sal_Bool GotoFly( const String& rName, FlyCntType eType = FLYCNTTYPE_ALL, - sal_Bool bSelFrame = sal_True ); - sal_Bool GotoINetAttr( const SwTxtINetFmt& rAttr ); - void GotoOutline( sal_uInt16 nIdx ); - sal_Bool GotoOutline( const String& rName ); - sal_Bool GotoRegion( const String& rName ); - sal_Bool GotoRefMark( const String& rRefMark, sal_uInt16 nSubType = 0, - sal_uInt16 nSeqNo = 0 ); - sal_Bool GotoNextTOXBase( const String* pName = 0); - sal_Bool GotoTable( const String& rName ); - sal_Bool GotoFld( const SwFmtFld& rFld ); - const SwRedline* GotoRedline( sal_uInt16 nArrPos, sal_Bool bSelect = sal_False); - -private: - - SW_DLLPRIVATE void OpenMark(); - SW_DLLPRIVATE void CloseMark( sal_Bool bOkFlag ); - - SW_DLLPRIVATE String GetWrdDelim(); - SW_DLLPRIVATE String GetSDelim(); - SW_DLLPRIVATE String GetBothDelim(); - - struct ModeStack - { - ModeStack *pNext; - sal_Bool bAdd, - bBlock, - bExt, - bIns; - ModeStack(ModeStack *pNextMode, sal_Bool _bIns, sal_Bool _bExt, sal_Bool _bAdd, sal_Bool _bBlock): - pNext(pNextMode), - bAdd(_bAdd), - bBlock(_bBlock), - bExt(_bExt), - bIns(_bIns) - {} - } *pModeStack; - - // carry cursor along when PageUp / -Down - enum PageMove - { - MV_NO, - MV_PAGE_UP, - MV_PAGE_DOWN - } ePageMove; - - struct CrsrStack - { - Point aDocPos; - CrsrStack *pNext; - sal_Bool bValidCurPos : 1; - sal_Bool bIsFrmSel : 1; - SwTwips lOffset; - - CrsrStack( sal_Bool bValid, sal_Bool bFrmSel, const Point &rDocPos, - SwTwips lOff, CrsrStack *pN ) - : aDocPos(rDocPos), - pNext(pN), - bValidCurPos( bValid ), - bIsFrmSel( bFrmSel ), - lOffset(lOff) - { - - - } - - } *pCrsrStack; - - SwView &rView; - SwNavigationMgr aNavigationMgr; - - Point aDest; - sal_Bool bDestOnStack; - sal_Bool HasCrsrStack() const { return 0 != pCrsrStack; } - SW_DLLPRIVATE sal_Bool PushCrsr(SwTwips lOffset, sal_Bool bSelect); - SW_DLLPRIVATE sal_Bool PopCrsr(sal_Bool bUpdate, sal_Bool bSelect = sal_False); - - // take END cursor along when PageUp / -Down - SW_DLLPRIVATE sal_Bool _SttWrd(); - SW_DLLPRIVATE sal_Bool _EndWrd(); - SW_DLLPRIVATE sal_Bool _NxtWrd(); - SW_DLLPRIVATE sal_Bool _PrvWrd(); - // #i92468# - SW_DLLPRIVATE sal_Bool _NxtWrdForDelete(); - SW_DLLPRIVATE sal_Bool _PrvWrdForDelete(); - SW_DLLPRIVATE sal_Bool _FwdSentence(); - SW_DLLPRIVATE sal_Bool _BwdSentence(); - sal_Bool _FwdPara(); - SW_DLLPRIVATE sal_Bool _BwdPara(); - - // selections - sal_Bool bIns :1; - sal_Bool bInSelect :1; - sal_Bool bExtMode :1; - sal_Bool bAddMode :1; - sal_Bool bBlockMode :1; - sal_Bool bLayoutMode :1; - sal_Bool bNoEdit :1; - sal_Bool bCopy :1; - sal_Bool bSelWrd :1; - sal_Bool bSelLn :1; - sal_Bool bIsInClickToEdit:1; - sal_Bool bClearMark :1; // don't delete selection for ChartAutoPilot - sal_Bool mbRetainSelection :1; // Do not remove selections - - Point aStart; - Link aSelTblLink; - - SELECTFUNC fnLeaveSelect; - - // resets the cursor stack after movement by PageUp/-Down - SW_DLLPRIVATE void _ResetCursorStack(); - - SW_DLLPRIVATE void SttDragDrop(Timer *); - - using SwCrsrShell::SetCrsr; - SW_DLLPRIVATE long SetCrsr(const Point *, sal_Bool bProp=sal_False ); - - SW_DLLPRIVATE long SetCrsrKillSel(const Point *, sal_Bool bProp=sal_False ); - - SW_DLLPRIVATE long StdSelect(const Point *, sal_Bool bProp=sal_False ); - SW_DLLPRIVATE long BeginDrag(const Point *, sal_Bool bProp=sal_False ); - SW_DLLPRIVATE long Drag(const Point *, sal_Bool bProp=sal_False ); - SW_DLLPRIVATE long EndDrag(const Point *, sal_Bool bProp=sal_False ); - - SW_DLLPRIVATE long ExtSelWrd(const Point *, sal_Bool bProp=sal_False ); - SW_DLLPRIVATE long ExtSelLn(const Point *, sal_Bool bProp=sal_False ); - - // move text from Drag and Drop; Point is destination for all selections. - SW_DLLPRIVATE long MoveText(const Point *, sal_Bool bProp=sal_False ); - - SW_DLLPRIVATE long BeginFrmDrag(const Point *, sal_Bool bProp=sal_False ); - - // after SSize/Move of a frame update; Point is destination. - SW_DLLPRIVATE long UpdateLayoutFrm(const Point *, sal_Bool bProp=sal_False ); - - SW_DLLPRIVATE long SttLeaveSelect(const Point *, sal_Bool bProp=sal_False ); - SW_DLLPRIVATE long AddLeaveSelect(const Point *, sal_Bool bProp=sal_False ); - SW_DLLPRIVATE long Ignore(const Point *, sal_Bool bProp=sal_False ); - - SW_DLLPRIVATE void LeaveExtSel() { bSelWrd = bSelLn = sal_False;} - SW_DLLPRIVATE sal_Bool _CanInsert(); - - SW_DLLPRIVATE sal_Bool GoStart(sal_Bool KeepArea = sal_False, sal_Bool * = 0, - sal_Bool bSelect = sal_False, sal_Bool bDontMoveRegion = sal_False); - SW_DLLPRIVATE sal_Bool GoEnd(sal_Bool KeepArea = sal_False, sal_Bool * = 0); - - enum BookMarkMove - { - BOOKMARK_INDEX, - BOOKMARK_NEXT, - BOOKMARK_PREV, - BOOKMARK_LAST_LAST_ENTRY - }; - - SW_DLLPRIVATE sal_Bool MoveBookMark(BookMarkMove eFuncId, const ::sw::mark::IMark* const pMark=NULL); -}; - -inline void SwWrtShell::ResetCursorStack() -{ - if ( HasCrsrStack() ) - _ResetCursorStack(); -} - -inline void SwWrtShell::SelTblCells(const Link &rLink, sal_Bool bMark ) -{ - SetSelTblCells( sal_True ); - bClearMark = bMark; - aSelTblLink = rLink; -} -inline void SwWrtShell::EndSelTblCells() -{ - SetSelTblCells( sal_False ); - bClearMark = sal_True; -} - -inline sal_Bool SwWrtShell::IsInClickToEdit() const { return bIsInClickToEdit; } - -inline sal_Bool SwWrtShell::Is_FnDragEQBeginDrag() const -{ -#ifdef GCC - SELECTFUNC fnTmp = &SwWrtShell::BeginDrag; - return fnDrag == fnTmp; -#else - return sal::static_int_cast< sal_Bool >(fnDrag == &SwWrtShell::BeginDrag); -#endif -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/wtabsh.hxx b/sw/source/ui/inc/wtabsh.hxx deleted file mode 100644 index d88dea2474..0000000000 --- a/sw/source/ui/inc/wtabsh.hxx +++ /dev/null @@ -1,45 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/wtextsh.hxx b/sw/source/ui/inc/wtextsh.hxx deleted file mode 100644 index e558bcf6ae..0000000000 --- a/sw/source/ui/inc/wtextsh.hxx +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#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 - - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/wview.hxx b/sw/source/ui/inc/wview.hxx deleted file mode 100644 index 2c60c6307f..0000000000 --- a/sw/source/ui/inc/wview.hxx +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _SWWVIEW_HXX -#define _SWWVIEW_HXX - -#include "swdllapi.h" -#include "view.hxx" - -class SW_DLLPUBLIC SwWebView: public SwView -{ -protected: - virtual void SelectShell(); -public: - - SFX_DECL_VIEWFACTORY(SwWebView); - SFX_DECL_INTERFACE(SW_WEBVIEWSHELL) - TYPEINFO(); - - SwWebView(SfxViewFrame* pFrame, SfxViewShell*); - ~SwWebView(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/zoomctrl.hxx b/sw/source/ui/inc/zoomctrl.hxx deleted file mode 100644 index b07848c50d..0000000000 --- a/sw/source/ui/inc/zoomctrl.hxx +++ /dev/null @@ -1,54 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ -#ifndef _ZOOMCTRL_HXX -#define _ZOOMCTRL_HXX - -#include <svx/zoomctrl.hxx> - -class SwZoomControl : public SvxZoomStatusBarControl -{ -private: - String sPreviewZoom; -public: - virtual void Command( const CommandEvent& rCEvt ); - virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, - const SfxPoolItem* pState ); - virtual void Paint( const UserDrawEvent& rEvt ); - - SFX_DECL_STATUSBAR_CONTROL(); - - SwZoomControl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb ); - ~SwZoomControl(); - -}; - - -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |