From b9337e22ce1dbf2eba0e8c8db294ae99f4111f91 Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Thu, 18 Apr 2013 18:26:28 +0200 Subject: execute move of global headers see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a --- svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx | 52 - svtools/inc/svtools/DocumentInfoPreview.hxx | 73 -- svtools/inc/svtools/DocumentToGraphicRenderer.hxx | 62 - svtools/inc/svtools/GraphicExportOptionsDialog.hxx | 78 -- svtools/inc/svtools/PlaceEditDialog.hxx | 92 -- svtools/inc/svtools/QueryFolderName.hxx | 57 - svtools/inc/svtools/ServerDetailsControls.hxx | 148 --- svtools/inc/svtools/acceleratorexecute.hxx | 246 ---- svtools/inc/svtools/accessibilityoptions.hxx | 72 -- svtools/inc/svtools/accessiblefactory.hxx | 184 --- svtools/inc/svtools/accessibletable.hxx | 203 ---- svtools/inc/svtools/accessibletableprovider.hxx | 241 ---- svtools/inc/svtools/addresstemplate.hxx | 144 --- svtools/inc/svtools/apearcfg.hxx | 97 -- svtools/inc/svtools/asynclink.hxx | 66 - svtools/inc/svtools/bindablecontrolhelper.hxx | 52 - svtools/inc/svtools/borderhelper.hxx | 47 - svtools/inc/svtools/brwbox.hxx | 831 ------------- svtools/inc/svtools/brwhead.hxx | 46 - svtools/inc/svtools/calendar.hxx | 451 ------- svtools/inc/svtools/cliplistener.hxx | 54 - svtools/inc/svtools/collatorres.hxx | 42 - svtools/inc/svtools/colorcfg.hxx | 138 --- svtools/inc/svtools/colrdlg.hxx | 60 - svtools/inc/svtools/contextmenuhelper.hxx | 116 -- svtools/inc/svtools/controldims.hrc | 93 -- svtools/inc/svtools/ctrlbox.hxx | 552 --------- svtools/inc/svtools/ctrltool.hxx | 241 ---- svtools/inc/svtools/dialogclosedlistener.hxx | 69 -- svtools/inc/svtools/dialogcontrolling.hxx | 293 ----- svtools/inc/svtools/editbrowsebox.hxx | 685 ----------- svtools/inc/svtools/editimplementation.hxx | 144 --- svtools/inc/svtools/editsyntaxhighlighter.hxx | 56 - svtools/inc/svtools/ehdl.hxx | 77 -- svtools/inc/svtools/embedhlp.hxx | 124 -- svtools/inc/svtools/embedtransfer.hxx | 57 - svtools/inc/svtools/extcolorcfg.hxx | 111 -- svtools/inc/svtools/extensionlistbox.hxx | 98 -- svtools/inc/svtools/filechangedchecker.hxx | 54 - svtools/inc/svtools/filectrl.hxx | 96 -- svtools/inc/svtools/filedlg2.hrc | 23 - svtools/inc/svtools/fileurlbox.hxx | 68 -- svtools/inc/svtools/fileview.hxx | 258 ---- svtools/inc/svtools/fmtfield.hxx | 319 ----- svtools/inc/svtools/fontsubstconfig.hxx | 61 - svtools/inc/svtools/framestatuslistener.hxx | 101 -- svtools/inc/svtools/generictoolboxcontroller.hxx | 61 - svtools/inc/svtools/genericunodialog.hxx | 185 --- svtools/inc/svtools/grfmgr.hxx | 624 ---------- svtools/inc/svtools/headbar.hxx | 377 ------ svtools/inc/svtools/helpid.hrc | 97 -- svtools/inc/svtools/helpopt.hxx | 65 - svtools/inc/svtools/htmlcfg.hxx | 94 -- svtools/inc/svtools/htmlkywd.hxx | 796 ------------ svtools/inc/svtools/htmlout.hxx | 118 -- svtools/inc/svtools/htmltokn.h | 561 --------- svtools/inc/svtools/hyperlabel.hxx | 87 -- svtools/inc/svtools/imagemgr.hrc | 147 --- svtools/inc/svtools/imagemgr.hxx | 79 -- svtools/inc/svtools/imageresourceaccess.hxx | 81 -- svtools/inc/svtools/imap.hxx | 151 --- svtools/inc/svtools/imapcirc.hxx | 75 -- svtools/inc/svtools/imapobj.hxx | 145 --- svtools/inc/svtools/imappoly.hxx | 81 -- svtools/inc/svtools/imaprect.hxx | 73 -- svtools/inc/svtools/imgdef.hxx | 36 - svtools/inc/svtools/indexentryres.hxx | 42 - svtools/inc/svtools/inetimg.hxx | 78 -- svtools/inc/svtools/inettbc.hxx | 97 -- svtools/inc/svtools/insdlg.hxx | 79 -- svtools/inc/svtools/itemdel.hxx | 30 - svtools/inc/svtools/ivctrl.hxx | 353 ------ svtools/inc/svtools/javacontext.hxx | 82 -- svtools/inc/svtools/javainteractionhandler.hxx | 75 -- svtools/inc/svtools/langhelp.hxx | 30 - svtools/inc/svtools/langtab.hxx | 57 - svtools/inc/svtools/localresaccess.hxx | 75 -- svtools/inc/svtools/menuoptions.hxx | 128 -- svtools/inc/svtools/miscopt.hxx | 150 --- svtools/inc/svtools/optionsdrawinglayer.hxx | 198 --- svtools/inc/svtools/parhtml.hxx | 289 ----- svtools/inc/svtools/parrtf.hxx | 85 -- svtools/inc/svtools/place.hxx | 42 - svtools/inc/svtools/popupmenucontrollerbase.hxx | 131 -- svtools/inc/svtools/popupwindowcontroller.hxx | 79 -- svtools/inc/svtools/printoptions.hxx | 120 -- svtools/inc/svtools/prnsetup.hxx | 93 -- svtools/inc/svtools/restartdialog.hxx | 47 - svtools/inc/svtools/roadmap.hxx | 123 -- svtools/inc/svtools/roadmapwizard.hxx | 246 ---- svtools/inc/svtools/rtfkeywd.hxx | 1212 ------------------- svtools/inc/svtools/rtfout.hxx | 58 - svtools/inc/svtools/rtftoken.h | 1265 -------------------- svtools/inc/svtools/ruler.hxx | 802 ------------- svtools/inc/svtools/sampletext.hxx | 49 - svtools/inc/svtools/scriptedtext.hxx | 95 -- svtools/inc/svtools/scrwin.hxx | 93 -- svtools/inc/svtools/sfxecode.hxx | 113 -- svtools/inc/svtools/slidesorterbaropt.hxx | 98 -- svtools/inc/svtools/soerr.hxx | 74 -- svtools/inc/svtools/sores.hxx | 103 -- svtools/inc/svtools/statusbarcontroller.hxx | 141 --- svtools/inc/svtools/stdctrl.hxx | 41 - svtools/inc/svtools/stdmenu.hxx | 161 --- svtools/inc/svtools/stringtransfer.hxx | 76 -- svtools/inc/svtools/svlbitm.hxx | 257 ---- svtools/inc/svtools/svmedit.hxx | 45 - svtools/inc/svtools/svmedit2.hxx | 46 - svtools/inc/svtools/svparser.hxx | 278 ----- svtools/inc/svtools/svtabbx.hxx | 255 ---- svtools/inc/svtools/svtdllapi.h | 34 - svtools/inc/svtools/svtools.hrc | 324 ----- svtools/inc/svtools/svtresid.hxx | 38 - svtools/inc/svtools/svxbox.hxx | 178 --- svtools/inc/svtools/tabbar.hxx | 557 --------- svtools/inc/svtools/table/defaultinputhandler.hxx | 65 - svtools/inc/svtools/table/gridtablerenderer.hxx | 121 -- svtools/inc/svtools/table/tablecontrol.hxx | 218 ---- .../inc/svtools/table/tablecontrolinterface.hxx | 257 ---- svtools/inc/svtools/table/tableinputhandler.hxx | 73 -- svtools/inc/svtools/table/tablemodel.hxx | 539 --------- svtools/inc/svtools/table/tablerenderer.hxx | 285 ----- svtools/inc/svtools/table/tablesort.hxx | 89 -- svtools/inc/svtools/table/tabletypes.hxx | 64 - svtools/inc/svtools/templatefoldercache.hxx | 102 -- svtools/inc/svtools/templdlg.hxx | 81 -- svtools/inc/svtools/textwindowpeer.hxx | 65 - svtools/inc/svtools/toolbarmenu.hxx | 140 --- svtools/inc/svtools/toolboxcontroller.hxx | 162 --- svtools/inc/svtools/toolpanel/decklayouter.hxx | 99 -- svtools/inc/svtools/toolpanel/drawerlayouter.hxx | 97 -- svtools/inc/svtools/toolpanel/paneltabbar.hxx | 96 -- svtools/inc/svtools/toolpanel/refbase.hxx | 75 -- svtools/inc/svtools/toolpanel/tabalignment.hxx | 42 - svtools/inc/svtools/toolpanel/tabitemcontent.hxx | 43 - svtools/inc/svtools/toolpanel/tablayouter.hxx | 99 -- svtools/inc/svtools/toolpanel/toolpanel.hxx | 138 --- svtools/inc/svtools/toolpanel/toolpaneldeck.hxx | 194 --- svtools/inc/svtools/toolpanelopt.hxx | 99 -- svtools/inc/svtools/transfer.hxx | 521 -------- svtools/inc/svtools/treelist.hxx | 366 ------ svtools/inc/svtools/treelistbox.hxx | 806 ------------- svtools/inc/svtools/treelistentries.hxx | 20 - svtools/inc/svtools/treelistentry.hxx | 104 -- svtools/inc/svtools/unitconv.hxx | 54 - svtools/inc/svtools/unoevent.hxx | 320 ----- svtools/inc/svtools/unoimap.hxx | 39 - svtools/inc/svtools/urlcontrol.hxx | 53 - svtools/inc/svtools/valueset.hxx | 391 ------ svtools/inc/svtools/viewdataentry.hxx | 81 -- svtools/inc/svtools/wizardmachine.hxx | 385 ------ svtools/inc/svtools/wizdlg.hxx | 301 ----- svtools/inc/svtools/xwindowitem.hxx | 58 - 153 files changed, 27029 deletions(-) delete mode 100644 svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx delete mode 100644 svtools/inc/svtools/DocumentInfoPreview.hxx delete mode 100644 svtools/inc/svtools/DocumentToGraphicRenderer.hxx delete mode 100644 svtools/inc/svtools/GraphicExportOptionsDialog.hxx delete mode 100644 svtools/inc/svtools/PlaceEditDialog.hxx delete mode 100644 svtools/inc/svtools/QueryFolderName.hxx delete mode 100644 svtools/inc/svtools/ServerDetailsControls.hxx delete mode 100644 svtools/inc/svtools/acceleratorexecute.hxx delete mode 100644 svtools/inc/svtools/accessibilityoptions.hxx delete mode 100644 svtools/inc/svtools/accessiblefactory.hxx delete mode 100644 svtools/inc/svtools/accessibletable.hxx delete mode 100644 svtools/inc/svtools/accessibletableprovider.hxx delete mode 100644 svtools/inc/svtools/addresstemplate.hxx delete mode 100644 svtools/inc/svtools/apearcfg.hxx delete mode 100644 svtools/inc/svtools/asynclink.hxx delete mode 100644 svtools/inc/svtools/bindablecontrolhelper.hxx delete mode 100644 svtools/inc/svtools/borderhelper.hxx delete mode 100644 svtools/inc/svtools/brwbox.hxx delete mode 100644 svtools/inc/svtools/brwhead.hxx delete mode 100644 svtools/inc/svtools/calendar.hxx delete mode 100644 svtools/inc/svtools/cliplistener.hxx delete mode 100644 svtools/inc/svtools/collatorres.hxx delete mode 100644 svtools/inc/svtools/colorcfg.hxx delete mode 100644 svtools/inc/svtools/colrdlg.hxx delete mode 100644 svtools/inc/svtools/contextmenuhelper.hxx delete mode 100644 svtools/inc/svtools/controldims.hrc delete mode 100644 svtools/inc/svtools/ctrlbox.hxx delete mode 100644 svtools/inc/svtools/ctrltool.hxx delete mode 100644 svtools/inc/svtools/dialogclosedlistener.hxx delete mode 100644 svtools/inc/svtools/dialogcontrolling.hxx delete mode 100644 svtools/inc/svtools/editbrowsebox.hxx delete mode 100644 svtools/inc/svtools/editimplementation.hxx delete mode 100644 svtools/inc/svtools/editsyntaxhighlighter.hxx delete mode 100644 svtools/inc/svtools/ehdl.hxx delete mode 100644 svtools/inc/svtools/embedhlp.hxx delete mode 100644 svtools/inc/svtools/embedtransfer.hxx delete mode 100644 svtools/inc/svtools/extcolorcfg.hxx delete mode 100644 svtools/inc/svtools/extensionlistbox.hxx delete mode 100644 svtools/inc/svtools/filechangedchecker.hxx delete mode 100644 svtools/inc/svtools/filectrl.hxx delete mode 100644 svtools/inc/svtools/filedlg2.hrc delete mode 100644 svtools/inc/svtools/fileurlbox.hxx delete mode 100644 svtools/inc/svtools/fileview.hxx delete mode 100644 svtools/inc/svtools/fmtfield.hxx delete mode 100644 svtools/inc/svtools/fontsubstconfig.hxx delete mode 100644 svtools/inc/svtools/framestatuslistener.hxx delete mode 100644 svtools/inc/svtools/generictoolboxcontroller.hxx delete mode 100644 svtools/inc/svtools/genericunodialog.hxx delete mode 100644 svtools/inc/svtools/grfmgr.hxx delete mode 100644 svtools/inc/svtools/headbar.hxx delete mode 100644 svtools/inc/svtools/helpid.hrc delete mode 100644 svtools/inc/svtools/helpopt.hxx delete mode 100644 svtools/inc/svtools/htmlcfg.hxx delete mode 100644 svtools/inc/svtools/htmlkywd.hxx delete mode 100644 svtools/inc/svtools/htmlout.hxx delete mode 100644 svtools/inc/svtools/htmltokn.h delete mode 100644 svtools/inc/svtools/hyperlabel.hxx delete mode 100644 svtools/inc/svtools/imagemgr.hrc delete mode 100644 svtools/inc/svtools/imagemgr.hxx delete mode 100644 svtools/inc/svtools/imageresourceaccess.hxx delete mode 100644 svtools/inc/svtools/imap.hxx delete mode 100644 svtools/inc/svtools/imapcirc.hxx delete mode 100644 svtools/inc/svtools/imapobj.hxx delete mode 100644 svtools/inc/svtools/imappoly.hxx delete mode 100644 svtools/inc/svtools/imaprect.hxx delete mode 100644 svtools/inc/svtools/imgdef.hxx delete mode 100644 svtools/inc/svtools/indexentryres.hxx delete mode 100644 svtools/inc/svtools/inetimg.hxx delete mode 100644 svtools/inc/svtools/inettbc.hxx delete mode 100644 svtools/inc/svtools/insdlg.hxx delete mode 100644 svtools/inc/svtools/itemdel.hxx delete mode 100644 svtools/inc/svtools/ivctrl.hxx delete mode 100644 svtools/inc/svtools/javacontext.hxx delete mode 100644 svtools/inc/svtools/javainteractionhandler.hxx delete mode 100644 svtools/inc/svtools/langhelp.hxx delete mode 100644 svtools/inc/svtools/langtab.hxx delete mode 100644 svtools/inc/svtools/localresaccess.hxx delete mode 100644 svtools/inc/svtools/menuoptions.hxx delete mode 100644 svtools/inc/svtools/miscopt.hxx delete mode 100644 svtools/inc/svtools/optionsdrawinglayer.hxx delete mode 100644 svtools/inc/svtools/parhtml.hxx delete mode 100644 svtools/inc/svtools/parrtf.hxx delete mode 100644 svtools/inc/svtools/place.hxx delete mode 100644 svtools/inc/svtools/popupmenucontrollerbase.hxx delete mode 100644 svtools/inc/svtools/popupwindowcontroller.hxx delete mode 100644 svtools/inc/svtools/printoptions.hxx delete mode 100644 svtools/inc/svtools/prnsetup.hxx delete mode 100644 svtools/inc/svtools/restartdialog.hxx delete mode 100644 svtools/inc/svtools/roadmap.hxx delete mode 100644 svtools/inc/svtools/roadmapwizard.hxx delete mode 100644 svtools/inc/svtools/rtfkeywd.hxx delete mode 100644 svtools/inc/svtools/rtfout.hxx delete mode 100644 svtools/inc/svtools/rtftoken.h delete mode 100644 svtools/inc/svtools/ruler.hxx delete mode 100644 svtools/inc/svtools/sampletext.hxx delete mode 100644 svtools/inc/svtools/scriptedtext.hxx delete mode 100644 svtools/inc/svtools/scrwin.hxx delete mode 100644 svtools/inc/svtools/sfxecode.hxx delete mode 100644 svtools/inc/svtools/slidesorterbaropt.hxx delete mode 100644 svtools/inc/svtools/soerr.hxx delete mode 100644 svtools/inc/svtools/sores.hxx delete mode 100644 svtools/inc/svtools/statusbarcontroller.hxx delete mode 100644 svtools/inc/svtools/stdctrl.hxx delete mode 100644 svtools/inc/svtools/stdmenu.hxx delete mode 100644 svtools/inc/svtools/stringtransfer.hxx delete mode 100644 svtools/inc/svtools/svlbitm.hxx delete mode 100644 svtools/inc/svtools/svmedit.hxx delete mode 100644 svtools/inc/svtools/svmedit2.hxx delete mode 100644 svtools/inc/svtools/svparser.hxx delete mode 100644 svtools/inc/svtools/svtabbx.hxx delete mode 100644 svtools/inc/svtools/svtdllapi.h delete mode 100644 svtools/inc/svtools/svtools.hrc delete mode 100644 svtools/inc/svtools/svtresid.hxx delete mode 100644 svtools/inc/svtools/svxbox.hxx delete mode 100644 svtools/inc/svtools/tabbar.hxx delete mode 100644 svtools/inc/svtools/table/defaultinputhandler.hxx delete mode 100644 svtools/inc/svtools/table/gridtablerenderer.hxx delete mode 100644 svtools/inc/svtools/table/tablecontrol.hxx delete mode 100644 svtools/inc/svtools/table/tablecontrolinterface.hxx delete mode 100644 svtools/inc/svtools/table/tableinputhandler.hxx delete mode 100644 svtools/inc/svtools/table/tablemodel.hxx delete mode 100644 svtools/inc/svtools/table/tablerenderer.hxx delete mode 100644 svtools/inc/svtools/table/tablesort.hxx delete mode 100644 svtools/inc/svtools/table/tabletypes.hxx delete mode 100644 svtools/inc/svtools/templatefoldercache.hxx delete mode 100644 svtools/inc/svtools/templdlg.hxx delete mode 100644 svtools/inc/svtools/textwindowpeer.hxx delete mode 100644 svtools/inc/svtools/toolbarmenu.hxx delete mode 100644 svtools/inc/svtools/toolboxcontroller.hxx delete mode 100644 svtools/inc/svtools/toolpanel/decklayouter.hxx delete mode 100644 svtools/inc/svtools/toolpanel/drawerlayouter.hxx delete mode 100644 svtools/inc/svtools/toolpanel/paneltabbar.hxx delete mode 100644 svtools/inc/svtools/toolpanel/refbase.hxx delete mode 100644 svtools/inc/svtools/toolpanel/tabalignment.hxx delete mode 100644 svtools/inc/svtools/toolpanel/tabitemcontent.hxx delete mode 100644 svtools/inc/svtools/toolpanel/tablayouter.hxx delete mode 100644 svtools/inc/svtools/toolpanel/toolpanel.hxx delete mode 100644 svtools/inc/svtools/toolpanel/toolpaneldeck.hxx delete mode 100644 svtools/inc/svtools/toolpanelopt.hxx delete mode 100644 svtools/inc/svtools/transfer.hxx delete mode 100644 svtools/inc/svtools/treelist.hxx delete mode 100644 svtools/inc/svtools/treelistbox.hxx delete mode 100755 svtools/inc/svtools/treelistentries.hxx delete mode 100644 svtools/inc/svtools/treelistentry.hxx delete mode 100644 svtools/inc/svtools/unitconv.hxx delete mode 100644 svtools/inc/svtools/unoevent.hxx delete mode 100644 svtools/inc/svtools/unoimap.hxx delete mode 100644 svtools/inc/svtools/urlcontrol.hxx delete mode 100644 svtools/inc/svtools/valueset.hxx delete mode 100644 svtools/inc/svtools/viewdataentry.hxx delete mode 100644 svtools/inc/svtools/wizardmachine.hxx delete mode 100644 svtools/inc/svtools/wizdlg.hxx delete mode 100644 svtools/inc/svtools/xwindowitem.hxx (limited to 'svtools/inc') diff --git a/svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx b/svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx deleted file mode 100644 index 6334cb82aac1..000000000000 --- a/svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - - -#ifndef _SVTOOLS_ACCESSIBLEBROWSEBOXOBJTYPE_HXX -#define _SVTOOLS_ACCESSIBLEBROWSEBOXOBJTYPE_HXX - -// ============================================================================ - -namespace svt { - -// ============================================================================ - -/** This enumeration contains a constant for each kind of accessible object of - a BrowseBox. */ -enum AccessibleBrowseBoxObjType -{ - BBTYPE_BROWSEBOX, /// The BrowseBox itself. - BBTYPE_TABLE, /// The data table. - BBTYPE_ROWHEADERBAR, /// The row header bar ("handle column"). - BBTYPE_COLUMNHEADERBAR, /// The horizontal column header bar. - BBTYPE_TABLECELL, /// A cell of the data table. - BBTYPE_ROWHEADERCELL, /// A cell of the row header bar. - BBTYPE_COLUMNHEADERCELL, /// A cell of the column header bar. - BBTYPE_CHECKBOXCELL /// A cell with a checkbox. -}; - -// ============================================================================ - -} // namespace svt - -// ============================================================================ - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/DocumentInfoPreview.hxx b/svtools/inc/svtools/DocumentInfoPreview.hxx deleted file mode 100644 index 167de92636de..000000000000 --- a/svtools/inc/svtools/DocumentInfoPreview.hxx +++ /dev/null @@ -1,73 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef SVTOOLS_DOCUMENTINFOPREVIEW_HXX -#define SVTOOLS_DOCUMENTINFOPREVIEW_HXX - -#include "sal/config.h" - -#include "boost/scoped_ptr.hpp" -#include "i18nlangtag/languagetag.hxx" -#include "com/sun/star/uno/Reference.hxx" -#include "svtools/svmedit2.hxx" -#include "svtools/svtdllapi.h" -#include "tools/wintypes.hxx" -#include "vcl/window.hxx" - -class SvtDocInfoTable_Impl; - -namespace com { namespace sun { namespace star { - namespace document { class XDocumentProperties; } - namespace util { struct DateTime; } -} } } - -namespace svtools { - -class SVT_DLLPUBLIC ODocumentInfoPreview: public Window { -public: - ODocumentInfoPreview(Window * pParent, WinBits nBits); - - virtual ~ODocumentInfoPreview(); - - virtual void Resize(); - - void clear(); - - void fill( - com::sun::star::uno::Reference< - com::sun::star::document::XDocumentProperties > const & xDocProps, - OUString const & rURL); - -private: - ExtMultiLineEdit m_pEditWin; - boost::scoped_ptr< SvtDocInfoTable_Impl > m_pInfoTable; - LanguageTag m_aLanguageTag; - - void insertEntry(OUString const & title, OUString const & value); - - void insertNonempty(long id, OUString const & value); - - void insertDateTime(long id, com::sun::star::util::DateTime const & value); -}; - -} - -#endif // SVTOOLS_DOCUMENTINFOPREVIEW_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/DocumentToGraphicRenderer.hxx b/svtools/inc/svtools/DocumentToGraphicRenderer.hxx deleted file mode 100644 index 3033e6473129..000000000000 --- a/svtools/inc/svtools/DocumentToGraphicRenderer.hxx +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - - -#ifndef _DOCUMENTTOGRAPHICRENDERER_HXX_ -#define _DOCUMENTTOGRAPHICRENDERER_HXX_ - -#include -#include -#include -#include - -#include - -#include "svtools/svtdllapi.h" - -using namespace css; -using namespace css::uno; -using namespace css::lang; -using namespace css::beans; - -class SVT_DLLPUBLIC DocumentToGraphicRenderer -{ - const Reference& mxDocument; - - Reference mxModel; - Reference mxController; - Reference mxRenderable; - Reference mxToolkit; - -public: - DocumentToGraphicRenderer(const Reference& xDocument); - ~DocumentToGraphicRenderer(); - - sal_Int32 getCurrentPageWriter( ); - - Size getDocumentSizeInPixels( sal_Int32 aCurrentPage ); - - Size getDocumentSizeIn100mm( sal_Int32 aCurrentPage ); - - Graphic renderToGraphic(sal_Int32 aCurrentPage, Size aDocumentSizePixel, Size aTargetSizePixel); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/GraphicExportOptionsDialog.hxx b/svtools/inc/svtools/GraphicExportOptionsDialog.hxx deleted file mode 100644 index b346f8c25671..000000000000 --- a/svtools/inc/svtools/GraphicExportOptionsDialog.hxx +++ /dev/null @@ -1,78 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _GRAPHICEXPORTOPTIONSDIALOG_HXX_ -#define _GRAPHICEXPORTOPTIONSDIALOG_HXX_ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -#include "svtools/svtdllapi.h" - -using namespace css; -using namespace css::uno; -using namespace css::lang; -using namespace css::frame; -using namespace css::beans; - -class SVT_DLLPUBLIC GraphicExportOptionsDialog : public ModalDialog -{ -private: - NumericField* mpWidth; - NumericField* mpHeight; - ComboBox* mpResolution; - - Size mSize100mm; - double mResolution; - - DocumentToGraphicRenderer mRenderer; - - sal_Int32 mCurrentPage; - - void initialize(); - void updateWidth(); - void updateHeight(); - void updateResolution(); - - double getViewWidthInch(); - double getViewHeightInch(); - - DECL_LINK( widthModifiedHandle, void* ); - DECL_LINK( heightModifiedHandle, void* ); - DECL_LINK( resolutionModifiedHandle, void* ); - -public: - GraphicExportOptionsDialog( Window* pWindow, const Reference& rxSourceDocument ); - ~GraphicExportOptionsDialog(); - - Sequence getFilterData(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/PlaceEditDialog.hxx b/svtools/inc/svtools/PlaceEditDialog.hxx deleted file mode 100644 index d529442cd738..000000000000 --- a/svtools/inc/svtools/PlaceEditDialog.hxx +++ /dev/null @@ -1,92 +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 or as specified alternatively below. 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. - * - * Major Contributor(s): - * [ Copyright (C) 2012 Julien Levesy (initial developer) ] - * - * All Rights Reserved. - * - * For minor contributions see the git repository. - * - * 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 _PLACEEDITDIALOG_HXX -#define _PLACEEDITDIALOG_HXX - -#include "ServerDetailsControls.hxx" - -#include -#include -#include -#include -#include - -#include -#include - -#include -#include - -class SVT_DLLPUBLIC PlaceEditDialog : public ModalDialog -{ -private : - - Edit* m_pEDServerName; - ListBox* m_pLBServerType; - boost::shared_ptr< DetailsContainer > m_pCurrentDetails; - - Edit* m_pEDUsername; - OKButton* m_pBTOk; - CancelButton* m_pBTCancel; - - PushButton* m_pBTDelete; - - /** Vector holding the details UI control for each server type. - - The elements in this vector need to match the order in the type listbox, e.g. - the m_aDetailsContainer[0] will be shown for the type corresponding to entry 0 - in the listbox. - */ - std::vector< boost::shared_ptr< DetailsContainer > > m_aDetailsContainers; - -public : - - PlaceEditDialog( Window* pParent); - PlaceEditDialog(Window* pParent, const boost::shared_ptr &pPlace ); - ~PlaceEditDialog(); - - // Returns a place instance with given information - boost::shared_ptr GetPlace(); - - OUString GetServerName() { return m_pEDServerName->GetText(); } - OUString GetServerUrl(); - -private: - - void InitDetails( ); - - DECL_LINK ( OKHdl, Button * ); - DECL_LINK ( DelHdl, Button * ); - DECL_LINK ( EditHdl, void * ); - DECL_LINK ( SelectTypeHdl, void * ); - DECL_LINK ( EditUsernameHdl, void * ); - -}; - -#endif //_PLACEEDITDIALOG_HXX -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/QueryFolderName.hxx b/svtools/inc/svtools/QueryFolderName.hxx deleted file mode 100644 index b3ff30d24b81..000000000000 --- a/svtools/inc/svtools/QueryFolderName.hxx +++ /dev/null @@ -1,57 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef SVT_QUERYFOLDER_HXX -#define SVT_QUERYFOLDER_HXX - -#include -#include -#include -#include - -//------------------------------------------------------------------------- -namespace svtools { - -//------------------------------------------------------------------------- -// QueryFolderNameDialog -//------------------------------------------------------------------------- - -class QueryFolderNameDialog : public ModalDialog -{ -private: - FixedText aNameText; - Edit aNameEdit; - FixedLine aNameLine; - OKButton aOKBtn; - CancelButton aCancelBtn; - - DECL_LINK( OKHdl, void * ); - DECL_LINK( NameHdl, void * ); - -public: - QueryFolderNameDialog( Window* _pParent, - const String& rTitle, - const String& rDefaultText, - String* pGroupName = NULL ); - String GetName() const { return aNameEdit.GetText(); } -}; - -} -#endif // SVT_QUERYFOLDER_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/ServerDetailsControls.hxx b/svtools/inc/svtools/ServerDetailsControls.hxx deleted file mode 100644 index f75b8aa87e2a..000000000000 --- a/svtools/inc/svtools/ServerDetailsControls.hxx +++ /dev/null @@ -1,148 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - */ -#ifndef _SERVERDETAILSCONTROLS_HXX -#define _SERVERDETAILSCONTROLS_HXX - -#include - -#include - -#include -#include -#include -#include -#include -#include -#include - -class DetailsContainer -{ - private: - Link m_aChangeHdl; - VclFrame* m_pFrame; - - public: - DetailsContainer( VclBuilderContainer* pBuilder, const OString& rFrame ); - virtual ~DetailsContainer( ); - - void setChangeHdl( const Link& rLink ) { m_aChangeHdl = rLink; } - - virtual void show( bool bShow = true ); - virtual INetURLObject getUrl( ); - - /** Try to split the URL in the controls of that container. - - \param sUrl the URL to split - \return true if the split worked, false otherwise. - */ - virtual bool setUrl( const INetURLObject& rUrl ); - - virtual void setUsername( const OUString& /*rUsername*/ ) { }; - - protected: - void notifyChange( ); - DECL_LINK ( ValueChangeHdl, void * ); -}; - -class HostDetailsContainer : public DetailsContainer -{ - private: - sal_uInt16 m_nDefaultPort; - OUString m_sScheme; - - protected: - Edit* m_pEDHost; - NumericField* m_pEDPort; - Edit* m_pEDPath; - - public: - HostDetailsContainer( VclBuilderContainer* pBuilder, sal_uInt16 nPort, OUString sScheme ); - virtual ~HostDetailsContainer( ) { }; - - virtual void show( bool bShow = true ); - virtual INetURLObject getUrl( ); - virtual bool setUrl( const INetURLObject& rUrl ); - - protected: - void setScheme( OUString sScheme ) { m_sScheme = sScheme; } - - /** Verifies that the schement split from the URL can be handled by - the container and set the proper controls accordingly if needed. - */ - virtual bool verifyScheme( const OUString& rScheme ); -}; - -class DavDetailsContainer : public HostDetailsContainer -{ - private: - CheckBox* m_pCBDavs; - - public: - DavDetailsContainer( VclBuilderContainer* pBuilder ); - ~DavDetailsContainer( ) { }; - - virtual void show( bool bShow = true ); - - protected: - virtual bool verifyScheme( const OUString& rScheme ); - - private: - DECL_LINK ( ToggledDavsHdl, CheckBox * pCheckBox ); -}; - -class SmbDetailsContainer : public DetailsContainer -{ - private: - Edit* m_pEDHost; - Edit* m_pEDShare; - Edit* m_pEDPath; - - public: - SmbDetailsContainer( VclBuilderContainer* pBuilder ); - ~SmbDetailsContainer( ) { }; - - virtual INetURLObject getUrl( ); - virtual bool setUrl( const INetURLObject& rUrl ); -}; - -class CmisDetailsContainer : public DetailsContainer -{ - private: - OUString m_sUsername; - com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > m_xCmdEnv; - std::vector< OUString > m_aServerTypesURLs; - std::vector< OUString > m_aRepoIds; - OUString m_sRepoId; - - Edit* m_pEDBinding; - ListBox* m_pLBRepository; - Button* m_pBTRepoRefresh; - ListBox* m_pLBServerType; - Edit* m_pEDPath; - - public: - CmisDetailsContainer( VclBuilderContainer* pBuilder ); - ~CmisDetailsContainer( ) { }; - - virtual INetURLObject getUrl( ); - virtual bool setUrl( const INetURLObject& rUrl ); - virtual void setUsername( const OUString& rUsername ); - - private: - void selectRepository( ); - DECL_LINK ( SelectServerTypeHdl, void * ); - DECL_LINK ( RefreshReposHdl, void * ); - DECL_LINK ( SelectRepoHdl, void * ); -}; - -#endif -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/acceleratorexecute.hxx b/svtools/inc/svtools/acceleratorexecute.hxx deleted file mode 100644 index 0b3b473449b7..000000000000 --- a/svtools/inc/svtools/acceleratorexecute.hxx +++ /dev/null @@ -1,246 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_SVTOOLS_ACCELERATOREXECUTE_HXX -#define INCLUDED_SVTOOLS_ACCELERATOREXECUTE_HXX - -#include "svtools/svtdllapi.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -namespace svt -{ - - -struct TMutexInit -{ - ::osl::Mutex m_aLock; -}; - -//=============================================== -/** - @descr implements a helper, which can be used to - convert vcl key codes into awt key codes ... - and reverse. - - Further such key code can be triggered. - Doing so different accelerator - configurations are merged together; a suitable - command registered for the given key code is searched - and will be dispatched. - - @attention - - Because exceution of an accelerator command can be dangerous - (in case it force an office shutdown for key "ALT+F4"!) - all internal dispatches are done asynchronous. - Menas that the trigger call doesnt wait till the dispatch - is finished. You can call very often. All requests will be - queued internal and dispatched ASAP. - - Of course this queue will be stopped if the environment - will be destructed ... - */ -class SVT_DLLPUBLIC AcceleratorExecute : private TMutexInit -{ - //------------------------------------------- - // const, types - private: - - /** @deprecated - replaced by internal class AsyncAccelExec ... - remove this resource here if we go forwards to next major */ - typedef ::std::vector< ::std::pair< css::util::URL, css::uno::Reference< css::frame::XDispatch > > > TCommandQueue; - - //------------------------------------------- - // member - private: - - /** TODO document me */ - css::uno::Reference< css::uno::XComponentContext > m_xContext; - - /** TODO document me */ - css::uno::Reference< css::util::XURLTransformer > m_xURLParser; - - /** TODO document me */ - css::uno::Reference< css::frame::XDispatchProvider > m_xDispatcher; - - /** TODO document me */ - css::uno::Reference< css::ui::XAcceleratorConfiguration > m_xGlobalCfg; - css::uno::Reference< css::ui::XAcceleratorConfiguration > m_xModuleCfg; - css::uno::Reference< css::ui::XAcceleratorConfiguration > m_xDocCfg; - - /** @deprecated - replaced by internal class AsyncAccelExec ... - remove this resource here if we go forwards to next major */ - TCommandQueue m_lCommandQueue; - - /** @deprecated - replaced by internal class AsyncAccelExec ... - remove this resource here if we go forwards to next major */ - ::vcl::EventPoster m_aAsyncCallback; - - //------------------------------------------- - // interface - public: - - //--------------------------------------- - /** @short factory method to create new accelerator - helper instance. - - @descr Such helper instance must be initialized at first. - So it can know its environment (global/module or - document specific). - - Afterwards it can be used to execute incoming - accelerator requests. - - The "end of life" of such helper can be reached as follow: - - - delete the object - => If it stands currently in its execute method, they will - be finished. All further queued requests will be removed - and further not executed! - - - "let it stay alone" - => All currently queued events will be finished. The - helper kills itself afterwards. A shutdown of the - environment will be recognized ... The helper stop its - work immediately then! - */ - static AcceleratorExecute* createAcceleratorHelper(); - - //--------------------------------------- - /** @short fight against inlining ... */ - virtual ~AcceleratorExecute(); - - //--------------------------------------- - /** @short init this instance. - - @descr It must be called as first method after creation. - And further it can be called more then once ... - but at least its should be used one times only. - Otherwhise nobody can say, which asynchronous - executions will be used inside the old and which one - will be used inside the new environment. - - @param rxContext - reference to an uno service manager. - - @param xEnv - if it points to a valid frame it will be used - to execute the dispatch there. Further the frame - is used to locate the right module configuration - and use it merged together with the document and - the global configuration. - - If this parameter is set to NULL, the global configuration - is used only. Further the global Desktop instance is - used for dispatch. - */ - virtual void init(const css::uno::Reference< css::uno::XComponentContext >& rxContext, - const css::uno::Reference< css::frame::XFrame >& xEnv ); - - //--------------------------------------- - /** @short trigger this accelerator. - - @descr The internal configuartions are used to find - as suitable command for this key code. - This command will be queued and executed later - asynchronous. - - @param aKey - specify the accelerator for execute. - - @return [sal_Bool] - sal_True if this key is configured and match to a command. - Attention: This state does not mean the success state - of the corresponding execute. Because its done asynchronous! - */ - virtual sal_Bool execute(const KeyCode& aKey); - virtual sal_Bool execute(const css::awt::KeyEvent& aKey); - - /** search the command for the given key event. - * - * @param aKey The key event - * @return The command or an empty string if the key event could not be found. - */ - OUString findCommand(const ::com::sun::star::awt::KeyEvent& aKey); - //--------------------------------------- - /** TODO document me */ - static css::awt::KeyEvent st_VCLKey2AWTKey(const KeyCode& aKey); - static KeyCode st_AWTKey2VCLKey(const css::awt::KeyEvent& aKey); - - //--------------------------------------- - /** TODO document me */ - static css::uno::Reference< css::ui::XAcceleratorConfiguration > st_openGlobalConfig(const css::uno::Reference< css::uno::XComponentContext >& rxContext); - - //--------------------------------------- - /** TODO document me */ - static css::uno::Reference< css::ui::XAcceleratorConfiguration > st_openModuleConfig(const css::uno::Reference< css::uno::XComponentContext >& rxContext , - const css::uno::Reference< css::frame::XFrame >& xFrame); - - //--------------------------------------- - /** TODO document me */ - static css::uno::Reference< css::ui::XAcceleratorConfiguration > st_openDocConfig(const css::uno::Reference< css::frame::XModel >& xModel); - - //------------------------------------------- - // internal - private: - - //--------------------------------------- - /** @short allow creation of instances of this class - by using our factory only! - */ - SVT_DLLPRIVATE AcceleratorExecute(); - - AcceleratorExecute(const AcceleratorExecute& rCopy); - void operator=(const AcceleratorExecute&) {}; - //--------------------------------------- - /** TODO document me */ - SVT_DLLPRIVATE OUString impl_ts_findCommand(const css::awt::KeyEvent& aKey); - - //--------------------------------------- - /** TODO document me */ - SVT_DLLPRIVATE css::uno::Reference< css::util::XURLTransformer > impl_ts_getURLParser(); - - //--------------------------------------- - /** @deprecated - replaced by internal class AsyncAccelExec ... - remove this resource here if we go forwards to next major */ - DECL_DLLPRIVATE_LINK(impl_ts_asyncCallback, void*); -}; - -} // namespace svt - -#endif // INCLUDED_SVTOOLS_ACCELERATOREXECUTE_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/accessibilityoptions.hxx b/svtools/inc/svtools/accessibilityoptions.hxx deleted file mode 100644 index 4c168143aff9..000000000000 --- a/svtools/inc/svtools/accessibilityoptions.hxx +++ /dev/null @@ -1,72 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX -#define INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include - -class SvtAccessibilityOptions_Impl; - -class SVT_DLLPUBLIC SvtAccessibilityOptions: - public utl::detail::Options, private SfxListener -{ -private: - static SvtAccessibilityOptions_Impl* sm_pSingleImplConfig; - static sal_Int32 sm_nAccessibilityRefCount; - -public: - SvtAccessibilityOptions(); - virtual ~SvtAccessibilityOptions(); - - // get & set config entries - sal_Bool GetIsForPagePreviews() const; - sal_Bool GetIsHelpTipsDisappear() const; - sal_Bool GetIsAllowAnimatedGraphics() const; - sal_Bool GetIsAllowAnimatedText() const; - sal_Bool GetIsAutomaticFontColor() const; - sal_Bool GetIsSystemFont() const; - sal_Int16 GetHelpTipSeconds() const; - sal_Bool IsSelectionInReadonly() const; - sal_Bool GetAutoDetectSystemHC() const; - - void SetIsForPagePreviews(sal_Bool bSet); - void SetIsHelpTipsDisappear(sal_Bool bSet); - void SetIsAllowAnimatedGraphics(sal_Bool bSet); - void SetIsAllowAnimatedText(sal_Bool bSet); - void SetIsAutomaticFontColor(sal_Bool bSet); - void SetIsSystemFont(sal_Bool bSet); - void SetHelpTipSeconds(sal_Int16 nSet); - void SetSelectionInReadonly(sal_Bool bSet); - void SetAutoDetectSystemHC(sal_Bool bSet); - - sal_Bool IsModified() const; - void Commit(); - - //SfxListener: - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); - void SetVCLSettings(); -}; - -#endif // #ifndef INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/accessiblefactory.hxx b/svtools/inc/svtools/accessiblefactory.hxx deleted file mode 100644 index d30af055c91d..000000000000 --- a/svtools/inc/svtools/accessiblefactory.hxx +++ /dev/null @@ -1,184 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef SVTOOLS_ACCESSIBLE_FACTORY_HXX -#define SVTOOLS_ACCESSIBLE_FACTORY_HXX - -#include "AccessibleBrowseBoxObjType.hxx" -#include "accessibletableprovider.hxx" - -#include - -#include - -namespace com { namespace sun { namespace star { - namespace accessibility { - class XAccessible; - class XAccessibleContext; - } - namespace awt { - class XWindow; - } -} } } -class SvHeaderTabListBox; -class SvtIconChoiceCtrl; -class TabBar; -class SvTreeListBox; -class VCLXWindow; -class TextEngine; -class TextView; - -//........................................................................ -namespace svt -{ -//........................................................................ - - class ToolPanelDeck; - class IToolPanelDeck; - class PanelTabBar; - namespace table - { - class IAccessibleTable; - class IAccessibleTableControl; - } - - /** a function which is able to create a factory for the standard Accessible/Context - components needed for standard toolkit controls - - The returned pointer denotes an instance of the IAccessibleFactory, which has been acquired - once. The caller is responsible for holding this reference as long as it needs the - factory, and release it afterwards. - */ - typedef void* (SAL_CALL * GetSvtAccessibilityComponentFactory)( ); - - //================================================================ - //= IAccessibleFactory - //================================================================ - class IAccessibleFactory : public ::rtl::IReference - { - public: - virtual IAccessibleTabListBox* - createAccessibleTabListBox( - const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxParent, - SvHeaderTabListBox& rBox - ) const = 0; - - virtual IAccessibleBrowseBox* - createAccessibleBrowseBox( - const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxParent, - IAccessibleTableProvider& _rBrowseBox - ) const = 0; - virtual table::IAccessibleTableControl* - createAccessibleTableControl( - const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxParent, - table::IAccessibleTable& _rTable - ) const = 0; - - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > - createAccessibleIconChoiceCtrl( - SvtIconChoiceCtrl& _rIconCtrl, - const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _xParent - ) const = 0; - - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > - createAccessibleTabBar( - TabBar& _rTabBar - ) const = 0; - - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > - createAccessibleTextWindowContext( - VCLXWindow* pVclXWindow, TextEngine& rEngine, TextView& rView, bool bCompoundControlChild - ) const = 0; - - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > - createAccessibleTreeListBox( - SvTreeListBox& _rListBox, - const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _xParent - ) const = 0; - - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > - createAccessibleBrowseBoxHeaderBar( - const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxParent, - IAccessibleTableProvider& _rOwningTable, - AccessibleBrowseBoxObjType _eObjType - ) const = 0; - - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > - createAccessibleBrowseBoxTableCell( - const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxParent, - IAccessibleTableProvider& _rBrowseBox, - const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& _xFocusWindow, - sal_Int32 _nRowId, - sal_uInt16 _nColId, - sal_Int32 _nOffset - ) const = 0; - - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > - createAccessibleBrowseBoxHeaderCell( - sal_Int32 _nColumnRowId, - const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxParent, - IAccessibleTableProvider& _rBrowseBox, - const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& _xFocusWindow, - AccessibleBrowseBoxObjType _eObjType - ) const = 0; - - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > - createAccessibleCheckBoxCell( - const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxParent, - IAccessibleTableProvider& _rBrowseBox, - const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& _xFocusWindow, - sal_Int32 _nRowPos, - sal_uInt16 _nColPos, - const TriState& _eState, - sal_Bool _bIsTriState - ) const = 0; - - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > - createEditBrowseBoxTableCellAccess( - const ::com::sun::star::uno::Reference< com::sun::star::accessibility::XAccessible >& _rxParent, - const ::com::sun::star::uno::Reference< com::sun::star::accessibility::XAccessible >& _rxControlAccessible, - const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& _rxFocusWindow, - IAccessibleTableProvider& _rBrowseBox, - sal_Int32 _nRowPos, - sal_uInt16 _nColPos - ) const = 0; - - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > - createAccessibleToolPanelDeck( - const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& i_rAccessibleParent, - ::svt::ToolPanelDeck& i_rPanelDeck - ) = 0; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > - createAccessibleToolPanelTabBar( - const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& i_rAccessibleParent, - ::svt::IToolPanelDeck& i_rPanelDeck, - ::svt::PanelTabBar& i_rTabBar - ) = 0; - - protected: - ~IAccessibleFactory() {} - }; - -//........................................................................ -} // namespace svt -//........................................................................ - -#endif // SVTOOLS_ACCESSIBLE_FACTORY_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/accessibletable.hxx b/svtools/inc/svtools/accessibletable.hxx deleted file mode 100644 index 7b314df4f4bf..000000000000 --- a/svtools/inc/svtools/accessibletable.hxx +++ /dev/null @@ -1,203 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_ACCESSIBLETABLE_HXX -#define _SVTOOLS_ACCESSIBLETABLE_HXX - -#include -#include -#include - - -namespace svt{ namespace table -{ - -typedef sal_Int32 RowPos; - - -enum AccessibleTableType -{ - /** Child index of the column header bar (first row). */ - TCINDEX_COLUMNHEADERBAR = 0, - /** Child index of the row header bar ("handle column"). */ - TCINDEX_ROWHEADERBAR = 1, - /** Child index of the data table. */ - TCINDEX_TABLE = 2 -}; - -enum AccessibleTableControlObjType -{ - TCTYPE_GRIDCONTROL, /// The GridControl itself. - TCTYPE_TABLE, /// The data table. - TCTYPE_ROWHEADERBAR, /// The row header bar. - TCTYPE_COLUMNHEADERBAR, /// The horizontal column header bar. - TCTYPE_TABLECELL, /// A cell of the data table. - TCTYPE_ROWHEADERCELL, /// A cell of the row header bar. - TCTYPE_COLUMNHEADERCELL, /// A cell of the column header bar. -}; - - -/** This abstract class provides methods to implement an accessible table object. -*/ -class IAccessibleTable -{ -public: - /** @return The position of the current row. */ - virtual sal_Int32 GetCurrentRow() const = 0; - /** @return The position of the current column. */ - virtual sal_Int32 GetCurrentColumn() const = 0; - /** Creates and returns the accessible object of the whole GridControl. */ - virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible()= 0; - virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleControl( sal_Int32 _nIndex )= 0; - virtual OUString GetAccessibleObjectName(AccessibleTableControlObjType eObjType, sal_Int32 _nRow, sal_Int32 _nCol) const= 0; - virtual sal_Bool GoToCell( sal_Int32 _nColumnPos, sal_Int32 _nRow )= 0; - virtual sal_Bool HasColHeader() = 0; - virtual sal_Bool HasRowHeader() = 0; - - /** return the description of the specified object. - @param eObjType - The type to ask for - @param _nPosition - The position of a tablecell (index position), header bar colum/row cell - @return - The description of the specified object. - */ - virtual OUString GetAccessibleObjectDescription(AccessibleTableControlObjType eObjType, sal_Int32 _nPosition = -1) const= 0; - - /** Fills the StateSet with all states (except DEFUNC and SHOWING, done by - the accessible object), depending on the specified object type. */ - virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& rStateSet, - AccessibleTableControlObjType eObjType ) const= 0; - - // Window - virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const = 0; - virtual void GrabFocus()= 0; - virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible( sal_Bool bCreate = sal_True )= 0; - virtual Window* GetAccessibleParentWindow() const= 0; - virtual Window* GetWindowInstance()= 0; - virtual sal_Int32 GetAccessibleControlCount() const = 0; - virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint )= 0; - virtual long GetRowCount() const= 0; - virtual long GetColumnCount() const= 0; - virtual sal_Bool HasRowHeader() const= 0; - virtual sal_Bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_Int32& _rnColPos, const Point& _rPoint )= 0; - virtual Rectangle calcHeaderRect( sal_Bool _bIsColumnBar, sal_Bool _bOnScreen = sal_True ) = 0; - virtual Rectangle calcHeaderCellRect( sal_Bool _bColHeader, sal_Int32 _nPos ) = 0; - virtual Rectangle calcTableRect( sal_Bool _bOnScreen = sal_True ) = 0; - virtual Rectangle calcCellRect( sal_Int32 _nRowPos, sal_Int32 _nColPos ) = 0; - virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex)= 0; - virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint)= 0; - virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const= 0; - virtual OUString GetRowDescription( sal_Int32 _nRow ) const = 0; - virtual OUString GetRowName(sal_Int32 _nIndex) const = 0; - virtual OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const = 0; - virtual OUString GetColumnName( sal_Int32 _nIndex ) const = 0; - virtual css::uno::Any GetCellContent( sal_Int32 _nRowPos, sal_Int32 _nColPos) const = 0; - virtual OUString GetAccessibleCellText(sal_Int32 _nRowPos, sal_Int32 _nColPos) const = 0; - - virtual sal_Int32 GetSelectedRowCount() const = 0; - virtual sal_Int32 GetSelectedRowIndex( sal_Int32 const i_selectionIndex ) const = 0; - virtual bool IsRowSelected( sal_Int32 const i_rowIndex ) const = 0; - virtual void SelectRow( sal_Int32 const i_rowIndex, bool const i_select ) = 0; - virtual void SelectAllRows( bool const i_select ) = 0; - -protected: - ~IAccessibleTable() {} -}; - - -/** interface for an implementation of a table control's Accesible component -*/ -class IAccessibleTableControl -{ -public: - /** returns the XAccessible object itself - - The reference returned here can be used to control the life time of the - IAccessibleTableImplementation object. - - The returned reference is guaranteed to not be . - */ - virtual css::uno::Reference< css::accessibility::XAccessible > - getMyself() = 0; - - /** disposes the accessible implementation, so that it becomes defunc - */ - virtual void dispose() = 0; - - /** checks whether the accessible implementation, and its context, are still alive - @return , if the object is not disposed or disposing. - */ - virtual sal_Bool isAlive() const = 0; - - /** returns the accessible object for the row or the column header bar - */ - virtual css::uno::Reference< css::accessibility::XAccessible > - getTableHeader( ::svt::table::AccessibleTableControlObjType _eObjType ) = 0; - - /** returns the accessible object for the table representation - */ - virtual css::uno::Reference< css::accessibility::XAccessible > - getTable() = 0; - - /** commits the event at all listeners of the cell - @param nEventId - the event id - @param rNewValue - the new value - @param rOldValue - the old value - */ - virtual void commitCellEvent( - sal_Int16 nEventId, - const css::uno::Any& rNewValue, - const css::uno::Any& rOldValue - ) = 0; - /** commits the event at all listeners of the table - @param nEventId - the event id - @param rNewValue - the new value - @param rOldValue - the old value - */ - virtual void commitTableEvent( - sal_Int16 nEventId, - const css::uno::Any& rNewValue, - const css::uno::Any& rOldValue - ) = 0; - - ///** Commits an event to all listeners. */ - virtual void commitEvent( - sal_Int16 nEventId, - const css::uno::Any& rNewValue, - const css::uno::Any& rOldValue - ) = 0; - -protected: - ~IAccessibleTableControl() {} -}; - - -} // namespace table -} // namespace svt - -#endif // _SVTOOLS_ACCESSIBLETABLE_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/accessibletableprovider.hxx b/svtools/inc/svtools/accessibletableprovider.hxx deleted file mode 100644 index 775ac23c8ab2..000000000000 --- a/svtools/inc/svtools/accessibletableprovider.hxx +++ /dev/null @@ -1,241 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_ACCESSIBLETABLEPROVIDER_HXX -#define _SVTOOLS_ACCESSIBLETABLEPROVIDER_HXX - -#include -#include -#include -#include - - -namespace svt -{ - -#define OFFSET_DEFAULT ((sal_Int32)-1) -#define OFFSET_NONE ((sal_Int32)0) - -enum AccessibleTableChildIndex -{ - /** Child index of the column header bar (first row). Exists always. */ - BBINDEX_COLUMNHEADERBAR = 0, - /** Child index of the row header bar ("handle column"). Exists always. */ - BBINDEX_ROWHEADERBAR = 1, - /** Child index of the data table. */ - BBINDEX_TABLE = 2, - /** Child index of the first additional control. */ - BBINDEX_FIRSTCONTROL = 3 -}; - - -/** This abstract class provides methods to implement an accessible table object. -*/ -class IAccessibleTableProvider -{ -public: - /** @return The count of the rows. */ - virtual long GetRowCount() const = 0; - /** @return The count of the columns. */ - virtual sal_uInt16 GetColumnCount() const = 0; - - /** @return The position of the current row. */ - virtual sal_Int32 GetCurrRow() const = 0; - /** @return The position of the current column. */ - virtual sal_uInt16 GetCurrColumn() const = 0; - - /** @return The description of a row. - @param _nRow The row which description is in demand. */ - virtual OUString GetRowDescription( sal_Int32 _nRow ) const = 0; - /** @return The description of a column. - @param _nColumn The column which description is in demand. */ - virtual OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const = 0; - - /** @return , if the object has a row header. */ - virtual sal_Bool HasRowHeader() const = 0; //GetColumnId - /** @return , if the object can focus a cell. */ - virtual sal_Bool IsCellFocusable() const = 0; - virtual sal_Bool GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) = 0; - - virtual void SetNoSelection() = 0; - virtual void SelectAll() = 0; - virtual void SelectRow( long _nRow, sal_Bool _bSelect = sal_True, sal_Bool bExpand = sal_True ) = 0; - virtual void SelectColumn( sal_uInt16 _nColumnPos, sal_Bool _bSelect = sal_True ) = 0; - virtual sal_Int32 GetSelectedRowCount() const = 0; - virtual sal_Int32 GetSelectedColumnCount() const = 0; - /** @return , if the row is selected. */ - virtual bool IsRowSelected( long _nRow ) const = 0; - virtual sal_Bool IsColumnSelected( long _nColumnPos ) const = 0; - virtual void GetAllSelectedRows( css::uno::Sequence< sal_Int32 >& _rRows ) const = 0; - virtual void GetAllSelectedColumns( css::uno::Sequence< sal_Int32 >& _rColumns ) const = 0; - - /** @return , if the cell is visible. */ - virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const = 0; - virtual String GetAccessibleCellText( long _nRow, sal_uInt16 _nColumnPos ) const = 0; - - virtual Rectangle calcHeaderRect( sal_Bool _bIsColumnBar, sal_Bool _bOnScreen = sal_True ) = 0; - virtual Rectangle calcTableRect( sal_Bool _bOnScreen = sal_True ) = 0; - virtual Rectangle GetFieldRectPixelAbs( sal_Int32 _nRow, sal_uInt16 _nColumnPos, sal_Bool _bIsHeader, sal_Bool _bOnScreen = sal_True ) = 0; - - virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleCell( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) = 0; - virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleRowHeader( sal_Int32 _nRow ) = 0; - virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleColumnHeader( sal_uInt16 _nColumnPos ) = 0; - - virtual sal_Int32 GetAccessibleControlCount() const = 0; - virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleControl( sal_Int32 _nIndex ) = 0; - virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint ) = 0; - - virtual sal_Bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_uInt16& _rnColPos, const Point& _rPoint ) = 0; - virtual sal_Bool ConvertPointToRowHeader( sal_Int32& _rnRow, const Point& _rPoint ) = 0; - virtual sal_Bool ConvertPointToColumnHeader( sal_uInt16& _rnColPos, const Point& _rPoint ) = 0; - - virtual OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const = 0; - virtual OUString GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const = 0; - - virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& _rStateSet, ::svt::AccessibleBrowseBoxObjType _eType ) const = 0; - virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const = 0; - virtual void GrabTableFocus() = 0; - - // OutputDevice - virtual sal_Bool GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector ) = 0; - - // Window - virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const = 0; - virtual void GrabFocus() = 0; - virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible( sal_Bool bCreate = sal_True ) = 0; - virtual Window* GetAccessibleParentWindow() const = 0; - virtual Window* GetWindowInstance() = 0; - - virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex) = 0; - virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint) = 0; - -protected: - ~IAccessibleTableProvider() {} -}; - - -/** interface for an implementation of a table control's Accesible component -*/ -class IAccessibleTabListBox -{ -public: - /** returns the XAccessible object itself - - The reference returned here can be used to control the life time of the - IAccessibleTableImplementation object. - - The returned reference is guaranteed to not be . - */ - virtual css::uno::Reference< css::accessibility::XAccessible > - getMyself() = 0; - - virtual css::uno::Reference< css::accessibility::XAccessible > - SAL_CALL getAccessibleChild( sal_Int32 nChildIndex ) - throw ( css::lang::IndexOutOfBoundsException, css::uno::RuntimeException ) = 0; - - /** returns the accessible object for the row or the column header bar - */ - virtual css::uno::Reference< css::accessibility::XAccessible > - getHeaderBar( ::svt::AccessibleBrowseBoxObjType _eObjType ) = 0; - -protected: - ~IAccessibleTabListBox() {} -}; - -/** interface for an implementation of a browse box's Accesible component -*/ -class IAccessibleBrowseBox -{ -public: - /** returns the XAccessible object itself - - The reference returned here can be used to control the life time of the - IAccessibleTableImplementation object. - - The returned reference is guaranteed to not be . - */ - virtual css::uno::Reference< css::accessibility::XAccessible > - getMyself() = 0; - - /** disposes the accessible implementation, so that it becomes defunc - */ - virtual void dispose() = 0; - - /** checks whether the accessible implementation, and its context, are still alive - @return , if the object is not disposed or disposing. - */ - virtual sal_Bool isAlive() const = 0; - - /** returns the accessible object for the row or the column header bar - */ - virtual css::uno::Reference< css::accessibility::XAccessible > - getHeaderBar( ::svt::AccessibleBrowseBoxObjType _eObjType ) = 0; - - /** returns the accessible object for the table representation - */ - virtual css::uno::Reference< css::accessibility::XAccessible > - getTable() = 0; - - /** commits the event at all listeners of the column/row header bar - @param nEventId - the event id - @param rNewValue - the new value - @param rOldValue - the old value - */ - virtual void commitHeaderBarEvent( - sal_Int16 nEventId, - const css::uno::Any& rNewValue, - const css::uno::Any& rOldValue, - sal_Bool _bColumnHeaderBar - ) = 0; - - /** commits the event at all listeners of the table - @param nEventId - the event id - @param rNewValue - the new value - @param rOldValue - the old value - */ - virtual void commitTableEvent( - sal_Int16 nEventId, - const css::uno::Any& rNewValue, - const css::uno::Any& rOldValue - ) = 0; - - /** Commits an event to all listeners. */ - virtual void commitEvent( - sal_Int16 nEventId, - const css::uno::Any& rNewValue, - const css::uno::Any& rOldValue - ) = 0; - -protected: - ~IAccessibleBrowseBox() {} -}; - - -} // namespace svt - - -#endif // _SVTOOLS_ACCESSIBLETABLEPROVIDER_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/addresstemplate.hxx b/svtools/inc/svtools/addresstemplate.hxx deleted file mode 100644 index d7406235b9a6..000000000000 --- a/svtools/inc/svtools/addresstemplate.hxx +++ /dev/null @@ -1,144 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVT_ADDRESSTEMPLATE_HXX_ -#define _SVT_ADDRESSTEMPLATE_HXX_ - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -// ....................................................................... -namespace svt -{ -// ....................................................................... - - // =================================================================== - // = AddressBookSourceDialog - // =================================================================== - struct AddressBookSourceDialogData; - class SVT_DLLPUBLIC AddressBookSourceDialog : public ModalDialog - { - protected: - // Controls - ComboBox* m_pDatasource; - PushButton* m_pAdministrateDatasources; - ComboBox* m_pTable; - ScrollBar* m_pFieldScroller; - - // string to display for "no selection" - const String m_sNoFieldSelection; - - /// the DatabaseContext for selecting data sources - ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XDatabaseContext > - m_xDatabaseContext; - // the ORB for creating objects - ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > - m_xORB; - ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > - m_xCurrentDatasourceTables; - - AddressBookSourceDialogData* - m_pImpl; - - public: - AddressBookSourceDialog( Window* _pParent, - const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB ); - - /** if you use this ctor, the dialog -
  • will not store it's data in the configuration (nor initially retrieve it from there)
  • -
  • will not allow to change the data source name
  • -
  • will not allow to change the table name
  • -
  • will not allow to call the data source administration dialog
  • -
- - @param _rxORB - a service factory to use for various UNO related needs - @param _rxTransientDS - the data source to obtain connections from - @param _rDataSourceName - the to-be name of _rxTransientDS. This is only for displaying this - name to the user, since the dialog completely works on _rxTransientDS, - and doesn't allow to change this. - @param _rTable - the table name to display. It must refer to a valid table, relative to a connection - obtained from _rxTransientDS - */ - AddressBookSourceDialog( Window* _pParent, - const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB, - const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource >& _rxTransientDS, - const OUString& _rDataSourceName, - const OUString& _rTable, - const ::com::sun::star::uno::Sequence< ::com::sun::star::util::AliasProgrammaticPair >& _rMapping - ); - - ~AddressBookSourceDialog(); - - // to be used if the object was constructed for editing a field mapping only - void getFieldMapping( - ::com::sun::star::uno::Sequence< ::com::sun::star::util::AliasProgrammaticPair >& _rMapping) const; - - protected: - void implConstruct(); - - // Window overridables - virtual long PreNotify( NotifyEvent& _rNEvt ); - - // implementations - void implScrollFields(sal_Int32 _nPos, sal_Bool _bAdjustFocus, sal_Bool _bAdjustScrollbar); - void implSelectField(ListBox* _pBox, const String& _rText); - - void initalizeListBox(ListBox* _pList); - void resetTables(); - void resetFields(); - - // fill in the data sources listbox - void initializeDatasources(); - - // initialize the dialog from the configuration data - void loadConfiguration(); - - DECL_LINK(OnFieldScroll, ScrollBar*); - DECL_LINK(OnFieldSelect, ListBox*); - DECL_LINK(OnAdministrateDatasources, void*); - DECL_LINK(OnComboGetFocus, ComboBox*); - DECL_LINK(OnComboLoseFocus, ComboBox*); - DECL_LINK(OnComboSelect, ComboBox*); - DECL_LINK(OnOkClicked, void*); - DECL_LINK(OnDelayedInitialize, void*); - }; - - -// ....................................................................... -} // namespace svt -// ....................................................................... - -#endif // _SVT_ADDRESSTEMPLATE_HXX_ - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/apearcfg.hxx b/svtools/inc/svtools/apearcfg.hxx deleted file mode 100644 index fdfb4ef0f671..000000000000 --- a/svtools/inc/svtools/apearcfg.hxx +++ /dev/null @@ -1,97 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _SVT_APEARCFG_HXX -#define _SVT_APEARCFG_HXX - -#include "svtools/svtdllapi.h" -#include "tools/solar.h" -#include - -class Application; - -typedef enum { - SnapToButton = 0, - SnapToMiddle, - NoSnap -} SnapType; - -typedef enum { // MUST match the order chosen in ListBox LB_DRAG_MODE in optgdlg.src - DragFullWindow, - DragFrame, - DragSystemDep -} DragMode; - - -class SVT_DLLPUBLIC SvtTabAppearanceCfg : public utl::ConfigItem -{ - short nDragMode ; - short nScaleFactor ; - short nSnapMode ; - short nMiddleMouse; -#if defined( UNX ) - short nAAMinPixelHeight ; -#endif - - sal_Bool bMenuMouseFollow ; -#if defined( UNX ) - sal_Bool bFontAntialiasing ; -#endif - - static sal_Bool bInitialized ; - - SVT_DLLPRIVATE const com::sun::star::uno::Sequence& GetPropertyNames(); - -public: - SvtTabAppearanceCfg( ); - ~SvtTabAppearanceCfg( ); - - virtual void Commit(); - virtual void Notify( const com::sun::star::uno::Sequence< OUString >& _rPropertyNames); - - sal_uInt16 GetDragMode () const { return nDragMode; } - - sal_uInt16 GetScaleFactor () const { return nScaleFactor; } - void SetScaleFactor ( sal_uInt16 nSet ); - - sal_uInt16 GetSnapMode () const { return nSnapMode; } - void SetSnapMode ( sal_uInt16 nSet ); - - sal_uInt16 GetMiddleMouseButton () const { return nMiddleMouse; } - void SetMiddleMouseButton ( sal_uInt16 nSet ); - - void SetApplicationDefaults ( Application* pApp ); - - void SetMenuMouseFollow(sal_Bool bSet) {bMenuMouseFollow = bSet; SetModified();} - sal_Bool IsMenuMouseFollow() const{return bMenuMouseFollow;} - -#if defined( UNX ) - void SetFontAntiAliasing( sal_Bool bSet ) { bFontAntialiasing = bSet; SetModified(); } - sal_Bool IsFontAntiAliasing() const { return bFontAntialiasing; } - - sal_uInt16 GetFontAntialiasingMinPixelHeight( ) const { return nAAMinPixelHeight; } - void SetFontAntialiasingMinPixelHeight( sal_uInt16 _nMinHeight ) { nAAMinPixelHeight = _nMinHeight; SetModified(); } -#endif - - static sal_Bool IsInitialized() { return bInitialized; } - static void SetInitialized() { bInitialized = sal_True; } -}; - -#endif // _OFA_APEARCFG_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/asynclink.hxx b/svtools/inc/svtools/asynclink.hxx deleted file mode 100644 index 9551c1478f6b..000000000000 --- a/svtools/inc/svtools/asynclink.hxx +++ /dev/null @@ -1,66 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef SVTOOLS_ASYNCLINK_HXX -#define SVTOOLS_ASYNCLINK_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include - -class Timer; - -namespace svtools { - -class SVT_DLLPUBLIC AsynchronLink -{ - Link _aLink; - sal_uLong _nEventId; - Timer* _pTimer; - sal_Bool _bInCall; - sal_Bool* _pDeleted; - void* _pArg; - ::osl::Mutex* _pMutex; - - DECL_DLLPRIVATE_STATIC_LINK( AsynchronLink, HandleCall, void* ); - SVT_DLLPRIVATE void Call_Impl( void* pArg ); - -public: - AsynchronLink( const Link& rLink ) : - _aLink( rLink ), _nEventId( 0 ), _pTimer( 0 ), _bInCall( sal_False ), - _pDeleted( 0 ), _pMutex( 0 ){} - AsynchronLink() : _nEventId( 0 ), _pTimer( 0 ), _bInCall( sal_False ), - _pDeleted( 0 ), _pMutex( 0 ){} - ~AsynchronLink(); - - void CreateMutex(); - void operator=( const Link& rLink ) { _aLink = rLink; } - void Call( void* pObj, sal_Bool bAllowDoubles = sal_False, - sal_Bool bUseTimer = sal_False ); - void ClearPendingCall( ); - sal_Bool IsSet() const { return _aLink.IsSet(); } - Link GetLink() const { return _aLink; } -}; - -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/bindablecontrolhelper.hxx b/svtools/inc/svtools/bindablecontrolhelper.hxx deleted file mode 100644 index 0fdea457d5f5..000000000000 --- a/svtools/inc/svtools/bindablecontrolhelper.hxx +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef SVTOOLS_INC_BINDABLECONTROL_HXX -#define SVTOOLS_INC_BINDABLECONTROL_HXX - -#include "svtools/svtdllapi.h" - -#include -//........................................................................ -namespace svt -{ -//........................................................................ - - //==================================================================== - //= GraphicAccess - //==================================================================== - /** helper class for obtaining streams (which also can be used with the ImageProducer) - from a resource - */ - class BindableControlHelper - { - private: - BindableControlHelper(); // never implemented - - public: - SVT_DLLPUBLIC static void ApplyListSourceAndBindableData( const com::sun::star::uno::Reference< com::sun::star::frame::XModel >& xModel, const com::sun::star::uno::Reference< com::sun::star::uno::XInterface >& rObj, const OUString& rsCtrlSource, const OUString& rsRowSource, sal_uInt16 nRefTab = 0 ); - }; - -//........................................................................ -} // namespace svt -//........................................................................ - -#endif // SVTOOLS_INC_BINDABLECONTROL_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/borderhelper.hxx b/svtools/inc/svtools/borderhelper.hxx deleted file mode 100644 index 77884bf2620a..000000000000 --- a/svtools/inc/svtools/borderhelper.hxx +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _BORDERHELPER_HXX -#define _BORDERHELPER_HXX - -#include "svtools/svtdllapi.h" - -#include -#include -#include -#include - -namespace svtools -{ - SVT_DLLPUBLIC basegfx::B2DPolyPolygon ApplyLineDashing( const basegfx::B2DPolygon& rPolygon, - sal_uInt16 nDashing, MapUnit eUnit ); - - SVT_DLLPUBLIC basegfx::B2DPolyPolygon ApplyLineDashing( const basegfx::B2DPolygon& rPolygon, - sal_uInt16 nDashing, MapUnit eUnit, double fScale ); - - SVT_DLLPUBLIC void DrawLine( OutputDevice& rDev, const basegfx::B2DPoint& rBeg, - const basegfx::B2DPoint& rEnd, sal_uInt32 nWidth, sal_uInt16 nDashing ); - - SVT_DLLPUBLIC void DrawLine( OutputDevice& rDev, const Point& rBeg, - const Point& rEnd, sal_uInt32 nWidth, sal_uInt16 nDashing ); -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/brwbox.hxx b/svtools/inc/svtools/brwbox.hxx deleted file mode 100644 index 128c57c699c2..000000000000 --- a/svtools/inc/svtools/brwbox.hxx +++ /dev/null @@ -1,831 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _SVX_BRWBOX_HXX -#define _SVX_BRWBOX_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include - -class BrowserColumn; -class BrowserDataWin; -class MultiSelection; -class BrowserHeader; - -typedef ::std::vector< BrowserColumn* > BrowserColumns; - -namespace svt { - class BrowseBoxImpl; - class IAccessibleFactory; -} -namespace utl { - class AccessibleStateSetHelper; -} - -// ------------------- -// - BrowseBox-Types - -// ------------------- - -#define BROWSER_INVALIDID SAL_MAX_UINT16 -#define BROWSER_ENDOFSELECTION (static_cast(SFX_ENDOFSELECTION)) - -typedef sal_uLong BrowserMode; - -#define BROWSER_COLUMNSELECTION 0x0001 -#define BROWSER_MULTISELECTION 0x0002 -#define BROWSER_THUMBDRAGGING 0x0004 -#define BROWSER_KEEPHIGHLIGHT 0x0008 -#define BROWSER_KEEPSELECTION BROWSER_KEEPHIGHLIGHT // old, don't use! -#define BROWSER_HLINES 0x0010 -#define BROWSER_VLINES 0x0020 -#define BROWSER_HLINESFULL BROWSER_HLINES // old, don't use! -#define BROWSER_VLINESFULL BROWSER_VLINES // old, don't use! -#define BROWSER_HLINESDOTS 0x0000 // old => don't use! -#define BROWSER_VLINESDOTS 0x0000 // old => don't use! - -#define BROWSER_HIDESELECT 0x0100 // old => don't use! -#define BROWSER_HIDECURSOR 0x0200 - -#define BROWSER_NO_HSCROLL 0x0400 -#define BROWSER_NO_SCROLLBACK 0x0800 - -#define BROWSER_AUTO_VSCROLL 0x1000 -#define BROWSER_AUTO_HSCROLL 0x2000 - -#define BROWSER_TRACKING_TIPS 0x4000 - -#define BROWSER_NO_VSCROLL 0x8000 - -#define BROWSER_HIGHLIGHT_NONE 0x0100 // == BROWSER_HIDESELECT - -#define BROWSER_HEADERBAR_NEW 0x00040000 -#define BROWSER_AUTOSIZE_LASTCOL 0x00080000 -#define BROWSER_OWN_DATACHANGED 0x00100000 - -#define BROWSER_CURSOR_WO_FOCUS 0x00200000 - // Allows a cursor which is shown even if the control does not have the focus. This does not affect other - // situations which require to temporarily hide the cursor (such as scrolling). - -#define BROWSER_SMART_HIDECURSOR 0x00400000 - // is an enhanced version of BROWSER_HIDECURSOR. - // When set, BROWSER_HIDECURSOR is overruled, and the cursor is hidden as long as no selection exists, - // but shown otherwise. This does not affect other situations which require to temporarily hide the - // cursor (such as scrolling). - -#define BROWSER_NONE 0 -#define BROWSER_SELECT 720 -#define BROWSER_ENHANCESELECTION 722 -#define BROWSER_SELECTDOWN 724 -#define BROWSER_SELECTUP 725 -#define BROWSER_CURSORDOWN 731 -#define BROWSER_CURSORUP 732 -#define BROWSER_CURSORLEFT 733 -#define BROWSER_CURSORRIGHT 734 -#define BROWSER_CURSORPAGEDOWN 735 -#define BROWSER_CURSORPAGEUP 736 -#define BROWSER_CURSORENDOFFILE 741 -#define BROWSER_CURSORTOPOFFILE 742 -#define BROWSER_CURSORENDOFSCREEN 743 -#define BROWSER_CURSORTOPOFSCREEN 744 -#define BROWSER_CURSORHOME 745 -#define BROWSER_CURSOREND 746 -#define BROWSER_SCROLLDOWN 751 -#define BROWSER_SCROLLUP 752 -#define BROWSER_SELECTHOME 753 -#define BROWSER_SELECTEND 754 -#define BROWSER_SELECTCOLUMN 755 -#define BROWSER_MOVECOLUMNLEFT 756 -#define BROWSER_MOVECOLUMNRIGHT 757 - -// --------------- -// - BrowseEvent - -// --------------- - -class BrowseEvent -{ - Window* pWin; - long nRow; - Rectangle aRect; - sal_uInt16 nCol; - sal_uInt16 nColId; - -public: - BrowseEvent(); - BrowseEvent( Window* pWindow, - long nAbsRow, - sal_uInt16 nColumn, sal_uInt16 nColumnId, - const Rectangle& rRect ); - - Window* GetWindow() const { return pWin; } - long GetRow() const { return nRow; } - sal_uInt16 GetColumn() const { return nCol; } - sal_uInt16 GetColumnId() const { return nColId; } - const Rectangle& GetRect() const { return aRect; } -}; - -// --------------------- -// - BrowserMouseEvent - -// --------------------- - -class BrowserMouseEvent: public MouseEvent, public BrowseEvent -{ -public: - BrowserMouseEvent(); - BrowserMouseEvent( BrowserDataWin* pWin, const MouseEvent& rEvt ); - BrowserMouseEvent( Window* pWin, const MouseEvent& rEvt, - long nAbsRow, sal_uInt16 nColumn, sal_uInt16 nColumnId, - const Rectangle& rRect ); -}; - -// -------------------------- -// - BrowserAcceptDropEvent - -// -------------------------- - -class BrowserAcceptDropEvent : public AcceptDropEvent, public BrowseEvent -{ -public: - BrowserAcceptDropEvent(); - BrowserAcceptDropEvent( BrowserDataWin* pWin, const AcceptDropEvent& rEvt ); -}; - -// --------------------------- -// - BrowserExecuteDropEvent - -// --------------------------- - -class BrowserExecuteDropEvent : public ExecuteDropEvent, public BrowseEvent -{ -public: - BrowserExecuteDropEvent(); - BrowserExecuteDropEvent( BrowserDataWin* pWin, const ExecuteDropEvent& rEvt ); -}; - -// ------------- -// - BrowseBox - -// ------------- - -// TODO -// The whole selection thingie in this class is somewhat .... suspicious to me. -// some oddities: -// * method parameters named like members (and used in both semantics within the method!) -// * the multi selection flag is sometimes used as if it is for row selection, sometimes as if -// it's for column selection, too (and sometimes in an even stranger way :) -// * it is not really defined like all these hundreds selection related flags/methods work together -// and influence each other. I do not understand it very well, but this may be my fault :) -// * There is a GetColumnSelection, but it can't be used to determine the selected columns (at least -// not without a const_cast) -// -// We should clearly define this somewhere in the future. Or, even better, we should re-implement this -// whole class, which is planned for a long time :) -// -// sorry for the ranting. could not resist - -class SVT_DLLPUBLIC BrowseBox - :public Control - ,public DragSourceHelper - ,public DropTargetHelper - ,public svt::IAccessibleTableProvider -{ - #define NO_CURSOR_HIDE 0 - #define HARD_CURSOR_HIDE 1 - #define SMART_CURSOR_HIDE 2 - - friend class BrowserDataWin; - friend class ::svt::BrowseBoxImpl; - -#ifdef DBG_UTIL - friend const char* BrowseBoxCheckInvariants( const void * pVoid ); -#endif - -public: - static const sal_uInt16 HandleColumnId = 0; - -private: - Window* pDataWin; // window to display data rows - ScrollBar* pVScroll; // vertical scrollbar - ScrollBar aHScroll; // horizontal scrollbar - - long nDataRowHeight; // height of a single data-row - sal_uInt16 nTitleLines; // number of lines in title row - sal_uLong nControlAreaWidth; // width of fixed area beneeth hscroll - sal_Bool bThumbDragging; // handle thumb dragging - sal_Bool bColumnCursor; // single columns and fields selectable - sal_Bool bMultiSelection;// allow multiple selected rows - sal_Bool bKeepHighlight; // don't hide selection on LoseFocus - - sal_Bool bHLines; // draw lines between rows - sal_Bool bVLines; // draw lines between columns - sal_Bool bHDots; // draw lines between rows dotted - sal_Bool bVDots; // draw lines between columns dotted - Color aGridLineColor; // color for lines, default dark grey - sal_Bool bBootstrapped; // child windows resized etc. - long nTopRow; // no. of first visible row (0...) - long nCurRow; // no. of row with cursor - long nRowCount; // total number of rows in model - sal_uInt16 nFirstCol; // no. of first visible scrollable column - sal_uInt16 nCurColId; // column id of cursor - - sal_Bool bSelecting; - sal_Bool bRowDividerDrag; - sal_Bool bHit; - sal_Bool mbInteractiveRowHeight; - Point a1stPoint; - Point a2ndPoint; - - long nResizeX; // mouse position at start of resizing - long nMinResizeX; // never drag more left - long nDragX; // last dragged column (MouseMove) - sal_uInt16 nResizeCol; // resize this column in MouseMove - sal_Bool bResizing; // mouse captured for column resizing - - sal_Bool bSelect; // select or deselect - sal_Bool bSelectionIsVisible; // depending on focus - sal_Bool bScrolling; // hidden cursor while scrolling - sal_Bool bNotToggleSel; // set while in ToggleSelection() etc. - sal_Bool bHasFocus; // set/unset in Get/LoseFocus - sal_Bool bHideSelect; // hide selection (highlight) - sal_Bool bHideCursor; // hide cursor (frame) - Range aSelRange; // for selection expansion - - BrowserColumns* pCols; // array of column-descriptions - union - { - MultiSelection* pSel; // selected rows for multi-selection - long nSel; // selected row for single-selection - } uRow; - MultiSelection* pColSel; // selected column-ids - - ::std::auto_ptr< ::svt::BrowseBoxImpl > m_pImpl; // impl structure of the BrowseBox object - - sal_Bool m_bFocusOnlyCursor; // hide cursor if we don't have the focus - Color m_aCursorColor; // special color for cursor, COL_TRANSPARENT for usual (VCL-painted) "inverted" cursor - BrowserMode m_nCurrentMode; // last argument of SetMode (redundant, as our other members represent the current settings, too) - -private: - SVT_DLLPRIVATE void ConstructImpl(BrowserMode nMode); - SVT_DLLPRIVATE void ExpandRowSelection( const BrowserMouseEvent& rEvt ); - SVT_DLLPRIVATE void ToggleSelection( sal_Bool bForce = sal_False ); - - SVT_DLLPRIVATE void UpdateScrollbars(); - SVT_DLLPRIVATE void AutoSizeLastColumn(); - - SVT_DLLPRIVATE long ImpGetDataRowHeight() const; - SVT_DLLPRIVATE Rectangle ImplFieldRectPixel( long nRow, sal_uInt16 nColId ) const; - SVT_DLLPRIVATE sal_uInt16 FrozenColCount() const; - - SVT_DLLPRIVATE void ColumnInserted( sal_uInt16 nPos ); - - DECL_DLLPRIVATE_LINK( ScrollHdl, ScrollBar * ); - DECL_DLLPRIVATE_LINK( EndScrollHdl, void * ); - DECL_DLLPRIVATE_LINK( StartDragHdl, HeaderBar * ); - - SVT_DLLPRIVATE long GetFrozenWidth() const; - - sal_Bool GoToRow(long nRow, sal_Bool bRowColMove, sal_Bool bDoNotModifySelection = sal_False ); - - sal_Bool GoToColumnId( sal_uInt16 nColId, sal_Bool bMakeVisible, sal_Bool bRowColMove = sal_False); - void SelectColumnPos( sal_uInt16 nCol, sal_Bool _bSelect, sal_Bool bMakeVisible); - void SelectColumnId( sal_uInt16 nColId, sal_Bool _bSelect, sal_Bool bMakeVisible) - { SelectColumnPos( GetColumnPos(nColId), _bSelect, bMakeVisible); } - - void ImplPaintData(OutputDevice& _rOut, const Rectangle& _rRect, sal_Bool _bForeignDevice, sal_Bool _bDrawSelections); - - sal_Bool PaintCursorIfHiddenOnce() const { return !m_bFocusOnlyCursor && !HasFocus(); } - - sal_uInt16 ToggleSelectedColumn(); - void SetToggledSelectedColumn(sal_uInt16 _nSelectedColumnId); - -protected: - /// retrieves the XAccessible implementation associated with the BrowseBox instance - ::svt::IAccessibleFactory& getAccessibleFactory(); - -protected: - sal_uInt16 ColCount() const; - - // software plug for database access - // Der RowCount wird jetzt intern automatisch gezaehlt - // (ueber RowInserted und RowRemoved), daher ist das Ueberladen - // dieser Methode ueberfluessig! -public: - virtual long GetRowCount() const; - -protected: - // fuer Anzeige im VScrollBar z.B. auf "?" oder setzen - void SetRealRowCount( const String &rRealRowCount ); - - // Return Value muss immer sal_True sein - SeekRow *muss* klappen! - // (sonst ASSERT) MI: wer hat das eingebaut? Das darf nicht so sein! - - /** seeks for the given row position - @param nRow - nRow starts at 0 - */ - virtual sal_Bool SeekRow( long nRow ) = 0; - virtual void DrawCursor(); - virtual void PaintRow( OutputDevice &rDev, const Rectangle &rRect ); - virtual void PaintData( Window& rWin, const Rectangle& rRect ); - virtual void PaintField( OutputDevice& rDev, const Rectangle& rRect, - sal_uInt16 nColumnId ) const = 0; - // Benachrichtigung an die abgeleitete Klasse, dass sich der sichtbare - // Bereich von Rows geaendert hat. Aus dieser Methode heraus darf - // die abgeleitete Klasse Aenderungen des Model mit Hilfe der Methoden - // RowInserted und RowRemoved bekanntgeben. Mit sich daraus ergebenden - // neuen Zustand wird anschliessend ein Paint veranlasst (und entsprechend - // SeekRow etc. gerufen). - // - // Parameter: nNewTopRow: Nr. der neuen TopRow (kann von VisibleRowsChanged - // durch Aufruf von RowInserted und RowDeleted noch veraendert werden). - // nNumRows: Anzahl der sichtbaren Rows (auch eine teilweise sichtbare Row - // wird mitgezaehlt). - // - // Moegliche Ursachen fuer die Aenderung des sichtbaren Bereiches: - // - Vor dem sichtbaren Bereich sind Rows eingefuegt oder geloescht worden, - // dadurch aendert sich nur die Numerierung der sichtbaren Rows - // - Scrollen (und daraus resultierend eine andere erste sichtbare Row) - // - Resize des Fensters - virtual void VisibleRowsChanged( long nNewTopRow, sal_uInt16 nNumRows); - - // Anzahl sichtbarer Rows in dem Fenster (inkl. "angeschnittener" Rows) - sal_uInt16 GetVisibleRows() - { return (sal_uInt16)((pDataWin->GetOutputSizePixel().Height() - 1 )/ GetDataRowHeight() + 1); } - long GetTopRow() { return nTopRow; } - sal_uInt16 GetFirstVisibleColNumber() const { return nFirstCol; } - - // Focus-Rect ein-/ausschalten - void DoShowCursor( const char *pWhoLog ); - void DoHideCursor( const char *pWhoLog ); - short GetCursorHideCount() const; - - virtual BrowserHeader* CreateHeaderBar( BrowseBox* pParent ); - - // HACK(virtuelles Create wird im Ctor nicht gerufen) - void SetHeaderBar( BrowserHeader* ); - - long CalcReverseZoom(long nVal); - - inline const DataFlavorExVector& - GetDataFlavors() const; - - sal_Bool IsDropFormatSupported( SotFormatStringId nFormat ); // need this because the base class' IsDropFormatSupported is not const ... - sal_Bool IsDropFormatSupported( SotFormatStringId nFormat ) const; - - sal_Bool IsDropFormatSupported( const css::datatransfer::DataFlavor& _rFlavor ); // need this because the base class' IsDropFormatSupported is not const ... - sal_Bool IsDropFormatSupported( const css::datatransfer::DataFlavor& _rFlavor ) const; - -private: - void* implGetDataFlavors() const; - // with this we can make GetDataFlavors() inline, which is strongly needed as SVTOOLS does not export - // any sysbols containing an "_STL", so a non-inlined method would not be exported .... - -protected: - // callbacks for the data window - virtual void ImplStartTracking(); - virtual void ImplTracking(); - virtual void ImplEndTracking(); - -public: - BrowseBox( Window* pParent, WinBits nBits = 0, - BrowserMode nMode = 0 ); - BrowseBox( Window* pParent, const ResId& rId, - BrowserMode nMode = 0 ); - ~BrowseBox(); - - // ererbte ueberladene Handler - virtual void StateChanged( StateChangedType nStateChange ); - virtual void MouseButtonDown( const MouseEvent& rEvt ); - virtual void MouseMove( const MouseEvent& rEvt ); - virtual void MouseButtonUp( const MouseEvent& rEvt ); - virtual void KeyInput( const KeyEvent& rEvt ); - virtual void LoseFocus(); - virtual void GetFocus(); - virtual void Resize(); - virtual void Paint( const Rectangle& rRect ); - virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); - virtual void Command( const CommandEvent& rEvt ); - virtual void StartDrag( sal_Int8 _nAction, const Point& _rPosPixel ); - - virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); // will forward everything got to the second AcceptDrop method - virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); // will forward everything got to the second ExecuteDrop method - - virtual sal_Int8 AcceptDrop( const BrowserAcceptDropEvent& rEvt ); - virtual sal_Int8 ExecuteDrop( const BrowserExecuteDropEvent& rEvt ); - - // neue Handler - virtual void MouseButtonDown( const BrowserMouseEvent& rEvt ); - virtual void MouseMove( const BrowserMouseEvent& rEvt ); - virtual void MouseButtonUp( const BrowserMouseEvent& rEvt ); - virtual void StartScroll(); - virtual void EndScroll(); - virtual void Select(); - virtual void DoubleClick( const BrowserMouseEvent& rEvt ); - virtual sal_Bool IsCursorMoveAllowed( long nNewRow, sal_uInt16 nNewColId ) const; - virtual void CursorMoved(); - virtual void ColumnMoved( sal_uInt16 nColId ); - virtual void ColumnResized( sal_uInt16 nColId ); - virtual long QueryColumnResize( sal_uInt16 nColId, long nWidth ); - /// called when the row height has been changed interactively - virtual void RowHeightChanged(); - virtual long QueryMinimumRowHeight(); - - // Window-Control (pass to DataWindow) - void SetUpdateMode( sal_Bool bUpdate ); - sal_Bool GetUpdateMode() const; - - // map-mode and font control - void SetFont( const Font& rNewFont ); - const Font& GetFont() const { return pDataWin->GetFont(); } - void SetTitleFont( const Font& rNewFont ) - { Control::SetFont( rNewFont ); } - const Font& GetTitleFont() const { return Control::GetFont(); } - - // color for line painting - void SetGridLineColor(const Color& rColor) {aGridLineColor = rColor;} - const Color& GetGridLineColor() const {return aGridLineColor;} - - // inserting, changing, removing and freezing of columns - void InsertHandleColumn( sal_uLong nWidth ); - void InsertDataColumn( sal_uInt16 nItemId, const XubString& rText, - long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE, - sal_uInt16 nPos = HEADERBAR_APPEND ); - void SetColumnTitle( sal_uInt16 nColumnId, const String &rTitle ); - void SetColumnWidth( sal_uInt16 nColumnId, sal_uLong nWidth ); - void SetColumnPos( sal_uInt16 nColumnId, sal_uInt16 nPos ); - void FreezeColumn( sal_uInt16 nColumnId, sal_Bool bFreeze = sal_True ); - void UnfreezeColumns(); - void RemoveColumn( sal_uInt16 nColumnId ); - void RemoveColumns(); - - // control of title and data row height - void SetDataRowHeight( long nPixel ); - long GetDataRowHeight() const; - void SetTitleLines( sal_uInt16 nLines ); - sal_uInt16 GetTitleLines() const { return nTitleLines; } - virtual long GetTitleHeight() const; - - // access to dynamic values of cursor row - String GetColumnTitle( sal_uInt16 nColumnId ) const; - Rectangle GetFieldRect( sal_uInt16 nColumnId ) const; - sal_uLong GetColumnWidth( sal_uInt16 nColumnId ) const; - sal_uInt16 GetColumnId( sal_uInt16 nPos ) const; - sal_uInt16 GetColumnPos( sal_uInt16 nColumnId ) const; - sal_Bool IsFrozen( sal_uInt16 nColumnId ) const; - - // movement of visible area - void ResetScroll(); - long ScrollColumns( long nColumns ); - long ScrollRows( long nRows ); - sal_Bool MakeFieldVisible( long nRow, sal_uInt16 nColId, sal_Bool bComplete = sal_False ); - - // access and movement of cursor - long GetCurRow() const { return nCurRow; } - sal_uInt16 GetCurColumnId() const { return nCurColId; } - sal_Bool GoToRow( long nRow ); - sal_Bool GoToColumnId( sal_uInt16 nColId ); - sal_Bool GoToRowColumnId( long nRow, sal_uInt16 nColId ); - - // selections - virtual void SetNoSelection(); - virtual void SelectAll(); - virtual void SelectRow( long nRow, sal_Bool _bSelect = sal_True, sal_Bool bExpand = sal_True ); - void SelectColumnPos( sal_uInt16 nCol, sal_Bool _bSelect = sal_True ) - { SelectColumnPos( nCol, _bSelect, sal_True); } - void SelectColumnId( sal_uInt16 nColId, sal_Bool _bSelect = sal_True ) - { SelectColumnPos( GetColumnPos(nColId), _bSelect, sal_True); } - long GetSelectRowCount() const; - sal_uInt16 GetSelectColumnCount() const; - virtual bool IsRowSelected( long nRow ) const; - bool IsColumnSelected( sal_uInt16 nColumnId ) const; - long FirstSelectedRow( sal_Bool bInverse = sal_False ); - long LastSelectedRow(); - long NextSelectedRow(); - const MultiSelection* GetColumnSelection() const { return pColSel; } - const MultiSelection* GetSelection() const - { return bMultiSelection ? uRow.pSel : 0; } - - long FirstSelectedColumn( ) const; - - sal_Bool IsResizing() const { return bResizing; } - - // access to positions of fields, column and rows - Window& GetDataWindow() const { return *pDataWin; } - Rectangle GetRowRectPixel( long nRow, - sal_Bool bRelToBrowser = sal_True ) const; - Rectangle GetFieldRectPixel( long nRow, sal_uInt16 nColId, - sal_Bool bRelToBrowser = sal_True) const; - sal_Bool IsFieldVisible( long nRow, sal_uInt16 nColId, - sal_Bool bComplete = sal_False ) const; - long GetRowAtYPosPixel( long nY, - sal_Bool bRelToBrowser = sal_True ) const; - sal_uInt16 GetColumnAtXPosPixel( long nX, - sal_Bool bRelToBrowser = sal_True ) const; - - // invalidations - void Clear(); - void RowRemoved( long nRow, long nNumRows = 1, sal_Bool bDoPaint = sal_True ); - void RowModified( long nRow, sal_uInt16 nColId = BROWSER_INVALIDID ); - void RowInserted( long nRow, long nNumRows = 1, sal_Bool bDoPaint = sal_True, sal_Bool bKeepSelection = sal_False ); - - // miscellanous - void ReserveControlArea( sal_uInt16 nWidth = USHRT_MAX ); - Rectangle GetControlArea() const; - sal_Bool ProcessKey( const KeyEvent& rEvt ); - void Dispatch( sal_uInt16 nId ); - void SetMode( BrowserMode nMode = 0 ); - BrowserMode GetMode( ) const { return m_nCurrentMode; } - - void SetCursorColor(const Color& _rCol); - Color GetCursorColor() const { return m_aCursorColor; } - void ResetSelecting() { bSelecting = sal_False; } - - /** specifies that the user is allowed to interactively change the height of a row, - by simply dragging an arbitrary row separator. - - Note that this works only if there's a handle column, since only in this case, - there *is* something for the user to click onto - */ - void EnableInteractiveRowHeight( sal_Bool _bEnable = sal_True ) { mbInteractiveRowHeight = _bEnable; } - sal_Bool IsInteractiveRowHeightEnabled( ) const { return mbInteractiveRowHeight; } - - /// access to selected methods, to be granted to the BrowserColumn - struct BrowserColumnAccess { friend class BrowserColumn; private: BrowserColumnAccess() { } }; - /** public version of PaintField, with selected access rights for the BrowserColumn - */ - void DoPaintField( OutputDevice& rDev, const Rectangle& rRect, sal_uInt16 nColumnId, BrowserColumnAccess ) const - { PaintField( rDev, rRect, nColumnId ); } - - /** suggests a default width for a column containing a given text - - The width is calculated so that the text fits completely, plus som margin. - */ - sal_uLong GetDefaultColumnWidth( const String& _rText ) const; - - /** GetCellText returns the text at the given position - @param _nRow - the number of the row - @param _nColId - the ID of the column - @return - the text out of the cell - */ - virtual String GetCellText(long _nRow, sal_uInt16 _nColId) const; - - /** @return - the current column count - */ - sal_uInt16 GetColumnCount() const { return ColCount(); } - - /** commitBrowseBoxEvent commit the event at all listeners of the browsebox - @param nEventId - the event id - @param rNewValue - the new value - @param rOldValue - the old value - */ - void commitBrowseBoxEvent(sal_Int16 nEventId, - const css::uno::Any& rNewValue, - const css::uno::Any& rOldValue); - - /** commitTableEvent commit the event at all listeners of the table - @param nEventId - the event id - @param rNewValue - the new value - @param rOldValue - the old value - */ - void commitTableEvent(sal_Int16 nEventId, - const css::uno::Any& rNewValue, - const css::uno::Any& rOldValue); - - /** fires an AccessibleEvent relative to a header bar AccessibleContext - - @param nEventId - the event id - @param rNewValue - the new value - @param rOldValue - the old value - */ - void commitHeaderBarEvent(sal_Int16 nEventId, - const css::uno::Any& rNewValue, - const css::uno::Any& rOldValue, - sal_Bool _bColumnHeaderBar - ); - - /** returns the Rectangle for either the column header bar ot the row header bar - @param _bIsColumnBar - when column header bar is used - @param _bOnScreen - when the rectangle should be calculated OnScreen - @return - the Rectangle - */ - virtual Rectangle calcHeaderRect(sal_Bool _bIsColumnBar,sal_Bool _bOnScreen = sal_True); - - /** calculates the Rectangle of the table - @param _bOnScreen - when the rectangle should be calculated OnScreen - @return - the Rectangle - */ - virtual Rectangle calcTableRect(sal_Bool _bOnScreen = sal_True); - - /** - @param _nRowId - the current row - @param _nColId - the column id - @param _bOnScreen - when the rectangle should be calculated OnScreen - @return - the Rectangle - */ - virtual Rectangle GetFieldRectPixelAbs(sal_Int32 _nRowId,sal_uInt16 _nColId, sal_Bool _bIsHeader, sal_Bool _bOnScreen = sal_True); - - /// return if and only if the accessible object for this instance has been created and is alive - sal_Bool isAccessibleAlive( ) const; - - // ACCESSIBILITY ========================================================== -public: - /** Creates and returns the accessible object of the whole BrowseBox. */ - virtual css::uno::Reference< - css::accessibility::XAccessible > CreateAccessible(); - - // Children --------------------------------------------------------------- - - /** Creates the accessible object of a data table cell. - @param nRow The row index of the cell. - @param nColumnId The column pos of the cell. - @return The XAccessible interface of the specified cell. */ - virtual css::uno::Reference< - css::accessibility::XAccessible > - CreateAccessibleCell( sal_Int32 nRow, sal_uInt16 nColumnPos ); - - /** Creates the accessible object of a row header. - @param nRow The row index of the header. - @return The XAccessible interface of the specified row header. */ - virtual css::uno::Reference< - css::accessibility::XAccessible > - CreateAccessibleRowHeader( sal_Int32 nRow ); - - /** Creates the accessible object of a column header. - @param nColumnId The column ID of the header. - @return The XAccessible interface of the specified column header. */ - virtual css::uno::Reference< - css::accessibility::XAccessible > - CreateAccessibleColumnHeader( sal_uInt16 nColumnPos ); - - /** @return The count of additional controls of the control area. */ - virtual sal_Int32 GetAccessibleControlCount() const; - - /** Creates the accessible object of an additional control. - @param nIndex The 0-based index of the control. - @return The XAccessible interface of the specified control. */ - virtual css::uno::Reference< - css::accessibility::XAccessible > - CreateAccessibleControl( sal_Int32 nIndex ); - - // Conversions ------------------------------------------------------------ - - /** Converts a point relative to the data window origin to a cell address. - @param rnRow Out-parameter that takes the row index. - @param rnColumnId Out-parameter that takes the column ID. - @param rPoint The position in pixels relative to the data window. - @return , if the point could be converted to a valid address. */ - virtual sal_Bool ConvertPointToCellAddress( - sal_Int32& rnRow, sal_uInt16& rnColumnId, const Point& rPoint ); - - /** Converts a point relative to the row header bar origin to a row header - index. - @param rnRow Out-parameter that takes the row index. - @param rPoint The position in pixels relative to the header bar. - @return , if the point could be converted to a valid index. */ - virtual sal_Bool ConvertPointToRowHeader( sal_Int32& rnRow, const Point& rPoint ); - - /** Converts a point relative to the column header bar origin to a column - header index. - @param rnColumnId Out-parameter that takes the column ID. - @param rPoint The position in pixels relative to the header bar. - @return , if the point could be converted to a valid index. */ - virtual sal_Bool ConvertPointToColumnHeader( sal_uInt16& rnColumnPos, const Point& rPoint ); - - /** Converts a point relative to the BrowseBox origin to the index of an - existing control. - @param rnRow Out-parameter that takes the 0-based control index. - @param rPoint The position in pixels relative to the BrowseBox. - @return , if the point could be converted to a valid index. */ - virtual sal_Bool ConvertPointToControlIndex( sal_Int32& rnIndex, const Point& rPoint ); - - // Object data and state -------------------------------------------------- - - /** return the name of the specified object. - @param eObjType - The type to ask for - @param _nPosition - The position of a tablecell (index position), header bar colum/row cell - @return - The name of the specified object. - */ - virtual OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType eObjType,sal_Int32 _nPosition = -1) const; - - /** return the description of the specified object. - @param eObjType - The type to ask for - @param _nPosition - The position of a tablecell (index position), header bar colum/row cell - @return - The description of the specified object. - */ - virtual OUString GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxObjType eObjType,sal_Int32 _nPosition = -1) const; - - /** @return The header text of the specified row. */ - virtual OUString GetRowDescription( sal_Int32 nRow ) const; - - /** @return The header text of the specified column. */ - virtual OUString GetColumnDescription( sal_uInt16 _nColumn ) const; - - /** Fills the StateSet with all states (except DEFUNC and SHOWING, done by - the accessible object), depending on the specified object type. */ - virtual void FillAccessibleStateSet( - ::utl::AccessibleStateSetHelper& rStateSet, - ::svt::AccessibleBrowseBoxObjType eObjType ) const; - - /** Fills the StateSet with all states for one cell (except DEFUNC and SHOWING, done by - the accessible object). */ - virtual void FillAccessibleStateSetForCell( - ::utl::AccessibleStateSetHelper& _rStateSet, - sal_Int32 _nRow, sal_uInt16 _nColumn ) const; - - /** Sets focus to current cell of the data table. */ - virtual void GrabTableFocus(); - - // IAccessibleTableProvider - virtual sal_Int32 GetCurrRow() const; - virtual sal_uInt16 GetCurrColumn() const; - virtual sal_Bool HasRowHeader() const; - virtual sal_Bool IsCellFocusable() const; - virtual sal_Bool GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumn ); - virtual void SelectColumn( sal_uInt16 _nColumn, sal_Bool _bSelect = sal_True ); - virtual sal_Bool IsColumnSelected( long _nColumn ) const; - virtual sal_Int32 GetSelectedRowCount() const; - virtual sal_Int32 GetSelectedColumnCount() const; - virtual void GetAllSelectedRows( css::uno::Sequence< sal_Int32 >& _rRows ) const; - virtual void GetAllSelectedColumns( css::uno::Sequence< sal_Int32 >& _rColumns ) const; - virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumn ) const; - virtual String GetAccessibleCellText(long _nRow, sal_uInt16 _nColPos) const; - virtual sal_Bool GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector ); - virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const; - virtual void GrabFocus(); - virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible( sal_Bool bCreate = sal_True ); - virtual Window* GetAccessibleParentWindow() const; - virtual Window* GetWindowInstance(); - -private: - // the following declares some Window/OutputDevice methods private. This happened in the course - // of CWS warnings01, which pointed out nameclashs in those methods. If the build breaks in some - // upper module, you should investigate whether you really wanted to call base class methods, - // or the versions at this class. In the latter case, use the renamed versions above. - - // Set/GetLineColor - superseded by Set/GetGridLineColor - using OutputDevice::SetLineColor; - using OutputDevice::GetLineColor; - - // ToTop/ToBottom were never property implemented. If you currently call it, this is most probably wrong - // and not doing as intended - using Window::ToTop; -}; - -//------------------------------------------------------------------- -inline const DataFlavorExVector& BrowseBox::GetDataFlavors() const -{ - return *reinterpret_cast(implGetDataFlavors()); -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/brwhead.hxx b/svtools/inc/svtools/brwhead.hxx deleted file mode 100644 index 6eaa06a5f62b..000000000000 --- a/svtools/inc/svtools/brwhead.hxx +++ /dev/null @@ -1,46 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _BRWHEAD_HXX -#define _BRWHEAD_HXX - -#include "svtools/svtdllapi.h" -#include - -class BrowseBox; - -//=================================================================== - -class SVT_DLLPUBLIC BrowserHeader: public HeaderBar -{ - BrowseBox* _pBrowseBox; - -protected: - virtual void Command( const CommandEvent& rCEvt ); - virtual void Select(); - virtual void EndDrag(); - -public: - BrowserHeader( BrowseBox* pParent, WinBits nWinBits = WB_STDHEADERBAR | WB_DRAG ); - -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/calendar.hxx b/svtools/inc/svtools/calendar.hxx deleted file mode 100644 index 2c41ae7ed929..000000000000 --- a/svtools/inc/svtools/calendar.hxx +++ /dev/null @@ -1,451 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _CALENDAR_HXX -#define _CALENDAR_HXX - -#include "svtools/svtdllapi.h" -#include -#include - -#include -#include -#include -#include - -class MouseEvent; -class TrackingEvent; -class KeyEvent; -class HelpEvent; -class DataChangedEvent; -class FloatingWindow; -class PushButton; -class ImplCFieldFloatWin; - -/************************************************************************* - -Description -============ - -class Calendar - -This class allows for the selection of a date. The displayed date range is -the one specified by the Date class. We display as many months as we have -space in the control. The user can switch between months using a ContextMenu -(clicking on the month's name) or via two ScrollButtons in-between the months. - --------------------------------------------------------------------------- - -WinBits - -WB_BORDER We draw a border around the window. -WB_TABSTOP Keyboard control is possible. We get the focus, when - the user clicks in the Control. -WB_QUICKHELPSHOWSDATEINFO Show DateInfo as BallonHelp even if QuickInfo is enabled -WB_BOLDTEXT We format by bold texts and DIB_BOLD is evaluated by - AddDateInfo() -WB_FRAMEINFO We format in a way, so that FrameInfo can be displayed - and the FrameColor is evaluated by AddDateInfo() -WB_RANGESELECT The user can select multiple days, which need to be - consecutive -WB_MULTISELECT The user can select multiple days -WB_WEEKNUMBER We also display the weekdays - --------------------------------------------------------------------------- - -We set and get the selected date by SetCurDate()/GetCurDate(). -If the user selects a date Select() is called. If the user double clicks -DoubleClick() is called. - --------------------------------------------------------------------------- - -CalcWindowSizePixel() calculates the window size in pixel that is needed -to display a certain number of months. - --------------------------------------------------------------------------- - -SetSaturdayColor() and SetSundayColor() set a special color for Saturdays -and Sundays. -AddDateInfo() marks special days. With that we can set e.g. public holidays -to another color or encircle them (for e.g. appointments). -If we do not supply a year in the date, the day is used in EVERY year. - -AddDateInfo() can also add text for every date, which is displayed if the -BalloonHelp is enabled. -In order to not have to supply all years with the relevant data, we call -the RequestDateInfo() handler if a new year is displayed. We can then query -the year in the handler with GetRequestYear(). - --------------------------------------------------------------------------- - -In order to display a ContextMenu for a date, we need to override the -Command handler. GetDate() can infer the date from the mouse's position. -If we use the keyboard, the current date should be use. - -If a ContextMenu is displayed, the baseclass' handler must not be called. - --------------------------------------------------------------------------- - -For multiple selection (WB_RANGESELECT or WB_MULTISELECT) SelectDate(), -SelectDateRange() can select date ranges. SelectDateRange() selects -including the end date. -SetNoSelection() deselects everything. -SetCurDate() does not select the current date, but only defines the focus -rectangle. -GetSelectDateCount()/GetSelectDate() query the selected range. -IsDateSelected() queries for the status of a date. - -The SelectionChanging() handler is being called while a user selects a -date. In it, we can change the selected range. E.g. if we want to limit -or extend the selected range. The selected range is realised via SelectDate() -and SelectDateRange() and queried with GetSelectDateCount()/GetSelectDate(). - -IsSelectLeft() returns the direction of the selection: -sal_True is a selection to the left or up -sal_False is a selection to the right or down - --------------------------------------------------------------------------- - -If the DateRange area changes and we want to take over the selection, we -should only do this is if IsScrollDateRangeChanged() retruns sal_True. -This method returns sal_True if the area change was triggered by using the -ScrollButtons and sal_False if it was triggered by Resize(), other method -calls or by ending a selection. - -*************************************************************************/ - -// ------------------ -// - Calendar types - -// ------------------ - -#define WB_QUICKHELPSHOWSDATEINFO ((WinBits)0x00004000) -#define WB_BOLDTEXT ((WinBits)0x00008000) -#define WB_FRAMEINFO ((WinBits)0x00010000) -#define WB_WEEKNUMBER ((WinBits)0x00020000) -// Needs to in agreement with the WinBits in the TabBar or -// we move it to \vcl\inc\wintypes.hxx -#ifndef WB_RANGESELECT -#define WB_RANGESELECT ((WinBits)0x00200000) -#endif -#ifndef WB_MULTISELECT -#define WB_MULTISELECT ((WinBits)0x00400000) -#endif - -#define DIB_BOLD ((sal_uInt16)0x0001) - -// ------------ -// - Calendar - -// ------------ - -typedef std::set IntDateSet; - - -class SVT_DLLPUBLIC Calendar : public Control -{ -private: - IntDateSet* mpSelectTable; - IntDateSet* mpOldSelectTable; - IntDateSet* mpRestoreSelectTable; - OUString maDayTexts[31]; - OUString maDayText; - OUString maWeekText; - CalendarWrapper maCalendarWrapper; - Rectangle maPrevRect; - Rectangle maNextRect; - String maDayOfWeekText; - sal_Int32 mnDayOfWeekAry[7]; - Date maOldFormatFirstDate; - Date maOldFormatLastDate; - Date maFirstDate; - Date maOldFirstDate; - Date maCurDate; - Date maOldCurDate; - Date maAnchorDate; - Date maDropDate; - Color maSelColor; - Color maOtherColor; - Color* mpStandardColor; - Color* mpSaturdayColor; - Color* mpSundayColor; - sal_uLong mnDayCount; - long mnDaysOffX; - long mnWeekDayOffY; - long mnDaysOffY; - long mnMonthHeight; - long mnMonthWidth; - long mnMonthPerLine; - long mnLines; - long mnDayWidth; - long mnDayHeight; - long mnWeekWidth; - WinBits mnWinStyle; - sal_uInt16 mnFirstYear; - sal_uInt16 mnLastYear; - sal_uInt16 mnRequestYear; - sal_Bool mbCalc:1, - mbFormat:1, - mbDrag:1, - mbSelection:1, - mbMultiSelection:1, - mbWeekSel:1, - mbUnSel:1, - mbMenuDown:1, - mbSpinDown:1, - mbPrevIn:1, - mbNextIn:1, - mbDirect:1, - mbInSelChange:1, - mbTravelSelect:1, - mbScrollDateRange:1, - mbSelLeft:1, - mbAllSel:1, - mbDropPos:1; - Link maSelectionChangingHdl; - Link maDateRangeChangedHdl; - Link maRequestDateInfoHdl; - Link maDoubleClickHdl; - Link maSelectHdl; - Timer maDragScrollTimer; - sal_uInt16 mnDragScrollHitTest; - -#ifdef _SV_CALENDAR_CXX - using Control::ImplInitSettings; - using Window::ImplInit; - SVT_DLLPRIVATE void ImplInit( WinBits nWinStyle ); - SVT_DLLPRIVATE void ImplInitSettings(); - SVT_DLLPRIVATE void ImplGetWeekFont( Font& rFont ) const; - SVT_DLLPRIVATE void ImplFormat(); - using Window::ImplHitTest; - SVT_DLLPRIVATE sal_uInt16 ImplHitTest( const Point& rPos, Date& rDate ) const; - SVT_DLLPRIVATE void ImplDrawSpin( sal_Bool bDrawPrev = sal_True, sal_Bool bDrawNext = sal_True ); - SVT_DLLPRIVATE void ImplDrawDate( long nX, long nY, - sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear, - DayOfWeek eDayOfWeek, - sal_Bool bBack = sal_True, sal_Bool bOther = sal_False, - sal_uLong nToday = 0 ); - SVT_DLLPRIVATE void ImplDraw( sal_Bool bPaint = sal_False ); - SVT_DLLPRIVATE void ImplUpdateDate( const Date& rDate ); - SVT_DLLPRIVATE void ImplUpdateSelection( IntDateSet* pOld ); - SVT_DLLPRIVATE void ImplMouseSelect( const Date& rDate, sal_uInt16 nHitTest, - sal_Bool bMove, sal_Bool bExpand, sal_Bool bExtended ); - SVT_DLLPRIVATE void ImplUpdate( sal_Bool bCalcNew = sal_False ); - using Window::ImplScroll; - SVT_DLLPRIVATE void ImplScroll( sal_Bool bPrev ); - SVT_DLLPRIVATE void ImplInvertDropPos(); - SVT_DLLPRIVATE void ImplShowMenu( const Point& rPos, const Date& rDate ); - SVT_DLLPRIVATE void ImplTracking( const Point& rPos, sal_Bool bRepeat ); - SVT_DLLPRIVATE void ImplEndTracking( sal_Bool bCancel ); - SVT_DLLPRIVATE DayOfWeek ImplGetWeekStart() const; -#endif - -protected: - - DECL_STATIC_LINK( Calendar, ScrollHdl, Timer *); - -public: - Calendar( Window* pParent, WinBits nWinStyle = 0 ); - ~Calendar(); - - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void MouseButtonUp( const MouseEvent& rMEvt ); - virtual void MouseMove( const MouseEvent& rMEvt ); - virtual void Tracking( const TrackingEvent& rMEvt ); - virtual void KeyInput( const KeyEvent& rKEvt ); - virtual void Paint( const Rectangle& rRect ); - virtual void Resize(); - virtual void GetFocus(); - virtual void LoseFocus(); - virtual void RequestHelp( const HelpEvent& rHEvt ); - virtual void Command( const CommandEvent& rCEvt ); - virtual void StateChanged( StateChangedType nStateChange ); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - - virtual void SelectionChanging(); - virtual void DateRangeChanged(); - virtual void RequestDateInfo(); - virtual void DoubleClick(); - virtual void Select(); - - const CalendarWrapper& GetCalendarWrapper() const { return maCalendarWrapper; } - - void SelectDate( const Date& rDate, sal_Bool bSelect = sal_True ); - void SetNoSelection(); - sal_Bool IsDateSelected( const Date& rDate ) const; - Date GetFirstSelectedDate() const; - void EnableCallEverySelect( sal_Bool bEvery = sal_True ) { mbAllSel = bEvery; } - sal_Bool IsCallEverySelectEnabled() const { return mbAllSel; } - - sal_uInt16 GetRequestYear() const { return mnRequestYear; } - void SetCurDate( const Date& rNewDate ); - Date GetCurDate() const { return maCurDate; } - void SetFirstDate( const Date& rNewFirstDate ); - Date GetFirstDate() const { return maFirstDate; } - Date GetLastDate() const { return GetFirstDate() + mnDayCount; } - sal_uLong GetDayCount() const { return mnDayCount; } - Date GetFirstMonth() const; - Date GetLastMonth() const; - sal_uInt16 GetMonthCount() const; - sal_Bool GetDate( const Point& rPos, Date& rDate ) const; - Rectangle GetDateRect( const Date& rDate ) const; - - long GetCurMonthPerLine() const { return mnMonthPerLine; } - long GetCurLines() const { return mnLines; } - - const Color& GetStandardColor() const; - const Color& GetSaturdayColor() const; - const Color& GetSundayColor() const; - - void StartSelection(); - void EndSelection(); - - sal_Bool IsTravelSelect() const { return mbTravelSelect; } - sal_Bool IsScrollDateRangeChanged() const { return mbScrollDateRange; } - sal_Bool IsSelectLeft() const { return mbSelLeft; } - - Size CalcWindowSizePixel( long nCalcMonthPerLine = 1, - long nCalcLines = 1 ) const; - - void SetSelectionChangingHdl( const Link& rLink ) { maSelectionChangingHdl = rLink; } - const Link& GetSelectionChangingHdl() const { return maSelectionChangingHdl; } - void SetDateRangeChangedHdl( const Link& rLink ) { maDateRangeChangedHdl = rLink; } - const Link& GetDateRangeChangedHdl() const { return maDateRangeChangedHdl; } - void SetRequestDateInfoHdl( const Link& rLink ) { maRequestDateInfoHdl = rLink; } - const Link& GetRequestDateInfoHdl() const { return maRequestDateInfoHdl; } - void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; } - const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; } - void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; } - const Link& GetSelectHdl() const { return maSelectHdl; } -}; - -inline const Color& Calendar::GetStandardColor() const -{ - if ( mpStandardColor ) - return *mpStandardColor; - else - return GetFont().GetColor(); -} - -inline const Color& Calendar::GetSaturdayColor() const -{ - if ( mpSaturdayColor ) - return *mpSaturdayColor; - else - return GetFont().GetColor(); -} - -inline const Color& Calendar::GetSundayColor() const -{ - if ( mpSundayColor ) - return *mpSundayColor; - else - return GetFont().GetColor(); -} - -/************************************************************************* - -Description -============ - -class CalendarField - -This class is a DateField with which one can select a date via a DropDownButton -and the CalendarControl. - --------------------------------------------------------------------------- - -WinBits - -See DateField - -The preferences for the CalendarControl can be set via SetCalendarStyle(). - --------------------------------------------------------------------------- - -With EnableToday()/EnableNone() we can enable a TodayButton and a NoneButton. - --------------------------------------------------------------------------- - -If we set WB_RANGESELECT with SetCalendarStyle(), we can select multiple days -in the Calendar. - -Because we only take over the start date into the field, we should query -with GetCalendar() in the SelectHandler and with GetSelectDateCount()/GetSelectDate() -the selected range. We then can e.g. take over that value to another field. - --------------------------------------------------------------------------- - -If a derived Calendar should be used, we can override the CreateCalendar() -method in CalendarField and create an own calendar there ourselves. - -*************************************************************************/ - -// ----------------- -// - CalendarField - -// ----------------- - -class SVT_DLLPUBLIC CalendarField : public DateField -{ -private: - ImplCFieldFloatWin* mpFloatWin; - Calendar* mpCalendar; - WinBits mnCalendarStyle; - PushButton* mpTodayBtn; - PushButton* mpNoneBtn; - Date maDefaultDate; - sal_Bool mbToday; - sal_Bool mbNone; - Link maSelectHdl; - -#ifdef _SV_CALENDAR_CXX - DECL_DLLPRIVATE_LINK( ImplSelectHdl, Calendar* ); - DECL_DLLPRIVATE_LINK( ImplClickHdl, PushButton* ); - DECL_DLLPRIVATE_LINK( ImplPopupModeEndHdl, void* ); -#endif - -public: - CalendarField( Window* pParent, WinBits nWinStyle ); - ~CalendarField(); - - virtual void Select(); - - virtual sal_Bool ShowDropDown( sal_Bool bShow ); - virtual Calendar* CreateCalendar( Window* pParent ); - Calendar* GetCalendar(); - - void SetDefaultDate( const Date& rDate ) { maDefaultDate = rDate; } - Date GetDefaultDate() const { return maDefaultDate; } - - void EnableToday( sal_Bool bToday = sal_True ) { mbToday = bToday; } - sal_Bool IsTodayEnabled() const { return mbToday; } - void EnableNone( sal_Bool bNone = sal_True ) { mbNone = bNone; } - sal_Bool IsNoneEnabled() const { return mbNone; } - - void SetCalendarStyle( WinBits nStyle ) { mnCalendarStyle = nStyle; } - WinBits GetCalendarStyle() const { return mnCalendarStyle; } - - void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; } - const Link& GetSelectHdl() const { return maSelectHdl; } - -protected: - virtual void StateChanged( StateChangedType nStateChange ); -}; - -#endif // _CALENDAR_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/cliplistener.hxx b/svtools/inc/svtools/cliplistener.hxx deleted file mode 100644 index 47ff64403dc6..000000000000 --- a/svtools/inc/svtools/cliplistener.hxx +++ /dev/null @@ -1,54 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _CLIPLISTENER_HXX -#define _CLIPLISTENER_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include - -class Window; - - -class SVT_DLLPUBLIC TransferableClipboardListener : public ::cppu::WeakImplHelper1< - ::com::sun::star::datatransfer::clipboard::XClipboardListener > -{ - Link aLink; - -public: - // Link is called with a TransferableDataHelper pointer - TransferableClipboardListener( const Link& rCallback ); - ~TransferableClipboardListener(); - - void AddRemoveListener( Window* pWin, sal_Bool bAdd ); - void ClearCallbackLink(); - - // XEventListener - virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) - throw(::com::sun::star::uno::RuntimeException); - // XClipboardListener - virtual void SAL_CALL changedContents( const ::com::sun::star::datatransfer::clipboard::ClipboardEvent& event ) - throw(::com::sun::star::uno::RuntimeException); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/collatorres.hxx b/svtools/inc/svtools/collatorres.hxx deleted file mode 100644 index d8abf68ccf82..000000000000 --- a/svtools/inc/svtools/collatorres.hxx +++ /dev/null @@ -1,42 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef SVTOOLS_COLLATORRESOURCE_HXX -#define SVTOOLS_COLLATORRESOURCE_HXX - -#include "svtools/svtdllapi.h" -#include - -class CollatorResourceData; - -class SVT_DLLPUBLIC CollatorResource -{ - private: - - CollatorResourceData *mp_Data; - - public: - CollatorResource(); - ~CollatorResource(); - const OUString& GetTranslation (const OUString& r_Algorithm); -}; - -#endif /* SVTOOLS_COLLATORRESOURCE_HXX */ - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/colorcfg.hxx b/svtools/inc/svtools/colorcfg.hxx deleted file mode 100644 index 2ea6649bdb8c..000000000000 --- a/svtools/inc/svtools/colorcfg.hxx +++ /dev/null @@ -1,138 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef INCLUDED_SVTOOLS_COLORCFG_HXX -#define INCLUDED_SVTOOLS_COLORCFG_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include -#include -#include - -//----------------------------------------------------------------------------- -namespace svtools{ -enum ColorConfigEntry -{ - DOCCOLOR , - DOCBOUNDARIES , - APPBACKGROUND , - OBJECTBOUNDARIES , - TABLEBOUNDARIES , - FONTCOLOR , - LINKS , - LINKSVISITED , - SPELL , - SMARTTAGS , - SHADOWCOLOR , - WRITERTEXTGRID , - WRITERFIELDSHADINGS , - WRITERIDXSHADINGS , - WRITERDIRECTCURSOR , - WRITERSCRIPTINDICATOR, - WRITERSECTIONBOUNDARIES, - WRITERHEADERFOOTERMARK, - WRITERPAGEBREAKS, - HTMLSGML , - HTMLCOMMENT , - HTMLKEYWORD , - HTMLUNKNOWN , - CALCGRID , - CALCPAGEBREAK , - CALCPAGEBREAKMANUAL, - CALCPAGEBREAKAUTOMATIC, - CALCDETECTIVE , - CALCDETECTIVEERROR , - CALCREFERENCE , - CALCNOTESBACKGROUND , - DRAWGRID , - BASICIDENTIFIER, - BASICCOMMENT , - BASICNUMBER , - BASICSTRING , - BASICOPERATOR , - BASICKEYWORD , - BASICERROR , - SQLIDENTIFIER, - SQLNUMBER, - SQLSTRING, - SQLOPERATOR, - SQLKEYWORD, - SQLPARAMETER, - SQLCOMMENT, - ColorConfigEntryCount -}; - -class ColorConfig_Impl; -struct ColorConfigValue -{ - - sal_Bool bIsVisible; //validity depends on the element type - sal_Int32 nColor; - ColorConfigValue() : bIsVisible(sal_False), nColor(0) {} - sal_Bool operator !=(const ColorConfigValue& rCmp) const - { return nColor != rCmp.nColor || bIsVisible != rCmp.bIsVisible;} -}; - -class SVT_DLLPUBLIC ColorConfig: - public utl::detail::Options -{ - friend class ColorConfig_Impl; -private: - static ColorConfig_Impl* m_pImpl; -public: - ColorConfig(); - virtual ~ColorConfig(); - - // get the configured value - if bSmart is set the default color setting is provided - // instead of the automatic color - ColorConfigValue GetColorValue(ColorConfigEntry eEntry, sal_Bool bSmart = sal_True)const; - static Color GetDefaultColor(ColorConfigEntry eEntry); -}; - -class SVT_DLLPUBLIC EditableColorConfig -{ - ColorConfig_Impl* m_pImpl; - sal_Bool m_bModified; -public: - EditableColorConfig(); - ~EditableColorConfig(); - - ::com::sun::star::uno::Sequence< OUString > GetSchemeNames() const; - void DeleteScheme(const OUString& rScheme ); - void AddScheme(const OUString& rScheme ); - sal_Bool LoadScheme(const OUString& rScheme ); - const OUString& GetCurrentSchemeName()const; - void SetCurrentSchemeName(const OUString& rScheme); - - const ColorConfigValue& GetColorValue(ColorConfigEntry eEntry)const; - void SetColorValue(ColorConfigEntry eEntry, const ColorConfigValue& rValue); - void SetModified(); - void ClearModified(){m_bModified = sal_False;} - sal_Bool IsModified()const{return m_bModified;} - void Commit(); - - void DisableBroadcast(); - void EnableBroadcast(); -}; -}//namespace svtools -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/colrdlg.hxx b/svtools/inc/svtools/colrdlg.hxx deleted file mode 100644 index ce155302865b..000000000000 --- a/svtools/inc/svtools/colrdlg.hxx +++ /dev/null @@ -1,60 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SV_COLRDLG_HXX -#define _SV_COLRDLG_HXX - -#include "svtools/svtdllapi.h" - -#include - -class Window; - -// --------------- -// - ColorDialog - -// --------------- - -namespace svtools -{ - // SELECT is the default - enum ColorPickerMode { ColorPickerMode_SELECT = 0, ColorPickerMode_ADD = 1, ColorPickerMode_MODIFY = 2 }; -} - -class SVT_DLLPUBLIC SvColorDialog -{ -public: - SvColorDialog( ::Window* pParent ); - virtual ~SvColorDialog(); - - void SetColor( const Color& rColor ); - const Color& GetColor() const; - - void SetMode( sal_Int16 eMode ); - - virtual short Execute(); - -private: - Window* mpParent; - Color maColor; - sal_Int16 meMode; -}; - -#endif // _SV_COLRDLG_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/contextmenuhelper.hxx b/svtools/inc/svtools/contextmenuhelper.hxx deleted file mode 100644 index 258da5dedbfb..000000000000 --- a/svtools/inc/svtools/contextmenuhelper.hxx +++ /dev/null @@ -1,116 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_SVTOOLS_CONTEXTMENUHELPER_HXX -#define INCLUDED_SVTOOLS_CONTEXTMENUHELPER_HXX - -#include -#include -#include -#include -#include - -#include -#include -#include -#include "svtools/svtdllapi.h" - -namespace svt -{ - -/** - Context menu helper class. - - Fills images and labels for a provided popup menu or - com.sun.star.awt.XPopupMenu. - - PRECONDITION: - All commands must be set via SetItemCommand and are part - of the configuration files - (see org.openoffice.Office.UI.[Module]Commands.xcu) -*/ -struct ExecuteInfo; -class SVT_DLLPUBLIC ContextMenuHelper -{ - public: - // create context menu helper - // ARGS: xFrame = frame defines the context of the context menu - // bAutoRefresh = specifies that the context will be constant or not - ContextMenuHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame, bool bAutoRefresh=true ); - ~ContextMenuHelper(); - - // methods to complete a popup menu (set images, labels, enable/disable states) - // ATTENTION: The item ID's must be unique for the whole popup (inclusive the sub menus!) - void completeAndExecute( const Point& aPos, PopupMenu& aPopupMenu ); - void completeAndExecute( const Point& aPos, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPopupMenu >& xPopupMenu ); - - private: - // asynchronous link to prevent destruction while on stack - DECL_STATIC_LINK( ContextMenuHelper, ExecuteHdl_Impl, ExecuteInfo* ); - - // no copy-ctor and operator= - ContextMenuHelper( const ContextMenuHelper& ); - const ContextMenuHelper& operator=( const ContextMenuHelper& ); - - // show context menu and dispatch command automatically - void executePopupMenu( const Point& aPos, PopupMenu* pMenu ); - - // fill image and label for every menu item on the provided menu - void completeMenuProperties( Menu* pMenu ); - - // dispatch provided command - bool dispatchCommand( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame, const OUString& aCommandURL ); - - - // methods to retrieve a single command URL dependent value from a - // ui configuratin manager - Image getImageFromCommandURL( const OUString& aCmdURL ) const; - OUString getLabelFromCommandURL( const OUString& aCmdURL ) const; - - // creates an association between current module/controller bound to the - // provided frame and their ui configuration managers. - bool associateUIConfigurationManagers(); - - // resets associations to create associations again on-demand. - // Useful for implementations which recycle frames. Normal - // implementations can profit from caching and should set - // auto refresh on ctor to false (default). - void resetAssociations() - { - if ( m_bAutoRefresh ) - m_bUICfgMgrAssociated = false; - } - - ::com::sun::star::uno::WeakReference< ::com::sun::star::frame::XFrame > m_xWeakFrame; - OUString m_aModuleIdentifier; - OUString m_aSelf; - ::com::sun::star::uno::Reference< ::com::sun::star::util::XURLTransformer > m_xURLTransformer; - ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aDefaultArgs; - ::com::sun::star::uno::Reference< ::com::sun::star::ui::XImageManager > m_xDocImageMgr; - ::com::sun::star::uno::Reference< ::com::sun::star::ui::XImageManager > m_xModuleImageMgr; - ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xUICommandLabels; - bool m_bAutoRefresh; - bool m_bUICfgMgrAssociated; -}; - -} // namespace svt - -#endif // INCLUDED_SVTOOLS_CONTEXTMENUHELPER_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/controldims.hrc b/svtools/inc/svtools/controldims.hrc deleted file mode 100644 index 2d01ddc668e1..000000000000 --- a/svtools/inc/svtools/controldims.hrc +++ /dev/null @@ -1,93 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVT_CONTROLDIMS_HRC_ -#define _SVT_CONTROLDIMS_HRC_ - -// -// From: Dialogue Specification and Guidelines - Visual Design V1.3 -// by Christian Jansen -// - -// -// Usage: -// ====== -// -// all values have to be mapped by MAP_APPFONT -// - -// Base -#define RSC_BS_CHARHEIGHT 8 -#define RSC_BS_CHARWIDTH 4 - -// control dimensions -#define RSC_CD_PUSHBUTTON_WIDTH 50 -#define RSC_CD_PUSHBUTTON_HEIGHT 14 - -#define RSC_CD_FIXEDTEXT_HEIGHT RSC_BS_CHARHEIGHT -#define RSC_CD_FIXEDLINE_HEIGHT RSC_BS_CHARHEIGHT -#define RSC_CD_FIXEDLINE_WIDTH RSC_BS_CHARWIDTH // for vertical FixedLines - -#define RSC_CD_DROPDOWN_HEIGHT 12 // also combobox and dropdown list -#define RSC_CD_TEXTBOX_HEIGHT 12 // also numeric fields etc. - -#define RSC_CD_CHECKBOX_HEIGHT 10 // also tristate -#define RSC_CD_RADIOBUTTON_HEIGHT 10 - -// spacings -#define RSC_SP_CTRL_X 6 // controls that are unrelated -#define RSC_SP_CTRL_Y 7 -#define RSC_SP_CTRL_GROUP_X 3 // related controls, or controls in a groupbox -#define RSC_SP_CTRL_GROUP_Y 4 -#define RSC_SP_CTRL_DESC_X 3 // between description text and related control -#define RSC_SP_CTRL_DESC_Y 3 - -// overruled spacings between certain controls -#define RSC_SP_FLGR_SPACE_X 6 // between groupings made with FixedLine -#define RSC_SP_FLGR_SPACE_Y 4 -#define RSC_SP_GRP_SPACE_X 6 // between groupings made with GroupBox -#define RSC_SP_GRP_SPACE_Y 6 -#define RSC_SP_CHK_TEXTINDENT 8 // x indent of text aligned to checkbox title - -// dialog inner border -#define RSC_SP_DLG_INNERBORDER_LEFT 6 -#define RSC_SP_DLG_INNERBORDER_TOP 6 -#define RSC_SP_DLG_INNERBORDER_RIGHT 6 -#define RSC_SP_DLG_INNERBORDER_BOTTOM 6 - -// tab page inner border -#define RSC_SP_TBPG_INNERBORDER_LEFT 6 // for tabpage groupings -#define RSC_SP_TBPG_INNERBORDER_TOP 3 -#define RSC_SP_TBPG_INNERBORDER_RIGHT 6 -#define RSC_SP_TBPG_INNERBORDER_BOTTOM 6 - -// FixedLine group inner border -#define RSC_SP_FLGR_INNERBORDER_LEFT 6 // for FixedLine groupings -#define RSC_SP_FLGR_INNERBORDER_TOP 3 -#define RSC_SP_FLGR_INNERBORDER_RIGHT 0 -#define RSC_SP_FLGR_INNERBORDER_BOTTOM 0 - -// GroupBox inner border -#define RSC_SP_GRP_INNERBORDER_LEFT 6 // for GroupBox groupings -#define RSC_SP_GRP_INNERBORDER_TOP 6 -#define RSC_SP_GRP_INNERBORDER_RIGHT 6 - -#endif // _SVT_CONTROLDIMS_HRC_ - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/ctrlbox.hxx b/svtools/inc/svtools/ctrlbox.hxx deleted file mode 100644 index 39e5bb02bcc0..000000000000 --- a/svtools/inc/svtools/ctrlbox.hxx +++ /dev/null @@ -1,552 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _CTRLBOX_HXX -#define _CTRLBOX_HXX - -#include "svtools/svtdllapi.h" - -#include -#include -#include -#include -#include -#include -#include - -class FontList; -class ImplColorListData; -class ImpLineListData; - -typedef ::std::vector< ImplColorListData* > ImpColorList; -typedef ::std::vector< ImpLineListData* > ImpLineList; -typedef ::std::vector< FontInfo > ImplFontList; - -// FIXME: STYLE_* duplicate values from editeng::SvxBorderStyle, -// which in turn duplicates values from com::sun::star::table::BorderLineStyle: -// this needs cleaning up on master -#define STYLE_SOLID ( ( sal_uInt16 ) 0 ) -#define STYLE_DOTTED ( ( sal_uInt16 ) 1 ) -#define STYLE_DASHED ( ( sal_uInt16 ) 2 ) -#define STYLE_FINE_DASHED ( ( sal_uInt16 ) 14 ) -#define STYLE_NONE ( ( sal_uInt16 ) -1) - -#define CHANGE_LINE1 ( ( sal_uInt16 ) 1 ) -#define CHANGE_LINE2 ( ( sal_uInt16 ) 2 ) -#define CHANGE_DIST ( ( sal_uInt16 ) 4 ) -#define ADAPT_DIST ( ( sal_uInt16 ) 8 ) - - - -/************************************************************************* - -Description -============ - -class ColorListBox - -Description - -Allows color selection - --------------------------------------------------------------------------- - -class LineListBox - -Description - -Allows selection of line styles and sizes. Not that before first insert, -units and window size need to be set. Supported units are typographic point -(pt) and millimeters (mm). For SourceUnit, pt, mm and twips are supported. -All scalar numbers in 1/100 of the corresponding unit. - -Line1 is the outer, Line2 the inner line, Distance is the distance between -these two lines. If Line2 == 0, only Line1 will be shown. Defaults for -source and target unit are FUNIT_POINT. - -SetColor() sets the line color. - -Remarks - -Contrary to a simple ListBox, user-specific data are not supported. -If UpdateMode is disabled, no data should be read, no selections -should be set, and the return code shall be ignore, as in these are -not defined in this mode. Also the bit WinBit WB_SORT may not be set. - --------------------------------------------------------------------------- - -class FontNameBox - -Description - -Allows selection of fonts. The ListBox will be filled using Fill parameter, -which is pointer to an FontList object. - -Calling EnableWYSIWYG() enables rendering the font name in the currently -selected font. - -See also - -FontList; FontStyleBox; FontSizeBox; FontNameMenu - --------------------------------------------------------------------------- - -class FontStyleBox - -Description - -Allows select of FontStyle's. The parameter Fill points to a list -of available font styles for the font. - -Reproduced styles are always added - this could change in future, as -potentially not all applications [Draw,Equation,FontWork] can properly -handle synthetic fonts. On filling, the previous name will be retained -if possible. - -For DontKnow, the FontStyleBox should be filled with String(), -so it will contain a list with the default attributes. The currently -shown style probably needs to be reset by the application. - -See also - -FontList; FontNameBox; FontSizeBox; - --------------------------------------------------------------------------- - -class FontSizeBox - -Description - -Allows selection of font sizes. The values are retrieved via GetValue() -and set via SetValue(). The Fill parameter fills the ListBox with the -available sizes for the passed font. - -All sizes are in 1/10 typographic point (pt). - -The passed FontList must be retained until the next fill call. - -Additionally it supports an relative mod, which allows entering -percentage values. This, eg., can be useful for template dialogs. -This mode can only be enabled, but not disabled again. - -For DontKnow the FontSizeBox should be filled FontInfo(), so it will -contain an list with the standard sizes. Th currently shown size -probably needs to be reset by the application. - -See also - -FontList; FontNameBox; FontStyleBox; FontSizeMenu - -*************************************************************************/ - -// ---------------- -// - ColorListBox - -// ---------------- - -class SVT_DLLPUBLIC ColorListBox : public ListBox -{ - ImpColorList* pColorList; // separate liste, in case of user data are required from outside - Size aImageSize; - -#ifdef _CTRLBOX_CXX - using Window::ImplInit; - SVT_DLLPRIVATE void ImplInit(); - SVT_DLLPRIVATE void ImplDestroyColorEntries(); -#endif -public: - ColorListBox( Window* pParent, - WinBits nWinStyle = WB_BORDER ); - ColorListBox( Window* pParent, const ResId& rResId ); - virtual ~ColorListBox(); - - virtual void UserDraw( const UserDrawEvent& rUDEvt ); - - using ListBox::InsertEntry; - virtual sal_uInt16 InsertEntry( const XubString& rStr, - sal_uInt16 nPos = LISTBOX_APPEND ); - virtual sal_uInt16 InsertEntry( const Color& rColor, const XubString& rStr, - sal_uInt16 nPos = LISTBOX_APPEND ); - void InsertAutomaticEntryColor(const Color &rAutoColorValue); - bool IsAutomaticSelected() { return !GetSelectEntryPos(); } - using ListBox::RemoveEntry; - virtual void RemoveEntry( sal_uInt16 nPos ); - virtual void Clear(); - void CopyEntries( const ColorListBox& rBox ); - - using ListBox::GetEntryPos; - virtual sal_uInt16 GetEntryPos( const Color& rColor ) const; - virtual Color GetEntryColor( sal_uInt16 nPos ) const; - Size GetImageSize() const { return aImageSize; } - - void SelectEntry( const XubString& rStr, sal_Bool bSelect = sal_True ) - { ListBox::SelectEntry( rStr, bSelect ); } - void SelectEntry( const Color& rColor, sal_Bool bSelect = sal_True ); - XubString GetSelectEntry( sal_uInt16 nSelIndex = 0 ) const - { return ListBox::GetSelectEntry( nSelIndex ); } - Color GetSelectEntryColor( sal_uInt16 nSelIndex = 0 ) const; - sal_Bool IsEntrySelected( const XubString& rStr ) const - { return ListBox::IsEntrySelected( rStr ); } - - sal_Bool IsEntrySelected( const Color& rColor ) const; - -private: - // declared as private because some compilers would generate the default functions - ColorListBox( const ColorListBox& ); - ColorListBox& operator =( const ColorListBox& ); - - void SetEntryData( sal_uInt16 nPos, void* pNewData ); - void* GetEntryData( sal_uInt16 nPos ) const; -}; - -inline void ColorListBox::SelectEntry( const Color& rColor, sal_Bool bSelect ) -{ - sal_uInt16 nPos = GetEntryPos( rColor ); - if ( nPos != LISTBOX_ENTRY_NOTFOUND ) - ListBox::SelectEntryPos( nPos, bSelect ); -} - -inline sal_Bool ColorListBox::IsEntrySelected( const Color& rColor ) const -{ - sal_uInt16 nPos = GetEntryPos( rColor ); - if ( nPos != LISTBOX_ENTRY_NOTFOUND ) - return IsEntryPosSelected( nPos ); - else - return sal_False; -} - -inline Color ColorListBox::GetSelectEntryColor( sal_uInt16 nSelIndex ) const -{ - sal_uInt16 nPos = GetSelectEntryPos( nSelIndex ); - Color aColor; - if ( nPos != LISTBOX_ENTRY_NOTFOUND ) - aColor = GetEntryColor( nPos ); - return aColor; -} - -// --------------- -// - LineListBox - -// --------------- - -/** - Class computing border widths shared between Line style listbox and the - SvxBorderLine implementation. - - This class doesn't know anything about units: it all depends on the different - values set. A border is composed of 2 lines separated by a gap. The computed - widths are the ones of each line and the gap and they can either be fix or vary. - - The #m_nflags member will define which widths will vary (value 0 means that all - widths are fixed). The available flags are: - - CHANGE_LINE1 - - CHANGE_LINE2 - - CHANGE_DIST - - For each line, the rate member is used as a multiplication factor is the width - isn't fixed. Otherwise it is the width in the unit expected by the client code. - */ -class SVT_DLLPUBLIC BorderWidthImpl -{ - sal_uInt16 m_nFlags; - double m_nRate1; - double m_nRate2; - double m_nRateGap; - -public: - - BorderWidthImpl( sal_uInt16 nFlags = CHANGE_LINE1, double nRate1 = 0.0, - double nRate2 = 0.0, double nRateGap = 0.0 ); - - BorderWidthImpl& operator= ( const BorderWidthImpl& r ); - bool operator== ( const BorderWidthImpl& r ) const; - - long GetLine1 ( long nWidth ) const; - long GetLine2( long nWidth ) const; - long GetGap( long nWidth ) const; - - long GuessWidth( long nLine1, long nLine2, long nGap ); - - bool IsEmpty( ) const { return (0 == m_nRate1) && (0 == m_nRate2); } - bool IsDouble( ) const { return (0 != m_nRate1) && (0 != m_nRate2); } -}; - -SVT_DLLPUBLIC inline Color sameColor( Color rMain ) -{ - return rMain; -} - -SVT_DLLPUBLIC inline Color sameDistColor( Color /*rMain*/, Color rDefault ) -{ - return rDefault; -} - - -class SVT_DLLPUBLIC LineListBox : public ListBox -{ - ImpLineList* pLineList; - long m_nWidth; - XubString m_sNone; - - VirtualDevice aVirDev; - Size aTxtSize; - Color aColor; - Color maPaintCol; - FieldUnit eUnit; - FieldUnit eSourceUnit; - - SVT_DLLPRIVATE void ImpGetLine( long nLine1, long nLine2, long nDistance, - Color nColor1, Color nColor2, Color nColorDist, - sal_uInt16 nStyle, Bitmap& rBmp ); - using Window::ImplInit; - SVT_DLLPRIVATE void ImplInit(); - sal_Bool UpdatePaintLineColor( void ); // returns sal_True if maPaintCol has changed - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - - void UpdateEntries( long nOldWidth ); - sal_uInt16 GetStylePos( sal_uInt16 nListPos, long nWidth ); - -public: - LineListBox( Window* pParent, WinBits nWinStyle = WB_BORDER ); - LineListBox( Window* pParent, const ResId& rResId ); - virtual ~LineListBox(); - - /** Set the width in Twips */ - void SetWidth( long nWidth ); - void SetNone( const XubString& sNone ); - - using ListBox::InsertEntry; - virtual sal_uInt16 InsertEntry( const XubString& rStr, sal_uInt16 nPos = LISTBOX_APPEND ); - /** Insert a listbox entry with all widths in Twips. */ - void InsertEntry( BorderWidthImpl aWidthImpl, - sal_uInt16 nStyle, long nMinWidth = 0, - Color (*pColor1Fn)(Color) = &sameColor, - Color (*pColor2Fn)( Color ) = &sameColor, - Color (*pColorDistFn)( Color, Color ) = &sameDistColor ); - - using ListBox::RemoveEntry; - virtual void RemoveEntry( sal_uInt16 nPos ); - virtual void Clear(); - - using ListBox::GetEntryPos; - virtual sal_uInt16 GetEntryPos( sal_uInt16 nStyle = STYLE_SOLID ) const; - sal_uInt16 GetEntryStyle( sal_uInt16 nPos ) const; - - void SelectEntry( const XubString& rStr, sal_Bool bSelect = sal_True ) { ListBox::SelectEntry( rStr, bSelect ); } - void SelectEntry( sal_uInt16 nStyle = STYLE_SOLID, sal_Bool bSelect = sal_True ); - sal_uInt16 GetSelectEntryStyle( sal_uInt16 nSelIndex = 0 ) const; - inline sal_Bool IsEntrySelected( const XubString& rStr ) const { return ListBox::IsEntrySelected( rStr ); } - sal_Bool IsEntrySelected( sal_uInt16 nStyle1 = STYLE_SOLID ) const; - - inline void SetUnit( FieldUnit eNewUnit ) { eUnit = eNewUnit; } - inline FieldUnit GetUnit() const { return eUnit; } - inline void SetSourceUnit( FieldUnit eNewUnit ) { eSourceUnit = eNewUnit; } - inline FieldUnit GetSourceUnit() const { return eSourceUnit; } - - void SetColor( const Color& rColor ); - inline Color GetColor( void ) const; - -protected: - - inline const Color& GetPaintColor( void ) const; - Color GetColorLine1( sal_uInt16 nPos = 0 ); - Color GetColorLine2( sal_uInt16 nPos = 0 ); - Color GetColorDist( sal_uInt16 nPos = 0 ); - -private: - // declared as private because some compilers would generate the default methods - LineListBox( const LineListBox& ); - LineListBox& operator =( const LineListBox& ); - void SetEntryData( sal_uInt16 nPos, void* pNewData ); - void* GetEntryData( sal_uInt16 nPos ) const; -}; - -inline sal_Bool LineListBox::IsEntrySelected( sal_uInt16 nStyle ) const -{ - sal_uInt16 nPos = GetEntryPos( nStyle ); - if ( nPos != LISTBOX_ENTRY_NOTFOUND ) - return IsEntryPosSelected( nPos ); - else - return sal_False; -} - -inline void LineListBox::SetColor( const Color& rColor ) -{ - aColor = rColor; - - UpdateEntries( m_nWidth ); -} - -inline Color LineListBox::GetColor( void ) const -{ - return aColor; -} - -const Color& LineListBox::GetPaintColor( void ) const -{ - return maPaintCol; -} - -inline void LineListBox::SetWidth( long nWidth ) -{ - long nOldWidth = m_nWidth; - m_nWidth = nWidth; - UpdateEntries( nOldWidth ); -} - -inline void LineListBox::SetNone( const XubString& sNone ) -{ - m_sNone = sNone; -} - -// --------------- -// - FontNameBox - -// --------------- - -class SVT_DLLPUBLIC FontNameBox : public ComboBox -{ -private: - ImplFontList* mpFontList; - sal_Bool mbWYSIWYG; - String maFontMRUEntriesFile; - -#ifdef _CTRLBOX_CXX - SVT_DLLPRIVATE void ImplCalcUserItemSize(); - SVT_DLLPRIVATE void ImplDestroyFontList(); -#endif - -protected: - void LoadMRUEntries( const String& aFontMRUEntriesFile, sal_Unicode cSep = ';' ); - void SaveMRUEntries( const String& aFontMRUEntriesFile, sal_Unicode cSep = ';' ) const; -public: - FontNameBox( Window* pParent, - WinBits nWinStyle = WB_SORT ); - FontNameBox( Window* pParent, const ResId& rResId ); - virtual ~FontNameBox(); - - virtual void UserDraw( const UserDrawEvent& rUDEvt ); - - void Fill( const FontList* pList ); - - void EnableWYSIWYG( sal_Bool bEnable = sal_True ); - sal_Bool IsWYSIWYGEnabled() const { return mbWYSIWYG; } - -private: - void InitFontMRUEntriesFile(); - - // declared as private because some compilers would generate the default functions - FontNameBox( const FontNameBox& ); - FontNameBox& operator =( const FontNameBox& ); -}; - -// ---------------- -// - FontStyleBox - -// ---------------- - -class SVT_DLLPUBLIC FontStyleBox : public ComboBox -{ - XubString aLastStyle; - -private: - using ComboBox::SetText; -public: - FontStyleBox( Window* pParent, const ResId& rResId ); - FontStyleBox( Window* pParent, WinBits nBits ); - virtual ~FontStyleBox(); - - virtual void Select(); - virtual void LoseFocus(); - virtual void Modify(); - - void SetText( const OUString& rText ); - void Fill( const XubString& rName, const FontList* pList ); - -private: - // declared as private because some compilers would generate the default functions - FontStyleBox( const FontStyleBox& ); - FontStyleBox& operator =( const FontStyleBox& ); -}; - -inline void FontStyleBox::SetText( const OUString& rText ) -{ - aLastStyle = rText; - ComboBox::SetText( rText ); -} - -// --------------- -// - FontSizeBox - -// --------------- - -class SVT_DLLPUBLIC FontSizeBox : public MetricBox -{ - FontInfo aFontInfo; - const FontList* pFontList; - sal_uInt16 nRelMin; - sal_uInt16 nRelMax; - sal_uInt16 nRelStep; - short nPtRelMin; - short nPtRelMax; - short nPtRelStep; - sal_Bool bRelativeMode:1, - bRelative:1, - bPtRelative:1, - bStdSize:1; - -#ifdef _CTRLBOX_CXX - using Window::ImplInit; - SVT_DLLPRIVATE void ImplInit(); -#endif - -protected: - virtual OUString CreateFieldText( sal_Int64 nValue ) const; - -public: - FontSizeBox( Window* pParent, WinBits nWinStyle = 0 ); - FontSizeBox( Window* pParent, const ResId& rResId ); - virtual ~FontSizeBox(); - - void Reformat(); - void Modify(); - - void Fill( const FontInfo* pInfo, const FontList* pList ); - - void EnableRelativeMode( sal_uInt16 nMin = 50, sal_uInt16 nMax = 150, - sal_uInt16 nStep = 5 ); - void EnablePtRelativeMode( short nMin = -200, short nMax = 200, - short nStep = 10 ); - sal_Bool IsRelativeMode() const { return bRelativeMode; } - void SetRelative( sal_Bool bRelative = sal_False ); - sal_Bool IsRelative() const { return bRelative; } - void SetPtRelative( sal_Bool bPtRel = sal_True ) - { bPtRelative = bPtRel; SetRelative( sal_True ); } - sal_Bool IsPtRelative() const { return bPtRelative; } - - virtual void SetValue( sal_Int64 nNewValue, FieldUnit eInUnit ); - virtual void SetValue( sal_Int64 nNewValue ); - virtual sal_Int64 GetValue( FieldUnit eOutUnit ) const; - virtual sal_Int64 GetValue() const; - sal_Int64 GetValue( sal_uInt16 nPos, FieldUnit eOutUnit ) const; - -private: - // declared as private because some compilers would generate the default functions - FontSizeBox( const FontSizeBox& ); - FontSizeBox& operator =( const FontSizeBox& ); -}; - -#endif // _CTRLBOX_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/ctrltool.hxx b/svtools/inc/svtools/ctrltool.hxx deleted file mode 100644 index b90f1b67a532..000000000000 --- a/svtools/inc/svtools/ctrltool.hxx +++ /dev/null @@ -1,241 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _CTRLTOOL_HXX -#define _CTRLTOOL_HXX - -#include - -#include "svtools/svtdllapi.h" -#include -#include -#include - -class ImplFontListNameInfo; -class OutputDevice; - -/************************************************************************* - -Beschreibung -============ - -class FontList - -Diese Klasse verwaltet alle Fonts, die auf einem oder zwei Ausgabegeraeten -dargestellt werden koennen. Zusaetzlich bietet die Klasse Methoden an, um -aus Fett und Kursiv den StyleName zu generieren oder aus einem Stylename -die fehlenden Attribute. Zusaetzlich kann diese Klasse syntetisch nachgebildete -Fonts verarbeiten. Diese Klasse kann mit verschiedenen Standard-Controls und -Standard-Menus zusammenarbeiten. - -Querverweise - -class FontNameBox, class FontStyleBox, class FontSizeBox, -class FontNameMenu, class FontSizeMenu - --------------------------------------------------------------------------- - -FontList::FontList( OutputDevice* pDevice, OutputDevice* pDevice2 = NULL, - sal_Bool bAll = sal_True ); - -Konstruktor der Klasse FontList. Vom uebergebenen OutputDevice werden die -entsprechenden Fonts abgefragt. Das OutputDevice muss solange existieren, -wie auch die Klasse FontList existiert. Optional kann noch ein 2tes -Ausgabedevice uebergeben werden, damit man zum Beispiel die Fonts von -einem Drucker und dem Bildschirm zusammen in einer FontListe verwalten kann -und somit auch den FontListen und FontMenus die Fonts von beiden OutputDevices -zu uebergeben. Auch das pDevice2 muss solange existieren, wie die Klasse -FontList existiert. - -Das OutputDevice, welches als erstes uebergeben wird, sollte das bevorzugte -sein. Dies sollte im normalfall der Drucker sein. Denn wenn 2 verschiede -Device-Schriften (eine fuer Drucker und eine fuer den Bildschirm) vorhanden -sind, wird die vom uebergebenen Device "pDevice" bevorzugt. - -Mit dem dritten Parameter kann man angeben, ob nur skalierbare Schriften -abgefragt werden sollen oder alle. Wenn sal_True uebergeben wird, werden auch -Bitmap-Schriften mit abgefragt. Bei sal_False werden Vector-Schriften und -scalierbare Schriften abgefragt. - --------------------------------------------------------------------------- - -String FontList::GetStyleName( const FontInfo& rInfo ) const; - -Diese Methode gibt den StyleName von einer FontInfo zurueck. Falls kein -StyleName gesetzt ist, wird aus den gesetzten Attributen ein entsprechender -Name generiert, der dem Anwender praesentiert werden kann. - --------------------------------------------------------------------------- - -XubString FontList::GetFontMapText( const FontInfo& rInfo ) const; - -Diese Methode gibt einen Matchstring zurueck, der dem Anwender -anzeigen soll, welche Probleme es mit diesem Font geben kann. - --------------------------------------------------------------------------- - -FontInfo FontList::Get( const String& rName, const String& rStyleName ) const; - -Diese Methode sucht aus dem uebergebenen Namen und dem uebergebenen StyleName -die entsprechende FontInfo-Struktur raus. Der Stylename kann in dieser -Methode auch ein syntetischer sein. In diesem Fall werden die entsprechenden -Werte in der FontInfo-Struktur entsprechend gesetzt. Wenn ein StyleName -uebergeben wird, kann jedoch eine FontInfo-Struktur ohne Stylename -zurueckgegeben werden. Um den StyleName dem Anwender zu repraesentieren, -muss GetStyleName() mit dieser FontInfo-Struktur aufgerufen werden. - -Querverweise - -FontList::GetStyleName() - --------------------------------------------------------------------------- - -FontInfo FontList::Get( const String& rName, FontWeight eWeight, - FontItalic eItalic ) const; - -Diese Methode sucht aus dem uebergebenen Namen und den uebergebenen Styles -die entsprechende FontInfo-Struktur raus. Diese Methode kann auch eine -FontInfo-Struktur ohne Stylename zurueckgegeben. Um den StyleName dem -Anwender zu repraesentieren, muss GetStyleName() mit dieser FontInfo-Struktur -aufgerufen werden. - -Querverweise - -FontList::GetStyleName() - --------------------------------------------------------------------------- - -const long* FontList::GetSizeAry( const FontInfo& rInfo ) const; - -Diese Methode liefert zum uebergebenen Font die vorhandenen Groessen. -Falls es sich dabei um einen skalierbaren Font handelt, werden Standard- -Groessen zurueckgegeben. Das Array enthaelt die Hoehen des Fonts in 10tel -Point. Der letzte Wert des Array ist 0. Das Array, was zurueckgegeben wird, -wird von der FontList wieder zerstoert. Nach dem Aufruf der naechsten Methode -von der FontList, sollte deshalb das Array nicht mehr referenziert werden. - -*************************************************************************/ - -// ------------ -// - FontList - -// ------------ - -#define FONTLIST_FONTINFO_NOTFOUND ((sal_uInt16)0xFFFF) - -#define FONTLIST_FONTNAMETYPE_PRINTER ((sal_uInt16)0x0001) -#define FONTLIST_FONTNAMETYPE_SCREEN ((sal_uInt16)0x0002) - -class SVT_DLLPUBLIC FontList -{ -private: - OUString maMapBoth; - OUString maMapPrinterOnly; - OUString maMapScreenOnly; - OUString maMapSizeNotAvailable; - OUString maMapStyleNotAvailable; - OUString maMapNotAvailable; - OUString maLight; - OUString maLightItalic; - OUString maNormal; - OUString maNormalItalic; - OUString maBold; - OUString maBoldItalic; - OUString maBlack; - OUString maBlackItalic; - long* mpSizeAry; - OutputDevice* mpDev; - OutputDevice* mpDev2; - boost::ptr_vector maEntries; -#ifdef CTRLTOOL_CXX - SVT_DLLPRIVATE ImplFontListNameInfo* ImplFind( const OUString& rSearchName, sal_uLong* pIndex ) const; - SVT_DLLPRIVATE ImplFontListNameInfo* ImplFindByName( const OUString& rStr ) const; - SVT_DLLPRIVATE void ImplInsertFonts( OutputDevice* pDev, sal_Bool bAll, - sal_Bool bInsertData ); -#endif - -public: - FontList( OutputDevice* pDevice, - OutputDevice* pDevice2 = NULL, - sal_Bool bAll = sal_True ); - ~FontList(); - - FontList* Clone() const; - - OutputDevice* GetDevice() const { return mpDev; } - OutputDevice* GetDevice2() const { return mpDev2; } - XubString GetFontMapText( const FontInfo& rInfo ) const; - - const OUString& GetNormalStr() const { return maNormal; } - const OUString& GetItalicStr() const { return maNormalItalic; } - const OUString& GetBoldStr() const { return maBold; } - const OUString& GetBoldItalicStr() const { return maBoldItalic; } - const OUString& GetStyleName( FontWeight eWeight, FontItalic eItalic ) const; - OUString GetStyleName( const FontInfo& rInfo ) const; - - FontInfo Get( const OUString& rName, - const OUString& rStyleName ) const; - FontInfo Get( const OUString& rName, - FontWeight eWeight, - FontItalic eItalic ) const; - - sal_Bool IsAvailable( const OUString& rName ) const; - sal_uInt16 GetFontNameCount() const - { - return (sal_uInt16)maEntries.size(); - } - const FontInfo& GetFontName( sal_uInt16 nFont ) const; - sal_Handle GetFirstFontInfo( const OUString& rName ) const; - sal_Handle GetNextFontInfo( sal_Handle hFontInfo ) const; - const FontInfo& GetFontInfo( sal_Handle hFontInfo ) const; - - const long* GetSizeAry( const FontInfo& rInfo ) const; - static const long* GetStdSizeAry(); - -private: - FontList( const FontList& ); - FontList& operator =( const FontList& ); -}; - - -// ----------------- -// - FontSizeNames - -// ----------------- - -class SVT_DLLPUBLIC FontSizeNames -{ -private: - const struct ImplFSNameItem* mpArray; - sal_uLong mnElem; - -public: - FontSizeNames( LanguageType eLanguage /* = LANGUAGE_DONTKNOW */ ); - - sal_uLong Count() const { return mnElem; } - sal_Bool IsEmpty() const { return !mnElem; } - - long Name2Size( const String& ) const; - String Size2Name( long ) const; - - String GetIndexName( sal_uLong nIndex ) const; - long GetIndexSize( sal_uLong nIndex ) const; -}; - -#endif // _CTRLTOOL_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/dialogclosedlistener.hxx b/svtools/inc/svtools/dialogclosedlistener.hxx deleted file mode 100644 index afaad3854827..000000000000 --- a/svtools/inc/svtools/dialogclosedlistener.hxx +++ /dev/null @@ -1,69 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_DIALOGCLOSEDLISTENER_HXX -#define _SVTOOLS_DIALOGCLOSEDLISTENER_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include - -//......................................................................... -namespace svt -{ -//......................................................................... - - //===================================================================== - //= ODialogClosedListener - //===================================================================== - /** - C++ class to implement a ::com::sun::star::ui::dialogs::XDialogClosedListener - */ - class SVT_DLLPUBLIC DialogClosedListener : - public ::cppu::WeakImplHelper1< ::com::sun::star::ui::dialogs::XDialogClosedListener > - { - private: - /** - This link will be called when the dialog was closed. - - The link must have the type: - DECL_LINK( DialogClosedHdl, ::com::sun::star::ui::dialogs::DialogClosedEvent* ); - */ - Link m_aDialogClosedLink; - - public: - DialogClosedListener(); - - inline void SetDialogClosedLink( const Link& rLink ) { m_aDialogClosedLink = rLink; } - - // XDialogClosedListener methods - virtual void SAL_CALL dialogClosed( const ::com::sun::star::ui::dialogs::DialogClosedEvent& aEvent ) throw (::com::sun::star::uno::RuntimeException); - - // XEventListener methods - virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw( ::com::sun::star::uno::RuntimeException ); - }; - -//......................................................................... -} // namespace svt -//......................................................................... - -#endif// COMPHELPER_DIALOGCLOSEDLISTENER_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/dialogcontrolling.hxx b/svtools/inc/svtools/dialogcontrolling.hxx deleted file mode 100644 index 56d31d4e7161..000000000000 --- a/svtools/inc/svtools/dialogcontrolling.hxx +++ /dev/null @@ -1,293 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef SVTOOLS_DIALOGCONTROLLING_HXX -#define SVTOOLS_DIALOGCONTROLLING_HXX - -#include - -#include -#include - -#include -#include - -//........................................................................ -namespace svt -{ -//........................................................................ - - //===================================================================== - //= IWindowOperator - //===================================================================== - /** an abstract interface for operating on a ->Window - */ - class SVT_DLLPUBLIC SAL_NO_VTABLE IWindowOperator - { - public: - /** called when an event happened which should be reacted to - - @param _rTrigger - the event which triggered the call. If the Id of the event is 0, then this is the initial - call which is made when ->_rOperateOn is added to the responsibility of the DialogController. - @param _rOperateOn - the window on which to operate - */ - virtual void operateOn( const VclWindowEvent& _rTrigger, Window& _rOperateOn ) const = 0; - - virtual ~IWindowOperator(); - }; - typedef ::boost::shared_ptr< IWindowOperator > PWindowOperator; - - //===================================================================== - //= IWindowEventFilter - //===================================================================== - /** an abstract interface for deciding whether a ->VclWindowEvent - is worth paying attention to - */ - class SVT_DLLPUBLIC SAL_NO_VTABLE IWindowEventFilter - { - public: - virtual bool payAttentionTo( const VclWindowEvent& _rEvent ) const = 0; - - virtual ~IWindowEventFilter(); - }; - typedef ::boost::shared_ptr< IWindowEventFilter > PWindowEventFilter; - - //===================================================================== - //= DialogController - //===================================================================== - struct DialogController_Data; - /** a class controlling interactions between dialog controls - - An instance of this class listens to all events fired by a certain - ->Control (more precise, a ->Window), the so-called instigator. - - Additionally, the ->DialogController maintains a list of windows which - are affected by changes in the instigator window. Let's call those the - dependent windows. - - Now, by help of an owner-provided ->IWindowEventFilter, the ->DialogController - decides which events are worth attention. By help of an owner-provided - ->IWindowOperator, it handles those events for all dependent windows. - */ - class SVT_DLLPUBLIC DialogController - { - private: - ::std::auto_ptr< DialogController_Data > m_pImpl; - - public: - DialogController( Window& _rInstigator, const PWindowEventFilter& _pEventFilter, const PWindowOperator& _pOperator ); - virtual ~DialogController(); - - /** adds a window to the list of dependent windows - - @param _rWindow - The window to add to the list of dependent windows. - - The caller is responsible for life-time control: The given window - must live at least as long as the ->DialogController instance does. - */ - void addDependentWindow( Window& _rWindow ); - - /** resets the controller so that no actions happened anymore. - - The instances is disfunctional after this method has been called. - */ - void reset(); - - private: - void impl_Init(); - void impl_updateAll( const VclWindowEvent& _rTriggerEvent ); - void impl_update( const VclWindowEvent& _rTriggerEvent, Window& _rWindow ); - - DECL_LINK( OnWindowEvent, const VclWindowEvent* ); - - private: - DialogController( const DialogController& ); // never implemented - DialogController& operator=( const DialogController& ); // never implemented - }; - typedef ::boost::shared_ptr< DialogController > PDialogController; - - //===================================================================== - //= ControlDependencyManager - //===================================================================== - struct ControlDependencyManager_Data; - /** helper class for managing control dependencies - - Instances of this class are intended to be held as members of a dialog/tabpage/whatever - class, with easy administration of inter-control dependencies (such as "Enable - control X if and only if checkbox Y is checked). - */ - class SVT_DLLPUBLIC ControlDependencyManager - { - private: - ::std::auto_ptr< ControlDependencyManager_Data > m_pImpl; - - public: - ControlDependencyManager(); - ~ControlDependencyManager(); - - /** clears all dialog controllers previously added to the manager - */ - void clear(); - - /** ensures that a given window is enabled or disabled, according to the check state - of a given radio button - @param _rRadio - denotes the radio button whose check state is to observe - @param _rDependentWindow - denotes the window which should be enabled when ->_rRadio is checked, and - disabled when it's unchecked - */ - void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow ); - void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3 ); - void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4, Window& _rDependentWindow5 ); - - /** ensures that a given window is enabled or disabled, according to the mark state - of a given check box - @param _rBox - denotes the check box whose mark state is to observe - @param _rDependentWindow - denotes the window which should be enabled when ->_rBox is marked, and - disabled when it's unmarked - */ - void enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow ); - void enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow1, Window& _rDependentWindow2 ); - void enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4 ); - - /** adds a non-standard controller whose functionality is not covered by the other methods - - @param _pController - the controller to add to the manager. Must not be . - */ - void addController( const PDialogController& _pController ); - - private: - ControlDependencyManager( const ControlDependencyManager& ); // never implemented - ControlDependencyManager& operator=( const ControlDependencyManager& ); // never implemented - }; - - //===================================================================== - //= EnableOnCheck - //===================================================================== - /** a helper class implementing the ->IWindowOperator interface, - which enables a dependent window depending on the check state of - an instigator window. - - @see DialogController - */ - template< class CHECKABLE > - class SVT_DLLPUBLIC EnableOnCheck : public IWindowOperator - { - public: - typedef CHECKABLE SourceType; - - private: - SourceType& m_rCheckable; - - public: - /** constructs the instance - - @param _rCheckable - a ->Window instance which supports a boolean method IsChecked. Usually - a ->RadioButton or ->CheckBox - */ - EnableOnCheck( SourceType& _rCheckable ) - :m_rCheckable( _rCheckable ) - { - } - - virtual void operateOn( const VclWindowEvent& /*_rTrigger*/, Window& _rOperateOn ) const - { - _rOperateOn.Enable( m_rCheckable.IsChecked() ); - } - }; - - //===================================================================== - //= FilterForRadioOrCheckToggle - //===================================================================== - /** a helper class implementing the ->IWindowEventFilter interface, - which filters for radio buttons or check boxes being toggled. - - Technically, the class simply filters for the ->VCLEVENT_RADIOBUTTON_TOGGLE - and the ->VCLEVENT_CHECKBOX_TOGGLE event. - */ - class SVT_DLLPUBLIC FilterForRadioOrCheckToggle : public IWindowEventFilter - { - const Window& m_rWindow; - public: - FilterForRadioOrCheckToggle( const Window& _rWindow ) - :m_rWindow( _rWindow ) - { - } - - bool payAttentionTo( const VclWindowEvent& _rEvent ) const - { - if ( ( _rEvent.GetWindow() == &m_rWindow ) - && ( ( _rEvent.GetId() == VCLEVENT_RADIOBUTTON_TOGGLE ) - || ( _rEvent.GetId() == VCLEVENT_CHECKBOX_TOGGLE ) - ) - ) - return true; - return false; - } - }; - - //===================================================================== - //= RadioDependentEnabler - //===================================================================== - /** a ->DialogController derivee which enables or disables its dependent windows, - depending on the check state of a radio button. - - The usage of this class is as simple as - - pController = new RadioDependentEnabler( m_aOptionSelectSomething ); - pController->addDependentWindow( m_aLabelSelection ); - pController->addDependentWindow( m_aListSelection ); - - - With this, both m_aLabelSelection and m_aListSelection will - be disabled if and only m_aOptionSelectSomething is checked. - */ - class SVT_DLLPUBLIC RadioDependentEnabler : public DialogController - { - public: - RadioDependentEnabler( RadioButton& _rButton ) - :DialogController( _rButton, - PWindowEventFilter( new FilterForRadioOrCheckToggle( _rButton ) ), - PWindowOperator( new EnableOnCheck< RadioButton >( _rButton ) ) ) - { - } - - RadioDependentEnabler( CheckBox& _rBox ) - :DialogController( _rBox, - PWindowEventFilter( new FilterForRadioOrCheckToggle( _rBox ) ), - PWindowOperator( new EnableOnCheck< CheckBox >( _rBox ) ) ) - { - } - }; - -//........................................................................ -} // namespace svt -//........................................................................ - -#endif // SVTOOLS_DIALOGCONTROLLING_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/editbrowsebox.hxx b/svtools/inc/svtools/editbrowsebox.hxx deleted file mode 100644 index c9299d363c0a..000000000000 --- a/svtools/inc/svtools/editbrowsebox.hxx +++ /dev/null @@ -1,685 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_EDITBROWSEBOX_HXX_ -#define _SVTOOLS_EDITBROWSEBOX_HXX_ -#define SVTOOLS_IN_EDITBROWSEBOX_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -//================================================================== -// EditBrowseBoxFlags (EBBF) - -#define EBBF_NONE ((sal_Int32)0x0000) -/** if this bit is _not_ set, the handle column will be invalidated upon - changing the row in the browse box. This is for forcing the row picture to - be repainted. If you do not have row pictures or text, you don't need this - invalidation, then you would specify this bit to prevent flicker -*/ -#define EBBF_NO_HANDLE_COLUMN_CONTENT ((sal_Int32)0x0001) -/** set this bit to activate the cell on a MouseButtonDown, not a MouseButtonUp event - */ -#define EBBF_ACTIVATE_ON_BUTTONDOWN ((sal_Int32)0x0002) -/** if this bit is set and EBBF_NO_HANDLE_COLUMN_CONTENT is _not_ set, the handle - column is drawn with the text contained in column 0 instead of an image -*/ -#define EBBF_HANDLE_COLUMN_TEXT ((sal_Int32)0x0004) - -/** If this bit is set, tab traveling is somewhat modified
- If the control gets the focus because the user pressed the TAB key, then the - first or last cell (depending on whether the traveling was cycling forward or backward) - gets activated. - @see Window::GetGetFocusFlags - @see GETFOCUS_* -*/ -#define EBBF_SMART_TAB_TRAVEL ((sal_Int32)0x0008) - -/// @deprecated -#define EBBF_NOROWPICTURE EBBF_NO_HANDLE_COLUMN_CONTENT - -//================================================================== - -class Edit; -class SpinField; -class FormattedField; - -// ....................................................................... -namespace svt -{ -// ....................................................................... - - class CellControllerRef; - - //================================================================== - //= CellController - //================================================================== - class SVT_DLLPUBLIC CellController : public SvRefBase - { - friend class EditBrowseBox; - - protected: - Control* pWindow; - sal_Bool bSuspended; // if the window is hidden and disabled - - public: - TYPEINFO(); - - CellController(Control* pW); - virtual ~CellController(); - - Control& GetWindow() const { return *const_cast< CellController* >( this )->pWindow; } - - virtual void SetModified(); - virtual void ClearModified() = 0; - virtual sal_Bool IsModified() const = 0; - - // commit any current changes. Especially, do any reformatting you need (from input formatting - // to output formatting) here - virtual void CommitModifications(); - - // suspending the controller is not culmulative! - void suspend( ); - void resume( ); - inline sal_Bool isSuspended( ) const { return bSuspended; } - - protected: - virtual sal_Bool MoveAllowed(const KeyEvent& rEvt) const; - virtual void SetModifyHdl(const Link& rLink) = 0; - virtual sal_Bool WantMouseEvent() const; - }; - - SV_DECL_IMPL_REF(CellController); - - //================================================================== - //= IEditImplementation - //================================================================== - class SVT_DLLPUBLIC IEditImplementation - { - public: - virtual ~IEditImplementation() = 0; - - virtual Control& GetControl() = 0; - - virtual String GetText( LineEnd aSeparator ) const = 0; - virtual void SetText( const OUString& _rStr ) = 0; - - virtual sal_Bool IsReadOnly() const = 0; - virtual void SetReadOnly( sal_Bool bReadOnly ) = 0; - - virtual xub_StrLen GetMaxTextLen() const = 0; - virtual void SetMaxTextLen( xub_StrLen _nMaxLen ) = 0; - - virtual Selection GetSelection() const = 0; - virtual void SetSelection( const Selection& _rSelection ) = 0; - - virtual void ReplaceSelected( const String& _rStr ) = 0; - virtual void DeleteSelected() = 0; - virtual String GetSelected( LineEnd aSeparator ) const = 0; - - virtual void SetModified() = 0; - virtual sal_Bool IsModified() const = 0; - virtual void ClearModified() = 0; - virtual void SetModifyHdl( const Link& _rLink ) = 0; - }; - - //================================================================== - //= GenericEditImplementation - //================================================================== - template - class GenericEditImplementation : public IEditImplementation - { - EDIT& m_rEdit; - public: - GenericEditImplementation( EDIT& _rEdit ); - - EDIT& GetEditWindow() { return static_cast< EDIT& >( GetControl() ); } - - virtual Control& GetControl(); - - virtual String GetText( LineEnd aSeparator ) const; - virtual void SetText( const OUString& _rStr ); - - virtual sal_Bool IsReadOnly() const; - virtual void SetReadOnly( sal_Bool bReadOnly ); - - virtual xub_StrLen GetMaxTextLen() const; - virtual void SetMaxTextLen( xub_StrLen _nMaxLen ); - - virtual Selection GetSelection() const; - virtual void SetSelection( const Selection& _rSelection ); - - virtual void ReplaceSelected( const String& _rStr ); - virtual void DeleteSelected(); - virtual String GetSelected( LineEnd aSeparator ) const; - - virtual void SetModified(); - virtual sal_Bool IsModified() const; - virtual void ClearModified(); - virtual void SetModifyHdl( const Link& _rLink ); - }; - - #include - - //================================================================== - //= MultiLineTextCell - //================================================================== - /** a multi line edit which can be used in a cell of a EditBrowseBox - */ - class SVT_DLLPUBLIC MultiLineTextCell : public MultiLineEdit - { - public: - MultiLineTextCell( Window* _pParent, WinBits _nStyle ) - :MultiLineEdit( _pParent, _nStyle ) - { - } - - protected: - // Window overridables - virtual long PreNotify( NotifyEvent& rNEvt ); - - // MultiLineEdit overridables - virtual void Modify(); - - private: - sal_Bool dispatchKeyEvent( const KeyEvent& _rEvent ); - }; - - //================================================================== - //= concrete edit implementations - //================================================================== - typedef GenericEditImplementation< Edit > EditImplementation; - - typedef GenericEditImplementation< MultiLineTextCell > MultiLineEditImplementation_Base; - class SVT_DLLPUBLIC MultiLineEditImplementation : public MultiLineEditImplementation_Base - { - public: - MultiLineEditImplementation( MultiLineTextCell& _rEdit ) : MultiLineEditImplementation_Base( _rEdit ) - { - } - - virtual String GetText( LineEnd aSeparator ) const; - virtual String GetSelected( LineEnd aSeparator ) const; - }; - - //================================================================== - //= EditCellController - //================================================================== - class SVT_DLLPUBLIC EditCellController : public CellController - { - IEditImplementation* m_pEditImplementation; - sal_Bool m_bOwnImplementation; // did we create m_pEditImplementation? - - public: - TYPEINFO(); - EditCellController( Edit* _pEdit ); - EditCellController( IEditImplementation* _pImplementation ); - ~EditCellController( ); - - const IEditImplementation* GetEditImplementation( ) const { return m_pEditImplementation; } - IEditImplementation* GetEditImplementation( ) { return m_pEditImplementation; } - - virtual void SetModified(); - virtual sal_Bool IsModified() const; - virtual void ClearModified(); - - protected: - virtual sal_Bool MoveAllowed(const KeyEvent& rEvt) const; - virtual void SetModifyHdl(const Link& rLink); - }; - - //================================================================== - //= SpinCellController - //================================================================== - class SVT_DLLPUBLIC SpinCellController : public CellController - { - public: - TYPEINFO(); - SpinCellController(SpinField* pSpinField); - SpinField& GetSpinWindow() const {return (SpinField &)GetWindow();} - - virtual void SetModified(); - virtual sal_Bool IsModified() const; - virtual void ClearModified(); - - protected: - virtual sal_Bool MoveAllowed(const KeyEvent& rEvt) const; - virtual void SetModifyHdl(const Link& rLink); - }; - - //================================================================== - //= CheckBoxControl - //================================================================== - class SVT_DLLPUBLIC CheckBoxControl : public Control - { - CheckBox* pBox; - Rectangle aFocusRect; - Link m_aClickLink,m_aModifyLink; - - public: - CheckBoxControl(Window* pParent, WinBits nWinStyle = 0); - ~CheckBoxControl(); - - virtual void GetFocus(); - virtual long PreNotify(NotifyEvent& rEvt); - virtual void Paint(const Rectangle& rClientRect); - virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); - virtual void StateChanged( StateChangedType nStateChange ); - virtual void DataChanged( const DataChangedEvent& _rEvent ); - virtual void Resize(); - - void SetClickHdl(const Link& rHdl) {m_aClickLink = rHdl;} - const Link& GetClickHdl() const {return m_aClickLink;} - - void SetModifyHdl(const Link& rHdl) {m_aModifyLink = rHdl;} - const Link& GetModifyHdl() const {return m_aModifyLink;} - - CheckBox& GetBox() {return *pBox;}; - - private: - DECL_LINK( OnClick, void* ); - }; - - //================================================================== - //= CheckBoxCellController - //================================================================== - class SVT_DLLPUBLIC CheckBoxCellController : public CellController - { - public: - TYPEINFO(); - - CheckBoxCellController(CheckBoxControl* pWin):CellController(pWin){} - CheckBox& GetCheckBox() const; - - virtual sal_Bool IsModified() const; - virtual void ClearModified(); - - protected: - virtual void SetModifyHdl(const Link& rLink); - virtual sal_Bool WantMouseEvent() const; - }; - - //================================================================== - //= ComboBoxControl - //================================================================== - class SVT_DLLPUBLIC ComboBoxControl : public ComboBox - { - friend class ComboBoxCellController; - - public: - ComboBoxControl(Window* pParent, WinBits nWinStyle = 0); - - protected: - virtual long PreNotify( NotifyEvent& rNEvt ); - }; - - //================================================================== - //= ComboBoxCellController - //================================================================== - class SVT_DLLPUBLIC ComboBoxCellController : public CellController - { - public: - TYPEINFO(); - - ComboBoxCellController(ComboBoxControl* pParent); - ComboBoxControl& GetComboBox() const {return (ComboBoxControl &)GetWindow();} - - virtual sal_Bool IsModified() const; - virtual void ClearModified(); - - protected: - virtual sal_Bool MoveAllowed(const KeyEvent& rEvt) const; - virtual void SetModifyHdl(const Link& rLink); - }; - - //================================================================== - //= ListBoxControl - //================================================================== - class SVT_DLLPUBLIC ListBoxControl : public ListBox - { - friend class ListBoxCellController; - - public: - ListBoxControl(Window* pParent, WinBits nWinStyle = 0); - - protected: - virtual long PreNotify( NotifyEvent& rNEvt ); - }; - - //================================================================== - //= ListBoxCellController - //================================================================== - class SVT_DLLPUBLIC ListBoxCellController : public CellController - { - public: - TYPEINFO(); - - ListBoxCellController(ListBoxControl* pParent); - ListBoxControl& GetListBox() const {return (ListBoxControl &)GetWindow();} - - virtual sal_Bool IsModified() const; - virtual void ClearModified(); - - protected: - virtual sal_Bool MoveAllowed(const KeyEvent& rEvt) const; - virtual void SetModifyHdl(const Link& rLink); - }; - - //================================================================== - //= FormattedFieldCellController - //================================================================== - class SVT_DLLPUBLIC FormattedFieldCellController : public EditCellController - { - public: - TYPEINFO(); - FormattedFieldCellController( FormattedField* _pFormatted ); - - virtual void CommitModifications(); - }; - - //================================================================== - //= EditBrowserHeader - //================================================================== - class SVT_DLLPUBLIC EditBrowserHeader : public BrowserHeader - { - public: - EditBrowserHeader( BrowseBox* pParent, WinBits nWinBits = WB_BUTTONSTYLE ) - :BrowserHeader(pParent, nWinBits){} - - protected: - virtual void DoubleClick(); - }; - - //================================================================== - //= EditBrowseBox - //================================================================== - class EditBrowseBoxImpl; - class SVT_DLLPUBLIC EditBrowseBox: public BrowseBox - { - friend class EditBrowserHeader; - - enum BrowseInfo - { - COLSELECT = 1, - ROWSELECT = 2, - ROWCHANGE = 4, - COLCHANGE = 8 - }; - - public: - enum RowStatus - { - CLEAN = 0, - CURRENT = 1, - CURRENTNEW = 2, - MODIFIED = 3, - NEW = 4, - DELETED = 5, - PRIMARYKEY = 6, - CURRENT_PRIMARYKEY = 7, - FILTER = 8, - HEADERFOOTER = 9 - }; - - private: - // forbid these ones - EditBrowseBox(EditBrowseBox&); - EditBrowseBox& operator=(EditBrowseBox&); - - class BrowserMouseEventPtr - { - BrowserMouseEvent* pEvent; - sal_Bool bDown; - - public: - BrowserMouseEventPtr():pEvent(NULL){} - ~BrowserMouseEventPtr(){Clear();} - - sal_Bool Is() const {return pEvent != NULL;} - sal_Bool IsDown() const {return bDown;} - const BrowserMouseEvent* operator->() const {return pEvent;} - const BrowserMouseEvent& operator*() const {return *pEvent;} - - SVT_DLLPUBLIC void Clear(); - void Set(const BrowserMouseEvent* pEvt, sal_Bool bIsDown); - } aMouseEvent; - - const BrowserMouseEvent* pMouseEvent; // is set during a mouse event - CellControllerRef aController, - aOldController; - - sal_uLong nStartEvent, nEndEvent, nCellModifiedEvent; // event ids - Window* m_pFocusWhileRequest; - // In ActivateCell, we grab the focus asynchronously, but if between requesting activation - // and the asynchornous event the focus has changed, we won't grab it for ourself. - - long nPaintRow; // row beeing painted - long nEditRow, nOldEditRow; - sal_uInt16 nEditCol, nOldEditCol; - - sal_Bool bHasFocus : 1; - mutable sal_Bool bPaintStatus : 1; // paint a status (image) in the handle column - sal_Bool bActiveBeforeTracking; - - CheckBoxControl* pCheckBoxPaint; - - sal_Int32 m_nBrowserFlags; - ImageList m_aStatusImages; - ::std::auto_ptr< EditBrowseBoxImpl> m_aImpl; - - protected: - BrowserHeader* pHeader; - - sal_Bool isGetCellFocusPending() const { return nStartEvent != 0; } - void cancelGetCellFocus() { if (nStartEvent) Application::RemoveUserEvent(nStartEvent); nStartEvent = 0; } - void forceGetCellFocus() { cancelGetCellFocus(); LINK(this, EditBrowseBox, StartEditHdl).Call((void*)NULL); } - - BrowserMouseEventPtr& getMouseEvent() { return aMouseEvent; } - - protected: - BrowserHeader* GetHeaderBar() const {return pHeader;} - - virtual BrowserHeader* CreateHeaderBar(BrowseBox* pParent); - - // if you want to have an own header ... - virtual BrowserHeader* imp_CreateHeaderBar(BrowseBox* pParent); - - virtual void ColumnMoved(sal_uInt16 nId); - virtual void ColumnResized(sal_uInt16 nColId); - virtual void Resize(); - virtual void ArrangeControls(sal_uInt16& nX, sal_uInt16 nY); - virtual sal_Bool SeekRow(long nRow); - - virtual void GetFocus(); - virtual void LoseFocus(); - virtual void KeyInput(const KeyEvent& rEvt); - virtual void MouseButtonDown(const BrowserMouseEvent& rEvt); - virtual void MouseButtonUp(const BrowserMouseEvent& rEvt); - virtual void StateChanged( StateChangedType nType ); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - - using BrowseBox::MouseButtonUp; - using BrowseBox::MouseButtonDown; - - virtual long PreNotify(NotifyEvent& rNEvt ); - virtual long Notify(NotifyEvent& rNEvt); - - virtual void EndScroll(); - - // should be used instead of GetFieldRectPixel, 'cause this method here takes into account the borders - Rectangle GetCellRect(long nRow, sal_uInt16 nColId, sal_Bool bRelToBrowser = sal_True) const; - virtual sal_uInt32 GetTotalCellWidth(long nRow, sal_uInt16 nColId); - virtual sal_uInt32 GetAutoColumnWidth(sal_uInt16 nColId); - - virtual void PaintStatusCell(OutputDevice& rDev, const Rectangle& rRect) const; - virtual void PaintCell(OutputDevice& rDev, const Rectangle& rRect, sal_uInt16 nColId) const = 0; - - virtual RowStatus GetRowStatus(long nRow) const; - - virtual void RowHeightChanged(); - - // callbacks for the data window - virtual void ImplStartTracking(); - virtual void ImplTracking(); - virtual void ImplEndTracking(); - - // when changing a row: - // CursorMoving: cursor is beeing moved, but GetCurRow() still provides the old row - virtual sal_Bool CursorMoving(long nNewRow, sal_uInt16 nNewCol); - - // cursor has been moved - virtual void CursorMoved(); - - virtual void CellModified(); // called whenever a cell has been modified - virtual sal_Bool SaveModified(); // called whenever a cell should be left, and it's content should be saved - // return sal_False prevents leaving the cell - virtual sal_Bool SaveRow(); // commit the current row - - virtual sal_Bool IsModified() const {return aController.Is() && aController->IsModified();} - - virtual CellController* GetController(long nRow, sal_uInt16 nCol); - virtual void InitController(CellControllerRef& rController, long nRow, sal_uInt16 nCol); - virtual void ResizeController(CellControllerRef& rController, const Rectangle&); - virtual void ReleaseController(CellControllerRef& pController, long nRow, sal_uInt16 nCol); - virtual void DoubleClick(const BrowserMouseEvent&); - - void ActivateCell() { ActivateCell(GetCurRow(), GetCurColumnId()); } - - // retrieve the image for the row status - virtual Image GetImage(RowStatus) const; - - // inserting columns - // if you don't set a width, this will be calculated automatically - // if the id isn't set the smallest unused will do it ... - virtual sal_uInt16 AppendColumn(const String& rName, sal_uInt16 nWidth = 0, sal_uInt16 nPos = HEADERBAR_APPEND, sal_uInt16 nId = (sal_uInt16)-1); - - // called whenever (Shift)Tab or Enter is pressed. If true is returned, these keys - // result in traveling to the next or to th previous cell - virtual sal_Bool IsTabAllowed(sal_Bool bForward) const; - - virtual sal_Bool IsCursorMoveAllowed(long nNewRow, sal_uInt16 nNewColId) const; - - void PaintTristate(OutputDevice& rDev, const Rectangle& rRect,const TriState& eState,sal_Bool _bEnabled=sal_True) const; - - void AsynchGetFocus(); - // secure starting of StartEditHdl - - public: - EditBrowseBox(Window* pParent, sal_Int32 nBrowserFlags = EBBF_NONE, WinBits nBits = WB_TABSTOP, BrowserMode nMode = 0 ); - EditBrowseBox(Window* pParent, const ResId& rId, sal_Int32 nBrowserFlags = EBBF_NONE, BrowserMode nMode = 0 ); - ~EditBrowseBox(); - - sal_Bool IsEditing() const {return aController.Is();} - void InvalidateStatusCell(long nRow) {RowModified(nRow, 0);} - void InvalidateHandleColumn(); - - // late construction - virtual void Init(); - virtual void RemoveRows(); - virtual void Dispatch(sal_uInt16 nId); - - CellControllerRef Controller() const { return aController; } - sal_Int32 GetBrowserFlags() const { return m_nBrowserFlags; } - void SetBrowserFlags(sal_Int32 nFlags); - - virtual void ActivateCell(long nRow, sal_uInt16 nCol, sal_Bool bSetCellFocus = sal_True); - virtual void DeactivateCell(sal_Bool bUpdate = sal_True); - // Children --------------------------------------------------------------- - - /** Creates the accessible object of a data table cell. - @param nRow - The row index of the cell. - @param nColumnId - The column ID of the cell. - @return - The XAccessible interface of the specified cell. */ - virtual ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessible > - CreateAccessibleCell( sal_Int32 nRow, sal_uInt16 nColumnPos ); - - /** @return The count of additional controls of the control area. */ - virtual sal_Int32 GetAccessibleControlCount() const; - - /** Creates the accessible object of an additional control. - @param nIndex - The 0-based index of the control. - @return - The XAccessible interface of the specified control. */ - virtual ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessible > - CreateAccessibleControl( sal_Int32 nIndex ); - - /** Creates the accessible object of a column header. - @param nColumnId - The column ID of the header. - @return - The XAccessible interface of the specified column header. */ - virtual ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessible > - CreateAccessibleRowHeader( sal_Int32 _nRow ); - - /** Sets focus to current cell of the data table. */ - virtual void GrabTableFocus(); - - virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex); - virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint); - - ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessible > CreateAccessibleCheckBoxCell(long _nRow, sal_uInt16 _nColumnPos,const TriState& eState); - protected: - // creates the accessible which wraps the active cell - void implCreateActiveAccessible( ); - - private: - virtual void PaintField(OutputDevice& rDev, const Rectangle& rRect, - sal_uInt16 nColumnId ) const; - using Control::ImplInitSettings; - SVT_DLLPRIVATE void ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground ); - SVT_DLLPRIVATE void DetermineFocus( const sal_uInt16 _nGetFocusFlags = 0); - inline void HideAndDisable(CellControllerRef& rController); - inline void EnableAndShow() const; - - SVT_DLLPRIVATE void implActivateCellOnMouseEvent(const BrowserMouseEvent& _rEvt, sal_Bool _bUp); - SVT_DLLPRIVATE void impl_construct(); - - DECL_DLLPRIVATE_LINK(ModifyHdl, void* ); - DECL_DLLPRIVATE_LINK(StartEditHdl, void* ); - DECL_DLLPRIVATE_LINK(EndEditHdl, void* ); - DECL_DLLPRIVATE_LINK(CellModifiedHdl, void* ); - }; - -// ....................................................................... -} // namespace svt -// ....................................................................... - -#undef SVTOOLS_IN_EDITBROWSEBOX_HXX -#endif // _SVTOOLS_EDITBROWSEBOX_HXX_ - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/editimplementation.hxx b/svtools/inc/svtools/editimplementation.hxx deleted file mode 100644 index 983bf6dae5e8..000000000000 --- a/svtools/inc/svtools/editimplementation.hxx +++ /dev/null @@ -1,144 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef SVTOOLS_IN_EDITBROWSEBOX_HXX -#error "not to be included directly!" -#endif - -//---------------------------------------------------------------------- -template -GenericEditImplementation< EDIT >::GenericEditImplementation( EDIT& _rEdit ) - :m_rEdit( _rEdit ) -{ -} - -//---------------------------------------------------------------------- -template -Control& GenericEditImplementation< EDIT >::GetControl() -{ - return m_rEdit; -} - -//---------------------------------------------------------------------- -template -String GenericEditImplementation< EDIT >::GetText( LineEnd ) const -{ - // ignore the line end - this base implementation does not support it - return m_rEdit.GetText( ); -} - -//---------------------------------------------------------------------- -template -void GenericEditImplementation< EDIT >::SetText( const OUString& _rStr ) -{ - m_rEdit.SetText( _rStr ); -} - -//---------------------------------------------------------------------- -template -Selection GenericEditImplementation< EDIT >::GetSelection() const -{ - return m_rEdit.GetSelection( ); -} - -//---------------------------------------------------------------------- -template -void GenericEditImplementation< EDIT >::SetSelection( const Selection& _rSelection ) -{ - m_rEdit.SetSelection( _rSelection ); -} - -//---------------------------------------------------------------------- -template -void GenericEditImplementation< EDIT >::SetReadOnly( sal_Bool bReadOnly ) -{ - m_rEdit.SetReadOnly( bReadOnly ); -} - -//---------------------------------------------------------------------- -template -sal_Bool GenericEditImplementation< EDIT >::IsReadOnly() const -{ - return m_rEdit.IsReadOnly(); -} - -//---------------------------------------------------------------------- -template -void GenericEditImplementation< EDIT >::ReplaceSelected( const String& _rStr ) -{ - m_rEdit.ReplaceSelected( _rStr ); -} - -//---------------------------------------------------------------------- -template -void GenericEditImplementation< EDIT >::DeleteSelected() -{ - m_rEdit.DeleteSelected(); -} - -//---------------------------------------------------------------------- -template -String GenericEditImplementation< EDIT >::GetSelected( LineEnd ) const -{ - return m_rEdit.GetSelected( ); -} - -//---------------------------------------------------------------------- -template -void GenericEditImplementation< EDIT >::SetMaxTextLen( xub_StrLen _nMaxLen ) -{ - m_rEdit.SetMaxTextLen( _nMaxLen ); -} - -//---------------------------------------------------------------------- -template -xub_StrLen GenericEditImplementation< EDIT >::GetMaxTextLen() const -{ - return (xub_StrLen)m_rEdit.GetMaxTextLen( ); -} - -//---------------------------------------------------------------------- -template -void GenericEditImplementation< EDIT >::SetModified() -{ - m_rEdit.SetModifyFlag(); -} - -//---------------------------------------------------------------------- -template -sal_Bool GenericEditImplementation< EDIT >::IsModified() const -{ - return m_rEdit.IsModified(); -} - -//---------------------------------------------------------------------- -template -void GenericEditImplementation< EDIT >::ClearModified() -{ - m_rEdit.ClearModifyFlag(); -} - -//---------------------------------------------------------------------- -template -void GenericEditImplementation< EDIT >::SetModifyHdl( const Link& _rLink ) -{ - m_rEdit.SetModifyHdl( _rLink ); -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/editsyntaxhighlighter.hxx b/svtools/inc/svtools/editsyntaxhighlighter.hxx deleted file mode 100644 index 747d0567c213..000000000000 --- a/svtools/inc/svtools/editsyntaxhighlighter.hxx +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _EDITSYNTAXHIGHLIGHTER_HXX -#define _EDITSYNTAXHIGHLIGHTER_HXX - -#include -#include -#include -#include - -class SVT_DLLPUBLIC MultiLineEditSyntaxHighlight : public MultiLineEdit -{ - private: - bool mbDoBracketHilight; - SyntaxHighlighter aHighlighter; - svtools::ColorConfig m_aColorConfig; - - private: - virtual void DoBracketHilight(sal_uInt16 aKey); - - protected: - virtual long PreNotify( NotifyEvent& rNEvt ); - - public: - MultiLineEditSyntaxHighlight( Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER , HighlighterLanguage aLanguage = HIGHLIGHT_SQL); - MultiLineEditSyntaxHighlight( Window* pParent, const ResId& rResId , HighlighterLanguage aLanguage = HIGHLIGHT_SQL); - ~MultiLineEditSyntaxHighlight(); - - virtual void UpdateData(); - virtual void SetText(const OUString& rNewText); - virtual void SetText( const OUString& rStr, const Selection& rNewSelection ) - { SetText( rStr ); SetSelection( rNewSelection ); } - - Color GetColorValue(TokenTypes aToken); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/ehdl.hxx b/svtools/inc/svtools/ehdl.hxx deleted file mode 100644 index 4b06a6e9d781..000000000000 --- a/svtools/inc/svtools/ehdl.hxx +++ /dev/null @@ -1,77 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _EHDL_HXX -#define _EHDL_HXX - -#ifndef __RSC - -#include "svtools/svtdllapi.h" - -#include - -class Window; -class ResMgr; - -class SVT_DLLPUBLIC SfxErrorContext : private ErrorContext -{ -public: - SfxErrorContext( - sal_uInt16 nCtxIdP, Window *pWin=0, - sal_uInt16 nResIdP=USHRT_MAX, ResMgr *pMgrP=0); - SfxErrorContext( - sal_uInt16 nCtxIdP, const String &aArg1, Window *pWin=0, - sal_uInt16 nResIdP=USHRT_MAX, ResMgr *pMgrP=0); - virtual sal_Bool GetString(sal_uLong nErrId, OUString &rStr); - -private: - sal_uInt16 nCtxId; - sal_uInt16 nResId; - ResMgr *pMgr; - String aArg1; -}; - -class SVT_DLLPUBLIC SfxErrorHandler : private ErrorHandler -{ -public: - SfxErrorHandler(sal_uInt16 nId, sal_uLong lStart, sal_uLong lEnd, ResMgr *pMgr=0); - ~SfxErrorHandler(); - -protected: - virtual sal_Bool GetErrorString(sal_uLong lErrId, OUString &, sal_uInt16&) const; - virtual sal_Bool GetMessageString(sal_uLong lErrId, OUString &, sal_uInt16&) const; - -private: - - sal_uLong lStart; - sal_uLong lEnd; - sal_uInt16 nId; - ResMgr *pMgr; - ResMgr *pFreeMgr; - - SVT_DLLPRIVATE sal_Bool GetClassString(sal_uLong lErrId, String &) const; - virtual sal_Bool CreateString( - const ErrorInfo *, OUString &, sal_uInt16 &) const; -}; - -#endif - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/embedhlp.hxx b/svtools/inc/svtools/embedhlp.hxx deleted file mode 100644 index ba948376af9b..000000000000 --- a/svtools/inc/svtools/embedhlp.hxx +++ /dev/null @@ -1,124 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_EMBEDHLP_HXX -#define _SVTOOLS_EMBEDHLP_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include -#include - -namespace comphelper -{ - class EmbeddedObjectContainer; -} - -namespace com { namespace sun { namespace star { namespace embed { - class XEmbeddedObject; -}}}} - -class Rectangle; -class OutputDevice; - -namespace svt { - -struct EmbeddedObjectRef_Impl; - -class SVT_DLLPUBLIC EmbeddedObjectRef -{ - EmbeddedObjectRef_Impl* mpImpl; - - SVT_DLLPRIVATE SvStream* GetGraphicStream( bool bUpdate ) const; - SVT_DLLPRIVATE void GetReplacement( bool bUpdate ); - - EmbeddedObjectRef& operator = ( const EmbeddedObjectRef& ); - -public: - static void DrawPaintReplacement( const Rectangle &rRect, const OUString &rText, OutputDevice *pOut ); - static void DrawShading( const Rectangle &rRect, OutputDevice *pOut ); - static bool TryRunningState( const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& ); - static void SetGraphicToContainer( const Graphic& rGraphic, - comphelper::EmbeddedObjectContainer& aContainer, - const OUString& aName, - const OUString& aMediaType ); - - static ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetGraphicReplacementStream( - sal_Int64 nViewAspect, - const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >&, - OUString* pMediaType ) - throw(); - - const com::sun::star::uno::Reference & operator->() const; - const com::sun::star::uno::Reference & GetObject() const; - - // default constructed object; needs further assignment before it can be used - EmbeddedObjectRef(); - - // assign a previously default constructed object - void Assign( const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& xObj, sal_Int64 nAspect ); - - // create object for a certain view aspect - EmbeddedObjectRef( const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& xObj, sal_Int64 nAspect ); - - ~EmbeddedObjectRef(); - EmbeddedObjectRef( const EmbeddedObjectRef& ); - - // assigning to a container enables the object to exchange graphical representations with a storage - void AssignToContainer( comphelper::EmbeddedObjectContainer* pContainer, const OUString& rPersistName ); - comphelper::EmbeddedObjectContainer* GetContainer() const; - - sal_Int64 GetViewAspect() const; - void SetViewAspect( sal_Int64 nAspect ); - const Graphic* GetGraphic( OUString* pMediaType = NULL ) const; - - // the original size of the object ( size of the icon for iconified object ) - // no conversion is done if no target mode is provided - Size GetSize( MapMode* pTargetMapMode = NULL ) const; - - void SetGraphic( const Graphic& rGraphic, const OUString& rMediaType ); - void SetGraphicStream( - const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInGrStream, - const OUString& rMediaType ); - - void UpdateReplacement(); - void UpdateReplacementOnDemand(); - void Lock( bool bLock = true ); - void Clear(); - bool is() const; - - bool IsLocked() const; - bool IsChart() const; - - // #i104867# - // Provides a graphic version number for the fetchable Graphic during this object's lifetime. Internally, - // that number is incremented at each change of the Graphic. This mechanism is needed to identify if a - // remembered Graphic (e.g. primitives) has changed compared to the current one, but without actively - // fetching the Graphic what would be too expensive e.g. for charts - sal_uInt32 getGraphicVersion() const; - void SetDefaultSizeForChart( const Size& rSizeIn_100TH_MM );//#i103460# charts do not necessaryly have an own size within ODF files, in this case they need to use the size settings from the surrounding frame, which is made available with this method -}; - -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/embedtransfer.hxx b/svtools/inc/svtools/embedtransfer.hxx deleted file mode 100644 index 9da80b87f37a..000000000000 --- a/svtools/inc/svtools/embedtransfer.hxx +++ /dev/null @@ -1,57 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _EMBEDTRANSFER_HXX -#define _EMBEDTRANSFER_HXX - -#include "svtools/svtdllapi.h" -#include -#include - -class Graphic; -class SVT_DLLPUBLIC SvEmbedTransferHelper : public TransferableHelper -{ -private: - - ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedObject > m_xObj; - Graphic* m_pGraphic; - sal_Int64 m_nAspect; - -protected: - - virtual void AddSupportedFormats(); - virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); - virtual void ObjectReleased(); - -public: - // object, replacement image, and the aspect - SvEmbedTransferHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedObject >& xObj, - const Graphic* pGraphic, - sal_Int64 nAspect ); - ~SvEmbedTransferHelper(); - - static void FillTransferableObjectDescriptor( TransferableObjectDescriptor& rDesc, - const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedObject >& xObj, - const Graphic* pGraphic, - sal_Int64 nAspect ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/extcolorcfg.hxx b/svtools/inc/svtools/extcolorcfg.hxx deleted file mode 100644 index 226e6065d5b0..000000000000 --- a/svtools/inc/svtools/extcolorcfg.hxx +++ /dev/null @@ -1,111 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef INCLUDED_SVTOOLS_EXTCOLORCFG_HXX -#define INCLUDED_SVTOOLS_EXTCOLORCFG_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include -#include - -//----------------------------------------------------------------------------- -namespace svtools{ - -class ExtendedColorConfig_Impl; -class ExtendedColorConfigValue -{ - OUString m_sName; - OUString m_sDisplayName; - sal_Int32 m_nColor; - sal_Int32 m_nDefaultColor; -public: - ExtendedColorConfigValue() : m_nColor(0),m_nDefaultColor(0){} - ExtendedColorConfigValue(const OUString& _sName - ,const OUString& _sDisplayName - ,sal_Int32 _nColor - ,sal_Int32 _nDefaultColor) - : m_sName(_sName) - ,m_sDisplayName(_sDisplayName) - ,m_nColor(_nColor) - ,m_nDefaultColor(_nDefaultColor) - {} - - inline OUString getName() const { return m_sName; } - inline OUString getDisplayName() const { return m_sDisplayName; } - inline sal_Int32 getColor() const { return m_nColor; } - inline sal_Int32 getDefaultColor() const { return m_nDefaultColor; } - - inline void setColor(sal_Int32 _nColor) { m_nColor = _nColor; } - - sal_Bool operator !=(const ExtendedColorConfigValue& rCmp) const - { return m_nColor != rCmp.m_nColor;} -}; - -class SVT_DLLPUBLIC ExtendedColorConfig : public SfxBroadcaster, public SfxListener -{ - friend class ExtendedColorConfig_Impl; -private: - static ExtendedColorConfig_Impl* m_pImpl; -public: - ExtendedColorConfig(); - ~ExtendedColorConfig(); - - virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); - - // get the configured value - ExtendedColorConfigValue GetColorValue(const OUString& _sComponentName,const OUString& _sName)const; - sal_Int32 GetComponentCount() const; - OUString GetComponentName(sal_uInt32 _nPos) const; - OUString GetComponentDisplayName(const OUString& _sComponentName) const; - sal_Int32 GetComponentColorCount(const OUString& _sName) const; - ExtendedColorConfigValue GetComponentColorConfigValue(const OUString& _sComponentName,sal_uInt32 _nPos) const; -}; - -class SVT_DLLPUBLIC EditableExtendedColorConfig -{ - ExtendedColorConfig_Impl* m_pImpl; - sal_Bool m_bModified; -public: - EditableExtendedColorConfig(); - ~EditableExtendedColorConfig(); - - void DeleteScheme(const OUString& rScheme ); - void AddScheme(const OUString& rScheme ); - sal_Bool LoadScheme(const OUString& rScheme ); - void SetCurrentSchemeName(const OUString& rScheme); - - sal_Int32 GetComponentCount() const; - OUString GetComponentName(sal_uInt32 _nPos) const; - sal_Int32 GetComponentColorCount(const OUString& _sName) const; - ExtendedColorConfigValue GetComponentColorConfigValue(const OUString& _sName,sal_uInt32 _nPos) const; - void SetColorValue(const OUString& _sComponentName, const ExtendedColorConfigValue& rValue); - void SetModified(); - void ClearModified(){m_bModified = sal_False;} - sal_Bool IsModified()const{return m_bModified;} - void Commit(); - - void DisableBroadcast(); - void EnableBroadcast(); -}; -}//namespace svtools -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/extensionlistbox.hxx b/svtools/inc/svtools/extensionlistbox.hxx deleted file mode 100644 index 62f5c383579a..000000000000 --- a/svtools/inc/svtools/extensionlistbox.hxx +++ /dev/null @@ -1,98 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_EXTENSIONLISTBOX_HXX -#define _SVTOOLS_EXTENSIONLISTBOX_HXX - -#include -#include - -// ============================================================================ - -namespace svt -{ - -// ============================================================================ - -/** This abstract class provides methods to implement an extension list box. - This header is needed for the automatic test tool -*/ -class IExtensionListBox: public Control -{ -public: - enum { ENTRY_NOTFOUND = -1 }; - - IExtensionListBox( Window* pParent, WinBits nWinStyle = 0 ): Control( pParent, nWinStyle ){} - - /** @return The count of the entries in the list box. */ - virtual sal_Int32 getItemCount() const = 0; - - /** @return The index of the first selected entry in the list box. - When nothing is selected, which is the case when getItemCount returns '0', - then this function returns ENTRY_NOTFOUND */ - virtual sal_Int32 getSelIndex() const = 0; - - /** @return The item name of the entry with the given index - The index starts with 0. - Throws an com::sun::star::lang::IllegalArgumentException, when the position is invalid. */ - virtual OUString getItemName( sal_Int32 index ) const = 0; - - /** @return The version string of the entry with the given index - The index starts with 0. - Throws an com::sun::star::lang::IllegalArgumentException, when the position is invalid. */ - virtual OUString getItemVersion( sal_Int32 index ) const = 0; - - /** @return The description string of the entry with the given index - The index starts with 0. - Throws an com::sun::star::lang::IllegalArgumentException, when the position is invalid. */ - virtual OUString getItemDescription( sal_Int32 index ) const = 0; - - /** @return The publisher string of the entry with the given index - The index starts with 0. - Throws an com::sun::star::lang::IllegalArgumentException, when the position is invalid. */ - virtual OUString getItemPublisher( sal_Int32 index ) const = 0; - - /** @return The link behind the publisher text of the entry with the given index - The index starts with 0. - Throws an com::sun::star::lang::IllegalArgumentException, when the position is invalid. */ - virtual OUString getItemPublisherLink( sal_Int32 index ) const = 0; - - /** The entry at the given position will be selected - Index starts with 0. - Throws an com::sun::star::lang::IllegalArgumentException, when the position is invalid. */ - virtual void select( sal_Int32 index ) = 0; - - /** The first found entry with the given name will be selected - When there was no entry found with the name, the selection doesn't change. - Please note that there might be more than one entry with the same - name, because: - 1. the name is not unique - 2. one extension can be installed as user and shared extension. - */ - virtual void select( const OUString & sName ) = 0; -}; -// ============================================================================ - -} // namespace svt - -// ============================================================================ - -#endif // _SVTOOLS_EXTENSIONLISTBOX_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/filechangedchecker.hxx b/svtools/inc/svtools/filechangedchecker.hxx deleted file mode 100644 index 2b8caa9d2da5..000000000000 --- a/svtools/inc/svtools/filechangedchecker.hxx +++ /dev/null @@ -1,54 +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 ] - * - * 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 SVTOOLS_INCLUDED_FILECHANGEDCHECKER_HXX -#define SVTOOLS_INCLUDED_FILECHANGEDCHECKER_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include - -/** Periodically checks if a file has been modified - - Instances of this class setup a vcl timer to occasionally wake up - check whether file modification time has changed. - */ -class SVT_DLLPUBLIC FileChangedChecker -{ -private : - Timer mTimer; - OUString mFileName; - TimeValue mLastModTime; - ::boost::function0 mpCallback; - - bool SVT_DLLPRIVATE getCurrentModTime(TimeValue& o_rValue) const; - DECL_LINK(TimerHandler, void *); - -public : - void resetTimer(); - bool hasFileChanged(); - FileChangedChecker(const OUString& rFilename, const ::boost::function0& rCallback); -}; - -#endif diff --git a/svtools/inc/svtools/filectrl.hxx b/svtools/inc/svtools/filectrl.hxx deleted file mode 100644 index 5654f004f69c..000000000000 --- a/svtools/inc/svtools/filectrl.hxx +++ /dev/null @@ -1,96 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SV_FILECTRL_HXX -#define _SV_FILECTRL_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include - - -#define STR_FILECTRL_BUTTONTEXT 333 // ID-Range?! - -// Flags for FileControl -typedef sal_uInt16 FileControlMode; -#define FILECTRL_RESIZEBUTTONBYPATHLEN ((sal_uInt16)0x0001)//if this is set, the button will become small as soon as the Text in the Edit Field is to long to be shown completely - - -// Flags for internal use of FileControl -typedef sal_uInt16 FileControlMode_Internal; -#define FILECTRL_INRESIZE ((sal_uInt16)0x0001) -#define FILECTRL_ORIGINALBUTTONTEXT ((sal_uInt16)0x0002) - - -class SVT_DLLPUBLIC FileControl : public Window -{ -private: - Edit maEdit; - PushButton maButton; - - String maButtonText; - sal_Bool mbOpenDlg; - - Link maDialogCreatedHdl; - - FileControlMode mnFlags; - FileControlMode_Internal mnInternalFlags; - -private: - SVT_DLLPRIVATE void ImplBrowseFile( ); - -protected: - SVT_DLLPRIVATE void Resize(); - SVT_DLLPRIVATE void GetFocus(); - SVT_DLLPRIVATE void StateChanged( StateChangedType nType ); - SVT_DLLPRIVATE WinBits ImplInitStyle( WinBits nStyle ); - DECL_DLLPRIVATE_LINK( ButtonHdl, void* ); - -public: - FileControl( Window* pParent, WinBits nStyle, FileControlMode = 0 ); - ~FileControl(); - - Edit& GetEdit() { return maEdit; } - PushButton& GetButton() { return maButton; } - - void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); - - void SetOpenDialog( sal_Bool bOpen ) { mbOpenDlg = bOpen; } - sal_Bool IsOpenDialog() const { return mbOpenDlg; } - - void SetText( const OUString& rStr ); - OUString GetText() const; - OUString GetSelectedText() const { return maEdit.GetSelected(); } - - void SetSelection( const Selection& rSelection ) { maEdit.SetSelection( rSelection ); } - Selection GetSelection() const { return maEdit.GetSelection(); } - - void SetReadOnly( sal_Bool bReadOnly = sal_True ) { maEdit.SetReadOnly( bReadOnly ); } - sal_Bool IsReadOnly() const { return maEdit.IsReadOnly(); } - - //------ - //use this to manipulate the dialog bevore executing it: - void SetDialogCreatedHdl( const Link& rLink ) { maDialogCreatedHdl = rLink; } - const Link& GetDialogCreatedHdl() const { return maDialogCreatedHdl; } -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/filedlg2.hrc b/svtools/inc/svtools/filedlg2.hrc deleted file mode 100644 index 4da7f5e0f894..000000000000 --- a/svtools/inc/svtools/filedlg2.hrc +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#define STR_FILEDLG_OPEN 1002 -#define STR_FILEDLG_TYPE 1005 -#define STR_FILEDLG_SAVE 1010 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/fileurlbox.hxx b/svtools/inc/svtools/fileurlbox.hxx deleted file mode 100644 index 5a9219d48050..000000000000 --- a/svtools/inc/svtools/fileurlbox.hxx +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef SVTOOLS_FILEURLBOX_HXX -#define SVTOOLS_FILEURLBOX_HXX - -#include "svtools/svtdllapi.h" -#include - -//......................................................................... -namespace svt -{ -//......................................................................... - - //===================================================================== - //= FileURLBox - //===================================================================== - class SVT_DLLPUBLIC FileURLBox : public SvtURLBox - { - protected: - String m_sPreservedText; - - public: - FileURLBox( Window* _pParent, WinBits _nStyle ); - - protected: - virtual long PreNotify( NotifyEvent& rNEvt ); - virtual long Notify( NotifyEvent& rNEvt ); - - public: - /** transforms the given URL content into a system-dependent notation, if possible, and - sets it as current display text - -

If the user enters an URL such as "file:///c:/some%20directory", then this will be converted - to "c:\some directory" for better readability.

- - @param _rURL - denotes the URL to set. Note that no check is made whether it is a valid URL - this - is the responsibility of the caller. - - @see SvtURLBox::GetURL - */ - void DisplayURL( const String& _rURL ); - }; - -//......................................................................... -} // namespace svt -//......................................................................... - -#endif // SVTOOLS_FILEURLBOX_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/fileview.hxx b/svtools/inc/svtools/fileview.hxx deleted file mode 100644 index d7cb77a19a47..000000000000 --- a/svtools/inc/svtools/fileview.hxx +++ /dev/null @@ -1,258 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _SVT_FILEVIEW_HXX -#define _SVT_FILEVIEW_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include -#include -#include -#include -#include - -// class SvtFileView ----------------------------------------------------- - -#define FILEVIEW_ONLYFOLDER 0x0001 -#define FILEVIEW_MULTISELECTION 0x0002 - -#define FILEVIEW_SHOW_ONLYTITLE 0x0010 -#define FILEVIEW_SHOW_NONE 0x0020 - -class ViewTabListBox_Impl; -class SvtFileView_Impl; -class SvTreeListEntry; -class HeaderBar; -class IUrlFilter; - -/// the result of an action in the FileView -enum FileViewResult -{ - eSuccess, - eFailure, - eTimeout, - eStillRunning -}; - -/// describes parameters for doing an action on the FileView asynchronously -struct FileViewAsyncAction -{ - sal_uInt32 nMinTimeout; /// minimum time to wait for a result, in milliseconds - sal_uInt32 nMaxTimeout; /// maximum time to wait for a result, in milliseconds, until eTimeout is returned - Link aFinishHandler; /// the handler to be called when the action is finished. Called in every case, no matter of the result - - FileViewAsyncAction() - { - nMinTimeout = nMaxTimeout = 0; - } -}; - -class SVT_DLLPUBLIC SvtFileView : public Control -{ -private: - SvtFileView_Impl* mpImp; - sal_Bool bSortColumn; - - ::com::sun::star::uno::Sequence< OUString > mpBlackList; - - DECL_DLLPRIVATE_LINK( HeaderSelect_Impl, HeaderBar * ); - DECL_DLLPRIVATE_LINK( HeaderEndDrag_Impl, HeaderBar * ); - -protected: - virtual void GetFocus(); - -public: - SvtFileView( Window* pParent, const ResId& rResId, sal_Bool bOnlyFolder, sal_Bool bMultiSelection ); - SvtFileView( Window* pParent, const ResId& rResId, sal_uInt8 nFlags ); - ~SvtFileView(); - - const String& GetViewURL() const; - String GetURL( SvTreeListEntry* pEntry ) const; - String GetCurrentURL() const; - - sal_Bool GetParentURL( String& _rParentURL ) const; - void CreatedFolder( const String& rUrl, const String& rNewFolder ); - - void SetHelpId( const OString& rHelpId ); - const OString& GetHelpId( ) const; - void SetSizePixel( const Size& rNewSize ); - virtual void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize ); - void SetSortColumn( sal_Bool bValue ) { bSortColumn = bValue; } - sal_Bool GetSortColumn() { return bSortColumn; } - - /** initialize the view with the content of a folder given by URL, and aply an immediate filter - - @param rFolderURL - the URL of the folder whose content is to be read - @param rFilter - the initial filter to be applied - @param pAsyncDescriptor - If not , this struct describes the parameters for doing the - action asynchronously. - */ - FileViewResult Initialize( - const String& rFolderURL, - const String& rFilter, - const FileViewAsyncAction* pAsyncDescriptor, - const ::com::sun::star::uno::Sequence< OUString >& rBlackList - ); - - FileViewResult Initialize( - const String& rFolderURL, - const String& rFilter, - const FileViewAsyncAction* pAsyncDescriptor ); - /** initialze the view with a sequence of contents, which have already been obtained elsewhere - - This method will never return eStillRunning, since it will fill the - view synchronously - */ - sal_Bool Initialize( const ::com::sun::star::uno::Sequence< OUString >& aContents ); - - /** initializes the view with the content of a folder given by an UCB content - */ - sal_Bool Initialize( const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent>& _xContent, - const String& rFilter ); - - /** reads the current content of the current folder again, and applies the given filter to it - - Note 1: The folder is really read a second time. This implies that any new elements (which were - not present when you called Initialize the last time) are now displayed. - - Note 2: This method must not be called when you previously initialized the view from a sequence - of strings, or a UNO content object. - - @param rFilter - the filter to be applied - @param pAsyncDescriptor - If not , this struct describes the parameters for doing the - action asynchronously. - */ - FileViewResult ExecuteFilter( - const String& rFilter, - const FileViewAsyncAction* pAsyncDescriptor - ); - - /** cancels a running async action (if any) - - @seealso Initialize - @seealso ExecuteFilter - @seealso FileViewAsyncAction - */ - void CancelRunningAsyncAction(); - - /** initializes the view with the parent folder of the current folder - - @param rNewURL - the URL of the folder which we just navigated to - @param pAsyncDescriptor - If not , this struct describes the parameters for doing the - action asynchronously. - */ - FileViewResult PreviousLevel( - const FileViewAsyncAction* pAsyncDescriptor - ); - - void SetNoSelection(); - - void SetSelectHdl( const Link& rHdl ); - void SetDoubleClickHdl( const Link& rHdl ); - void SetOpenDoneHdl( const Link& rHdl ); - - sal_uLong GetSelectionCount() const; - SvTreeListEntry* FirstSelected() const; - SvTreeListEntry* NextSelected( SvTreeListEntry* pEntry ) const; - void EnableAutoResize(); - void SetFocus(); - - void EnableContextMenu( sal_Bool bEnable ); - void EnableDelete( sal_Bool bEnable ); - void EnableNameReplacing( sal_Bool bEnable = sal_True ); - // translate folder names or display doc-title instead of file name - // EnableContextMenu( sal_True )/EnableDelete(sal_True) disable name replacing! - - // save and load column size and sort order - String GetConfigString() const; - void SetConfigString( const String& rCfgStr ); - - void SetUrlFilter( const IUrlFilter* _pFilter ); - - void EndInplaceEditing( bool _bCancel ); - -protected: - virtual void StateChanged( StateChangedType nStateChange ); -}; - -// struct SvtContentEntry ------------------------------------------------ - -struct SvtContentEntry -{ - sal_Bool mbIsFolder; - OUString maURL; - - SvtContentEntry( const OUString& rURL, sal_Bool bIsFolder ) : - mbIsFolder( bIsFolder ), maURL( rURL ) {} -}; - -namespace svtools { - -// ----------------------------------------------------------------------- -// QueryDeleteDlg_Impl -// ----------------------------------------------------------------------- - -enum QueryDeleteResult_Impl -{ - QUERYDELETE_YES = 0, - QUERYDELETE_NO, - QUERYDELETE_ALL, - QUERYDELETE_CANCEL -}; - -class SVT_DLLPUBLIC QueryDeleteDlg_Impl : public ModalDialog -{ - FixedText _aEntryLabel; - FixedText _aEntry; - FixedText _aQueryMsg; - - PushButton _aYesButton; - PushButton _aAllButton; - PushButton _aNoButton; - CancelButton _aCancelButton; - - QueryDeleteResult_Impl _eResult; - -private: - - DECL_DLLPRIVATE_STATIC_LINK( QueryDeleteDlg_Impl, ClickLink, PushButton* ); - -public: - - QueryDeleteDlg_Impl( Window* pParent, - const String& rName ); - - void EnableAllButton() { _aAllButton.Enable( sal_True ); } - QueryDeleteResult_Impl GetResult() const { return _eResult; } -}; - -} - -#endif // _SVT_FILEVIEW_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/fmtfield.hxx b/svtools/inc/svtools/fmtfield.hxx deleted file mode 100644 index 8486926e53a9..000000000000 --- a/svtools/inc/svtools/fmtfield.hxx +++ /dev/null @@ -1,319 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _FMTFIELD_HXX_ -#define _FMTFIELD_HXX_ - -#include "svtools/svtdllapi.h" -#include -#include - -namespace validation { class NumberValidator; } - -typedef sal_uInt16 FORMAT_CHANGE_TYPE; -#define FCT_KEYONLY 0x00 // only a new key was set -#define FCT_FORMATTER 0x01 // a new formatter weas set, usually implies a change of the key, too -#define FCT_PRECISION 0x02 // a new precision was set -#define FCT_THOUSANDSSEP 0x03 // the thousands separator setting changed - -//------------------------------------------------------------------------------ -class SVT_DLLPUBLIC FormattedField : public SpinField -{ -private: - // Da ein SvNumberFormatter eine ziemlich teure (sowohl zeit- als auch platz-maessig) Angelegenheit ist, - // haelt sich nicht jedes Field, an dem kein Formatter gesetzt wurde, eine eigenen Instanz, sondern es gibt nur eine - // einzige statische. - class StaticFormatter - { - static SvNumberFormatter* s_cFormatter; - static sal_uLong s_nReferences; - public: - StaticFormatter(); - ~StaticFormatter(); - - operator SvNumberFormatter* () { return GetFormatter(); } - SVT_DLLPUBLIC SvNumberFormatter* GetFormatter(); - }; - -protected: - String m_sLastValidText; - // hat nichts mit dem current value zu tun, ist der letzte Text, der waehrend einer Eingabe als gueltig erkannt - // wurde (also durch CheckText geprueft, nicht durch den Formatter gejagt) - Selection m_aLastSelection; - - double m_dMinValue; - double m_dMaxValue; - sal_Bool m_bHasMin : 1; - sal_Bool m_bHasMax : 1; - - sal_Bool m_bStrictFormat : 1; - - sal_Bool m_bValueDirty : 1; - sal_Bool m_bEnableEmptyField : 1; - sal_Bool m_bAutoColor : 1; - sal_Bool m_bEnableNaN : 1; - double m_dCurrentValue; - double m_dDefaultValue; - - sal_uLong m_nFormatKey; - SvNumberFormatter* m_pFormatter; - StaticFormatter m_aStaticFormatter; - - double m_dSpinSize; - double m_dSpinFirst; - double m_dSpinLast; - - // es macht einen Unterschied, ob man bei eingestellter Textformatierung beim LostFocus den aktuellen String durch - // den Formatter jagt und das Ergebnis anzeigt oder erst aus dem String ein double macht, das formatiert und dann - // ausgibt - sal_Bool m_bTreatAsNumber; - // und mit den folgenden Members koennen wir das Ganze hier auch zur formatierten Text-Ausgabe benutzen ... - String m_sCurrentTextValue; - String m_sDefaultText; - - // die bei der letzten Ausgabe-Operation vom Formatter gelieferte Farbe (nicht dass wir sie beachten wuerden, aber - // man kann sie von aussen abfragen) - Color* m_pLastOutputColor; - - bool m_bUseInputStringForFormatting; - -public: - FormattedField(Window* pParent, WinBits nStyle = 0, SvNumberFormatter* pInitialFormatter = NULL, sal_Int32 nFormatKey = 0); - FormattedField(Window* pParent, const ResId& rResId, SvNumberFormatter* pInitialFormatter = NULL, sal_Int32 nFormatKey = 0); - virtual ~FormattedField(); - - // Min-/Max-Verwaltung - sal_Bool HasMinValue() const { return m_bHasMin; } - void ClearMinValue() { m_bHasMin = sal_False; } - void SetMinValue(double dMin); - double GetMinValue() const { return m_dMinValue; } - - sal_Bool HasMaxValue() const { return m_bHasMax; } - void ClearMaxValue() { m_bHasMax = sal_False; } - void SetMaxValue(double dMax); - double GetMaxValue() const { return m_dMaxValue; } - - // aktueller Wert - virtual void SetValue(double dVal); - virtual double GetValue(); - // die Standard-Implementierung jagt die Eingabe jeweils durch den Formatter, so einer vorhanden ist - - void GetColor() const; - - void SetTextValue(const OUString& rText); - // der String wird in ein double umgewandelt (durch den Formatter) und anschliessen in SetValue gesteckt - - sal_Bool IsEmptyFieldEnabled() const { return m_bEnableEmptyField; } - void EnableEmptyField(sal_Bool bEnable); - // wenn nicht enabled, wird beim Verlassen des Feldes der Text auf den letzten gueltigen zurueckgesetzt - - void SetDefaultValue(double dDefault) { m_dDefaultValue = dDefault; m_bValueDirty = sal_True; } - // wenn der aktuelle String ungueltig ist, liefert GetValue() diesen Default-Wert - double GetDefaultValue() const { return m_dDefaultValue; } - - // Einstellungen fuer das Format - sal_uLong GetFormatKey() const { return m_nFormatKey; } - void SetFormatKey(sal_uLong nFormatKey); - - SvNumberFormatter* GetFormatter() const { return m_pFormatter; } - void SetFormatter(SvNumberFormatter* pFormatter, sal_Bool bResetFormat = sal_True); - // wenn bResetFormat sal_False ist, wird versucht, das alte eingestellte Format mit 'hinueberzuretten' (teuer, wenn es sich nicht - // um eines der Standard-Formate handelt, die in allen Formattern gleich sind) - // wenn sal_True, wird als neuer FormatKey 0 gesetzt - - sal_Bool GetThousandsSep() const; - void SetThousandsSep(sal_Bool _bUseSeparator); - // the is no check if the current format is numeric, so be cautious when calling these functions - - sal_uInt16 GetDecimalDigits() const; - void SetDecimalDigits(sal_uInt16 _nPrecision); - // the is no check if the current format is numeric, so be cautious when calling these functions - - SvNumberFormatter* StandardFormatter() { return m_aStaticFormatter; } - // Wenn man keinen eigenen Formatter explizit anlegen will, kann man diesen hier in SetFormatter stecken ... - // Das hier gelieferte Objekt wird allerdings zwischen allen Instanzen der Klasse geteilt (aus Zeit- und Platzgruenden), - // also ist etwas Vorsicht angebracht ... - - OUString GetFormat(LanguageType& eLang) const; - sal_Bool SetFormat(const OUString& rFormatString, LanguageType eLang); - // sal_False, wenn der FormatString nicht gesetzt werden konnte (also wahrscheinlich ungueltig ist) - - sal_Bool IsStrictFormat() const { return m_bStrictFormat; } - void SetStrictFormat(sal_Bool bEnable) { m_bStrictFormat = bEnable; } - // Formatueberpruefung waehrend der Eingabe ? - - // Spin-Handling - virtual void Up(); - virtual void Down(); - // Standard-Implementierung : hoch- oder runterzaehlen des aktuellen double einfach um die gesetzte SpinSize - virtual void First(); - virtual void Last(); - // Standard-Implementierung : aktuelles double setzen auf eingestellten first respektive last value - - void SetSpinSize(double dStep) { m_dSpinSize = dStep; } - double GetSpinSize() const { return m_dSpinSize; } - - void SetSpinFirst(double dFirst) { m_dSpinFirst = dFirst; } - double GetSpinFirst() const { return m_dSpinFirst; } - - void SetSpinLast(double dLast) { m_dSpinLast = dLast; } - double GetSpinLast() const { return m_dSpinLast; } - - sal_Bool TreatingAsNumber() const { return m_bTreatAsNumber; } - void TreatAsNumber(sal_Bool bDoSo) { m_bTreatAsNumber = bDoSo; } - -public: - virtual void SetText( const OUString& rStr ); - virtual void SetText( const OUString& rStr, const Selection& rNewSelection ); - - // die folgenden Methoden sind interesant, wenn m_bTreatAsNumber auf sal_False sitzt - /** nehmen wir mal an, irgendjemand will das ganze schoene double-Handling gar nicht haben, sondern - einfach den Text formatiert ausgeben ... - (der Text wird einfach nur durch den Formatter gejagt und dann gesetzt) - */ - void SetTextFormatted(const OUString& rText); - String GetTextValue() const; - - void SetDefaultText(const OUString& rDefault) { m_sDefaultText = rDefault; } - String GetDefaultText() const { return m_sDefaultText; } - - // die bei der letzten Ausgabe-Operation vom Formatter gelieferte Farbe (Ausgabe-Operationen werden getriggert durch - // SetValue, SetTextValue, SetTextFormatted, also indirekt eventuell auch durch SetMin-/-MaxValue) - Color* GetLastOutputColor() const { return m_pLastOutputColor; } - - /** reformats the current text. Interesting if the user entered some text in an "input format", and - this should be formatted in the "output format" (which may differ, e.g. by additional numeric - digits or such). - */ - void Commit(); - - // enable automatic coloring. if set to sal_True, and the format the field is working with for any current value - // says that it has to be painted in a special color (e.g. a format where negative numbers should be printed - // red), the text is painted with that color automatically. - // The color used is the same as returned by GetLastOutputColor() - void SetAutoColor(sal_Bool _bAutomatic); - sal_Bool GetAutoColor() const { return m_bAutoColor; } - - /** enables handling of not-a-number value. - - When this is set to (the default), then invalid inputs (i.e. text which cannot be - intepreted, according to the current formatting) will be handled as if the default value - has been entered. GetValue the will return this default value. - - When set to , then GetValue will return NaN (not a number, see isNan) - when the current input is invalid. - - Note that setting this to implies that upon leaving the control, the input - will *not* be corrected to a valid value. For example, if the user enters "foo" in the - control, and then tabs out of it, the text "foo" will persist, and GetValue will - return NaN in subsequent calls. - */ - void EnableNotANumber( sal_Bool _bEnable ); - sal_Bool IsNotANumberEnabled( ) const { return m_bEnableNaN; } - - /** When being set to true, the strings in the field are formatted using the - InputLine format. That's also what you get in Calc when you edit a cell - using F2 - */ - void UseInputStringForFormatting( bool bUseInputStr = true ); - bool IsUsingInputStringForFormatting() const; - -protected: - virtual long Notify(NotifyEvent& rNEvt); - virtual void Modify(); - - // CheckText ueberschreiben fuer Ueberpruefung zur Eingabezeit - virtual sal_Bool CheckText(const OUString&) const { return sal_True; } - - // any aspect of the current format has changed - virtual void FormatChanged(FORMAT_CHANGE_TYPE nWhat); - - void ImplSetTextImpl(const OUString& rNew, Selection* pNewSel); - void ImplSetValue(double dValue, sal_Bool bForce); - sal_Bool ImplGetValue(double& dNewVal); - - void ImplSetFormatKey(sal_uLong nFormatKey); - // SetFormatKey without FormatChanged notification - - virtual SvNumberFormatter* CreateFormatter() { SetFormatter(StandardFormatter()); return m_pFormatter; } - SvNumberFormatter* ImplGetFormatter() const { return m_pFormatter ? m_pFormatter : ((FormattedField*)this)->CreateFormatter(); } - - long PreNotify(NotifyEvent& rNEvt); - - virtual void ReFormat(); -}; - -//------------------------------------------------------------------------------ -class SVT_DLLPUBLIC DoubleNumericField : public FormattedField -{ -protected: - validation::NumberValidator* m_pNumberValidator; - -public: - DoubleNumericField(Window* pParent, WinBits nStyle = 0) - :FormattedField(pParent, nStyle) - ,m_pNumberValidator( NULL ) - { - ResetConformanceTester(); - } - - DoubleNumericField(Window* pParent, const ResId& rResId) - :FormattedField(pParent, rResId) - ,m_pNumberValidator( NULL ) - { - ResetConformanceTester(); - } - virtual ~DoubleNumericField(); - -protected: - virtual sal_Bool CheckText(const OUString& sText) const; - - virtual void FormatChanged(FORMAT_CHANGE_TYPE nWhat); - void ResetConformanceTester(); -}; - -//============================================================================== -#define FCT_CURRENCY_SYMBOL 0x10 -#define FCT_CURRSYM_POSITION 0x20 - -//------------------------------------------------------------------------------ -class DoubleCurrencyField : public FormattedField -{ - OUString m_sCurrencySymbol; - sal_Bool m_bPrependCurrSym; - sal_Bool m_bChangingFormat; - -public: - DoubleCurrencyField(Window* pParent, WinBits nStyle = 0); - - OUString getCurrencySymbol() const { return m_sCurrencySymbol; } - void setCurrencySymbol(const OUString& rSymbol); - - sal_Bool getPrependCurrSym() const { return m_bPrependCurrSym; } - void setPrependCurrSym(sal_Bool _bPrepend); - -protected: - virtual void FormatChanged(FORMAT_CHANGE_TYPE nWhat); - - void UpdateCurrencyFormat(); -}; - -#endif // _FMTFIELD_HXX_ - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/fontsubstconfig.hxx b/svtools/inc/svtools/fontsubstconfig.hxx deleted file mode 100644 index 5221e29aa585..000000000000 --- a/svtools/inc/svtools/fontsubstconfig.hxx +++ /dev/null @@ -1,61 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _SVT_FONTSUBSTCONFIG_HXX -#define _SVT_FONTSUBSTCONFIG_HXX - -#include "svtools/svtdllapi.h" -#include - -struct SvtFontSubstConfig_Impl; - -//----------------------------------------------------------------------------- -struct SubstitutionStruct -{ - OUString sFont; - OUString sReplaceBy; - sal_Bool bReplaceAlways; - sal_Bool bReplaceOnScreenOnly; -}; -//----------------------------------------------------------------------------- -class SVT_DLLPUBLIC SvtFontSubstConfig : public utl::ConfigItem -{ - sal_Bool bIsEnabled; - SvtFontSubstConfig_Impl* pImpl; -public: - SvtFontSubstConfig(); - virtual ~SvtFontSubstConfig(); - - virtual void Commit(); - virtual void Notify( const com::sun::star::uno::Sequence< OUString >& _rPropertyNames); - - sal_Bool IsEnabled() const {return bIsEnabled;} - void Enable(sal_Bool bSet) {bIsEnabled = bSet; SetModified();} - - sal_Int32 SubstitutionCount() const; - void ClearSubstitutions(); - const SubstitutionStruct* GetSubstitution(sal_Int32 nPos); - void AddSubstitution(const SubstitutionStruct& rToAdd); - void Apply(); -}; - -#endif - - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/framestatuslistener.hxx b/svtools/inc/svtools/framestatuslistener.hxx deleted file mode 100644 index 7543788f5afc..000000000000 --- a/svtools/inc/svtools/framestatuslistener.hxx +++ /dev/null @@ -1,101 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_FRAMESTATUSLISTENER_HXX -#define _SVTOOLS_FRAMESTATUSLISTENER_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -namespace svt -{ - -class SVT_DLLPUBLIC FrameStatusListener : public ::com::sun::star::frame::XStatusListener, - public ::com::sun::star::frame::XFrameActionListener, - public ::com::sun::star::lang::XComponent, - public ::comphelper::OBaseMutex, - public ::cppu::OWeakObject -{ - public: - FrameStatusListener( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext, - const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame ); - virtual ~FrameStatusListener(); - - // methods to support status forwarder, known by the old sfx2 toolbox controller implementation - void addStatusListener( const OUString& aCommandURL ); - void bindListener(); - void unbindListener(); - sal_Bool isBound() const; - - // XInterface - 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 (); - - // XComponent - virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) 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 ); - - // XStatusListener - virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException ) = 0; - - // XFrameActionListener - virtual void SAL_CALL frameAction( const com::sun::star::frame::FrameActionEvent& Action ) throw ( ::com::sun::star::uno::RuntimeException ); - - protected: - struct Listener - { - Listener( const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch >& rDispatch ) : - aURL( rURL ), xDispatch( rDispatch ) {} - - ::com::sun::star::util::URL aURL; - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > xDispatch; - }; - - typedef ::boost::unordered_map< OUString, - com::sun::star::uno::Reference< com::sun::star::frame::XDispatch >, - OUStringHash, - ::std::equal_to< OUString > > URLToDispatchMap; - - sal_Bool m_bInitialized : 1, - m_bDisposed : 1; - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame; - ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext; - URLToDispatchMap m_aListenerMap; -}; - -} - -#endif // _SVTOOLS_FRAMESTATUSLISTENER_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/generictoolboxcontroller.hxx b/svtools/inc/svtools/generictoolboxcontroller.hxx deleted file mode 100644 index f01d5428a44f..000000000000 --- a/svtools/inc/svtools/generictoolboxcontroller.hxx +++ /dev/null @@ -1,61 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef __SVTOOLS_GENERICTOOLBOXCONTROLLER_HXX_ -#define __SVTOOLS_GENERICTOOLBOXCONTROLLER_HXX_ - -#include "svtools/svtdllapi.h" -#include -#include - -namespace svt -{ - -struct ExecuteInfo; -class SVT_DLLPUBLIC GenericToolboxController : public svt::ToolboxController -{ - public: - GenericToolboxController( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext, - const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame, - ToolBox* pToolBox, - sal_uInt16 nID, - const OUString& aCommand ); - virtual ~GenericToolboxController(); - - // XComponent - virtual void SAL_CALL dispose() throw ( ::com::sun::star::uno::RuntimeException ); - - // XToolbarController - virtual void SAL_CALL execute( sal_Int16 KeyModifier ) throw (::com::sun::star::uno::RuntimeException); - - // XStatusListener - virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException ); - - DECL_STATIC_LINK( GenericToolboxController, ExecuteHdl_Impl, ExecuteInfo* ); - - private: - ToolBox* m_pToolbox; - sal_uInt16 m_nID; -}; - -} - -#endif // __SVTOOLS_GENERICTOOLBOXCONTROLLER_HXX_ - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/genericunodialog.hxx b/svtools/inc/svtools/genericunodialog.hxx deleted file mode 100644 index 808282255bf5..000000000000 --- a/svtools/inc/svtools/genericunodialog.hxx +++ /dev/null @@ -1,185 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVT_GENERICUNODIALOG_HXX_ -#define _SVT_GENERICUNODIALOG_HXX_ - -#include "svtools/svtdllapi.h" - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -class Dialog; -class Window; -class VclWindowEvent; - -//......................................................................... -namespace svt -{ -//......................................................................... - - //========================================================================= -#define UNODIALOG_PROPERTY_ID_TITLE 1 -#define UNODIALOG_PROPERTY_ID_PARENT 2 - -#define UNODIALOG_PROPERTY_TITLE "Title" -#define UNODIALOG_PROPERTY_PARENT "ParentWindow" - - - //========================================================================= - typedef ::cppu::WeakImplHelper3 < com::sun::star::ui::dialogs::XExecutableDialog - , com::sun::star::lang::XServiceInfo - , com::sun::star::lang::XInitialization - > OGenericUnoDialogBase; - - /** abstract base class for implementing UNO objects representing dialogs (XDialog) - */ - class SVT_DLLPUBLIC OGenericUnoDialog - :public OGenericUnoDialogBase - ,public ::comphelper::OMutexAndBroadcastHelper - ,public ::comphelper::OPropertyContainer - { - private: - ::osl::Mutex m_aExecutionMutex; /// acess safety for execute/cancel - - protected: - Dialog* m_pDialog; /// the dialog to execute - sal_Bool m_bExecuting : 1; /// we're currently executing the dialog - sal_Bool m_bCanceled : 1; /// endDialog was called while we were executing - sal_Bool m_bTitleAmbiguous : 1; /// m_sTitle has not been set yet - bool m_bInitialized : 1; /// has "initialize" been called? - bool m_bNeedInitialization : 1; /// do we need to be initialized before any other API call is allowed? - - // - OUString m_sTitle; /// title of the dialog - com::sun::star::uno::Reference m_xParent; /// parent window - // - - com::sun::star::uno::Reference m_aContext; - - public: - inline bool needInitialization() const { return m_bNeedInitialization && !m_bInitialized; } - - protected: - OGenericUnoDialog(const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& _rxContext); - virtual ~OGenericUnoDialog(); - - public: - // UNO - DECLARE_UNO3_DEFAULTS(OGenericUnoDialog, OGenericUnoDialogBase); - virtual com::sun::star::uno::Any SAL_CALL queryInterface(const com::sun::star::uno::Type& _rType) throw (com::sun::star::uno::RuntimeException); - - // XTypeProvider - virtual com::sun::star::uno::Sequence SAL_CALL getTypes( ) throw(com::sun::star::uno::RuntimeException); - virtual com::sun::star::uno::Sequence SAL_CALL getImplementationId( ) throw(com::sun::star::uno::RuntimeException) = 0; - - // XServiceInfo - virtual OUString SAL_CALL getImplementationName() throw(com::sun::star::uno::RuntimeException) = 0; - virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(com::sun::star::uno::RuntimeException); - virtual ::comphelper::StringSequence SAL_CALL getSupportedServiceNames() throw(com::sun::star::uno::RuntimeException) = 0; - - // OPropertySetHelper - virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const com::sun::star::uno::Any& rValue ) throw(com::sun::star::uno::Exception); - virtual sal_Bool SAL_CALL convertFastPropertyValue( com::sun::star::uno::Any& rConvertedValue, com::sun::star::uno::Any& rOldValue, sal_Int32 nHandle, const com::sun::star::uno::Any& rValue) throw(com::sun::star::lang::IllegalArgumentException); - - // XExecutableDialog - virtual void SAL_CALL setTitle( const OUString& aTitle ) throw(::com::sun::star::uno::RuntimeException); - virtual sal_Int16 SAL_CALL execute( ) throw(::com::sun::star::uno::RuntimeException); - - // XInitialization - virtual void SAL_CALL initialize( const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArguments ) throw(com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException); - - protected: - /** create the concret dialog instance. note that m_aMutex is not locked when this method get's called, - but the application-wide solar mutex is (to guard the not thread-safe ctor of the dialog). - @param pParent the parent window for the new dialog - */ - virtual Dialog* createDialog(Window* _pParent) = 0; - - /// called to destroy the dialog used. the default implementation just deletes m_pDialog and resets it to NULL - virtual void destroyDialog(); - - /** called after the dialog has been executed - @param _nExecutionResult the execution result as returned by Dialog::Execute - */ - virtual void executedDialog(sal_Int16 /*_nExecutionResult*/) { } - - /** smaller form of initialize.

- The initialize method is called with a sequence of Any's, - which is split up into the single elements, which are passed to implInitialize. The default implementation - tries to exract an PropertyValue from the value an pass it to the - XPropertySet interface of the object. - */ - virtual void implInitialize(const com::sun::star::uno::Any& _rValue); - - private: - DECL_LINK( OnDialogDying, VclWindowEvent* ); - - /** ensures that m_pDialog is not - - This method does nothing if m_pDialog is already non-. Else, it calls createDialog and does - all necessary initializations of the new dialog instance. - - @precond - m_aMutex is locked - - @return - if and only if m_pDialog is non- upon returning from the method. Note that the only - case where m_pDialog is is when createDialog returned , which is will fire an assertion - in non-product builds. - */ - bool impl_ensureDialog_lck(); - }; - - /// helper class for guarding access to methods of a OGenericUnoDialog - class UnoDialogEntryGuard - { - public: - UnoDialogEntryGuard( OGenericUnoDialog& _rDialog ) - :m_aGuard( _rDialog.GetMutex() ) - { - if ( _rDialog.needInitialization() ) - throw ::com::sun::star::lang::NotInitializedException(); - } - - private: - ::osl::MutexGuard m_aGuard; - }; - -//......................................................................... -} // namespace svt -//......................................................................... - -#endif // _SVT_GENERICUNODIALOG_HXX_ - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/grfmgr.hxx b/svtools/inc/svtools/grfmgr.hxx deleted file mode 100644 index 9a3bd8c1d1ff..000000000000 --- a/svtools/inc/svtools/grfmgr.hxx +++ /dev/null @@ -1,624 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _GRFMGR_HXX -#define _GRFMGR_HXX - -#include -#include - -#define GRFMGR_DRAW_NOTCACHED 0x00000000UL -#define GRFMGR_DRAW_CACHED 0x00000001UL -#define GRFMGR_DRAW_SMOOTHSCALE 0x00000002UL -#define GRFMGR_DRAW_USE_DRAWMODE_SETTINGS 0x00000004UL -#define GRFMGR_DRAW_SUBSTITUTE 0x00000008UL -#define GRFMGR_DRAW_NO_SUBSTITUTE 0x00000010UL -#define GRFMGR_DRAW_STANDARD (GRFMGR_DRAW_CACHED|GRFMGR_DRAW_SMOOTHSCALE) - -// AutoSwap defines - -#define GRFMGR_AUTOSWAPSTREAM_LINK ((SvStream*)0x00000000UL) -#define GRFMGR_AUTOSWAPSTREAM_LOADED ((SvStream*)0xfffffffdUL) -#define GRFMGR_AUTOSWAPSTREAM_TEMP ((SvStream*)0xfffffffeUL) -#define GRFMGR_AUTOSWAPSTREAM_NONE ((SvStream*)0xffffffffUL) - -// Adjustment defines - -#define ADJUSTMENT_NONE 0x00000000UL -#define ADJUSTMENT_DRAWMODE 0x00000001UL -#define ADJUSTMENT_COLORS 0x00000002UL -#define ADJUSTMENT_MIRROR 0x00000004UL -#define ADJUSTMENT_ROTATE 0x00000008UL -#define ADJUSTMENT_TRANSPARENCY 0x00000010UL -#define ADJUSTMENT_ALL 0xFFFFFFFFUL - -enum GraphicDrawMode -{ - GRAPHICDRAWMODE_STANDARD = 0, - GRAPHICDRAWMODE_GREYS = 1, - GRAPHICDRAWMODE_MONO = 2, - GRAPHICDRAWMODE_WATERMARK = 3 -}; - -class GraphicManager; -class SvStream; -class BitmapWriteAccess; -class GraphicCache; -class VirtualDevice; -struct GrfSimpleCacheObj; -struct ImplTileInfo; - -class SVT_DLLPUBLIC GraphicAttr -{ -private: - - double mfGamma; - sal_uInt32 mnMirrFlags; - long mnLeftCrop; - long mnTopCrop; - long mnRightCrop; - long mnBottomCrop; - sal_uInt16 mnRotate10; - short mnContPercent; - short mnLumPercent; - short mnRPercent; - short mnGPercent; - short mnBPercent; - sal_Bool mbInvert; - sal_uInt8 mcTransparency; - GraphicDrawMode meDrawMode; - -public: - - GraphicAttr(); - ~GraphicAttr(); - - sal_Bool operator==( const GraphicAttr& rAttr ) const; - sal_Bool operator!=( const GraphicAttr& rAttr ) const { return !( *this == rAttr ); } - - void SetDrawMode( GraphicDrawMode eDrawMode ) { meDrawMode = eDrawMode; } - GraphicDrawMode GetDrawMode() const { return meDrawMode; } - - void SetMirrorFlags( sal_uLong nMirrFlags ) { mnMirrFlags = nMirrFlags; } - sal_uLong GetMirrorFlags() const { return mnMirrFlags; } - - void SetCrop( long nLeft_100TH_MM, long nTop_100TH_MM, long nRight_100TH_MM, long nBottom_100TH_MM ) - { - mnLeftCrop = nLeft_100TH_MM; mnTopCrop = nTop_100TH_MM; - mnRightCrop = nRight_100TH_MM; mnBottomCrop = nBottom_100TH_MM; - } - long GetLeftCrop() const { return mnLeftCrop; } - long GetTopCrop() const { return mnTopCrop; } - long GetRightCrop() const { return mnRightCrop; } - long GetBottomCrop() const { return mnBottomCrop; } - - void SetRotation( sal_uInt16 nRotate10 ) { mnRotate10 = nRotate10; } - sal_uInt16 GetRotation() const { return mnRotate10; } - - void SetLuminance( short nLuminancePercent ) { mnLumPercent = nLuminancePercent; } - short GetLuminance() const { return mnLumPercent; } - - void SetContrast( short nContrastPercent ) { mnContPercent = nContrastPercent; } - short GetContrast() const { return mnContPercent; } - - void SetChannelR( short nChannelRPercent ) { mnRPercent = nChannelRPercent; } - short GetChannelR() const { return mnRPercent; } - - void SetChannelG( short nChannelGPercent ) { mnGPercent = nChannelGPercent; } - short GetChannelG() const { return mnGPercent; } - - void SetChannelB( short nChannelBPercent ) { mnBPercent = nChannelBPercent; } - short GetChannelB() const { return mnBPercent; } - - void SetGamma( double fGamma ) { mfGamma = fGamma; } - double GetGamma() const { return mfGamma; } - - void SetInvert( sal_Bool bInvert ) { mbInvert = bInvert; } - sal_Bool IsInvert() const { return mbInvert; } - - void SetTransparency( sal_uInt8 cTransparency ) { mcTransparency = cTransparency; } - sal_uInt8 GetTransparency() const { return mcTransparency; } - - sal_Bool IsSpecialDrawMode() const { return( meDrawMode != GRAPHICDRAWMODE_STANDARD ); } - sal_Bool IsMirrored() const { return( mnMirrFlags != 0UL ); } - sal_Bool IsCropped() const - { - return( mnLeftCrop != 0 || mnTopCrop != 0 || - mnRightCrop != 0 || mnBottomCrop != 0 ); - } - sal_Bool IsRotated() const { return( ( mnRotate10 % 3600 ) != 0 ); } - sal_Bool IsTransparent() const { return( mcTransparency > 0 ); } - sal_Bool IsAdjusted() const - { - return( mnLumPercent != 0 || mnContPercent != 0 || mnRPercent != 0 || - mnGPercent != 0 || mnBPercent != 0 || mfGamma != 1.0 || mbInvert ); - } - - friend SvStream& operator<<( SvStream& rOStm, const GraphicAttr& rAttr ); - friend SvStream& operator>>( SvStream& rIStm, GraphicAttr& rAttr ); -}; - -class SVT_DLLPUBLIC GraphicObject : public SvDataCopyStream -{ - friend class GraphicManager; - -private: - - static GraphicManager* mpGlobalMgr; - - Graphic maGraphic; - GraphicAttr maAttr; - Size maPrefSize; - MapMode maPrefMapMode; - sal_uLong mnSizeBytes; - GraphicType meType; - GraphicManager* mpMgr; - String* mpLink; - Link* mpSwapStreamHdl; - String* mpUserData; - Timer* mpSwapOutTimer; - GrfSimpleCacheObj* mpSimpleCache; - sal_uLong mnAnimationLoopCount; - sal_Bool mbAutoSwapped : 1; - sal_Bool mbTransparent : 1; - sal_Bool mbAnimated : 1; - sal_Bool mbEPS : 1; - sal_Bool mbIsInSwapIn : 1; - sal_Bool mbIsInSwapOut : 1; - sal_Bool mbAlpha : 1; - - void SVT_DLLPRIVATE ImplConstruct(); - void SVT_DLLPRIVATE ImplAssignGraphicData(); - void SVT_DLLPRIVATE ImplSetGraphicManager( - const GraphicManager* pMgr, - const OString* pID = NULL, - const GraphicObject* pCopyObj = NULL - ); - void SVT_DLLPRIVATE ImplAutoSwapIn(); - sal_Bool SVT_DLLPRIVATE ImplIsAutoSwapped() const { return mbAutoSwapped; } - sal_Bool SVT_DLLPRIVATE ImplGetCropParams( - OutputDevice* pOut, - Point& rPt, - Size& rSz, - const GraphicAttr* pAttr, - PolyPolygon& rClipPolyPoly, - sal_Bool& bRectClipRegion - ) const; - - /** Render a given number of tiles in an optimized way - - This method recursively subdivides the tile rendering problem - in smaller parts, i.e. rendering output size x with few tiles - of size y, which in turn are generated from the original - bitmap in a recursive fashion. The subdivision size can be - controlled by the exponent argument, which specifies the - minimal number of smaller tiles used in one recursion - step. The resulting tile size is given as the integer number - of repetitions of the original bitmap along x and y. As the - exponent need not necessarily divide these numbers without - remainder, the repetition counts are effectively converted to - base-exponent numbers, where each place denotes the number of - times the corresponding tile size is rendered. - - @param rVDev - Virtual device to render everything into - - @param nExponent - Number of repetitions per subdivision step, _must_ be greater than 1 - - @param nNumTilesX - Number of original tiles to generate in x direction - - @param nNumTilesY - Number of original tiles to generate in y direction - - @param rTileSizePixel - Size in pixel of the original tile bitmap to render it in - - @param pAttr - Graphic attributes to be used for rendering - - @param nFlags - Graphic flags to be used for rendering - - @param rCurrPos - Current output point for this recursion level (should start with (0,0)) - - @return true, if everything was successfully rendered. - */ - bool SVT_DLLPRIVATE ImplRenderTempTile( - VirtualDevice& rVDev, - int nExponent, - int nNumTilesX, - int nNumTilesY, - const Size& rTileSizePixel, - const GraphicAttr* pAttr, - sal_uLong nFlags - ); - - /// internally called by ImplRenderTempTile() - bool SVT_DLLPRIVATE ImplRenderTileRecursive( - VirtualDevice& rVDev, - int nExponent, - int nMSBFactor, - int nNumOrigTilesX, - int nNumOrigTilesY, - int nRemainderTilesX, - int nRemainderTilesY, - const Size& rTileSizePixel, - const GraphicAttr* pAttr, - sal_uLong nFlags, - ImplTileInfo& rTileInfo - ); - - bool SVT_DLLPRIVATE ImplDrawTiled( - OutputDevice* pOut, - const Rectangle& rArea, - const Size& rSizePixel, - const Size& rOffset, - const GraphicAttr* pAttr, - sal_uLong nFlags, - int nTileCacheSize1D - ); - - bool SVT_DLLPRIVATE ImplDrawTiled( - OutputDevice& rOut, - const Point& rPos, - int nNumTilesX, - int nNumTilesY, - const Size& rTileSize, - const GraphicAttr* pAttr, - sal_uLong nFlags - ); - - void SVT_DLLPRIVATE ImplTransformBitmap( - BitmapEx& rBmpEx, - const GraphicAttr& rAttr, - const Size& rCropLeftTop, - const Size& rCropRightBottom, - const Rectangle& rCropRect, - const Size& rDstSize, - sal_Bool bEnlarge - ) const; - - DECL_LINK( ImplAutoSwapOutHdl, void* ); - -protected: - - virtual void GraphicManagerDestroyed(); - virtual SvStream* GetSwapStream() const; - - virtual void Load( SvStream& ); - virtual void Save( SvStream& ); - virtual void Assign( const SvDataCopyStream& ); - -public: - - TYPEINFO(); - - GraphicObject( const GraphicManager* pMgr = NULL ); - GraphicObject( const Graphic& rGraphic, const GraphicManager* pMgr = NULL ); - GraphicObject( const GraphicObject& rCacheObj, const GraphicManager* pMgr = NULL ); - explicit GraphicObject( const OString& rUniqueID, const GraphicManager* pMgr = NULL ); - ~GraphicObject(); - - GraphicObject& operator=( const GraphicObject& rCacheObj ); - sal_Bool operator==( const GraphicObject& rCacheObj ) const; - sal_Bool operator!=( const GraphicObject& rCacheObj ) const { return !( *this == rCacheObj ); } - - sal_Bool HasSwapStreamHdl() const { return( mpSwapStreamHdl != NULL && mpSwapStreamHdl->IsSet() ); } - void SetSwapStreamHdl(); - void SetSwapStreamHdl( const Link& rHdl, const sal_uLong nSwapOutTimeout = 0UL ); - sal_uLong GetSwapOutTimeout() const { return( mpSwapOutTimer ? mpSwapOutTimer->GetTimeout() : 0 ); } - - void FireSwapInRequest(); - void FireSwapOutRequest(); - - GraphicManager& GetGraphicManager() const { return *mpMgr; } - - sal_Bool IsCached( - OutputDevice* pOut, - const Point& rPt, - const Size& rSz, - const GraphicAttr* pAttr = NULL, - sal_uLong nFlags = GRFMGR_DRAW_STANDARD - ) const; - void ReleaseFromCache(); - - const Graphic& GetGraphic() const; - void SetGraphic( const Graphic& rGraphic, const GraphicObject* pCopyObj = 0); - void SetGraphic( const Graphic& rGraphic, const String& rLink ); - - /** Get graphic transformed according to given attributes - - This method returns a Graphic transformed, cropped and scaled - to the given parameters, ready to be rendered to printer or - display. The returned graphic has the same visual appearance - as if it had been drawn via GraphicObject::Draw() to a - specific output device. - - @param rDestSize - Desired output size in logical coordinates. The mapmode to - interpret these logical coordinates in is given by the second - parameter, rDestMap. - - @param rDestMap - Mapmode the output should be interpreted in. This is used to - interpret rDestSize, to set the appropriate PrefMapMode on the - returned Graphic, and to deal correctly with metafile graphics. - - @param rAttr - Graphic attributes used to transform the graphic. This - includes cropping, rotation, mirroring, and various color - adjustment parameters. - - @return the readily transformed Graphic - */ - Graphic GetTransformedGraphic( - const Size& rDestSize, - const MapMode& rDestMap, - const GraphicAttr& rAttr - ) const; - Graphic GetTransformedGraphic( const GraphicAttr* pAttr = NULL ) const; // TODO: Change to Impl - - void SetAttr( const GraphicAttr& rAttr ); - const GraphicAttr& GetAttr() const { return maAttr; } - - sal_Bool HasLink() const { return( mpLink != NULL && mpLink->Len() > 0 ); } - void SetLink(); - void SetLink( const String& rLink ); - String GetLink() const; - - sal_Bool HasUserData() const { return( mpUserData != NULL && mpUserData->Len() > 0 ); } - void SetUserData(); - void SetUserData( const String& rUserData ); - String GetUserData() const; - - OString GetUniqueID() const; - - GraphicType GetType() const { return meType; } - const Size& GetPrefSize() const { return maPrefSize; } - const MapMode& GetPrefMapMode() const { return maPrefMapMode; } - sal_uLong GetSizeBytes() const { return mnSizeBytes; } - sal_Bool IsTransparent() const { return mbTransparent; } - sal_Bool IsAlpha() const { return mbAlpha; } - sal_Bool IsAnimated() const { return mbAnimated; } - sal_Bool IsEPS() const { return mbEPS; } - - Link GetAnimationNotifyHdl() const { return maGraphic.GetAnimationNotifyHdl(); } - - sal_Bool SwapOut(); - sal_Bool SwapOut( SvStream* pOStm ); - sal_Bool SwapIn(); - - sal_Bool IsInSwapIn() const { return mbIsInSwapIn; } - sal_Bool IsInSwapOut() const { return mbIsInSwapOut; } - sal_Bool IsInSwap() const { return( mbIsInSwapOut || mbIsInSwapOut ); } - sal_Bool IsSwappedOut() const { return( mbAutoSwapped || maGraphic.IsSwapOut() ); } - void SetSwapState(); - - bool Draw( - OutputDevice* pOut, - const Point& rPt, - const Size& rSz, - const GraphicAttr* pAttr = NULL, - sal_uLong nFlags = GRFMGR_DRAW_STANDARD - ); - - sal_Bool DrawWithPDFHandling( - OutputDevice& rOutDev, - const Point& rPt, - const Size& rSz, - const GraphicAttr* pGrfAttr = NULL, - const sal_uLong nFlags = GRFMGR_DRAW_STANDARD - ); - - /** Draw the graphic repeatedly into the given output rectangle - - @param pOut - OutputDevice where the rendering should take place - - @param rArea - The output area that is filled with tiled instances of this graphic - - @param rSize - The actual size of a single tile - - @param rOffset - Offset from the left, top position of rArea, where to start - the tiling. The upper left corner of the graphic tilings will - virtually start at this position. Concretely, only that many - tiles are drawn to completely fill the given output area. - - @param pAttr - Optional GraphicAttr - - @param nFlags - Optional rendering flags - - @param nTileCacheSize1D - Optional dimension of the generated cache tiles. The pOut sees - a number of tile draws, which have approximately - nTileCacheSize1D times nTileCacheSize1D bitmap sizes if the - tile bitmap is smaller. Otherwise, the tile is drawn as - is. This is useful if e.g. you want only a few, very large - bitmap drawings appear on the outdev. - - @return sal_True, if drawing completed successfully - */ - sal_Bool DrawTiled( - OutputDevice* pOut, - const Rectangle& rArea, - const Size& rSize, - const Size& rOffset, - const GraphicAttr* pAttr = NULL, - sal_uLong nFlags = GRFMGR_DRAW_STANDARD, - int nTileCacheSize1D=128 - ); - - sal_Bool StartAnimation( - OutputDevice* pOut, - const Point& rPt, - const Size& rSz, - long nExtraData = 0L, - const GraphicAttr* pAttr = NULL, - sal_uLong nFlags = GRFMGR_DRAW_STANDARD, - OutputDevice* pFirstFrameOutDev = NULL - ); - - void StopAnimation( OutputDevice* pOut = NULL, long nExtraData = 0L ); - - friend SvStream& operator<<( SvStream& rOStm, const GraphicObject& rGraphicObj ); - friend SvStream& operator>>( SvStream& rIStm, GraphicObject& rGraphicObj ); - - static GraphicObject CreateGraphicObjectFromURL( const OUString &rURL ); - // will inspect an object ( e.g. a control ) for any 'ImageURL' - // properties and return these in a vector. Note: this implementation - // will cater for XNameContainer objects and deepinspect any containees - // if they exist - static void InspectForGraphicObjectImageURL( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIf, std::vector< OUString >& rvEmbedImgUrls ); -}; - -typedef ::std::vector< GraphicObject* > GraphicObjectList_impl; - -class SVT_DLLPUBLIC GraphicManager -{ - friend class GraphicObject; - friend class GraphicDisplayCacheEntry; - -private: - - GraphicObjectList_impl maObjList; - GraphicCache* mpCache; - - GraphicManager( const GraphicManager& ) {} - GraphicManager& operator=( const GraphicManager& ) { return *this; } - - sal_Bool SVT_DLLPRIVATE ImplDraw( - OutputDevice* pOut, - const Point& rPt, - const Size& rSz, - GraphicObject& rObj, - const GraphicAttr& rAttr, - const sal_uLong nFlags, - sal_Bool& rCached - ); - - sal_Bool SVT_DLLPRIVATE ImplCreateOutput( - OutputDevice* pOut, - const Point& rPt, - const Size& rSz, - const BitmapEx& rBmpEx, - const GraphicAttr& rAttr, - const sal_uLong nFlags, - BitmapEx* pBmpEx = NULL - ); - sal_Bool SVT_DLLPRIVATE ImplCreateOutput( - OutputDevice* pOut, - const Point& rPt, - const Size& rSz, - const GDIMetaFile& rMtf, - const GraphicAttr& rAttr, - const sal_uLong nFlags, - GDIMetaFile& rOutMtf, - BitmapEx& rOutBmpEx - ); - - static void SVT_DLLPRIVATE ImplAdjust( - BitmapEx& rBmpEx, - const GraphicAttr& rAttr, - sal_uLong nAdjustmentFlags - ); - static void SVT_DLLPRIVATE ImplAdjust( - GDIMetaFile& rMtf, - const GraphicAttr& rAttr, - sal_uLong nAdjustmentFlags - ); - static void SVT_DLLPRIVATE ImplAdjust( - Animation& rAnimation, - const GraphicAttr& rAttr, - sal_uLong nAdjustmentFlags - ); - - static void SVT_DLLPRIVATE ImplDraw( - OutputDevice* pOut, - const Point& rPt, - const Size& rSz, - const GDIMetaFile& rMtf, - const GraphicAttr& rAttr - ); - - // Only used by GraphicObject's Ctor's and Dtor's - void SVT_DLLPRIVATE ImplRegisterObj( - const GraphicObject& rObj, - Graphic& rSubstitute, - const OString* pID = NULL, - const GraphicObject* pCopyObj = NULL - ); - void SVT_DLLPRIVATE ImplUnregisterObj( const GraphicObject& rObj ); - inline sal_Bool SVT_DLLPRIVATE ImplHasObjects() const { return !maObjList.empty(); } - - // Only used in swap case by GraphicObject - void SVT_DLLPRIVATE ImplGraphicObjectWasSwappedOut( const GraphicObject& rObj ); - sal_Bool SVT_DLLPRIVATE ImplFillSwappedGraphicObject( - const GraphicObject& rObj, - Graphic& rSubstitute - ); - void SVT_DLLPRIVATE ImplGraphicObjectWasSwappedIn( const GraphicObject& rObj ); - - OString SVT_DLLPRIVATE ImplGetUniqueID( const GraphicObject& rObj ) const; - -public: - - GraphicManager( sal_uLong nCacheSize = 10000000UL, sal_uLong nMaxObjCacheSize = 2400000UL ); - ~GraphicManager(); - - void SetMaxCacheSize( sal_uLong nNewCacheSize ); - - void SetMaxObjCacheSize( - sal_uLong nNewMaxObjSize, - sal_Bool bDestroyGreaterCached = sal_False - ); - - void SetCacheTimeout( sal_uLong nTimeoutSeconds ); - - void ReleaseFromCache( const GraphicObject& rObj ); - - sal_Bool IsInCache( - OutputDevice* pOut, - const Point& rPt, - const Size& rSz, - const GraphicObject& rObj, - const GraphicAttr& rAttr - ) const; - - sal_Bool DrawObj( - OutputDevice* pOut, - const Point& rPt, - const Size& rSz, - GraphicObject& rObj, - const GraphicAttr& rAttr, - const sal_uLong nFlags, - sal_Bool& rCached - ); -}; - -#endif // _GRFMGR_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/headbar.hxx b/svtools/inc/svtools/headbar.hxx deleted file mode 100644 index 9be63ce3229d..000000000000 --- a/svtools/inc/svtools/headbar.hxx +++ /dev/null @@ -1,377 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _HEADBAR_HXX -#define _HEADBAR_HXX - -#include "svtools/svtdllapi.h" -#include -#include - -/************************************************************************* - -Beschreibung -============ - -class HeaderBar - -Diese Klasse dient zur Anzeige einer Ueberschiftszeile. Diese kann Texte, -Images oder beides anzeigen. Man kann die Items in der Groesse aendern, -verschieben oder anklicken. In vielen Faellen macht es zum Beispiel Sinn, -dieses Control mit einer SvTabListBox zu verbinden. - --------------------------------------------------------------------------- - -WinBits - -WB_BORDER Oben und unten wird ein Border gezeichnet -WB_BOTTOMBORDER Unten wird ein Border gezeichnet -WB_BUTTONSTYLE Die Items sehen aus wie Buttons, ansonsten sind sie flach -WB_3DLOOK 3D-Darstellung -WB_DRAG Items koennen verschoben werden -WB_STDHEADERBAR WB_BUTTONSTYLE | WB_BOTTOMBORDER - --------------------------------------------------------------------------- - -ItemBits - -HIB_LEFT Inhalt wird im Item linksbuendig ausgegeben -HIB_CENTER Inhalt wird im Item zentriert ausgegeben -HIB_RIGHT Inhalt wird im Item rechtsbuendig ausgegeben -HIB_TOP Inhalt wird im Item an der oberen Kante ausgegeben -HIB_VCENTER Inhalt wird im Item vertikal zentiert ausgegeben -HIB_BOTTOM Inhalt wird im Item an der unteren Kante ausgegeben -HIB_LEFTIMAGE Bei Text und Image, wird Image links vom Text ausgegeben -HIB_RIGHTIMAGE Bei Text und Image, wird Image rechts vom Text ausgegeben -HIB_FIXED Item laesst sich nicht in der Groesse aendern -HIB_FIXEDPOS Item laesst sich nicht verschieben -HIB_CLICKABLE Item laesst sich anklicken - (Select-Handler wird erst bei MouseButtonUp gerufen) -HIB_FLAT Item wird flach dargestellt, auch wenn WB_BUTTONSTYLE gesetzt ist -HIB_DOWNARROW Es wird ein Pfeil nach unter hinter dem Text ausgegeben, - welcher zum Beispiel angezeigt werden sollte, wenn nach - diesem Item eine dazugehoerende Liste absteigend sortiert - ist. Der Status des Pfeils kann mit SetItemBits() - gesetzt/zurueckgesetzt werden. -HIB_UPARROW Es wird ein Pfeil nach oben hinter dem Text ausgegeben, - welcher zum Beispiel angezeigt werden sollte, wenn nach - diesem Item eine dazugehoerende Liste aufsteigend sortiert - ist.Der Status des Pfeils kann mit SetItemBits() - gesetzt/zurueckgesetzt werden. -HIB_USERDRAW Zu diesem Item wird auch der UserDraw-Handler gerufen. -HIB_STDSTYLE (HIB_LEFT | HIB_LEFTIMAGE | HIB_VCENTER | HIB_CLICKABLE) - --------------------------------------------------------------------------- - -Handler - -Select() Wird gerufen, wenn Item angeklickt wird. Wenn - HIB_CLICKABLE beim Item gesetzt ist und nicht HIB_FLAT, - wird der Handler erst im MouseButtonUp-Handler gerufen, - wenn die Maus ueber dem Item losgelassen wurde. Dann - verhaellt sich der Select-Handler wie bei einem - ToolBox-Button. -DoubleClick() Dieser Handler wird gerufen, wenn ein Item - doppelt geklickt wird. Ob das Item oder der - Trenner angeklickt wurden, kann mit IsItemMode() - abgefragt werden. Wenn ein Trenner doppelt angeklickt - wird, sollte normalerweise die optimale Spaltenbreite - berechnet werden und diese gesetzt werden. -StartDrag() Dieser Handler wird gerufen, wenn Draggen gestartet - wird, bzw. wenn ein Item angeklickt wurde. - In diesem Handler sollte spaetestens mit SetDragSize() - die Groesse der Size-Linie gesetzt werden, wenn - IsItemMode() sal_False zurueckliefert. -Drag() Dieser Handler wird gerufen, wenn gedraggt wird. Wenn - mit SetDragSize() keine Groesse gesetzt wird, kann - dieser Handler dafuer benutzt werden, um die - Linie im angrenzenden Fenster selber zu zeichnen. Mit - GetDragPos() kann die aktuelle Drag-Position abgefragt - werden. Mit IsItemMode() sollte in diesem Fall - abgefragt werden, ob auch ein Trenner gedraggt wird. -EndDrag() Dieser Handler wird gerufen, wenn ein Drag-Vorgang - beendet wurde. Wenn im EndDrag-Handler GetCurItemId() - 0 zurueckliefert, wurde der Drag-Vorgang abgebrochen. - Wenn dies nicht der Fall ist und IsItemMode() sal_False - zurueckliefert, sollte von dem gedraggten Item - die neue Groesse mit GetItemSize() abgefragt werden - und entsprechend im dazugehoerigem Control uebernommen - werden. Wenn IsItemMode() sal_True, GetCurItemId() eine Id - und IsItemDrag() sal_True zurueckliefert, wurde dieses - Item verschoben. Es sollte dann mit GetItemPos() die - neue Position abgefragt werden und auch die Daten - im dazugehoerigem Control angepasst werden. Ansonsten - koennte auch mit GetItemDragPos() die Position abgefragt - werden, an welche Stelle das Item verschoben wurde. - - -Weitere Methoden, die fuer die Handler wichtig sind. - -GetCurItemId() Liefert die Id vom Item zurueck, fuer welches gerade - der Handler gerufen wurde. Liefert nur eine gueltige - Id in den Handlern Select(), DoubleClick(), StartDrag(), - Drag() und EndDrag(). Im EndDrag-Handler leifert - diese Methode die Id vom gedraggten Item zurueck oder - 0, wenn der Drag-Vorgang abgebrochen wurde. -GetItemDragPos() Liefert die Position zurueck, an der ein Item verschoben - wird bzw. wurde. HEADERBAR_ITEM_NOTFOUND wird - zurueckgeliefert, wenn der Vorgang abgebrochen wurde - oder wenn kein ItemDrag aktiv ist. -IsItemMode() Mit dieser Methode kann abgefragt werden, ob fuer ein - Item oder einen Trenner der Handler gerufen wurde. - sal_True - Handler wurde fuer das Item gerufen - sal_False - Handler wurde fuer den Trenner gerufen -IsItemDrag() Mit dieser Methode kann abgefragt werden, ob ein - Item gedragt oder selektiert wurde. - sal_True - Item wird verschoben - sal_False - Item wird selektiert -SetDragSize() Mit dieser Methode wird gesetzt, wir gross der - Trennstrich sein soll, der vom Control gemalt wird. - Dies sollte so gross sein, wie das angrenzende Fenster - hoch ist. Die Hoehe vom HeaderBar wird automatisch - dazugerechnet. - --------------------------------------------------------------------------- - -Weitere Methoden - -SetOffset() Mit dieser Methode wird der Offset gesetzt, ab dem - die Items ausgegeben werden. Dies wird benoetigt, - wenn das dazugehoerige Fenster gescrollt wird. -CalcWindowSizePixel() Mit dieser Methode kann man die Hoehe des Fensters - berechnen, damit der Inhalt der Items ausgegeben - werden kann. - --------------------------------------------------------------------------- - -Tips und Tricks: - -1) KontextMenu -Wenn ein kontextsensitives PopupMenu anzeigt werden soll, muss der -Command-Handler ueberlagert werden. Mit GetItemId() und bei -Uebergabe der Mausposition kann ermittelt werden, ob der Mausclick -ueber einem bzw. ueber welchem Item durchgefuehrt wurde. - -2) Letztes Item -Wenn man ButtonStyle gesetzt hat, sieht es besser aus, wenn man am -Ende noch ein leeres Item setzt, was den restlichen Platz einnimmt. -Dazu fuegt man ein Item mit einem leeren String ein und uebergibt als -Groesse HEADERBAR_FULLSIZE. Bei diesem Item sollte man dann auch -nicht HIB_CLICKABLE setzen und dafuer HIB_FIXEDPOS. - -*************************************************************************/ - -class Accelerator; -class ImplHeadItem; - -typedef ::std::vector< ImplHeadItem* > ImplHeadItemList; - -// ----------- -// - WinBits - -// ----------- - -#define WB_BOTTOMBORDER ((WinBits)0x0400) -#define WB_BUTTONSTYLE ((WinBits)0x0800) -#define WB_STDHEADERBAR (WB_BUTTONSTYLE | WB_BOTTOMBORDER) - -// --------------------- -// - HeaderBarItemBits - -// --------------------- - -typedef sal_uInt16 HeaderBarItemBits; - -// ---------------------------- -// - Bits fuer HeaderBarItems - -// ---------------------------- - -#define HIB_LEFT ((HeaderBarItemBits)0x0001) -#define HIB_CENTER ((HeaderBarItemBits)0x0002) -#define HIB_RIGHT ((HeaderBarItemBits)0x0004) -#define HIB_TOP ((HeaderBarItemBits)0x0008) -#define HIB_VCENTER ((HeaderBarItemBits)0x0010) -#define HIB_BOTTOM ((HeaderBarItemBits)0x0020) -#define HIB_LEFTIMAGE ((HeaderBarItemBits)0x0040) -#define HIB_RIGHTIMAGE ((HeaderBarItemBits)0x0080) -#define HIB_FIXED ((HeaderBarItemBits)0x0100) -#define HIB_FIXEDPOS ((HeaderBarItemBits)0x0200) -#define HIB_CLICKABLE ((HeaderBarItemBits)0x0400) -#define HIB_FLAT ((HeaderBarItemBits)0x0800) -#define HIB_DOWNARROW ((HeaderBarItemBits)0x1000) -#define HIB_UPARROW ((HeaderBarItemBits)0x2000) -#define HIB_USERDRAW ((HeaderBarItemBits)0x4000) -#define HIB_STDSTYLE (HIB_LEFT | HIB_LEFTIMAGE | HIB_VCENTER | HIB_CLICKABLE) - -// ------------------- -// - HeaderBar-Types - -// ------------------- - -#define HEADERBAR_APPEND ((sal_uInt16)0xFFFF) -#define HEADERBAR_ITEM_NOTFOUND ((sal_uInt16)0xFFFF) -#define HEADERBAR_FULLSIZE ((long)1000000000) - -#define HEADERBAR_TEXTOFF 2 - -// ------------- -// - HeaderBar - -// ------------- - -class SVT_DLLPUBLIC HeaderBar : public Window -{ -private: - ImplHeadItemList* mpItemList; - long mnBorderOff1; - long mnBorderOff2; - long mnOffset; - long mnDX; - long mnDY; - long mnDragSize; - long mnStartPos; - long mnDragPos; - long mnMouseOff; - sal_uInt16 mnCurItemId; - sal_uInt16 mnItemDragPos; - sal_Bool mbDragable; - sal_Bool mbDrag; - sal_Bool mbItemDrag; - sal_Bool mbOutDrag; - sal_Bool mbButtonStyle; - sal_Bool mbItemMode; - Link maStartDragHdl; - Link maDragHdl; - Link maEndDragHdl; - Link maSelectHdl; - Link maDoubleClickHdl; - Link maCreateAccessibleHdl; - - ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessible > - mxAccessible; - -#ifdef _SV_HEADBAR_CXX - using Window::ImplInit; - SVT_DLLPRIVATE void ImplInit( WinBits nWinStyle ); - SVT_DLLPRIVATE void ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground ); - SVT_DLLPRIVATE long ImplGetItemPos( sal_uInt16 nPos ) const; - SVT_DLLPRIVATE Rectangle ImplGetItemRect( sal_uInt16 nPos ) const; - using Window::ImplHitTest; - SVT_DLLPRIVATE sal_uInt16 ImplHitTest( const Point& rPos, long& nMouseOff, sal_uInt16& nPos ) const; - SVT_DLLPRIVATE void ImplInvertDrag( sal_uInt16 nStartPos, sal_uInt16 nEndPos ); - SVT_DLLPRIVATE void ImplDrawItem( OutputDevice* pDev, - sal_uInt16 nPos, sal_Bool bHigh, sal_Bool bDrag, - const Rectangle& rItemRect, - const Rectangle* pRect, - sal_uLong nFlags ); - SVT_DLLPRIVATE void ImplDrawItem( sal_uInt16 nPos, sal_Bool bHigh = sal_False, - sal_Bool bDrag = sal_False, - const Rectangle* pRect = NULL ); - SVT_DLLPRIVATE void ImplUpdate( sal_uInt16 nPos, - sal_Bool bEnd = sal_False, sal_Bool bDirect = sal_False ); - SVT_DLLPRIVATE void ImplStartDrag( const Point& rPos, sal_Bool bCommand ); - SVT_DLLPRIVATE void ImplDrag( const Point& rPos ); - SVT_DLLPRIVATE void ImplEndDrag( sal_Bool bCancel ); -#endif - -public: - HeaderBar( Window* pParent, WinBits nWinBits = WB_STDHEADERBAR ); - HeaderBar( Window* pParent, const ResId& rResId ); - ~HeaderBar(); - - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void MouseMove( const MouseEvent& rMEvt ); - virtual void Tracking( const TrackingEvent& rTEvt ); - virtual void Paint( const Rectangle& rRect ); - virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); - virtual void Resize(); - virtual void Command( const CommandEvent& rCEvt ); - virtual void RequestHelp( const HelpEvent& rHEvt ); - virtual void StateChanged( StateChangedType nStateChange ); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - - virtual void UserDraw( const UserDrawEvent& rUDEvt ); - virtual void StartDrag(); - virtual void Drag(); - virtual void EndDrag(); - virtual void Select(); - virtual void DoubleClick(); - - void InsertItem( sal_uInt16 nItemId, const XubString& rText, - long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE, - sal_uInt16 nPos = HEADERBAR_APPEND ); - void RemoveItem( sal_uInt16 nItemId ); - void MoveItem( sal_uInt16 nItemId, sal_uInt16 nNewPos ); - void Clear(); - - void SetOffset( long nNewOffset = 0 ); - long GetOffset() const { return mnOffset; } - inline void SetDragSize( long nNewSize = 0 ) { mnDragSize = nNewSize; } - long GetDragSize() const { return mnDragSize; } - - sal_uInt16 GetItemCount() const; - sal_uInt16 GetItemPos( sal_uInt16 nItemId ) const; - sal_uInt16 GetItemId( sal_uInt16 nPos ) const; - sal_uInt16 GetItemId( const Point& rPos ) const; - Rectangle GetItemRect( sal_uInt16 nItemId ) const; - sal_uInt16 GetCurItemId() const { return mnCurItemId; } - long GetDragPos() const { return mnDragPos; } - sal_uInt16 GetItemDragPos() const { return mnItemDragPos; } - sal_Bool IsItemMode() const { return mbItemMode; } - sal_Bool IsItemDrag() const { return mbItemDrag; } - - void SetItemSize( sal_uInt16 nItemId, long nNewSize ); - long GetItemSize( sal_uInt16 nItemId ) const; - void SetItemBits( sal_uInt16 nItemId, HeaderBarItemBits nNewBits ); - HeaderBarItemBits GetItemBits( sal_uInt16 nItemId ) const; - - void SetItemText( sal_uInt16 nItemId, const XubString& rText ); - XubString GetItemText( sal_uInt16 nItemId ) const; - - XubString GetHelpText( sal_uInt16 nItemId ) const; - OString GetHelpId( sal_uInt16 nItemId ) const; - - Size CalcWindowSizePixel() const; - - inline void SetHelpText( const String& rText ) { Window::SetHelpText( rText ); } - inline const String& GetHelpText() const { return Window::GetHelpText(); } - inline void SetHelpId( const OString& rId ) { Window::SetHelpId( rId ); } - inline const OString& GetHelpId() const { return Window::GetHelpId(); } - - inline void SetStartDragHdl( const Link& rLink ) { maStartDragHdl = rLink; } - inline const Link& GetStartDragHdl() const { return maStartDragHdl; } - inline void SetDragHdl( const Link& rLink ) { maDragHdl = rLink; } - inline const Link& GetDragHdl() const { return maDragHdl; } - inline void SetEndDragHdl( const Link& rLink ) { maEndDragHdl = rLink; } - inline const Link& GetEndDragHdl() const { return maEndDragHdl; } - inline void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; } - inline const Link& GetSelectHdl() const { return maSelectHdl; } - inline void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; } - inline const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; } - inline void SetCreateAccessibleHdl( const Link& rLink ) { maCreateAccessibleHdl = rLink; } - inline const Link& GetCreateAccessibleHdl() const { return maCreateAccessibleHdl; } - - inline sal_Bool IsDragable() const { return mbDragable; } - - /** Creates and returns the accessible object of the header bar. */ - virtual ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessible > CreateAccessible(); - void SetAccessible( ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > ); -}; - -#endif // _HEADBAR_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/helpid.hrc b/svtools/inc/svtools/helpid.hrc deleted file mode 100644 index 0751c5b70cd7..000000000000 --- a/svtools/inc/svtools/helpid.hrc +++ /dev/null @@ -1,97 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVT_HELPID_HRC -#define _SVT_HELPID_HRC - -#define HID_FILEDLG_PATHDLG "SVT_HID_FILEDLG_PATHDLG" -#define HID_FILEDLG_DIR "SVT_HID_FILEDLG_DIR" -#define HID_FILEDLG_EDIT "SVT_HID_FILEDLG_EDIT" -#define HID_FILEDLG_DIRS "SVT_HID_FILEDLG_DIRS" -#define HID_FILEDLG_DRIVE "SVT_HID_FILEDLG_DRIVE" -#define HID_FILEDLG_DRIVES "SVT_HID_FILEDLG_DRIVES" -#define HID_FILEDLG_NEWDIR "SVT_HID_FILEDLG_NEWDIR" -#define HID_FILEDLG_HOME "SVT_HID_FILEDLG_HOME" -#define HID_FILEDLG_FILE "SVT_HID_FILEDLG_FILE" -#define HID_FILEDLG_LINK_CB "SVT_HID_FILEDLG_LINK_CB" -#define HID_FILEDLG_PREVIEW_CB "SVT_HID_FILEDLG_PREVIEW_CB" -#define HID_FILEDLG_STANDARD "SVT_HID_FILEDLG_STANDARD" -#define HID_FILEDLG_MANAGER "SVT_HID_FILEDLG_MANAGER" -#define HID_FILEDLG_URL "SVT_HID_FILEDLG_URL" -#define HID_FILEDLG_USE_PASSWD "SVT_HID_FILEDLG_USE_PASSWD" -#define HID_FILEDLG_READ_ONLY "SVT_HID_FILEDLG_READ_ONLY" -#define HID_FILEDLG_AUTOCOMPLETEBOX "SVT_HID_FILEDLG_AUTOCOMPLETEBOX" -#define HID_FILEDLG_SAVE_BTN "SVT_HID_FILEDLG_SAVE_BTN" -#define HID_FILEDLG_SAVE_FILENAME "SVT_HID_FILEDLG_SAVE_FILENAME" -#define HID_FILEDLG_SAVE_FILETYPE "SVT_HID_FILEDLG_SAVE_FILETYPE" -#define HID_FILEDLG_INSERT_BTN "SVT_HID_FILEDLG_INSERT_BTN" -#define HID_FILEDLG_PATH_BTN "SVT_HID_FILEDLG_PATH_BTN" -#define HID_FILEDLG_PATH_FILENAME "SVT_HID_FILEDLG_PATH_FILENAME" -#define HID_FILEDLG_FOLDER_BTN "SVT_HID_FILEDLG_FOLDER_BTN" -#define HID_FILEDLG_FOLDER_FILENAME "SVT_HID_FILEDLG_FOLDER_FILENAME" -#define HID_FILEDLG_SRCHFOLDER_BTN "SVT_HID_FILEDLG_SRCHFOLDER_BTN" -#define HID_FILEDLG_EDIT_FAVORITES_LISTBOX "SVT_HID_FILEDLG_EDIT_FAVORITES_LISTBOX" -#define HID_FILEDLG_EDIT_FAVORITES_HEADERBAR "SVT_HID_FILEDLG_EDIT_FAVORITES_HEADERBAR" - -// Help ids of template dialog -#define HID_TEMPLATEDLG_DIALOG "SVT_HID_TEMPLATEDLG_DIALOG" -#define HID_TEMPLATEDLG_ICONCTRL "SVT_HID_TEMPLATEDLG_ICONCTRL" -#define HID_TEMPLATEDLG_FILEVIEW "SVT_HID_TEMPLATEDLG_FILEVIEW" -#define HID_TEMPLATEDLG_TB_BACK "SVT_HID_TEMPLATEDLG_TB_BACK" -#define HID_TEMPLATEDLG_TB_PREV "SVT_HID_TEMPLATEDLG_TB_PREV" -#define HID_TEMPLATEDLG_TB_PRINT "SVT_HID_TEMPLATEDLG_TB_PRINT" -#define HID_TEMPLATEDLG_TB_DOCINFO "SVT_HID_TEMPLATEDLG_TB_DOCINFO" -#define HID_TEMPLATEDLG_TB_PREVIEW "SVT_HID_TEMPLATEDLG_TB_PREVIEW" - -// Help ids for the filepicker dialogs -#define HID_EXPLORERDLG_FILE "SVT_HID_EXPLORERDLG_FILE" - -// help ids for fileview contextmenu -#define HID_FILEVIEW_MENU_DELETE "SVT_HID_FILEVIEW_MENU_DELETE" -#define HID_FILEVIEW_MENU_RENAME "SVT_HID_FILEVIEW_MENU_RENAME" - -// help ids for the different modi of the file picker dialog - // FREE -#define HID_FILESAVE_LEVELUP "SVT_HID_FILESAVE_LEVELUP" -#define HID_FILESAVE_CREATEDIRECTORY "SVT_HID_FILESAVE_CREATEDIRECTORY" -#define HID_FILESAVE_DEFAULTDIRECTORY "SVT_HID_FILESAVE_DEFAULTDIRECTORY" -#define HID_FILESAVE_FILEVIEW "SVT_HID_FILESAVE_FILEVIEW" -#define HID_FILESAVE_TEMPLATE "SVT_HID_FILESAVE_TEMPLATE" -#define HID_FILESAVE_FILEURL "SVT_HID_FILESAVE_FILEURL" -#define HID_FILESAVE_FILETYPE "SVT_HID_FILESAVE_FILETYPE" -#define HID_FILESAVE_DOSAVE "SVT_HID_FILESAVE_DOSAVE" -#define HID_FILESAVE_AUTOEXTENSION "SVT_HID_FILESAVE_AUTOEXTENSION" -#define HID_FILESAVE_SAVEWITHPASSWORD "SVT_HID_FILESAVE_SAVEWITHPASSWORD" -#define HID_FILESAVE_CUSTOMIZEFILTER "SVT_HID_FILESAVE_CUSTOMIZEFILTER" -#define HID_FILESAVE_SELECTION "SVT_HID_FILESAVE_SELECTION" -#define HID_FILESAVE_DIALOG "SVT_HID_FILESAVE_DIALOG" -#define HID_FILESAVE_DOPLAY "SVT_HID_FILESAVE_DOPLAY" - -#define HID_FILEOPEN_READONLY "SVT_HID_FILEOPEN_READONLY" -#define HID_FILEOPEN_VERSION "SVT_HID_FILEOPEN_VERSION" -#define HID_FILEOPEN_IMAGE_TEMPLATE "SVT_HID_FILEOPEN_IMAGE_TEMPLATE" - -#define HID_PRINTDIALOG_TOFILE "SVT_HID_PRINTDIALOG_TOFILE" - -#define HID_WIZARD_NEXT "SVT_HID_WIZARD_NEXT" -#define HID_WIZARD_PREVIOUS "SVT_HID_WIZARD_PREVIOUS" - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/helpopt.hxx b/svtools/inc/svtools/helpopt.hxx deleted file mode 100644 index 6004ab4dd77a..000000000000 --- a/svtools/inc/svtools/helpopt.hxx +++ /dev/null @@ -1,65 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef INCLUDED_SVTOOLS_HELPOPT_HXX -#define INCLUDED_SVTOOLS_HELPOPT_HXX - -#include "svtools/svtdllapi.h" - -#include -#include -#include - -typedef std::list< sal_Int32 > IdList; - -class SvtHelpOptions_Impl; - -class SVT_DLLPUBLIC SvtHelpOptions: public utl::detail::Options -{ - SvtHelpOptions_Impl* pImp; - -public: - SvtHelpOptions(); - virtual ~SvtHelpOptions(); - - void SetExtendedHelp( sal_Bool b ); - sal_Bool IsExtendedHelp() const; - void SetHelpTips( sal_Bool b ); - sal_Bool IsHelpTips() const; - - void SetHelpAgentAutoStartMode( sal_Bool b ); - sal_Bool IsHelpAgentAutoStartMode() const; - void SetHelpAgentTimeoutPeriod( sal_Int32 _nSeconds ); - sal_Int32 GetHelpAgentTimeoutPeriod( ) const; - - const String& GetHelpStyleSheet()const; - void SetHelpStyleSheet(const String& rStyleSheet); - - /** resets the help agent's ignore counter for all URL's - */ - void resetAgentIgnoreURLCounter(); - - void SetWelcomeScreen( sal_Bool b ); - sal_Bool IsWelcomeScreen() const; - - String GetSystem() const; -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/htmlcfg.hxx b/svtools/inc/svtools/htmlcfg.hxx deleted file mode 100644 index 62640e2bffe6..000000000000 --- a/svtools/inc/svtools/htmlcfg.hxx +++ /dev/null @@ -1,94 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _SVX_HTMLCFG_HXX -#define _SVX_HTMLCFG_HXX - -// ----------------------------------------------------------------------- - -#include -#include -#include - -#define HTML_FONT_COUNT 7 - -// !!!be aware!!!: the following defines are _not_ used as values in the configuration file -// this is because of compatibility reasons -#define HTML_CFG_MSIE 1 // Internet Explorer -#define HTML_CFG_WRITER 2 // Writer -#define HTML_CFG_NS40 3 // Netscape 4.0 - -#define HTML_CFG_MAX HTML_CFG_NS40 - -class Link; -struct HtmlOptions_Impl; -// ----------------------------------------------------------------------- - -class SVT_DLLPUBLIC SvxHtmlOptions : public utl::ConfigItem -{ - HtmlOptions_Impl*pImp; - const com::sun::star::uno::Sequence& GetPropertyNames(); - void Load( const com::sun::star::uno::Sequence< OUString >& rPropertyNames ); - void CallListeners(); - -public: - SvxHtmlOptions(); - ~SvxHtmlOptions(); - - virtual void Commit(); - virtual void Notify( const com::sun::star::uno::Sequence< OUString >& _rPropertyNames); - - sal_uInt16 GetFontSize(sal_uInt16 nPos) const; - void SetFontSize(sal_uInt16 nPos, sal_uInt16 nSize); - - sal_Bool IsImportUnknown() const; - void SetImportUnknown(sal_Bool bSet); - - sal_uInt16 GetExportMode() const; - void SetExportMode(sal_uInt16 nSet); - - sal_Bool IsStarBasic() const; - void SetStarBasic(sal_Bool bSet); - - sal_Bool IsStarBasicWarning() const; - void SetStarBasicWarning(sal_Bool bSet); - - sal_Bool IsSaveGraphicsLocal() const; - void SetSaveGraphicsLocal(sal_Bool bSet); - - sal_Bool IsPrintLayoutExtension() const; - void SetPrintLayoutExtension(sal_Bool bSet); - - sal_Bool IsIgnoreFontFamily() const; - void SetIgnoreFontFamily(sal_Bool bSet); - - sal_Bool IsDefaultTextEncoding() const; - rtl_TextEncoding GetTextEncoding() const; - void SetTextEncoding( rtl_TextEncoding ); - static SvxHtmlOptions& Get(); - - sal_Bool IsNumbersEnglishUS() const; - void SetNumbersEnglishUS(sal_Bool bSet); -}; - -#endif - - - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/htmlkywd.hxx b/svtools/inc/svtools/htmlkywd.hxx deleted file mode 100644 index 72b48c417aa3..000000000000 --- a/svtools/inc/svtools/htmlkywd.hxx +++ /dev/null @@ -1,796 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _HTMLKYWD_HXX -#define _HTMLKYWD_HXX - -#include "sal/config.h" - -#define OOO_STRING_SVTOOLS_HTML_doctype32 \ - "HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\"" -#define OOO_STRING_SVTOOLS_HTML_doctype40 \ - "HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"" - -// diese werden nur eingeschaltet -#define OOO_STRING_SVTOOLS_HTML_area "AREA" -#define OOO_STRING_SVTOOLS_HTML_base "BASE" -#define OOO_STRING_SVTOOLS_HTML_comment "!--" -#define OOO_STRING_SVTOOLS_HTML_doctype "!DOCTYPE" -#define OOO_STRING_SVTOOLS_HTML_embed "EMBED" -#define OOO_STRING_SVTOOLS_HTML_figureoverlay "OVERLAY" -#define OOO_STRING_SVTOOLS_HTML_horzrule "HR" -#define OOO_STRING_SVTOOLS_HTML_horztab "TAB" -#define OOO_STRING_SVTOOLS_HTML_image "IMG" -#define OOO_STRING_SVTOOLS_HTML_image2 "IMAGE" -#define OOO_STRING_SVTOOLS_HTML_input "INPUT" -#define OOO_STRING_SVTOOLS_HTML_isindex "ISINDEX" -#define OOO_STRING_SVTOOLS_HTML_linebreak "BR" -#define OOO_STRING_SVTOOLS_HTML_li "LI" -#define OOO_STRING_SVTOOLS_HTML_link "LINK" -#define OOO_STRING_SVTOOLS_HTML_meta "META" -#define OOO_STRING_SVTOOLS_HTML_nextid "NEXTID" -#define OOO_STRING_SVTOOLS_HTML_nobr "NOBR" -#define OOO_STRING_SVTOOLS_HTML_of "OF" -#define OOO_STRING_SVTOOLS_HTML_option "OPTION" -#define OOO_STRING_SVTOOLS_HTML_param "PARAM" -#define OOO_STRING_SVTOOLS_HTML_range "RANGE" -#define OOO_STRING_SVTOOLS_HTML_spacer "SPACER" -#define OOO_STRING_SVTOOLS_HTML_wbr "WBR" - -// diese werden wieder abgeschaltet -#define OOO_STRING_SVTOOLS_HTML_abbreviation "ABBREV" -#define OOO_STRING_SVTOOLS_HTML_above "ABOVE" -#define OOO_STRING_SVTOOLS_HTML_acronym "ACRONYM" -#define OOO_STRING_SVTOOLS_HTML_address "ADDRESS" -#define OOO_STRING_SVTOOLS_HTML_anchor "A" -#define OOO_STRING_SVTOOLS_HTML_applet "APPLET" -#define OOO_STRING_SVTOOLS_HTML_array "ARRAY" -#define OOO_STRING_SVTOOLS_HTML_author "AU" -#define OOO_STRING_SVTOOLS_HTML_banner "BANNER" -#define OOO_STRING_SVTOOLS_HTML_bar "BAR" -#define OOO_STRING_SVTOOLS_HTML_basefont "BASEFONT" -#define OOO_STRING_SVTOOLS_HTML_below "BELOW" -#define OOO_STRING_SVTOOLS_HTML_bigprint "BIG" -#define OOO_STRING_SVTOOLS_HTML_blink "BLINK" -#define OOO_STRING_SVTOOLS_HTML_blockquote "BLOCKQUOTE" -#define OOO_STRING_SVTOOLS_HTML_blockquote30 "BQ" -#define OOO_STRING_SVTOOLS_HTML_body "BODY" -#define OOO_STRING_SVTOOLS_HTML_bold "B" -#define OOO_STRING_SVTOOLS_HTML_boldtext "BT" -#define OOO_STRING_SVTOOLS_HTML_box "BOX" -#define OOO_STRING_SVTOOLS_HTML_caption "CAPTION" -#define OOO_STRING_SVTOOLS_HTML_center "CENTER" -#define OOO_STRING_SVTOOLS_HTML_citiation "CITE" -#define OOO_STRING_SVTOOLS_HTML_code "CODE" -#define OOO_STRING_SVTOOLS_HTML_col "COL" -#define OOO_STRING_SVTOOLS_HTML_colgroup "COLGROUP" -#define OOO_STRING_SVTOOLS_HTML_credit "CREDIT" -#define OOO_STRING_SVTOOLS_HTML_dd "DD" -#define OOO_STRING_SVTOOLS_HTML_deflist "DL" -#define OOO_STRING_SVTOOLS_HTML_deletedtext "DEL" -#define OOO_STRING_SVTOOLS_HTML_dirlist "DIR" -#define OOO_STRING_SVTOOLS_HTML_division "DIV" -#define OOO_STRING_SVTOOLS_HTML_dot "DOT" -#define OOO_STRING_SVTOOLS_HTML_doubledot "DDOT" -#define OOO_STRING_SVTOOLS_HTML_dt "DT" -#define OOO_STRING_SVTOOLS_HTML_emphasis "EM" -#define OOO_STRING_SVTOOLS_HTML_figure "FIG" -#define OOO_STRING_SVTOOLS_HTML_font "FONT" -#define OOO_STRING_SVTOOLS_HTML_footnote "FN" -#define OOO_STRING_SVTOOLS_HTML_form "FORM" -#define OOO_STRING_SVTOOLS_HTML_frame "FRAME" -#define OOO_STRING_SVTOOLS_HTML_frameset "FRAMESET" -#define OOO_STRING_SVTOOLS_HTML_hat "HAT" -#define OOO_STRING_SVTOOLS_HTML_head1 "H1" -#define OOO_STRING_SVTOOLS_HTML_head2 "H2" -#define OOO_STRING_SVTOOLS_HTML_head3 "H3" -#define OOO_STRING_SVTOOLS_HTML_head4 "H4" -#define OOO_STRING_SVTOOLS_HTML_head5 "H5" -#define OOO_STRING_SVTOOLS_HTML_head6 "H6" -#define OOO_STRING_SVTOOLS_HTML_head "HEAD" -#define OOO_STRING_SVTOOLS_HTML_html "HTML" -#define OOO_STRING_SVTOOLS_HTML_iframe "IFRAME" -#define OOO_STRING_SVTOOLS_HTML_ilayer "ILAYER" -#define OOO_STRING_SVTOOLS_HTML_insertedtext "INS" -#define OOO_STRING_SVTOOLS_HTML_italic "I" -#define OOO_STRING_SVTOOLS_HTML_item "ITEM" -#define OOO_STRING_SVTOOLS_HTML_keyboard "KBD" -#define OOO_STRING_SVTOOLS_HTML_language "LANG" -#define OOO_STRING_SVTOOLS_HTML_layer "LAYER" -#define OOO_STRING_SVTOOLS_HTML_listheader "LH" -#define OOO_STRING_SVTOOLS_HTML_map "MAP" -#define OOO_STRING_SVTOOLS_HTML_math "MATH" -#define OOO_STRING_SVTOOLS_HTML_menulist "MENU" -#define OOO_STRING_SVTOOLS_HTML_multicol "MULTICOL" -#define OOO_STRING_SVTOOLS_HTML_noembed "NOEMBED" -#define OOO_STRING_SVTOOLS_HTML_noframe "NOFRAME" -#define OOO_STRING_SVTOOLS_HTML_noframes "NOFRAMES" -#define OOO_STRING_SVTOOLS_HTML_noscript "NOSCRIPT" -#define OOO_STRING_SVTOOLS_HTML_note "NOTE" -#define OOO_STRING_SVTOOLS_HTML_object "OBJECT" -#define OOO_STRING_SVTOOLS_HTML_orderlist "OL" -#define OOO_STRING_SVTOOLS_HTML_parabreak "P" -#define OOO_STRING_SVTOOLS_HTML_person "PERSON" -#define OOO_STRING_SVTOOLS_HTML_plaintext "T" -#define OOO_STRING_SVTOOLS_HTML_preformtxt "PRE" -#define OOO_STRING_SVTOOLS_HTML_root "ROOT" -#define OOO_STRING_SVTOOLS_HTML_row "ROW" -#define OOO_STRING_SVTOOLS_HTML_sample "SAMP" -#define OOO_STRING_SVTOOLS_HTML_script "SCRIPT" -#define OOO_STRING_SVTOOLS_HTML_select "SELECT" -#define OOO_STRING_SVTOOLS_HTML_shortquote "Q" -#define OOO_STRING_SVTOOLS_HTML_smallprint "SMALL" -#define OOO_STRING_SVTOOLS_HTML_span "SPAN" -#define OOO_STRING_SVTOOLS_HTML_squareroot "AQRT" -#define OOO_STRING_SVTOOLS_HTML_strikethrough "S" -#define OOO_STRING_SVTOOLS_HTML_strong "STRONG" -#define OOO_STRING_SVTOOLS_HTML_style "STYLE" -#define OOO_STRING_SVTOOLS_HTML_subscript "SUB" -#define OOO_STRING_SVTOOLS_HTML_superscript "SUP" -#define OOO_STRING_SVTOOLS_HTML_table "TABLE" -#define OOO_STRING_SVTOOLS_HTML_tablerow "TR" -#define OOO_STRING_SVTOOLS_HTML_tabledata "TD" -#define OOO_STRING_SVTOOLS_HTML_tableheader "TH" -#define OOO_STRING_SVTOOLS_HTML_tbody "TBODY" -#define OOO_STRING_SVTOOLS_HTML_teletype "TT" -#define OOO_STRING_SVTOOLS_HTML_text "TEXT" -#define OOO_STRING_SVTOOLS_HTML_textarea "TEXTAREA" -#define OOO_STRING_SVTOOLS_HTML_textflow "TEXTFLOW" -#define OOO_STRING_SVTOOLS_HTML_tfoot "TFOOT" -#define OOO_STRING_SVTOOLS_HTML_thead "THEAD" -#define OOO_STRING_SVTOOLS_HTML_tilde "TILDE" -#define OOO_STRING_SVTOOLS_HTML_title "TITLE" -#define OOO_STRING_SVTOOLS_HTML_underline "U" -#define OOO_STRING_SVTOOLS_HTML_unorderlist "UL" -#define OOO_STRING_SVTOOLS_HTML_variable "VAR" -#define OOO_STRING_SVTOOLS_HTML_vector "VEC" - -// obsolete features -#define OOO_STRING_SVTOOLS_HTML_xmp "XMP" -#define OOO_STRING_SVTOOLS_HTML_listing "LISTING" - -// proposed features -#define OOO_STRING_SVTOOLS_HTML_definstance "DFN" -#define OOO_STRING_SVTOOLS_HTML_strike "STRIKE" -#define OOO_STRING_SVTOOLS_HTML_bgsound "BGSOUND" -#define OOO_STRING_SVTOOLS_HTML_comment2 "COMMENT" -#define OOO_STRING_SVTOOLS_HTML_marquee "MARQUEE" -#define OOO_STRING_SVTOOLS_HTML_plaintext2 "PLAINTEXT" -#define OOO_STRING_SVTOOLS_HTML_sdfield "SDFIELD" - -// die Namen fuer alle Zeichen -#define OOO_STRING_SVTOOLS_HTML_C_lt "lt" -#define OOO_STRING_SVTOOLS_HTML_C_gt "gt" -#define OOO_STRING_SVTOOLS_HTML_C_amp "amp" -#define OOO_STRING_SVTOOLS_HTML_C_quot "quot" -#define OOO_STRING_SVTOOLS_HTML_C_Aacute "Aacute" -#define OOO_STRING_SVTOOLS_HTML_C_Agrave "Agrave" -#define OOO_STRING_SVTOOLS_HTML_C_Acirc "Acirc" -#define OOO_STRING_SVTOOLS_HTML_C_Atilde "Atilde" -#define OOO_STRING_SVTOOLS_HTML_C_Aring "Aring" -#define OOO_STRING_SVTOOLS_HTML_C_Auml "Auml" -#define OOO_STRING_SVTOOLS_HTML_C_AElig "AElig" -#define OOO_STRING_SVTOOLS_HTML_C_Ccedil "Ccedil" -#define OOO_STRING_SVTOOLS_HTML_C_Eacute "Eacute" -#define OOO_STRING_SVTOOLS_HTML_C_Egrave "Egrave" -#define OOO_STRING_SVTOOLS_HTML_C_Ecirc "Ecirc" -#define OOO_STRING_SVTOOLS_HTML_C_Euml "Euml" -#define OOO_STRING_SVTOOLS_HTML_C_Iacute "Iacute" -#define OOO_STRING_SVTOOLS_HTML_C_Igrave "Igrave" -#define OOO_STRING_SVTOOLS_HTML_C_Icirc "Icirc" -#define OOO_STRING_SVTOOLS_HTML_C_Iuml "Iuml" -#define OOO_STRING_SVTOOLS_HTML_C_ETH "ETH" -#define OOO_STRING_SVTOOLS_HTML_C_Ntilde "Ntilde" -#define OOO_STRING_SVTOOLS_HTML_C_Oacute "Oacute" -#define OOO_STRING_SVTOOLS_HTML_C_Ograve "Ograve" -#define OOO_STRING_SVTOOLS_HTML_C_Ocirc "Ocirc" -#define OOO_STRING_SVTOOLS_HTML_C_Otilde "Otilde" -#define OOO_STRING_SVTOOLS_HTML_C_Ouml "Ouml" -#define OOO_STRING_SVTOOLS_HTML_C_Oslash "Oslash" -#define OOO_STRING_SVTOOLS_HTML_C_Uacute "Uacute" -#define OOO_STRING_SVTOOLS_HTML_C_Ugrave "Ugrave" -#define OOO_STRING_SVTOOLS_HTML_C_Ucirc "Ucirc" -#define OOO_STRING_SVTOOLS_HTML_C_Uuml "Uuml" -#define OOO_STRING_SVTOOLS_HTML_C_Yacute "Yacute" -#define OOO_STRING_SVTOOLS_HTML_C_THORN "THORN" -#define OOO_STRING_SVTOOLS_HTML_C_szlig "szlig" -#define OOO_STRING_SVTOOLS_HTML_S_aacute "aacute" -#define OOO_STRING_SVTOOLS_HTML_S_agrave "agrave" -#define OOO_STRING_SVTOOLS_HTML_S_acirc "acirc" -#define OOO_STRING_SVTOOLS_HTML_S_atilde "atilde" -#define OOO_STRING_SVTOOLS_HTML_S_aring "aring" -#define OOO_STRING_SVTOOLS_HTML_S_auml "auml" -#define OOO_STRING_SVTOOLS_HTML_S_aelig "aelig" -#define OOO_STRING_SVTOOLS_HTML_S_ccedil "ccedil" -#define OOO_STRING_SVTOOLS_HTML_S_eacute "eacute" -#define OOO_STRING_SVTOOLS_HTML_S_egrave "egrave" -#define OOO_STRING_SVTOOLS_HTML_S_ecirc "ecirc" -#define OOO_STRING_SVTOOLS_HTML_S_euml "euml" -#define OOO_STRING_SVTOOLS_HTML_S_iacute "iacute" -#define OOO_STRING_SVTOOLS_HTML_S_igrave "igrave" -#define OOO_STRING_SVTOOLS_HTML_S_icirc "icirc" -#define OOO_STRING_SVTOOLS_HTML_S_iuml "iuml" -#define OOO_STRING_SVTOOLS_HTML_S_eth "eth" -#define OOO_STRING_SVTOOLS_HTML_S_ntilde "ntilde" -#define OOO_STRING_SVTOOLS_HTML_S_oacute "oacute" -#define OOO_STRING_SVTOOLS_HTML_S_ograve "ograve" -#define OOO_STRING_SVTOOLS_HTML_S_ocirc "ocirc" -#define OOO_STRING_SVTOOLS_HTML_S_otilde "otilde" -#define OOO_STRING_SVTOOLS_HTML_S_ouml "ouml" -#define OOO_STRING_SVTOOLS_HTML_S_oslash "oslash" -#define OOO_STRING_SVTOOLS_HTML_S_uacute "uacute" -#define OOO_STRING_SVTOOLS_HTML_S_ugrave "ugrave" -#define OOO_STRING_SVTOOLS_HTML_S_ucirc "ucirc" -#define OOO_STRING_SVTOOLS_HTML_S_uuml "uuml" -#define OOO_STRING_SVTOOLS_HTML_S_yacute "yacute" -#define OOO_STRING_SVTOOLS_HTML_S_thorn "thorn" -#define OOO_STRING_SVTOOLS_HTML_S_yuml "yuml" -#define OOO_STRING_SVTOOLS_HTML_S_acute "acute" -#define OOO_STRING_SVTOOLS_HTML_S_brvbar "brvbar" -#define OOO_STRING_SVTOOLS_HTML_S_cedil "cedil" -#define OOO_STRING_SVTOOLS_HTML_S_cent "cent" -#define OOO_STRING_SVTOOLS_HTML_S_copy "copy" -#define OOO_STRING_SVTOOLS_HTML_S_curren "curren" -#define OOO_STRING_SVTOOLS_HTML_S_deg "deg" -#define OOO_STRING_SVTOOLS_HTML_S_divide "divide" -#define OOO_STRING_SVTOOLS_HTML_S_frac12 "frac12" -#define OOO_STRING_SVTOOLS_HTML_S_frac14 "frac14" -#define OOO_STRING_SVTOOLS_HTML_S_frac34 "frac34" -#define OOO_STRING_SVTOOLS_HTML_S_iexcl "iexcl" -#define OOO_STRING_SVTOOLS_HTML_S_iquest "iquest" -#define OOO_STRING_SVTOOLS_HTML_S_laquo "laquo" -#define OOO_STRING_SVTOOLS_HTML_S_macr "macr" -#define OOO_STRING_SVTOOLS_HTML_S_micro "micro" -#define OOO_STRING_SVTOOLS_HTML_S_middot "middot" -#define OOO_STRING_SVTOOLS_HTML_S_nbsp "nbsp" -#define OOO_STRING_SVTOOLS_HTML_S_not "not" -#define OOO_STRING_SVTOOLS_HTML_S_ordf "ordf" -#define OOO_STRING_SVTOOLS_HTML_S_ordm "ordm" -#define OOO_STRING_SVTOOLS_HTML_S_para "para" -#define OOO_STRING_SVTOOLS_HTML_S_plusmn "plusmn" -#define OOO_STRING_SVTOOLS_HTML_S_pound "pound" -#define OOO_STRING_SVTOOLS_HTML_S_raquo "raquo" -#define OOO_STRING_SVTOOLS_HTML_S_reg "reg" -#define OOO_STRING_SVTOOLS_HTML_S_sect "sect" -#define OOO_STRING_SVTOOLS_HTML_S_shy "shy" -#define OOO_STRING_SVTOOLS_HTML_S_sup1 "sup1" -#define OOO_STRING_SVTOOLS_HTML_S_sup2 "sup2" -#define OOO_STRING_SVTOOLS_HTML_S_sup3 "sup3" -#define OOO_STRING_SVTOOLS_HTML_S_times "times" -#define OOO_STRING_SVTOOLS_HTML_S_uml "uml" -#define OOO_STRING_SVTOOLS_HTML_S_yen "yen" - -// Netscape kennt noch ein paar in Grossbuchstaben ... -#define OOO_STRING_SVTOOLS_HTML_C_LT "LT" -#define OOO_STRING_SVTOOLS_HTML_C_GT "GT" -#define OOO_STRING_SVTOOLS_HTML_C_AMP "AMP" -#define OOO_STRING_SVTOOLS_HTML_C_QUOT "QUOT" -#define OOO_STRING_SVTOOLS_HTML_S_COPY "COPY" -#define OOO_STRING_SVTOOLS_HTML_S_REG "REG" - -// HTML4 -#define OOO_STRING_SVTOOLS_HTML_S_alefsym "alefsym" -#define OOO_STRING_SVTOOLS_HTML_S_Alpha "Alpha" -#define OOO_STRING_SVTOOLS_HTML_S_alpha "alpha" -#define OOO_STRING_SVTOOLS_HTML_S_and "and" -#define OOO_STRING_SVTOOLS_HTML_S_ang "ang" -#define OOO_STRING_SVTOOLS_HTML_S_asymp "asymp" -#define OOO_STRING_SVTOOLS_HTML_S_bdquo "bdquo" -#define OOO_STRING_SVTOOLS_HTML_S_Beta "Beta" -#define OOO_STRING_SVTOOLS_HTML_S_beta "beta" -#define OOO_STRING_SVTOOLS_HTML_S_bull "bull" -#define OOO_STRING_SVTOOLS_HTML_S_cap "cap" -#define OOO_STRING_SVTOOLS_HTML_S_chi "chi" -#define OOO_STRING_SVTOOLS_HTML_S_Chi "Chi" -#define OOO_STRING_SVTOOLS_HTML_S_circ "circ" -#define OOO_STRING_SVTOOLS_HTML_S_clubs "clubs" -#define OOO_STRING_SVTOOLS_HTML_S_cong "cong" -#define OOO_STRING_SVTOOLS_HTML_S_crarr "crarr" -#define OOO_STRING_SVTOOLS_HTML_S_cup "cup" -#define OOO_STRING_SVTOOLS_HTML_S_dagger "dagger" -#define OOO_STRING_SVTOOLS_HTML_S_Dagger "Dagger" -#define OOO_STRING_SVTOOLS_HTML_S_darr "darr" -#define OOO_STRING_SVTOOLS_HTML_S_dArr "dArr" -#define OOO_STRING_SVTOOLS_HTML_S_Delta "Delta" -#define OOO_STRING_SVTOOLS_HTML_S_delta "delta" -#define OOO_STRING_SVTOOLS_HTML_S_diams "diams" -#define OOO_STRING_SVTOOLS_HTML_S_empty "empty" -#define OOO_STRING_SVTOOLS_HTML_S_emsp "emsp" -#define OOO_STRING_SVTOOLS_HTML_S_ensp "ensp" -#define OOO_STRING_SVTOOLS_HTML_S_Epsilon "Epsilon" -#define OOO_STRING_SVTOOLS_HTML_S_epsilon "epsilon" -#define OOO_STRING_SVTOOLS_HTML_S_equiv "equiv" -#define OOO_STRING_SVTOOLS_HTML_S_Eta "Eta" -#define OOO_STRING_SVTOOLS_HTML_S_eta "eta" -#define OOO_STRING_SVTOOLS_HTML_S_euro "euro" -#define OOO_STRING_SVTOOLS_HTML_S_exist "exist" -#define OOO_STRING_SVTOOLS_HTML_S_notexist "not exist" -#define OOO_STRING_SVTOOLS_HTML_S_fnof "fnof" -#define OOO_STRING_SVTOOLS_HTML_S_forall "forall" -#define OOO_STRING_SVTOOLS_HTML_S_frasl "frasl" -#define OOO_STRING_SVTOOLS_HTML_S_Gamma "Gamma" -#define OOO_STRING_SVTOOLS_HTML_S_gamma "gamma" -#define OOO_STRING_SVTOOLS_HTML_S_ge "ge" -#define OOO_STRING_SVTOOLS_HTML_S_harr "harr" -#define OOO_STRING_SVTOOLS_HTML_S_hArr "hArr" -#define OOO_STRING_SVTOOLS_HTML_S_hearts "hearts" -#define OOO_STRING_SVTOOLS_HTML_S_hellip "hellip" -#define OOO_STRING_SVTOOLS_HTML_S_image "image" -#define OOO_STRING_SVTOOLS_HTML_S_infin "infin" -#define OOO_STRING_SVTOOLS_HTML_S_int "int" -#define OOO_STRING_SVTOOLS_HTML_S_Iota "Iota" -#define OOO_STRING_SVTOOLS_HTML_S_iota "iota" -#define OOO_STRING_SVTOOLS_HTML_S_isin "isin" -#define OOO_STRING_SVTOOLS_HTML_S_Kappa "Kappa" -#define OOO_STRING_SVTOOLS_HTML_S_kappa "kappa" -#define OOO_STRING_SVTOOLS_HTML_S_Lambda "Lambda" -#define OOO_STRING_SVTOOLS_HTML_S_lambda "lambda" -#define OOO_STRING_SVTOOLS_HTML_S_lang "lang" -#define OOO_STRING_SVTOOLS_HTML_S_larr "larr" -#define OOO_STRING_SVTOOLS_HTML_S_lArr "lArr" -#define OOO_STRING_SVTOOLS_HTML_S_lceil "lceil" -#define OOO_STRING_SVTOOLS_HTML_S_ldquo "ldquo" -#define OOO_STRING_SVTOOLS_HTML_S_le "le" -#define OOO_STRING_SVTOOLS_HTML_S_lfloor "lfloor" -#define OOO_STRING_SVTOOLS_HTML_S_lowast "lowast" -#define OOO_STRING_SVTOOLS_HTML_S_loz "loz" -#define OOO_STRING_SVTOOLS_HTML_S_lrm "lrm" -#define OOO_STRING_SVTOOLS_HTML_S_lsaquo "lsaquo" -#define OOO_STRING_SVTOOLS_HTML_S_lsquo "lsquo" -#define OOO_STRING_SVTOOLS_HTML_S_mdash "mdash" -#define OOO_STRING_SVTOOLS_HTML_S_minus "minus" -#define OOO_STRING_SVTOOLS_HTML_S_Mu "Mu" -#define OOO_STRING_SVTOOLS_HTML_S_mu "mu" -#define OOO_STRING_SVTOOLS_HTML_S_nabla "nabla" -#define OOO_STRING_SVTOOLS_HTML_S_ndash "ndash" -#define OOO_STRING_SVTOOLS_HTML_S_ne "ne" -#define OOO_STRING_SVTOOLS_HTML_S_ni "ni" -#define OOO_STRING_SVTOOLS_HTML_S_notin "notin" -#define OOO_STRING_SVTOOLS_HTML_S_nsub "nsub" -#define OOO_STRING_SVTOOLS_HTML_S_Nu "Nu" -#define OOO_STRING_SVTOOLS_HTML_S_nu "nu" -#define OOO_STRING_SVTOOLS_HTML_S_OElig "OElig" -#define OOO_STRING_SVTOOLS_HTML_S_oelig "oelig" -#define OOO_STRING_SVTOOLS_HTML_S_oline "oline" -#define OOO_STRING_SVTOOLS_HTML_S_Omega "Omega" -#define OOO_STRING_SVTOOLS_HTML_S_omega "omega" -#define OOO_STRING_SVTOOLS_HTML_S_Omicron "Omicron" -#define OOO_STRING_SVTOOLS_HTML_S_omicron "omicron" -#define OOO_STRING_SVTOOLS_HTML_S_oplus "oplus" -#define OOO_STRING_SVTOOLS_HTML_S_or "or" -#define OOO_STRING_SVTOOLS_HTML_S_otimes "otimes" -#define OOO_STRING_SVTOOLS_HTML_S_part "part" -#define OOO_STRING_SVTOOLS_HTML_S_permil "permil" -#define OOO_STRING_SVTOOLS_HTML_S_perp "perp" -#define OOO_STRING_SVTOOLS_HTML_S_Phi "Phi" -#define OOO_STRING_SVTOOLS_HTML_S_phi "phi" -#define OOO_STRING_SVTOOLS_HTML_S_Pi "Pi" -#define OOO_STRING_SVTOOLS_HTML_S_pi "pi" -#define OOO_STRING_SVTOOLS_HTML_S_piv "piv" -#define OOO_STRING_SVTOOLS_HTML_S_prime "prime" -#define OOO_STRING_SVTOOLS_HTML_S_Prime "Prime" -#define OOO_STRING_SVTOOLS_HTML_S_prod "prod" -#define OOO_STRING_SVTOOLS_HTML_S_prop "prop" -#define OOO_STRING_SVTOOLS_HTML_S_Psi "Psi" -#define OOO_STRING_SVTOOLS_HTML_S_psi "psi" -#define OOO_STRING_SVTOOLS_HTML_S_radic "radic" -#define OOO_STRING_SVTOOLS_HTML_S_rang "rang" -#define OOO_STRING_SVTOOLS_HTML_S_rarr "rarr" -#define OOO_STRING_SVTOOLS_HTML_S_rArr "rArr" -#define OOO_STRING_SVTOOLS_HTML_S_rceil "rceil" -#define OOO_STRING_SVTOOLS_HTML_S_rdquo "rdquo" -#define OOO_STRING_SVTOOLS_HTML_S_real "real" -#define OOO_STRING_SVTOOLS_HTML_S_rfloor "rfloor" -#define OOO_STRING_SVTOOLS_HTML_S_Rho "Rho" -#define OOO_STRING_SVTOOLS_HTML_S_rho "rho" -#define OOO_STRING_SVTOOLS_HTML_S_rlm "rlm" -#define OOO_STRING_SVTOOLS_HTML_S_rsaquo "rsaquo" -#define OOO_STRING_SVTOOLS_HTML_S_rsquo "rsquo" -#define OOO_STRING_SVTOOLS_HTML_S_sbquo "sbquo" -#define OOO_STRING_SVTOOLS_HTML_S_Scaron "Scaron" -#define OOO_STRING_SVTOOLS_HTML_S_scaron "scaron" -#define OOO_STRING_SVTOOLS_HTML_S_sdot "sdot" -#define OOO_STRING_SVTOOLS_HTML_S_Sigma "Sigma" -#define OOO_STRING_SVTOOLS_HTML_S_sigma "sigma" -#define OOO_STRING_SVTOOLS_HTML_S_sigmaf "sigmaf" -#define OOO_STRING_SVTOOLS_HTML_S_sim "sim" -#define OOO_STRING_SVTOOLS_HTML_S_spades "spades" -#define OOO_STRING_SVTOOLS_HTML_S_sub "sub" -#define OOO_STRING_SVTOOLS_HTML_S_sube "sube" -#define OOO_STRING_SVTOOLS_HTML_S_sum "sum" -#define OOO_STRING_SVTOOLS_HTML_S_sup "sup" -#define OOO_STRING_SVTOOLS_HTML_S_supe "supe" -#define OOO_STRING_SVTOOLS_HTML_S_Tau "Tau" -#define OOO_STRING_SVTOOLS_HTML_S_tau "tau" -#define OOO_STRING_SVTOOLS_HTML_S_there4 "there4" -#define OOO_STRING_SVTOOLS_HTML_S_Theta "Theta" -#define OOO_STRING_SVTOOLS_HTML_S_theta "theta" -#define OOO_STRING_SVTOOLS_HTML_S_thetasym "thetasym" -#define OOO_STRING_SVTOOLS_HTML_S_thinsp "thinsp" -#define OOO_STRING_SVTOOLS_HTML_S_tilde "tilde" -#define OOO_STRING_SVTOOLS_HTML_S_trade "trade" -#define OOO_STRING_SVTOOLS_HTML_S_uarr "uarr" -#define OOO_STRING_SVTOOLS_HTML_S_uArr "uArr" -#define OOO_STRING_SVTOOLS_HTML_S_upsih "upsih" -#define OOO_STRING_SVTOOLS_HTML_S_Upsilon "Upsilon" -#define OOO_STRING_SVTOOLS_HTML_S_upsilon "upsilon" -#define OOO_STRING_SVTOOLS_HTML_S_weierp "weierp" -#define OOO_STRING_SVTOOLS_HTML_S_Xi "Xi" -#define OOO_STRING_SVTOOLS_HTML_S_xi "xi" -#define OOO_STRING_SVTOOLS_HTML_S_Yuml "Yuml" -#define OOO_STRING_SVTOOLS_HTML_S_Zeta "Zeta" -#define OOO_STRING_SVTOOLS_HTML_S_zeta "zeta" -#define OOO_STRING_SVTOOLS_HTML_S_zwj "zwj" -#define OOO_STRING_SVTOOLS_HTML_S_zwnj "zwnj" - -// HTML Attribut-Token (=Optionen) - -// Attribute ohne Wert -#define OOO_STRING_SVTOOLS_HTML_O_box "BOX" -#define OOO_STRING_SVTOOLS_HTML_O_checked "CHECKED" -#define OOO_STRING_SVTOOLS_HTML_O_compact "COMPACT" -#define OOO_STRING_SVTOOLS_HTML_O_continue "CONTINUE" -#define OOO_STRING_SVTOOLS_HTML_O_controls "CONTROLS" -#define OOO_STRING_SVTOOLS_HTML_O_declare "DECLARE" -#define OOO_STRING_SVTOOLS_HTML_O_disabled "DISABLED" -#define OOO_STRING_SVTOOLS_HTML_O_folded "FOLDED" -#define OOO_STRING_SVTOOLS_HTML_O_ismap "ISMAP" -#define OOO_STRING_SVTOOLS_HTML_O_mayscript "MAYSCRIPT" -#define OOO_STRING_SVTOOLS_HTML_O_multiple "MULTIPLE" -#define OOO_STRING_SVTOOLS_HTML_O_noflow "NOFLOW" -#define OOO_STRING_SVTOOLS_HTML_O_nohref "NOHREF" -#define OOO_STRING_SVTOOLS_HTML_O_noresize "NORESIZE" -#define OOO_STRING_SVTOOLS_HTML_O_noshade "NOSHADE" -#define OOO_STRING_SVTOOLS_HTML_O_nowrap "NOWRAP" -#define OOO_STRING_SVTOOLS_HTML_O_plain "PLAIN" -#define OOO_STRING_SVTOOLS_HTML_O_sdfixed "SDFIXED" -#define OOO_STRING_SVTOOLS_HTML_O_selected "SELECTED" -#define OOO_STRING_SVTOOLS_HTML_O_shapes "SHAPES" - -// Attribute mit einem String als Wert -#define OOO_STRING_SVTOOLS_HTML_O_above "ABOVE" -#define OOO_STRING_SVTOOLS_HTML_O_accesskey "ACCESSKEY" -#define OOO_STRING_SVTOOLS_HTML_O_accept "ACCEPT" -#define OOO_STRING_SVTOOLS_HTML_O_add_date "ADD_DATE" -#define OOO_STRING_SVTOOLS_HTML_O_alt "ALT" -#define OOO_STRING_SVTOOLS_HTML_O_axes "AXES" -#define OOO_STRING_SVTOOLS_HTML_O_axis "AXIS" -#define OOO_STRING_SVTOOLS_HTML_O_below "BELOW" -#define OOO_STRING_SVTOOLS_HTML_O_char "CHAR" -#define OOO_STRING_SVTOOLS_HTML_O_class "CLASS" -#define OOO_STRING_SVTOOLS_HTML_O_clip "CLIP" -#define OOO_STRING_SVTOOLS_HTML_O_code "CODE" -#define OOO_STRING_SVTOOLS_HTML_O_codetype "CODETYPE" -#define OOO_STRING_SVTOOLS_HTML_O_colspec "COLSPEC" -#define OOO_STRING_SVTOOLS_HTML_O_content "CONTENT" -#define OOO_STRING_SVTOOLS_HTML_O_coords "COORDS" -#define OOO_STRING_SVTOOLS_HTML_O_dp "DP" -#define OOO_STRING_SVTOOLS_HTML_O_enctype "ENCTYPE" -#define OOO_STRING_SVTOOLS_HTML_O_error "ERROR" -#define OOO_STRING_SVTOOLS_HTML_O_face "FACE" -#define OOO_STRING_SVTOOLS_HTML_O_frameborder "FRAMEBORDER" -#define OOO_STRING_SVTOOLS_HTML_O_httpequiv "HTTP-EQUIV" -#define OOO_STRING_SVTOOLS_HTML_O_language "LANGUAGE" -#define OOO_STRING_SVTOOLS_HTML_O_last_modified "LAST_MODIFIED" -#define OOO_STRING_SVTOOLS_HTML_O_last_visit "LAST_VISIT" -#define OOO_STRING_SVTOOLS_HTML_O_md "MD" -#define OOO_STRING_SVTOOLS_HTML_O_n "N" -#define OOO_STRING_SVTOOLS_HTML_O_name "NAME" -#define OOO_STRING_SVTOOLS_HTML_O_notation "NOTATION" -#define OOO_STRING_SVTOOLS_HTML_O_prompt "PROMPT" -#define OOO_STRING_SVTOOLS_HTML_O_shape "SHAPE" -#define OOO_STRING_SVTOOLS_HTML_O_standby "STANDBY" -#define OOO_STRING_SVTOOLS_HTML_O_style "STYLE" -#define OOO_STRING_SVTOOLS_HTML_O_title "TITLE" -#define OOO_STRING_SVTOOLS_HTML_O_value "VALUE" -#define OOO_STRING_SVTOOLS_HTML_O_SDval "SDVAL" -#define OOO_STRING_SVTOOLS_HTML_O_SDnum "SDNUM" -#define OOO_STRING_SVTOOLS_HTML_O_sdlibrary "SDLIBRARY" -#define OOO_STRING_SVTOOLS_HTML_O_sdmodule "SDMODULE" -#define OOO_STRING_SVTOOLS_HTML_O_sdevent "SDEVENT-" -#define OOO_STRING_SVTOOLS_HTML_O_sdaddparam "SDADDPARAM-" - -// Attribute mit einem SGML-Identifier als Wert -#define OOO_STRING_SVTOOLS_HTML_O_from "FROM" -#define OOO_STRING_SVTOOLS_HTML_O_id "ID" -#define OOO_STRING_SVTOOLS_HTML_O_target "TARGET" -#define OOO_STRING_SVTOOLS_HTML_O_to "TO" -#define OOO_STRING_SVTOOLS_HTML_O_until "UNTIL" - -// Attribute mit einem URI als Wert -#define OOO_STRING_SVTOOLS_HTML_O_action "ACTION" -#define OOO_STRING_SVTOOLS_HTML_O_archive "ARCHIVE" -#define OOO_STRING_SVTOOLS_HTML_O_background "BACKGROUND" -#define OOO_STRING_SVTOOLS_HTML_O_classid "CLASSID" -#define OOO_STRING_SVTOOLS_HTML_O_codebase "CODEBASE" -#define OOO_STRING_SVTOOLS_HTML_O_data "DATA" -#define OOO_STRING_SVTOOLS_HTML_O_dynsrc "DYNSRC" -#define OOO_STRING_SVTOOLS_HTML_O_dynsync "DYNSYNC" -#define OOO_STRING_SVTOOLS_HTML_O_imagemap "IMAGEMAP" -#define OOO_STRING_SVTOOLS_HTML_O_href "HREF" -#define OOO_STRING_SVTOOLS_HTML_O_lowsrc "LOWSRC" -#define OOO_STRING_SVTOOLS_HTML_O_script "SCRIPT" -#define OOO_STRING_SVTOOLS_HTML_O_src "SRC" -#define OOO_STRING_SVTOOLS_HTML_O_usemap "USEMAP" - -// Attribute mit Entity-Namen als Wert -#define OOO_STRING_SVTOOLS_HTML_O_dingbat "DINGBAT" -#define OOO_STRING_SVTOOLS_HTML_O_sym "SYM" - -// Attribute mit einer Farbe als Wert (alle Netscape) -#define OOO_STRING_SVTOOLS_HTML_O_alink "ALINK" -#define OOO_STRING_SVTOOLS_HTML_O_bgcolor "BGCOLOR" -#define OOO_STRING_SVTOOLS_HTML_O_bordercolor "BORDERCOLOR" -#define OOO_STRING_SVTOOLS_HTML_O_bordercolorlight "BORDERCOLORLIGHT" -#define OOO_STRING_SVTOOLS_HTML_O_bordercolordark "BORDERCOLORDARK" -#define OOO_STRING_SVTOOLS_HTML_O_color "COLOR" -#define OOO_STRING_SVTOOLS_HTML_O_link "LINK" -#define OOO_STRING_SVTOOLS_HTML_O_text "TEXT" -#define OOO_STRING_SVTOOLS_HTML_O_vlink "VLINK" - -// Attribute mit einem numerischen Wert -#define OOO_STRING_SVTOOLS_HTML_O_border "BORDER" -#define OOO_STRING_SVTOOLS_HTML_O_cellspacing "CELLSPACING" -#define OOO_STRING_SVTOOLS_HTML_O_cellpadding "CELLPADDING" -#define OOO_STRING_SVTOOLS_HTML_O_charoff "CHAROFF" -#define OOO_STRING_SVTOOLS_HTML_O_colspan "COLSPAN" -#define OOO_STRING_SVTOOLS_HTML_O_framespacing "FRAMESPACING" -#define OOO_STRING_SVTOOLS_HTML_O_gutter "GUTTER" -#define OOO_STRING_SVTOOLS_HTML_O_indent "INDENT" -#define OOO_STRING_SVTOOLS_HTML_O_height "HEIGHT" -#define OOO_STRING_SVTOOLS_HTML_O_hspace "HSPACE" -#define OOO_STRING_SVTOOLS_HTML_O_left "LEFT" -#define OOO_STRING_SVTOOLS_HTML_O_leftmargin "LEFTMARGIN" -#define OOO_STRING_SVTOOLS_HTML_O_loop "LOOP" -#define OOO_STRING_SVTOOLS_HTML_O_marginheight "MARGINHEIGHT" -#define OOO_STRING_SVTOOLS_HTML_O_marginwidth "MARGINWIDTH" -#define OOO_STRING_SVTOOLS_HTML_O_max "MAX" -#define OOO_STRING_SVTOOLS_HTML_O_maxlength "MAXLENGTH" -#define OOO_STRING_SVTOOLS_HTML_O_min "MIN" -#define OOO_STRING_SVTOOLS_HTML_O_pagex "PAGEX" -#define OOO_STRING_SVTOOLS_HTML_O_pagey "PAGEY" -#define OOO_STRING_SVTOOLS_HTML_O_pointsize "POINT-SIZE" -#define OOO_STRING_SVTOOLS_HTML_O_rowspan "ROWSPAN" -#define OOO_STRING_SVTOOLS_HTML_O_scrollamount "SCROLLAMOUNT" -#define OOO_STRING_SVTOOLS_HTML_O_scrolldelay "SCROLLDELAY" -#define OOO_STRING_SVTOOLS_HTML_O_seqnum "SEQNUM" -#define OOO_STRING_SVTOOLS_HTML_O_skip "SKIP" -#define OOO_STRING_SVTOOLS_HTML_O_span "SPAN" -#define OOO_STRING_SVTOOLS_HTML_O_tabindex "TABINDEX" -#define OOO_STRING_SVTOOLS_HTML_O_top "TOP" -#define OOO_STRING_SVTOOLS_HTML_O_topmargin "TOPMARGIN" -#define OOO_STRING_SVTOOLS_HTML_O_vspace "VSPACE" -#define OOO_STRING_SVTOOLS_HTML_O_weight "WEIGHT" -#define OOO_STRING_SVTOOLS_HTML_O_width "WIDTH" -#define OOO_STRING_SVTOOLS_HTML_O_x "X" -#define OOO_STRING_SVTOOLS_HTML_O_y "Y" -#define OOO_STRING_SVTOOLS_HTML_O_zindex "Z-INDEX" - -// Attribute mit Enum-Werten -#define OOO_STRING_SVTOOLS_HTML_O_behavior "BEHAVIOR" -#define OOO_STRING_SVTOOLS_HTML_O_bgproperties "BGPROPERTIES" -#define OOO_STRING_SVTOOLS_HTML_O_clear "CLEAR" -#define OOO_STRING_SVTOOLS_HTML_O_dir "DIR" -#define OOO_STRING_SVTOOLS_HTML_O_direction "DIRECTION" -#define OOO_STRING_SVTOOLS_HTML_O_format "FORMAT" -#define OOO_STRING_SVTOOLS_HTML_O_frame "FRAME" -#define OOO_STRING_SVTOOLS_HTML_O_lang "LANG" -#define OOO_STRING_SVTOOLS_HTML_O_method "METHOD" -#define OOO_STRING_SVTOOLS_HTML_O_palette "PALETTE" -#define OOO_STRING_SVTOOLS_HTML_O_rel "REL" -#define OOO_STRING_SVTOOLS_HTML_O_rev "REV" -#define OOO_STRING_SVTOOLS_HTML_O_rules "RULES" -#define OOO_STRING_SVTOOLS_HTML_O_scrolling "SCROLLING" -#define OOO_STRING_SVTOOLS_HTML_O_sdreadonly "READONLY" -#define OOO_STRING_SVTOOLS_HTML_O_subtype "SUBTYPE" -#define OOO_STRING_SVTOOLS_HTML_O_type "TYPE" -#define OOO_STRING_SVTOOLS_HTML_O_valign "VALIGN" -#define OOO_STRING_SVTOOLS_HTML_O_valuetype "VALUETYPE" -#define OOO_STRING_SVTOOLS_HTML_O_visibility "VISIBILITY" -#define OOO_STRING_SVTOOLS_HTML_O_wrap "WRAP" - -// Attribute mit Script-Code als Wert -#define OOO_STRING_SVTOOLS_HTML_O_onblur "ONBLUR" -#define OOO_STRING_SVTOOLS_HTML_O_onchange "ONCHANGE" -#define OOO_STRING_SVTOOLS_HTML_O_onclick "ONCLICK" -#define OOO_STRING_SVTOOLS_HTML_O_onfocus "ONFOCUS" -#define OOO_STRING_SVTOOLS_HTML_O_onload "ONLOAD" -#define OOO_STRING_SVTOOLS_HTML_O_onmouseover "ONMOUSEOVER" -#define OOO_STRING_SVTOOLS_HTML_O_onreset "ONRESET" -#define OOO_STRING_SVTOOLS_HTML_O_onselect "ONSELECT" -#define OOO_STRING_SVTOOLS_HTML_O_onsubmit "ONSUBMIT" -#define OOO_STRING_SVTOOLS_HTML_O_onunload "ONUNLOAD" -#define OOO_STRING_SVTOOLS_HTML_O_onabort "ONABORT" -#define OOO_STRING_SVTOOLS_HTML_O_onerror "ONERROR" -#define OOO_STRING_SVTOOLS_HTML_O_onmouseout "ONMOUSEOUT" -#define OOO_STRING_SVTOOLS_HTML_O_SDonblur "SDONBLUR" -#define OOO_STRING_SVTOOLS_HTML_O_SDonchange "SDONCHANGE" -#define OOO_STRING_SVTOOLS_HTML_O_SDonclick "SDONCLICK" -#define OOO_STRING_SVTOOLS_HTML_O_SDonfocus "SDONFOCUS" -#define OOO_STRING_SVTOOLS_HTML_O_SDonload "SDONLOAD" -#define OOO_STRING_SVTOOLS_HTML_O_SDonmouseover "SDONMOUSEOVER" -#define OOO_STRING_SVTOOLS_HTML_O_SDonreset "SDONRESET" -#define OOO_STRING_SVTOOLS_HTML_O_SDonselect "SDONSELECT" -#define OOO_STRING_SVTOOLS_HTML_O_SDonsubmit "SDONSUBMIT" -#define OOO_STRING_SVTOOLS_HTML_O_SDonunload "SDONUNLOAD" -#define OOO_STRING_SVTOOLS_HTML_O_SDonabort "SDONABORT" -#define OOO_STRING_SVTOOLS_HTML_O_SDonerror "SDONERROR" -#define OOO_STRING_SVTOOLS_HTML_O_SDonmouseout "SDONMOUSEOUT" - -// Attribute mit Kontext-abhaengigen Werten -#define OOO_STRING_SVTOOLS_HTML_O_align "ALIGN" -#define OOO_STRING_SVTOOLS_HTML_O_cols "COLS" -#define OOO_STRING_SVTOOLS_HTML_O_rows "ROWS" -#define OOO_STRING_SVTOOLS_HTML_O_start "START" -#define OOO_STRING_SVTOOLS_HTML_O_size "SIZE" -#define OOO_STRING_SVTOOLS_HTML_O_units "UNITS" - -// Werte von -#define OOO_STRING_SVTOOLS_HTML_IT_text "TEXT" -#define OOO_STRING_SVTOOLS_HTML_IT_password "PASSWORD" -#define OOO_STRING_SVTOOLS_HTML_IT_checkbox "CHECKBOX" -#define OOO_STRING_SVTOOLS_HTML_IT_radio "RADIO" -#define OOO_STRING_SVTOOLS_HTML_IT_range "RANGE" -#define OOO_STRING_SVTOOLS_HTML_IT_scribble "SCRIBBLE" -#define OOO_STRING_SVTOOLS_HTML_IT_file "FILE" -#define OOO_STRING_SVTOOLS_HTML_IT_hidden "HIDDEN" -#define OOO_STRING_SVTOOLS_HTML_IT_submit "SUBMIT" -#define OOO_STRING_SVTOOLS_HTML_IT_image "IMAGE" -#define OOO_STRING_SVTOOLS_HTML_IT_reset "RESET" -#define OOO_STRING_SVTOOLS_HTML_IT_button "BUTTON" - -// Werte von -#define OOO_STRING_SVTOOLS_HTML_TF_void "VOID" -#define OOO_STRING_SVTOOLS_HTML_TF_above "ABOVE" -#define OOO_STRING_SVTOOLS_HTML_TF_below "BELOW" -#define OOO_STRING_SVTOOLS_HTML_TF_hsides "HSIDES" -#define OOO_STRING_SVTOOLS_HTML_TF_lhs "LHS" -#define OOO_STRING_SVTOOLS_HTML_TF_rhs "RHS" -#define OOO_STRING_SVTOOLS_HTML_TF_vsides "VSIDES" -#define OOO_STRING_SVTOOLS_HTML_TF_box "BOX" -#define OOO_STRING_SVTOOLS_HTML_TF_border "BORDER" - -// Werte von
-#define OOO_STRING_SVTOOLS_HTML_TR_none "NONE" -#define OOO_STRING_SVTOOLS_HTML_TR_groups "GROUPS" -#define OOO_STRING_SVTOOLS_HTML_TR_rows "ROWS" -#define OOO_STRING_SVTOOLS_HTML_TR_cols "COLS" -#define OOO_STRING_SVTOOLS_HTML_TR_all "ALL" - -// Werte von -#define OOO_STRING_SVTOOLS_HTML_AL_left "LEFT" -#define OOO_STRING_SVTOOLS_HTML_AL_center "CENTER" -#define OOO_STRING_SVTOOLS_HTML_AL_middle "MIDDLE" -#define OOO_STRING_SVTOOLS_HTML_AL_right "RIGHT" -#define OOO_STRING_SVTOOLS_HTML_AL_justify "JUSTIFY" -#define OOO_STRING_SVTOOLS_HTML_AL_char "CHAR" -#define OOO_STRING_SVTOOLS_HTML_AL_all "ALL" -#define OOO_STRING_SVTOOLS_HTML_AL_none "NONE" - -// Werte von , -#define OOO_STRING_SVTOOLS_HTML_VA_top "TOP" -#define OOO_STRING_SVTOOLS_HTML_VA_middle "MIDDLE" -#define OOO_STRING_SVTOOLS_HTML_VA_bottom "BOTTOM" -#define OOO_STRING_SVTOOLS_HTML_VA_baseline "BASELINE" -#define OOO_STRING_SVTOOLS_HTML_VA_texttop "TEXTTOP" -#define OOO_STRING_SVTOOLS_HTML_VA_absmiddle "ABSMIDDLE" -#define OOO_STRING_SVTOOLS_HTML_VA_absbottom "ABSBOTTOM" - -// Werte von -#define OOO_STRING_SVTOOLS_HTML_SH_rect "RECT" -#define OOO_STRING_SVTOOLS_HTML_SH_rectangle "RECTANGLE" -#define OOO_STRING_SVTOOLS_HTML_SH_circ "CIRC" -#define OOO_STRING_SVTOOLS_HTML_SH_circle "CIRCLE" -#define OOO_STRING_SVTOOLS_HTML_SH_poly "POLY" -#define OOO_STRING_SVTOOLS_HTML_SH_polygon "POLYGON" -#define OOO_STRING_SVTOOLS_HTML_SH_default "DEFAULT" - -#define OOO_STRING_SVTOOLS_HTML_LG_starbasic "STARBASIC" -#define OOO_STRING_SVTOOLS_HTML_LG_javascript "JAVASCRIPT" -#define OOO_STRING_SVTOOLS_HTML_LG_javascript11 "JAVASCRIPT1.1" -#define OOO_STRING_SVTOOLS_HTML_LG_livescript "LIVESCRIPT" - -// ein par Werte fuer unser StarBASIC-Support -#define OOO_STRING_SVTOOLS_HTML_SB_library "$LIBRARY:" -#define OOO_STRING_SVTOOLS_HTML_SB_module "$MODULE:" - -// Werte von -#define OOO_STRING_SVTOOLS_HTML_METHOD_get "GET" -#define OOO_STRING_SVTOOLS_HTML_METHOD_post "POST" - -// Werte von -#define OOO_STRING_SVTOOLS_HTML_META_refresh "REFRESH" -#define OOO_STRING_SVTOOLS_HTML_META_generator "GENERATOR" -#define OOO_STRING_SVTOOLS_HTML_META_author "AUTHOR" -#define OOO_STRING_SVTOOLS_HTML_META_classification "CLASSIFICATION" -#define OOO_STRING_SVTOOLS_HTML_META_description "DESCRIPTION" -#define OOO_STRING_SVTOOLS_HTML_META_keywords "KEYWORDS" -#define OOO_STRING_SVTOOLS_HTML_META_changed "CHANGED" -#define OOO_STRING_SVTOOLS_HTML_META_changedby "CHANGEDBY" -#define OOO_STRING_SVTOOLS_HTML_META_created "CREATED" -#define OOO_STRING_SVTOOLS_HTML_META_content_type "CONTENT-TYPE" -#define OOO_STRING_SVTOOLS_HTML_META_content_script_type "CONTENT-SCRIPT-TYPE" -#define OOO_STRING_SVTOOLS_HTML_META_sdendnote "SDENDNOTE" -#define OOO_STRING_SVTOOLS_HTML_META_sdfootnote "SDFOOTNOTE" - -// Werte von
    -#define OOO_STRING_SVTOOLS_HTML_ULTYPE_disc "DISC" -#define OOO_STRING_SVTOOLS_HTML_ULTYPE_square "SQUARE" -#define OOO_STRING_SVTOOLS_HTML_ULTYPE_circle "CIRCLE" - -// Werte von -#define OOO_STRING_SVTOOLS_HTML_SCROLL_yes "YES" -#define OOO_STRING_SVTOOLS_HTML_SCROLL_no "NO" -#define OOO_STRING_SVTOOLS_HTML_SCROLL_auto "AUTO" - -// Werte von -#define OOO_STRING_SVTOOLS_HTML_MCTYPE_horizontal "HORIZONTAL" -#define OOO_STRING_SVTOOLS_HTML_MCTYPE_vertical "VERTICAL" -#define OOO_STRING_SVTOOLS_HTML_MCTYPE_box "BOX" - -// Werte von -#define OOO_STRING_SVTOOLS_HTML_BEHAV_scroll "SCROLL" -#define OOO_STRING_SVTOOLS_HTML_BEHAV_slide "SLIDE" -#define OOO_STRING_SVTOOLS_HTML_BEHAV_alternate "ALTERNATE" - -// Werte von -#define OOO_STRING_SVTOOLS_HTML_LOOP_infinite "INFINITE" -#define OOO_STRING_SVTOOLS_HTML_SPTYPE_block "BLOCK" -#define OOO_STRING_SVTOOLS_HTML_SPTYPE_horizontal "HORIZONTAL" -#define OOO_STRING_SVTOOLS_HTML_SPTYPE_vertical "VERTICAL" - -// interne Grafik-Namen -#define OOO_STRING_SVTOOLS_HTML_private_image "private:image/" -#define OOO_STRING_SVTOOLS_HTML_internal_gopher "internal-gopher-" -#define OOO_STRING_SVTOOLS_HTML_internal_icon "internal-icon-" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_binary "binary" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_image "image" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_index "index" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_menu "menu" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_movie "movie" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_sound "sound" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_telnet "telnet" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_text "text" -#define OOO_STRING_SVTOOLS_HTML_INT_GOPHER_unknown "unknown" -#define OOO_STRING_SVTOOLS_HTML_INT_ICON_baddata "baddata" -#define OOO_STRING_SVTOOLS_HTML_INT_ICON_delayed "delayed" -#define OOO_STRING_SVTOOLS_HTML_INT_ICON_embed "embed" -#define OOO_STRING_SVTOOLS_HTML_INT_ICON_insecure "insecure" -#define OOO_STRING_SVTOOLS_HTML_INT_ICON_notfound "notfound" -#define OOO_STRING_SVTOOLS_HTML_sdendnote "sdendnote" -#define OOO_STRING_SVTOOLS_HTML_sdendnote_anc "sdendnoteanc" -#define OOO_STRING_SVTOOLS_HTML_sdendnote_sym "sdendnotesym" -#define OOO_STRING_SVTOOLS_HTML_sdfootnote "sdfootnote" -#define OOO_STRING_SVTOOLS_HTML_sdfootnote_anc "sdfootnoteanc" -#define OOO_STRING_SVTOOLS_HTML_sdfootnote_sym "sdfootnotesym" -#define OOO_STRING_SVTOOLS_HTML_FTN_anchor "anc" -#define OOO_STRING_SVTOOLS_HTML_FTN_symbol "sym" -#define OOO_STRING_SVTOOLS_HTML_WW_off "OFF" -#define OOO_STRING_SVTOOLS_HTML_WW_hard "HARD" -#define OOO_STRING_SVTOOLS_HTML_WW_soft "SOFT" -#define OOO_STRING_SVTOOLS_HTML_WW_virtual "VIRTUAL" -#define OOO_STRING_SVTOOLS_HTML_WW_physical "PHYSICAL" -#define OOO_STRING_SVTOOLS_HTML_on "on" -#define OOO_STRING_SVTOOLS_HTML_ET_url "application/x-www-form-urlencoded" -#define OOO_STRING_SVTOOLS_HTML_ET_multipart "multipart/form-data" -#define OOO_STRING_SVTOOLS_HTML_ET_text "text/plain" - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/htmlout.hxx b/svtools/inc/svtools/htmlout.hxx deleted file mode 100644 index 33c76fed1876..000000000000 --- a/svtools/inc/svtools/htmlout.hxx +++ /dev/null @@ -1,118 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _HTMLOUT_HXX -#define _HTMLOUT_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include - -class Color; -class ImageMap; -class String; -class SvStream; -class SvxMacroTableDtor; -class SvNumberFormatter; - -struct HTMLOutEvent -{ - const sal_Char *pBasicName; - const sal_Char *pJavaName; - sal_uInt16 nEvent; -}; - -struct SVT_DLLPUBLIC HTMLOutContext -{ - rtl_TextEncoding m_eDestEnc; - rtl_TextToUnicodeConverter m_hConv; - rtl_TextToUnicodeContext m_hContext; - - HTMLOutContext( rtl_TextEncoding eDestEnc ); - ~HTMLOutContext(); -}; - -struct HTMLOutFuncs -{ -#if defined(UNX) - static const sal_Char sNewLine; // nur \012 oder \015 -#else - static const sal_Char sNewLine[]; // \015\012 -#endif - - SVT_DLLPUBLIC static OString ConvertStringToHTML( const String& sSrc, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, - String *pNonConvertableChars = 0 ); - - SVT_DLLPUBLIC static SvStream& Out_AsciiTag( SvStream&, const sal_Char* pStr, - sal_Bool bOn = sal_True, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252); - SVT_DLLPUBLIC static SvStream& Out_Char( SvStream&, sal_Unicode cChar, - HTMLOutContext& rContext, - String *pNonConvertableChars = 0 ); - SVT_DLLPUBLIC static SvStream& Out_String( SvStream&, const String&, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, - String *pNonConvertableChars = 0 ); - SVT_DLLPUBLIC static SvStream& Out_Hex( SvStream&, sal_uLong nHex, sal_uInt8 nLen, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252 ); - SVT_DLLPUBLIC static SvStream& Out_Color( SvStream&, const Color&, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252 ); - SVT_DLLPUBLIC static SvStream& Out_ImageMap( SvStream&, const String&, const ImageMap&, const String&, - const HTMLOutEvent *pEventTable, - sal_Bool bOutStarBasic, - const sal_Char *pDelim = 0, - const sal_Char *pIndentArea = 0, - const sal_Char *pIndentMap = 0, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, - String *pNonConvertableChars = 0 ); - SVT_DLLPUBLIC static SvStream& FlushToAscii( SvStream&, HTMLOutContext& rContext ); - - SVT_DLLPUBLIC static SvStream& OutScript( SvStream& rStrm, - const String& rBaseURL, - const String& rSource, - const String& rLanguage, - ScriptType eScriptType, - const String& rSrc, - const String *pSBLibrary = 0, - const String *pSBModule = 0, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, - String *pNonConvertableChars = 0 ); - - // der 3. Parameter ist ein Array von HTMLOutEvents, das mit einem - // nur aus 0 bestehen Eintrag terminiert ist. - SVT_DLLPUBLIC static SvStream& Out_Events( SvStream&, const SvxMacroTableDtor&, - const HTMLOutEvent*, sal_Bool bOutStarBasic, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, - String *pNonConvertableChars = 0 ); - - //
- SVT_DLLPUBLIC static OString CreateTableDataOptionsValNum( - sal_Bool bValue, double fVal, sal_uLong nFormat, - SvNumberFormatter& rFormatter, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, - String *pNonConvertableChars = 0); - - SVT_DLLPUBLIC static sal_Bool PrivateURLToInternalImg( String& rURL ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/htmltokn.h b/svtools/inc/svtools/htmltokn.h deleted file mode 100644 index 97e73cb4090a..000000000000 --- a/svtools/inc/svtools/htmltokn.h +++ /dev/null @@ -1,561 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _HTMLTOKN_H -#define _HTMLTOKN_H - -#include "svtools/svtdllapi.h" -#include -#include - -class String; - -// suche das Char zu dem CharNamen -sal_Unicode GetHTMLCharName( const String& rName ); - -// suche die TokenID zu dem Token -SVT_DLLPUBLIC int GetHTMLToken( const String& rName ); - -// suche die TokenId zu einemm Attribut-Token -int GetHTMLOption( const String& rName ); - -// suche die 24-bit-Farbe zu einem Farbnamen (nicht gefunden = ULONG_MAX) -SVT_DLLPUBLIC sal_uInt32 GetHTMLColor( const String& rName ); - -// beginnen immer ab 256, groesser als ein char -const int HTML_TOKEN_START = 0x100; -const int HTML_TOKEN_ONOFF = 0x200; -const int HTML_TOKEN_MICROSOFT = 0x1000; - -enum HTML_TOKEN_IDS -{ - HTML_TEXTTOKEN = HTML_TOKEN_START, - HTML_SINGLECHAR, - HTML_NEWPARA, - HTML_TABCHAR, - HTML_RAWDATA, - HTML_LINEFEEDCHAR, - - // diese werden nur eingeschaltet - HTML_AREA, // Netscape 2.0 - HTML_BASE, // HTML 3.0 - HTML_COMMENT, - HTML_DOCTYPE, - HTML_EMBED, // Netscape 2.0 ignorieren - HTML_FIGUREOVERLAY, // HTML 3.0 - HTML_HORZRULE, // ignorieren - HTML_HORZTAB, // HTML 3.0 - HTML_IMAGE, // ignorieren - HTML_INPUT, // ignorieren - HTML_ISINDEX, // HTML 3.0 - HTML_LINEBREAK, //
->
- HTML_LINK, // HTML 3.0 - HTML_META, // HTML 3.0 ignorieren - HTML_NEXTID, // HTML 3.0 - HTML_OF, // HTML 3.0 - HTML_OPTION, // ignorieren - HTML_PARAM, // HotJava - HTML_RANGE, // HTML 3.0 - HTML_SPACER, // Netscape 3.0b5 // ignorieren - HTML_WBR, // Netscape - - // Tokens, die ueber HTML-Charakter erkannt werden - HTML_NONBREAKSPACE, - HTML_SOFTHYPH, - - // diese werden wieder abgeschaltet, - // der off-Wert liegt immer dahinter (+1) !! - HTML_ABBREVIATION_ON = HTML_TOKEN_ONOFF, // HTML 3.0 - HTML_ABBREVIATION_OFF, // HTML 3.0 - HTML_ABOVE_ON, // HTML 3.0 - HTML_ABOVE_OFF, // HTML 3.0 - HTML_ACRONYM_ON, // HTML 3.0 - HTML_ACRONYM_OFF, // HTML 3.0 - HTML_ADDRESS_ON, - HTML_ADDRESS_OFF, - HTML_ANCHOR_ON, - HTML_ANCHOR_OFF, - HTML_APPLET_ON, // HotJava - HTML_APPLET_OFF, // HotJava - HTML_ARRAY_ON, // HTML 3.0 - HTML_ARRAY_OFF, // HTML 3.0 - HTML_AUTHOR_ON, // HTML 3.0 - HTML_AUTHOR_OFF, // HTML 3.0 - HTML_BANNER_ON, // HTML 3.0 - HTML_BANNER_OFF, // HTML 3.0 - HTML_BAR_ON, // HTML 3.0 - HTML_BAR_OFF, // HTML 3.0 - HTML_BASEFONT_ON, // Netscape - HTML_BASEFONT_OFF, // Netscape - HTML_BELOW_ON, // HTML 3.0 - HTML_BELOW_OFF, // HTML 3.0 - HTML_BIGPRINT_ON, // HTML 3.0 - HTML_BIGPRINT_OFF, // HTML 3.0 - HTML_BLINK_ON, // Netscape - HTML_BLINK_OFF, // Netscape - HTML_BLOCKQUOTE30_ON, // HTML 3.0 - HTML_BLOCKQUOTE30_OFF, // HTML 3.0 - HTML_BLOCKQUOTE_ON, - HTML_BLOCKQUOTE_OFF, - HTML_BODY_ON, - HTML_BODY_OFF, - HTML_BOLDTEXT_ON, // HTML 3.0 - HTML_BOLDTEXT_OFF, // HTML 3.0 - HTML_BOLD_ON, - HTML_BOLD_OFF, - HTML_BOX_ON, // HTML 3.0 - HTML_BOX_OFF, // HTML 3.0 - HTML_CAPTION_ON, // HTML 3.0 - HTML_CAPTION_OFF, // HTML 3.0 - HTML_CENTER_ON, // Netscape - HTML_CENTER_OFF, // Netscape - HTML_CITIATION_ON, - HTML_CITIATION_OFF, - HTML_CODE_ON, - HTML_CODE_OFF, - HTML_COL_ON, // HTML3 Table Model Draft - HTML_COL_OFF, // HTML3 Table Model Draft - HTML_COLGROUP_ON, // HTML3 Table Model Draft - HTML_COLGROUP_OFF, // HTML3 Table Model Draft - HTML_CREDIT_ON, // HTML 3.0 - HTML_CREDIT_OFF, // HTML 3.0 - HTML_DD_ON, - HTML_DD_OFF, - HTML_DEFLIST_ON, - HTML_DEFLIST_OFF, - HTML_DELETEDTEXT_ON, // HTML 3.0 - HTML_DELETEDTEXT_OFF, // HTML 3.0 - HTML_DIRLIST_ON, - HTML_DIRLIST_OFF, - HTML_DIVISION_ON, // HTML 3.0 - HTML_DIVISION_OFF, // HTML 3.0 - HTML_DOT_ON, // HTML 3.0 - HTML_DOT_OFF, // HTML 3.0 - HTML_DOUBLEDOT_ON, // HTML 3.0 - HTML_DOUBLEDOT_OFF, // HTML 3.0 - HTML_DT_ON, - HTML_DT_OFF, - HTML_EMPHASIS_ON, - HTML_EMPHASIS_OFF, - HTML_FIGURE_ON, // HTML 3.0 - HTML_FIGURE_OFF, // HTML 3.0 - HTML_FONT_ON, // Netscape - HTML_FONT_OFF, // Netscape - HTML_FOOTNOTE_ON, // HTML 3.0 - HTML_FOOTNOTE_OFF, // HTML 3.0 - HTML_FORM_ON, - HTML_FORM_OFF, - HTML_FRAME_ON, // Netscape 2.0 - HTML_FRAME_OFF, // Netscape 2.0 - HTML_FRAMESET_ON, // Netscape 2.0 - HTML_FRAMESET_OFF, // Netscape 2.0 - HTML_HAT_ON, // HTML 3.0 - HTML_HAT_OFF, // HTML 3.0 - HTML_HEAD1_ON, - HTML_HEAD1_OFF, - HTML_HEAD2_ON, - HTML_HEAD2_OFF, - HTML_HEAD3_ON, - HTML_HEAD3_OFF, - HTML_HEAD4_ON, - HTML_HEAD4_OFF, - HTML_HEAD5_ON, - HTML_HEAD5_OFF, - HTML_HEAD6_ON, - HTML_HEAD6_OFF, - HTML_HEAD_ON, - HTML_HEAD_OFF, - HTML_HTML_ON, - HTML_HTML_OFF, - HTML_IFRAME_ON, // IE 3.0b2 - HTML_IFRAME_OFF, // IE 3.0b2 - HTML_ILAYER_ON, - HTML_ILAYER_OFF, - HTML_INSERTEDTEXT_ON, // HTML 3.0 - HTML_INSERTEDTEXT_OFF, // HTML 3.0 - HTML_ITALIC_ON, - HTML_ITALIC_OFF, - HTML_ITEM_ON, // HTML 3.0 - HTML_ITEM_OFF, // HTML 3.0 - HTML_KEYBOARD_ON, - HTML_KEYBOARD_OFF, - HTML_LAYER_ON, - HTML_LAYER_OFF, - HTML_LANGUAGE_ON, // HTML 3.0 - HTML_LANGUAGE_OFF, // HTML 3.0 - HTML_LISTHEADER_ON, // HTML 3.0 - HTML_LISTHEADER_OFF, // HTML 3.0 - HTML_LI_ON, - HTML_LI_OFF, - HTML_MAP_ON, // Netscape 2.0 - HTML_MAP_OFF, // Netscape 2.0 - HTML_MATH_ON, // HTML 3.0 - HTML_MATH_OFF, // HTML 3.0 - HTML_MENULIST_ON, - HTML_MENULIST_OFF, - HTML_MULTICOL_ON, // Netscape 3.0b5 - HTML_MULTICOL_OFF, // Netscape 3.0b5 - HTML_NOBR_ON, // Netscape - HTML_NOBR_OFF, // Netscape - HTML_NOEMBED_ON, // Netscape 2.0 - HTML_NOEMBED_OFF, // Netscape 2.0 - HTML_NOFRAMES_ON, // Netscape 2.0 - HTML_NOFRAMES_OFF, // Netscape 2.0 - HTML_NOSCRIPT_ON, // Netscape 2.0 - HTML_NOSCRIPT_OFF, // Netscape 3.0 - HTML_NOTE_ON, // HTML 3.0 - HTML_NOTE_OFF, // HTML 3.0 - HTML_OBJECT_ON, // HotJava - HTML_OBJECT_OFF, // HotJava - HTML_ORDERLIST_ON, - HTML_ORDERLIST_OFF, - HTML_PARABREAK_ON, - HTML_PARABREAK_OFF, - HTML_PERSON_ON, // HTML 3.0 - HTML_PERSON_OFF, // HTML 3.0 - HTML_PLAINTEXT_ON, // HTML 3.0 - HTML_PLAINTEXT_OFF, // HTML 3.0 - HTML_PREFORMTXT_ON, - HTML_PREFORMTXT_OFF, - HTML_ROOT_ON, // HTML 3.0 - HTML_ROOT_OFF, // HTML 3.0 - HTML_ROW_ON, // HTML 3.0 - HTML_ROW_OFF, // HTML 3.0 - HTML_SAMPLE_ON, - HTML_SAMPLE_OFF, - HTML_SCRIPT_ON, // HTML 3.2 - HTML_SCRIPT_OFF, // HTML 3.2 - HTML_SELECT_ON, - HTML_SELECT_OFF, - HTML_SHORTQUOTE_ON, // HTML 3.0 - HTML_SHORTQUOTE_OFF, // HTML 3.0 - HTML_SMALLPRINT_ON, // HTML 3.0 - HTML_SMALLPRINT_OFF, // HTML 3.0 - HTML_SPAN_ON, // Style Sheets - HTML_SPAN_OFF, // Style Sheets - HTML_SQUAREROOT_ON, // HTML 3.0 - HTML_SQUAREROOT_OFF, // HTML 3.0 - HTML_STRIKETHROUGH_ON, // HTML 3.0 - HTML_STRIKETHROUGH_OFF, // HTML 3.0 - HTML_STRONG_ON, - HTML_STRONG_OFF, - HTML_STYLE_ON, // HTML 3.0 - HTML_STYLE_OFF, // HTML 3.0 - HTML_SUBSCRIPT_ON, // HTML 3.0 - HTML_SUBSCRIPT_OFF, // HTML 3.0 - HTML_SUPERSCRIPT_ON, // HTML 3.0 - HTML_SUPERSCRIPT_OFF, // HTML 3.0 - HTML_TABLE_ON, // HTML 3.0 - HTML_TABLE_OFF, // HTML 3.0 - HTML_TABLEDATA_ON, // HTML 3.0 - HTML_TABLEDATA_OFF, // HTML 3.0 - HTML_TABLEHEADER_ON, // HTML 3.0 - HTML_TABLEHEADER_OFF, // HTML 3.0 - HTML_TABLEROW_ON, // HTML 3.0 - HTML_TABLEROW_OFF, // HTML 3.0 - HTML_TBODY_ON, // HTML3 Table Model Draft - HTML_TBODY_OFF, // HTML3 Table Model Draft - HTML_TELETYPE_ON, - HTML_TELETYPE_OFF, - HTML_TEXTAREA_ON, - HTML_TEXTAREA_OFF, - HTML_TEXTFLOW_ON, // HTML 3.2 - HTML_TEXTFLOW_OFF, // HTML 3.2 - HTML_TEXT_ON, // HTML 3.0 - HTML_TEXT_OFF, // HTML 3.0 - HTML_TFOOT_ON, // HTML3 Table Model Draft - HTML_TFOOT_OFF, // HTML3 Table Model Draft - HTML_THEAD_ON, // HTML3 Table Model Draft - HTML_THEAD_OFF, // HTML3 Table Model Draft - HTML_TILDE_ON, // HTML 3.0 - HTML_TILDE_OFF, // HTML 3.0 - HTML_TITLE_ON, - HTML_TITLE_OFF, - HTML_UNDERLINE_ON, - HTML_UNDERLINE_OFF, - HTML_UNORDERLIST_ON, - HTML_UNORDERLIST_OFF, - HTML_VARIABLE_ON, - HTML_VARIABLE_OFF, - HTML_VECTOR_ON, // HTML 3.0 - HTML_VECTOR_OFF, // HTML 3.0 - - // obsolete features - HTML_XMP_ON, - HTML_XMP_OFF, - HTML_LISTING_ON, - HTML_LISTING_OFF, - - // proposed features - HTML_DEFINSTANCE_ON, - HTML_DEFINSTANCE_OFF, - HTML_STRIKE_ON, - HTML_STRIKE_OFF, - - HTML_UNKNOWNCONTROL_ON, - HTML_UNKNOWNCONTROL_OFF, - - HTML_BGSOUND = HTML_TOKEN_MICROSOFT|HTML_TOKEN_START, - - HTML_COMMENT2_ON = HTML_TOKEN_MICROSOFT|HTML_TOKEN_ONOFF, // HTML 2.0 ? - HTML_COMMENT2_OFF, // HTML 2.0 ? - HTML_MARQUEE_ON, - HTML_MARQUEE_OFF, - HTML_PLAINTEXT2_ON, // HTML 2.0 ? - HTML_PLAINTEXT2_OFF, // HTML 2.0 ? - - HTML_SDFIELD_ON, - HTML_SDFIELD_OFF -}; - -// HTML Attribut-Token (=Optionen) - -// beginnen immer ab 256, groesser als ein char -const int HTML_OPTION_START = 0x100; - -enum HTML_OPTION_IDS -{ -HTML_OPTION_BOOL_START = HTML_OPTION_START, - -// Attribute ohne Wert - HTML_O_BOX = HTML_OPTION_BOOL_START, - HTML_O_CHECKED, - HTML_O_COMPACT, - HTML_O_CONTINUE, - HTML_O_CONTROLS, // IExplorer 2.0 - HTML_O_DECLARE, // IExplorer 3.0b5 - HTML_O_DISABLED, - HTML_O_FOLDED, // Netscape internal - HTML_O_ISMAP, - HTML_O_MAYSCRIPT, // Netcape 3.0 - HTML_O_MULTIPLE, - HTML_O_NOFLOW, - HTML_O_NOHREF, // Netscape - HTML_O_NORESIZE, // Netscape 2.0 - HTML_O_NOSHADE, // Netscape - HTML_O_NOWRAP, - HTML_O_PLAIN, - HTML_O_SDFIXED, - HTML_O_SELECTED, - HTML_O_SHAPES, // IExplorer 3.0b5 -HTML_OPTION_BOOL_END, - -// Attribute mit einem String als Wert -HTML_OPTION_STRING_START = HTML_OPTION_BOOL_END, - HTML_O_ABOVE = HTML_OPTION_STRING_START, - HTML_O_ACCEPT, - HTML_O_ACCESSKEY, - HTML_O_ADD_DATE, // Netscape internal - HTML_O_ALT, - HTML_O_AXES, - HTML_O_AXIS, - HTML_O_BELOW, - HTML_O_CHAR, // HTML3 Table Model Draft - HTML_O_CLASS, - HTML_O_CLIP, - HTML_O_CODE, // HotJava - HTML_O_CODETYPE, - HTML_O_COLSPEC, - HTML_O_CONTENT, - HTML_O_COORDS, // Netscape 2.0 - HTML_O_DP, - HTML_O_ENCTYPE, - HTML_O_ERROR, - HTML_O_FACE, // IExplorer 2.0 - HTML_O_FRAMEBORDER, // IExplorer 3.0 - HTML_O_HTTPEQUIV, - HTML_O_LANGUAGE, // JavaScript - HTML_O_LAST_MODIFIED, // Netscape internal - HTML_O_LAST_VISIT, // Netscape internal - HTML_O_MD, - HTML_O_N, - HTML_O_NAME, - HTML_O_NOTATION, - HTML_O_PROMPT, - HTML_O_SHAPE, - HTML_O_STANDBY, - HTML_O_STYLE, // Style Sheets - HTML_O_TITLE, - HTML_O_VALUE, - HTML_O_SDVAL, // StarDiv NumberValue - HTML_O_SDNUM, // StarDiv NumberFormat - HTML_O_SDLIBRARY, - HTML_O_SDMODULE, -HTML_OPTION_STRING_END, - -// Attribute mit einem SGML-Identifier als Wert -HTML_OPTION_SGMLID_START = HTML_OPTION_STRING_END, - HTML_O_FROM = HTML_OPTION_SGMLID_START, - HTML_O_ID, - HTML_O_TARGET, // Netscape 2.0 - HTML_O_TO, - HTML_O_UNTIL, -HTML_OPTION_SGMLID_END, - -// Attribute mit einem URI als Wert -HTML_OPTION_URI_START = HTML_OPTION_SGMLID_END, - HTML_O_ACTION = HTML_OPTION_URI_START, - HTML_O_ARCHIVE, - HTML_O_BACKGROUND, - HTML_O_CLASSID, - HTML_O_CODEBASE, // HotJava - HTML_O_DATA, - HTML_O_DYNSRC, // IExplorer 3.0 - HTML_O_DYNSYNC, // IExplorer 2.0 - HTML_O_IMAGEMAP, - HTML_O_HREF, - HTML_O_LOWSRC, // Netscape 3.0 - HTML_O_SCRIPT, - HTML_O_SRC, - HTML_O_USEMAP, // Netscape 2.0 -HTML_OPTION_URI_END, - -// Attribute mit Entity-Namen als Wert -HTML_OPTION_ENTITY_START = HTML_OPTION_URI_END, - HTML_O_DINGBAT = HTML_OPTION_ENTITY_START, - HTML_O_SYM, -HTML_OPTION_ENTITY_END, - -// Attribute mit einer Farbe als Wert (alle Netscape) -HTML_OPTION_COLOR_START = HTML_OPTION_ENTITY_END, - HTML_O_ALINK = HTML_OPTION_COLOR_START, - HTML_O_BGCOLOR, - HTML_O_BORDERCOLOR, // IExplorer 2.0 - HTML_O_BORDERCOLORLIGHT, // IExplorer 2.0 - HTML_O_BORDERCOLORDARK, // IExplorer 2.0 - HTML_O_COLOR, - HTML_O_LINK, - HTML_O_TEXT, - HTML_O_VLINK, -HTML_OPTION_COLOR_END, - -// Attribute mit einem numerischen Wert -HTML_OPTION_NUMBER_START = HTML_OPTION_COLOR_END, - HTML_O_BORDER = HTML_OPTION_NUMBER_START, - HTML_O_CELLSPACING, // HTML3 Table Model Draft - HTML_O_CELLPADDING, // HTML3 Table Model Draft - HTML_O_CHAROFF, // HTML3 Table Model Draft - HTML_O_COLSPAN, - HTML_O_FRAMESPACING, // IExplorer 3.0 - HTML_O_GUTTER, // Netscape 3.0b5 - HTML_O_INDENT, - HTML_O_HEIGHT, - HTML_O_HSPACE, // Netscape - HTML_O_LEFT, - HTML_O_LEFTMARGIN, // IExplorer 2.0 - HTML_O_LOOP, // IExplorer 2.0 - HTML_O_MARGINWIDTH, // Netscape 2.0 - HTML_O_MARGINHEIGHT, // Netscape 2.0 - HTML_O_MAX, - HTML_O_MAXLENGTH, - HTML_O_MIN, - HTML_O_PAGEX, - HTML_O_PAGEY, - HTML_O_POINTSIZE, - HTML_O_ROWSPAN, - HTML_O_SCROLLAMOUNT, // IExplorer 2.0 - HTML_O_SCROLLDELAY, // IExplorer 2.0 - HTML_O_SEQNUM, - HTML_O_SKIP, - HTML_O_SPAN, // HTML3 Table Model Draft - HTML_O_TABINDEX, - HTML_O_TOP, - HTML_O_TOPMARGIN, // IExplorer 2.0 - HTML_O_VSPACE, // Netscape - HTML_O_WEIGHT, - HTML_O_WIDTH, - HTML_O_X, - HTML_O_Y, - HTML_O_ZINDEX, -HTML_OPTION_NUMBER_END, - -// Attribute mit Enum-Werten -HTML_OPTION_ENUM_START = HTML_OPTION_NUMBER_END, - HTML_O_BEHAVIOR = HTML_OPTION_ENUM_START, // IExplorer 2.0 - HTML_O_BGPROPERTIES, // IExplorer 2.0 - HTML_O_CLEAR, - HTML_O_DIR, - HTML_O_DIRECTION, // IExplorer 2.0 - HTML_O_FORMAT, - HTML_O_FRAME, // HTML3 Table Model Draft - HTML_O_LANG, - HTML_O_METHOD, - HTML_O_PALETTE, - HTML_O_REL, - HTML_O_REV, - HTML_O_RULES, // HTML3 Table Model Draft - HTML_O_SCROLLING, // Netscape 2.0 - HTML_O_SDREADONLY, - HTML_O_SUBTYPE, - HTML_O_TYPE, - HTML_O_VALIGN, - HTML_O_VALUETYPE, - HTML_O_VISIBILITY, - HTML_O_WRAP, -HTML_OPTION_ENUM_END, - -// Attribute mit Script-Code als Wert -HTML_OPTION_SCRIPT_START = HTML_OPTION_ENUM_END, - HTML_O_ONABORT = HTML_OPTION_SCRIPT_START, // JavaScript - HTML_O_ONBLUR, // JavaScript - HTML_O_ONCHANGE, // JavaScript - HTML_O_ONCLICK, // JavaScript - HTML_O_ONERROR, // JavaScript - HTML_O_ONFOCUS, // JavaScript - HTML_O_ONLOAD, // JavaScript - HTML_O_ONMOUSEOUT, // JavaScript - HTML_O_ONMOUSEOVER, // JavaScript - HTML_O_ONRESET, // JavaScript - HTML_O_ONSELECT, // JavaScript - HTML_O_ONSUBMIT, // JavaScript - HTML_O_ONUNLOAD, // JavaScript - - HTML_O_SDONABORT, // StarBasic - HTML_O_SDONBLUR, // StarBasic - HTML_O_SDONCHANGE, // StarBasic - HTML_O_SDONCLICK, // StarBasic - HTML_O_SDONERROR, // StarBasic - HTML_O_SDONFOCUS, // StarBasic - HTML_O_SDONLOAD, // StarBasic - HTML_O_SDONMOUSEOUT, // StarBasic - HTML_O_SDONMOUSEOVER, // StarBasic - HTML_O_SDONRESET, // StarBasic - HTML_O_SDONSELECT, // StarBasic - HTML_O_SDONSUBMIT, // StarBasic - HTML_O_SDONUNLOAD, // StarBasic -HTML_OPTION_SCRIPT_END, - -// Attribute mit Kontext-abhaengigen Werten -HTML_OPTION_CONTEXT_START = HTML_OPTION_SCRIPT_END, - HTML_O_ALIGN = HTML_OPTION_CONTEXT_START, - HTML_O_COLS, // Netscape 2.0 vs HTML 2.0 - HTML_O_ROWS, // Netscape 2.0 vs HTML 2.0 - HTML_O_SIZE, - HTML_O_START, - HTML_O_UNITS, -HTML_OPTION_CONTEXT_END, - -// eine unbekannte Option -HTML_O_UNKNOWN = HTML_OPTION_CONTEXT_END, -HTML_OPTION_END -}; - -#endif // _HTMLTOKN_H - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/hyperlabel.hxx b/svtools/inc/svtools/hyperlabel.hxx deleted file mode 100644 index 745c50798f1d..000000000000 --- a/svtools/inc/svtools/hyperlabel.hxx +++ /dev/null @@ -1,87 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef SVTOOLS_HYPERLABEL_HXX -#define SVTOOLS_HYPERLABEL_HXX - -#include - - -#include - -#define LABELBASEMAPHEIGHT 8 - - -//......................................................................... -namespace svt -{ -//......................................................................... - - class HyperLabelImpl; - - class HyperLabel : public FixedText - { - protected: - HyperLabelImpl* m_pImpl; - Link maClickHdl; - - virtual void MouseMove( const MouseEvent& rMEvt ); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void GetFocus(); - virtual void LoseFocus(); - - void DeactivateHyperMode(Font aFont, const Color aColor); - void ActivateHyperMode(Font aFont, const Color aColor); - - protected: - void implInit(); - - public: - HyperLabel( Window* _pParent, WinBits _nWinStyle = 0 ); - ~HyperLabel( ); - - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - - void SetID( sal_Int16 _ID ); - sal_Int16 GetID() const; - - void SetIndex( sal_Int32 _Index ); - sal_Int32 GetIndex() const; - - void SetLabel( const OUString& _rText ); - - void ToggleBackgroundColor( const Color& _rGBColor ); - void SetInteractive( sal_Bool _bInteractive ); - - void SetClickHdl( const Link& rLink ) { maClickHdl = rLink; } - const Link& GetClickHdl() const { return maClickHdl; } - - Size CalcMinimumSize( long nMaxWidth = 0 ) const; - - private: - - DECL_LINK(ImplClickHdl, HyperLabel*); - - private: - using FixedText::CalcMinimumSize; - }; -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/imagemgr.hrc b/svtools/inc/svtools/imagemgr.hrc deleted file mode 100644 index 1d86788e69fe..000000000000 --- a/svtools/inc/svtools/imagemgr.hrc +++ /dev/null @@ -1,147 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_IMAGEMGR_HRC -#define _SVTOOLS_IMAGEMGR_HRC - -#define IMAGELIST_START 3076 // must match to old Id's in SFX! - -#define IMG_IMPRESS (IMAGELIST_START + 47) -#define IMG_BITMAP (IMAGELIST_START + 49) -#define IMG_CALC (IMAGELIST_START + 50) -#define IMG_CALCTEMPLATE (IMAGELIST_START + 51) -#define IMG_DATABASE (IMAGELIST_START + 53) -#define IMG_IMPRESSTEMPLATE (IMAGELIST_START + 54) -#define IMG_GIF (IMAGELIST_START + 61) -#define IMG_HTML (IMAGELIST_START + 63) -#define IMG_JPG (IMAGELIST_START + 64) -#define IMG_MATH (IMAGELIST_START + 68) -#define IMG_MATHTEMPLATE (IMAGELIST_START + 69) -#define IMG_FILE (IMAGELIST_START + 74) -#define IMG_PCD (IMAGELIST_START + 76) -#define IMG_PCT (IMAGELIST_START + 77) -#define IMG_PCX (IMAGELIST_START + 78) -#define IMG_SIM (IMAGELIST_START + 79) -#define IMG_TEXTFILE (IMAGELIST_START + 80) -#define IMG_TIFF (IMAGELIST_START + 82) -#define IMG_WMF (IMAGELIST_START + 84) -#define IMG_WRITER (IMAGELIST_START + 86) -#define IMG_WRITERTEMPLATE (IMAGELIST_START + 87) -#define IMG_FIXEDDEV (IMAGELIST_START + 88) -#define IMG_REMOVEABLEDEV (IMAGELIST_START + 89) -#define IMG_CDROMDEV (IMAGELIST_START + 90) -#define IMG_NETWORKDEV (IMAGELIST_START + 91) -#define IMG_TABLE (IMAGELIST_START + 112) -#define IMG_FOLDER (IMAGELIST_START + 113) -#define IMG_DXF (IMAGELIST_START + 141) -#define IMG_MET (IMAGELIST_START + 142) -#define IMG_PNG (IMAGELIST_START + 143) -#define IMG_SGF (IMAGELIST_START + 144) -#define IMG_SGV (IMAGELIST_START + 145) -#define IMG_SVM (IMAGELIST_START + 146) -#define IMG_GLOBAL_DOC (IMAGELIST_START + 150) -#define IMG_DRAW (IMAGELIST_START + 151) -#define IMG_DRAWTEMPLATE (IMAGELIST_START + 152) -#define IMG_OO_DATABASE_DOC (IMAGELIST_START + 169) -#define IMG_OO_DRAW_DOC (IMAGELIST_START + 170) -#define IMG_OO_MATH_DOC (IMAGELIST_START + 171) -#define IMG_OO_GLOBAL_DOC (IMAGELIST_START + 172) -#define IMG_OO_IMPRESS_DOC (IMAGELIST_START + 173) -#define IMG_OO_CALC_DOC (IMAGELIST_START + 174) -#define IMG_OO_WRITER_DOC (IMAGELIST_START + 175) -#define IMG_OO_DRAW_TEMPLATE (IMAGELIST_START + 176) -#define IMG_OO_IMPRESS_TEMPLATE (IMAGELIST_START + 177) -#define IMG_OO_CALC_TEMPLATE (IMAGELIST_START + 178) -#define IMG_OO_WRITER_TEMPLATE (IMAGELIST_START + 179) -#define IMG_EXTENSION (IMAGELIST_START + 180) - -#define RID_DESCRIPTION_START 256 - -#define STR_DESCRIPTION_SOURCEFILE (RID_DESCRIPTION_START + 0) -#define STR_DESCRIPTION_BOOKMARKFILE (RID_DESCRIPTION_START + 1) -#define STR_DESCRIPTION_GRAPHIC_DOC (RID_DESCRIPTION_START + 2) -#define STR_DESCRIPTION_CFGFILE (RID_DESCRIPTION_START + 3) -#define STR_DESCRIPTION_APPLICATION (RID_DESCRIPTION_START + 4) -#define STR_DESCRIPTION_DATABASE_TABLE (RID_DESCRIPTION_START + 5) -#define STR_DESCRIPTION_SYSFILE (RID_DESCRIPTION_START + 6) -#define STR_DESCRIPTION_WORD_DOC (RID_DESCRIPTION_START + 7) -#define STR_DESCRIPTION_HELP_DOC (RID_DESCRIPTION_START + 8) -#define STR_DESCRIPTION_HTMLFILE (RID_DESCRIPTION_START + 9) -#define STR_DESCRIPTION_ARCHIVFILE (RID_DESCRIPTION_START + 10) -#define STR_DESCRIPTION_LOGFILE (RID_DESCRIPTION_START + 11) -#define STR_DESCRIPTION_SMATH_DOC (RID_DESCRIPTION_START + 12) -#define STR_DESCRIPTION_SCHART_DOC (RID_DESCRIPTION_START + 13) -#define STR_DESCRIPTION_SDRAW_DOC (RID_DESCRIPTION_START + 14) -#define STR_DESCRIPTION_SCALC_DOC (RID_DESCRIPTION_START + 15) -#define STR_DESCRIPTION_SIMPRESS_DOC (RID_DESCRIPTION_START + 16) -#define STR_DESCRIPTION_SWRITER_DOC (RID_DESCRIPTION_START + 17) -#define STR_DESCRIPTION_GLOBALDOC (RID_DESCRIPTION_START + 18) -#define STR_DESCRIPTION_SIMAGE_DOC (RID_DESCRIPTION_START + 19) -#define STR_DESCRIPTION_TEXTFILE (RID_DESCRIPTION_START + 20) -#define STR_DESCRIPTION_LINK (RID_DESCRIPTION_START + 21) -#define STR_DESCRIPTION_SOFFICE_TEMPLATE_DOC (RID_DESCRIPTION_START + 22) -#define STR_DESCRIPTION_EXCEL_DOC (RID_DESCRIPTION_START + 23) -#define STR_DESCRIPTION_EXCEL_TEMPLATE_DOC (RID_DESCRIPTION_START + 24) -#define STR_DESCRIPTION_BATCHFILE (RID_DESCRIPTION_START + 25) -#define STR_DESCRIPTION_FILE (RID_DESCRIPTION_START + 26) -#define STR_DESCRIPTION_FOLDER (RID_DESCRIPTION_START + 27) -#define STR_DESCRIPTION_FACTORY_WRITER (RID_DESCRIPTION_START + 28) -#define STR_DESCRIPTION_FACTORY_CALC (RID_DESCRIPTION_START + 29) -#define STR_DESCRIPTION_FACTORY_IMPRESS (RID_DESCRIPTION_START + 30) -#define STR_DESCRIPTION_FACTORY_DRAW (RID_DESCRIPTION_START + 31) -#define STR_DESCRIPTION_FACTORY_WRITERWEB (RID_DESCRIPTION_START + 32) -#define STR_DESCRIPTION_FACTORY_GLOBALDOC (RID_DESCRIPTION_START + 33) -#define STR_DESCRIPTION_FACTORY_MATH (RID_DESCRIPTION_START + 34) -#define STR_DESCRIPTION_CALC_TEMPLATE (RID_DESCRIPTION_START + 35) -#define STR_DESCRIPTION_DRAW_TEMPLATE (RID_DESCRIPTION_START + 36) -#define STR_DESCRIPTION_IMPRESS_TEMPLATE (RID_DESCRIPTION_START + 37) -#define STR_DESCRIPTION_WRITER_TEMPLATE (RID_DESCRIPTION_START + 38) -#define STR_DESCRIPTION_LOCALE_VOLUME (RID_DESCRIPTION_START + 39) -#define STR_DESCRIPTION_FLOPPY_VOLUME (RID_DESCRIPTION_START + 40) -#define STR_DESCRIPTION_CDROM_VOLUME (RID_DESCRIPTION_START + 41) -#define STR_DESCRIPTION_REMOTE_VOLUME (RID_DESCRIPTION_START + 42) -#define STR_DESCRIPTION_POWERPOINT (RID_DESCRIPTION_START + 43) -#define STR_DESCRIPTION_POWERPOINT_TEMPLATE (RID_DESCRIPTION_START + 44) -#define STR_DESCRIPTION_POWERPOINT_SHOW (RID_DESCRIPTION_START + 45) -#define STR_DESCRIPTION_SXMATH_DOC (RID_DESCRIPTION_START + 46) -#define STR_DESCRIPTION_SXCHART_DOC (RID_DESCRIPTION_START + 47) -#define STR_DESCRIPTION_SXDRAW_DOC (RID_DESCRIPTION_START + 48) -#define STR_DESCRIPTION_SXCALC_DOC (RID_DESCRIPTION_START + 49) -#define STR_DESCRIPTION_SXIMPRESS_DOC (RID_DESCRIPTION_START + 50) -#define STR_DESCRIPTION_SXWRITER_DOC (RID_DESCRIPTION_START + 51) -#define STR_DESCRIPTION_SXGLOBAL_DOC (RID_DESCRIPTION_START + 52) -#define STR_DESCRIPTION_MATHML_DOC (RID_DESCRIPTION_START + 53) -#define STR_DESCRIPTION_SDATABASE_DOC (RID_DESCRIPTION_START + 54) -#define STR_DESCRIPTION_OO_DATABASE_DOC (RID_DESCRIPTION_START + 55) -#define STR_DESCRIPTION_OO_DRAW_DOC (RID_DESCRIPTION_START + 56) -#define STR_DESCRIPTION_OO_MATH_DOC (RID_DESCRIPTION_START + 57) -#define STR_DESCRIPTION_OO_GLOBAL_DOC (RID_DESCRIPTION_START + 58) -#define STR_DESCRIPTION_OO_IMPRESS_DOC (RID_DESCRIPTION_START + 59) -#define STR_DESCRIPTION_OO_CALC_DOC (RID_DESCRIPTION_START + 60) -#define STR_DESCRIPTION_OO_WRITER_DOC (RID_DESCRIPTION_START + 61) -#define STR_DESCRIPTION_OO_DRAW_TEMPLATE (RID_DESCRIPTION_START + 62) -#define STR_DESCRIPTION_OO_IMPRESS_TEMPLATE (RID_DESCRIPTION_START + 63) -#define STR_DESCRIPTION_OO_CALC_TEMPLATE (RID_DESCRIPTION_START + 64) -#define STR_DESCRIPTION_OO_WRITER_TEMPLATE (RID_DESCRIPTION_START + 65) -#define STR_DESCRIPTION_FACTORY_DATABASE (RID_DESCRIPTION_START + 66) -#define STR_DESCRIPTION_EXTENSION (RID_DESCRIPTION_START + 67) - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/imagemgr.hxx b/svtools/inc/svtools/imagemgr.hxx deleted file mode 100644 index 860190f835a3..000000000000 --- a/svtools/inc/svtools/imagemgr.hxx +++ /dev/null @@ -1,79 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_IMAGEMGR_HXX -#define _SVTOOLS_IMAGEMGR_HXX - -#include "svtools/svtdllapi.h" -#include "sal/types.h" - -class Image; -class String; -class INetURLObject; - -namespace svtools { - -struct VolumeInfo -{ - sal_Bool m_bIsVolume; - sal_Bool m_bIsRemote; - sal_Bool m_bIsRemoveable; - sal_Bool m_bIsFloppy; - sal_Bool m_bIsCompactDisc; - - VolumeInfo() : - m_bIsVolume ( sal_False ), - m_bIsRemote ( sal_False ), - m_bIsRemoveable ( sal_False ), - m_bIsFloppy ( sal_False ), - m_bIsCompactDisc( sal_False ) {} - - VolumeInfo( sal_Bool _bIsVolume, - sal_Bool _bIsRemote, - sal_Bool _bIsRemoveable, - sal_Bool _bIsFloppy, - sal_Bool _bIsCompactDisc ) : - m_bIsVolume ( _bIsVolume ), - m_bIsRemote ( _bIsRemote ), - m_bIsRemoveable ( _bIsRemoveable ), - m_bIsFloppy ( _bIsFloppy ), - m_bIsCompactDisc( _bIsCompactDisc ) {} -}; - -} - -class SvFileInformationManager -{ -private: - SVT_DLLPRIVATE static String GetDescription_Impl( const INetURLObject& rObject, sal_Bool bDetectFolder ); - -public: - SVT_DLLPUBLIC static Image GetImage( const INetURLObject& rURL, sal_Bool bBig = sal_False ); - SVT_DLLPUBLIC static Image GetFileImage( const INetURLObject& rURL, sal_Bool bBig = sal_False ); - SVT_DLLPUBLIC static Image GetImageNoDefault( const INetURLObject& rURL, sal_Bool bBig = sal_False ); - SVT_DLLPUBLIC static Image GetFolderImage( const svtools::VolumeInfo& rInfo, sal_Bool bBig = sal_False ); - - SVT_DLLPUBLIC static String GetDescription( const INetURLObject& rObject ); - SVT_DLLPUBLIC static String GetFileDescription( const INetURLObject& rObject ); - SVT_DLLPUBLIC static String GetFolderDescription( const svtools::VolumeInfo& rInfo ); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/imageresourceaccess.hxx b/svtools/inc/svtools/imageresourceaccess.hxx deleted file mode 100644 index b8282da72167..000000000000 --- a/svtools/inc/svtools/imageresourceaccess.hxx +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef SVTOOLS_INC_IMAGERESOURCEACCESS_HXX -#define SVTOOLS_INC_IMAGERESOURCEACCESS_HXX - -#include "svtools/svtdllapi.h" - -#include -#include - -class SvStream; -//........................................................................ -namespace svt -{ -//........................................................................ - - //==================================================================== - //= GraphicAccess - //==================================================================== - /** helper class for obtaining streams (which also can be used with the ImageProducer) - from a resource - */ - class GraphicAccess - { - private: - GraphicAccess(); // never implemented - - public: - /** determines whether the given URL denotes an image within a resource - ( or an image specified by a vnd.sun.star.GraphicObject scheme URL ) - */ - SVT_DLLPUBLIC static bool isSupportedURL( const OUString& _rURL ); - - /** for a given URL of an image within a resource ( or an image specified by a vnd.sun.star.GraphicObject scheme URL ), this method retrieves - an SvStream for this image. - - This method works for arbitrary URLs denoting an image, since the - GraphicsProvider service is used - to resolve the URL. However, obtaining the stream is expensive (since - the image must be copied), so you are strongly encouraged to only use it - when you know that the image is small enough. - */ - SVT_DLLPUBLIC static SvStream* getImageStream( - const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext, - const OUString& _rImageResourceURL - ); - - /** for a given URL of an image within a resource ( or an image specified by a vnd.sun.star.GraphicObject scheme URL ), this method retrieves - an XInputStream for this image. - */ - SVT_DLLPUBLIC static ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > - getImageXStream( - const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext, - const OUString& _rImageResourceURL - ); - }; - -//........................................................................ -} // namespace svt -//........................................................................ - -#endif // DBA14_SVTOOLS_INC_IMAGERESOURCEACCESS_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/imap.hxx b/svtools/inc/svtools/imap.hxx deleted file mode 100644 index 790cdebef60f..000000000000 --- a/svtools/inc/svtools/imap.hxx +++ /dev/null @@ -1,151 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _IMAP_HXX -#define _IMAP_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include - -class Point; -class Rectangle; -class Size; -class Fraction; -class IMapObject; - -typedef ::std::vector< IMapObject* > IMapObjectList_impl; - -class SVT_DLLPUBLIC ImageMap -{ -private: - - IMapObjectList_impl maList; - String aName; - -protected: - - // Binaer laden/speichern - void ImpWriteImageMap( SvStream& rOStm, const String& ) const ; - void ImpReadImageMap( SvStream& rIStm, size_t nCount, const String& ); - - // Im-/Export - void ImpWriteCERN( SvStream& rOStm, const String& rBaseURL ) const; - void ImpWriteNCSA( SvStream& rOStm, const String& rBaseURL ) const; - sal_uLong ImpReadCERN( SvStream& rOStm, const String& rBaseURL ); - sal_uLong ImpReadNCSA( SvStream& rOStm, const String& rBaseURL ); - - void ImpReadCERNLine( const OString& rLine, const String& rBaseURL ); - Point ImpReadCERNCoords( const char** ppStr ); - long ImpReadCERNRadius( const char** ppStr ); - String ImpReadCERNURL( const char** ppStr, const String& rBaseURL ); - - void ImpReadNCSALine( const OString& rLine, const String& rBaseURL ); - String ImpReadNCSAURL( const char** ppStr, const String& rBaseURL ); - Point ImpReadNCSACoords( const char** ppStr ); - - sal_uLong ImpDetectFormat( SvStream& rIStm ); - -public: - - TYPEINFO(); - - ImageMap() {}; - ImageMap( const String& rName ); - ImageMap( const ImageMap& rImageMap ); - - // Der Dtor gibt den intern belegten - // Speicher wieder frei; - // alle IMapObjekte werden im Dtor zerstoert; - virtual ~ImageMap(); - - // Zuweisungsoperator - ImageMap& operator=( const ImageMap& rImageMap ); - - // Vergleichsoperator (es wird alles auf Gleichheit geprueft) - sal_Bool operator==( const ImageMap& rImageMap ); - sal_Bool operator!=( const ImageMap& rImageMap ); - - // In die Map wird ein neues IMap-Obkekt ans Ende eingefuegt - void InsertIMapObject( const IMapObject& rIMapObject ); - - // Zugriff auf einzelne IMapObjekte; die Objekte - // duerfen von aussen _nicht_ zerstoert werden - IMapObject* GetIMapObject( size_t nPos ) const - { - return ( nPos < maList.size() ) ? maList[ nPos ] : NULL; - } - - // Gibt das Objekt zurueck, das zuerst getroffen wurde oder NULL; - // Groessen- und Positionsangaben sind in 1/100mm; - // rTotalSize ist die Originalgroesse des Bildes; - // rDisplaySize die aktuelle Darstellungsgroesse; - // rRelPoint bezieht sich auf die Darstellungsgroesse - // und die linke oebere Ecke des Bildes - IMapObject* GetHitIMapObject( const Size& rOriginalSize, - const Size& rDisplaySize, - const Point& rRelHitPoint, - sal_uLong nFlags = 0 ); - - // Gibt die Gesamtanzahl der IMap-Objekte zurueck - size_t GetIMapObjectCount() const { return maList.size(); } - - // Loescht alle internen Objekte - void ClearImageMap(); - - // liefert die aktuelle Versionsnummer - sal_uInt16 GetVersion() const; - - // liefert / setzt den Namen der ImageMap - const String& GetName() const { return aName; } - void SetName( const String& rName ) { aName = rName; } - - // skaliert alle Objekte der ImageMap entpr. dem uebergebenen Faktor - void Scale( const Fraction& rFractX, const Fraction& rFracY ); - - // Im-/Export - void Write ( SvStream& rOStm, const String& rBaseURL ) const; - void Read( SvStream& rIStm, const String& rBaseURL ); - - void Write( SvStream& rOStm, sal_uLong nFormat, const String& rBaseURL ) const; - sal_uLong Read( SvStream& rIStm, sal_uLong nFormat, const String& rBaseURL ); -}; - -class IMapCompat -{ - SvStream* pRWStm; - sal_uLong nCompatPos; - sal_uLong nTotalSize; - sal_uInt16 nStmMode; - - IMapCompat() {} - IMapCompat( const IMapCompat& ) {} - IMapCompat& operator=( const IMapCompat& ) { return *this; } - sal_Bool operator==( const IMapCompat& ) { return sal_False; } - -public: - - IMapCompat( SvStream& rStm, const sal_uInt16 nStreamMode ); - ~IMapCompat(); -}; - -#endif // _IMAP_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/imapcirc.hxx b/svtools/inc/svtools/imapcirc.hxx deleted file mode 100644 index 057561adad98..000000000000 --- a/svtools/inc/svtools/imapcirc.hxx +++ /dev/null @@ -1,75 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _GOODIES_IMAPCIRC_HXX -#define _GOODIES_IMAPCIRC_HXX - -#include "svtools/svtdllapi.h" -#include -#include - -class Fraction; - -class SVT_DLLPUBLIC IMapCircleObject : public IMapObject -{ - Point aCenter; - sal_Int32 nRadius; - - void ImpConstruct( const Point& rCenter, sal_uLong nRad, sal_Bool bPixel ); - -protected: - - // Binaer-Im-/Export - virtual void WriteIMapObject( SvStream& rOStm ) const; - virtual void ReadIMapObject( SvStream& rIStm ); - -public: - - IMapCircleObject() {}; - IMapCircleObject( const Point& rCenter, sal_uLong nRad, - const String& rURL, - const String& rAltText, - const String& rDesc, - const String& rTarget, - const String& rName, - sal_Bool bActive = sal_True, - sal_Bool bPixelCoords = sal_True ); - virtual ~IMapCircleObject() {}; - - virtual sal_uInt16 GetType() const; - virtual sal_Bool IsHit( const Point& rPoint ) const; - - Point GetCenter( sal_Bool bPixelCoords = sal_True ) const; - sal_uLong GetRadius( sal_Bool bPixelCoords = sal_True ) const; - - // liefert das BoundRect des Kreis-Objektes in 1/100mm - virtual Rectangle GetBoundRect() const; - - void Scale( const Fraction& rFractX, const Fraction& rFracY ); - - using IMapObject::IsEqual; - sal_Bool IsEqual( const IMapCircleObject& rEqObj ); - - // Im-/Export - void WriteCERN( SvStream& rOStm, const String& rBaseURL ) const; - void WriteNCSA( SvStream& rOStm, const String& rBaseURL ) const; -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/imapobj.hxx b/svtools/inc/svtools/imapobj.hxx deleted file mode 100644 index e90902bec0f0..000000000000 --- a/svtools/inc/svtools/imapobj.hxx +++ /dev/null @@ -1,145 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _GOODIES_IMAPOBJ_HXX -#define _GOODIES_IMAPOBJ_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include - -class Point; -class Rectangle; -class SvStream; - -#define IMAP_OBJ_NONE ((sal_uInt16)0x0000) -#define IMAP_OBJ_RECTANGLE ((sal_uInt16)0x0001) -#define IMAP_OBJ_CIRCLE ((sal_uInt16)0x0002) -#define IMAP_OBJ_POLYGON ((sal_uInt16)0x0003) -#define IMAP_OBJ_VERSION ((sal_uInt16)0x0005) - -#define IMAGE_MAP_VERSION ((sal_uInt16)0x0001) - -#define IMAPMAGIC "SDIMAP" - -#define IMAP_MIRROR_HORZ 0x00000001L -#define IMAP_MIRROR_VERT 0x00000002L - -#define IMAP_FORMAT_BIN 0x00000001L -#define IMAP_FORMAT_CERN 0x00000002L -#define IMAP_FORMAT_NCSA 0x00000004L -#define IMAP_FORMAT_DETECT 0xffffffffL - -#define IMAP_ERR_OK 0x00000000L -#define IMAP_ERR_FORMAT 0x00000001L - -class SVT_DLLPUBLIC IMapObject -{ - friend class ImageMap; - - String aURL; - String aAltText; - String aDesc; - String aTarget; - String aName; - SvxMacroTableDtor aEventList; - sal_Bool bActive; - -protected: - sal_uInt16 nReadVersion; - - // Binaer-Im-/Export - virtual void WriteIMapObject( SvStream& rOStm ) const = 0; - virtual void ReadIMapObject( SvStream& rIStm ) = 0; - - // Hilfsmethoden - void AppendCERNCoords(OStringBuffer& rBuf, const Point& rPoint100) const; - void AppendCERNURL(OStringBuffer& rBuf, const String& rBaseURL) const; - void AppendNCSACoords(OStringBuffer& rBuf, const Point& rPoint100) const; - void AppendNCSAURL(OStringBuffer&rBuf, const String& rBaseURL) const; - -public: - - static rtl_TextEncoding nActualTextEncoding; - - IMapObject(); - IMapObject( const String& rURL, - const String& rAltText, - const String& rDesc, - const String& rTarget, - const String& rName, - sal_Bool bActive ); - virtual ~IMapObject() {}; - - virtual sal_uInt16 GetVersion() const; - virtual sal_uInt16 GetType() const = 0; - virtual sal_Bool IsHit( const Point& rPoint ) const = 0; - - void Write ( SvStream& rOStm, const String& rBaseURL ) const; - void Read( SvStream& rIStm, const String& rBaseURL ); - - virtual Rectangle GetBoundRect() const = 0; - - const String& GetURL() const { return aURL; } - void SetURL( const String& rURL ) { aURL = rURL; } - - const String& GetAltText() const { return aAltText; } - void SetAltText( const String& rAltText) { aAltText = rAltText; } - - const String& GetDesc() const { return aDesc; } - void SetDesc( const String& rDesc ) { aDesc = rDesc; } - - const String& GetTarget() const { return aTarget; } - void SetTarget( const String& rTarget ) { aTarget = rTarget; } - - const String& GetName() const { return aName; } - void SetName( const String& rName ) { aName = rName; } - - sal_Bool IsActive() const { return bActive; } - void SetActive( sal_Bool bSetActive = sal_True ) { bActive = bSetActive; } - - sal_Bool IsEqual( const IMapObject& rEqObj ); - - // IMap-Events - inline const SvxMacroTableDtor& GetMacroTable() const { return aEventList;} - inline void SetMacroTable( const SvxMacroTableDtor& rTbl ) { aEventList = rTbl; } - - inline const SvxMacro& GetEvent( sal_uInt16 nEvent ) const; - inline sal_Bool HasEvent( sal_uInt16 nEvent ) const; - void SetEvent( sal_uInt16 nEvent, const SvxMacro& ); - inline sal_Bool DelEvent( sal_uInt16 nEvent ); -}; - -inline sal_Bool IMapObject::HasEvent( sal_uInt16 nEvent ) const -{ - return aEventList.IsKeyValid( nEvent ); -} -inline const SvxMacro& IMapObject::GetEvent( sal_uInt16 nEvent ) const -{ - return *(aEventList.Get( nEvent )); -} -inline sal_Bool IMapObject::DelEvent( sal_uInt16 nEvent ) -{ - return aEventList.Erase( nEvent ); -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/imappoly.hxx b/svtools/inc/svtools/imappoly.hxx deleted file mode 100644 index b4a0eafdb07d..000000000000 --- a/svtools/inc/svtools/imappoly.hxx +++ /dev/null @@ -1,81 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _GOODIES_IMAPPOLY_HXX -#define _GOODIES_IMAPPOLY_HXX - -#include "svtools/svtdllapi.h" -#include -#include - -class Fraction; - -class SVT_DLLPUBLIC IMapPolygonObject : public IMapObject -{ - Polygon aPoly; - Rectangle aEllipse; - sal_Bool bEllipse; - - SVT_DLLPRIVATE void ImpConstruct( const Polygon& rPoly, sal_Bool bPixel ); - -protected: - - // Binaer-Im-/Export - virtual void WriteIMapObject( SvStream& rOStm ) const; - virtual void ReadIMapObject( SvStream& rIStm ); - - sal_Bool ReadPreProLine( SvStream& rIStm, String& rStr ); - -public: - IMapPolygonObject() {}; - IMapPolygonObject( const Polygon& rPoly, - const String& rURL, - const String& rAltText, - const String& rDesc, - const String& rTarget, - const String& rName, - sal_Bool bActive = sal_True, - sal_Bool bPixelCoords = sal_True ); - virtual ~IMapPolygonObject() {}; - - virtual sal_uInt16 GetType() const; - virtual sal_Bool IsHit( const Point& rPoint ) const; - - Polygon GetPolygon( sal_Bool bPixelCoords = sal_True ) const; - - // liefert das BoundRect des Polygon-Objektes in 1/100mm - virtual Rectangle GetBoundRect() const { return aPoly.GetBoundRect(); } - - sal_Bool HasExtraEllipse() const { return bEllipse; } - const Rectangle& GetExtraEllipse() const { return aEllipse; } - void SetExtraEllipse( const Rectangle& rEllipse ); - - void Scale( const Fraction& rFractX, const Fraction& rFracY ); - - using IMapObject::IsEqual; - sal_Bool IsEqual( const IMapPolygonObject& rEqObj ); - - // Im-/Export - void WriteCERN( SvStream& rOStm, const String& rBaseURL ) const; - void WriteNCSA( SvStream& rOStm, const String& rBaseURL ) const; -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/imaprect.hxx b/svtools/inc/svtools/imaprect.hxx deleted file mode 100644 index b7d6ab54288a..000000000000 --- a/svtools/inc/svtools/imaprect.hxx +++ /dev/null @@ -1,73 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _GOODIES_IMAPRECT_HXX -#define _GOODIES_IMAPRECT_HXX - -#include "svtools/svtdllapi.h" -#include -#include - -class Fraction; - -class SVT_DLLPUBLIC IMapRectangleObject : public IMapObject -{ - Rectangle aRect; - - SVT_DLLPRIVATE void ImpConstruct( const Rectangle& rRect, sal_Bool bPixel ); - -protected: - - // Binaer-Im-/Export - virtual void WriteIMapObject( SvStream& rOStm ) const; - virtual void ReadIMapObject( SvStream& rIStm ); - -public: - - IMapRectangleObject() {}; - IMapRectangleObject( const Rectangle& rRect, - const String& rURL, - const String& rAltText, - const String& rDesc, - const String& rTarget, - const String& rName, - sal_Bool bActive = sal_True, - sal_Bool bPixelCoords = sal_True ); - virtual ~IMapRectangleObject() {}; - - virtual sal_uInt16 GetType() const; - virtual sal_Bool IsHit( const Point& rPoint ) const; - - Rectangle GetRectangle( sal_Bool bPixelCoords = sal_True ) const; - - // liefert das BoundRect des Rechteck-Objektes in 1/100mm - virtual Rectangle GetBoundRect() const { return aRect; } - - void Scale( const Fraction& rFractX, const Fraction& rFracY ); - - using IMapObject::IsEqual; - sal_Bool IsEqual( const IMapRectangleObject& rEqObj ); - - // Im-/Export - void WriteCERN( SvStream& rOStm, const String& rBaseURL ) const; - void WriteNCSA( SvStream& rOStm, const String& rBaseURL ) const; -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/imgdef.hxx b/svtools/inc/svtools/imgdef.hxx deleted file mode 100644 index e243d9fd4231..000000000000 --- a/svtools/inc/svtools/imgdef.hxx +++ /dev/null @@ -1,36 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_IMGDEF_HXX -#define _SVTOOLS_IMGDEF_HXX - -enum SfxSymbolsSize -{ - SFX_SYMBOLS_SIZE_SMALL, - SFX_SYMBOLS_SIZE_LARGE, - SFX_SYMBOLS_SIZE_AUTO -}; - -#define SFX_TOOLBOX_CHANGESYMBOLSET 0x0001 -#define SFX_TOOLBOX_CHANGEOUTSTYLE 0x0002 -#define SFX_TOOLBOX_CHANGEBUTTONTYPE 0x0004 - -#endif // _SVTOOLS_IMGDEF_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/indexentryres.hxx b/svtools/inc/svtools/indexentryres.hxx deleted file mode 100644 index 9e2a54a8ef0b..000000000000 --- a/svtools/inc/svtools/indexentryres.hxx +++ /dev/null @@ -1,42 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef SVTOOLS_INDEXENTRYRESOURCE_HXX -#define SVTOOLS_INDEXENTRYRESOURCE_HXX - -#include "svtools/svtdllapi.h" -#include - -class IndexEntryResourceData; - -class SVT_DLLPUBLIC IndexEntryResource -{ - private: - IndexEntryResourceData *mp_Data; - - public: - IndexEntryResource (); - ~IndexEntryResource (); - const OUString& GetTranslation (const OUString& r_Algorithm); -}; - -#endif /* SVTOOLS_INDEXENTRYRESOURCE_HXX */ - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/inetimg.hxx b/svtools/inc/svtools/inetimg.hxx deleted file mode 100644 index f28ac2cdedfe..000000000000 --- a/svtools/inc/svtools/inetimg.hxx +++ /dev/null @@ -1,78 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _INETIMG_HXX -#define _INETIMG_HXX - -#include -#include - -class SvData; -class SotDataObject; - -//========================================================================= - -class INetImage -{ - String aImageURL; - String aTargetURL; - String aTargetFrame; - String aAlternateText; - Size aSizePixel; - -protected: - String CopyExchange() const; - void PasteExchange( const String& rString ); - - void SetImageURL( const String& rS ) { aImageURL = rS; } - void SetTargetURL( const String& rS ) { aTargetURL = rS; } - void SetTargetFrame( const String& rS ) { aTargetFrame = rS; } - void SetAlternateText( const String& rS ){ aAlternateText = rS; } - void SetSizePixel( const Size& rSize ) { aSizePixel = rSize; } - -public: - INetImage( - const String& rImageURL, - const String& rTargetURL, - const String& rTargetFrame, - const String& rAlternateText, - const Size& rSizePixel ) - : aImageURL( rImageURL ), - aTargetURL( rTargetURL ), - aTargetFrame( rTargetFrame ), - aAlternateText( rAlternateText ), - aSizePixel( rSizePixel ) - {} - INetImage() - {} - - const String& GetImageURL() const { return aImageURL; } - const String& GetTargetURL() const { return aTargetURL; } - const String& GetTargetFrame() const { return aTargetFrame; } - const String& GetAlternateText() const { return aAlternateText; } - const Size& GetSizePixel() const { return aSizePixel; } - - // Im-/Export - sal_Bool Write( SvStream& rOStm, sal_uLong nFormat ) const; - sal_Bool Read( SvStream& rIStm, sal_uLong nFormat ); -}; - -#endif // #ifndef _INETIMG_HXX - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/inettbc.hxx b/svtools/inc/svtools/inettbc.hxx deleted file mode 100644 index a8e85eaf7647..000000000000 --- a/svtools/inc/svtools/inettbc.hxx +++ /dev/null @@ -1,97 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_INETTBC_HXX -#define _SVTOOLS_INETTBC_HXX - -#include "rtl/ref.hxx" -#include "svtools/svtdllapi.h" -#include -#include - -#include - -class IUrlFilter; -class SvtMatchContext_Impl; -class SvtURLBox_Impl; -class SVT_DLLPUBLIC SvtURLBox : public ComboBox -{ -friend class SvtMatchContext_Impl; -friend class SvtURLBox_Impl; - Link aOpenHdl; - String aBaseURL; - String aPlaceHolder; - rtl::Reference< SvtMatchContext_Impl > pCtx; - SvtURLBox_Impl* pImp; - INetProtocol eSmartProtocol; - sal_Bool bAutoCompleteMode : 1; - sal_Bool bOnlyDirectories : 1; - sal_Bool bCtrlClick : 1; - sal_Bool bHistoryDisabled : 1; - sal_Bool bNoSelection : 1; - sal_Bool bIsAutoCompleteEnabled : 1; - - SVT_DLLPRIVATE sal_Bool ProcessKey( const KeyCode& rCode ); - SVT_DLLPRIVATE void TryAutoComplete(); - SVT_DLLPRIVATE void UpdatePicklistForSmartProtocol_Impl(); - DECL_DLLPRIVATE_LINK( AutoCompleteHdl_Impl, void* ); - SVT_DLLPRIVATE void Init(bool bSetDefaultHelpID); - -protected: - virtual long Notify( NotifyEvent& rNEvt ); - virtual void Select(); - virtual void Modify(); - virtual long PreNotify( NotifyEvent& rNEvt ); - -public: - SvtURLBox( Window* pParent, INetProtocol eSmart = INET_PROT_NOT_VALID, bool bSetDefaultHelpID = true ); - SvtURLBox( Window* pParent, WinBits _nStyle, INetProtocol eSmart = INET_PROT_NOT_VALID, bool bSetDefaultHelpID = true ); - SvtURLBox( Window* pParent, const ResId& _rResId, INetProtocol eSmart = INET_PROT_NOT_VALID, bool bSetDefaultHelpID = true ); - ~SvtURLBox(); - - void SetBaseURL( const String& rURL ); - const String& GetBaseURL() const { return aBaseURL; } - void SetOpenHdl( const Link& rLink ) { aOpenHdl = rLink; } - const Link& GetOpenHdl() const { return aOpenHdl; } - void SetOnlyDirectories( sal_Bool bDir = sal_True ); - void SetNoURLSelection( sal_Bool bSet = sal_True ); - INetProtocol GetSmartProtocol() const { return eSmartProtocol; } - void SetSmartProtocol( INetProtocol eProt ); - sal_Bool IsCtrlOpen() - { return bCtrlClick; } - String GetURL(); - void DisableHistory(); - - void UpdatePickList( ); - - static String ParseSmart( String aText, String aBaseURL, String aWorkDir ); - - void SetFilter(const String& _sFilter); - void SetUrlFilter( const IUrlFilter* _pFilter ); - - inline void EnableAutocompletion( sal_Bool _bEnable = sal_True ) - { bIsAutoCompleteEnabled = _bEnable; } - void SetPlaceHolder( const String& sPlaceHolder ) { aPlaceHolder = sPlaceHolder; } - String GetPlaceHolder() { return aPlaceHolder; } - bool MatchesPlaceHolder( const String& sToMatch ) { return ( ( aPlaceHolder.Len() > 0 ) && ( aPlaceHolder == sToMatch ) ); } -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/insdlg.hxx b/svtools/inc/svtools/insdlg.hxx deleted file mode 100644 index 241f3cd128d2..000000000000 --- a/svtools/inc/svtools/insdlg.hxx +++ /dev/null @@ -1,79 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _SVTOOLS_INSDLG_HXX -#define _SVTOOLS_INSDLG_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include -#include - -#include -#include - -class SvObjectServer -{ -private: - SvGlobalName aClassName; - String aHumanName; - -public: - SvObjectServer( const SvGlobalName & rClassP, const String & rHumanP ) : - aClassName( rClassP ), - aHumanName( rHumanP ) {} - - const SvGlobalName & GetClassName() const { return aClassName; } - const String & GetHumanName() const { return aHumanName; } -}; - -typedef ::std::vector< SvObjectServer > SvObjectServerList_impl; - -class SVT_DLLPUBLIC SvObjectServerList -{ -private: - SvObjectServerList_impl aObjectServerList; - -public: - const SvObjectServer * Get( const String & rHumanName ) const; - const SvObjectServer * Get( const SvGlobalName & ) const; - void Remove( const SvGlobalName & ); - void FillInsertObjects(); - size_t Count() const - { - return aObjectServerList.size(); - } - - const SvObjectServer operator[]( size_t n ) const - { - return aObjectServerList[ n ]; - } -}; - -class SVT_DLLPUBLIC SvPasteObjectHelper -{ -public: - static String GetSotFormatUIName( SotFormatStringId nId ); - static sal_Bool GetEmbeddedName(const TransferableDataHelper& rData, String& _rName, String& _rSource, SotFormatStringId& _nFormat); -}; - -#endif // _SVTOOLS_INSDLG_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/itemdel.hxx b/svtools/inc/svtools/itemdel.hxx deleted file mode 100644 index acb2637e04cb..000000000000 --- a/svtools/inc/svtools/itemdel.hxx +++ /dev/null @@ -1,30 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _SVTOOLS_ITEMDEL_HXX -#define _SVTOOLS_ITEMDEL_HXX - -#include "svtools/svtdllapi.h" - -class SfxPoolItem; - -SVT_DLLPUBLIC SfxPoolItem* DeleteItemOnIdle( SfxPoolItem* pItem ); - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/ivctrl.hxx b/svtools/inc/svtools/ivctrl.hxx deleted file mode 100644 index 3c5aafc57848..000000000000 --- a/svtools/inc/svtools/ivctrl.hxx +++ /dev/null @@ -1,353 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _ICNVW_HXX -#define _ICNVW_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include -#include -#include - -class ResId; -class Point; -class SvxIconChoiceCtrl_Impl; -class Image; - -#define ICNVIEW_FLAG_POS_LOCKED 0x0001 -#define ICNVIEW_FLAG_SELECTED 0x0002 -#define ICNVIEW_FLAG_FOCUSED 0x0004 -#define ICNVIEW_FLAG_IN_USE 0x0008 -#define ICNVIEW_FLAG_CURSORED 0x0010 // Rahmen um Image -#define ICNVIEW_FLAG_POS_MOVED 0x0020 // per D&D verschoben aber nicht gelockt -#define ICNVIEW_FLAG_DROP_TARGET 0x0040 // im QueryDrop gesetzt -#define ICNVIEW_FLAG_BLOCK_EMPHASIS 0x0080 // Emphasis nicht painten -#define ICNVIEW_FLAG_USER1 0x0100 -#define ICNVIEW_FLAG_USER2 0x0200 -#define ICNVIEW_FLAG_PRED_SET 0x0400 // Predecessor wurde umgesetzt - -enum SvxIconChoiceCtrlTextMode -{ - IcnShowTextFull = 1, // BoundRect nach unten aufplustern - IcnShowTextShort, // Abkuerzung mit "..." - IcnShowTextSmart, // Text komplett anzeigen, wenn moeglich (n.i.) - IcnShowTextDontKnow // Einstellung der View -}; - -enum SvxIconChoiceCtrlPositionMode -{ - IcnViewPositionModeFree = 0, // freies pixelgenaues Positionieren - IcnViewPositionModeAutoArrange = 1, // automatisches Ausrichten - IcnViewPositionModeAutoAdjust = 2, // automatisches Anordnen - IcnViewPositionModeLast = IcnViewPositionModeAutoAdjust -}; - -class SvxIconChoiceCtrlEntry -{ - Image aImage; - - OUString aText; - String aQuickHelpText; - void* pUserData; - - friend class SvxIconChoiceCtrl_Impl; - friend class IcnCursor_Impl; - friend class EntryList_Impl; - friend class IcnGridMap_Impl; - - Rectangle aRect; // Bounding-Rect des Entries - Rectangle aGridRect; // nur gesetzt im Grid-Modus - sal_uLong nPos; - - // die Eintragsposition in der Eintragsliste entspricht der beim Insert vorgegebenen - // [Sortier-]Reihenfolge (->Reihenfolge der Anker in der Ankerliste!). Im AutoArrange-Modus - // kann die sichtbare Reihenfolge aber anders sein. Die Eintraege werden deshalb dann - // verkettet - SvxIconChoiceCtrlEntry* pblink; // backward (linker Nachbar) - SvxIconChoiceCtrlEntry* pflink; // forward (rechter Nachbar) - - SvxIconChoiceCtrlTextMode eTextMode; - sal_uInt16 nX,nY; // fuer Tastatursteuerung - sal_uInt16 nFlags; - - void ClearFlags( sal_uInt16 nMask ) { nFlags &= (~nMask); } - void SetFlags( sal_uInt16 nMask ) { nFlags |= nMask; } - void AssignFlags( sal_uInt16 _nFlags ) { nFlags = _nFlags; } - - // setzt den linken Nachbarn (A <-> B ==> A <-> this <-> B) - void SetBacklink( SvxIconChoiceCtrlEntry* pA ) - { - pA->pflink->pblink = this; // X <- B - this->pflink = pA->pflink; // X -> B - this->pblink = pA; // A <- X - pA->pflink = this; // A -> X - } - // loest eine Verbindung (A <-> this <-> B ==> A <-> B) - void Unlink() - { - this->pblink->pflink = this->pflink; - this->pflink->pblink = this->pblink; - this->pflink = 0; - this->pblink = 0; - } - -public: - SvxIconChoiceCtrlEntry( const String& rText, const Image& rImage, sal_uInt16 nFlags = 0 ); - ~SvxIconChoiceCtrlEntry () {} - - void SetImage ( const Image& rImage ) { aImage = rImage; } - Image GetImage () const { return aImage; } - void SetText ( const OUString& rText ) { aText = rText; } - OUString GetText () const { return aText; } - String SVT_DLLPUBLIC GetDisplayText() const; - void SetQuickHelpText( const String& rText ) { aQuickHelpText = rText; } - String GetQuickHelpText() const { return aQuickHelpText; } - void SetUserData ( void* _pUserData ) { pUserData = _pUserData; } - void* GetUserData () { return pUserData; } - - const Rectangle & GetBoundRect() const { return aRect; } - - void SetFocus ( sal_Bool bSet ) - { nFlags = ( bSet ? nFlags | ICNVIEW_FLAG_FOCUSED : nFlags & ~ICNVIEW_FLAG_FOCUSED ); } - - SvxIconChoiceCtrlTextMode GetTextMode() const { return eTextMode; } - sal_uInt16 GetFlags() const { return nFlags; } - sal_Bool IsSelected() const { return (sal_Bool)((nFlags & ICNVIEW_FLAG_SELECTED) !=0); } - sal_Bool IsFocused() const { return (sal_Bool)((nFlags & ICNVIEW_FLAG_FOCUSED) !=0); } - sal_Bool IsInUse() const { return (sal_Bool)((nFlags & ICNVIEW_FLAG_IN_USE) !=0); } - sal_Bool IsCursored() const { return (sal_Bool)((nFlags & ICNVIEW_FLAG_CURSORED) !=0); } - sal_Bool IsDropTarget() const { return (sal_Bool)((nFlags & ICNVIEW_FLAG_DROP_TARGET) !=0); } - sal_Bool IsBlockingEmphasis() const { return (sal_Bool)((nFlags & ICNVIEW_FLAG_BLOCK_EMPHASIS) !=0); } - sal_Bool IsPosLocked() const { return (sal_Bool)((nFlags & ICNVIEW_FLAG_POS_LOCKED) !=0); } - - // Nur bei AutoArrange gesetzt. Den Kopf der Liste gibts per SvxIconChoiceCtrl::GetPredecessorHead - SvxIconChoiceCtrlEntry* GetSuccessor() const { return pflink; } - SvxIconChoiceCtrlEntry* GetPredecessor() const { return pblink; } - -// sal_Unicode GetMnemonicChar() const; -}; - -enum SvxIconChoiceCtrlColumnAlign -{ - IcnViewAlignLeft = 1, - IcnViewAlignRight, - IcnViewAlignCenter -}; - -class SvxIconChoiceCtrlColumnInfo -{ - OUString aColText; - Image aColImage; - long nWidth; - SvxIconChoiceCtrlColumnAlign eAlignment; - sal_uInt16 nSubItem; - -public: - SvxIconChoiceCtrlColumnInfo( sal_uInt16 nSub, long nWd, - SvxIconChoiceCtrlColumnAlign eAlign ) : - nWidth( nWd ), eAlignment( eAlign ), nSubItem( nSub ) {} - SvxIconChoiceCtrlColumnInfo( const SvxIconChoiceCtrlColumnInfo& ); - - void SetText( const OUString& rText ) { aColText = rText; } - void SetImage( const Image& rImg ) { aColImage = rImg; } - void SetWidth( long nWd ) { nWidth = nWd; } - void SetAlignment( SvxIconChoiceCtrlColumnAlign eAlign ) { eAlignment = eAlign; } - void SetSubItem( sal_uInt16 nSub) { nSubItem = nSub; } - - const OUString& GetText() const { return aColText; } - const Image& GetImage() const { return aColImage; } - long GetWidth() const { return nWidth; } - SvxIconChoiceCtrlColumnAlign GetAlignment() const { return eAlignment; } - sal_uInt16 GetSubItem() const { return nSubItem; } -}; - -//################################################################################################################################### -/* - Window-Bits: - WB_ICON // Text unter dem Icon - WB_SMALL_ICON // Text rechts neben Icon, beliebige Positionierung - WB_DETAILS // Text rechts neben Icon, eingeschraenkte Posit. - WB_BORDER - WB_NOHIDESELECTION // Selektion inaktiv zeichnen, wenn kein Fokus - WB_NOHSCROLL - WB_NOVSCROLL - WB_NOSELECTION - WB_SMART_ARRANGE // im Arrange die Vis-Area beibehalten - WB_ALIGN_TOP // Anordnung zeilenweise von links nach rechts - WB_ALIGN_LEFT // Anordnung spaltenweise von oben nach unten - WB_NODRAGSELECTION // Keine Selektion per Tracking-Rect - WB_NOCOLUMNHEADER // keine Headerbar in Detailsview (Headerbar not implemented) - WB_NOPOINTERFOCUS // Kein GrabFocus im MouseButtonDown - WB_HIGHLIGHTFRAME // der unter der Maus befindliche Eintrag wird hervorgehoben - WB_NOASYNCSELECTHDL // Selektionshandler synchron aufrufen, d.h. Events nicht sammeln -*/ - -#define WB_ICON WB_RECTSTYLE -#define WB_SMALLICON WB_SMALLSTYLE -#define WB_DETAILS WB_VCENTER -#define WB_NOHSCROLL WB_SPIN -#define WB_NOVSCROLL WB_DRAG -#define WB_NOSELECTION WB_REPEAT -#define WB_NODRAGSELECTION WB_PATHELLIPSIS -#define WB_SMART_ARRANGE WB_PASSWORD -#define WB_ALIGN_TOP WB_TOP -#define WB_ALIGN_LEFT WB_LEFT -#define WB_NOCOLUMNHEADER WB_CENTER -#define WB_HIGHLIGHTFRAME WB_INFO -#define WB_NOASYNCSELECTHDL WB_NOLABEL - -class MnemonicGenerator; - -class SVT_DLLPUBLIC SvtIconChoiceCtrl : public Control -{ - friend class SvxIconChoiceCtrl_Impl; - - Link _aClickIconHdl; - Link _aDocRectChangedHdl; - Link _aVisRectChangedHdl; - KeyEvent* _pCurKeyEvent; - SvxIconChoiceCtrl_Impl* _pImp; - sal_Bool _bAutoFontColor; - -protected: - - virtual void KeyInput( const KeyEvent& rKEvt ); - virtual sal_Bool EditedEntry( SvxIconChoiceCtrlEntry*, const OUString& rNewText, sal_Bool bCancelled ); - virtual void DocumentRectChanged(); - virtual void VisibleRectChanged(); - virtual sal_Bool EditingEntry( SvxIconChoiceCtrlEntry* pEntry ); - virtual void Command( const CommandEvent& rCEvt ); - virtual void Paint( const Rectangle& rRect ); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); - virtual void MouseButtonUp( const MouseEvent& rMEvt ); - virtual void MouseMove( const MouseEvent& rMEvt ); - virtual void Resize(); - virtual void GetFocus(); - virtual void LoseFocus(); - virtual void ClickIcon(); - virtual void StateChanged( StateChangedType nType ); - virtual void DataChanged( const DataChangedEvent& rDCEvt ); - virtual void RequestHelp( const HelpEvent& rHEvt ); - virtual void DrawEntryImage( - SvxIconChoiceCtrlEntry* pEntry, - const Point& rPos, - OutputDevice& rDev ); - - virtual String GetEntryText( - SvxIconChoiceCtrlEntry* pEntry, - sal_Bool bInplaceEdit ); - - virtual void FillLayoutData() const; - - void CallImplEventListeners(sal_uLong nEvent, void* pData); - -public: - - SvtIconChoiceCtrl( Window* pParent, WinBits nWinStyle = WB_ICON | WB_BORDER ); - virtual ~SvtIconChoiceCtrl(); - - void SetStyle( WinBits nWinStyle ); - WinBits GetStyle() const; - - sal_Bool SetChoiceWithCursor ( sal_Bool bDo = sal_True ); - - void SetFont( const Font& rFont ); - void SetPointFont( const Font& rFont ); - - void SetClickHdl( const Link& rLink ) { _aClickIconHdl = rLink; } - const Link& GetClickHdl() const { return _aClickIconHdl; } - - using OutputDevice::SetBackground; - void SetBackground( const Wallpaper& rWallpaper ); - - void ArrangeIcons(); - - - SvxIconChoiceCtrlEntry* InsertEntry( const String& rText, - const Image& rImage, - sal_uLong nPos = LIST_APPEND, - const Point* pPos = 0, - sal_uInt16 nFlags = 0 - ); - - /** creates automatic mnemonics for all icon texts in the control - */ - void CreateAutoMnemonics( void ); - - /** creates automatic mnemonics for all icon texts in the control - - @param _rUsedMnemonics - a MnemonicGenerator at which some other mnemonics are already registered. - This can be used if the control needs to share the "mnemonic space" with other elements, - such as a menu bar. - */ - void CreateAutoMnemonics( MnemonicGenerator& _rUsedMnemonics ); - - sal_Bool DoKeyInput( const KeyEvent& rKEvt ); - - sal_Bool IsEntryEditing() const; - - sal_uLong GetEntryCount() const; - SvxIconChoiceCtrlEntry* GetEntry( sal_uLong nPos ) const; - sal_uLong GetEntryListPos( SvxIconChoiceCtrlEntry* pEntry ) const; - using Window::SetCursor; - void SetCursor( SvxIconChoiceCtrlEntry* pEntry ); - SvxIconChoiceCtrlEntry* GetCursor() const; - - // Neu-Berechnung gecachter View-Daten und Invalidierung im Fenster - void InvalidateEntry( SvxIconChoiceCtrlEntry* pEntry ); - - // bHit==sal_False: Eintrag gilt als getroffen, wenn Position im BoundRect liegt - // ==sal_True : Bitmap oder Text muss getroffen sein - SvxIconChoiceCtrlEntry* GetEntry( const Point& rPosPixel, sal_Bool bHit = sal_False ) const; - - // in dem sal_uLong wird die Position in der Liste des gefunden Eintrags zurueckgegeben - SvxIconChoiceCtrlEntry* GetSelectedEntry( sal_uLong& rPos ) const; - - void SetEntryTextMode( SvxIconChoiceCtrlTextMode eMode, SvxIconChoiceCtrlEntry* pEntry = 0 ); - - virtual sal_Bool HasBackground() const; - virtual sal_Bool HasFont() const; - virtual sal_Bool HasFontTextColor() const; - virtual sal_Bool HasFontFillColor() const; - - void SetFontColorToBackground ( sal_Bool bDo = sal_True ) { _bAutoFontColor = bDo; } - sal_Bool AutoFontColor () { return _bAutoFontColor; } - - Point GetPixelPos( const Point& rPosLogic ) const; - void SetSelectionMode( SelectionMode eMode ); - - Rectangle GetBoundingBox( SvxIconChoiceCtrlEntry* pEntry ) const; - Rectangle GetEntryCharacterBounds( const sal_Int32 _nEntryPos, const sal_Int32 _nCharacterIndex ) const; - - void SetNoSelection(); - - // ACCESSIBILITY ========================================================== - - /** Creates and returns the accessible object of the Box. */ - virtual ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessible > CreateAccessible(); -}; - -#endif // _ICNVW_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/javacontext.hxx b/svtools/inc/svtools/javacontext.hxx deleted file mode 100644 index 2c81cbf43d42..000000000000 --- a/svtools/inc/svtools/javacontext.hxx +++ /dev/null @@ -1,82 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_JAVACONTEXT_HXX_ -#define _SVTOOLS_JAVACONTEXT_HXX_ - -#include "svtools/svtdllapi.h" -#include - -#include -#include -#include - - -namespace svt -{ -// We cannot derive from cppu::WeakImplHelper because we would export the inline -//generated class. This conflicts with other libraries if they use the same inline -//class. - class SVT_DLLPUBLIC JavaContext : - public com::sun::star::uno::XCurrentContext - { - - public: - /** The parameter bShowErrorsOnce controls whether a message box is - only displayed once for a reocurring Java error. That is only - the first time JavaInteractionHandler.handle is called with a - particular Request then the message box is shown. Afterwards - nothing happens. - */ - JavaContext( const com::sun::star::uno::Reference< - com::sun::star::uno::XCurrentContext> & ctx, - bool bReportErrorOnce = true ); - virtual ~JavaContext(); - - // XInterface - 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 (); - - // XCurrentContext - virtual com::sun::star::uno::Any SAL_CALL getValueByName( const OUString& Name ) - throw (com::sun::star::uno::RuntimeException); - - private: - SVT_DLLPRIVATE JavaContext(); //not implemented - SVT_DLLPRIVATE JavaContext(JavaContext&); //not implemented - SVT_DLLPRIVATE JavaContext& operator = (JavaContext&); //not implemented - - oslInterlockedCount m_aRefCount; - - com::sun::star::uno::Reference< - com::sun::star::uno::XCurrentContext > m_xNextContext; - com::sun::star::uno::Reference< - com::sun::star::task::XInteractionHandler> m_xHandler; - bool m_bShowErrorsOnce; - }; -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/javainteractionhandler.hxx b/svtools/inc/svtools/javainteractionhandler.hxx deleted file mode 100644 index fed409f41ec5..000000000000 --- a/svtools/inc/svtools/javainteractionhandler.hxx +++ /dev/null @@ -1,75 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_JAVAINTERACTION_HXX_ -#define _SVTOOLS_JAVAINTERACTION_HXX_ - -#include "svtools/svtdllapi.h" -#include -#include - -#include -#include - -#define JAVA_INTERACTION_HANDLER_NAME "java-vm.interaction-handler" - -namespace svt -{ -// We cannot derive from cppu::WeakImplHelper because we would export the inline -//generated class. This conflicts with other libraries if they use the same inline -//class. - -class SVT_DLLPUBLIC JavaInteractionHandler: - public com::sun::star::task::XInteractionHandler -{ -public: - JavaInteractionHandler(bool bReportErrorOnce = true); - - // XInterface - 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(); - - // XCurrentContext - virtual void SAL_CALL handle( const com::sun::star::uno::Reference< - com::sun::star::task::XInteractionRequest >& Request ) - throw (com::sun::star::uno::RuntimeException); - -private: - oslInterlockedCount m_aRefCount; - SVT_DLLPRIVATE JavaInteractionHandler(JavaInteractionHandler const&); //not implemented - SVT_DLLPRIVATE JavaInteractionHandler& operator = (JavaInteractionHandler const &); //not implemented - SVT_DLLPRIVATE virtual ~JavaInteractionHandler(); - bool m_bShowErrorsOnce; - bool m_bJavaDisabled_Handled; - bool m_bInvalidSettings_Handled; - bool m_bJavaNotFound_Handled; - bool m_bVMCreationFailure_Handled; - bool m_bRestartRequired_Handled; - sal_uInt16 m_nResult_JavaDisabled; -}; -} - -#endif // _DESKTOP_JAVAINTERACTION_HXX_ - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/langhelp.hxx b/svtools/inc/svtools/langhelp.hxx deleted file mode 100644 index 1231e6b0e380..000000000000 --- a/svtools/inc/svtools/langhelp.hxx +++ /dev/null @@ -1,30 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - */ - -#ifndef _SVTOOLS_LANGHELP_HXX_ -#define _SVTOOLS_LANGHELP_HXX_ - -#include - -#include - -/** Localize a URI to one of the foundation's webservices - - @param io_rURI - URI to localize - depending on your UI locale, a country local - part is appended to the URI (like "en", or "fr", or "es") - */ -SVT_DLLPUBLIC void localizeWebserviceURI( OUString& io_rURI ); - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/langtab.hxx b/svtools/inc/svtools/langtab.hxx deleted file mode 100644 index 1ef5875d2948..000000000000 --- a/svtools/inc/svtools/langtab.hxx +++ /dev/null @@ -1,57 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _SVTOOLS_LANGTAB_HXX_ -#define _SVTOOLS_LANGTAB_HXX_ - - -#include -#include -#include - -//======================================================================== -// class SvtLanguageTable -//======================================================================== - -class SVT_DLLPUBLIC SvtLanguageTable : public ResStringArray -{ -public: - SvtLanguageTable(); - ~SvtLanguageTable(); - - /** - @param bUserInterfaceSelection - If TRUE, don't replace an UI-only locale. Only use for - Tools->Options->LanguageSettings->UserInterface listbox. - If FALSE, do replace. - */ - const OUString GetString( const LanguageType eType, bool bUserInterfaceSelection = false ) const; - LanguageType GetType( const String& rStr ) const; - - sal_uInt32 GetEntryCount() const; - LanguageType GetTypeAtIndex( sal_uInt32 nIndex ) const; - static String GetLanguageString( const LanguageType eType ); -}; - -// Add LRE or RLE embedding characters to the string based on the -// String content (see #i78466#, #i32179#) -SVT_DLLPUBLIC const String ApplyLreOrRleEmbedding( const String &rText ); - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/localresaccess.hxx b/svtools/inc/svtools/localresaccess.hxx deleted file mode 100644 index 8e80f9462cf2..000000000000 --- a/svtools/inc/svtools/localresaccess.hxx +++ /dev/null @@ -1,75 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _SVTOOLS_LOCALRESACCESS_HXX_ -#define _SVTOOLS_LOCALRESACCESS_HXX_ - -#include -#include -#include - -//......................................................................... -namespace svt -{ -//......................................................................... - - //========================================================================= - //= OLocalResourceAccess - //========================================================================= - /** helper class for acessing local resources - */ - class OLocalResourceAccess : public Resource - { - protected: - ResMgr* m_pManager; - - public: - OLocalResourceAccess( const ResId& _rId ) - :Resource( _rId.SetAutoRelease( sal_False ) ) - ,m_pManager( _rId.GetResMgr() ) - { - } - - OLocalResourceAccess(const ResId& _rId, RESOURCE_TYPE _rType) - :Resource(_rId.SetRT(_rType).SetAutoRelease(sal_False)) - ,m_pManager(_rId.GetResMgr()) - { - OSL_ENSURE( m_pManager != NULL, "OLocalResourceAccess::OLocalResourceAccess: invalid resource manager!" ); - } - - ~OLocalResourceAccess() - { - if ( m_pManager ) - m_pManager->Increment( m_pManager->GetRemainSize() ); - FreeResource(); - } - - inline sal_Bool IsAvailableRes( const ResId& _rId ) const - { - return Resource::IsAvailableRes( _rId ); - } - }; - -//......................................................................... -} // namespace svt -//......................................................................... - -#endif // _SVTOOLS_LOCALRESACCESS_HXX_ - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/menuoptions.hxx b/svtools/inc/svtools/menuoptions.hxx deleted file mode 100644 index 527319c52380..000000000000 --- a/svtools/inc/svtools/menuoptions.hxx +++ /dev/null @@ -1,128 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef INCLUDED_SVTOOLS_MENUOPTIONS_HXX -#define INCLUDED_SVTOOLS_MENUOPTIONS_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include - -/*-************************************************************************************************************//** - @short forward declaration to our private date container implementation - @descr We use these class as internal member to support small memory requirements. - You can create the container if it is neccessary. The class which use these mechanism - is faster and smaller then a complete implementation! -*//*-*************************************************************************************************************/ - -class Link; -class SvtMenuOptions_Impl; - -/*-************************************************************************************************************//** - @short collect information about menu features - @descr - - - @implements - - @base - - - @devstatus ready to use -*//*-*************************************************************************************************************/ - -class SVT_DLLPUBLIC SAL_WARN_UNUSED SvtMenuOptions: public utl::detail::Options -{ - public: - - /*-****************************************************************************************************//** - @short standard constructor and destructor - @descr This will initialize an instance with default values. - We implement these class with a refcount mechanism! Every instance of this class increase it - at create and decrease it at delete time - but all instances use the same data container! - He is implemented as a static member ... - - @seealso member m_nRefCount - @seealso member m_pDataContainer - - @param - - @return - - - @onerror - - *//*-*****************************************************************************************************/ - - SvtMenuOptions(); - virtual ~SvtMenuOptions(); - - void AddListenerLink( const Link& rLink ); - void RemoveListenerLink( const Link& rLink ); - - /*-****************************************************************************************************//** - @short interface methods to get and set value of config key "org.openoffice.Office.Common/View/Menu/..." - @descr These options describe internal states to enable/disable features of installed office. - - IsEntryHidingEnabled() - SetEntryHidingState() => Activate this field for viewing all deactivated menu entries. - Menu commands that are normally not necessary are hidden by default. - Default=false - - IsFollowMouseEnabled() - SetFollowMouseState() => Automatic selection while moving the mouse on a menu. - Default=true - - @seealso configuration package "org.openoffice.Office.Common/View/Menu" - *//*-*****************************************************************************************************/ - - sal_Bool IsEntryHidingEnabled() const; - sal_Int16 GetMenuIconsState() const; - void SetMenuIconsState( sal_Int16 bState ); - - private: - - /*-****************************************************************************************************//** - @short return a reference to a static mutex - @descr These class is partially threadsafe (for de-/initialization only). - All access methods are'nt safe! - We create a static mutex only for one ime and use at different times. - - @seealso - - - @param - - @return A reference to a static mutex member. - - @onerror - - *//*-*****************************************************************************************************/ - - SVT_DLLPRIVATE static ::osl::Mutex& GetOwnStaticMutex(); - - private: - - /*Attention - - Don't initialize these static member in these header! - a) Double dfined symbols will be detected ... - b) and unresolved externals exist at linking time. - Do it in your source only. - */ - - static SvtMenuOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements! - static sal_Int32 m_nRefCount ; /// internal ref count mechanism - -}; // class SvtMenuOptions - -#endif // #ifndef INCLUDED_SVTOOLS_MENUOPTIONS_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/miscopt.hxx b/svtools/inc/svtools/miscopt.hxx deleted file mode 100644 index 85c5b604e689..000000000000 --- a/svtools/inc/svtools/miscopt.hxx +++ /dev/null @@ -1,150 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef INCLUDED_SVTOOLS_MISCOPT_HXX -#define INCLUDED_SVTOOLS_MISCOPT_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include -#include - -/*-************************************************************************************************************//** - @short forward declaration to our private date container implementation - @descr We use these class as internal member to support small memory requirements. - You can create the container if it is neccessary. The class which use these mechanism - is faster and smaller then a complete implementation! -*//*-*************************************************************************************************************/ - -class SvtMiscOptions_Impl; -class Link; - -/*-************************************************************************************************************//** - @short collect information about misc group - @descr - - - @implements - - @base - - - @ATTENTION This class is partially threadsafe. - - @devstatus ready to use -*//*-*************************************************************************************************************/ - -class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options -{ - public: - /*-****************************************************************************************************//** - @short standard constructor and destructor - @descr This will initialize an instance with default values. - We implement these class with a refcount mechanism! Every instance of this class increase it - at create and decrease it at delete time - but all instances use the same data container! - He is implemented as a static member ... - - @seealso member m_nRefCount - @seealso member m_pDataContainer - - @param - - @return - - - @onerror - - *//*-*****************************************************************************************************/ - - SvtMiscOptions(); - virtual ~SvtMiscOptions(); - - void AddListenerLink( const Link& rLink ); - void RemoveListenerLink( const Link& rLink ); - - sal_Bool UseSystemFileDialog() const; - void SetUseSystemFileDialog( sal_Bool bSet ); - sal_Bool IsUseSystemFileDialogReadOnly() const; - - sal_Bool DisableUICustomization() const; - - sal_Bool IsPluginsEnabled() const; - - sal_Int16 GetSymbolsSize() const; - void SetSymbolsSize( sal_Int16 eSet ); - sal_Int16 GetCurrentSymbolsSize() const; - bool AreCurrentSymbolsLarge() const; - - sal_Int16 GetSymbolsStyle() const; - void SetSymbolsStyle( sal_Int16 eSet ); - sal_Int16 GetCurrentSymbolsStyle() const; - - sal_Int16 GetToolboxStyle() const; - void SetToolboxStyle( sal_Int16 nStyle ); - - sal_Bool IsModifyByPrinting() const; - void SetModifyByPrinting(sal_Bool bSet ); - - sal_Bool UseSystemPrintDialog() const; - void SetUseSystemPrintDialog( sal_Bool bSet ); - - sal_Bool ShowLinkWarningDialog() const; - void SetShowLinkWarningDialog( sal_Bool bSet ); - sal_Bool IsShowLinkWarningDialogReadOnly() const; - - void SetSaveAlwaysAllowed( sal_Bool bSet ); - sal_Bool IsSaveAlwaysAllowed() const; - - void SetExperimentalMode( sal_Bool bSet ); - sal_Bool IsExperimentalMode() const; - - void SetMacroRecorderMode( sal_Bool bSet ); - sal_Bool IsMacroRecorderMode() const; - - private: - - /*-****************************************************************************************************//** - @short return a reference to a static mutex - @descr These class is partially threadsafe (for de-/initialization only). - All access methods are'nt safe! - We create a static mutex only for one ime and use at different times. - - @seealso - - - @param - - @return A reference to a static mutex member. - - @onerror - - *//*-*****************************************************************************************************/ - - SVT_DLLPRIVATE static ::osl::Mutex& GetInitMutex(); - - private: - - /*Attention - - Don't initialize these static member in these header! - a) Double dfined symbols will be detected ... - b) and unresolved externals exist at linking time. - Do it in your source only. - */ - - static SvtMiscOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements! - static sal_Int32 m_nRefCount ; /// internal ref count mechanism - -}; // class SvtMiscOptions - -#endif // #ifndef INCLUDED_SVTOOLS_MISCOPT_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/optionsdrawinglayer.hxx b/svtools/inc/svtools/optionsdrawinglayer.hxx deleted file mode 100644 index f2d493be21de..000000000000 --- a/svtools/inc/svtools/optionsdrawinglayer.hxx +++ /dev/null @@ -1,198 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_SVTOOLS_OPTIONSDRAWINGLAYER_HXX -#define INCLUDED_SVTOOLS_OPTIONSDRAWINGLAYER_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include -#include - -//_________________________________________________________________________________________________________________ -// forward declarations -//_________________________________________________________________________________________________________________ - -/*-************************************************************************************************************//** - @short forward declaration to our private date container implementation - @descr We use these class as internal member to support small memory requirements. - You can create the container if it is neccessary. The class which use these mechanism - is faster and smaller then a complete implementation! -*//*-*************************************************************************************************************/ - -class SvtOptionsDrawinglayer_Impl; - -/*-************************************************************************************************************//** - @short collect information about startup features - @descr - - - @implements - - @base - - - @devstatus ready to use -*//*-*************************************************************************************************************/ - -class SVT_DLLPUBLIC SvtOptionsDrawinglayer -{ - //------------------------------------------------------------------------------------------------------------- - // public methods - //------------------------------------------------------------------------------------------------------------- - - public: - - //--------------------------------------------------------------------------------------------------------- - // constructor / destructor - //--------------------------------------------------------------------------------------------------------- - - /*-****************************************************************************************************//** - @short standard constructor and destructor - @descr This will initialize an instance with default values. - We implement these class with a refcount mechanism! Every instance of this class increase it - at create and decrease it at delete time - but all instances use the same data container! - He is implemented as a static member ... - - @seealso member m_nRefCount - @seealso member m_pDataContainer - - @param - - @return - - - @onerror - - *//*-*****************************************************************************************************/ - - SvtOptionsDrawinglayer(); - ~SvtOptionsDrawinglayer(); - - //--------------------------------------------------------------------------------------------------------- - // interface - //--------------------------------------------------------------------------------------------------------- - - /*-****************************************************************************************************//** - @short interface methods to get and set value of config key "org.openoffice.Office.Common/Drawinglayer/..." - @descr These options describe internal states to enable/disable features of installed office. - - IsOverlayBuffer() - SetOverlayBuffer() => Activate this field for letting Overlay use a buffer - - IsPaintBuffer() - SetPaintBuffer() => Activate this field for letting Paint use a prerender buffer - - GetStripeColorA() - SetStripeColorA() => Set first of two colors which overlay uses to draw stripes - - GetStripeColorB() - SetStripeColorB() => Set second of two colors which overlay uses to draw stripes - - GetStripeLength() - SetStripeLength() => Set length of a single stripe in pixels - - @seealso configuration package "org.openoffice.Office.Common/Drawinglayer" - *//*-*****************************************************************************************************/ - - sal_Bool IsOverlayBuffer() const; - sal_Bool IsPaintBuffer() const; - Color GetStripeColorA() const; - Color GetStripeColorB() const; - sal_uInt16 GetStripeLength() const; - - // #i73602# - sal_Bool IsOverlayBuffer_Calc() const; - sal_Bool IsOverlayBuffer_Writer() const; - sal_Bool IsOverlayBuffer_DrawImpress() const; - - // #i74769#, #i75172# - sal_Bool IsPaintBuffer_Calc() const; - sal_Bool IsPaintBuffer_Writer() const; - sal_Bool IsPaintBuffer_DrawImpress() const; - - // #i4219# - sal_uInt32 GetMaximumPaperWidth() const; - sal_uInt32 GetMaximumPaperHeight() const; - sal_uInt32 GetMaximumPaperLeftMargin() const; - sal_uInt32 GetMaximumPaperRightMargin() const; - sal_uInt32 GetMaximumPaperTopMargin() const; - sal_uInt32 GetMaximumPaperBottomMargin() const; - - // #i95644# helper to check if AA is allowed on this system. Currently, for WIN its disabled - // and OutDevSupport_TransparentRect is checked (this hits XRenderExtension, e.g. - // currently for SunRay as long as not supported there) - sal_Bool IsAAPossibleOnThisSystem() const; - - // primitives - sal_Bool IsAntiAliasing() const; - sal_Bool IsSnapHorVerLinesToDiscrete() const; - sal_Bool IsSolidDragCreate() const; - sal_Bool IsRenderDecoratedTextDirect() const; - sal_Bool IsRenderSimpleTextDirect() const; - sal_uInt32 GetQuadratic3DRenderLimit() const; - sal_uInt32 GetQuadraticFormControlRenderLimit() const; - - void SetAntiAliasing( sal_Bool bState ); - - // #i97672# selection settings - sal_Bool IsTransparentSelection() const; - sal_uInt16 GetTransparentSelectionPercent() const; - sal_uInt16 GetSelectionMaximumLuminancePercent() const; - - void SetTransparentSelection( sal_Bool bState ); - void SetTransparentSelectionPercent( sal_uInt16 nPercent ); - - //------------------------------------------------------------------------------------------------------------- - // private methods - //------------------------------------------------------------------------------------------------------------- - - private: - - /*-****************************************************************************************************//** - @short return a reference to a static mutex - @descr These class use his own static mutex to be threadsafe. - We create a static mutex only for one ime and use at different times. - - @seealso - - - @param - - @return A reference to a static mutex member. - - @onerror - - *//*-*****************************************************************************************************/ - SVT_DLLPRIVATE static ::osl::Mutex& GetOwnStaticMutex(); - - //------------------------------------------------------------------------------------------------------------- - // private member - //------------------------------------------------------------------------------------------------------------- - - private: - - /*Attention - - Don't initialize these static member in these header! - a) Double dfined symbols will be detected ... - b) and unresolved externals exist at linking time. - Do it in your source only. - */ - - static SvtOptionsDrawinglayer_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements! - static sal_Int32 m_nRefCount ; /// internal ref count mechanism - -}; // class SvtOptionsDrawinglayer - -#endif // #ifndef INCLUDED_SVTOOLS_OPTIONSDRAWINGLAYER_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/inc/svtools/parhtml.hxx b/svtools/inc/svtools/parhtml.hxx deleted file mode 100644 index 9011dad9a266..000000000000 --- a/svtools/inc/svtools/parhtml.hxx +++ /dev/null @@ -1,289 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _PARHTML_HXX -#define _PARHTML_HXX - -#include "svtools/svtdllapi.h" -#include -#include -#include - -#include - -namespace com { namespace sun { namespace star { - namespace document { - class XDocumentProperties; - } -} } } - -class Color; -class SvNumberFormatter; -class SvKeyValueIterator; - -#define HTMLFONTSZ1_DFLT 7 -#define HTMLFONTSZ2_DFLT 10 -#define HTMLFONTSZ3_DFLT 12 -#define HTMLFONTSZ4_DFLT 14 -#define HTMLFONTSZ5_DFLT 18 -#define HTMLFONTSZ6_DFLT 24 -#define HTMLFONTSZ7_DFLT 36 - -enum HTMLTableFrame { HTML_TF_VOID, HTML_TF_ABOVE, HTML_TF_BELOW, - HTML_TF_HSIDES, HTML_TF_LHS, HTML_TF_RHS, HTML_TF_VSIDES, HTML_TF_BOX }; - -enum HTMLTableRules { HTML_TR_NONE, HTML_TR_GROUPS, HTML_TR_ROWS, - HTML_TR_COLS, HTML_TR_ALL }; - -enum HTMLInputType -{ - HTML_IT_TEXT = 0x01, - HTML_IT_PASSWORD = 0x02, - HTML_IT_CHECKBOX = 0x03, - HTML_IT_RADIO = 0x04, - HTML_IT_RANGE = 0x05, - HTML_IT_SCRIBBLE = 0x06, - HTML_IT_FILE = 0x07, - HTML_IT_HIDDEN = 0x08, - HTML_IT_SUBMIT = 0x09, - HTML_IT_IMAGE = 0x0a, - HTML_IT_RESET = 0x0b, - HTML_IT_BUTTON = 0x0c -}; - -enum HTMLScriptLanguage -{ - HTML_SL_STARBASIC, - HTML_SL_JAVASCRIPT, - HTML_SL_UNKNOWN -}; - -struct HTMLOptionEnum -{ - const sal_Char *pName; // Wert einer HTML-Option - sal_uInt16 nValue; // und der dazugehoerige Wert eines Enums -}; - -// Repraesentation einer HTML-Option (=Atrribut in einem Start-Tag) -// Die Werte der Optionen werden immer als String gespeichert. -// Die Methoden GetNumber, ... duerfen nur aufgerufen werden, wenn -// die Option auch numerisch, ... ist. - -class SVT_DLLPUBLIC HTMLOption -{ - String aValue; // der Wert der Option (immer als String) - String aToken; // der Name der Option als String - sal_uInt16 nToken; // und das entsprechende Token - -public: - - HTMLOption( sal_uInt16 nTyp, const String& rToken, const String& rValue ); - - // der Name der Option ... - sal_uInt16 GetToken() const { return nToken; } // ... als Enum - const String& GetTokenString() const { return aToken; } // ... als String - - // der Wert der Option ... - const String& GetString() const { return aValue; } // ... als String - - sal_uInt32 GetNumber() const; // ... als Zahl - sal_Int32 GetSNumber() const; // ... als Zahl - void GetNumbers( std::vector &rNumbers, // ... als Zahlen - bool bSpaceDelim=false ) const; - void GetColor( Color& ) const; // ... als Farbe - - // ... als Enum pOptEnums ist ein HTMLOptionEnum-Array - sal_uInt16 GetEnum( const HTMLOptionEnum *pOptEnums, - sal_uInt16 nDflt=0 ) const; - bool GetEnum( sal_uInt16 &rEnum, const HTMLOptionEnum *pOptEnums ) const; - - // ... und als ein par spezielle Enums - HTMLInputType GetInputType() const; // - HTMLTableFrame GetTableFrame() const; // - HTMLTableRules GetTableRules() const; //
- //SvxAdjust GetAdjust() const; // -}; - -typedef ::boost::ptr_vector HTMLOptions; - -class SVT_DLLPUBLIC HTMLParser : public SvParser -{ -private: - mutable HTMLOptions maOptions; // die Optionen des Start-Tags - - bool bNewDoc : 1; // neues Doc lesen ? - bool bIsInHeader : 1; // scanne Header-Bereich - bool bIsInBody : 1; // scanne Body-Bereich - bool bReadListing : 1; // Lese Listings - bool bReadXMP : 1; // Lese XMP - bool bReadPRE : 1; // Lese preformatted Text - bool bReadTextArea : 1; // Lese TEXTAREA - bool bReadScript : 1; // Lesen von oder gefunden - - bool bPre_IgnoreNewPara : 1; // Flags fuers lesen von PRE-Absaetzen - bool bReadNextChar : 1; // true: NextChar nochmals lesen (JavaScript!) - bool bReadComment : 1; // true: NextChar nochmals lesen (JavaScript!) - - sal_uInt32 nPre_LinePos; // Pos in der Line im PRE-Tag - - String aEndToken; - -protected: - String sSaveToken; // das gelesene Tag als String - - int ScanText( const sal_Unicode cBreak = 0U ); - - int _GetNextRawToken(); - - // scanne das naechste Token, - virtual int _GetNextToken(); - - virtual ~HTMLParser(); - - void FinishHeader( bool bBody ) { bIsInHeader = false; bIsInBody = bBody; } - -public: - HTMLParser( SvStream& rIn, bool bReadNewDoc = true ); - - virtual SvParserState CallParser(); // Aufruf des Parsers - - bool IsNewDoc() const { return bNewDoc; } - bool IsInHeader() const { return bIsInHeader; } - bool IsInBody() const { return bIsInBody; } - bool IsValidSyntax() const { return true; } - bool IsReadListing() const { return bReadListing; } - bool IsReadXMP() const { return bReadXMP; } - bool IsReadPRE() const { return bReadPRE; } - bool IsReadScript() const { return bReadScript; } - bool IsReadStyle() const { return bReadStyle; } - - void SetReadNextChar() { bReadNextChar = true; } - - // PRE-/LISTING oder XMP-Modus starten/beenden oder Tags entsprechend - // filtern - inline void StartPRE( bool bRestart=false ); - void FinishPRE() { bReadPRE = false; } - int FilterPRE( int nToken ); - - inline void StartListing( bool bRestart=false ); - void FinishListing() { bReadListing = false; } - int FilterListing( int nToken ); - - inline void StartXMP( bool bRestart=false ); - void FinishXMP() { bReadXMP = false; } - int FilterXMP( int nToken ); - - void FinishTextArea() { bReadTextArea = false; } - - // PRE-/LSITING- und XMP-Modus beenden - void FinishPREListingXMP() { bReadPRE = bReadListing = bReadXMP = false; } - - // Das aktuelle Token dem aktuellen Modus (PRE, XMP, ...) entsprechend - // Filtern und die Flags setzen. Wird von Continue aufgerufen, bevor - // NextToken gerufen wird. Wer eigene Schleifen implementiert bzw. - // selbst NextToken aufruft, sollte diese Methode vorher rufen. - int FilterToken( int nToken ); - - // Scannen eines Scripts beenden (sollte nur unmittelbar nach dem - // Lesen eines