summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-11-16 23:26:51 +0100
committerJan Holesovsky <kendy@suse.cz>2011-11-17 00:49:48 +0100
commitce8f0a7e7205e70e7ec5f1be0024e52903fdec7a (patch)
treed5be2d4a194f5a89a7451d6f2cbe00fe740b36eb /toolkit
parent38b42cee869c573dcdd9af2538a143edf9f18d33 (diff)
Removing the last remnants of layout - sorry to see it go :-(
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/Library_tk.mk8
-rw-r--r--toolkit/Module_toolkit.mk1
-rw-r--r--toolkit/Package_source.mk32
-rw-r--r--toolkit/doc/layout/README24
-rw-r--r--toolkit/doc/layout/TODO227
-rw-r--r--toolkit/doc/layout/apinotes.txt76
-rw-r--r--toolkit/doc/layout/metricfield.txt57
-rw-r--r--toolkit/doc/layout/notes.txt117
-rw-r--r--toolkit/doc/layout/oldnotes.txt224
-rw-r--r--toolkit/doc/layout/vcl.txt20
-rw-r--r--toolkit/source/awt/vclxbutton.cxx129
-rw-r--r--toolkit/source/awt/vclxbutton.hxx117
-rw-r--r--toolkit/source/awt/vclxdialog.cxx274
-rw-r--r--toolkit/source/awt/vclxdialog.hxx109
-rw-r--r--toolkit/source/awt/vclxfixedline.cxx127
-rw-r--r--toolkit/source/awt/vclxfixedline.hxx78
-rw-r--r--toolkit/source/awt/vclxplugin.cxx79
-rw-r--r--toolkit/source/awt/vclxplugin.hxx68
-rw-r--r--toolkit/source/awt/vclxscroller.cxx204
-rw-r--r--toolkit/source/awt/vclxscroller.hxx90
-rw-r--r--toolkit/source/awt/vclxsplitter.cxx249
-rw-r--r--toolkit/source/awt/vclxsplitter.hxx124
-rw-r--r--toolkit/source/awt/vclxtabcontrol.cxx505
-rw-r--r--toolkit/source/awt/vclxtabcontrol.hxx146
-rw-r--r--toolkit/source/awt/vclxtabpage.cxx147
-rw-r--r--toolkit/source/awt/vclxtabpage.hxx76
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx1
-rw-r--r--toolkit/source/helper/registerservices.cxx4
-rw-r--r--toolkit/uiconfig/layout/delzip1
-rw-r--r--toolkit/uiconfig/layout/message-box.xml41
-rw-r--r--toolkit/uiconfig/layout/tab-dialog.xml20
31 files changed, 0 insertions, 3375 deletions
diff --git a/toolkit/Library_tk.mk b/toolkit/Library_tk.mk
index 7164bc90a12a..9a80827b8392 100644
--- a/toolkit/Library_tk.mk
+++ b/toolkit/Library_tk.mk
@@ -66,24 +66,16 @@ $(eval $(call gb_Library_add_exception_objects,tk,\
toolkit/source/awt/stylesettings \
toolkit/source/awt/vclxaccessiblecomponent \
toolkit/source/awt/vclxbitmap \
- toolkit/source/awt/vclxbutton \
toolkit/source/awt/vclxcontainer \
toolkit/source/awt/vclxdevice \
- toolkit/source/awt/vclxdialog \
- toolkit/source/awt/vclxfixedline \
toolkit/source/awt/vclxfont \
toolkit/source/awt/vclxgraphics \
toolkit/source/awt/vclxmenu \
- toolkit/source/awt/vclxplugin \
toolkit/source/awt/vclxpointer \
toolkit/source/awt/vclxprinter \
toolkit/source/awt/vclxregion \
- toolkit/source/awt/vclxscroller \
toolkit/source/awt/vclxspinbutton \
- toolkit/source/awt/vclxsplitter \
toolkit/source/awt/vclxsystemdependentwindow \
- toolkit/source/awt/vclxtabcontrol \
- toolkit/source/awt/vclxtabpage \
toolkit/source/awt/vclxtabpagecontainer \
toolkit/source/awt/animatedimagespeer \
toolkit/source/awt/vclxtoolkit \
diff --git a/toolkit/Module_toolkit.mk b/toolkit/Module_toolkit.mk
index 1ea85f3fbf90..89b8c4215a05 100644
--- a/toolkit/Module_toolkit.mk
+++ b/toolkit/Module_toolkit.mk
@@ -32,7 +32,6 @@ $(eval $(call gb_Module_add_targets,toolkit,\
AllLangResTarget_tk \
Library_tk \
Package_inc \
- Package_source \
Package_util \
))
diff --git a/toolkit/Package_source.mk b/toolkit/Package_source.mk
deleted file mode 100644
index c5bcd970c5e7..000000000000
--- a/toolkit/Package_source.mk
+++ /dev/null
@@ -1,32 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2000, 2011 Oracle and/or its affiliates.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-$(eval $(call gb_Package_Package,toolkit_source,$(SRCDIR)/toolkit/source))
-$(eval $(call gb_Package_add_file,toolkit_source,inc/toolkit/awt/vclxdialog.hxx,awt/vclxdialog.hxx))
-
-# vim: set noet sw=4 ts=4:
diff --git a/toolkit/doc/layout/README b/toolkit/doc/layout/README
deleted file mode 100644
index d7ced3891273..000000000000
--- a/toolkit/doc/layout/README
+++ /dev/null
@@ -1,24 +0,0 @@
-Layout engine for OpenOffice.org - Work in Progress
-
-Simple dialogs have been ported now: zoom and wordcount.
-
-New code lives in "layoutdialogs" CWS or ooo-build trunk.
-
-* Checkout layoutdialogs cws.
-
-* Configure using --enable-layout.
-
-* [d]make all
-
-* [d]make install DESTDIR=$(pwd)/ooo-layout/
-
-Integration into OOo:
-
-* After instaling, run
-
- cd ooo-cvs/program
- ./soffice.bin
-
- Start a [Writer] document and choose View/Zoom or Extra/Word count.
-
-* Also See workben/layout/README. \ No newline at end of file
diff --git a/toolkit/doc/layout/TODO b/toolkit/doc/layout/TODO
deleted file mode 100644
index fdffa7fad5aa..000000000000
--- a/toolkit/doc/layout/TODO
+++ /dev/null
@@ -1,227 +0,0 @@
--*-outline-*-
-
-* CWS
-** Move everything & development into new layout-dialogs CWS
-
-** cleanups
-*** Add XRadioButton2 and layout::VCLXRadioButton with
- {get,set}RadioGroup. Remove import.cxx RadioGroups::RadioGroup,
- VCLXRadioButton::getFirstActionListener () and [actionListener
- juggling in] layout::RadioButton_impl::SetClickHdl() and
- EnableRadioCheck() layout::RadioButton_impl::Check.
-*** layout/import.hxx: what's this generator stuff?
-#if 0
-// generator
-class Widget
-*** root.hxx:
-/*
- TODO: (ricardo) I think we should cut on LayoutRoot, stripping out its widget
- proxy interface (just make it return the root widget).
-
-*** root.cxx:
-LayoutWidget::~LayoutWidget()
-{
- /* should we dispose of the references...? */
- // at least of its children... Or should root?
-*** root.cxx:
-LayoutRoot::~LayoutRoot()
-{
-// TODO: we want to delete the top level LayoutWidget...
-
-
-* portability
-** --enable-layout does not compile on Sun?
-[SunStudio12 on Linux works...]
-
-TODO: Try not including layout-pre.hxx twice, but use
-layout-pre-header.hxx and layout-pre-source.hxx (both include an
-un-multiple-inclusion-shielded layout-pre.hxx).
-
-"/export/home/fstrba/devel-cvs/ooo-build/build/ooh680-m1/layout/workben/zoom.cxx", line 412: Error: layout is not a member of layout.
-"/export/home/fstrba/devel-cvs/ooo-build/build/ooh680-m1/layout/workben/zoom.cxx", line 412: Error: Formal argument 1 of type layout::RadioButton* in call to SvxZoomDialog::UserHdl(layout::RadioButton*) is being passed RadioButton*.
-"/export/home/fstrba/devel-cvs/ooo-build/build/ooh680-m1/layout/workben/zoom.cxx", line 431: Error: layout is not a member of layout.
-"/export/home/fstrba/devel-cvs/ooo-build/build/ooh680-m1/layout/workben/zoom.cxx", line 431: Error: Formal argument 1 of type layout::MetricField* in call to SvxZoomDialog::SpinHdl(layout::MetricField*) is being passed MetricField*.
-"/export/home/fstrba/devel-cvs/ooo-build/build/ooh680-m1/layout/workben/zoom.cxx", line 441: Error: layout is not a member of layout.
-"/export/home/fstrba/devel-cvs/ooo-build/build/ooh680-m1/layout/workben/zoom.cxx", line 441: Error: Formal argument 1 of type layout::Button* in call to SvxZoomDialog::OKHdl(layout::Button*) is being passed Button*.
-6 Error(s) detected.
-
- #412
- ( ( layout :: layout :: RadioButton * ) pCaller ) ; } long SvxZoomDialog :: UserHdl ( layout :: RadioButton * pBtn )
- {
- fprintf ( ( & __iob [ 2 ] ) , "SvxZoomDialog::UserHdl\n" ) ;
- bModified |= 1 ;
- if ( pBtn == & aUserBtn )
- {
- aUserEdit . Enable ( ) ;
- aUserEdit . GrabFocus ( ) ;
- }
- else
- aUserEdit . Disable ( ) ;
- return 0 ;
- }
-
-** LayoutDialogs compilation errors on Windows
-in VCL headers there, need to include more headers to also get stuff like HWND defined.
-
-* code
-** features
-*** Symbols on MoreButton/AdvancedButton?
-
-*** support more widgets (as necessary)
-**** see toolkit/source/awt/vclxtoolkit.cxx and svtools/source/uno/unoiface.cxx
-**** SubDialog
-**** Pull-down menu
-**** embed custom widget
-**** embed old .src TAB
-**** have a LAYOUT TAB be embedded in an old .src dialog
-**** FileControl?
-**** roadmap?
-**** datefield?
-**** patternfield?
-**** patternbox?
-**** dockingarea?
-**** errorbox?
-**** groupbox?
-**** menubutton?
-**** messbox?
-**** simpleanimation?
-
-*** support cnt:cnt:?
-*** support using label (verb) on yes/ok no/cancel buttons for some platforms
-but keep using yes/no on Windows, eg?
-*** remove -DTEST_LAYOUT=1 from util/makefile.mk?
-
-** fixes
-*** missing properties
- 'title' -> 'Set Zoom'
-Missing prop Title
-Missing prop ValueStep
-Missing prop Radiogroup
-Missing prop Default
-*** bug in wordcountdialog: right alignment of numbers `jump' when resizing
- the dialog. the 0 and 00 are never exactly aligned.
-*** look into code duplication: source/core/*.
-*** Remove magic constants
-fHorAlign = fVerAlign = 0.5; --> float const [CENTER?] = 0.5;
-
-** include full translations
-*** zoom
-grep zoom.src svx/source/dialog/localize.sdf | awk -F'\t' '{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "janneke\\vc\\layout-cws\\toolkit\\workben\\layout\\zoom.xml", $3, "layout", $6 "_label", "", "", $8, "0", $10, $11, $12, "", $14, $15}' | sed -e 's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e 's/\t_label/\tRID_SVXDLG_ZOOM_title/'
-*** wordcount
-grep wordcountdialog.src sw/source/ui/dialog/localize.sdf | awk -F'\t' '{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "janneke\\vc\\layout-cws\\toolkit\\workben\\layout\\workben.xml", $3, "layout", $6 "_label", "", "", $8, "0", $10, $11, $12, "", $14, $15}' | sed -e 's/FL_\([A-Z]*\)_label/FL_\1_text/' -e 's/\t_label/\tDLG_WORDCOUNT_title/'s
-*** sortdlg
-grep sortdlg.src ../../../sc/source/ui/src/localize.sdf | awk -F'\t' '{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "janneke\\vc\\layout-cws\\toolkit\\workben\\layout\\sort-options.xml", $3, "layout", $6 "_label", "", "", $8, "0", $10, $11, $12, "", $14, $15}' | sed -e 's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e 's/\t_label/\tRID_SCDLG_SORT_title/' | grep -E ' (nl|de|en-US) ' > localize-str.sdf
-grep sortdlg.src sc/source/ui/src/localize.sdf | awk -F'\t' '{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "sc\\uiconfig\\layout\\sort-options.xml", $3, "layout", $6 "_label", "", "", $8, "0", $10, $11, $12, "", $14, $15}' | sed -e 's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e 's/\t_label/\tRID_SCDLG_SORT_title/' > sc/uiconfig/layout/localize-sort-options.sdf
-*** insert-sheet
-grep instbdlg.src sc/source/ui/miscdlgs/localize.sdf | awk -F'\t' '{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "sc\\uiconfig\\layout\\insert-sheet.xml", $3, "layout", $6 "_label", "", "", $8, "0", $10, $11, $12, "", $14, $15}' | sed -e 's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e 's/\t_label/\tRID_SCDLG_INSERT_TABLE_title/' > sc/uiconfig/layout/localize-insert-sheet.sdf
-*** move-copy-sheet
-grep -E 'miscdlgs.src.*(FT_DEST|FT_INSERT|STR_NEWDOC|RID_SCDLG_MOVETAB|BTN_COPY)' sc/source/ui/src/localize.sdf | awk -F'\t' '{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "sc\\uiconfig\\layout\\move-copy-sheet.xml", $3, "layout", $6 "_label", "", "", $8, "0", $10, $11, $12, "", $14, $15}' | sed -e 's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e 's/\t_label/\tRID_SCDLG_MOVETAB_title/' > sc/uiconfig/layout/localize-move-copy-sheet.sdf
-*** find-and-replace
-grep srchdlg.src svx/source/dialog/localize.sdf | awk -F'\t' '{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "svx\\uiconfig\\layout\\find-and-replace.xml", $3, "layout", $6 "_label", "", "", $8, "0", $10, $11, $12, "", $14, $15}' | sed -e 's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e 's/\t_label/\tRID_SVXDLG_SEARCH_title/' > svx/uiconfig/layout/localize-find-and-replace.sdf
-
-* i18n
- + forget java property files nonsense
- - dump old wiki pointers into layout/doc for reference
- + share code with vcl/source/gdi/impimagetree.cxx
- + 'layout.zip'?
- + support multiple translatable attributes
- + ? rewrite tralay from scratch (in python, perl, c++?) ?
-
-
-* distributing: [LayoutDialogs]
-git diff 5db78fc5 layout scp2 > layout-dialogs-layout.diff
-git diff 5db78fc5 |grep -v gitignore | grep 'git a'|grep -Ev 'a/(layout|scp2)/'|sed -e's@.*git a/@@' -e 's@/.*@@' | sort -u | tr '\n' ' '
-git diff 5db78fc5 $(git diff 5db78fc5 |grep -v gitignore | grep 'git a'| grep -Ev 'a/(layout|scp2)/' | sed -e's@.*git a/@@' -e 's@/.*@@' | sort -u | tr '\n' ' ') > layout-dialogs.diff
-
-Soo...
-
-m237: fc105178
-
-#git diff offapi toolkit > layout-dialogs-offapi-toolkit.diff
-
-git diff fc105178 layout | sed 's@^\([+-]\{3\}\) \(a\|b\)/@\1 @' > layout-dialogs-layout.diff
-git diff fc105178 config_office scp2 | sed 's@^\([+-]\{3\}\) \(a\|b\)/@\1 @' > layout-dialogs-config_office-scp2.diff
-git diff fc105178 svx sw | sed 's@^\([+-]\{3\}\) \(a\|b\)/@\1 @' > layout-dialogs-svx-sw.diff
-
-m241: 5e9b2546
-m241': b8e24264
-m241'': 53ddc663
-m1: fbde8234
-m1': d1f42c99
-m1'': 1a8dec5c
-m1'''': c93389f7
-
-* porting
-** Zoom dialog
-*** list of radio buttons indented: workben/zoom-indent.xml ?
-** Word Count dialog
-** Recover dialog (redesign)
-** pivotfilter dialog (Kohei?)
-** paragraph dialog
-
-
-TODO
-
-
-* play with / improve Ricardo's editor
-** broken after new uno registration
-
- it barfs on
-
- void selectedWidget( Widget *pWidget )
- {
- clear();
-
- it looks like a window is deleted twice.
-
-** this is not meant to be a production level tool, but still,
- it can be improved I think :-)
-
-* improve Kohei's converter (poke him on IRC (afternoons) about this)
-
-** current hack: workben/run-s2x
-
- . Imported into layout
-
- + Kohei wrote the start of a nice script to convert ugly,
- obsolete resource files to nice new XML files ;-)
- + unfortunately it is buggy.
- + see ooo-build/scratch/layout-src2xml/*
- + we should move this into the git repo.
- + bug to fix: case problems in XML
- + XML produced has wrong case items, and names are
- different to those we (and AWT) expects ->
- de-stdlycapsise
- + cf. layout/source/core/helper.cxx:
- toUnoNaming, anyFromString
- setProperties
- + NB. we want to have nice 'clean' looking non-stdlycaps XML
- + also toolkit/source/awt/vclxwindows.cxx /ImplGetPropertyIds/
- + also toolkit/source/helper/property.cxx
- + bug to fix: property name problems
- + often the resource name strings (cf. legacy resource
- compiler in rsc/) don't match the awt toolkit properties
- + ie. need to map Label="foo" to Text="foo" (or whatever).
-
-* OLD notes
-
-+ Before OOoCon
- + editor polish
- + cut / paste
- + export xml
- + "import .src"
- [ use native VCL menus ... ]
- + dialogs:
- + porting 'Format' dialog.
- + wrapper code - improving ...
- + XML fixes
- + "load" command for shared fragments
- + slides:
- + UNO object hierarchy for a given window ...
-
-+ Later
- + dual-compile code under VCL & 'layout' and compare
- event ordering (eg.).
- + test-tool
- + scrolled-pane impl.
-
diff --git a/toolkit/doc/layout/apinotes.txt b/toolkit/doc/layout/apinotes.txt
deleted file mode 100644
index dc5a8cfcd6d1..000000000000
--- a/toolkit/doc/layout/apinotes.txt
+++ /dev/null
@@ -1,76 +0,0 @@
-Notes on API wrapper pieces ...
-
-SvxZoomDialog::SvxZoomDialog( Window* pParent, const SfxItemSet& rCoreSet ) :
- Dialog( pParent, SVX_RES( RID_SVXDLG_ZOOM ) ),
-
-What do we do ?
- + lots of potential VCL/Svx/Sfx etc. top-levels ...
-
- + Create the window & the 1st member: 'FooHandle' ?
- + Multiply inherited ?
- + object from where ?
-
- + Default:
- + a pseudo-Dialog / wrapper ...
- + load using layout (etc.)
- + register an SID table ?
- + necessary ?
- + SIDs ? - post it ...
-
-
- + [ Otherwise ... hook up via a helper /
- constructor member ... ]
-
-* Fixed:
- + OKButton / CancelButton
- + don't chain to PushButton::Click
- + if there is no ClickHdl set ... [ !urgh! ...]
-
- * FIXME:
- other widgets ...
- * How do we cope ? *
- ....
- + priorities ? Layout ?
- + de-coupling ?
- + native widgets ?
- + hmm...
- + custom widgets ?
- + 'OKButton' ... (?) :-)
- + 'CancelButton'
- + 'HelpButton' ...
- + a VCL hack ...
- + create an 'addLayout()' method ?
- + [ like cl's ? ]
- + implement this ...
-
-** Lifecycle ?
- + how do we track the 'Impl'
- vs. the pImpl vs. (etc.)
- + held by mutual references ?
-
- + pointer to the widget itself passed in ?
- + MI ?
- + when the widget dies - just NULL the
- listener's back-ptr ?
-
- + Locking [!?] - how / why / what / who ?
- + urgh ...
- + threading bits ...
-
- + SID table (?) ...
- + [ necessary ? - just use the SID name as the XML attr ? ]
- + LAYOUT_ID(a) -> "#a" - stringified ...
-
-** FIXME:
- + we need a decent MetricField implementation
- + it is more than a SpinField
- + need to move the 'Border' property down (etc.)
- + re-arrange the properties to be next to the impls.
- in awt ...
-
- + fix the
-
-XCurrencyField (huh)
- needs implementing for VCLXMetricField (non-existent) ...
- copy the code from XCurrencyField ? make a sub-class there ?
-
diff --git a/toolkit/doc/layout/metricfield.txt b/toolkit/doc/layout/metricfield.txt
deleted file mode 100644
index 21ebe4b50459..000000000000
--- a/toolkit/doc/layout/metricfield.txt
+++ /dev/null
@@ -1,57 +0,0 @@
-** MetricField:
- + in vcl:
-class VCL_DLLPUBLIC CurrencyField : public SpinField, public CurrencyFormatter
-class VCL_DLLPUBLIC CurrencyFormatter : public NumericFormatter
-class VCL_DLLPUBLIC MetricFormatter : public NumericFormatter
-class VCL_DLLPUBLIC NumericFormatter : public FormatterBase
-
-MetricFormatter - very simple sal_Int64 wrapping ...
- + no doubles ...
- + *Could* replicate this with the same interface:
- + prolly easier / better to add an XMetricField interface.
-
-vcl's MetricField - itself does a load of (double) casting ...
- + to get the value it wants :-)
- + Urgh ! ...
-
-** Can we just twist VCLXCurrencyField to this purpose ?
- + what differences would we want ?
- + LongCurrencyFormatter -> 'MetricFormatter' ...
-
-** Interesting !
- + VCLXCurrencyField is based on 'LongCurrencyField' not CurrencyField ...
- + this is really based on 'BigInt' [ curious ] - so even more precision loss.
-
- + So ... cut/paste VCLXCurencyField -> VCLXMetricField
-
- + Look at 'VCLXNumericField' interface ...
- + Use 'XNumericField' instead (?)
- + why does this just not "just work" ?
-
- + The 'MetricField' (is also a MetricFormatter)
- + MetricFormatter [ unusually ] has 'Unit' support
- + API grep shows:
- + a) requires 'fieldunit'
- + b) has "UserValue"
- + c) => new IDL interface required ...
- + sub-set / expand NumericField ?
-
- + add 'CustomConvert' ?
- + add '[SG]etFirst'/Last
- + Properties:
- + 'Unit'
- + 'CustomUnitText'
- + 'spin-size' -> 'value-step'
- + 'BaseValue' ...
- + sal_Int64 ... [!?] ...
- + CorrectedValue
- + Want properties for the UI designer (?)
- + move that stuff out into there ?
- + FIXME:
- + rationalise the 'Modify' event crud ...
- + share the code in a base-class ...
-
- + Wrapper:
- + need to have static methods 'ConvertDoubleValue' etc.
- + also 'ConvertValue' etc.
- + GetCorrectedValue - never used ...
diff --git a/toolkit/doc/layout/notes.txt b/toolkit/doc/layout/notes.txt
deleted file mode 100644
index 63bb16487a31..000000000000
--- a/toolkit/doc/layout/notes.txt
+++ /dev/null
@@ -1,117 +0,0 @@
---- How layout / hierarchy should work ---
-
-On-screen:
-
-+-------------------+
-| Label: [Entry] |
-| - - - - - - - - - | |
-| [ Ok ]|
-+-------------------+
-
-AWT Window hierarcy:
- Window
- + Label
- + Entry
- + Ok
-
- ie. unchanged, and backwards compatible - a flat
-representation.
-
-Toolkit Hierachy
-
- WindowContainer [Bin?]
- + Vbox
- + HBox
- + Label
- + Entry
- + Alignment
- + Ok
-
- the layout process would happen inside the toolkit code
-(perhaps eventually genericisd itself), and the result from the
-(re-)layout process would be a set of SetPosition/SetSize calls made
-to VCL.
-
---- code pointers ---
-
-** AWT interfaces:
- + offapi/com/sun/star/awt/* - eg. XButton.idl
- + 'XLayoutConstrains.idl' [ published & mis-named ! ]
-
- + We can build 'Layout' into the AWT at the toolkit level
- + this should be fairly easy, and wouldn't touch VCL much.
-
-** Toolkit (awt) implementation:
- + toolkit/source/awt/vclxwindows.cxx:
- + much of the implementation lurks in here ...
- + The size information is in 'vclxwindows.cxx' ...
-
- + toolkit/source/helper/unowrapper.cxx
- + factories / code to associate UNO peers with VCL windows
- + pWindow->
-
---- Tests ---
-
-Integration tests:
- cf. http://www.openoffice.org/issues/show_bug.cgi?id=78747
-
-
---- more thoughts ---
-
-** Extra Design constraints: [!?]
- + accessibility
- + QA test-tool-age ... - tests ~will need re-write (unfortunately)
-
-* New functionality we would like:
- + ShowAll (vs. Show/Hide) && HideAll ...
-
-Necessary to re- build && deliver svtools/ having delivered toolkit ...
- rm unxlngi6.pro/slo/textwindowaccessibility.* # first ...
-
-** Layout containers:
- + XIndexAccess ? - sorted container (?)
-
-* Consider 'XLayoutRoot' top-level ...
- + inherit from XNameContainer - widgets by name / id ...
- + hack a VCL dialog ?
- + we need a handle we can pass back of some form:
- + XWindowPeer getPeer() ... [ can use that I guess ? ]
- + also need a service interface ?
- + or parameters passed as Anys ? [ugh]
-
-* Decided
- + use 'layout' by itself & small patches
- to toolkit/ in ooo-build.
-
-* TODO:
- + need a 'queueResize' method ...
- + trigger on show/hide ...
- + allocateSize should take an awt::Rectangle ...
- + impl. XLayoutRoot
- + special cases:
- + radio-button-group
- + notebook
-
-* svx/source/dialog/zoom*
-
-Michael's Todo:
- + handle MetricField: 'unit' enum etc. - introspection ? or ...
- + make OK/Cancel buttons function as they should ...
- + merge layout-svtools.diff into CWS as last step before inclusion ...
- + FixedLine:
- + get sizing right ...
- + hook up new virtual methods into toolkit/ (m225) - i#80754
- + copy the crud from toolkit's custom vclxwindows.cxx
- "calcMinimumSize" logic ...
- + get ok/help/cancel buttons working ...
-
- + fix / rationalise property adding in toolkit ...
- + simplify it with the new VCLWindow base :-)
- + simplify it ...
- + spreadsheet ...
- + VCLXImageConsumer - can't be instantiated itself
- anyway ! -> bin the 'true' & just add all these
- props unconditionally ...
-
- + switch construction attributes into their own xmlns to
- avoid treading on other properties ...
diff --git a/toolkit/doc/layout/oldnotes.txt b/toolkit/doc/layout/oldnotes.txt
deleted file mode 100644
index a5cb94963da0..000000000000
--- a/toolkit/doc/layout/oldnotes.txt
+++ /dev/null
@@ -1,224 +0,0 @@
-* Obsolete notes ...
-
-** Form XML format:
-
- + from the basic editor:
-
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
-<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="Dialog1" dlg:left="204" dlg:top="148" dlg:width="136" dlg:height="115" dlg:closeable="true" dlg:moveable="true">
- <dlg:bulletinboard>
- <dlg:button dlg:id="OkButtonName" dlg:tab-index="0" dlg:left="86" dlg:top="92" dlg:width="44" dlg:height="19" dlg:value="OkButtonLabel"/>
- <dlg:titledbox dlg:id="FrameControl1" dlg:tab-index="1" dlg:left="4" dlg:top="7" dlg:width="68" dlg:height="41">
- <dlg:title dlg:value="FrameControl1"/>
- </dlg:titledbox>
- <dlg:scrollbar dlg:id="ScrollBar1" dlg:tab-index="2" dlg:left="82" dlg:top="10" dlg:width="45" dlg:height="24"/>
- <dlg:scrollbar dlg:id="ScrollBar2" dlg:tab-index="3" dlg:left="107" dlg:top="43" dlg:width="21" dlg:height="37" dlg:align="vertical"/>
- <dlg:timefield dlg:id="TimeField1" dlg:tab-index="4" dlg:left="4" dlg:top="92" dlg:width="28" dlg:height="19"/>
- <dlg:text dlg:id="Label1" dlg:tab-index="5" dlg:left="22" dlg:top="61" dlg:width="44" dlg:height="15" dlg:value="Label1"/>
- </dlg:bulletinboard>
-</dlg:window>
-
- + code to read this & generate UIs is in:
- + DTD: xmlscript/dtd/dialog.dtd
- + xmlscript/source/xmldlg_imexp/imp_share.hxx, line 674
- + xmlscript/source/misc/unoservices.cxx
- xmlscript/source/xmlflat_imexp/xmlbas_import.cxx (?)
- "com.sun.star.comp.xmlscript.XMLBasicImporter"
- + the dialog piece seems separate ?
- "importDialogModel" ...
- + cf. the interesting test code ...
- + cd xmlscript/test
- dmake
- ../unxlngi6.pro/bin/imexp /opt/OOInstall ./test.xml
- + generates & renders a dialog ...
-
- + This code has ~all we need to get a simple impl.
- + compatibility wrappers [!]
-
- // first create model:
- Reference< container::XNameContainer > xModel( xContext->getServiceManager()->createInstanceWithContext(
- OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.UnoControlDialogModel" ) ), xContext ), UNO_QUERY );
- // NB. xmldlg_addfunc.cxx not xmldlg_import.cxx [!?] ;-)
- ::xmlscript::importDialogModel( ::xmlscript::createInputStream( bytes ),
- xModel, xContext );
-
- // second create view of model:
- Reference< awt::XControl > xDlg( xMSF->createInstance(
- OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.UnoControlDialog" ) ) ), UNO_QUERY );
- xDlg->setModel( Reference< awt::XControlModel >::query( xModel ) );
-
- // third - associate toolkit / peer ...
- Reference< awt::XToolkit> xToolkit( xMSF->createInstance(
- OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.ExtToolkit" ) ) ), UNO_QUERY );
- xDlg->createPeer( xToolkit, 0 );
-
- // fourth - execute [ nasty ... ]
- Reference< awt::XDialog > xD( xDlg, UNO_QUERY );
- xD->execute();
-
-
-** Basic dialog editor:
-
- + basctl/source/dlged/dlged.cxx
- + dialog editor (?)
- + basctl/source/basicide/basobj3.cxx
- + basctl/source/basicide/basides3.cxx
- + BasicIDEShell:CreateDlgWin ...
-
-
-** FIXME:
- + createPeer - when called is always passed
- the toplevel [ it seems ... ]
- + we need to pass a container instead ...
- + or have some separate hint / method ?
- + or call the 'setChild' inside the model
- construction bits ? [!?]
-
-UnoControlContainer::addingControl:
- + only caller to 'setContext'
- + sets the 'Parent' for peers ...
-
-Dialog is an UnoControlContainer ...
- + hmm ...
- + 'XControlContainer'
- + perhaps just what we need ... [!]
- + our VBox should be one ...
-
- + Other things: tab widgets are 'UnoControlContainers' ...
- + finally remembered: xml foo ...
- +
-
-
- + FIXME: it -seems- that we don't store
- much hierarchy in the model [ any ? ]
- + UnoControlModel -> ?
-
- + UnoControlDialogModel - has an XNameContainer ...
- + but ... only the UnoControl-Dialog-Model has this ...
-
-
- + Wow - even the percieved hierarchy:
- + 'exportDialogModel'
- + achieved by 'getElementNames'
- -> flat set of names ... [urgh]
-
- + So - we need to add more structure:
- + XNameContainers ...
- + that we insert into [!?]
- + we also need to retain order for packing.
-
- + need a list of sillies to reverse / revert (?) ...
-
- + back-compat:
- + kill bogus nesting eg. radiogroup ...
- [ have a group/tag instead - or hierarchical names ? ]
- + ditto for 'titledbox' ...
- + menulists - seem rather unrelated / bogus anyway.
- + Add into toplevel & child ...
-
- + copy Dialog bits into unocontrolcontainer.cxx ...
- + re-using unocontrolcontainer ...
-
-
-** FIXME:
- + we need property introspection on the awt widgets:
- + but they have no property interfaces [!] -
- interestingly the UnoControl's don't either
- only the UnoControlModel foo ...
- + unocontrols.cxx:
- Uno
- + source/helper/property.cxx
- + has all the type information ...
- + but no information on what properties are
- valid for a type ... - implicit in the UnoControlModel's
- code ...
- + ImplGetPropertyInfos ...
-
- + add to vclxwindow.cxx:
- + inc/toolkit/helper/property.hxx
- + 'getProperties' static ...
-
-** It seems that things like UnoControlComboBoxModel are missing
- some derived properties: EchoChar (etc.)
- UnoControlDateFieldModel - missing ... EchoChar too (?) - deliberate ?
- + query these ... [!?]
-
-layout container - start child 'combobox'
- missing property 46 (EchoChar)
- missing property 48 (HardLineBreaks)
- missing property 12 (HScroll)
- missing property 104 (LineEndFormat)
- missing property 10 (MultiLine)
- missing property 13 (VScroll)
-
- + add regression test:
- + count number of properties ...
-
-
-TODO:
- add 'XPropertySetInfo' to VCLXWindow:
- + trivial to implement :-)
- + hook it to Ricardo's parser ... [!] :-)
-
-* xmlscript
- + xmldlg_import.cxx -
- + xml_helper/xml_impctx.cxx - foo ...
-
-
-* plan:
- + hard-code container hooks into the xmlscript/ parser ...
- + create a layout object in toolkit/
- + populate it with good things ...
-
- + coupling to toolkit - widget instantiation: how ...
- + ComponentInfos
- + vclxtoolkit.cxx:
- + has a 'hook function' for 'fnSvtCreateWindow'
- for SVT widgets :-) [ grotesque ;-]
- + [ wow - fetched by dlopen! ;-]
-
- + A little app - a-la solver: using awt (?)
- + XMessageBoxFactory ...
- + XToolkit:
- + CreateWindow ...
- + ** how does the xml code generate these guys ? **
-
- + what APIs does the xmlimporter use ? not 'createWindow' seemingly.
-
-+ existing xml import uses: property bag a -lot-:
- Reference< beans::XPropertySet > xProps(
- _pImport->_xDialogModel, UNO_QUERY_THROW );
- * we do _xDialogModel->insertByName (new any<XControlModel>())
- + to build hierarchy ( cf. ~ControlImportContext )
-
- DialogImport:
- css::uno::Reference< css::container::XNameContainer > _xDialogModel;
-
- Reference< container::XNameContainer > xModel( xContext->getServiceManager()->createInstanceWithContext(
- OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.UnoControlDialogModel" ) ), xContext ), UNO_QUERY );
-
- toolkit/source/controls/dialogcontrol.cxx
- + UnoControlButtonModel (eg.)
- + service 'UnoControlModel' ...
-
- + poke at 'titledbox' or 'radiogroup' to see how containment works there ...
- + how will child widget properties work ?
- + bug with a 'vbox' inside a 'titledbox' ...
- + titledbox - acts as a container (interesting)
- - offsetting child positions
- + how will pseudo-containers eg. "radiogroup" cope ?
-
- + propose new syntax: [ with child properties a-la glade ]:
-
- <hbox id="baa" flange="true">
- <child padding="0" expand="false" fill="false">
- <radio id="foo" value="..."/>
- </child>
- <radio id="foo" value="..."/>
- </hbox>
-
- + if 'child' element omitted - default properties used ...
- + if multiple elements in same 'child' set: all have the same props.
-
-
diff --git a/toolkit/doc/layout/vcl.txt b/toolkit/doc/layout/vcl.txt
deleted file mode 100644
index dbafbc5b148d..000000000000
--- a/toolkit/doc/layout/vcl.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-* How do very basic vcl widgets get peers:
-
- + toolkit/awt/ VCLXToolkit::ImplCreateWindow
- + calls GetComponentInterface (sal_True) - if no comp. iface.
-
- + vcl's Window:
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > GetComponentInterface( BOOL bCreate = TRUE );
-
- + vcl/inc/vcl/unowrap.hxx:
- // Window
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer> GetWindowInterface( Window* pWindow, sal_Bool bCreate ) = 0;
- virtual void SetWindowInterface( Window* pWindow, ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xIFace ) = 0;
-
- + from svapp.cxx Application::SetUnoWrapper
- -> toolkit/awt 'ToolkitWorkerFunction' ( extern C / dlopen linkage )
-
- + from toolkit/source/helper/unowrapper.cxx:
- -> CreateXWindow -> 'return new VCLXWindow'
- ** FIXME: we need love in here too:
- + METRICBOX eg. \ No newline at end of file
diff --git a/toolkit/source/awt/vclxbutton.cxx b/toolkit/source/awt/vclxbutton.cxx
deleted file mode 100644
index 5a368793fc89..000000000000
--- a/toolkit/source/awt/vclxbutton.cxx
+++ /dev/null
@@ -1,129 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include "vclxbutton.hxx"
-
-#include <layout/core/helper.hxx>
-#include <com/sun/star/awt/ImagePosition.hpp>
-#include <vcl/button.hxx>
-
-namespace css = com::sun::star;
-
-namespace layoutimpl
-{
-
-VCLXIconButton::VCLXIconButton( Window *p, rtl::OUString aDefaultLabel, char const *pGraphName )
- : VCLXButton()
-{
- /* FIXME: before Window is set, setLabel, setProperty->setImage
- * are silent no-ops. */
- p->SetComponentInterface( this );
-
- setLabel( aDefaultLabel );
- setProperty( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Graphic")),
- css::uno::Any( layoutimpl::loadGraphic( pGraphName ) ) );
- setProperty( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ImagePosition")),
- css::uno::Any( css::awt::ImagePosition::LeftCenter ) );
- setProperty( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Align")),
- css::uno::Any( (sal_Int16) 1 /* magic - center */ ) );
-}
-
-// FIXME: l10n/i18n of Reset & Apply
-
-VCLXOKButton::VCLXOKButton( Window *p )
- : VCLXIconButton( p, Button::GetStandardText( BUTTON_OK ),
- "cmd/sc_ok.png" )
-{
-}
-
-VCLXCancelButton::VCLXCancelButton( Window *p )
- : VCLXIconButton( p, Button::GetStandardText( BUTTON_CANCEL ),
-// : VCLXIconButton( xButton, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("~Cancel ")),
- "cmd/sc_cancel.png" )
-{
-}
-
-VCLXYesButton::VCLXYesButton( Window *p )
- : VCLXIconButton( p, Button::GetStandardText( BUTTON_YES ),
- "cmd/sc_yes.png" )
-{
-}
-
-VCLXNoButton::VCLXNoButton( Window *p )
- : VCLXIconButton( p, Button::GetStandardText( BUTTON_NO ),
- "cmd/sc_no.png" )
-{
-}
-
-VCLXRetryButton::VCLXRetryButton( Window *p )
- : VCLXIconButton( p, Button::GetStandardText( BUTTON_RETRY ),
- "cmd/sc_retry.png" )
-{
-}
-
-VCLXIgnoreButton::VCLXIgnoreButton( Window *p )
- : VCLXIconButton( p, Button::GetStandardText( BUTTON_IGNORE ),
- "cmd/sc_ignore.png" )
-{
-}
-
-VCLXResetButton::VCLXResetButton( Window *p )
- : VCLXIconButton( p, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("~Reset ")),
- "cmd/sc_reset.png" )
-{
-}
-
-VCLXApplyButton::VCLXApplyButton( Window *p )
- : VCLXIconButton( p, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Apply")),
- "cmd/sc_apply.png" )
-{
-}
-
-VCLXHelpButton::VCLXHelpButton( Window *p )
- : VCLXIconButton( p, Button::GetStandardText( BUTTON_HELP ),
- "cmd/sc_help.png" )
-{
-}
-
-VCLXMoreButton::VCLXMoreButton( Window *p )
- : VCLXIconButton( p, Button::GetStandardText( BUTTON_MORE ),
-// : VCLXIconButton( p, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("More ")),
- "cmd/sc_more.png" )
-{
-}
-
-VCLXAdvancedButton::VCLXAdvancedButton( Window *p )
-// : VCLXIconButton( p, Button::GetStandardText( BUTTON_ADVANCED ),
- : VCLXIconButton( p, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Advanced ")),
- "cmd/sc_advanced.png" )
-{
-}
-
-} // namespace layoutimpl
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxbutton.hxx b/toolkit/source/awt/vclxbutton.hxx
deleted file mode 100644
index 34ac8fe0b84b..000000000000
--- a/toolkit/source/awt/vclxbutton.hxx
+++ /dev/null
@@ -1,117 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef LAYOUT_AWT_VCLXBUTTON_HXX
-#define LAYOUT_AWT_VCLXBUTTON_HXX
-
-#include <toolkit/awt/vclxwindows.hxx>
-
-/* Replacements for broken toolkit/ impls. of ok, cancel, help button, etc. */
-
-namespace layoutimpl
-{
-
-class VCLXIconButton : public VCLXButton
-{
-public:
- VCLXIconButton( Window* p, rtl::OUString aDefaultLabel, const char *pGraphName );
- void Show ();
-};
-
-class VCLXOKButton : public VCLXIconButton
-{
-public:
- VCLXOKButton( Window *p );
-};
-
-class VCLXCancelButton : public VCLXIconButton
-{
-public:
- VCLXCancelButton( Window *p );
-};
-
-class VCLXYesButton : public VCLXIconButton
-{
-public:
- VCLXYesButton( Window *p );
-};
-
-class VCLXNoButton : public VCLXIconButton
-{
-public:
- VCLXNoButton( Window *p );
-};
-
-class VCLXRetryButton : public VCLXIconButton
-{
-public:
- VCLXRetryButton( Window *p );
-};
-
-class VCLXIgnoreButton : public VCLXIconButton
-{
-public:
- VCLXIgnoreButton( Window *p );
-};
-
-class VCLXResetButton : public VCLXIconButton
-{
-public:
- VCLXResetButton( Window *p );
-};
-
-class VCLXApplyButton : public VCLXIconButton
-{
-public:
- VCLXApplyButton( Window *p );
-};
-
-class VCLXHelpButton : public VCLXIconButton
-{
-public:
- VCLXHelpButton( Window *p );
-};
-
-// TODO. Reuse vcl/Morebutton, or make AdvancedButton reuse me?
-class VCLXMoreButton : public VCLXIconButton
-{
-public:
- VCLXMoreButton( Window *p );
-};
-
-class VCLXAdvancedButton : public VCLXIconButton
-{
-public:
- VCLXAdvancedButton( Window *p );
-};
-
-} // namespace layoutimpl
-
-#endif // LAYOUT_AWT_VCLXBUTTON_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxdialog.cxx b/toolkit/source/awt/vclxdialog.cxx
deleted file mode 100644
index 3d301e362b9c..000000000000
--- a/toolkit/source/awt/vclxdialog.cxx
+++ /dev/null
@@ -1,274 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include <boost/ptr_container/ptr_vector.hpp>
-#include "vclxdialog.hxx"
-
-#include <com/sun/star/awt/PosSize.hpp>
-#include <com/sun/star/awt/SystemDependentXWindow.hpp>
-#include <com/sun/star/lang/SystemDependent.hpp>
-
-#include <cppuhelper/typeprovider.hxx>
-
-#include <toolkit/awt/vclxmenu.hxx>
-#include <toolkit/helper/macros.hxx>
-#include <toolkit/helper/property.hxx>
-
-#ifdef QUARTZ
-#include "premac.h"
-#include <Cocoa/Cocoa.h>
-#include "postmac.h"
-#endif
-
-#include <vcl/dialog.hxx>
-#include <vcl/msgbox.hxx>
-#include <vcl/svapp.hxx>
-#include <vcl/sysdata.hxx>
-#include <vcl/wrkwin.hxx>
-
-#include "forward.hxx"
-
-namespace layoutimpl
-{
-
-DBG_NAME( VCLXDialog )
-
-VCLXDialog::VCLXDialog()
- : VCLXWindow()
- , VCLXTopWindow_Base( true )
- , VCLXDialog_Base()
- , Bin()
- , bRealized( false )
- , bResizeSafeguard( false )
-{
- DBG_CTOR( VCLXDialog, NULL );
-
-/* mxLayoutUnit = uno::Reference< awt::XLayoutUnit >( new LayoutUnit() );
- assert(mxLayoutUnit.is());*/
-}
-
-VCLXDialog::~VCLXDialog()
-{
- DBG_DTOR( VCLXDialog, NULL );
-}
-
-Window* VCLXDialog::GetWindowImpl()
-{
- return VCLXWindow::GetWindow();
-}
-
-::cppu::OInterfaceContainerHelper& VCLXDialog::GetTopWindowListenersImpl()
-{
- return GetTopWindowListeners();
-}
-
-IMPLEMENT_2_FORWARD_XINTERFACE2( VCLXDialog, VCLXWindow, Bin, VCLXDialog_Base );
-
-IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXDialog, VCLXWindow, VCLXDialog_Base );
-
-void SAL_CALL VCLXDialog::dispose() throw(::com::sun::star::uno::RuntimeException)
-{
- {
- SolarMutexGuard aGuard;
-
- ::com::sun::star::lang::EventObject aDisposeEvent;
- aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this);
-// maTabListeners.disposeAndClear( aDisposeEvent );
- }
-
- VCLXWindow::dispose();
-}
-
-void VCLXDialog::resizedCb()
-{
- queueResize();
-}
-
-void SAL_CALL VCLXDialog::allocateArea( const css::awt::Rectangle &rArea )
- throw (css::uno::RuntimeException)
-{
- ::com::sun::star::awt::Size reqSize = Bin::getMinimumSize();
- reqSize.Height = getHeightForWidth( rArea.Width );
-
- if ( !bRealized )
- {
- setPosSize( 0, 0, reqSize.Width, reqSize.Height, ::com::sun::star::awt::PosSize::SIZE );
- bRealized = true;
- setVisible( true );
- }
- else
- {
- ::com::sun::star::awt::Size curSize = getSize();
- if ( reqSize.Width > curSize.Width )
- setPosSize( 0, 0, reqSize.Width, 0, ::com::sun::star::awt::PosSize::WIDTH );
- if ( reqSize.Height > curSize.Height )
- setPosSize( 0, 0, 0, reqSize.Height, ::com::sun::star::awt::PosSize::HEIGHT );
- }
-
- ::com::sun::star::awt::Size size = getSize();
- maAllocation.Width = size.Width;
- maAllocation.Height = size.Height;
-
- Bin::allocateArea( maAllocation );
-}
-
-void VCLXDialog::ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent )
-{
- SolarMutexClearableGuard aGuard;
-
- switch ( _rVclWindowEvent.GetId() )
- {
- case VCLEVENT_WINDOW_RESIZE:
- resizedCb();
- default:
- aGuard.clear();
- VCLXWindow::ProcessWindowEvent( _rVclWindowEvent );
- break;
- }
-}
-
-void SAL_CALL VCLXDialog::setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any &Value ) throw(::com::sun::star::uno::RuntimeException)
-{
- SolarMutexGuard aGuard;
-
- if ( GetWindow() )
- {
-/* sal_uInt16 nPropertyId = GetPropertyId( PropertyName );
- switch ( nPropertyId )
- {
- default:
-*/
- VCLXWindow::setProperty( PropertyName, Value );
-/* }
-*/
- }
-}
-
-::com::sun::star::uno::Any SAL_CALL VCLXDialog::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException)
-{
- SolarMutexGuard aGuard;
-
- ::com::sun::star::uno::Any aReturn;
- if ( GetWindow() )
- {
-/*
- sal_uInt16 nPropertyId = GetPropertyId( PropertyName );
- switch ( nPropertyId )
- {
- default:
-*/
- aReturn = VCLXWindow::getProperty( PropertyName );
-/*
- }
-*/
- }
- return aReturn;
-}
-
-void VCLXDialog::setTitle( const ::rtl::OUString& Title ) throw(::com::sun::star::uno::RuntimeException)
-{
- SolarMutexGuard aGuard;
-
- Window* pWindow = GetWindow();
- if ( pWindow )
- pWindow->SetText( Title );
-}
-
-void VCLXDialog::setHelpId( const rtl::OUString& rId ) throw(::com::sun::star::uno::RuntimeException)
-{
- SolarMutexGuard aGuard;
-
- Window* pWindow = GetWindow();
- if ( pWindow )
- pWindow->SetHelpId( rtl::OUStringToOString( rId, RTL_TEXTENCODING_UTF8 ) );
-}
-
-::rtl::OUString VCLXDialog::getTitle() throw(::com::sun::star::uno::RuntimeException)
-{
- SolarMutexGuard aGuard;
-
- ::rtl::OUString aTitle;
- Window* pWindow = GetWindow();
- if ( pWindow )
- aTitle = pWindow->GetText();
- return aTitle;
-}
-
-sal_Int16 VCLXDialog::execute() throw(::com::sun::star::uno::RuntimeException)
-{
- SolarMutexGuard aGuard;
-
- sal_Int16 nRet = 0;
- if ( GetWindow() )
- {
- Dialog* pDlg = (Dialog*) GetWindow();
- Window* pParent = pDlg->GetWindow( WINDOW_PARENTOVERLAP );
- Window* pOldParent = NULL;
- if ( pParent && !pParent->IsReallyVisible() )
- {
- pOldParent = pDlg->GetParent();
- Window* pFrame = pDlg->GetWindow( WINDOW_FRAME );
- if ( pFrame != pDlg )
- pDlg->SetParent( pFrame );
- }
- nRet = pDlg->Execute();
- if ( pOldParent )
- pDlg->SetParent( pOldParent );
- }
- return nRet;
-}
-
-void VCLXDialog::endDialog( sal_Int32 nResult ) throw(::com::sun::star::uno::RuntimeException)
-{
- SolarMutexGuard aGuard;
-
- if ( nResult == BUTTONID_HELP )
- {
- // UGH: c&p button.cxx
- ::Window* pFocusWin = Application::GetFocusWindow();
- if ( !pFocusWin )
- pFocusWin = GetWindow();
-
- HelpEvent aEvt( pFocusWin->GetPointerPosPixel(), HELPMODE_CONTEXT );
- pFocusWin->RequestHelp( aEvt );
- return;
- }
-
- Dialog* pDlg = (Dialog*) GetWindow();
- if ( pDlg )
- pDlg->EndDialog( nResult );
-}
-
-void VCLXDialog::endExecute() throw(::com::sun::star::uno::RuntimeException)
-{
- endDialog( 0 );
-}
-
-} // namespace layoutimpl
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxdialog.hxx b/toolkit/source/awt/vclxdialog.hxx
deleted file mode 100644
index 785f6b3b7e48..000000000000
--- a/toolkit/source/awt/vclxdialog.hxx
+++ /dev/null
@@ -1,109 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef LAYOUT_AWT_VCLXDIALOG_HXX
-#define LAYOUT_AWT_VCLXDIALOG_HXX
-
-#include <com/sun/star/awt/XDialog2.hpp>
-#include <com/sun/star/awt/XSystemDependentWindowPeer.hpp>
-#include <com/sun/star/awt/XTopWindow.hpp>
-#include <comphelper/uno3.hxx>
-#include <layout/core/bin.hxx>
-#include <toolkit/awt/vclxtopwindow.hxx>
-
-namespace layoutimpl
-{
-
-typedef ::cppu::ImplHelper1 < ::com::sun::star::awt::XDialog2 > VCLXDialog_Base;
-
-class TOOLKIT_DLLPUBLIC VCLXDialog : public VCLXWindow
- , public VCLXTopWindow_Base
- , public VCLXDialog_Base
- , public Bin
-{
-private:
- bool bRealized, bResizeSafeguard;
- css::uno::Reference< css::awt::XLayoutUnit > mxLayoutUnit;
-
- VCLXDialog( const VCLXDialog& ); // never implemented
- VCLXDialog& operator=( const VCLXDialog& ); // never implemented
-
-protected:
- Window* GetWindowImpl();
- ::cppu::OInterfaceContainerHelper& GetTopWindowListenersImpl();
-
- ~VCLXDialog();
-
- // XInterface
- DECLARE_XINTERFACE()
-
- // XTypeProvider
- DECLARE_XTYPEPROVIDER()
-
- // XComponent
- void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException);
-
- // VclWindowPeer
- virtual void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
-
- // VCLXWindow
- void ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent );
-
- // ::com::sun::star::awt::XDialog
- void SAL_CALL setTitle( const ::rtl::OUString& Title ) throw(::com::sun::star::uno::RuntimeException);
- ::rtl::OUString SAL_CALL getTitle() throw(::com::sun::star::uno::RuntimeException);
- sal_Int16 SAL_CALL execute() throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL endExecute() throw(::com::sun::star::uno::RuntimeException);
-
- // ::com::sun::star::awt::XLayoutContainer
- virtual void SAL_CALL allocateArea( const css::awt::Rectangle &rArea )
- throw (css::uno::RuntimeException);
-
- void resizedCb();
-
- static void ImplGetPropertyIds( std::list< sal_uInt16 > &/*aIds*/ )
- {
- }
- virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
-
-
-public:
- VCLXDialog();
-
- // ::com::sun::star::awt::XDialog2
- void SAL_CALL endDialog( sal_Int32 nResult ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL setHelpId( const rtl::OUString& id ) throw(::com::sun::star::uno::RuntimeException);
-
-};
-
-} // namespace layoutimpl
-
-#endif /* LAYOUT_AWT_VCLXDIALOG_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxfixedline.cxx b/toolkit/source/awt/vclxfixedline.cxx
deleted file mode 100644
index 1d51defe2d7d..000000000000
--- a/toolkit/source/awt/vclxfixedline.cxx
+++ /dev/null
@@ -1,127 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include "vclxfixedline.hxx"
-
-#include <com/sun/star/awt/PosSize.hpp>
-#include <toolkit/helper/property.hxx>
-#include <toolkit/helper/vclunohelper.hxx>
-#include <tools/debug.hxx>
-#include <vcl/fixed.hxx>
-#include <vcl/svapp.hxx>
-
-#include "forward.hxx"
-
-namespace layoutimpl
-{
-
-using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::awt;
-using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::beans;
-using namespace ::com::sun::star;
-
-DBG_NAME( VCLXFixedLine )
-
-VCLXFixedLine::VCLXFixedLine()
- : VCLXWindow()
-{
- DBG_CTOR( VCLXFixedLine, NULL );
-}
-
-VCLXFixedLine::~VCLXFixedLine()
-{
- DBG_DTOR( VCLXFixedLine, NULL );
-}
-
-IMPLEMENT_FORWARD_XTYPEPROVIDER1( VCLXFixedLine, VCLXWindow );
-
-void SAL_CALL VCLXFixedLine::dispose() throw(RuntimeException)
-{
- {
- SolarMutexGuard aGuard;
-
- EventObject aDisposeEvent;
- aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this);
- }
-
- VCLXWindow::dispose();
-}
-
-::com::sun::star::awt::Size SAL_CALL VCLXFixedLine::getMinimumSize()
- throw(::com::sun::star::uno::RuntimeException)
-{
- return awt::Size( 8, 8 );
-}
-
-void VCLXFixedLine::ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent )
-{
- SolarMutexGuard aGuard;
-
- VCLXWindow::ProcessWindowEvent( _rVclWindowEvent );
-}
-
-void SAL_CALL VCLXFixedLine::setProperty( const ::rtl::OUString& PropertyName, const Any &Value ) throw(RuntimeException)
-{
- SolarMutexGuard aGuard;
-
- if ( GetWindow() )
- {
-/*
- sal_uInt16 nPropertyId = GetPropertyId( PropertyName );
- switch ( nPropertyId )
- {
- default:
-*/
- VCLXWindow::setProperty( PropertyName, Value );
-// }
- }
-}
-
-Any SAL_CALL VCLXFixedLine::getProperty( const ::rtl::OUString& PropertyName ) throw(RuntimeException)
-{
- SolarMutexGuard aGuard;
-
- Any aReturn;
- if ( GetWindow() )
- {
-/*
- sal_uInt16 nPropertyId = GetPropertyId( PropertyName );
- switch ( nPropertyId )
- {
- default:
-*/
- aReturn = VCLXWindow::getProperty( PropertyName );
- // }
- }
- return aReturn;
-}
-
-} // namespace layoutimpl
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxfixedline.hxx b/toolkit/source/awt/vclxfixedline.hxx
deleted file mode 100644
index 8bd26f5ecc0b..000000000000
--- a/toolkit/source/awt/vclxfixedline.hxx
+++ /dev/null
@@ -1,78 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef LAYOUT_AWT_VCLXFIXEDLINE_HXX
-#define LAYOUT_AWT_VCLXFIXEDLINE_HXX
-
-#include <comphelper/uno3.hxx>
-#include <toolkit/awt/vclxwindow.hxx>
-
-/* We just provide our own FixedLine, because default has no width... */
-
-class FixedLine;
-
-namespace layoutimpl
-{
-
-class VCLXFixedLine :public VCLXWindow
-{
-public:
- VCLXFixedLine();
-
-protected:
- ~VCLXFixedLine();
-
- // XInterface
- // DECLARE_XINTERFACE()
-
- // XTypeProvider
- DECLARE_XTYPEPROVIDER()
-
- // XComponent
- void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException);
-
- virtual ::com::sun::star::awt::Size SAL_CALL getMinimumSize()
- throw(::com::sun::star::uno::RuntimeException);
-
- // VclWindowPeer
- virtual void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
-
- // VCLXWindow
- void ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent );
-
-private:
- VCLXFixedLine( const VCLXFixedLine& ); // never implemented
- VCLXFixedLine& operator=( const VCLXFixedLine& ); // never implemented
-};
-
-} // namespace layoutimpl
-
-#endif /* LAYOUT_AWT_VCLXFIXEDLINE_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxplugin.cxx b/toolkit/source/awt/vclxplugin.cxx
deleted file mode 100644
index de3737897738..000000000000
--- a/toolkit/source/awt/vclxplugin.cxx
+++ /dev/null
@@ -1,79 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include "vclxplugin.hxx"
-
-#include <com/sun/star/awt/PosSize.hpp>
-#include <toolkit/helper/convert.hxx>
-#include <toolkit/helper/property.hxx>
-#include <vcl/ctrl.hxx>
-#include <vcl/svapp.hxx>
-
-#include "forward.hxx"
-
-namespace layoutimpl
-{
-
-using namespace ::com::sun::star;
-
-VCLXPlugin::VCLXPlugin( Window *p, WinBits b )
- : VCLXWindow()
- , mpWindow( p )
- , mpPlugin( 0 )
- , mStyle( b )
-{
-}
-
-VCLXPlugin::~VCLXPlugin()
-{
-}
-
-void SAL_CALL VCLXPlugin::dispose() throw(uno::RuntimeException)
-{
- {
- SolarMutexGuard aGuard;
-
- lang::EventObject aDisposeEvent;
- aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this);
- }
-
- VCLXWindow::dispose();
-}
-
-awt::Size SAL_CALL VCLXPlugin::getMinimumSize()
- throw(::com::sun::star::uno::RuntimeException)
-{
- SolarMutexGuard aGuard;
- if ( mpPlugin )
- return AWTSize( mpPlugin->GetSizePixel() );
- return awt::Size();
-}
-
-} // namespace layoutimpl
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxplugin.hxx b/toolkit/source/awt/vclxplugin.hxx
deleted file mode 100644
index 1b838a2820c5..000000000000
--- a/toolkit/source/awt/vclxplugin.hxx
+++ /dev/null
@@ -1,68 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef LAYOUT_AWT_VCLXPLUGIN_HXX
-#define LAYOUT_AWT_VCLXPLUGIN_HXX
-
-#include <toolkit/awt/vclxwindow.hxx>
-#include <tools/wintypes.hxx>
-
-class Control;
-namespace layoutimpl
-{
-
-namespace css = ::com::sun::star;
-
-class VCLXPlugin : public VCLXWindow
-{
-public:
- Window *mpWindow;
- ::Control *mpPlugin;
- WinBits mStyle;
-
- VCLXPlugin( Window *p, WinBits b );
-
-protected:
- ~VCLXPlugin();
-
- // XComponent
- void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException);
-
- virtual ::com::sun::star::awt::Size SAL_CALL getMinimumSize()
- throw(::com::sun::star::uno::RuntimeException);
-
-private:
- VCLXPlugin( VCLXPlugin const & );
- VCLXPlugin& operator=( VCLXPlugin const & );
-};
-
-} // namespace layoutimpl
-
-#endif /* LAYOUT_AWT_VCLXPLUGIN_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxscroller.cxx b/toolkit/source/awt/vclxscroller.cxx
deleted file mode 100644
index 407b7552eeec..000000000000
--- a/toolkit/source/awt/vclxscroller.cxx
+++ /dev/null
@@ -1,204 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include "vclxscroller.hxx"
-
-#include <assert.h>
-#include <com/sun/star/awt/PosSize.hpp>
-#include <com/sun/star/awt/ScrollBarOrientation.hpp>
-#include <sal/macros.h>
-#include <toolkit/helper/property.hxx>
-#include <tools/debug.hxx>
-#include <vcl/scrbar.hxx>
-#include <vcl/svapp.hxx>
-
-#include "forward.hxx"
-
-namespace layoutimpl
-{
-
-using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::awt;
-using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::beans;
-using namespace ::com::sun::star;
-
-DBG_NAME( VCLXScroller )
-
-VCLXScroller::VCLXScroller()
- : VCLXWindow()
- , Bin()
-{
- DBG_CTOR( VCLXScroller, NULL );
- mpHorScrollBar = mpVerScrollBar = 0;
-}
-
-VCLXScroller::~VCLXScroller()
-{
- DBG_DTOR( VCLXScroller, NULL );
-}
-
-IMPLEMENT_2_FORWARD_XINTERFACE1( VCLXScroller, VCLXWindow, Container );
-
-IMPLEMENT_FORWARD_XTYPEPROVIDER1( VCLXScroller, VCLXWindow );
-
-void SAL_CALL VCLXScroller::dispose() throw(RuntimeException)
-{
- {
- SolarMutexGuard aGuard;
-
- EventObject aDisposeEvent;
- aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this);
-// maTabListeners.disposeAndClear( aDisposeEvent );
- }
-
- VCLXWindow::dispose();
-}
-
-void VCLXScroller::ensureScrollBars()
-{
-
- if ( !mpVerScrollBar )
- {
- mpVerScrollBar = new ScrollBar( GetWindow() , WB_VERT );
- mpVerScrollBar->SetLineSize( 4 );
- mpVerScrollBar->SetPageSize( 15 );
- mpVerScrollBar->Show();
- mpVerScrollBar->SetScrollHdl( LINK( this, VCLXScroller, ScrollHdl ) );
- }
- if ( !mpHorScrollBar )
- {
- mpHorScrollBar = new ScrollBar( GetWindow() , WB_HORZ );
- mpHorScrollBar->SetLineSize( 4 );
- mpHorScrollBar->SetPageSize( 15 );
- mpHorScrollBar->Show();
- mpHorScrollBar->SetScrollHdl( LINK( this, VCLXScroller, ScrollHdl ) );
- } // mpContent = new FixedImage( this, ImplGetWinBits( WindowAttributes, 0 ) );
-
-}
-
-void SAL_CALL VCLXScroller::allocateArea(
- const ::com::sun::star::awt::Rectangle &rArea )
- throw (::com::sun::star::uno::RuntimeException)
-{
- ensureScrollBars(); // shouldn't be needed
-
- maAllocation = rArea;
- setPosSize( rArea.X, rArea.Y, rArea.Width, rArea.Height, PosSize::POSSIZE );
-
- mpHorScrollBar->SetRangeMin( 0 );
- mpHorScrollBar->SetRangeMax( SAL_MAX( maChildRequisition.Width - rArea.Width, 0 ) );
- mpVerScrollBar->SetRangeMin( 0 );
- mpVerScrollBar->SetRangeMax( SAL_MAX( maChildRequisition.Height - rArea.Height, 0 ) );
-
- int thumbX = mpHorScrollBar->GetThumbPos();
- int thumbY = mpVerScrollBar->GetThumbPos();
- int thumbWidth = mpVerScrollBar->GetSizePixel().getWidth();
- int thumbHeight = mpHorScrollBar->GetSizePixel().getHeight();
-
- mpHorScrollBar->SetPosSizePixel( rArea.X, rArea.Y + rArea.Height - thumbHeight - 2,
- rArea.Width - thumbWidth, thumbHeight );
- mpVerScrollBar->SetPosSizePixel( rArea.X + rArea.Width - thumbWidth - 2, rArea.Y-2,
- thumbWidth, rArea.Height - thumbHeight );
-
- awt::Rectangle childRect( rArea.X - thumbX, rArea.Y - thumbY,
- SAL_MAX( maChildRequisition.Width, rArea.Width ) - thumbWidth - 4,
- SAL_MAX( maChildRequisition.Height, rArea.Height ) - thumbHeight - 4 );
- if ( mxChild.is() )
- allocateChildAt( mxChild, childRect );
-}
-
-#define MAX_CHILD_REQ 40
-::com::sun::star::awt::Size SAL_CALL VCLXScroller::getMinimumSize()
- throw(::com::sun::star::uno::RuntimeException)
-{
- ensureScrollBars();
- assert( mpHorScrollBar && mpVerScrollBar );
- awt::Size childSize = Bin::getMinimumSize();
- int thumbWidth = mpVerScrollBar->GetSizePixel().getWidth();
- int thumbHeight = mpHorScrollBar->GetSizePixel().getHeight();
- maRequisition = awt::Size(
- SAL_MIN( MAX_CHILD_REQ, childSize.Width ) + thumbWidth,
- SAL_MIN( MAX_CHILD_REQ, childSize.Height ) + thumbHeight );
- return maRequisition;
-}
-
-void VCLXScroller::ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent )
-{
- VCLXWindow::ProcessWindowEvent( _rVclWindowEvent );
-}
-
-void SAL_CALL VCLXScroller::setProperty( const ::rtl::OUString& PropertyName, const Any &Value ) throw(RuntimeException)
-{
- SolarMutexGuard aGuard;
-
- if ( GetWindow() )
- {
-/*
- sal_uInt16 nPropertyId = GetPropertyId( PropertyName );
- switch ( nPropertyId )
- {
- default:
-*/
- VCLXWindow::setProperty( PropertyName, Value );
-/*
- }
-*/
- }
-}
-
-Any SAL_CALL VCLXScroller::getProperty( const ::rtl::OUString& PropertyName ) throw(RuntimeException)
-{
- SolarMutexGuard aGuard;
-
- Any aReturn;
- if ( GetWindow() )
- {
-/*
- sal_uInt16 nPropertyId = GetPropertyId( PropertyName );
- switch ( nPropertyId )
- {
- default:
-*/
- aReturn = VCLXWindow::getProperty( PropertyName );
-
-// }
- }
- return aReturn;
-}
-
-IMPL_LINK( VCLXScroller, ScrollHdl, ScrollBar *, pScrollBar )
-{
- (void) pScrollBar;
- forceRecalc();
- return 0;
-}
-
-} // namespace layoutimpl
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxscroller.hxx b/toolkit/source/awt/vclxscroller.hxx
deleted file mode 100644
index 7252cd68563a..000000000000
--- a/toolkit/source/awt/vclxscroller.hxx
+++ /dev/null
@@ -1,90 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef LAYOUT_AWT_VCLXSCROLLER_HXX
-#define LAYOUT_AWT_VCLXSCROLLER_HXX
-
-#include <comphelper/uno3.hxx>
-#include <layout/core/bin.hxx>
-#include <toolkit/awt/vclxwindow.hxx>
-
-class ScrollBar;
-class FixedImage;
-
-namespace layoutimpl
-{
-
-class VCLXScroller :public VCLXWindow
- ,public Bin
-{
-public:
- VCLXScroller();
-
-protected:
- ~VCLXScroller();
-
- // XInterface
- DECLARE_XINTERFACE()
-
- // XTypeProvider
- DECLARE_XTYPEPROVIDER()
-
- // XComponent
- void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException);
-
- // ::com::sun::star::awt::XLayoutContainer
- virtual void SAL_CALL allocateArea( const ::com::sun::star::awt::Rectangle &rArea )
- throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::awt::Size SAL_CALL getMinimumSize()
- throw(::com::sun::star::uno::RuntimeException);
-
- // VclWindowPeer
- virtual void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
-
- // VCLXWindow
- void ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent );
-
-private:
- VCLXScroller( const VCLXScroller& ); // never implemented
- VCLXScroller& operator=( const VCLXScroller& ); // never implemented
-
- // because the underlying window is only setup-ed after construction, init
- // scrollbars at play-time
- void ensureScrollBars();
-
- FixedImage *mpContent; // dummy
- ScrollBar *mpHorScrollBar, *mpVerScrollBar;
- DECL_LINK( ScrollHdl, ScrollBar* );
-};
-
-} // namespace layoutimpl
-
-#endif /* LAYOUT_AWT_VCLXSCROLLER_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxsplitter.cxx b/toolkit/source/awt/vclxsplitter.cxx
deleted file mode 100644
index a0b67e2ca823..000000000000
--- a/toolkit/source/awt/vclxsplitter.cxx
+++ /dev/null
@@ -1,249 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include "vclxsplitter.hxx"
-
-#include <assert.h>
-#include <com/sun/star/awt/PosSize.hpp>
-#include <sal/macros.h>
-#include <toolkit/helper/property.hxx>
-#include <toolkit/helper/vclunohelper.hxx>
-#include <vcl/split.hxx>
-#include <vcl/svapp.hxx>
-
-#include "forward.hxx"
-
-namespace layoutimpl
-{
-
-using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::awt;
-using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::beans;
-using namespace ::com::sun::star;
-
-VCLXSplitter::ChildProps::ChildProps( VCLXSplitter::ChildData *pData )
-{
- addProp( RTL_CONSTASCII_USTRINGPARAM( "Shrink" ),
- ::getCppuType( static_cast< const rtl::OUString* >( NULL ) ),
- &(pData->mbShrink) );
-}
-
-VCLXSplitter::ChildData::ChildData( uno::Reference< awt::XLayoutConstrains > const& xChild )
- : Box_Base::ChildData( xChild )
- , mbShrink( false )
-{
-}
-
-VCLXSplitter::ChildData*
-VCLXSplitter::createChild( uno::Reference< awt::XLayoutConstrains > const& xChild )
-{
- return new ChildData( xChild );
-}
-
-VCLXSplitter::ChildProps*
-VCLXSplitter::createChildProps( Box_Base::ChildData *pData )
-{
- return new ChildProps( static_cast<VCLXSplitter::ChildData*> ( pData ) );
-}
-
-
-DBG_NAME( VCLXSplitter );
-
-VCLXSplitter::VCLXSplitter( bool bHorizontal )
- : VCLXWindow()
- , Box_Base()
-{
- DBG_CTOR( VCLXSplitter, NULL );
- mnHandleRatio = 0.5;
- mbHandlePressed = false;
- mbHorizontal = bHorizontal;
- mpSplitter = NULL;
-}
-
-VCLXSplitter::~VCLXSplitter()
-{
- DBG_DTOR( VCLXSplitter, NULL );
-}
-
-IMPLEMENT_2_FORWARD_XINTERFACE1( VCLXSplitter, VCLXWindow, Container );
-
-IMPLEMENT_FORWARD_XTYPEPROVIDER1( VCLXSplitter, VCLXWindow );
-
-VCLXSplitter::ChildData*
-VCLXSplitter::getChild( int i )
-{
- if ( maChildren.size() && i == 0 )
- return static_cast<VCLXSplitter::ChildData*>( maChildren.front() );
- else if ( maChildren.size() > 1 && i == 1 )
- return static_cast<VCLXSplitter::ChildData*>( maChildren.back() );
- return 0;
-}
-
-void SAL_CALL VCLXSplitter::dispose() throw(RuntimeException)
-{
- {
- SolarMutexGuard aGuard;
-
- EventObject aDisposeEvent;
- aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this);
-// maTabListeners.disposeAndClear( aDisposeEvent );
- }
-
- VCLXWindow::dispose();
-}
-
-void VCLXSplitter::ensureSplitter()
-{
- if ( !mpSplitter )
- {
- mpSplitter = new Splitter( GetWindow() , mbHorizontal ? WB_HORZ : WB_VERT );
- mpSplitter->Show();
- mpSplitter->SetEndSplitHdl( LINK( this, VCLXSplitter, HandleMovedHdl ) );
- }
-}
-
-void SAL_CALL VCLXSplitter::addChild(
- const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XLayoutConstrains > &xChild )
- throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::awt::MaxChildrenException)
-{
- if ( maChildren.size() == 2 )
- throw css::awt::MaxChildrenException();
- Box_Base::addChild( xChild );
-}
-
-void SAL_CALL VCLXSplitter::allocateArea(
- const ::com::sun::star::awt::Rectangle &rArea )
- throw (::com::sun::star::uno::RuntimeException)
-{
- ensureSplitter(); // shouldn't be needed...
- getMinimumSize();
- int splitDiff;
- if ( mbHorizontal )
- splitDiff = rArea.Width - maAllocation.Width;
- else
- splitDiff = rArea.Height - maAllocation.Height;
-
- assert( mpSplitter );
- if ( splitDiff )
- mpSplitter->SetSplitPosPixel( mpSplitter->GetSplitPosPixel() + splitDiff/2 );
-
- maAllocation = rArea;
- int width = mbHorizontal ? rArea.Width : rArea.Height;
- int splitLen = 2;
- int splitPos = mpSplitter->GetSplitPosPixel();
- setPosSize( rArea.X, rArea.Y, rArea.Width, rArea.Height, PosSize::POSSIZE );
- if ( mbHorizontal )
- mpSplitter->SetPosSizePixel( splitPos, 0, splitLen, rArea.Height, PosSize::POSSIZE );
- else
- mpSplitter->SetPosSizePixel( 0, splitPos, rArea.Width, splitLen, PosSize::POSSIZE );
- mpSplitter->SetDragRectPixel( ::Rectangle( 0, 0, rArea.Width, rArea.Height ) );
- int leftWidth = splitPos;
- int rightWidth = width - splitPos;
-
- if ( getChild( 0 ) && getChild( 0 )->mxChild.is() )
- {
- awt::Rectangle childRect( 0, 0, rArea.Width, rArea.Height );
-
- if ( mbHorizontal )
- childRect.Width = leftWidth - 2;
- else
- childRect.Height = leftWidth - 2;
- allocateChildAt( getChild( 0 )->mxChild, childRect );
- }
- if ( getChild( 0 ) && getChild( 0 )->mxChild.is() )
- {
- awt::Rectangle childRect( 0, 0, rArea.Width, rArea.Height );
-
- if ( mbHorizontal )
- {
- childRect.X += leftWidth + splitLen + 2;
- childRect.Width = rightWidth;
- }
- else
- {
- childRect.Y += leftWidth + splitLen + 2;
- childRect.Height = rightWidth;
- }
- allocateChildAt( getChild( 1 )->mxChild, childRect );
- }
-}
-
-::com::sun::star::awt::Size SAL_CALL VCLXSplitter::getMinimumSize()
- throw(::com::sun::star::uno::RuntimeException)
-{
- ensureSplitter();
-
- awt::Size size( mbHorizontal ? 2 : 0, mbHorizontal ? 0 : 2 );
- for ( unsigned int i = 0; i < 2; i++ )
- {
- if ( getChild( i ) && getChild( i )->mxChild.is() )
- {
- awt::Size childSize = getChild( i )->mxChild->getMinimumSize();
- if ( mbHorizontal )
- {
- size.Width += childSize.Width;
- size.Height = SAL_MAX( size.Height, childSize.Height );
- }
- else
- {
- size.Width = SAL_MAX( size.Width, childSize.Width );
- size.Height += childSize.Height;
- }
- }
- }
-
- maRequisition = size;
- return size;
-}
-
-void VCLXSplitter::ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent )
-{
- VCLXWindow::ProcessWindowEvent( _rVclWindowEvent );
-}
-
-void SAL_CALL VCLXSplitter::setProperty( const ::rtl::OUString& PropertyName, const Any &Value ) throw(RuntimeException)
-{
- VCLXWindow::setProperty( PropertyName, Value );
-}
-
-Any SAL_CALL VCLXSplitter::getProperty( const ::rtl::OUString& PropertyName ) throw(RuntimeException)
-{
- return VCLXWindow::getProperty( PropertyName );
-}
-
-IMPL_LINK( VCLXSplitter, HandleMovedHdl, Splitter *, pSplitter )
-{
- (void) pSplitter;
- forceRecalc();
- return 0;
-}
-
-} // namespace layoutimpl
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxsplitter.hxx b/toolkit/source/awt/vclxsplitter.hxx
deleted file mode 100644
index 2880e70993ef..000000000000
--- a/toolkit/source/awt/vclxsplitter.hxx
+++ /dev/null
@@ -1,124 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef LAYOUT_AWT_VCLXSPLITTER_HXX
-#define LAYOUT_AWT_VCLXSPLITTER_HXX
-
-#include <com/sun/star/awt/MaxChildrenException.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <comphelper/uno3.hxx>
-#include <layout/core/box-base.hxx>
-#include <toolkit/awt/vclxwindow.hxx>
-
-class Splitter;
-
-namespace layoutimpl
-{
-
-class VCLXSplitter :public VCLXWindow
- ,public Box_Base
-{
-private:
- VCLXSplitter( const VCLXSplitter& ); // never implemented
- VCLXSplitter& operator=( const VCLXSplitter& ); // never implemented
-
-public:
- VCLXSplitter( bool bHorizontal );
-
-protected:
- ~VCLXSplitter();
-
- // XInterface
- DECLARE_XINTERFACE()
-
- // XTypeProvider
- DECLARE_XTYPEPROVIDER()
-
- // XComponent
- void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
-
- // ::com::sun::star::awt::XLayoutContainer
- virtual void SAL_CALL addChild(
- const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XLayoutConstrains >& Child )
- throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::awt::MaxChildrenException);
-
- virtual void SAL_CALL allocateArea( const ::com::sun::star::awt::Rectangle &rArea )
- throw (::com::sun::star::uno::RuntimeException);
-
- virtual ::com::sun::star::awt::Size SAL_CALL getMinimumSize()
- throw(::com::sun::star::uno::RuntimeException);
-
- // unimplemented:
- virtual sal_Bool SAL_CALL hasHeightForWidth()
- throw(css::uno::RuntimeException)
- { return false; }
- virtual sal_Int32 SAL_CALL getHeightForWidth( sal_Int32 /*nWidth*/ )
- throw(css::uno::RuntimeException)
- { return maRequisition.Height; }
-
- // VclWindowPeer
- virtual void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
-
- // VCLXWindow
- void ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent );
-
-public:
- // Maps page ids to child references
- struct ChildData : public Box_Base::ChildData
- {
- sal_Bool mbShrink;
- ChildData( css::uno::Reference< css::awt::XLayoutConstrains > const& xChild );
- };
-
- struct ChildProps : public Box_Base::ChildProps
- {
- ChildProps( VCLXSplitter::ChildData *pData );
- };
-
-protected:
-
- ChildData *createChild( css::uno::Reference< css::awt::XLayoutConstrains > const& xChild );
- ChildProps *createChildProps( Box_Base::ChildData* pData );
-
- ChildData* getChild( int i );
-
- float mnHandleRatio;
- bool mbHandlePressed;
-
- DECL_LINK( HandleMovedHdl, Splitter* );
- bool mbHorizontal;
- Splitter *mpSplitter;
- void ensureSplitter();
-};
-
-} // namespace layoutimpl
-
-#endif /* LAYOUT_AWT_VCLXSPLITTER_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxtabcontrol.cxx b/toolkit/source/awt/vclxtabcontrol.cxx
deleted file mode 100644
index 221cbe915678..000000000000
--- a/toolkit/source/awt/vclxtabcontrol.cxx
+++ /dev/null
@@ -1,505 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include <vclxtabcontrol.hxx>
-
-#include <com/sun/star/awt/PosSize.hpp>
-#include <sal/macros.h>
-#include <toolkit/helper/property.hxx>
-#include <toolkit/helper/vclunohelper.hxx>
-#include <vcl/tabctrl.hxx>
-#include <vcl/tabpage.hxx>
-#include <vcl/svapp.hxx>
-
-#include "forward.hxx"
-
-namespace layoutimpl
-{
-
-using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::beans;
-using namespace ::com::sun::star;
-
-VCLXTabControl::ChildProps::ChildProps( VCLXTabControl::ChildData *pData )
-{
- addProp( RTL_CONSTASCII_USTRINGPARAM( "Title" ),
- ::getCppuType( static_cast< const rtl::OUString* >( NULL ) ),
- &(pData->maTitle) );
-}
-
-VCLXTabControl::ChildData::ChildData( uno::Reference< awt::XLayoutConstrains > const& xChild )
- : Box_Base::ChildData( xChild )
- , maTitle()
-{
-}
-
-VCLXTabControl::ChildData*
-VCLXTabControl::createChild( uno::Reference< awt::XLayoutConstrains > const& xChild )
-{
- return new ChildData( xChild );
-}
-
-VCLXTabControl::ChildProps*
-VCLXTabControl::createChildProps( Box_Base::ChildData *pData )
-{
- return new ChildProps( static_cast<VCLXTabControl::ChildData*> ( pData ) );
-}
-
-DBG_NAME( VCLXTabControl );
-
-#if !defined (__GNUC__)
-#define __PRETTY_FUNCTION__ __FUNCTION__
-#endif /* !__GNUC__ */
-
-VCLXTabControl::VCLXTabControl()
- : VCLXWindow()
- , VCLXTabControl_Base()
- , Box_Base()
- , mTabId (1)
- , bRealized (false)
-{
-#ifndef __SUNPRO_CC
- OSL_TRACE ("\n********%s:%x", __PRETTY_FUNCTION__, this);
-#endif
- DBG_CTOR( VCLXTabControl, NULL );
-}
-
-VCLXTabControl::~VCLXTabControl()
-{
- DBG_DTOR( VCLXTabControl, NULL );
-}
-
-IMPLEMENT_2_FORWARD_XINTERFACE2( VCLXTabControl, VCLXWindow, Container, VCLXTabControl_Base );
-
-IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXTabControl, VCLXWindow, VCLXTabControl_Base );
-
-void SAL_CALL VCLXTabControl::dispose( ) throw(uno::RuntimeException)
-{
- {
- SolarMutexGuard aGuard;
-
- EventObject aDisposeEvent;
- aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this);
-// maTabListeners.disposeAndClear( aDisposeEvent );
- }
-
- VCLXWindow::dispose();
-}
-
-
-TabControl *VCLXTabControl::getTabControl() const throw (uno::RuntimeException)
-{
- TabControl *pTabControl = static_cast< TabControl* >( GetWindow() );
- if ( pTabControl )
- return pTabControl;
- throw uno::RuntimeException();
-}
-
-sal_Int32 SAL_CALL VCLXTabControl::insertTab() throw (uno::RuntimeException)
-{
- TabControl *pTabControl = getTabControl();
- sal_uInt16 id = sal::static_int_cast< sal_uInt16 >( mTabId++ );
- rtl::OUString title (RTL_CONSTASCII_USTRINGPARAM( "" ) );
- pTabControl->InsertPage( id, title.getStr(), TAB_APPEND );
- pTabControl->SetTabPage( id, new TabPage( pTabControl ) );
- return id;
-}
-
-void SAL_CALL VCLXTabControl::removeTab( sal_Int32 ID ) throw (uno::RuntimeException, IndexOutOfBoundsException)
-{
- TabControl *pTabControl = getTabControl();
- if ( pTabControl->GetTabPage( sal::static_int_cast< sal_uInt16 >( ID ) ) == NULL )
- throw IndexOutOfBoundsException();
- pTabControl->RemovePage( sal::static_int_cast< sal_uInt16 >( ID ) );
-}
-
-void SAL_CALL VCLXTabControl::activateTab( sal_Int32 ID ) throw (uno::RuntimeException, IndexOutOfBoundsException)
-{
- TabControl *pTabControl = getTabControl();
- if ( pTabControl->GetTabPage( sal::static_int_cast< sal_uInt16 >( ID ) ) == NULL )
- throw IndexOutOfBoundsException();
- pTabControl->SelectTabPage( sal::static_int_cast< sal_uInt16 >( ID ) );
-}
-
-sal_Int32 SAL_CALL VCLXTabControl::getActiveTabID() throw (uno::RuntimeException)
-{
- return getTabControl()->GetCurPageId( );
-}
-
-void SAL_CALL VCLXTabControl::addTabListener( const uno::Reference< awt::XTabListener >& xListener ) throw (uno::RuntimeException)
-{
- for ( std::list< uno::Reference
- < awt::XTabListener > >::const_iterator it
- = mxTabListeners.begin(); it != mxTabListeners.end(); ++it )
- {
- if ( *it == xListener )
- // already added
- return;
- }
- mxTabListeners.push_back( xListener );
-}
-
-void SAL_CALL VCLXTabControl::removeTabListener( const uno::Reference< awt::XTabListener >& xListener ) throw (uno::RuntimeException)
-{
- for ( std::list< uno::Reference
- < awt::XTabListener > >::iterator it
- = mxTabListeners.begin(); it != mxTabListeners.end(); ++it )
- {
- if ( *it == xListener )
- {
- mxTabListeners.erase( it );
- break;
- }
- }
-}
-
-void SAL_CALL VCLXTabControl::setTabProps( sal_Int32 ID, const uno::Sequence< NamedValue >& Properties ) throw (uno::RuntimeException, IndexOutOfBoundsException)
-{
- TabControl *pTabControl = getTabControl();
- if ( pTabControl->GetTabPage( sal::static_int_cast< sal_uInt16 >( ID ) ) == NULL )
- throw IndexOutOfBoundsException();
-
- for ( int i = 0; i < Properties.getLength(); i++ )
- {
- const rtl::OUString &name = Properties[i].Name;
- const uno::Any &value = Properties[i].Value;
-
- if ( name == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ) )
- {
- rtl::OUString title = value.get<rtl::OUString>();
- pTabControl->SetPageText( sal::static_int_cast< sal_uInt16 >( ID ), title.getStr() );
- }
- }
-}
-
-uno::Sequence< NamedValue > SAL_CALL VCLXTabControl::getTabProps( sal_Int32 ID )
- throw (IndexOutOfBoundsException, uno::RuntimeException)
-{
- TabControl *pTabControl = getTabControl();
- if ( pTabControl->GetTabPage( sal::static_int_cast< sal_uInt16 >( ID ) ) == NULL )
- throw IndexOutOfBoundsException();
-
-#define ADD_PROP( seq, i, name, val ) { \
- NamedValue value; \
- value.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( name ) ); \
- value.Value = uno::makeAny( val ); \
- seq[i] = value; \
- }
-
- uno::Sequence< NamedValue > props( 2 );
- ADD_PROP( props, 0, "Title", rtl::OUString( pTabControl->GetPageText( sal::static_int_cast< sal_uInt16 >( ID ) ) ) );
- ADD_PROP( props, 1, "Position", pTabControl->GetPagePos( sal::static_int_cast< sal_uInt16 >( ID ) ) );
-#undef ADD_PROP
- return props;
-}
-
-// TODO: draw tab border here
-void SAL_CALL VCLXTabControl::draw( sal_Int32 nX, sal_Int32 nY ) throw(uno::RuntimeException)
-{
- SolarMutexGuard aGuard;
-
- TabControl *pTabControl = getTabControl();
- TabPage *pTabPage = pTabControl->GetTabPage( sal::static_int_cast< sal_uInt16 >( getActiveTabID() ) );
- if ( pTabPage )
- {
- ::Point aPos( nX, nY );
- ::Size aSize = pTabPage->GetSizePixel();
-
- OutputDevice* pDev = VCLUnoHelper::GetOutputDevice( getGraphics() );
- aPos = pDev->PixelToLogic( aPos );
- aSize = pDev->PixelToLogic( aSize );
-
- pTabPage->Draw( pDev, aPos, aSize, 0 );
- }
-
- VCLXWindow::draw( nX, nY );
-}
-
-void SAL_CALL VCLXTabControl::addChild(
- const uno::Reference< awt::XLayoutConstrains > &xChild )
- throw (uno::RuntimeException, awt::MaxChildrenException)
-{
- mIdMap[ xChild ] = insertTab();
- Box_Base::addChild( xChild );
-}
-
-void SAL_CALL VCLXTabControl::removeChild( const uno::Reference< awt::XLayoutConstrains > &xChild )
- throw (uno::RuntimeException)
-{
- removeTab( mIdMap[xChild] );
- mIdMap[ xChild ] = -1;
- Box_Base::removeChild( xChild );
-}
-
-static void setChildrenVisible( uno::Reference < awt::XLayoutConstrains > xChild, bool visible )
-{
- uno::Reference< awt::XWindow > xWin( xChild, uno::UNO_QUERY);
- if ( xWin.is() )
- {
- xWin->setVisible( visible );
- }
-
- uno::Reference < awt::XLayoutContainer > xCont( xChild, uno::UNO_QUERY );
- if ( xCont.is())
- {
- uno::Sequence< uno::Reference < awt::XLayoutConstrains > > children = xCont->getChildren();
- for ( int i = 0; i < children.getLength(); i++ )
- {
- setChildrenVisible( children[i], visible );
- }
- }
-}
-
-void SAL_CALL VCLXTabControl::allocateArea (awt::Rectangle const &area)
- throw (uno::RuntimeException)
-{
-#ifndef __SUNPRO_CC
- OSL_TRACE ("\n%s", __PRETTY_FUNCTION__);
-#endif
- maAllocation = area;
-
- TabControl *pTabControl = getTabControl();
-
-// FIXME: this is wrong. We just want to set tab controls pos/size for
-// the tabs menu, otherwise, it gets events that should go to children
-// (I guess we could solve this by making the tabcontrol as the actual
-// XWindow parent of its children, when importing...) Not sure about
-// TabPage drawing... That doesn't work on gtk+; just ignoring that.
-// LATER: Nah, the proper fix is to get the XWindow hierarchy
-// straight.
-
- awt::Size currentSize = getSize();
- awt::Size requestedSize (area.Width, area.Height);
-// requestedSize.Height = getHeightForWidth( area.Width );
-
- awt::Size minimumSize = getMinimumSize();
- if (requestedSize.Width < minimumSize.Width)
- requestedSize.Width = minimumSize.Width;
- if (requestedSize.Height < minimumSize.Height)
- requestedSize.Height = minimumSize.Height;
-
- Size pageSize = static_cast<TabControl*> (GetWindow ())->GetTabPageSizePixel ();
- awt::Size pageBasedSize (0, 0);
- pageBasedSize.Width = pageSize.Width ();
- pageBasedSize.Height = pageSize.Height ();
-
- const int wc = 0;
- const int hc = 20;
- static int pwc = 0;
- static int phc = 40;
-
- if (requestedSize.Width < pageBasedSize.Width)
- requestedSize.Width = pageBasedSize.Width + wc;
- if (requestedSize.Height < pageBasedSize.Height)
- requestedSize.Height = pageBasedSize.Height + hc;
-
- Window *parent = GetWindow()->GetParent();
- Size parentSize = parent->GetSizePixel();
-
-#ifndef __SUNPRO_CC
-#ifdef GCC_MAJOR
- OSL_TRACE ("\n%s", __PRETTY_FUNCTION__);
-#endif /* GCC_MAJOR */
- OSL_TRACE ("%s: cursize: %d ,%d", __FUNCTION__, currentSize.Width, currentSize.Height );
- OSL_TRACE ("%s: area: %d, %d", __FUNCTION__, area.Width, area.Height );
- OSL_TRACE ("%s: minimum: %d, %d", __FUNCTION__, minimumSize.Width, minimumSize.Height );
- OSL_TRACE ("%s: requestedSize: %d, %d", __FUNCTION__, requestedSize.Width, requestedSize.Height );
- OSL_TRACE ("%s: pageBasedSize: %d, %d", __FUNCTION__, pageBasedSize.Width, pageBasedSize.Height );
-#endif
-
- //bRealized = false;
- if (!bRealized)
- {
- setPosSize( area.X, area.Y, requestedSize.Width, requestedSize.Height, awt::PosSize::POSSIZE );
- bRealized = true;
- }
- else
- {
- if ( requestedSize.Width > currentSize.Width + 10)
- setPosSize( 0, 0, requestedSize.Width, 0, awt::PosSize::WIDTH );
- if ( requestedSize.Height > currentSize.Height + 10)
- setPosSize( 0, 0, 0, requestedSize.Height, awt::PosSize::HEIGHT );
- }
-
- if (pageBasedSize.Width > parentSize.Width ()
- || pageBasedSize.Height > parentSize.Height ())
- //parent->SetSizePixel ( Size (pageBasedSize.Width, pageBasedSize.Height));
- //parent->SetSizePixel ( Size (pageBasedSize.Width + pwc, pageBasedSize.Height + phc));
- parent->SetSizePixel ( Size (requestedSize.Width + pwc, requestedSize.Height + phc));
-
- // FIXME: we can save cycles by setting visibility more sensibly. Having
- // it here does makes it easier when changing tabs (just needs a recalc())
- unsigned i = 0;
- for ( std::list<Box_Base::ChildData *>::const_iterator it
- = maChildren.begin(); it != maChildren.end(); ++it, ++i )
- {
- ChildData *child = static_cast<VCLXTabControl::ChildData*> ( *it );
- uno::Reference
- < awt::XLayoutConstrains > xChild( child->mxChild );
- if ( xChild.is() )
- {
- uno::Reference< awt::XWindow > xWin( xChild, uno::UNO_QUERY );
- bool active = (i+1 == (unsigned) getActiveTabID());
-
- // HACK: since our layout:: container don't implement XWindow, we have no easy
- // way to set them invisible; lets just set all their children as such :P
- setChildrenVisible( xChild, active );
-
- if ( active )
- {
- ::Rectangle label_rect = pTabControl->GetTabBounds( sal::static_int_cast< sal_uInt16 >( i+1 ) );
- ::Rectangle page_rect = pTabControl->GetTabPageBounds( sal::static_int_cast< sal_uInt16 >( i+1 ) );
-
- awt::Rectangle childRect;
- childRect.X = page_rect.Left();
- childRect.Y = SAL_MAX( label_rect.Bottom(), page_rect.Top() );
- childRect.Width = page_rect.Right() - page_rect.Left();
- childRect.Height = page_rect.Bottom() - childRect.Y;
-
- allocateChildAt( xChild, childRect );
- }
- }
- }
-}
-
-awt::Size SAL_CALL VCLXTabControl::getMinimumSize()
- throw(uno::RuntimeException)
-{
- awt::Size requestedSize = VCLXWindow::getMinimumSize();
- awt::Size childrenSize( 0, 0 );
-
- TabControl* pTabControl = static_cast< TabControl* >( GetWindow() );
- if ( !pTabControl )
- return requestedSize;
-
- // calculate size to accomodate all children
- unsigned i = 0;
- for ( std::list<Box_Base::ChildData *>::const_iterator it
- = maChildren.begin(); it != maChildren.end(); ++it, ++i )
- {
- ChildData *child = static_cast<VCLXTabControl::ChildData*> ( *it );
- if ( child->mxChild.is() )
- {
- // set the title prop here...
- pTabControl->SetPageText( sal::static_int_cast< sal_uInt16 >( i+1 ), child->maTitle.getStr() );
-
- awt::Size childSize( child->mxChild->getMinimumSize() );
- childrenSize.Width = SAL_MAX( childSize.Width, childrenSize.Width );
- childrenSize.Height = SAL_MAX( childSize.Height, childrenSize.Height );
- }
- }
-
-#ifndef __SUNPRO_CC
-#ifdef GCC_MAJOR
- OSL_TRACE ("\n%s", __PRETTY_FUNCTION__);
-#endif /* GCC_MAJOR */
- OSL_TRACE ("%s: children: %d", __FUNCTION__, i);
- OSL_TRACE ("%s: childrenSize: %d, %d", __FUNCTION__, childrenSize.Width, childrenSize.Height );
-#endif
-
- requestedSize.Width += childrenSize.Width;
- requestedSize.Height += childrenSize.Height + 20;
-
- maRequisition = requestedSize;
- return requestedSize;
-}
-
-void VCLXTabControl::ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent )
-{
- SolarMutexClearableGuard aGuard;
- TabControl* pTabControl = static_cast< TabControl* >( GetWindow() );
- if ( !pTabControl )
- return;
-
- switch ( _rVclWindowEvent.GetId() )
- {
- case VCLEVENT_TABPAGE_ACTIVATE:
- forceRecalc();
- case VCLEVENT_TABPAGE_DEACTIVATE:
- case VCLEVENT_TABPAGE_INSERTED:
- case VCLEVENT_TABPAGE_REMOVED:
- case VCLEVENT_TABPAGE_REMOVEDALL:
- case VCLEVENT_TABPAGE_PAGETEXTCHANGED:
- {
- sal_uLong page = (sal_uLong) _rVclWindowEvent.GetData();
- for ( std::list< uno::Reference
- < awt::XTabListener > >::iterator it
- = mxTabListeners.begin(); it != mxTabListeners.end(); ++it )
- {
- uno::Reference
- < awt::XTabListener > listener = *it;
-
- switch ( _rVclWindowEvent.GetId() )
- {
-
- case VCLEVENT_TABPAGE_ACTIVATE:
- listener->activated( page );
- break;
- case VCLEVENT_TABPAGE_DEACTIVATE:
- listener->deactivated( page );
- break;
- case VCLEVENT_TABPAGE_INSERTED:
- listener->inserted( page );
- break;
- case VCLEVENT_TABPAGE_REMOVED:
- listener->removed( page );
- break;
- case VCLEVENT_TABPAGE_REMOVEDALL:
- for ( int i = 1; i < mTabId; i++)
- {
- if ( pTabControl->GetTabPage( sal::static_int_cast< sal_uInt16 >( i ) ) )
- listener->removed( i );
- }
- break;
- case VCLEVENT_TABPAGE_PAGETEXTCHANGED:
- listener->changed( page, getTabProps( page ) );
- break;
- }
- }
- break;
- }
- default:
- aGuard.clear();
- VCLXWindow::ProcessWindowEvent( _rVclWindowEvent );
- break;
- }
-}
-
-void SAL_CALL VCLXTabControl::setProperty( const ::rtl::OUString& PropertyName, const uno::Any &Value ) throw(uno::RuntimeException)
-{
- VCLXWindow::setProperty( PropertyName, Value );
-}
-
-uno::Any SAL_CALL VCLXTabControl::getProperty( const ::rtl::OUString& PropertyName ) throw(uno::RuntimeException)
-{
- return VCLXWindow::getProperty( PropertyName );
-}
-
-} // namespace layoutimpl
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxtabcontrol.hxx b/toolkit/source/awt/vclxtabcontrol.hxx
deleted file mode 100644
index 9b20182e7d16..000000000000
--- a/toolkit/source/awt/vclxtabcontrol.hxx
+++ /dev/null
@@ -1,146 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef LAYOUT_AWT_VCLXTABCONTROLLER_HXX
-#define LAYOUT_AWT_VCLXTABCONTROLLER_HXX
-
-#include <com/sun/star/awt/XSimpleTabController.hpp>
-#include <comphelper/uno3.hxx>
-#include <layout/core/box-base.hxx>
-#include <map>
-#include <toolkit/awt/vclxwindow.hxx>
-
-class TabControl;
-
-namespace layoutimpl
-{
-
-typedef ::cppu::ImplHelper1 < ::com::sun::star::awt::XSimpleTabController
- > VCLXTabControl_Base;
-
-class VCLXTabControl :public VCLXWindow
- ,public VCLXTabControl_Base
- ,public Box_Base
-{
- int mTabId;
- bool bRealized;
-
-public:
- VCLXTabControl();
-
-protected:
- ~VCLXTabControl();
-
- // XInterface
- DECLARE_XINTERFACE()
-
- // XTypeProvider
- DECLARE_XTYPEPROVIDER()
-
- // XComponent
- void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException);
-
- virtual void SAL_CALL draw( sal_Int32 nX, sal_Int32 nY ) throw (::com::sun::star::uno::RuntimeException);
-
- // XSimpleTabController
- virtual ::sal_Int32 SAL_CALL insertTab() throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeTab( ::sal_Int32 ID ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
-
- virtual void SAL_CALL setTabProps( ::sal_Int32 ID, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& Properties ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue > SAL_CALL getTabProps( ::sal_Int32 ID ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
-
- virtual void SAL_CALL activateTab( ::sal_Int32 ID ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- virtual ::sal_Int32 SAL_CALL getActiveTabID() throw (::com::sun::star::uno::RuntimeException);
-
- virtual void SAL_CALL addTabListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabListener >& Listener ) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeTabListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabListener >& Listener ) throw (::com::sun::star::uno::RuntimeException);
-
- // ::com::sun::star::awt::XLayoutContainer
- virtual void SAL_CALL addChild(
- const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XLayoutConstrains >& Child )
- throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::awt::MaxChildrenException);
- virtual void SAL_CALL removeChild( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XLayoutConstrains >& Child )
- throw (::com::sun::star::uno::RuntimeException);
-
- virtual void SAL_CALL allocateArea( const ::com::sun::star::awt::Rectangle &rArea )
- throw (::com::sun::star::uno::RuntimeException);
-
- virtual ::com::sun::star::awt::Size SAL_CALL getMinimumSize()
- throw(::com::sun::star::uno::RuntimeException);
-
- // unimplemented:
- virtual sal_Bool SAL_CALL hasHeightForWidth()
- throw(css::uno::RuntimeException)
- { return false; }
- virtual sal_Int32 SAL_CALL getHeightForWidth( sal_Int32 /*nWidth*/ )
- throw(css::uno::RuntimeException)
- { return maRequisition.Height; }
-
- // VclWindowPeer
- virtual void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
-
- // VCLXWindow
- void ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent );
-
-public:
- // Maps page ids to child references
- struct ChildData : public Box_Base::ChildData
- {
- rtl::OUString maTitle;
- ChildData( css::uno::Reference< css::awt::XLayoutConstrains > const& xChild );
- };
-
- struct ChildProps : public Box_Base::ChildProps
- {
- ChildProps( VCLXTabControl::ChildData *pData );
- };
-
- inline TabControl *getTabControl() const throw (::com::sun::star::uno::RuntimeException);
-
-protected:
- ChildData *createChild( css::uno::Reference< css::awt::XLayoutConstrains > const& xChild );
- ChildProps *createChildProps( Box_Base::ChildData* pData );
-
-
- std::map< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XLayoutConstrains >, sal_Int32 > mIdMap;
- // FIXME: we might want to use a Multiplexer
- std::list< ::com::sun::star::uno::Reference
- < ::com::sun::star::awt::XTabListener > > mxTabListeners;
-
-
-private:
- VCLXTabControl( const VCLXTabControl& ); // never implemented
- VCLXTabControl& operator=( const VCLXTabControl& ); // never implemented
-};
-
-} // namespace layoutimpl
-
-#endif /* LAYOUT_AWT_VCLXTABCONTROLLER_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxtabpage.cxx b/toolkit/source/awt/vclxtabpage.cxx
deleted file mode 100644
index c50e40ec331e..000000000000
--- a/toolkit/source/awt/vclxtabpage.cxx
+++ /dev/null
@@ -1,147 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include <vclxtabpage.hxx>
-
-#include "forward.hxx"
-
-#include <com/sun/star/awt/PosSize.hpp>
-#include <toolkit/helper/convert.hxx>
-#include <vcl/tabpage.hxx>
-#include <vcl/tabctrl.hxx>
-#include <vcl/svapp.hxx>
-
-#if !defined (__GNUC__)
-#define __PRETTY_FUNCTION__ __FUNCTION__
-#endif /* !__GNUC__ */
-
-namespace layoutimpl
-{
-
-using namespace ::com::sun::star;
-
-// XInterface
-IMPLEMENT_FORWARD_XINTERFACE2( VCLXTabPage, VCLXWindow, Bin );
-
-// XTypeProvider
-IMPLEMENT_FORWARD_XTYPEPROVIDER1( VCLXTabPage, VCLXWindow );
-
-VCLXTabPage::VCLXTabPage( Window *p )
- : VCLXWindow()
- , Bin()
- , bRealized( false )
-{
- /* FIXME: before Window is set, setLabel, setProperty->setImage
- * are silent no-ops. */
- p->SetComponentInterface( this );
-}
-
-VCLXTabPage::~VCLXTabPage()
-{
-}
-
-void SAL_CALL VCLXTabPage::dispose() throw(uno::RuntimeException)
-{
- {
- SolarMutexGuard aGuard;
-
- lang::EventObject aDisposeEvent;
- aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this);
- }
-
- VCLXWindow::dispose();
-}
-
-void SAL_CALL VCLXTabPage::allocateArea( awt::Rectangle const& area )
- throw (uno::RuntimeException)
-{
- awt::Size currentSize = getSize();
- awt::Size requestedSize = getMinimumSize();
- requestedSize.Height = getHeightForWidth( area.Width );
-
- if ( currentSize.Width > 0 && currentSize.Height > 0
- && requestedSize.Width > currentSize.Width )
- requestedSize.Width = currentSize.Width;
- if ( currentSize.Width > 0 && currentSize.Height > 0
- && requestedSize.Height > currentSize.Height )
- requestedSize.Height = currentSize.Height;
-
- // FIXME: missing destructor?
- if ( !GetWindow() )
- return;
-
- Size windowSize = GetWindow()->GetSizePixel();
- Window *parent = GetWindow()->GetParent();
- Size parentSize = parent->GetSizePixel();
-
- Point pos = GetWindow()->GetPosPixel();
-#ifndef __SUNPRO_CC
- OSL_TRACE ("\n%s", __PRETTY_FUNCTION__);
- OSL_TRACE ("%s: curpos: %d ,%d", __FUNCTION__, pos.X(), pos.Y() );
-
- OSL_TRACE ("%s: cursize: %d ,%d", __FUNCTION__, currentSize.Width, currentSize.Height );
- OSL_TRACE ("%s: area: %d, %d", __FUNCTION__, area.Width, area.Height );
- OSL_TRACE ("%s: requestedSize: %d, %d", __FUNCTION__, requestedSize.Width, requestedSize.Height );
- OSL_TRACE ("%s: parent: %d, %d", __FUNCTION__, parentSize.Width(), parentSize.Height() );
- OSL_TRACE ("%s: window: %d, %d", __FUNCTION__, windowSize.Width(), windowSize.Height() );
-#endif
-
- if ( !bRealized )
- {
- setPosSize( area.X, area.Y, requestedSize.Width, requestedSize.Height, awt::PosSize::SIZE );
- bRealized = true;
- }
- else
- {
- if ( requestedSize.Width > currentSize.Width + 10)
- setPosSize( 0, 0, requestedSize.Width, 0, awt::PosSize::WIDTH );
- if ( requestedSize.Height > currentSize.Height + 10)
- setPosSize( 0, 0, 0, requestedSize.Height, awt::PosSize::HEIGHT );
- }
-
- awt::Size newSize = getSize();
-#ifndef __SUNPRO_CC
- OSL_TRACE ("%s: newSize: %d, %d", __FUNCTION__, newSize.Width, newSize.Height );
-#endif
- maAllocation.Width = newSize.Width;
- maAllocation.Height = newSize.Height;
-
- Bin::allocateArea( maAllocation );
-}
-
-awt::Size SAL_CALL VCLXTabPage::getMinimumSize()
- throw(uno::RuntimeException)
-{
- SolarMutexGuard aGuard;
-
- return Bin::getMinimumSize();
-}
-
-} // namespace layoutimpl
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxtabpage.hxx b/toolkit/source/awt/vclxtabpage.hxx
deleted file mode 100644
index 81560e07da76..000000000000
--- a/toolkit/source/awt/vclxtabpage.hxx
+++ /dev/null
@@ -1,76 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef LAYOUT_AWT_VCLXTABPAGE_HXX
-#define LAYOUT_AWT_VCLXTABPAGE_HXX
-
-#include <toolkit/awt/vclxwindow.hxx>
-#include <layout/core/bin.hxx>
-#include <comphelper/uno3.hxx>
-
-namespace layoutimpl
-{
-
-namespace css = ::com::sun::star;
-
-class VCLXTabPage : public VCLXWindow
- , public Bin
-{
- bool bRealized;
-
-public:
- VCLXTabPage( Window *p );
-
- // XInterface
- DECLARE_XINTERFACE()
-
- // XTypeProvider
- DECLARE_XTYPEPROVIDER()
-
-protected:
- ~VCLXTabPage();
-
- // XComponent
- void SAL_CALL dispose() throw(css::uno::RuntimeException);
-
- // ::com::sun::star::awt::XLayoutContainer
- virtual void SAL_CALL allocateArea( css::awt::Rectangle const& rArea )
- throw (css::uno::RuntimeException);
- virtual css::awt::Size SAL_CALL getMinimumSize()
- throw(css::uno::RuntimeException);
-
-private:
- VCLXTabPage( VCLXTabPage const & );
- VCLXTabPage& operator=( VCLXTabPage const & );
-};
-
-} // namespace layoutimpl
-
-#endif /* LAYOUT_AWT_VCLXTABPAGE_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index 7fdf3b522d8f..7b310b788910 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -129,7 +129,6 @@
#include <tools/debug.hxx>
#include <comphelper/processfactory.hxx>
-#include "awt/vclxtabcontrol.hxx"
namespace css = ::com::sun::star;
diff --git a/toolkit/source/helper/registerservices.cxx b/toolkit/source/helper/registerservices.cxx
index 3a532b83de14..ae78563e2ea4 100644
--- a/toolkit/source/helper/registerservices.cxx
+++ b/toolkit/source/helper/registerservices.cxx
@@ -231,8 +231,6 @@ extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL
extern void * SAL_CALL comp_AsyncCallback_component_getFactory( const char * implName, void * serviceManager, void * registryKey );
-extern void * SAL_CALL comp_Layout_component_getFactory( const char * implName, void * serviceManager, void * registryKey );
-
extern "C"
{
@@ -330,8 +328,6 @@ TOOLKIT_DLLPUBLIC void* SAL_CALL tk_component_getFactory( const sal_Char* sImple
if ( rtl_str_compare( sImplementationName, "com.sun.star.awt.comp.AsyncCallback" ) == 0 )
return comp_AsyncCallback_component_getFactory( sImplementationName, _pServiceManager, _pRegistryKey );
- if( pRet == 0 )
- pRet = comp_Layout_component_getFactory( sImplementationName, _pServiceManager, _pRegistryKey );
}
return pRet;
}
diff --git a/toolkit/uiconfig/layout/delzip b/toolkit/uiconfig/layout/delzip
deleted file mode 100644
index 7b4d68d70fca..000000000000
--- a/toolkit/uiconfig/layout/delzip
+++ /dev/null
@@ -1 +0,0 @@
-empty \ No newline at end of file
diff --git a/toolkit/uiconfig/layout/message-box.xml b/toolkit/uiconfig/layout/message-box.xml
deleted file mode 100644
index 2bd19bbb42fb..000000000000
--- a/toolkit/uiconfig/layout/message-box.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- This is a template. i18n translation is not performed in-place;
- i18n translated xml files are generated from this template by
- transex3/layout/tralay. !-->
-
-<modaldialog xmlns="http://openoffice.org/2007/layout"
- xmlns:cnt="http://openoffice.org/2007/layout/container"
- id="message-box" _title="" optimumsize="true"
- has_border="true" sizeable="true" moveable="true" closeable="true">
- <vbox border="5" spacing="5">
- <hbox border="5" spacing="20">
- <align cnt:expand="false" cnt:fill="true">
- <fixedimage id="FI_ERROR" cnt:expand="false" cnt:v-align="0.5" cnt:v-fill="0" graphic="cmd/msgbox-error.png" />
- </align>
- <align cnt:expand="false" cnt:fill="true">
- <fixedimage id="FI_INFO" cnt:expand="false" cnt:v-align="0.5" cnt:v-fill="0" graphic="cmd/msgbox-info.png" />
- </align>
- <align cnt:expand="false" cnt:fill="true">
- <fixedimage id="FI_QUERY" cnt:expand="false" cnt:v-align="0.5" cnt:v-fill="0" graphic="cmd/msgbox-query.png" />
- </align>
- <align cnt:expand="false" cnt:fill="true">
- <fixedimage id="FI_WARNING" cnt:expand="false" cnt:v-align="0.5" cnt:v-fill="0" graphic="cmd/msgbox-warning.png" />
- </align>
- <align cnt:expand="false" cnt:fill="true">
- <fixedtext id="FT_MESSAGE" _label="FT-LABEL" cnt:v-align="0.5" cnt:v-fill="0" />
- </align>
- <flow/>
- </hbox>
- <dialogbuttonhbox border="0" spacing="5">
- <flow/>
- <!-- deprecoted vcl/MsgBox compatibility !-->
- <retrybutton id="BTN_RETRY" />
- <ignorebutton id="BTN_IGNORE" />
-
- <yesbutton id="BTN_YES"/>
- <cancelbutton id="BTN_CANCEL"/>
- <helpbutton id="BTN_HELP"/>
- <nobutton id="BTN_NO" xlabel="~Alternate"/>
- </dialogbuttonhbox>
- </vbox>
-</modaldialog>
diff --git a/toolkit/uiconfig/layout/tab-dialog.xml b/toolkit/uiconfig/layout/tab-dialog.xml
deleted file mode 100644
index da75f03e9df5..000000000000
--- a/toolkit/uiconfig/layout/tab-dialog.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<dialog xmlns="http://openoffice.org/2007/layout"
- xmlns:cnt="http://openoffice.org/2007/layout/container"
- _title="layout::TabDialog" optimumsize="true"
- id="tab-dialog"
- has_border="true" sizeable="true" moveable="true">
- <vbox spacing="5" border="5">
- <tabcontrol id="ID_TABCONTROL"/>
- <dialogbuttonhbox border="5" spacing="5" cnt:expand="false">
- <flow/>
- <okbutton defbutton="true" id="BTN_OK" show="false"/>
- <pushbutton id="BTN_USER" _label="&lt;User&gt;" show="false"/>
- <cancelbutton id="BTN_CANCEL" show="false"/>
- <helpbutton id="BTN_HELP" show="false"/>
- <resetbutton id="BTN_RESET" show="false"/>
- <pushbutton id="BTN_BASEFMT" _label="&lt;Base Format&gt;" show="false"/>
- </dialogbuttonhbox>
- </vbox>
-</dialog>