2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2000-09-18 16:07:07 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 08:15:34 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-11 08:15:34 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-11 08:15:34 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-11 08:15:34 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-11 08:15:34 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-11 08:15:34 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
2011-11-23 22:17:24 +00:00
|
|
|
#include <comphelper/string.hxx>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include <tools/debug.hxx>
|
2004-01-06 13:20:22 +00:00
|
|
|
#include <tools/rc.h>
|
2011-01-24 16:34:14 +01:00
|
|
|
|
2007-06-27 19:35:33 +00:00
|
|
|
#include <vcl/svapp.hxx>
|
|
|
|
#include <vcl/help.hxx>
|
|
|
|
#include <vcl/bitmap.hxx>
|
|
|
|
#include <vcl/toolbox.hxx>
|
|
|
|
#include <vcl/mnemonic.hxx>
|
|
|
|
#include <vcl/menu.hxx>
|
|
|
|
#include <vcl/unohelp.hxx>
|
2011-01-24 16:34:14 +01:00
|
|
|
#include <vcl/ImageListProvider.hxx>
|
|
|
|
|
|
|
|
#include <svdata.hxx>
|
|
|
|
#include <brdwin.hxx>
|
|
|
|
#include <toolbox.h>
|
|
|
|
|
2005-11-11 10:55:25 +00:00
|
|
|
#include <unotools/confignode.hxx>
|
|
|
|
|
CWS-TOOLING: integrate CWS dba32a
2009-04-16 13:08:19 +0200 oj r270882 : #i14538# set property at control
2009-04-16 13:04:28 +0200 oj r270881 : #i98557# remove binary string for SRB
2009-04-15 13:19:10 +0200 oj r270838 : #i96782# use type set at view
2009-04-14 14:53:20 +0200 oj r270778 : #i96782# set initialize size for custom shape
2009-04-06 14:19:14 +0200 oj r270546 : #i88432# correct pos when < 0 while resizing
2009-04-06 13:36:13 +0200 oj r270541 : #i96782# handle toolbar and menubar differently
2009-04-06 13:33:54 +0200 oj r270540 : #i96782# handle toolbar and menubar differently
2009-04-06 12:28:23 +0200 oj r270534 : #i96782# handle toolbar and menubar differently
2009-04-06 12:27:44 +0200 oj r270533 : #i96782# handle toolbar and menubar differently
2009-04-06 12:24:32 +0200 oj r270532 : #i96782# handle toolbar and menubar differently
2009-04-06 12:15:15 +0200 oj r270531 : do not initialze when field is empty
2009-04-06 10:06:08 +0200 oj r270528 : #i96782# clean up of menubar and remove duplicates
2009-04-06 09:47:49 +0200 oj r270527 : #i96519# adjust help text dynamic
2009-04-03 13:43:20 +0200 oj r270482 : do not need to remove section from observer they are already disposed
2009-04-03 13:27:28 +0200 fs r270479 : #i97356#
2009-04-02 11:30:39 +0200 fs r270386 : UNX line ends
2009-04-02 10:54:51 +0200 fs r270379 : UNX line ends
2009-04-02 10:39:57 +0200 fs r270378 : UNX line ends
2009-04-02 10:37:24 +0200 fs r270377 : why did this survive the rebase? was removed on trunk ...
2009-03-31 13:31:12 +0200 fs r270277 : component_foo should be public
2009-03-28 00:21:01 +0100 fs r270176 : manuallly merged the changes which happened in CWS before resync to m45, where the directory had been moved from reportdesign/registry to reportbuilder/registry
2009-03-27 23:01:20 +0100 fs r270174 : CWS-TOOLING: rebase CWS dba32a to trunk@270033 (milestone: DEV300:m45)
2009-03-11 12:23:35 +0100 fs r269310 : #i99958# ensure the ControlModelLock doesn't release twice
2009-03-06 09:07:32 +0100 fs r268970 : ignore output paths in SVN's status
2009-03-06 09:07:08 +0100 fs r268969 : ignore output paths in SVN's status
2009-03-04 11:28:02 +0100 oj r268800 : copy and paste error, check correct end now
2009-03-03 15:49:11 +0100 fs r268736 : #i10000# those merges were lost during the rebase (m38->m42)
2009-03-03 13:25:27 +0100 lla r268720 : #i99652# fix wrong refactoring
2009-02-27 11:12:56 +0100 fs r268566 : beautified
2009-02-27 10:53:47 +0100 fs r268561 : doFormListening(false) only when actually isFormListening() (found during complex test case XMLFormSettings with assertions)
2009-02-26 20:55:31 +0100 fs r268546 : #i96530# set the Label property of the bound control, if we didn't create a dedicated label control
2009-02-26 11:53:09 +0100 fs r268494 : #i10000#
2009-02-26 11:27:50 +0100 fs r268493 : #i10000#
2009-02-26 11:17:08 +0100 fs r268490 : reportdesign depends on REPORTBUILDER, not REPORTDESIGN
2009-02-25 11:39:48 +0100 fs r268422 : #i10000# post-resync: INFO_ESCAPE_DATETIME got lost during rebase
2009-02-24 23:24:10 +0100 fs r268411 : CWS-TOOLING: rebase CWS dba32a to trunk@268395 (milestone: DEV300:m42)
2009-02-20 15:09:48 +0100 fs r268324 : respect ImplicitCatalog/SchemaRestriction in all necessary places
2009-02-20 13:48:10 +0100 oj r268318 : order of initialize corrected
2009-02-14 15:07:52 +0100 fs r267759 : #i98975# when an image does not have a bitmap, but a text, draw this (as placeholder)
2009-02-14 15:02:40 +0100 fs r267758 : consolidated and removed some duplicate code
2009-02-14 13:52:23 +0100 fs r267756 : #i10000#
2009-02-13 22:08:34 +0100 fs r267750 : #i100000#
2009-02-13 22:07:25 +0100 fs r267749 : #i10000#
2009-02-13 21:55:36 +0100 fs r267747 : #i10000#
2009-02-13 21:54:27 +0100 fs r267746 : use const_cast
2009-02-13 21:29:10 +0100 fs r267745 : #i10000#
2009-02-13 21:27:39 +0100 fs r267744 : #i10000#
2009-02-13 20:59:13 +0100 fs r267742 : #i10000#
2009-02-13 13:21:30 +0100 fs r267717 : better diagnostics
2009-02-13 13:17:24 +0100 fs r267715 : #i58313# support Catalog/SchemaRestriction settings, which are applied in getTables when 'all catalogs/schemas' are to be retrieved
2009-02-13 13:16:14 +0100 fs r267714 : filter out some more known global settings
2009-02-13 12:39:43 +0100 fs r267713 : #i58313# ImplicitCatalog/SchemaRestriction
2009-02-13 12:36:50 +0100 fs r267712 : when exporting data source settings, allow for properties which have a VOID default value, but are currently not VOID
2009-02-13 12:35:57 +0100 fs r267711 : implement XSet, to allow inserting properties which have a default value of VOID
2009-02-13 12:35:03 +0100 fs r267710 : +addVoidProperty
2009-02-13 10:20:08 +0100 fs r267697 : removed unused variable
2009-02-13 09:46:46 +0100 fs r267695 : refactored the table filtering code, to have a better base for introducing additional low level filters
2009-02-10 09:23:07 +0100 lla r267537 : #i10000# wrong line feed, double named variable
2009-02-09 12:13:08 +0100 oj r267508 : #i98605# notify hanlder
2009-02-09 11:50:34 +0100 oj r267507 : #i98926# solve refcount problem
2009-02-09 11:50:05 +0100 oj r267506 : #i98971# fix for simple html
2009-02-09 11:49:24 +0100 oj r267505 : #i98971# fix for simple html
2009-02-09 11:47:27 +0100 oj r267504 : invoke on copy
2009-02-09 09:51:00 +0100 fs r267500 : #i98316#
2009-02-09 09:46:10 +0100 fs r267499 : setCurrentSelection: don't reset the current form when we de-select everything
2009-02-09 09:43:45 +0100 fs r267498 : #i98316#
2009-02-08 21:25:18 +0100 fs r267496 : #i98272# introduce late ctor for cloning
2009-02-07 21:08:39 +0100 fs r267485 : #i98272# when copy-constructing a FmFormPageImpl, use the XCloneable of the forms collection, instead of XPersistObject (which is incompletely implemented)
2009-02-07 21:07:26 +0100 fs r267484 : removed obsolete include guards
2009-02-07 21:05:22 +0100 fs r267483 : #i98272# implement XCloneable
2009-02-06 15:02:48 +0100 lla r267467 : #i96523# add XImageControl
2009-02-06 14:41:38 +0100 oj r267463 : #i98926# late init when connection disposed but only when asked for
2009-02-06 13:49:57 +0100 lla r267457 : #i92860# bigint in forms doesn't allow input of values > 1, fixed
2009-02-06 13:03:55 +0100 oj r267455 : ImageScaleMode
2009-02-05 14:48:19 +0100 lla r267424 : #i89335# dropdown listboxes are 14 instead of 7 lines high
2009-02-05 13:40:00 +0100 oj r267423 : #i96945# insert new prop Opaque
2009-02-05 13:39:19 +0100 oj r267422 : #i96945# insert layer handling for hell and heaven
2009-02-05 13:29:32 +0100 lla r267420 : #i89335# add is null, is not null, is not like filter condition
2009-02-04 12:23:02 +0100 oj r267364 : #i98821# load table font settings
2009-02-04 10:05:27 +0100 oj r267351 : #i98821# load table font settings
2009-02-04 09:23:22 +0100 fs r267350 : checking persistency of UI settings in database documents - for the moment, capture table formattings (which is issue 98821)
2009-02-04 09:22:15 +0100 fs r267349 : moved some methods which are of wider interest from DatabaseDocument to FileHelper resp. TestCase
2009-02-04 08:56:27 +0100 oj r267347 : #i97586# UcbStreamHelper::CreateStream doesn't check all streamModes use different method
2009-02-04 08:23:26 +0100 oj r267346 : #i98701# check key size is >= 3 and some redesign
2009-02-03 23:29:24 +0100 fs r267345 : return the component (controller), not the frame
2009-02-03 23:28:53 +0100 fs r267344 : openExisting returns a controller now, not the frame (this was a bug)
2009-02-03 23:28:25 +0100 fs r267343 : openElement: properly return the component in the table/query case
2009-02-02 12:48:17 +0100 oj r267261 : #i96013# fix for relative path
2009-02-02 10:33:28 +0100 lla r267253 : #i98557# cleanups and consolidation
2009-02-02 09:37:23 +0100 lla r267250 : #i88432# resize will no longer move components to other sections
2009-02-02 09:08:24 +0100 oj r267245 : #i97475# write 0x1A at the end of the file
2009-01-30 19:39:20 +0100 lla r267230 : #i10000# unused parameters
2009-01-30 09:51:09 +0100 fs r267181 : onsolete
2009-01-30 09:49:27 +0100 fs r267180 : onsolete
2009-01-29 14:28:22 +0100 oj r267139 : #i96825# import cell style
2009-01-29 14:23:12 +0100 oj r267137 : #i98601# export imagescalehandler
2009-01-29 14:19:57 +0100 lla r267135 : #i98601# add ImageScaleMode
2009-01-29 13:21:08 +0100 oj r267124 : #i98601# impl ScaleMode
2009-01-29 13:20:56 +0100 oj r267123 : #i98601# impl ScaleMode
2009-01-29 08:46:40 +0100 oj r267095 : new property: ScaleMode
2009-01-29 08:45:23 +0100 oj r267094 : new ScaleMode from UnControlImageModel
2009-01-29 08:28:12 +0100 oj r267093 : #i87930# close all sub forms/reports when the desktop is going to be terminated and no db frame exists
2009-01-28 19:54:34 +0100 lla r267082 : #i98557# pictures in report wizard
2009-01-28 15:06:25 +0100 oj r267060 : #i87930# close all sub forms/reports when the desktop is going to be terminated and no db frame exists
2009-01-28 11:38:41 +0100 lla r267046 : #i76783# handle binary fields in forms
2009-01-28 09:24:43 +0100 lla r267025 : #i10000#
2009-01-28 08:40:04 +0100 fs r267024 : #i10000#
2009-01-28 08:04:43 +0100 oj r267023 : #i93456# use resource strings for function names
2009-01-27 13:26:05 +0100 oj r266988 : check data field is type field or expression
2009-01-27 13:07:17 +0100 oj r266985 : check data field length
2009-01-27 11:48:19 +0100 oj r266974 : #i96823# return dll string as column name when no alias exists
2009-01-27 09:53:11 +0100 fs r266958 : display the message of a caught exception
2009-01-27 09:44:13 +0100 fs r266957 : #i58313# when retrieving all tables, just set an empty table type filter - the connection will care for translating this, by respecting the TableTypeFilterMode setting
2009-01-27 09:36:09 +0100 fs r266956 : #i58313# getTables: per JDBC spec, is not a valid table type filter. Translate it to 'null'.
2009-01-26 11:24:49 +0100 lla r266912 : #i97865# cleanups (AddField viewable in remote mode)
2009-01-26 07:49:27 +0100 lla r266897 : #i97865# AddField opens in remote case
2009-01-26 07:48:58 +0100 lla r266896 : #i97865# AddField opens in remote case
2009-01-26 07:48:42 +0100 lla r266895 : #i97865# AddField opens in remote case
2009-01-23 15:04:40 +0100 fs r266825 : consolidate the usage of OSQLMessageBox with MessageType==Warning into OSQLWarningBox
2009-01-23 10:47:33 +0100 fs r266787 : +supportsUserAdministration
2009-01-23 10:47:11 +0100 fs r266784 : use DatabaseMetaData.supportsUserAdministration
2009-01-23 07:55:59 +0100 lla r266767 : #i10000# fix gcc compiler failures
2009-01-21 15:08:55 +0100 lla r266673 : #i97265# Labels in HC (IsDark) with other color (viewable)
2009-01-19 14:58:54 +0100 lla r266504 : #i96523# last problems with FormatKey and '0' values fixed
2009-01-19 14:58:00 +0100 lla r266503 : #i96519# AddField help text
2009-01-19 11:59:02 +0100 fs r266485 : #i96523# for formatted field models, init them with TreatAsNumber = false
2009-01-16 10:31:49 +0100 lla r266405 : #i96793# add shrink to popup menu
2009-01-16 09:21:44 +0100 lla r266401 : #i96519# AddField contains a help text
2009-01-15 11:21:49 +0100 lla r266357 : #i96523# problem with XVclWindowPeer not fixed now
2009-01-15 09:19:20 +0100 lla r266335 : #i96523# more crashes fixed.
2009-01-14 13:08:34 +0100 lla r266291 : #i96523# problems with crashes fixed
2009-01-13 10:54:24 +0100 lla r266199 : #i96523# show datasource in formattedfields new files
2009-01-13 10:52:39 +0100 lla r266198 : #i96523# show datasource in formattedfields
2009-01-13 09:41:50 +0100 lla r266197 : #i96526# handling none existance default.otr
2009-01-12 12:55:49 +0100 fs r266151 : don't expect the control model to be a BoundComponent before adding as modify listener
2009-01-12 12:51:33 +0100 fs r266149 : #i88458# let the ImageControl be an XModifyBroadcaster, so the forms runtime can notice when the user changes the control content while it does not have the focus
2009-01-09 13:41:22 +0100 fs r266080 : doc
2009-01-09 13:14:14 +0100 fs r266077 : #i97377# SetModified when order is changed via DnD
2009-01-07 09:55:40 +0100 oj r265951 : merge from master
2009-01-07 09:55:24 +0100 oj r265950 : removed observer
2009-01-07 09:55:06 +0100 oj r265949 : merge from master
2009-01-07 07:29:11 +0100 oj r265945 : shadow var changed
2009-01-06 07:25:57 +0100 oj r265893 : CWS-TOOLING: rebase CWS dba32a to trunk@265758 (milestone: DEV300:m38)
2009-01-05 13:18:22 +0100 oj r265865 : convert to unix le
2009-01-05 09:13:52 +0100 lla r265857 : #i79423# lc_ sc_ permutation fix
2009-01-02 19:40:59 +0100 lla r265847 : #i79423# section shrink icons
2008-12-22 11:37:57 +0100 lla r265749 : #i97484# move component to negative Y-position
2008-12-22 11:37:05 +0100 lla r265748 : #i97484# move component to negative Y-position
2008-12-22 11:35:33 +0100 lla r265747 : #i97484# move component to negative Y-position
2008-12-22 11:25:07 +0100 lla r265745 : #i96757# changes via property browser was not undoable
2008-12-18 15:10:38 +0100 fs r265694 : corrected an condition in doFormListening, which otherwise leads to uncommitable grid columns in documents which are loaded from disc (not in documents which are newly created)
2008-12-18 14:54:39 +0100 fs r265692 : Hide Columns text slightly changed
2008-12-18 13:44:15 +0100 fs r265683 : #i94068# properly display erros happening during a form operation - at least once, and at most once
2008-12-18 11:28:29 +0100 fs r265677 : document the new InputRequired property
2008-12-18 11:04:15 +0100 fs r265676 : #i96530# createControlLabelPair: don't actually create a label for a checkbox
2008-12-18 10:35:53 +0100 fs r265674 : #i95226# when a column is replaced, and it's the selected column, update the selection
2008-12-18 10:34:42 +0100 fs r265673 : #i95226# refactoring of the implReplaced method
2008-12-18 10:34:28 +0100 fs r265672 : #i95226# when replacing a grid column, update the property browser
2008-12-18 10:33:17 +0100 fs r265671 : when an element is removed, remove it from m_aCurrentSelection, too (if necessary)
2008-12-18 10:31:57 +0100 fs r265670 : Hide Columns text slightly changed
2008-12-18 10:15:56 +0100 lla r265669 : #i14538# do not allow to press finish button twice
2008-12-18 08:56:33 +0100 lla r265665 : #i10000# build depend=t problem hacked.
2008-12-17 20:59:10 +0100 fs r265656 : #i89821# don't let a MultiLineEdit select all text when it receives the focus
2008-12-17 12:10:54 +0100 fs r265594 : #i97356#
2008-12-17 12:06:29 +0100 fs r265593 : #i97355# Print -> Printable
2008-12-17 11:59:31 +0100 fs r265591 : #i97350# combo boxes comment on list selection (as list boxes already do)
2008-12-16 09:53:57 +0100 lla r265527 : #i96526# handling none existance default.otr
2008-12-15 14:48:39 +0100 lla r265500 : #i79423# reparing, was wrong implemented
2008-12-12 15:08:33 +0100 lla r265424 : #i10000# remove wrong carridge returns
2008-12-12 15:07:55 +0100 lla r265423 : #i10000# remove wrong carridge returns
2008-12-12 15:06:41 +0100 lla r265422 : #i10000# remove wrong carridge returns
2008-12-12 10:23:13 +0100 lla r265395 : #i95234# reset DragDelta
2008-12-12 10:11:02 +0100 lla r265393 : #i79423# pre versions of shrink buttons
2008-12-11 15:32:13 +0100 fs r265318 : prevent a deadlock during complex.dbaccess.DatabaseDocument test
2008-12-11 15:30:06 +0100 fs r265316 : prevent a deadlock during complex.dbaccess.DatabaseDocument test
2008-12-11 15:07:05 +0100 fs r265307 : removed superfluous text
2008-12-11 12:29:54 +0100 lla r265282 : #i96757# cleanup second try
2008-12-11 12:09:15 +0100 lla r265278 : #i96757# cleanup
2008-12-11 12:07:56 +0100 lla r265277 : #i95234#
2008-12-10 14:04:39 +0100 lla r265183 : #i93472# D&D fixes
2008-12-10 12:29:33 +0100 lla r265168 : #i94067# add (APP|SYS)FONT to XUnitConversion
2008-12-10 12:15:02 +0100 lla r265166 : #i94067# add APPFONT, SYSFONT to MeasureUnit
2008-12-10 11:52:10 +0100 lla r265163 : #i94067# add comments
2008-12-06 20:33:05 +0100 fs r264935 : #i10000# precompiled header
2008-12-05 09:29:26 +0100 fs r264889 : #i10000#
2008-12-05 09:07:31 +0100 fs r264888 : #i10000#
2008-12-04 13:25:46 +0100 fs r264838 : CWS-TOOLING: rebase CWS dba32a to trunk@264807 (milestone: DEV300:m37)
2008-12-03 23:49:13 +0100 fs r264808 : merge changes from trunk, to be able to do a rebase
2008-12-03 17:13:09 +0100 lla r264801 : #i91041# update documentation
2008-12-03 16:57:04 +0100 lla r264799 : #i94067# allow convert(Point|Size)ToLogic as pixel also
2008-12-02 12:36:32 +0100 lla r264687 : #i96782# bring toolbar objects to menu structure
2008-12-02 10:32:44 +0100 lla r264667 : #i86255# make property work
2008-12-02 09:22:47 +0100 lla r264659 : #i79423# add section shrink toolbar
2008-12-02 07:41:22 +0100 lla r264657 : #i86255# add check box for Escape DateTime property
2008-12-02 07:37:17 +0100 lla r264656 : #i79423# new shrink buttons
2008-11-26 11:55:28 +0100 fs r264362 : #i96541#
FillPropertySet: do not only catch UnknownPropertyException when setting the Char/ParaAutoStyleName,
but also care for the other exceptions which can be thrown by XPropertySet::setPropertyValue.
This is actually not the real fix for #i96541#, but only a follow-up. The root cause of the issue
was fixed in CWS dba301b, but this here was another (potential) bug which popped up during investigations.
2008-11-25 09:04:40 +0100 lla r264273 : #i82083# new toolbox in GroupsSorting dialog
2008-11-25 08:56:08 +0100 lla r264272 : #i94729# change token strings into string list, move class out of function
2008-11-24 15:52:22 +0100 fs r264251 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:51:45 +0100 fs r264249 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:45:21 +0100 fs r264244 : #i96532# the API default for ParamNameSubst is false
2008-11-24 15:45:04 +0100 fs r264243 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:44:14 +0100 fs r264241 : #i96532# slight refactoring of exporting properties which have a XML default different from the API default
2008-11-24 10:50:01 +0100 lla r264216 : #i82083# icons for new toolbox
2008-11-24 09:38:45 +0100 lla r264205 : #i82083# new toolbox in GroupsSorting dialog
2008-11-24 09:32:20 +0100 lla r264201 : #i96501# cleanup assertions
2008-11-24 09:12:55 +0100 lla r264198 : #i83082# enhancement for toolboxes, better HC comfort
2008-11-24 08:46:43 +0100 lla r264197 : #i96501# fix problem with negative positions
2008-11-21 11:44:47 +0100 fs r264118 : #i57042# introduce a counter for suspending change notifications of a given property, so recursive calls are possible
2008-11-21 11:02:17 +0100 fs r264116 : #i96388# don't call ExecuteContextMenuAction when no action was chosen by the user
2008-11-21 10:36:53 +0100 fs r264114 : #i47384# assertion was wrong
2008-11-14 12:33:15 +0100 fs r263673 : #i47318# XRowSetChangeBroadcaster/Listener, to be able to listen for changes in an XRowSetSupplier's RowSet
2008-11-14 12:30:29 +0100 fs r263672 : #i47318# more refactoring
- BoundControlModels now listen at the XRowSetSupplier for changes in the supplied
RowSet, to properly revoke/register old/new listeners at the RowSet
- replaced ::osl::Mutex in various places with a ControlModelLock
2008-11-14 12:20:55 +0100 fs r263671 : when BUILD_TYPE includes QADEVOOO, the BUILD_QADEVOOO needs to bet set, too
2008-11-14 12:19:21 +0100 fs r263670 : oops, this was not intended to be committed
2008-11-12 11:08:10 +0100 fs r263579 : #i96096# new ctors taking UNO_QUERY_THROW
2008-11-12 09:15:54 +0100 fs r263576 : no need to load the complete dialog just to get a string which the dialog itself loads from resource
2008-11-10 17:55:45 +0100 fs r263535 : spelling in comment
2008-11-10 15:51:14 +0100 fs r263523 : #i47318# various refactorings
1. don't forward syntetic XLoadListener events from the grid control to
the grid columns. Instead, forward GridColumn::XChild::setParent to
the base class, which then can add itself as load listener
2. removed various occurances of XMultiServiceFactory, instead use the
::comphelper::ComponentContext
3. in O(Bound)ControlModel, have a mechanism to lock the instance (using
ControlModelLock) and fire property changes when the last lock dies.
2008-11-10 12:49:24 +0100 oj r263513 : #i94729# change token strings into string list
2008-11-10 12:13:15 +0100 oj r263512 : #i95222# export chart:title style as well
2008-11-10 08:55:25 +0100 oj r263507 : #i93471# show the correct tabpage when selecting a different object
2008-11-07 23:38:29 +0100 fs r263490 : #i95977# for the event input controls, add a component extending their functionality so they're reset when the users presses DEL
2008-11-07 23:35:39 +0100 fs r263489 : during #i95977#: When a VCL Window is deleted from within VCL code, the respective WindowPeer was never disposed. Corrected this.
2008-11-07 14:57:07 +0100 fs r263420 : #i95963# human-readable display names for event bindings
2008-11-06 10:34:52 +0100 fs r263366 : #i95865# don't use library names containing InvalidZipEntryFileNames - workaround until i95409 is fixed
2008-11-06 10:33:28 +0100 fs r263365 : #i95865#
copied the following change from CWS odfmetadata2 (not yet integrated) into CWS dba31d
- comphelper/inc/comphelper/storagehelper.hxx,
comphelper/source/misc/storagehelper.cxx:
+ add function IsValidZipEntryFileName (moved from module package)
2009-04-22 11:01:27 +00:00
|
|
|
#include <com/sun/star/lang/IllegalArgumentException.hpp>
|
|
|
|
|
2002-10-30 15:38:24 +00:00
|
|
|
using namespace vcl;
|
2011-03-01 22:45:35 +01:00
|
|
|
|
|
|
|
using ::rtl::OUString;
|
2002-10-30 15:38:24 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// =======================================================================
|
|
|
|
|
|
|
|
#define TB_SEP_SIZE 8
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
CWS-TOOLING: integrate CWS dba32a
2009-04-16 13:08:19 +0200 oj r270882 : #i14538# set property at control
2009-04-16 13:04:28 +0200 oj r270881 : #i98557# remove binary string for SRB
2009-04-15 13:19:10 +0200 oj r270838 : #i96782# use type set at view
2009-04-14 14:53:20 +0200 oj r270778 : #i96782# set initialize size for custom shape
2009-04-06 14:19:14 +0200 oj r270546 : #i88432# correct pos when < 0 while resizing
2009-04-06 13:36:13 +0200 oj r270541 : #i96782# handle toolbar and menubar differently
2009-04-06 13:33:54 +0200 oj r270540 : #i96782# handle toolbar and menubar differently
2009-04-06 12:28:23 +0200 oj r270534 : #i96782# handle toolbar and menubar differently
2009-04-06 12:27:44 +0200 oj r270533 : #i96782# handle toolbar and menubar differently
2009-04-06 12:24:32 +0200 oj r270532 : #i96782# handle toolbar and menubar differently
2009-04-06 12:15:15 +0200 oj r270531 : do not initialze when field is empty
2009-04-06 10:06:08 +0200 oj r270528 : #i96782# clean up of menubar and remove duplicates
2009-04-06 09:47:49 +0200 oj r270527 : #i96519# adjust help text dynamic
2009-04-03 13:43:20 +0200 oj r270482 : do not need to remove section from observer they are already disposed
2009-04-03 13:27:28 +0200 fs r270479 : #i97356#
2009-04-02 11:30:39 +0200 fs r270386 : UNX line ends
2009-04-02 10:54:51 +0200 fs r270379 : UNX line ends
2009-04-02 10:39:57 +0200 fs r270378 : UNX line ends
2009-04-02 10:37:24 +0200 fs r270377 : why did this survive the rebase? was removed on trunk ...
2009-03-31 13:31:12 +0200 fs r270277 : component_foo should be public
2009-03-28 00:21:01 +0100 fs r270176 : manuallly merged the changes which happened in CWS before resync to m45, where the directory had been moved from reportdesign/registry to reportbuilder/registry
2009-03-27 23:01:20 +0100 fs r270174 : CWS-TOOLING: rebase CWS dba32a to trunk@270033 (milestone: DEV300:m45)
2009-03-11 12:23:35 +0100 fs r269310 : #i99958# ensure the ControlModelLock doesn't release twice
2009-03-06 09:07:32 +0100 fs r268970 : ignore output paths in SVN's status
2009-03-06 09:07:08 +0100 fs r268969 : ignore output paths in SVN's status
2009-03-04 11:28:02 +0100 oj r268800 : copy and paste error, check correct end now
2009-03-03 15:49:11 +0100 fs r268736 : #i10000# those merges were lost during the rebase (m38->m42)
2009-03-03 13:25:27 +0100 lla r268720 : #i99652# fix wrong refactoring
2009-02-27 11:12:56 +0100 fs r268566 : beautified
2009-02-27 10:53:47 +0100 fs r268561 : doFormListening(false) only when actually isFormListening() (found during complex test case XMLFormSettings with assertions)
2009-02-26 20:55:31 +0100 fs r268546 : #i96530# set the Label property of the bound control, if we didn't create a dedicated label control
2009-02-26 11:53:09 +0100 fs r268494 : #i10000#
2009-02-26 11:27:50 +0100 fs r268493 : #i10000#
2009-02-26 11:17:08 +0100 fs r268490 : reportdesign depends on REPORTBUILDER, not REPORTDESIGN
2009-02-25 11:39:48 +0100 fs r268422 : #i10000# post-resync: INFO_ESCAPE_DATETIME got lost during rebase
2009-02-24 23:24:10 +0100 fs r268411 : CWS-TOOLING: rebase CWS dba32a to trunk@268395 (milestone: DEV300:m42)
2009-02-20 15:09:48 +0100 fs r268324 : respect ImplicitCatalog/SchemaRestriction in all necessary places
2009-02-20 13:48:10 +0100 oj r268318 : order of initialize corrected
2009-02-14 15:07:52 +0100 fs r267759 : #i98975# when an image does not have a bitmap, but a text, draw this (as placeholder)
2009-02-14 15:02:40 +0100 fs r267758 : consolidated and removed some duplicate code
2009-02-14 13:52:23 +0100 fs r267756 : #i10000#
2009-02-13 22:08:34 +0100 fs r267750 : #i100000#
2009-02-13 22:07:25 +0100 fs r267749 : #i10000#
2009-02-13 21:55:36 +0100 fs r267747 : #i10000#
2009-02-13 21:54:27 +0100 fs r267746 : use const_cast
2009-02-13 21:29:10 +0100 fs r267745 : #i10000#
2009-02-13 21:27:39 +0100 fs r267744 : #i10000#
2009-02-13 20:59:13 +0100 fs r267742 : #i10000#
2009-02-13 13:21:30 +0100 fs r267717 : better diagnostics
2009-02-13 13:17:24 +0100 fs r267715 : #i58313# support Catalog/SchemaRestriction settings, which are applied in getTables when 'all catalogs/schemas' are to be retrieved
2009-02-13 13:16:14 +0100 fs r267714 : filter out some more known global settings
2009-02-13 12:39:43 +0100 fs r267713 : #i58313# ImplicitCatalog/SchemaRestriction
2009-02-13 12:36:50 +0100 fs r267712 : when exporting data source settings, allow for properties which have a VOID default value, but are currently not VOID
2009-02-13 12:35:57 +0100 fs r267711 : implement XSet, to allow inserting properties which have a default value of VOID
2009-02-13 12:35:03 +0100 fs r267710 : +addVoidProperty
2009-02-13 10:20:08 +0100 fs r267697 : removed unused variable
2009-02-13 09:46:46 +0100 fs r267695 : refactored the table filtering code, to have a better base for introducing additional low level filters
2009-02-10 09:23:07 +0100 lla r267537 : #i10000# wrong line feed, double named variable
2009-02-09 12:13:08 +0100 oj r267508 : #i98605# notify hanlder
2009-02-09 11:50:34 +0100 oj r267507 : #i98926# solve refcount problem
2009-02-09 11:50:05 +0100 oj r267506 : #i98971# fix for simple html
2009-02-09 11:49:24 +0100 oj r267505 : #i98971# fix for simple html
2009-02-09 11:47:27 +0100 oj r267504 : invoke on copy
2009-02-09 09:51:00 +0100 fs r267500 : #i98316#
2009-02-09 09:46:10 +0100 fs r267499 : setCurrentSelection: don't reset the current form when we de-select everything
2009-02-09 09:43:45 +0100 fs r267498 : #i98316#
2009-02-08 21:25:18 +0100 fs r267496 : #i98272# introduce late ctor for cloning
2009-02-07 21:08:39 +0100 fs r267485 : #i98272# when copy-constructing a FmFormPageImpl, use the XCloneable of the forms collection, instead of XPersistObject (which is incompletely implemented)
2009-02-07 21:07:26 +0100 fs r267484 : removed obsolete include guards
2009-02-07 21:05:22 +0100 fs r267483 : #i98272# implement XCloneable
2009-02-06 15:02:48 +0100 lla r267467 : #i96523# add XImageControl
2009-02-06 14:41:38 +0100 oj r267463 : #i98926# late init when connection disposed but only when asked for
2009-02-06 13:49:57 +0100 lla r267457 : #i92860# bigint in forms doesn't allow input of values > 1, fixed
2009-02-06 13:03:55 +0100 oj r267455 : ImageScaleMode
2009-02-05 14:48:19 +0100 lla r267424 : #i89335# dropdown listboxes are 14 instead of 7 lines high
2009-02-05 13:40:00 +0100 oj r267423 : #i96945# insert new prop Opaque
2009-02-05 13:39:19 +0100 oj r267422 : #i96945# insert layer handling for hell and heaven
2009-02-05 13:29:32 +0100 lla r267420 : #i89335# add is null, is not null, is not like filter condition
2009-02-04 12:23:02 +0100 oj r267364 : #i98821# load table font settings
2009-02-04 10:05:27 +0100 oj r267351 : #i98821# load table font settings
2009-02-04 09:23:22 +0100 fs r267350 : checking persistency of UI settings in database documents - for the moment, capture table formattings (which is issue 98821)
2009-02-04 09:22:15 +0100 fs r267349 : moved some methods which are of wider interest from DatabaseDocument to FileHelper resp. TestCase
2009-02-04 08:56:27 +0100 oj r267347 : #i97586# UcbStreamHelper::CreateStream doesn't check all streamModes use different method
2009-02-04 08:23:26 +0100 oj r267346 : #i98701# check key size is >= 3 and some redesign
2009-02-03 23:29:24 +0100 fs r267345 : return the component (controller), not the frame
2009-02-03 23:28:53 +0100 fs r267344 : openExisting returns a controller now, not the frame (this was a bug)
2009-02-03 23:28:25 +0100 fs r267343 : openElement: properly return the component in the table/query case
2009-02-02 12:48:17 +0100 oj r267261 : #i96013# fix for relative path
2009-02-02 10:33:28 +0100 lla r267253 : #i98557# cleanups and consolidation
2009-02-02 09:37:23 +0100 lla r267250 : #i88432# resize will no longer move components to other sections
2009-02-02 09:08:24 +0100 oj r267245 : #i97475# write 0x1A at the end of the file
2009-01-30 19:39:20 +0100 lla r267230 : #i10000# unused parameters
2009-01-30 09:51:09 +0100 fs r267181 : onsolete
2009-01-30 09:49:27 +0100 fs r267180 : onsolete
2009-01-29 14:28:22 +0100 oj r267139 : #i96825# import cell style
2009-01-29 14:23:12 +0100 oj r267137 : #i98601# export imagescalehandler
2009-01-29 14:19:57 +0100 lla r267135 : #i98601# add ImageScaleMode
2009-01-29 13:21:08 +0100 oj r267124 : #i98601# impl ScaleMode
2009-01-29 13:20:56 +0100 oj r267123 : #i98601# impl ScaleMode
2009-01-29 08:46:40 +0100 oj r267095 : new property: ScaleMode
2009-01-29 08:45:23 +0100 oj r267094 : new ScaleMode from UnControlImageModel
2009-01-29 08:28:12 +0100 oj r267093 : #i87930# close all sub forms/reports when the desktop is going to be terminated and no db frame exists
2009-01-28 19:54:34 +0100 lla r267082 : #i98557# pictures in report wizard
2009-01-28 15:06:25 +0100 oj r267060 : #i87930# close all sub forms/reports when the desktop is going to be terminated and no db frame exists
2009-01-28 11:38:41 +0100 lla r267046 : #i76783# handle binary fields in forms
2009-01-28 09:24:43 +0100 lla r267025 : #i10000#
2009-01-28 08:40:04 +0100 fs r267024 : #i10000#
2009-01-28 08:04:43 +0100 oj r267023 : #i93456# use resource strings for function names
2009-01-27 13:26:05 +0100 oj r266988 : check data field is type field or expression
2009-01-27 13:07:17 +0100 oj r266985 : check data field length
2009-01-27 11:48:19 +0100 oj r266974 : #i96823# return dll string as column name when no alias exists
2009-01-27 09:53:11 +0100 fs r266958 : display the message of a caught exception
2009-01-27 09:44:13 +0100 fs r266957 : #i58313# when retrieving all tables, just set an empty table type filter - the connection will care for translating this, by respecting the TableTypeFilterMode setting
2009-01-27 09:36:09 +0100 fs r266956 : #i58313# getTables: per JDBC spec, is not a valid table type filter. Translate it to 'null'.
2009-01-26 11:24:49 +0100 lla r266912 : #i97865# cleanups (AddField viewable in remote mode)
2009-01-26 07:49:27 +0100 lla r266897 : #i97865# AddField opens in remote case
2009-01-26 07:48:58 +0100 lla r266896 : #i97865# AddField opens in remote case
2009-01-26 07:48:42 +0100 lla r266895 : #i97865# AddField opens in remote case
2009-01-23 15:04:40 +0100 fs r266825 : consolidate the usage of OSQLMessageBox with MessageType==Warning into OSQLWarningBox
2009-01-23 10:47:33 +0100 fs r266787 : +supportsUserAdministration
2009-01-23 10:47:11 +0100 fs r266784 : use DatabaseMetaData.supportsUserAdministration
2009-01-23 07:55:59 +0100 lla r266767 : #i10000# fix gcc compiler failures
2009-01-21 15:08:55 +0100 lla r266673 : #i97265# Labels in HC (IsDark) with other color (viewable)
2009-01-19 14:58:54 +0100 lla r266504 : #i96523# last problems with FormatKey and '0' values fixed
2009-01-19 14:58:00 +0100 lla r266503 : #i96519# AddField help text
2009-01-19 11:59:02 +0100 fs r266485 : #i96523# for formatted field models, init them with TreatAsNumber = false
2009-01-16 10:31:49 +0100 lla r266405 : #i96793# add shrink to popup menu
2009-01-16 09:21:44 +0100 lla r266401 : #i96519# AddField contains a help text
2009-01-15 11:21:49 +0100 lla r266357 : #i96523# problem with XVclWindowPeer not fixed now
2009-01-15 09:19:20 +0100 lla r266335 : #i96523# more crashes fixed.
2009-01-14 13:08:34 +0100 lla r266291 : #i96523# problems with crashes fixed
2009-01-13 10:54:24 +0100 lla r266199 : #i96523# show datasource in formattedfields new files
2009-01-13 10:52:39 +0100 lla r266198 : #i96523# show datasource in formattedfields
2009-01-13 09:41:50 +0100 lla r266197 : #i96526# handling none existance default.otr
2009-01-12 12:55:49 +0100 fs r266151 : don't expect the control model to be a BoundComponent before adding as modify listener
2009-01-12 12:51:33 +0100 fs r266149 : #i88458# let the ImageControl be an XModifyBroadcaster, so the forms runtime can notice when the user changes the control content while it does not have the focus
2009-01-09 13:41:22 +0100 fs r266080 : doc
2009-01-09 13:14:14 +0100 fs r266077 : #i97377# SetModified when order is changed via DnD
2009-01-07 09:55:40 +0100 oj r265951 : merge from master
2009-01-07 09:55:24 +0100 oj r265950 : removed observer
2009-01-07 09:55:06 +0100 oj r265949 : merge from master
2009-01-07 07:29:11 +0100 oj r265945 : shadow var changed
2009-01-06 07:25:57 +0100 oj r265893 : CWS-TOOLING: rebase CWS dba32a to trunk@265758 (milestone: DEV300:m38)
2009-01-05 13:18:22 +0100 oj r265865 : convert to unix le
2009-01-05 09:13:52 +0100 lla r265857 : #i79423# lc_ sc_ permutation fix
2009-01-02 19:40:59 +0100 lla r265847 : #i79423# section shrink icons
2008-12-22 11:37:57 +0100 lla r265749 : #i97484# move component to negative Y-position
2008-12-22 11:37:05 +0100 lla r265748 : #i97484# move component to negative Y-position
2008-12-22 11:35:33 +0100 lla r265747 : #i97484# move component to negative Y-position
2008-12-22 11:25:07 +0100 lla r265745 : #i96757# changes via property browser was not undoable
2008-12-18 15:10:38 +0100 fs r265694 : corrected an condition in doFormListening, which otherwise leads to uncommitable grid columns in documents which are loaded from disc (not in documents which are newly created)
2008-12-18 14:54:39 +0100 fs r265692 : Hide Columns text slightly changed
2008-12-18 13:44:15 +0100 fs r265683 : #i94068# properly display erros happening during a form operation - at least once, and at most once
2008-12-18 11:28:29 +0100 fs r265677 : document the new InputRequired property
2008-12-18 11:04:15 +0100 fs r265676 : #i96530# createControlLabelPair: don't actually create a label for a checkbox
2008-12-18 10:35:53 +0100 fs r265674 : #i95226# when a column is replaced, and it's the selected column, update the selection
2008-12-18 10:34:42 +0100 fs r265673 : #i95226# refactoring of the implReplaced method
2008-12-18 10:34:28 +0100 fs r265672 : #i95226# when replacing a grid column, update the property browser
2008-12-18 10:33:17 +0100 fs r265671 : when an element is removed, remove it from m_aCurrentSelection, too (if necessary)
2008-12-18 10:31:57 +0100 fs r265670 : Hide Columns text slightly changed
2008-12-18 10:15:56 +0100 lla r265669 : #i14538# do not allow to press finish button twice
2008-12-18 08:56:33 +0100 lla r265665 : #i10000# build depend=t problem hacked.
2008-12-17 20:59:10 +0100 fs r265656 : #i89821# don't let a MultiLineEdit select all text when it receives the focus
2008-12-17 12:10:54 +0100 fs r265594 : #i97356#
2008-12-17 12:06:29 +0100 fs r265593 : #i97355# Print -> Printable
2008-12-17 11:59:31 +0100 fs r265591 : #i97350# combo boxes comment on list selection (as list boxes already do)
2008-12-16 09:53:57 +0100 lla r265527 : #i96526# handling none existance default.otr
2008-12-15 14:48:39 +0100 lla r265500 : #i79423# reparing, was wrong implemented
2008-12-12 15:08:33 +0100 lla r265424 : #i10000# remove wrong carridge returns
2008-12-12 15:07:55 +0100 lla r265423 : #i10000# remove wrong carridge returns
2008-12-12 15:06:41 +0100 lla r265422 : #i10000# remove wrong carridge returns
2008-12-12 10:23:13 +0100 lla r265395 : #i95234# reset DragDelta
2008-12-12 10:11:02 +0100 lla r265393 : #i79423# pre versions of shrink buttons
2008-12-11 15:32:13 +0100 fs r265318 : prevent a deadlock during complex.dbaccess.DatabaseDocument test
2008-12-11 15:30:06 +0100 fs r265316 : prevent a deadlock during complex.dbaccess.DatabaseDocument test
2008-12-11 15:07:05 +0100 fs r265307 : removed superfluous text
2008-12-11 12:29:54 +0100 lla r265282 : #i96757# cleanup second try
2008-12-11 12:09:15 +0100 lla r265278 : #i96757# cleanup
2008-12-11 12:07:56 +0100 lla r265277 : #i95234#
2008-12-10 14:04:39 +0100 lla r265183 : #i93472# D&D fixes
2008-12-10 12:29:33 +0100 lla r265168 : #i94067# add (APP|SYS)FONT to XUnitConversion
2008-12-10 12:15:02 +0100 lla r265166 : #i94067# add APPFONT, SYSFONT to MeasureUnit
2008-12-10 11:52:10 +0100 lla r265163 : #i94067# add comments
2008-12-06 20:33:05 +0100 fs r264935 : #i10000# precompiled header
2008-12-05 09:29:26 +0100 fs r264889 : #i10000#
2008-12-05 09:07:31 +0100 fs r264888 : #i10000#
2008-12-04 13:25:46 +0100 fs r264838 : CWS-TOOLING: rebase CWS dba32a to trunk@264807 (milestone: DEV300:m37)
2008-12-03 23:49:13 +0100 fs r264808 : merge changes from trunk, to be able to do a rebase
2008-12-03 17:13:09 +0100 lla r264801 : #i91041# update documentation
2008-12-03 16:57:04 +0100 lla r264799 : #i94067# allow convert(Point|Size)ToLogic as pixel also
2008-12-02 12:36:32 +0100 lla r264687 : #i96782# bring toolbar objects to menu structure
2008-12-02 10:32:44 +0100 lla r264667 : #i86255# make property work
2008-12-02 09:22:47 +0100 lla r264659 : #i79423# add section shrink toolbar
2008-12-02 07:41:22 +0100 lla r264657 : #i86255# add check box for Escape DateTime property
2008-12-02 07:37:17 +0100 lla r264656 : #i79423# new shrink buttons
2008-11-26 11:55:28 +0100 fs r264362 : #i96541#
FillPropertySet: do not only catch UnknownPropertyException when setting the Char/ParaAutoStyleName,
but also care for the other exceptions which can be thrown by XPropertySet::setPropertyValue.
This is actually not the real fix for #i96541#, but only a follow-up. The root cause of the issue
was fixed in CWS dba301b, but this here was another (potential) bug which popped up during investigations.
2008-11-25 09:04:40 +0100 lla r264273 : #i82083# new toolbox in GroupsSorting dialog
2008-11-25 08:56:08 +0100 lla r264272 : #i94729# change token strings into string list, move class out of function
2008-11-24 15:52:22 +0100 fs r264251 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:51:45 +0100 fs r264249 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:45:21 +0100 fs r264244 : #i96532# the API default for ParamNameSubst is false
2008-11-24 15:45:04 +0100 fs r264243 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:44:14 +0100 fs r264241 : #i96532# slight refactoring of exporting properties which have a XML default different from the API default
2008-11-24 10:50:01 +0100 lla r264216 : #i82083# icons for new toolbox
2008-11-24 09:38:45 +0100 lla r264205 : #i82083# new toolbox in GroupsSorting dialog
2008-11-24 09:32:20 +0100 lla r264201 : #i96501# cleanup assertions
2008-11-24 09:12:55 +0100 lla r264198 : #i83082# enhancement for toolboxes, better HC comfort
2008-11-24 08:46:43 +0100 lla r264197 : #i96501# fix problem with negative positions
2008-11-21 11:44:47 +0100 fs r264118 : #i57042# introduce a counter for suspending change notifications of a given property, so recursive calls are possible
2008-11-21 11:02:17 +0100 fs r264116 : #i96388# don't call ExecuteContextMenuAction when no action was chosen by the user
2008-11-21 10:36:53 +0100 fs r264114 : #i47384# assertion was wrong
2008-11-14 12:33:15 +0100 fs r263673 : #i47318# XRowSetChangeBroadcaster/Listener, to be able to listen for changes in an XRowSetSupplier's RowSet
2008-11-14 12:30:29 +0100 fs r263672 : #i47318# more refactoring
- BoundControlModels now listen at the XRowSetSupplier for changes in the supplied
RowSet, to properly revoke/register old/new listeners at the RowSet
- replaced ::osl::Mutex in various places with a ControlModelLock
2008-11-14 12:20:55 +0100 fs r263671 : when BUILD_TYPE includes QADEVOOO, the BUILD_QADEVOOO needs to bet set, too
2008-11-14 12:19:21 +0100 fs r263670 : oops, this was not intended to be committed
2008-11-12 11:08:10 +0100 fs r263579 : #i96096# new ctors taking UNO_QUERY_THROW
2008-11-12 09:15:54 +0100 fs r263576 : no need to load the complete dialog just to get a string which the dialog itself loads from resource
2008-11-10 17:55:45 +0100 fs r263535 : spelling in comment
2008-11-10 15:51:14 +0100 fs r263523 : #i47318# various refactorings
1. don't forward syntetic XLoadListener events from the grid control to
the grid columns. Instead, forward GridColumn::XChild::setParent to
the base class, which then can add itself as load listener
2. removed various occurances of XMultiServiceFactory, instead use the
::comphelper::ComponentContext
3. in O(Bound)ControlModel, have a mechanism to lock the instance (using
ControlModelLock) and fire property changes when the last lock dies.
2008-11-10 12:49:24 +0100 oj r263513 : #i94729# change token strings into string list
2008-11-10 12:13:15 +0100 oj r263512 : #i95222# export chart:title style as well
2008-11-10 08:55:25 +0100 oj r263507 : #i93471# show the correct tabpage when selecting a different object
2008-11-07 23:38:29 +0100 fs r263490 : #i95977# for the event input controls, add a component extending their functionality so they're reset when the users presses DEL
2008-11-07 23:35:39 +0100 fs r263489 : during #i95977#: When a VCL Window is deleted from within VCL code, the respective WindowPeer was never disposed. Corrected this.
2008-11-07 14:57:07 +0100 fs r263420 : #i95963# human-readable display names for event bindings
2008-11-06 10:34:52 +0100 fs r263366 : #i95865# don't use library names containing InvalidZipEntryFileNames - workaround until i95409 is fixed
2008-11-06 10:33:28 +0100 fs r263365 : #i95865#
copied the following change from CWS odfmetadata2 (not yet integrated) into CWS dba31d
- comphelper/inc/comphelper/storagehelper.hxx,
comphelper/source/misc/storagehelper.cxx:
+ add function IsValidZipEntryFileName (moved from module package)
2009-04-22 11:01:27 +00:00
|
|
|
ImplToolBoxPrivateData::ImplToolBoxPrivateData() :
|
|
|
|
m_pLayoutData( NULL ),
|
|
|
|
mpImageListProvider( NULL ),
|
|
|
|
meImageListType( vcl::IMAGELISTTYPE_UNKNOWN )
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
|
|
|
meButtonSize = TOOLBOX_BUTTONSIZE_DONTCARE;
|
|
|
|
mpMenu = new PopupMenu();
|
|
|
|
mnEventId = 0;
|
|
|
|
|
|
|
|
maMenuType = TOOLBOX_MENUTYPE_NONE;
|
|
|
|
maMenubuttonItem.maItemSize = Size( TB_MENUBUTTON_SIZE+TB_MENUBUTTON_OFFSET, TB_MENUBUTTON_SIZE+TB_MENUBUTTON_OFFSET );
|
|
|
|
maMenubuttonItem.meState = STATE_NOCHECK;
|
2004-11-16 14:12:24 +00:00
|
|
|
mnMenuButtonWidth = TB_MENUBUTTON_SIZE;
|
2004-07-06 12:49:51 +00:00
|
|
|
|
CWS-TOOLING: integrate CWS dba32a
2009-04-16 13:08:19 +0200 oj r270882 : #i14538# set property at control
2009-04-16 13:04:28 +0200 oj r270881 : #i98557# remove binary string for SRB
2009-04-15 13:19:10 +0200 oj r270838 : #i96782# use type set at view
2009-04-14 14:53:20 +0200 oj r270778 : #i96782# set initialize size for custom shape
2009-04-06 14:19:14 +0200 oj r270546 : #i88432# correct pos when < 0 while resizing
2009-04-06 13:36:13 +0200 oj r270541 : #i96782# handle toolbar and menubar differently
2009-04-06 13:33:54 +0200 oj r270540 : #i96782# handle toolbar and menubar differently
2009-04-06 12:28:23 +0200 oj r270534 : #i96782# handle toolbar and menubar differently
2009-04-06 12:27:44 +0200 oj r270533 : #i96782# handle toolbar and menubar differently
2009-04-06 12:24:32 +0200 oj r270532 : #i96782# handle toolbar and menubar differently
2009-04-06 12:15:15 +0200 oj r270531 : do not initialze when field is empty
2009-04-06 10:06:08 +0200 oj r270528 : #i96782# clean up of menubar and remove duplicates
2009-04-06 09:47:49 +0200 oj r270527 : #i96519# adjust help text dynamic
2009-04-03 13:43:20 +0200 oj r270482 : do not need to remove section from observer they are already disposed
2009-04-03 13:27:28 +0200 fs r270479 : #i97356#
2009-04-02 11:30:39 +0200 fs r270386 : UNX line ends
2009-04-02 10:54:51 +0200 fs r270379 : UNX line ends
2009-04-02 10:39:57 +0200 fs r270378 : UNX line ends
2009-04-02 10:37:24 +0200 fs r270377 : why did this survive the rebase? was removed on trunk ...
2009-03-31 13:31:12 +0200 fs r270277 : component_foo should be public
2009-03-28 00:21:01 +0100 fs r270176 : manuallly merged the changes which happened in CWS before resync to m45, where the directory had been moved from reportdesign/registry to reportbuilder/registry
2009-03-27 23:01:20 +0100 fs r270174 : CWS-TOOLING: rebase CWS dba32a to trunk@270033 (milestone: DEV300:m45)
2009-03-11 12:23:35 +0100 fs r269310 : #i99958# ensure the ControlModelLock doesn't release twice
2009-03-06 09:07:32 +0100 fs r268970 : ignore output paths in SVN's status
2009-03-06 09:07:08 +0100 fs r268969 : ignore output paths in SVN's status
2009-03-04 11:28:02 +0100 oj r268800 : copy and paste error, check correct end now
2009-03-03 15:49:11 +0100 fs r268736 : #i10000# those merges were lost during the rebase (m38->m42)
2009-03-03 13:25:27 +0100 lla r268720 : #i99652# fix wrong refactoring
2009-02-27 11:12:56 +0100 fs r268566 : beautified
2009-02-27 10:53:47 +0100 fs r268561 : doFormListening(false) only when actually isFormListening() (found during complex test case XMLFormSettings with assertions)
2009-02-26 20:55:31 +0100 fs r268546 : #i96530# set the Label property of the bound control, if we didn't create a dedicated label control
2009-02-26 11:53:09 +0100 fs r268494 : #i10000#
2009-02-26 11:27:50 +0100 fs r268493 : #i10000#
2009-02-26 11:17:08 +0100 fs r268490 : reportdesign depends on REPORTBUILDER, not REPORTDESIGN
2009-02-25 11:39:48 +0100 fs r268422 : #i10000# post-resync: INFO_ESCAPE_DATETIME got lost during rebase
2009-02-24 23:24:10 +0100 fs r268411 : CWS-TOOLING: rebase CWS dba32a to trunk@268395 (milestone: DEV300:m42)
2009-02-20 15:09:48 +0100 fs r268324 : respect ImplicitCatalog/SchemaRestriction in all necessary places
2009-02-20 13:48:10 +0100 oj r268318 : order of initialize corrected
2009-02-14 15:07:52 +0100 fs r267759 : #i98975# when an image does not have a bitmap, but a text, draw this (as placeholder)
2009-02-14 15:02:40 +0100 fs r267758 : consolidated and removed some duplicate code
2009-02-14 13:52:23 +0100 fs r267756 : #i10000#
2009-02-13 22:08:34 +0100 fs r267750 : #i100000#
2009-02-13 22:07:25 +0100 fs r267749 : #i10000#
2009-02-13 21:55:36 +0100 fs r267747 : #i10000#
2009-02-13 21:54:27 +0100 fs r267746 : use const_cast
2009-02-13 21:29:10 +0100 fs r267745 : #i10000#
2009-02-13 21:27:39 +0100 fs r267744 : #i10000#
2009-02-13 20:59:13 +0100 fs r267742 : #i10000#
2009-02-13 13:21:30 +0100 fs r267717 : better diagnostics
2009-02-13 13:17:24 +0100 fs r267715 : #i58313# support Catalog/SchemaRestriction settings, which are applied in getTables when 'all catalogs/schemas' are to be retrieved
2009-02-13 13:16:14 +0100 fs r267714 : filter out some more known global settings
2009-02-13 12:39:43 +0100 fs r267713 : #i58313# ImplicitCatalog/SchemaRestriction
2009-02-13 12:36:50 +0100 fs r267712 : when exporting data source settings, allow for properties which have a VOID default value, but are currently not VOID
2009-02-13 12:35:57 +0100 fs r267711 : implement XSet, to allow inserting properties which have a default value of VOID
2009-02-13 12:35:03 +0100 fs r267710 : +addVoidProperty
2009-02-13 10:20:08 +0100 fs r267697 : removed unused variable
2009-02-13 09:46:46 +0100 fs r267695 : refactored the table filtering code, to have a better base for introducing additional low level filters
2009-02-10 09:23:07 +0100 lla r267537 : #i10000# wrong line feed, double named variable
2009-02-09 12:13:08 +0100 oj r267508 : #i98605# notify hanlder
2009-02-09 11:50:34 +0100 oj r267507 : #i98926# solve refcount problem
2009-02-09 11:50:05 +0100 oj r267506 : #i98971# fix for simple html
2009-02-09 11:49:24 +0100 oj r267505 : #i98971# fix for simple html
2009-02-09 11:47:27 +0100 oj r267504 : invoke on copy
2009-02-09 09:51:00 +0100 fs r267500 : #i98316#
2009-02-09 09:46:10 +0100 fs r267499 : setCurrentSelection: don't reset the current form when we de-select everything
2009-02-09 09:43:45 +0100 fs r267498 : #i98316#
2009-02-08 21:25:18 +0100 fs r267496 : #i98272# introduce late ctor for cloning
2009-02-07 21:08:39 +0100 fs r267485 : #i98272# when copy-constructing a FmFormPageImpl, use the XCloneable of the forms collection, instead of XPersistObject (which is incompletely implemented)
2009-02-07 21:07:26 +0100 fs r267484 : removed obsolete include guards
2009-02-07 21:05:22 +0100 fs r267483 : #i98272# implement XCloneable
2009-02-06 15:02:48 +0100 lla r267467 : #i96523# add XImageControl
2009-02-06 14:41:38 +0100 oj r267463 : #i98926# late init when connection disposed but only when asked for
2009-02-06 13:49:57 +0100 lla r267457 : #i92860# bigint in forms doesn't allow input of values > 1, fixed
2009-02-06 13:03:55 +0100 oj r267455 : ImageScaleMode
2009-02-05 14:48:19 +0100 lla r267424 : #i89335# dropdown listboxes are 14 instead of 7 lines high
2009-02-05 13:40:00 +0100 oj r267423 : #i96945# insert new prop Opaque
2009-02-05 13:39:19 +0100 oj r267422 : #i96945# insert layer handling for hell and heaven
2009-02-05 13:29:32 +0100 lla r267420 : #i89335# add is null, is not null, is not like filter condition
2009-02-04 12:23:02 +0100 oj r267364 : #i98821# load table font settings
2009-02-04 10:05:27 +0100 oj r267351 : #i98821# load table font settings
2009-02-04 09:23:22 +0100 fs r267350 : checking persistency of UI settings in database documents - for the moment, capture table formattings (which is issue 98821)
2009-02-04 09:22:15 +0100 fs r267349 : moved some methods which are of wider interest from DatabaseDocument to FileHelper resp. TestCase
2009-02-04 08:56:27 +0100 oj r267347 : #i97586# UcbStreamHelper::CreateStream doesn't check all streamModes use different method
2009-02-04 08:23:26 +0100 oj r267346 : #i98701# check key size is >= 3 and some redesign
2009-02-03 23:29:24 +0100 fs r267345 : return the component (controller), not the frame
2009-02-03 23:28:53 +0100 fs r267344 : openExisting returns a controller now, not the frame (this was a bug)
2009-02-03 23:28:25 +0100 fs r267343 : openElement: properly return the component in the table/query case
2009-02-02 12:48:17 +0100 oj r267261 : #i96013# fix for relative path
2009-02-02 10:33:28 +0100 lla r267253 : #i98557# cleanups and consolidation
2009-02-02 09:37:23 +0100 lla r267250 : #i88432# resize will no longer move components to other sections
2009-02-02 09:08:24 +0100 oj r267245 : #i97475# write 0x1A at the end of the file
2009-01-30 19:39:20 +0100 lla r267230 : #i10000# unused parameters
2009-01-30 09:51:09 +0100 fs r267181 : onsolete
2009-01-30 09:49:27 +0100 fs r267180 : onsolete
2009-01-29 14:28:22 +0100 oj r267139 : #i96825# import cell style
2009-01-29 14:23:12 +0100 oj r267137 : #i98601# export imagescalehandler
2009-01-29 14:19:57 +0100 lla r267135 : #i98601# add ImageScaleMode
2009-01-29 13:21:08 +0100 oj r267124 : #i98601# impl ScaleMode
2009-01-29 13:20:56 +0100 oj r267123 : #i98601# impl ScaleMode
2009-01-29 08:46:40 +0100 oj r267095 : new property: ScaleMode
2009-01-29 08:45:23 +0100 oj r267094 : new ScaleMode from UnControlImageModel
2009-01-29 08:28:12 +0100 oj r267093 : #i87930# close all sub forms/reports when the desktop is going to be terminated and no db frame exists
2009-01-28 19:54:34 +0100 lla r267082 : #i98557# pictures in report wizard
2009-01-28 15:06:25 +0100 oj r267060 : #i87930# close all sub forms/reports when the desktop is going to be terminated and no db frame exists
2009-01-28 11:38:41 +0100 lla r267046 : #i76783# handle binary fields in forms
2009-01-28 09:24:43 +0100 lla r267025 : #i10000#
2009-01-28 08:40:04 +0100 fs r267024 : #i10000#
2009-01-28 08:04:43 +0100 oj r267023 : #i93456# use resource strings for function names
2009-01-27 13:26:05 +0100 oj r266988 : check data field is type field or expression
2009-01-27 13:07:17 +0100 oj r266985 : check data field length
2009-01-27 11:48:19 +0100 oj r266974 : #i96823# return dll string as column name when no alias exists
2009-01-27 09:53:11 +0100 fs r266958 : display the message of a caught exception
2009-01-27 09:44:13 +0100 fs r266957 : #i58313# when retrieving all tables, just set an empty table type filter - the connection will care for translating this, by respecting the TableTypeFilterMode setting
2009-01-27 09:36:09 +0100 fs r266956 : #i58313# getTables: per JDBC spec, is not a valid table type filter. Translate it to 'null'.
2009-01-26 11:24:49 +0100 lla r266912 : #i97865# cleanups (AddField viewable in remote mode)
2009-01-26 07:49:27 +0100 lla r266897 : #i97865# AddField opens in remote case
2009-01-26 07:48:58 +0100 lla r266896 : #i97865# AddField opens in remote case
2009-01-26 07:48:42 +0100 lla r266895 : #i97865# AddField opens in remote case
2009-01-23 15:04:40 +0100 fs r266825 : consolidate the usage of OSQLMessageBox with MessageType==Warning into OSQLWarningBox
2009-01-23 10:47:33 +0100 fs r266787 : +supportsUserAdministration
2009-01-23 10:47:11 +0100 fs r266784 : use DatabaseMetaData.supportsUserAdministration
2009-01-23 07:55:59 +0100 lla r266767 : #i10000# fix gcc compiler failures
2009-01-21 15:08:55 +0100 lla r266673 : #i97265# Labels in HC (IsDark) with other color (viewable)
2009-01-19 14:58:54 +0100 lla r266504 : #i96523# last problems with FormatKey and '0' values fixed
2009-01-19 14:58:00 +0100 lla r266503 : #i96519# AddField help text
2009-01-19 11:59:02 +0100 fs r266485 : #i96523# for formatted field models, init them with TreatAsNumber = false
2009-01-16 10:31:49 +0100 lla r266405 : #i96793# add shrink to popup menu
2009-01-16 09:21:44 +0100 lla r266401 : #i96519# AddField contains a help text
2009-01-15 11:21:49 +0100 lla r266357 : #i96523# problem with XVclWindowPeer not fixed now
2009-01-15 09:19:20 +0100 lla r266335 : #i96523# more crashes fixed.
2009-01-14 13:08:34 +0100 lla r266291 : #i96523# problems with crashes fixed
2009-01-13 10:54:24 +0100 lla r266199 : #i96523# show datasource in formattedfields new files
2009-01-13 10:52:39 +0100 lla r266198 : #i96523# show datasource in formattedfields
2009-01-13 09:41:50 +0100 lla r266197 : #i96526# handling none existance default.otr
2009-01-12 12:55:49 +0100 fs r266151 : don't expect the control model to be a BoundComponent before adding as modify listener
2009-01-12 12:51:33 +0100 fs r266149 : #i88458# let the ImageControl be an XModifyBroadcaster, so the forms runtime can notice when the user changes the control content while it does not have the focus
2009-01-09 13:41:22 +0100 fs r266080 : doc
2009-01-09 13:14:14 +0100 fs r266077 : #i97377# SetModified when order is changed via DnD
2009-01-07 09:55:40 +0100 oj r265951 : merge from master
2009-01-07 09:55:24 +0100 oj r265950 : removed observer
2009-01-07 09:55:06 +0100 oj r265949 : merge from master
2009-01-07 07:29:11 +0100 oj r265945 : shadow var changed
2009-01-06 07:25:57 +0100 oj r265893 : CWS-TOOLING: rebase CWS dba32a to trunk@265758 (milestone: DEV300:m38)
2009-01-05 13:18:22 +0100 oj r265865 : convert to unix le
2009-01-05 09:13:52 +0100 lla r265857 : #i79423# lc_ sc_ permutation fix
2009-01-02 19:40:59 +0100 lla r265847 : #i79423# section shrink icons
2008-12-22 11:37:57 +0100 lla r265749 : #i97484# move component to negative Y-position
2008-12-22 11:37:05 +0100 lla r265748 : #i97484# move component to negative Y-position
2008-12-22 11:35:33 +0100 lla r265747 : #i97484# move component to negative Y-position
2008-12-22 11:25:07 +0100 lla r265745 : #i96757# changes via property browser was not undoable
2008-12-18 15:10:38 +0100 fs r265694 : corrected an condition in doFormListening, which otherwise leads to uncommitable grid columns in documents which are loaded from disc (not in documents which are newly created)
2008-12-18 14:54:39 +0100 fs r265692 : Hide Columns text slightly changed
2008-12-18 13:44:15 +0100 fs r265683 : #i94068# properly display erros happening during a form operation - at least once, and at most once
2008-12-18 11:28:29 +0100 fs r265677 : document the new InputRequired property
2008-12-18 11:04:15 +0100 fs r265676 : #i96530# createControlLabelPair: don't actually create a label for a checkbox
2008-12-18 10:35:53 +0100 fs r265674 : #i95226# when a column is replaced, and it's the selected column, update the selection
2008-12-18 10:34:42 +0100 fs r265673 : #i95226# refactoring of the implReplaced method
2008-12-18 10:34:28 +0100 fs r265672 : #i95226# when replacing a grid column, update the property browser
2008-12-18 10:33:17 +0100 fs r265671 : when an element is removed, remove it from m_aCurrentSelection, too (if necessary)
2008-12-18 10:31:57 +0100 fs r265670 : Hide Columns text slightly changed
2008-12-18 10:15:56 +0100 lla r265669 : #i14538# do not allow to press finish button twice
2008-12-18 08:56:33 +0100 lla r265665 : #i10000# build depend=t problem hacked.
2008-12-17 20:59:10 +0100 fs r265656 : #i89821# don't let a MultiLineEdit select all text when it receives the focus
2008-12-17 12:10:54 +0100 fs r265594 : #i97356#
2008-12-17 12:06:29 +0100 fs r265593 : #i97355# Print -> Printable
2008-12-17 11:59:31 +0100 fs r265591 : #i97350# combo boxes comment on list selection (as list boxes already do)
2008-12-16 09:53:57 +0100 lla r265527 : #i96526# handling none existance default.otr
2008-12-15 14:48:39 +0100 lla r265500 : #i79423# reparing, was wrong implemented
2008-12-12 15:08:33 +0100 lla r265424 : #i10000# remove wrong carridge returns
2008-12-12 15:07:55 +0100 lla r265423 : #i10000# remove wrong carridge returns
2008-12-12 15:06:41 +0100 lla r265422 : #i10000# remove wrong carridge returns
2008-12-12 10:23:13 +0100 lla r265395 : #i95234# reset DragDelta
2008-12-12 10:11:02 +0100 lla r265393 : #i79423# pre versions of shrink buttons
2008-12-11 15:32:13 +0100 fs r265318 : prevent a deadlock during complex.dbaccess.DatabaseDocument test
2008-12-11 15:30:06 +0100 fs r265316 : prevent a deadlock during complex.dbaccess.DatabaseDocument test
2008-12-11 15:07:05 +0100 fs r265307 : removed superfluous text
2008-12-11 12:29:54 +0100 lla r265282 : #i96757# cleanup second try
2008-12-11 12:09:15 +0100 lla r265278 : #i96757# cleanup
2008-12-11 12:07:56 +0100 lla r265277 : #i95234#
2008-12-10 14:04:39 +0100 lla r265183 : #i93472# D&D fixes
2008-12-10 12:29:33 +0100 lla r265168 : #i94067# add (APP|SYS)FONT to XUnitConversion
2008-12-10 12:15:02 +0100 lla r265166 : #i94067# add APPFONT, SYSFONT to MeasureUnit
2008-12-10 11:52:10 +0100 lla r265163 : #i94067# add comments
2008-12-06 20:33:05 +0100 fs r264935 : #i10000# precompiled header
2008-12-05 09:29:26 +0100 fs r264889 : #i10000#
2008-12-05 09:07:31 +0100 fs r264888 : #i10000#
2008-12-04 13:25:46 +0100 fs r264838 : CWS-TOOLING: rebase CWS dba32a to trunk@264807 (milestone: DEV300:m37)
2008-12-03 23:49:13 +0100 fs r264808 : merge changes from trunk, to be able to do a rebase
2008-12-03 17:13:09 +0100 lla r264801 : #i91041# update documentation
2008-12-03 16:57:04 +0100 lla r264799 : #i94067# allow convert(Point|Size)ToLogic as pixel also
2008-12-02 12:36:32 +0100 lla r264687 : #i96782# bring toolbar objects to menu structure
2008-12-02 10:32:44 +0100 lla r264667 : #i86255# make property work
2008-12-02 09:22:47 +0100 lla r264659 : #i79423# add section shrink toolbar
2008-12-02 07:41:22 +0100 lla r264657 : #i86255# add check box for Escape DateTime property
2008-12-02 07:37:17 +0100 lla r264656 : #i79423# new shrink buttons
2008-11-26 11:55:28 +0100 fs r264362 : #i96541#
FillPropertySet: do not only catch UnknownPropertyException when setting the Char/ParaAutoStyleName,
but also care for the other exceptions which can be thrown by XPropertySet::setPropertyValue.
This is actually not the real fix for #i96541#, but only a follow-up. The root cause of the issue
was fixed in CWS dba301b, but this here was another (potential) bug which popped up during investigations.
2008-11-25 09:04:40 +0100 lla r264273 : #i82083# new toolbox in GroupsSorting dialog
2008-11-25 08:56:08 +0100 lla r264272 : #i94729# change token strings into string list, move class out of function
2008-11-24 15:52:22 +0100 fs r264251 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:51:45 +0100 fs r264249 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:45:21 +0100 fs r264244 : #i96532# the API default for ParamNameSubst is false
2008-11-24 15:45:04 +0100 fs r264243 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:44:14 +0100 fs r264241 : #i96532# slight refactoring of exporting properties which have a XML default different from the API default
2008-11-24 10:50:01 +0100 lla r264216 : #i82083# icons for new toolbox
2008-11-24 09:38:45 +0100 lla r264205 : #i82083# new toolbox in GroupsSorting dialog
2008-11-24 09:32:20 +0100 lla r264201 : #i96501# cleanup assertions
2008-11-24 09:12:55 +0100 lla r264198 : #i83082# enhancement for toolboxes, better HC comfort
2008-11-24 08:46:43 +0100 lla r264197 : #i96501# fix problem with negative positions
2008-11-21 11:44:47 +0100 fs r264118 : #i57042# introduce a counter for suspending change notifications of a given property, so recursive calls are possible
2008-11-21 11:02:17 +0100 fs r264116 : #i96388# don't call ExecuteContextMenuAction when no action was chosen by the user
2008-11-21 10:36:53 +0100 fs r264114 : #i47384# assertion was wrong
2008-11-14 12:33:15 +0100 fs r263673 : #i47318# XRowSetChangeBroadcaster/Listener, to be able to listen for changes in an XRowSetSupplier's RowSet
2008-11-14 12:30:29 +0100 fs r263672 : #i47318# more refactoring
- BoundControlModels now listen at the XRowSetSupplier for changes in the supplied
RowSet, to properly revoke/register old/new listeners at the RowSet
- replaced ::osl::Mutex in various places with a ControlModelLock
2008-11-14 12:20:55 +0100 fs r263671 : when BUILD_TYPE includes QADEVOOO, the BUILD_QADEVOOO needs to bet set, too
2008-11-14 12:19:21 +0100 fs r263670 : oops, this was not intended to be committed
2008-11-12 11:08:10 +0100 fs r263579 : #i96096# new ctors taking UNO_QUERY_THROW
2008-11-12 09:15:54 +0100 fs r263576 : no need to load the complete dialog just to get a string which the dialog itself loads from resource
2008-11-10 17:55:45 +0100 fs r263535 : spelling in comment
2008-11-10 15:51:14 +0100 fs r263523 : #i47318# various refactorings
1. don't forward syntetic XLoadListener events from the grid control to
the grid columns. Instead, forward GridColumn::XChild::setParent to
the base class, which then can add itself as load listener
2. removed various occurances of XMultiServiceFactory, instead use the
::comphelper::ComponentContext
3. in O(Bound)ControlModel, have a mechanism to lock the instance (using
ControlModelLock) and fire property changes when the last lock dies.
2008-11-10 12:49:24 +0100 oj r263513 : #i94729# change token strings into string list
2008-11-10 12:13:15 +0100 oj r263512 : #i95222# export chart:title style as well
2008-11-10 08:55:25 +0100 oj r263507 : #i93471# show the correct tabpage when selecting a different object
2008-11-07 23:38:29 +0100 fs r263490 : #i95977# for the event input controls, add a component extending their functionality so they're reset when the users presses DEL
2008-11-07 23:35:39 +0100 fs r263489 : during #i95977#: When a VCL Window is deleted from within VCL code, the respective WindowPeer was never disposed. Corrected this.
2008-11-07 14:57:07 +0100 fs r263420 : #i95963# human-readable display names for event bindings
2008-11-06 10:34:52 +0100 fs r263366 : #i95865# don't use library names containing InvalidZipEntryFileNames - workaround until i95409 is fixed
2008-11-06 10:33:28 +0100 fs r263365 : #i95865#
copied the following change from CWS odfmetadata2 (not yet integrated) into CWS dba31d
- comphelper/inc/comphelper/storagehelper.hxx,
comphelper/source/misc/storagehelper.cxx:
+ add function IsValidZipEntryFileName (moved from module package)
2009-04-22 11:01:27 +00:00
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
mbIsLocked = sal_False;
|
|
|
|
mbNativeButtons = sal_False;
|
|
|
|
mbIsPaintLocked = sal_False;
|
|
|
|
mbAssumeDocked = sal_False;
|
|
|
|
mbAssumePopupMode = sal_False;
|
|
|
|
mbAssumeFloating = sal_False;
|
|
|
|
mbKeyInputDisabled = sal_False;
|
|
|
|
mbMenubuttonSelected = sal_False;
|
|
|
|
mbPageScroll = sal_False;
|
|
|
|
mbWillUsePopupMode = sal_False;
|
|
|
|
mbDropDownByKeyboard = sal_False;
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ImplToolBoxPrivateData::~ImplToolBoxPrivateData()
|
|
|
|
{
|
|
|
|
if( m_pLayoutData )
|
|
|
|
delete m_pLayoutData;
|
|
|
|
delete mpMenu;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
2000-09-18 16:07:07 +00:00
|
|
|
ImplToolItem::ImplToolItem()
|
|
|
|
{
|
|
|
|
mnId = 0;
|
|
|
|
mpWindow = NULL;
|
|
|
|
mpUserData = NULL;
|
|
|
|
meType = TOOLBOXITEM_BUTTON;
|
|
|
|
mnBits = 0;
|
|
|
|
meState = STATE_NOCHECK;
|
2010-09-29 15:46:40 +08:00
|
|
|
mbEnabled = sal_True;
|
|
|
|
mbVisible = sal_True;
|
|
|
|
mbEmptyBtn = sal_True;
|
|
|
|
mbShowWindow = sal_False;
|
|
|
|
mbBreak = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
mnSepSize = TB_SEP_SIZE;
|
2004-11-16 14:12:24 +00:00
|
|
|
mnDropDownArrowWidth = TB_DROPDOWNARROWWIDTH;
|
2002-02-20 13:44:06 +00:00
|
|
|
mnImageAngle = 0;
|
2010-09-29 15:46:40 +08:00
|
|
|
mbMirrorMode = sal_False;
|
|
|
|
mbVisibleText = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const Image& rImage,
|
2000-09-18 16:07:07 +00:00
|
|
|
ToolBoxItemBits nItemBits ) :
|
|
|
|
maImage( rImage )
|
|
|
|
{
|
|
|
|
mnId = nItemId;
|
|
|
|
mpWindow = NULL;
|
|
|
|
mpUserData = NULL;
|
|
|
|
meType = TOOLBOXITEM_BUTTON;
|
|
|
|
mnBits = nItemBits;
|
|
|
|
meState = STATE_NOCHECK;
|
2010-09-29 15:46:40 +08:00
|
|
|
mbEnabled = sal_True;
|
|
|
|
mbVisible = sal_True;
|
|
|
|
mbEmptyBtn = sal_False;
|
|
|
|
mbShowWindow = sal_False;
|
|
|
|
mbBreak = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
mnSepSize = TB_SEP_SIZE;
|
2004-11-16 14:12:24 +00:00
|
|
|
mnDropDownArrowWidth = TB_DROPDOWNARROWWIDTH;
|
2002-02-20 13:44:06 +00:00
|
|
|
mnImageAngle = 0;
|
|
|
|
mbMirrorMode = false;
|
2004-07-06 12:49:51 +00:00
|
|
|
mbVisibleText = false;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const XubString& rText,
|
2000-09-18 16:07:07 +00:00
|
|
|
ToolBoxItemBits nItemBits ) :
|
|
|
|
maText( rText )
|
|
|
|
{
|
|
|
|
mnId = nItemId;
|
|
|
|
mpWindow = NULL;
|
|
|
|
mpUserData = NULL;
|
|
|
|
meType = TOOLBOXITEM_BUTTON;
|
|
|
|
mnBits = nItemBits;
|
|
|
|
meState = STATE_NOCHECK;
|
2010-09-29 15:46:40 +08:00
|
|
|
mbEnabled = sal_True;
|
|
|
|
mbVisible = sal_True;
|
|
|
|
mbEmptyBtn = sal_False;
|
|
|
|
mbShowWindow = sal_False;
|
|
|
|
mbBreak = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
mnSepSize = TB_SEP_SIZE;
|
2004-11-16 14:12:24 +00:00
|
|
|
mnDropDownArrowWidth = TB_DROPDOWNARROWWIDTH;
|
2002-02-20 13:44:06 +00:00
|
|
|
mnImageAngle = 0;
|
|
|
|
mbMirrorMode = false;
|
2004-07-06 12:49:51 +00:00
|
|
|
mbVisibleText = false;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplToolItem::ImplToolItem( sal_uInt16 nItemId, const Image& rImage,
|
2000-09-18 16:07:07 +00:00
|
|
|
const XubString& rText, ToolBoxItemBits nItemBits ) :
|
|
|
|
maImage( rImage ),
|
|
|
|
maText( rText )
|
|
|
|
{
|
|
|
|
mnId = nItemId;
|
|
|
|
mpWindow = NULL;
|
|
|
|
mpUserData = NULL;
|
|
|
|
meType = TOOLBOXITEM_BUTTON;
|
|
|
|
mnBits = nItemBits;
|
|
|
|
meState = STATE_NOCHECK;
|
2010-09-29 15:46:40 +08:00
|
|
|
mbEnabled = sal_True;
|
|
|
|
mbVisible = sal_True;
|
|
|
|
mbEmptyBtn = sal_False;
|
|
|
|
mbShowWindow = sal_False;
|
|
|
|
mbBreak = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
mnSepSize = TB_SEP_SIZE;
|
2004-11-16 14:12:24 +00:00
|
|
|
mnDropDownArrowWidth = TB_DROPDOWNARROWWIDTH;
|
2002-02-20 13:44:06 +00:00
|
|
|
mnImageAngle = 0;
|
|
|
|
mbMirrorMode = false;
|
2004-07-06 12:49:51 +00:00
|
|
|
mbVisibleText = false;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem::ImplToolItem( const ImplToolItem& rItem ) :
|
|
|
|
mpWindow ( rItem.mpWindow ),
|
|
|
|
mpUserData ( rItem.mpUserData ),
|
|
|
|
maImage ( rItem.maImage ),
|
|
|
|
maHighImage ( rItem.maHighImage ),
|
|
|
|
mnImageAngle ( rItem.mnImageAngle ),
|
|
|
|
mbMirrorMode ( rItem.mbMirrorMode ),
|
|
|
|
maText ( rItem.maText ),
|
|
|
|
maQuickHelpText ( rItem.maQuickHelpText ),
|
|
|
|
maHelpText ( rItem.maHelpText ),
|
|
|
|
maCommandStr ( rItem.maCommandStr ),
|
2010-06-04 13:46:22 +02:00
|
|
|
maHelpId ( rItem.maHelpId ),
|
2002-10-30 15:38:24 +00:00
|
|
|
maRect ( rItem.maRect ),
|
|
|
|
maCalcRect ( rItem.maCalcRect ),
|
2006-06-19 18:42:19 +00:00
|
|
|
maItemSize ( rItem.maItemSize ),
|
2002-10-30 15:38:24 +00:00
|
|
|
mnSepSize ( rItem.mnSepSize ),
|
2004-11-16 14:12:24 +00:00
|
|
|
mnDropDownArrowWidth ( rItem.mnDropDownArrowWidth ),
|
2002-10-30 15:38:24 +00:00
|
|
|
meType ( rItem.meType ),
|
|
|
|
mnBits ( rItem.mnBits ),
|
|
|
|
meState ( rItem.meState ),
|
|
|
|
mnId ( rItem.mnId ),
|
|
|
|
mbEnabled ( rItem.mbEnabled ),
|
|
|
|
mbVisible ( rItem.mbVisible ),
|
|
|
|
mbEmptyBtn ( rItem.mbEmptyBtn ),
|
|
|
|
mbShowWindow ( rItem.mbShowWindow ),
|
2006-06-19 18:42:19 +00:00
|
|
|
mbBreak ( rItem.mbBreak ),
|
|
|
|
mbVisibleText ( rItem.mbVisibleText )
|
2002-10-30 15:38:24 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
ImplToolItem::~ImplToolItem()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem& ImplToolItem::operator=( const ImplToolItem& rItem )
|
|
|
|
{
|
|
|
|
mpWindow = rItem.mpWindow;
|
|
|
|
mpUserData = rItem.mpUserData;
|
|
|
|
maImage = rItem.maImage;
|
|
|
|
maHighImage = rItem.maHighImage;
|
|
|
|
mnImageAngle = rItem.mnImageAngle;
|
|
|
|
mbMirrorMode = rItem.mbMirrorMode;
|
|
|
|
maText = rItem.maText;
|
|
|
|
maQuickHelpText = rItem.maQuickHelpText;
|
|
|
|
maHelpText = rItem.maHelpText;
|
|
|
|
maCommandStr = rItem.maCommandStr;
|
2010-06-04 13:46:22 +02:00
|
|
|
maHelpId = rItem.maHelpId;
|
2002-10-30 15:38:24 +00:00
|
|
|
maRect = rItem.maRect;
|
|
|
|
maCalcRect = rItem.maCalcRect;
|
|
|
|
mnSepSize = rItem.mnSepSize;
|
2004-11-16 14:12:24 +00:00
|
|
|
mnDropDownArrowWidth = rItem.mnDropDownArrowWidth;
|
2004-07-06 12:49:51 +00:00
|
|
|
maItemSize = rItem.maItemSize;
|
|
|
|
mbVisibleText = rItem.mbVisibleText;
|
2002-10-30 15:38:24 +00:00
|
|
|
meType = rItem.meType;
|
|
|
|
mnBits = rItem.mnBits;
|
|
|
|
meState = rItem.meState;
|
|
|
|
mnId = rItem.mnId;
|
|
|
|
mbEnabled = rItem.mbEnabled;
|
|
|
|
mbVisible = rItem.mbVisible;
|
|
|
|
mbEmptyBtn = rItem.mbEmptyBtn;
|
|
|
|
mbShowWindow = rItem.mbShowWindow;
|
|
|
|
mbBreak = rItem.mbBreak;
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
Size ImplToolItem::GetSize( sal_Bool bHorz, sal_Bool bCheckMaxWidth, long maxWidth, const Size& rDefaultSize )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2004-07-06 12:49:51 +00:00
|
|
|
Size aSize( rDefaultSize ); // the size of 'standard' toolbox items
|
|
|
|
// non-standard items are eg windows or buttons with text
|
|
|
|
|
|
|
|
if ( (meType == TOOLBOXITEM_BUTTON) || (meType == TOOLBOXITEM_SPACE) )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2004-07-06 12:49:51 +00:00
|
|
|
aSize = maItemSize;
|
|
|
|
|
|
|
|
if ( mpWindow && bHorz )
|
|
|
|
{
|
|
|
|
// get size of item window and check if it fits
|
2010-09-29 15:46:40 +08:00
|
|
|
// no windows in vertical toolbars (the default is mbShowWindow=sal_False)
|
2004-07-06 12:49:51 +00:00
|
|
|
Size aWinSize = mpWindow->GetSizePixel();
|
|
|
|
if ( !bCheckMaxWidth || (aWinSize.Width() <= maxWidth) )
|
|
|
|
{
|
|
|
|
aSize.Width() = aWinSize.Width();
|
|
|
|
aSize.Height() = aWinSize.Height();
|
2010-09-29 15:46:40 +08:00
|
|
|
mbShowWindow = sal_True;
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if ( mbEmptyBtn )
|
|
|
|
{
|
|
|
|
aSize.Width() = 0;
|
|
|
|
aSize.Height() = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ( meType == TOOLBOXITEM_SEPARATOR )
|
|
|
|
{
|
|
|
|
if ( bHorz )
|
|
|
|
{
|
|
|
|
aSize.Width() = mnSepSize;
|
|
|
|
aSize.Height() = rDefaultSize.Height();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
aSize.Width() = rDefaultSize.Width();
|
|
|
|
aSize.Height() = mnSepSize;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ( meType == TOOLBOXITEM_BREAK )
|
|
|
|
{
|
|
|
|
aSize.Width() = 0;
|
|
|
|
aSize.Height() = 0;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
2004-07-06 12:49:51 +00:00
|
|
|
|
|
|
|
return aSize;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ImplToolItem::DetermineButtonDrawStyle( ButtonType eButtonType, sal_Bool& rbImage, sal_Bool& rbText ) const
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
|
|
|
if ( meType != TOOLBOXITEM_BUTTON )
|
|
|
|
{
|
|
|
|
// no button -> draw nothing
|
2010-09-29 15:46:40 +08:00
|
|
|
rbImage = rbText = sal_False;
|
2004-07-06 12:49:51 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool bHasImage;
|
|
|
|
sal_Bool bHasText;
|
2004-07-06 12:49:51 +00:00
|
|
|
|
|
|
|
// check for image and/or text
|
|
|
|
if ( !(maImage) )
|
2010-09-29 15:46:40 +08:00
|
|
|
bHasImage = sal_False;
|
2004-07-06 12:49:51 +00:00
|
|
|
else
|
2010-09-29 15:46:40 +08:00
|
|
|
bHasImage = sal_True;
|
2004-07-06 12:49:51 +00:00
|
|
|
if ( !maText.Len() )
|
2010-09-29 15:46:40 +08:00
|
|
|
bHasText = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
else
|
2010-09-29 15:46:40 +08:00
|
|
|
bHasText = sal_True;
|
2004-07-06 12:49:51 +00:00
|
|
|
|
|
|
|
// prefer images if symbolonly buttons are drawn
|
|
|
|
// prefer texts if textonly buttons are dreawn
|
|
|
|
|
|
|
|
if ( eButtonType == BUTTON_SYMBOL ) // drawing icons only
|
|
|
|
{
|
|
|
|
if( bHasImage || !bHasText )
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
rbImage = sal_True;
|
|
|
|
rbText = sal_False;
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
rbImage = sal_False;
|
|
|
|
rbText = sal_True;
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ( eButtonType == BUTTON_TEXT ) // drawing text only
|
|
|
|
{
|
|
|
|
if( bHasText || !bHasImage )
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
rbImage = sal_False;
|
|
|
|
rbText = sal_True;
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
rbImage = sal_True;
|
|
|
|
rbText = sal_False;
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else // drawing icons and text both
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
rbImage = sal_True;
|
|
|
|
rbText = sal_True;
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
Rectangle ImplToolItem::GetDropDownRect( sal_Bool bHorz ) const
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
|
|
|
Rectangle aRect;
|
|
|
|
if( (mnBits & TIB_DROPDOWN) && !maRect.IsEmpty() )
|
|
|
|
{
|
|
|
|
aRect = maRect;
|
|
|
|
if( mbVisibleText && !bHorz )
|
|
|
|
// item will be rotated -> place dropdown to the bottom
|
2004-11-16 14:12:24 +00:00
|
|
|
aRect.Top() = aRect.Bottom() - mnDropDownArrowWidth;
|
2004-07-06 12:49:51 +00:00
|
|
|
else
|
|
|
|
// place dropdown to the right
|
2004-11-16 14:12:24 +00:00
|
|
|
aRect.Left() = aRect.Right() - mnDropDownArrowWidth;
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
return aRect;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool ImplToolItem::IsClipped() const
|
2004-11-16 14:12:24 +00:00
|
|
|
{
|
|
|
|
return ( meType == TOOLBOXITEM_BUTTON && mbVisible && maRect.IsEmpty() );
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2004-07-06 12:49:51 +00:00
|
|
|
const XubString& ToolBox::ImplConvertMenuString( const XubString& rStr )
|
|
|
|
{
|
|
|
|
maCvtStr = rStr;
|
|
|
|
if ( mbMenuStrings )
|
2011-11-23 22:17:24 +00:00
|
|
|
maCvtStr = comphelper::string::stripEnd(maCvtStr, '.');
|
2004-07-06 12:49:51 +00:00
|
|
|
maCvtStr = MnemonicGenerator::EraseAllMnemonicChars( maCvtStr );
|
|
|
|
return maCvtStr;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::ImplInvalidate( sal_Bool bNewCalc, sal_Bool bFullPaint )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2002-04-22 13:26:53 +00:00
|
|
|
ImplUpdateInputEnable();
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( bNewCalc )
|
2010-09-29 15:46:40 +08:00
|
|
|
mbCalc = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( bFullPaint )
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
mbFormat = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// Muss ueberhaupt eine neue Ausgabe erfolgen
|
|
|
|
if ( IsReallyVisible() && IsUpdateMode() )
|
|
|
|
{
|
|
|
|
Invalidate( Rectangle( mnLeftBorder, mnTopBorder,
|
|
|
|
mnDX-mnRightBorder-1, mnDY-mnBottomBorder-1 ) );
|
|
|
|
maTimer.Stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if ( !mbFormat )
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
mbFormat = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// Muss ueberhaupt eine neue Ausgabe erfolgen
|
|
|
|
if ( IsReallyVisible() && IsUpdateMode() )
|
|
|
|
maTimer.Start();
|
|
|
|
}
|
|
|
|
}
|
2005-01-31 08:20:09 +00:00
|
|
|
|
|
|
|
// request new layout by layoutmanager
|
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_FORMATCHANGED );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::ImplUpdateItem( sal_uInt16 nIndex )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
// Muss ueberhaupt eine neue Ausgabe erfolgen
|
|
|
|
if ( IsReallyVisible() && IsUpdateMode() )
|
|
|
|
{
|
|
|
|
if ( nIndex == 0xFFFF )
|
|
|
|
{
|
2005-11-01 11:59:39 +00:00
|
|
|
// #i52217# no immediate draw as this might lead to paint problems
|
|
|
|
Invalidate( Rectangle( mnLeftBorder, mnTopBorder,
|
|
|
|
mnDX-mnRightBorder-1, mnDY-mnBottomBorder-1 ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if ( !mbFormat )
|
2002-03-07 15:13:07 +00:00
|
|
|
{
|
2005-11-01 11:59:39 +00:00
|
|
|
// #i52217# no immediate draw as this might lead to paint problems
|
|
|
|
Invalidate( mpData->m_aItems[nIndex].maRect );
|
2002-03-07 15:13:07 +00:00
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
else
|
2002-10-30 15:38:24 +00:00
|
|
|
maPaintRect.Union( mpData->m_aItems[nIndex].maRect );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::Click()
|
|
|
|
{
|
2001-11-27 08:52:58 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_CLICK );
|
2000-09-18 16:07:07 +00:00
|
|
|
maClickHdl.Call( this );
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::DoubleClick()
|
|
|
|
{
|
2001-11-27 08:52:58 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_DOUBLECLICK );
|
2000-09-18 16:07:07 +00:00
|
|
|
maDoubleClickHdl.Call( this );
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::Activate()
|
|
|
|
{
|
2002-10-17 15:02:38 +00:00
|
|
|
mnActivateCount++;
|
2001-11-27 08:52:58 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ACTIVATE );
|
2000-09-18 16:07:07 +00:00
|
|
|
maActivateHdl.Call( this );
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::Deactivate()
|
|
|
|
{
|
2002-10-17 15:02:38 +00:00
|
|
|
mnActivateCount--;
|
2001-11-27 08:52:58 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_DEACTIVATE );
|
2000-09-18 16:07:07 +00:00
|
|
|
maDeactivateHdl.Call( this );
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::Highlight()
|
|
|
|
{
|
2001-11-27 08:52:58 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_HIGHLIGHT );
|
2000-09-18 16:07:07 +00:00
|
|
|
maHighlightHdl.Call( this );
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::Select()
|
|
|
|
{
|
2004-07-06 12:49:51 +00:00
|
|
|
ImplDelData aDelData;
|
|
|
|
ImplAddDel( &aDelData );
|
|
|
|
|
2001-11-27 08:52:58 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_SELECT );
|
2000-09-18 16:07:07 +00:00
|
|
|
maSelectHdl.Call( this );
|
2004-07-06 12:49:51 +00:00
|
|
|
|
|
|
|
if ( aDelData.IsDelete() )
|
|
|
|
return;
|
|
|
|
ImplRemoveDel( &aDelData );
|
|
|
|
|
|
|
|
// TODO: GetFloatingWindow in DockingWindow is currently inline, change it to check dockingwrapper
|
|
|
|
ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( this );
|
|
|
|
if( pWrapper && pWrapper->GetFloatingWindow() && pWrapper->GetFloatingWindow()->IsInPopupMode() )
|
|
|
|
pWrapper->GetFloatingWindow()->EndPopupMode();
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::NextToolBox()
|
|
|
|
{
|
|
|
|
maNextToolBoxHdl.Call( this );
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::Customize( const ToolBoxCustomizeEvent& )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2006-06-19 18:42:19 +00:00
|
|
|
void ToolBox::UserDraw( const UserDrawEvent& )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::InsertItem( const ResId& rResId, sal_uInt16 nPos )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2011-01-12 15:07:10 +01:00
|
|
|
sal_uLong nObjMask;
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool bImage = sal_False; // Wurde Image gesetzt
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// Item anlegen
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem aItem;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
GetRes( rResId.SetRT( RSC_TOOLBOXITEM ) );
|
2005-01-03 16:43:01 +00:00
|
|
|
nObjMask = ReadLongRes();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nObjMask & RSC_TOOLBOXITEM_ID )
|
2010-09-29 15:46:40 +08:00
|
|
|
aItem.mnId = sal::static_int_cast<sal_uInt16>(ReadLongRes());
|
2000-09-18 16:07:07 +00:00
|
|
|
else
|
2002-10-30 15:38:24 +00:00
|
|
|
aItem.mnId = 1;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nObjMask & RSC_TOOLBOXITEM_TYPE )
|
2005-01-03 16:43:01 +00:00
|
|
|
aItem.meType = (ToolBoxItemType)ReadLongRes();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nObjMask & RSC_TOOLBOXITEM_STATUS )
|
2005-01-03 16:43:01 +00:00
|
|
|
aItem.mnBits = (ToolBoxItemBits)ReadLongRes();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if( nObjMask & RSC_TOOLBOXITEM_HELPID )
|
2010-06-04 13:46:22 +02:00
|
|
|
aItem.maHelpId = ReadByteStringRes();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nObjMask & RSC_TOOLBOXITEM_TEXT )
|
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
aItem.maText = ReadStringRes();
|
|
|
|
aItem.maText = ImplConvertMenuString( aItem.maText );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
if ( nObjMask & RSC_TOOLBOXITEM_HELPTEXT )
|
2002-10-30 15:38:24 +00:00
|
|
|
aItem.maHelpText = ReadStringRes();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nObjMask & RSC_TOOLBOXITEM_BITMAP )
|
|
|
|
{
|
2007-04-26 08:31:36 +00:00
|
|
|
Bitmap aBmp = Bitmap( ResId( (RSHEADER_TYPE*)GetClassRes(), *rResId.GetResMgr() ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
IncrementRes( GetObjSizeRes( (RSHEADER_TYPE*)GetClassRes() ) );
|
2002-10-30 15:38:24 +00:00
|
|
|
aItem.maImage = Image( aBmp, IMAGE_STDBTN_COLOR );
|
2010-09-29 15:46:40 +08:00
|
|
|
bImage = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
if ( nObjMask & RSC_TOOLBOXITEM_IMAGE )
|
|
|
|
{
|
2007-04-26 08:31:36 +00:00
|
|
|
aItem.maImage = Image( ResId( (RSHEADER_TYPE*)GetClassRes(), *rResId.GetResMgr() ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
IncrementRes( GetObjSizeRes( (RSHEADER_TYPE*)GetClassRes() ) );
|
2010-09-29 15:46:40 +08:00
|
|
|
bImage = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
if ( nObjMask & RSC_TOOLBOXITEM_DISABLE )
|
2010-09-29 15:46:40 +08:00
|
|
|
aItem.mbEnabled = !(sal_Bool)ReadShortRes();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nObjMask & RSC_TOOLBOXITEM_STATE )
|
2005-01-03 16:43:01 +00:00
|
|
|
aItem.meState = (TriState)ReadLongRes();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nObjMask & RSC_TOOLBOXITEM_HIDE )
|
2010-09-29 15:46:40 +08:00
|
|
|
aItem.mbVisible = !((sal_Bool)ReadShortRes());
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nObjMask & RSC_TOOLBOXITEM_COMMAND )
|
2002-10-30 15:38:24 +00:00
|
|
|
aItem.maCommandStr = ReadStringRes();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// Wenn kein Image geladen wurde, versuchen wir das Image aus der
|
|
|
|
// Image-Liste zu holen
|
2002-10-30 15:38:24 +00:00
|
|
|
if ( !bImage && aItem.mnId )
|
|
|
|
aItem.maImage = maImageList.GetImage( aItem.mnId );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// Wenn es sich um ein ButtonItem handelt, die ID ueberpruefen
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool bNewCalc;
|
2002-10-30 15:38:24 +00:00
|
|
|
if ( aItem.meType != TOOLBOXITEM_BUTTON )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
bNewCalc = sal_False;
|
2002-10-30 15:38:24 +00:00
|
|
|
aItem.mnId = 0;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
bNewCalc = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2002-10-30 15:38:24 +00:00
|
|
|
DBG_ASSERT( aItem.mnId, "ToolBox::InsertItem(): ItemId == 0" );
|
|
|
|
DBG_ASSERT( GetItemPos( aItem.mnId ) == TOOLBOX_ITEM_NOTFOUND,
|
2000-09-18 16:07:07 +00:00
|
|
|
"ToolBox::InsertItem(): ItemId already exists" );
|
|
|
|
}
|
|
|
|
|
|
|
|
// Item anlegen und in die Liste einfuegen
|
2002-10-30 15:38:24 +00:00
|
|
|
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
|
|
|
|
mpData->ImplClearLayoutData();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ToolBox neu brechnen und neu ausgeben
|
|
|
|
ImplInvalidate( bNewCalc );
|
2002-06-13 07:42:31 +00:00
|
|
|
|
|
|
|
// Notify
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nPos);
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::InsertItem( sal_uInt16 nItemId, const Image& rImage,
|
|
|
|
ToolBoxItemBits nBits, sal_uInt16 nPos )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
DBG_ASSERT( nItemId, "ToolBox::InsertItem(): ItemId == 0" );
|
|
|
|
DBG_ASSERT( GetItemPos( nItemId ) == TOOLBOX_ITEM_NOTFOUND,
|
|
|
|
"ToolBox::InsertItem(): ItemId already exists" );
|
|
|
|
|
|
|
|
// Item anlegen und in die Liste einfuegen
|
2002-10-30 15:38:24 +00:00
|
|
|
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), ImplToolItem( nItemId, rImage, nBits ) );
|
|
|
|
mpData->ImplClearLayoutData();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_True );
|
2002-06-13 07:42:31 +00:00
|
|
|
|
|
|
|
// Notify
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nPos);
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >(nNewPos ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::InsertItem( sal_uInt16 nItemId, const Image& rImage,
|
2000-09-18 16:07:07 +00:00
|
|
|
const XubString& rText,
|
2010-09-29 15:46:40 +08:00
|
|
|
ToolBoxItemBits nBits, sal_uInt16 nPos )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
DBG_ASSERT( nItemId, "ToolBox::InsertItem(): ItemId == 0" );
|
|
|
|
DBG_ASSERT( GetItemPos( nItemId ) == TOOLBOX_ITEM_NOTFOUND,
|
|
|
|
"ToolBox::InsertItem(): ItemId already exists" );
|
|
|
|
|
|
|
|
// Item anlegen und in die Liste einfuegen
|
2002-10-30 15:38:24 +00:00
|
|
|
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), ImplToolItem( nItemId, rImage, ImplConvertMenuString( rText ), nBits ) );
|
|
|
|
mpData->ImplClearLayoutData();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_True );
|
2002-06-13 07:42:31 +00:00
|
|
|
|
|
|
|
// Notify
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nPos);
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::InsertItem( sal_uInt16 nItemId, const XubString& rText,
|
|
|
|
ToolBoxItemBits nBits, sal_uInt16 nPos )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
DBG_ASSERT( nItemId, "ToolBox::InsertItem(): ItemId == 0" );
|
|
|
|
DBG_ASSERT( GetItemPos( nItemId ) == TOOLBOX_ITEM_NOTFOUND,
|
|
|
|
"ToolBox::InsertItem(): ItemId already exists" );
|
|
|
|
|
|
|
|
// Item anlegen und in die Liste einfuegen
|
2002-10-30 15:38:24 +00:00
|
|
|
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), ImplToolItem( nItemId, ImplConvertMenuString( rText ), nBits ) );
|
|
|
|
mpData->ImplClearLayoutData();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_True );
|
2002-06-13 07:42:31 +00:00
|
|
|
|
|
|
|
// Notify
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nPos);
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::InsertWindow( sal_uInt16 nItemId, Window* pWindow,
|
|
|
|
ToolBoxItemBits nBits, sal_uInt16 nPos )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
DBG_ASSERT( nItemId, "ToolBox::InsertWindow(): ItemId == 0" );
|
|
|
|
DBG_ASSERT( GetItemPos( nItemId ) == TOOLBOX_ITEM_NOTFOUND,
|
|
|
|
"ToolBox::InsertWindow(): ItemId already exists" );
|
|
|
|
|
|
|
|
// Item anlegen und in die Liste einfuegen
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem aItem;
|
|
|
|
aItem.mnId = nItemId;
|
|
|
|
aItem.meType = TOOLBOXITEM_BUTTON;
|
|
|
|
aItem.mnBits = nBits;
|
|
|
|
aItem.mpWindow = pWindow;
|
|
|
|
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
|
|
|
|
mpData->ImplClearLayoutData();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( pWindow )
|
|
|
|
pWindow->Hide();
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_True );
|
2002-06-13 07:42:31 +00:00
|
|
|
|
|
|
|
// Notify
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nPos);
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::InsertSpace( sal_uInt16 nPos )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
// Item anlegen und in die Liste einfuegen
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem aItem;
|
|
|
|
aItem.meType = TOOLBOXITEM_SPACE;
|
2010-09-29 15:46:40 +08:00
|
|
|
aItem.mbEnabled = sal_False;
|
2002-10-30 15:38:24 +00:00
|
|
|
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
|
|
|
|
mpData->ImplClearLayoutData();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_False );
|
2002-06-13 07:42:31 +00:00
|
|
|
|
|
|
|
// Notify
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nPos);
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::InsertSeparator( sal_uInt16 nPos, sal_uInt16 nPixSize )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
// Item anlegen und in die Liste einfuegen
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem aItem;
|
|
|
|
aItem.meType = TOOLBOXITEM_SEPARATOR;
|
2010-09-29 15:46:40 +08:00
|
|
|
aItem.mbEnabled = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( nPixSize )
|
2002-10-30 15:38:24 +00:00
|
|
|
aItem.mnSepSize = nPixSize;
|
|
|
|
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
|
|
|
|
mpData->ImplClearLayoutData();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_False );
|
2002-06-13 07:42:31 +00:00
|
|
|
|
|
|
|
// Notify
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nPos);
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::InsertBreak( sal_uInt16 nPos )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
// Item anlegen und in die Liste einfuegen
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem aItem;
|
|
|
|
aItem.meType = TOOLBOXITEM_BREAK;
|
2010-09-29 15:46:40 +08:00
|
|
|
aItem.mbEnabled = sal_False;
|
2002-10-30 15:38:24 +00:00
|
|
|
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
|
|
|
|
mpData->ImplClearLayoutData();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_False );
|
2002-06-13 07:42:31 +00:00
|
|
|
|
|
|
|
// Notify
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nPos);
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::RemoveItem( sal_uInt16 nPos )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
if( nPos < mpData->m_aItems.size() )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool bMustCalc;
|
2002-10-30 15:38:24 +00:00
|
|
|
if ( mpData->m_aItems[nPos].meType == TOOLBOXITEM_BUTTON )
|
2010-09-29 15:46:40 +08:00
|
|
|
bMustCalc = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
else
|
2010-09-29 15:46:40 +08:00
|
|
|
bMustCalc = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2002-10-30 15:38:24 +00:00
|
|
|
if ( mpData->m_aItems[nPos].mpWindow )
|
|
|
|
mpData->m_aItems[nPos].mpWindow->Hide();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// PaintRect um das removete Item erweitern
|
2002-10-30 15:38:24 +00:00
|
|
|
maPaintRect.Union( mpData->m_aItems[nPos].maRect );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// Absichern gegen das Loeschen im Select-Handler
|
2002-10-30 15:38:24 +00:00
|
|
|
if ( mpData->m_aItems[nPos].mnId == mnCurItemId )
|
2000-09-18 16:07:07 +00:00
|
|
|
mnCurItemId = 0;
|
2002-10-30 15:38:24 +00:00
|
|
|
if ( mpData->m_aItems[nPos].mnId == mnHighItemId )
|
2000-09-18 16:07:07 +00:00
|
|
|
mnHighItemId = 0;
|
|
|
|
|
|
|
|
ImplInvalidate( bMustCalc );
|
|
|
|
|
2002-10-30 15:38:24 +00:00
|
|
|
mpData->m_aItems.erase( mpData->m_aItems.begin()+nPos );
|
|
|
|
mpData->ImplClearLayoutData();
|
2002-06-13 07:42:31 +00:00
|
|
|
|
|
|
|
// Notify
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMREMOVED, reinterpret_cast< void* >( nPos ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::CopyItem( const ToolBox& rToolBox, sal_uInt16 nItemId,
|
|
|
|
sal_uInt16 nNewPos )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
DBG_ASSERT( GetItemPos( nItemId ) == TOOLBOX_ITEM_NOTFOUND,
|
|
|
|
"ToolBox::CopyItem(): ItemId already exists" );
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nPos = rToolBox.GetItemPos( nItemId );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// Existiert Item
|
|
|
|
if ( nPos != TOOLBOX_ITEM_NOTFOUND )
|
|
|
|
{
|
|
|
|
// ToolBox-Item in der Liste verschieben
|
2004-07-06 12:49:51 +00:00
|
|
|
ImplToolItem aNewItem = rToolBox.mpData->m_aItems[nPos];
|
2000-09-18 16:07:07 +00:00
|
|
|
// Bestimme Daten zuruecksetzen
|
2002-10-30 15:38:24 +00:00
|
|
|
aNewItem.mpWindow = NULL;
|
2010-09-29 15:46:40 +08:00
|
|
|
aNewItem.mbShowWindow = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2002-10-30 15:38:24 +00:00
|
|
|
mpData->m_aItems.insert( (nNewPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nNewPos : mpData->m_aItems.end(), aNewItem );
|
|
|
|
mpData->ImplClearLayoutData();
|
2000-09-18 16:07:07 +00:00
|
|
|
// ToolBox neu ausgeben
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_False );
|
2002-06-13 07:42:31 +00:00
|
|
|
|
|
|
|
// Notify
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nNewPos2 = sal::static_int_cast<sal_uInt16>(( nNewPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nNewPos);
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMADDED, reinterpret_cast< void* >( nNewPos2 ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::Clear()
|
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
mpData->m_aItems.clear();
|
|
|
|
mpData->ImplClearLayoutData();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// Absichern gegen das Loeschen im Select-Handler
|
|
|
|
mnCurItemId = 0;
|
|
|
|
mnHighItemId = 0;
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_True, sal_True );
|
2002-06-13 07:42:31 +00:00
|
|
|
|
|
|
|
// Notify
|
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ALLITEMSCHANGED );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::SetButtonType( ButtonType eNewType )
|
|
|
|
{
|
|
|
|
if ( meButtonType != eNewType )
|
|
|
|
{
|
|
|
|
meButtonType = eNewType;
|
|
|
|
|
|
|
|
// Hier besser alles neu ausgeben, da es ansonsten zu Problemen
|
|
|
|
// mit den per CopyBits kopierten Bereichen geben kann
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_True );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2004-07-06 12:49:51 +00:00
|
|
|
void ToolBox::SetToolboxButtonSize( ToolBoxButtonSize eSize )
|
|
|
|
{
|
|
|
|
if( mpData->meButtonSize != eSize )
|
|
|
|
{
|
|
|
|
mpData->meButtonSize = eSize;
|
2010-09-29 15:46:40 +08:00
|
|
|
mbCalc = sal_True;
|
|
|
|
mbFormat = sal_True;
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ToolBoxButtonSize ToolBox::GetToolboxButtonSize() const
|
|
|
|
{
|
|
|
|
return mpData->meButtonSize;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2006-02-09 13:28:51 +00:00
|
|
|
const Size& ToolBox::GetDefaultImageSize() const
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
|
|
|
static Size aSmallButtonSize( TB_SMALLIMAGESIZE, TB_SMALLIMAGESIZE );
|
2006-02-09 13:28:51 +00:00
|
|
|
|
2011-01-12 15:07:10 +01:00
|
|
|
static sal_uLong s_nSymbolsStyle = STYLE_SYMBOLS_DEFAULT;
|
2006-02-09 13:28:51 +00:00
|
|
|
static Size aLargeButtonSize( TB_LARGEIMAGESIZE, TB_LARGEIMAGESIZE );
|
|
|
|
|
2011-01-12 15:07:10 +01:00
|
|
|
sal_uLong nSymbolsStyle = Application::GetSettings().GetStyleSettings().GetCurrentSymbolsStyle();
|
2006-02-09 13:28:51 +00:00
|
|
|
if ( s_nSymbolsStyle != nSymbolsStyle )
|
|
|
|
{
|
|
|
|
s_nSymbolsStyle = nSymbolsStyle;
|
|
|
|
switch ( nSymbolsStyle )
|
|
|
|
{
|
|
|
|
case STYLE_SYMBOLS_INDUSTRIAL:
|
|
|
|
aLargeButtonSize = Size( TB_LARGEIMAGESIZE_INDUSTRIAL, TB_LARGEIMAGESIZE_INDUSTRIAL );
|
|
|
|
break;
|
|
|
|
case STYLE_SYMBOLS_CRYSTAL:
|
|
|
|
aLargeButtonSize = Size( TB_LARGEIMAGESIZE_CRYSTAL, TB_LARGEIMAGESIZE_CRYSTAL );
|
|
|
|
break;
|
2009-11-09 14:20:19 +01:00
|
|
|
case STYLE_SYMBOLS_OXYGEN:
|
|
|
|
aLargeButtonSize = Size( TB_LARGEIMAGESIZE_OXYGEN, TB_LARGEIMAGESIZE_OXYGEN );
|
|
|
|
break;
|
2006-02-09 13:28:51 +00:00
|
|
|
default:
|
|
|
|
aLargeButtonSize = Size( TB_LARGEIMAGESIZE, TB_LARGEIMAGESIZE );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-07-06 12:49:51 +00:00
|
|
|
return GetToolboxButtonSize() == TOOLBOX_BUTTONSIZE_LARGE ? aLargeButtonSize : aSmallButtonSize;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
void ToolBox::SetAlign( WindowAlign eNewAlign )
|
|
|
|
{
|
|
|
|
if ( meAlign != eNewAlign )
|
|
|
|
{
|
|
|
|
meAlign = eNewAlign;
|
|
|
|
|
2004-07-06 12:49:51 +00:00
|
|
|
if ( !ImplIsFloatingMode() )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
// Setzen, ob Items horizontal oder vertikal angeordnet werden sollen
|
|
|
|
if ( (eNewAlign == WINDOWALIGN_LEFT) || (eNewAlign == WINDOWALIGN_RIGHT) )
|
2010-09-29 15:46:40 +08:00
|
|
|
mbHorz = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
else
|
2010-09-29 15:46:40 +08:00
|
|
|
mbHorz = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// Hier alles neu ausgeben, da sich Border auch aendert
|
2010-09-29 15:46:40 +08:00
|
|
|
mbCalc = sal_True;
|
|
|
|
mbFormat = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( IsReallyVisible() && IsUpdateMode() )
|
|
|
|
Invalidate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetLineCount( sal_uInt16 nNewLines )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
if ( !nNewLines )
|
|
|
|
nNewLines = 1;
|
|
|
|
|
|
|
|
if ( mnLines != nNewLines )
|
|
|
|
{
|
|
|
|
mnLines = nNewLines;
|
|
|
|
|
|
|
|
// Hier besser alles neu ausgeben, da es ansonsten zu Problemen
|
|
|
|
// mit den per CopyBits kopierten Bereichen geben kann
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_False );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetPageScroll( sal_Bool b )
|
2004-09-09 15:22:50 +00:00
|
|
|
{
|
|
|
|
mpData->mbPageScroll = b;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 ToolBox::GetItemCount() const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
return (sal_uInt16)mpData->m_aItems.size();
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ToolBoxItemType ToolBox::GetItemType( sal_uInt16 nPos ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
return (nPos < mpData->m_aItems.size()) ? mpData->m_aItems[nPos].meType : TOOLBOXITEM_DONTKNOW;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 ToolBox::GetItemPos( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
int nCount = mpData->m_aItems.size();
|
|
|
|
for( int nPos = 0; nPos < nCount; nPos++ )
|
|
|
|
if( mpData->m_aItems[nPos].mnId == nItemId )
|
2010-09-29 15:46:40 +08:00
|
|
|
return (sal_uInt16)nPos;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
return TOOLBOX_ITEM_NOTFOUND;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 ToolBox::GetItemPos( const Point& rPos ) const
|
2003-04-04 16:58:01 +00:00
|
|
|
{
|
|
|
|
// search the item position on the given point
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nRet = TOOLBOX_ITEM_NOTFOUND;
|
|
|
|
sal_uInt16 nPos = 0;
|
2003-04-04 16:58:01 +00:00
|
|
|
std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin();
|
|
|
|
while( it != mpData->m_aItems.end() )
|
|
|
|
{
|
|
|
|
if ( it->maRect.IsInside( rPos ) )
|
|
|
|
{
|
|
|
|
// item found -> save position and break
|
|
|
|
nRet = nPos;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
++it;
|
|
|
|
++nPos;
|
|
|
|
}
|
|
|
|
|
|
|
|
return nRet;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 ToolBox::GetItemId( sal_uInt16 nPos ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
return (nPos < mpData->m_aItems.size()) ? mpData->m_aItems[nPos].mnId : 0;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 ToolBox::GetItemId( const Point& rPos ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
// Item suchen, das geklickt wurde
|
2002-10-30 15:38:24 +00:00
|
|
|
std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin();
|
|
|
|
while( it != mpData->m_aItems.end() )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
// Ist es dieses Item
|
2002-10-30 15:38:24 +00:00
|
|
|
if ( it->maRect.IsInside( rPos ) )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
if ( it->meType == TOOLBOXITEM_BUTTON )
|
|
|
|
return it->mnId;
|
2000-09-18 16:07:07 +00:00
|
|
|
else
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2002-10-30 15:38:24 +00:00
|
|
|
++it;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2004-07-06 12:49:51 +00:00
|
|
|
Point ToolBox::ImplGetPopupPosition( const Rectangle& rRect, const Size& rSize ) const
|
|
|
|
{
|
|
|
|
Point aPos;
|
|
|
|
if( !rRect.IsEmpty() )
|
|
|
|
{
|
|
|
|
Rectangle aScreen = GetDesktopRectPixel();
|
|
|
|
|
|
|
|
// the popup should be positioned so that it will not cover
|
|
|
|
// the item rect and that it fits the desktop
|
|
|
|
// the preferred direction is always towards the center of
|
|
|
|
// the application window
|
|
|
|
|
|
|
|
Point devPos; // the position in device coordinates for screen comparison
|
|
|
|
switch( meAlign )
|
|
|
|
{
|
|
|
|
case WINDOWALIGN_TOP:
|
|
|
|
aPos = rRect.BottomLeft();
|
|
|
|
aPos.Y()++;
|
|
|
|
devPos = OutputToAbsoluteScreenPixel( aPos );
|
|
|
|
if( devPos.Y() + rSize.Height() >= aScreen.Bottom() )
|
|
|
|
aPos.Y() = rRect.Top() - rSize.Height();
|
|
|
|
break;
|
|
|
|
case WINDOWALIGN_BOTTOM:
|
|
|
|
aPos = rRect.TopLeft();
|
|
|
|
aPos.Y()--;
|
|
|
|
devPos = OutputToAbsoluteScreenPixel( aPos );
|
|
|
|
if( devPos.Y() - rSize.Height() > aScreen.Top() )
|
|
|
|
aPos.Y() -= rSize.Height();
|
|
|
|
else
|
|
|
|
aPos.Y() = rRect.Bottom();
|
|
|
|
break;
|
|
|
|
case WINDOWALIGN_LEFT:
|
|
|
|
aPos = rRect.TopRight();
|
|
|
|
aPos.X()++;
|
|
|
|
devPos = OutputToAbsoluteScreenPixel( aPos );
|
|
|
|
if( devPos.X() + rSize.Width() >= aScreen.Right() )
|
|
|
|
aPos.X() = rRect.Left() - rSize.Width();
|
|
|
|
break;
|
|
|
|
case WINDOWALIGN_RIGHT:
|
|
|
|
aPos = rRect.TopLeft();
|
|
|
|
aPos.X()--;
|
|
|
|
devPos = OutputToAbsoluteScreenPixel( aPos );
|
|
|
|
if( devPos.X() - rSize.Width() > aScreen.Left() )
|
|
|
|
aPos.X() -= rSize.Width();
|
|
|
|
else
|
|
|
|
aPos.X() = rRect.Right();
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
return aPos;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
Point ToolBox::GetItemPopupPosition( sal_uInt16 nItemId, const Size& rSize ) const
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
|
|
|
return ImplGetPopupPosition( GetItemRect( nItemId ), rSize );
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
Rectangle ToolBox::GetItemRect( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
if ( mbCalc || mbFormat )
|
|
|
|
((ToolBox*)this)->ImplFormat();
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nPos = GetItemPos( nItemId );
|
2002-05-31 06:46:26 +00:00
|
|
|
return GetItemPosRect( nPos );
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
Rectangle ToolBox::GetItemPosRect( sal_uInt16 nPos ) const
|
2002-05-31 06:46:26 +00:00
|
|
|
{
|
|
|
|
if ( mbCalc || mbFormat )
|
|
|
|
((ToolBox*)this)->ImplFormat();
|
|
|
|
|
2002-10-30 15:38:24 +00:00
|
|
|
if ( nPos < mpData->m_aItems.size() )
|
|
|
|
return mpData->m_aItems[nPos].maRect;
|
2000-09-18 16:07:07 +00:00
|
|
|
else
|
|
|
|
return Rectangle();
|
|
|
|
}
|
|
|
|
|
2004-07-09 06:38:00 +00:00
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool ToolBox::ImplHasExternalMenubutton()
|
2004-09-09 15:22:50 +00:00
|
|
|
{
|
|
|
|
// check if the borderwindow (i.e. the decoration) provides the menu button
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool bRet = sal_False;
|
2004-09-09 15:22:50 +00:00
|
|
|
if( ImplIsFloatingMode() )
|
|
|
|
{
|
|
|
|
// custom menu is placed in the decoration
|
|
|
|
ImplBorderWindow *pBorderWin = dynamic_cast<ImplBorderWindow*>( GetWindow( WINDOW_BORDER ) );
|
|
|
|
if( pBorderWin && !pBorderWin->GetMenuRect().IsEmpty() )
|
2010-09-29 15:46:40 +08:00
|
|
|
bRet = sal_True;
|
2004-09-09 15:22:50 +00:00
|
|
|
}
|
|
|
|
return bRet;
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetItemBits( sal_uInt16 nItemId, ToolBoxItemBits nBits )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nPos = GetItemPos( nItemId );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2002-10-30 15:38:24 +00:00
|
|
|
if ( nPos < mpData->m_aItems.size() )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
ToolBoxItemBits nOldBits = mpData->m_aItems[nPos].mnBits;
|
|
|
|
mpData->m_aItems[nPos].mnBits = nBits;
|
2000-09-18 16:07:07 +00:00
|
|
|
nBits &= TIB_LEFT | TIB_AUTOSIZE | TIB_DROPDOWN;
|
|
|
|
nOldBits &= TIB_LEFT | TIB_AUTOSIZE | TIB_DROPDOWN;
|
2005-01-07 08:23:56 +00:00
|
|
|
// trigger reformat when the item width has changed (dropdown arrow)
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool bFormat = (nBits & TIB_DROPDOWN) != (nOldBits & TIB_DROPDOWN);
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( nBits != nOldBits )
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_True, bFormat );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ToolBoxItemBits ToolBox::GetItemBits( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
|
|
|
return pItem->mnBits;
|
|
|
|
else
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetItemData( sal_uInt16 nItemId, void* pNewData )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nPos = GetItemPos( nItemId );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2002-10-30 15:38:24 +00:00
|
|
|
if ( nPos < mpData->m_aItems.size() )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
mpData->m_aItems[nPos].mpUserData = pNewData;
|
2000-09-18 16:07:07 +00:00
|
|
|
ImplUpdateItem( nPos );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void* ToolBox::GetItemData( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
|
|
|
return pItem->mpUserData;
|
|
|
|
else
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetItemImage( sal_uInt16 nItemId, const Image& rImage )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nPos = GetItemPos( nItemId );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nPos != TOOLBOX_ITEM_NOTFOUND )
|
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem* pItem = &mpData->m_aItems[nPos];
|
2000-09-18 16:07:07 +00:00
|
|
|
// Nur wenn alles berechnet ist, mehr Aufwand treiben
|
|
|
|
if ( !mbCalc )
|
|
|
|
{
|
|
|
|
Size aOldSize = pItem->maImage.GetSizePixel();
|
|
|
|
pItem->maImage = rImage;
|
|
|
|
if ( aOldSize != pItem->maImage.GetSizePixel() )
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_True );
|
2000-09-18 16:07:07 +00:00
|
|
|
else
|
|
|
|
ImplUpdateItem( nPos );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
pItem->maImage = rImage;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2002-04-24 11:16:11 +00:00
|
|
|
void ToolBox::SetImageList( const ImageList& rImageList )
|
|
|
|
{
|
|
|
|
maImageList = rImageList;
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nCount = (sal_uInt16)mpData->m_aItems.size();
|
|
|
|
for( sal_uInt16 i = 0; i < nCount; i++ )
|
2002-04-24 11:16:11 +00:00
|
|
|
{
|
|
|
|
Image aImage;
|
2002-10-30 15:38:24 +00:00
|
|
|
if ( mpData->m_aItems[i].mnId )
|
|
|
|
aImage = maImageList.GetImage( mpData->m_aItems[i].mnId );
|
2002-04-24 11:16:11 +00:00
|
|
|
if( !!aImage )
|
2002-10-30 15:38:24 +00:00
|
|
|
SetItemImage( mpData->m_aItems[i].mnId, aImage );
|
2002-04-24 11:16:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2002-02-20 13:44:06 +00:00
|
|
|
static Image ImplRotImage( const Image& rImage, long nAngle10 )
|
|
|
|
{
|
2004-05-21 13:49:18 +00:00
|
|
|
Image aRet;
|
|
|
|
BitmapEx aRotBitmapEx( rImage.GetBitmapEx() );
|
2002-02-20 13:44:06 +00:00
|
|
|
|
2004-05-21 13:49:18 +00:00
|
|
|
aRotBitmapEx.Rotate( nAngle10, Color( COL_WHITE ) );
|
|
|
|
|
|
|
|
return Image( aRotBitmapEx );
|
2002-02-20 13:44:06 +00:00
|
|
|
}
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetItemImageAngle( sal_uInt16 nItemId, long nAngle10 )
|
2002-02-20 13:44:06 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nPos = GetItemPos( nItemId );
|
2002-02-20 13:44:06 +00:00
|
|
|
|
|
|
|
if ( nPos != TOOLBOX_ITEM_NOTFOUND )
|
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem* pItem = &mpData->m_aItems[nPos];
|
2002-02-20 13:44:06 +00:00
|
|
|
Size aOldSize = pItem->maImage.GetSizePixel();
|
|
|
|
|
|
|
|
long nDeltaAngle = (nAngle10 - pItem->mnImageAngle) % 3600;
|
|
|
|
while( nDeltaAngle < 0 )
|
|
|
|
nDeltaAngle += 3600;
|
|
|
|
|
|
|
|
pItem->mnImageAngle = nAngle10;
|
|
|
|
if( nDeltaAngle && !!pItem->maImage )
|
|
|
|
{
|
|
|
|
pItem->maImage = ImplRotImage( pItem->maImage, nDeltaAngle );
|
|
|
|
if( !!pItem->maHighImage )
|
|
|
|
pItem->maHighImage = ImplRotImage( pItem->maHighImage, nDeltaAngle );
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( !mbCalc )
|
|
|
|
{
|
|
|
|
if ( aOldSize != pItem->maImage.GetSizePixel() )
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_True );
|
2002-02-20 13:44:06 +00:00
|
|
|
else
|
|
|
|
ImplUpdateItem( nPos );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
static Image ImplMirrorImage( const Image& rImage )
|
|
|
|
{
|
2004-05-21 13:49:18 +00:00
|
|
|
Image aRet;
|
|
|
|
BitmapEx aMirrBitmapEx( rImage.GetBitmapEx() );
|
2002-02-20 13:44:06 +00:00
|
|
|
|
2004-05-21 13:49:18 +00:00
|
|
|
aMirrBitmapEx.Mirror( BMP_MIRROR_HORZ );
|
|
|
|
|
|
|
|
return Image( aMirrBitmapEx );
|
2002-02-20 13:44:06 +00:00
|
|
|
}
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetItemImageMirrorMode( sal_uInt16 nItemId, sal_Bool bMirror )
|
2002-02-20 13:44:06 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nPos = GetItemPos( nItemId );
|
2002-02-20 13:44:06 +00:00
|
|
|
|
|
|
|
if ( nPos != TOOLBOX_ITEM_NOTFOUND )
|
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem* pItem = &mpData->m_aItems[nPos];
|
2002-02-20 13:44:06 +00:00
|
|
|
|
|
|
|
if( ( pItem->mbMirrorMode && ! bMirror ) ||
|
|
|
|
( ! pItem->mbMirrorMode && bMirror )
|
|
|
|
)
|
|
|
|
{
|
|
|
|
pItem->mbMirrorMode = bMirror ? true : false;
|
|
|
|
if( !!pItem->maImage )
|
|
|
|
{
|
|
|
|
pItem->maImage = ImplMirrorImage( pItem->maImage );
|
|
|
|
if( !!pItem->maHighImage )
|
|
|
|
pItem->maHighImage = ImplMirrorImage( pItem->maHighImage );
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( !mbCalc )
|
|
|
|
ImplUpdateItem( nPos );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
Image ToolBox::GetItemImage( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
|
|
|
return pItem->maImage;
|
|
|
|
else
|
|
|
|
return Image();
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetItemText( sal_uInt16 nItemId, const XubString& rText )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nPos = GetItemPos( nItemId );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nPos != TOOLBOX_ITEM_NOTFOUND )
|
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem* pItem = &mpData->m_aItems[nPos];
|
2000-09-18 16:07:07 +00:00
|
|
|
// Nur wenn alles berechnet ist, mehr Aufwand treiben
|
|
|
|
if ( !mbCalc &&
|
|
|
|
((meButtonType != BUTTON_SYMBOL) || !pItem->maImage) )
|
|
|
|
{
|
|
|
|
long nOldWidth = GetCtrlTextWidth( pItem->maText );
|
|
|
|
pItem->maText = ImplConvertMenuString( rText );
|
2002-10-30 15:38:24 +00:00
|
|
|
mpData->ImplClearLayoutData();
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( nOldWidth != GetCtrlTextWidth( pItem->maText ) )
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_True );
|
2000-09-18 16:07:07 +00:00
|
|
|
else
|
|
|
|
ImplUpdateItem( nPos );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
pItem->maText = ImplConvertMenuString( rText );
|
2002-10-23 08:47:44 +00:00
|
|
|
|
2008-02-05 11:30:25 +00:00
|
|
|
// Notify button changed event to prepare accessibility bridge
|
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_BUTTONSTATECHANGED, reinterpret_cast< void* >( nPos ) );
|
|
|
|
|
2002-10-23 08:47:44 +00:00
|
|
|
// Notify
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMTEXTCHANGED, reinterpret_cast< void* >( nPos ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
const XubString& ToolBox::GetItemText( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
|
|
|
return pItem->maText;
|
|
|
|
else
|
|
|
|
return ImplGetSVEmptyStr();
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetItemWindow( sal_uInt16 nItemId, Window* pNewWindow )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nPos = GetItemPos( nItemId );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nPos != TOOLBOX_ITEM_NOTFOUND )
|
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem* pItem = &mpData->m_aItems[nPos];
|
2000-09-18 16:07:07 +00:00
|
|
|
pItem->mpWindow = pNewWindow;
|
|
|
|
if ( pNewWindow )
|
|
|
|
pNewWindow->Hide();
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_True );
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_ITEMWINDOWCHANGED, reinterpret_cast< void* >( nPos ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
Window* ToolBox::GetItemWindow( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
|
|
|
return pItem->mpWindow;
|
|
|
|
else
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::StartSelection()
|
|
|
|
{
|
|
|
|
if ( mbDrag )
|
|
|
|
EndSelection();
|
|
|
|
|
|
|
|
if ( !mbSelection )
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
mbSelection = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
mnCurPos = TOOLBOX_ITEM_NOTFOUND;
|
|
|
|
mnCurItemId = 0;
|
|
|
|
Activate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::EndSelection()
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
mbCommandDrag = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( mbDrag || mbSelection )
|
|
|
|
{
|
|
|
|
// Daten zuruecksetzen
|
2010-09-29 15:46:40 +08:00
|
|
|
mbDrag = sal_False;
|
|
|
|
mbSelection = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( mnCurPos != TOOLBOX_ITEM_NOTFOUND )
|
|
|
|
ImplDrawItem( mnCurPos );
|
|
|
|
EndTracking();
|
|
|
|
ReleaseMouse();
|
|
|
|
Deactivate();
|
|
|
|
}
|
|
|
|
|
|
|
|
mnCurPos = TOOLBOX_ITEM_NOTFOUND;
|
|
|
|
mnCurItemId = 0;
|
|
|
|
mnDownItemId = 0;
|
|
|
|
mnMouseClicks = 0;
|
|
|
|
mnMouseModifier = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetItemDown( sal_uInt16 nItemId, sal_Bool bDown, sal_Bool bRelease )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nPos = GetItemPos( nItemId );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nPos != TOOLBOX_ITEM_NOTFOUND )
|
|
|
|
{
|
|
|
|
if ( bDown )
|
|
|
|
{
|
|
|
|
if ( nPos != mnCurPos )
|
|
|
|
{
|
|
|
|
mnCurPos = nPos;
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplDrawItem( mnCurPos, sal_True );
|
2004-11-16 14:12:24 +00:00
|
|
|
Flush();
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if ( nPos == mnCurPos )
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplDrawItem( mnCurPos, sal_False );
|
2004-11-16 14:12:24 +00:00
|
|
|
Flush();
|
2000-09-18 16:07:07 +00:00
|
|
|
mnCurPos = TOOLBOX_ITEM_NOTFOUND;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( bRelease )
|
|
|
|
{
|
|
|
|
if ( mbDrag || mbSelection )
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
mbDrag = sal_False;
|
|
|
|
mbSelection = sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
EndTracking();
|
|
|
|
ReleaseMouse();
|
|
|
|
Deactivate();
|
|
|
|
}
|
|
|
|
|
|
|
|
mnCurItemId = 0;
|
|
|
|
mnDownItemId = 0;
|
|
|
|
mnMouseClicks = 0;
|
|
|
|
mnMouseModifier = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetItemState( sal_uInt16 nItemId, TriState eState )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nPos = GetItemPos( nItemId );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nPos != TOOLBOX_ITEM_NOTFOUND )
|
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem* pItem = &mpData->m_aItems[nPos];
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// Hat sich der Status geaendert
|
|
|
|
if ( pItem->meState != eState )
|
|
|
|
{
|
|
|
|
// Wenn RadioCheck, dann vorherigen unchecken
|
|
|
|
if ( (eState == STATE_CHECK) && (pItem->mnBits & TIB_AUTOCHECK) &&
|
|
|
|
(pItem->mnBits & TIB_RADIOCHECK) )
|
|
|
|
{
|
|
|
|
ImplToolItem* pGroupItem;
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nGroupPos;
|
|
|
|
sal_uInt16 nItemCount = GetItemCount();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
nGroupPos = nPos;
|
|
|
|
while ( nGroupPos )
|
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
pGroupItem = &mpData->m_aItems[nGroupPos-1];
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( pGroupItem->mnBits & TIB_RADIOCHECK )
|
|
|
|
{
|
|
|
|
if ( pGroupItem->meState != STATE_NOCHECK )
|
|
|
|
SetItemState( pGroupItem->mnId, STATE_NOCHECK );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
break;
|
|
|
|
nGroupPos--;
|
|
|
|
}
|
|
|
|
|
|
|
|
nGroupPos = nPos+1;
|
|
|
|
while ( nGroupPos < nItemCount )
|
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
pGroupItem = &mpData->m_aItems[nGroupPos];
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( pGroupItem->mnBits & TIB_RADIOCHECK )
|
|
|
|
{
|
|
|
|
if ( pGroupItem->meState != STATE_NOCHECK )
|
|
|
|
SetItemState( pGroupItem->mnId, STATE_NOCHECK );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
break;
|
|
|
|
nGroupPos++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pItem->meState = eState;
|
|
|
|
ImplUpdateItem( nPos );
|
2008-02-05 11:30:25 +00:00
|
|
|
|
|
|
|
// Notify button changed event to prepare accessibility bridge
|
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_BUTTONSTATECHANGED, reinterpret_cast< void* >( nPos ) );
|
|
|
|
|
2002-11-21 07:13:06 +00:00
|
|
|
// Notify
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_CLICK, reinterpret_cast< void* >( nPos ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
TriState ToolBox::GetItemState( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
|
|
|
return pItem->meState;
|
|
|
|
else
|
|
|
|
return STATE_NOCHECK;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::EnableItem( sal_uInt16 nItemId, sal_Bool bEnable )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nPos = GetItemPos( nItemId );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nPos != TOOLBOX_ITEM_NOTFOUND )
|
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem* pItem = &mpData->m_aItems[nPos];
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( bEnable )
|
2010-09-29 15:46:40 +08:00
|
|
|
bEnable = sal_True;
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( pItem->mbEnabled != bEnable )
|
|
|
|
{
|
|
|
|
pItem->mbEnabled = bEnable;
|
|
|
|
|
|
|
|
// Gegebenenfalls das Fenster mit updaten
|
|
|
|
if ( pItem->mpWindow )
|
|
|
|
pItem->mpWindow->Enable( pItem->mbEnabled );
|
|
|
|
|
|
|
|
// Item updaten
|
|
|
|
ImplUpdateItem( nPos );
|
2002-04-22 13:26:53 +00:00
|
|
|
|
|
|
|
ImplUpdateInputEnable();
|
2003-04-11 16:30:52 +00:00
|
|
|
|
2008-02-05 11:30:25 +00:00
|
|
|
// Notify button changed event to prepare accessibility bridge
|
|
|
|
ImplCallEventListeners( VCLEVENT_TOOLBOX_BUTTONSTATECHANGED, reinterpret_cast< void* >( nPos ) );
|
|
|
|
|
2004-05-21 13:49:18 +00:00
|
|
|
ImplCallEventListeners( bEnable ? VCLEVENT_TOOLBOX_ITEMENABLED : VCLEVENT_TOOLBOX_ITEMDISABLED, reinterpret_cast< void* >( nPos ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool ToolBox::IsItemEnabled( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
|
|
|
return pItem->mbEnabled;
|
|
|
|
else
|
2010-09-29 15:46:40 +08:00
|
|
|
return sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::ShowItem( sal_uInt16 nItemId, sal_Bool bVisible )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nPos = GetItemPos( nItemId );
|
2002-10-30 15:38:24 +00:00
|
|
|
mpData->ImplClearLayoutData();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
if ( nPos != TOOLBOX_ITEM_NOTFOUND )
|
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
ImplToolItem* pItem = &mpData->m_aItems[nPos];
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( pItem->mbVisible != bVisible )
|
|
|
|
{
|
|
|
|
pItem->mbVisible = bVisible;
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_False );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool ToolBox::IsItemVisible( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
|
|
|
return pItem->mbVisible;
|
|
|
|
else
|
2010-09-29 15:46:40 +08:00
|
|
|
return sal_False;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool ToolBox::IsItemReallyVisible( sal_uInt16 nItemId ) const
|
2008-07-22 06:51:04 +00:00
|
|
|
{
|
|
|
|
// is the item on the visible area of the toolbox?
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool bRet = sal_False;
|
2008-07-22 06:51:04 +00:00
|
|
|
Rectangle aRect( mnLeftBorder, mnTopBorder, mnDX-mnRightBorder, mnDY-mnBottomBorder );
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem && pItem->mbVisible &&
|
|
|
|
!pItem->maRect.IsEmpty() && aRect.IsOver( pItem->maRect ) )
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
bRet = sal_True;
|
2008-07-22 06:51:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return bRet;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetItemCommand( sal_uInt16 nItemId, const XubString& rCommand )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
|
|
|
pItem->maCommandStr = rCommand;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
const XubString& ToolBox::GetItemCommand( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
|
|
|
return pItem->maCommandStr;
|
|
|
|
else
|
|
|
|
return ImplGetSVEmptyStr();
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetQuickHelpText( sal_uInt16 nItemId, const XubString& rText )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
|
|
|
pItem->maQuickHelpText = rText;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
const XubString& ToolBox::GetQuickHelpText( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
|
|
|
return pItem->maQuickHelpText;
|
|
|
|
else
|
|
|
|
return ImplGetSVEmptyStr();
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetHelpText( sal_uInt16 nItemId, const XubString& rText )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
|
|
|
pItem->maHelpText = rText;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
const XubString& ToolBox::GetHelpText( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2004-08-30 15:35:41 +00:00
|
|
|
return ImplGetHelpText( nItemId );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-11-10 13:50:33 +08:00
|
|
|
void ToolBox::SetHelpId( sal_uInt16 nItemId, const rtl::OString& rHelpId )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
2010-06-04 13:46:22 +02:00
|
|
|
pItem->maHelpId = rHelpId;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-11-10 13:50:33 +08:00
|
|
|
rtl::OString ToolBox::GetHelpId( sal_uInt16 nItemId ) const
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2010-06-04 13:46:22 +02:00
|
|
|
rtl::OString aRet;
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
ImplToolItem* pItem = ImplGetItem( nItemId );
|
|
|
|
|
|
|
|
if ( pItem )
|
2010-07-10 18:21:24 +02:00
|
|
|
{
|
2012-01-31 17:53:23 -02:00
|
|
|
if ( !pItem->maHelpId.isEmpty() )
|
2010-07-10 18:21:24 +02:00
|
|
|
aRet = pItem->maHelpId;
|
|
|
|
else
|
|
|
|
aRet = ::rtl::OUStringToOString( pItem->maCommandStr, RTL_TEXTENCODING_UTF8 );
|
|
|
|
}
|
2010-06-04 13:46:22 +02:00
|
|
|
|
|
|
|
return aRet;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetOutStyle( sal_uInt16 nNewStyle )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2004-05-10 14:51:17 +00:00
|
|
|
// always force flat looking toolbars since NWF
|
|
|
|
nNewStyle |= TOOLBOX_STYLE_FLAT;
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( mnOutStyle != nNewStyle )
|
|
|
|
{
|
|
|
|
mnOutStyle = nNewStyle;
|
2003-04-17 14:19:56 +00:00
|
|
|
ImplDisableFlatButtons();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// Damit das ButtonDevice neu angelegt wird
|
|
|
|
if ( !(mnOutStyle & TOOLBOX_STYLE_FLAT) )
|
|
|
|
{
|
2004-07-06 12:49:51 +00:00
|
|
|
mnMaxItemWidth = 1;
|
|
|
|
mnMaxItemHeight = 1;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
ImplInvalidate( sal_True, sal_True );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2002-04-22 13:26:53 +00:00
|
|
|
// disable key input if all items are disabled
|
|
|
|
|
|
|
|
void ToolBox::ImplUpdateInputEnable()
|
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
for( std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin();
|
|
|
|
it != mpData->m_aItems.end(); ++it )
|
2002-04-22 13:26:53 +00:00
|
|
|
{
|
2002-10-30 15:38:24 +00:00
|
|
|
if( it->mbEnabled )
|
2002-04-22 13:26:53 +00:00
|
|
|
{
|
|
|
|
// at least one useful entry
|
2010-09-29 15:46:40 +08:00
|
|
|
mpData->mbKeyInputDisabled = sal_False;
|
2002-04-22 13:26:53 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
2010-09-29 15:46:40 +08:00
|
|
|
mpData->mbKeyInputDisabled = sal_True;
|
2002-04-22 13:26:53 +00:00
|
|
|
}
|
2002-10-30 15:38:24 +00:00
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::ImplFillLayoutData() const
|
|
|
|
{
|
|
|
|
mpData->m_pLayoutData = new ToolBoxLayoutData();
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 nCount = (sal_uInt16)mpData->m_aItems.size();
|
|
|
|
for( sal_uInt16 i = 0; i < nCount; i++ )
|
2002-10-30 15:38:24 +00:00
|
|
|
{
|
|
|
|
ImplToolItem* pItem = &mpData->m_aItems[i];
|
|
|
|
|
|
|
|
// Nur malen, wenn Rechteck im PaintRectangle liegt
|
|
|
|
if ( !pItem->maRect.IsEmpty() )
|
2010-09-29 15:46:40 +08:00
|
|
|
const_cast<ToolBox*>(this)->ImplDrawItem( i, sal_False, sal_False, sal_True );
|
2002-10-30 15:38:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
String ToolBox::GetDisplayText() const
|
|
|
|
{
|
|
|
|
if( ! mpData->m_pLayoutData )
|
|
|
|
ImplFillLayoutData();
|
|
|
|
return mpData->m_pLayoutData ? mpData->m_pLayoutData->m_aDisplayText : String();
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
Rectangle ToolBox::GetCharacterBounds( sal_uInt16 nItemID, long nIndex ) const
|
2002-10-30 15:38:24 +00:00
|
|
|
{
|
|
|
|
long nItemIndex = -1;
|
|
|
|
if( ! mpData->m_pLayoutData )
|
|
|
|
ImplFillLayoutData();
|
|
|
|
if( mpData->m_pLayoutData )
|
|
|
|
{
|
2011-01-12 15:07:10 +01:00
|
|
|
for( sal_uLong i = 0; i < mpData->m_pLayoutData->m_aLineItemIds.size(); i++ )
|
2002-10-30 15:38:24 +00:00
|
|
|
{
|
|
|
|
if( mpData->m_pLayoutData->m_aLineItemIds[i] == nItemID )
|
|
|
|
{
|
|
|
|
nItemIndex = mpData->m_pLayoutData->m_aLineIndices[i];
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return (mpData->m_pLayoutData && nItemIndex != -1) ? mpData->m_pLayoutData->GetCharacterBounds( nItemIndex+nIndex ) : Rectangle();
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
long ToolBox::GetIndexForPoint( const Point& rPoint, sal_uInt16& rItemID ) const
|
2002-10-30 15:38:24 +00:00
|
|
|
{
|
|
|
|
long nIndex = -1;
|
|
|
|
rItemID = 0;
|
|
|
|
if( ! mpData->m_pLayoutData )
|
|
|
|
ImplFillLayoutData();
|
|
|
|
if( mpData->m_pLayoutData )
|
|
|
|
{
|
|
|
|
nIndex = mpData->m_pLayoutData->GetIndexForPoint( rPoint );
|
2011-01-12 15:07:10 +01:00
|
|
|
for( sal_uLong i = 0; i < mpData->m_pLayoutData->m_aLineIndices.size(); i++ )
|
2002-10-30 15:38:24 +00:00
|
|
|
{
|
|
|
|
if( mpData->m_pLayoutData->m_aLineIndices[i] <= nIndex &&
|
|
|
|
(i == mpData->m_pLayoutData->m_aLineIndices.size()-1 || mpData->m_pLayoutData->m_aLineIndices[i+1] > nIndex) )
|
|
|
|
{
|
|
|
|
rItemID = mpData->m_pLayoutData->m_aLineItemIds[i];
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nIndex;
|
|
|
|
}
|
|
|
|
|
2004-07-06 12:49:51 +00:00
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void ToolBox::SetDropdownClickHdl( const Link& rLink )
|
|
|
|
{
|
|
|
|
mpData->maDropdownClickHdl = rLink;
|
|
|
|
}
|
|
|
|
|
|
|
|
const Link& ToolBox::GetDropdownClickHdl() const
|
|
|
|
{
|
|
|
|
return mpData->maDropdownClickHdl;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::SetMenuType( sal_uInt16 aType )
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
2005-11-11 10:55:25 +00:00
|
|
|
if( aType != mpData->maMenuType )
|
|
|
|
{
|
|
|
|
mpData->maMenuType = aType;
|
2005-11-17 16:21:01 +00:00
|
|
|
if( IsFloatingMode() )
|
|
|
|
{
|
|
|
|
// the menu button may have to be moved into the decoration which changes the layout
|
|
|
|
ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( this );
|
|
|
|
if( pWrapper )
|
2010-09-29 15:46:40 +08:00
|
|
|
pWrapper->ShowTitleButton( TITLE_BUTTON_MENU, ( aType & TOOLBOX_MENUTYPE_CUSTOMIZE) ? sal_True : sal_False );
|
2005-11-17 16:21:01 +00:00
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
mbFormat = sal_True;
|
2005-11-17 16:21:01 +00:00
|
|
|
ImplFormat();
|
|
|
|
ImplSetMinMaxFloatSize( this );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// trigger redraw of menu button
|
|
|
|
if( !mpData->maMenubuttonItem.maRect.IsEmpty() )
|
|
|
|
Invalidate(mpData->maMenubuttonItem.maRect);
|
|
|
|
}
|
2005-11-11 10:55:25 +00:00
|
|
|
}
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 ToolBox::GetMenuType() const
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
|
|
|
return mpData->maMenuType;
|
|
|
|
}
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool ToolBox::IsMenuEnabled() const
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
|
|
|
return mpData->maMenuType != TOOLBOX_MENUTYPE_NONE;
|
|
|
|
}
|
|
|
|
|
|
|
|
PopupMenu* ToolBox::GetMenu() const
|
|
|
|
{
|
|
|
|
return mpData->mpMenu;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ToolBox::SetMenuButtonHdl( const Link& rLink )
|
|
|
|
{
|
|
|
|
mpData->maMenuButtonHdl = rLink;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool ToolBox::ImplHasClippedItems()
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
|
|
|
// are any items currently clipped ?
|
|
|
|
ImplFormat();
|
|
|
|
std::vector< ImplToolItem >::const_iterator it = mpData->m_aItems.begin();
|
|
|
|
while ( it != mpData->m_aItems.end() )
|
|
|
|
{
|
2004-11-16 14:12:24 +00:00
|
|
|
if( it->IsClipped() )
|
2010-09-29 15:46:40 +08:00
|
|
|
return sal_True;
|
2011-01-01 21:28:04 +00:00
|
|
|
++it;
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
2010-09-29 15:46:40 +08:00
|
|
|
return sal_False;
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
|
2011-06-10 18:20:19 +02:00
|
|
|
void ToolBox::UpdateCustomMenu()
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
|
|
|
// fill clipped items into menu
|
|
|
|
if( !IsMenuEnabled() )
|
|
|
|
return;
|
|
|
|
|
|
|
|
PopupMenu *pMenu = GetMenu();
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 i = 0;
|
2004-07-06 12:49:51 +00:00
|
|
|
// remove old entries
|
|
|
|
while( i < pMenu->GetItemCount() )
|
|
|
|
{
|
|
|
|
if( pMenu->GetItemId( i ) >= TOOLBOX_MENUITEM_START )
|
|
|
|
{
|
|
|
|
pMenu->RemoveItem( i );
|
|
|
|
i = 0;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
|
|
|
|
// add menu items, starting from the end and inserting at pos 0
|
2005-09-05 08:01:37 +00:00
|
|
|
if ( !mpData->m_aItems.empty() )
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
2005-09-05 08:01:37 +00:00
|
|
|
for ( std::vector< ImplToolItem >::reverse_iterator it(mpData->m_aItems.rbegin());
|
|
|
|
it != mpData->m_aItems.rend(); ++it)
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
2004-11-16 14:12:24 +00:00
|
|
|
if( it->IsClipped() )
|
2004-08-02 14:02:07 +00:00
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 id = it->mnId + TOOLBOX_MENUITEM_START;
|
2004-08-02 14:02:07 +00:00
|
|
|
pMenu->InsertItem( id, it->maText, it->maImage, 0, 0 );
|
|
|
|
pMenu->EnableItem( id, it->mbEnabled );
|
|
|
|
pMenu->CheckItem( id, it->meState == STATE_CHECK );
|
|
|
|
}
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
IMPL_LINK( ToolBox, ImplCustomMenuListener, VclMenuEvent*, pEvent )
|
|
|
|
{
|
|
|
|
if( pEvent->GetMenu() == GetMenu() && pEvent->GetId() == VCLEVENT_MENU_SELECT )
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 id = GetMenu()->GetItemId( pEvent->GetItemPos() );
|
2004-07-06 12:49:51 +00:00
|
|
|
if( id >= TOOLBOX_MENUITEM_START )
|
2010-09-29 15:46:40 +08:00
|
|
|
TriggerItem( id - TOOLBOX_MENUITEM_START, sal_False, sal_False );
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-03-01 18:00:32 +01:00
|
|
|
IMPL_LINK_NOARG(ToolBox, ImplCallExecuteCustomMenu)
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
|
|
|
mpData->mnEventId = 0;
|
|
|
|
ImplExecuteCustomMenu();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ToolBox::ImplExecuteCustomMenu()
|
|
|
|
{
|
|
|
|
if( IsMenuEnabled() )
|
|
|
|
{
|
|
|
|
if( GetMenuType() & TOOLBOX_MENUTYPE_CUSTOMIZE )
|
|
|
|
// call button handler to allow for menu customization
|
|
|
|
mpData->maMenuButtonHdl.Call( this );
|
|
|
|
|
|
|
|
// register handler
|
|
|
|
GetMenu()->AddEventListener( LINK( this, ToolBox, ImplCustomMenuListener ) );
|
|
|
|
|
|
|
|
// make sure all disabled entries will be shown
|
|
|
|
GetMenu()->SetMenuFlags(
|
|
|
|
GetMenu()->GetMenuFlags() | MENU_FLAG_ALWAYSSHOWDISABLEDENTRIES );
|
|
|
|
|
|
|
|
// toolbox might be destroyed during execute
|
|
|
|
ImplDelData aDelData;
|
|
|
|
ImplAddDel( &aDelData );
|
2004-09-09 15:22:50 +00:00
|
|
|
ImplDelData aBorderDel;
|
|
|
|
bool bBorderDel = false;
|
2004-07-06 12:49:51 +00:00
|
|
|
|
2004-09-09 15:22:50 +00:00
|
|
|
Window *pWin = this;
|
|
|
|
Rectangle aMenuRect = mpData->maMenubuttonItem.maRect;
|
|
|
|
if( IsFloatingMode() )
|
|
|
|
{
|
|
|
|
// custom menu is placed in the decoration
|
|
|
|
ImplBorderWindow *pBorderWin = dynamic_cast<ImplBorderWindow*>( GetWindow( WINDOW_BORDER ) );
|
|
|
|
if( pBorderWin && !pBorderWin->GetMenuRect().IsEmpty() )
|
|
|
|
{
|
|
|
|
pWin = pBorderWin;
|
|
|
|
aMenuRect = pBorderWin->GetMenuRect();
|
|
|
|
pWin->ImplAddDel( &aBorderDel );
|
|
|
|
bBorderDel = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_uInt16 uId = GetMenu()->Execute( pWin, Rectangle( ImplGetPopupPosition( aMenuRect, Size() ), Size() ),
|
2004-07-06 12:49:51 +00:00
|
|
|
POPUPMENU_EXECUTE_DOWN | POPUPMENU_NOMOUSEUPCLOSE );
|
|
|
|
|
|
|
|
if ( aDelData.IsDelete() )
|
|
|
|
return;
|
|
|
|
ImplRemoveDel( &aDelData );
|
|
|
|
|
|
|
|
if( GetMenu() )
|
|
|
|
GetMenu()->RemoveEventListener( LINK( this, ToolBox, ImplCustomMenuListener ) );
|
2004-09-09 15:22:50 +00:00
|
|
|
if( bBorderDel )
|
|
|
|
{
|
|
|
|
if( aBorderDel.IsDelete() )
|
|
|
|
return;
|
|
|
|
pWin->ImplRemoveDel( &aBorderDel );
|
|
|
|
}
|
2004-07-06 12:49:51 +00:00
|
|
|
|
2004-09-09 15:22:50 +00:00
|
|
|
pWin->Invalidate( aMenuRect );
|
2004-11-16 14:12:24 +00:00
|
|
|
|
|
|
|
if( uId )
|
|
|
|
GrabFocusToDocument();
|
2004-09-09 15:22:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void ToolBox::ExecuteCustomMenu()
|
|
|
|
{
|
|
|
|
if( IsMenuEnabled() )
|
|
|
|
{
|
|
|
|
// handle custom menu asynchronously
|
|
|
|
// to avoid problems if the toolbox is closed during menu execute
|
2011-06-10 18:20:19 +02:00
|
|
|
UpdateCustomMenu();
|
2004-09-09 15:22:50 +00:00
|
|
|
Application::PostUserEvent( mpData->mnEventId, LINK( this, ToolBox, ImplCallExecuteCustomMenu ) );
|
2004-07-06 12:49:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
// checks override first, useful during calculation of sizes
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool ToolBox::ImplIsFloatingMode() const
|
2004-07-06 12:49:51 +00:00
|
|
|
{
|
|
|
|
DBG_ASSERT( !(mpData->mbAssumeDocked && mpData->mbAssumeFloating),
|
|
|
|
"ToolBox::ImplIsFloatingMode(): cannot assume docked and floating" );
|
|
|
|
|
|
|
|
if( mpData->mbAssumeDocked )
|
2010-09-29 15:46:40 +08:00
|
|
|
return sal_False;
|
2004-07-06 12:49:51 +00:00
|
|
|
else if( mpData->mbAssumeFloating )
|
2010-09-29 15:46:40 +08:00
|
|
|
return sal_True;
|
2004-07-06 12:49:51 +00:00
|
|
|
else
|
|
|
|
return IsFloatingMode();
|
|
|
|
}
|
|
|
|
|
2004-11-16 14:12:24 +00:00
|
|
|
// checks override first, useful during calculation of sizes
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool ToolBox::ImplIsInPopupMode() const
|
2004-11-16 14:12:24 +00:00
|
|
|
{
|
|
|
|
if( mpData->mbAssumePopupMode )
|
2010-09-29 15:46:40 +08:00
|
|
|
return sal_True;
|
2004-11-16 14:12:24 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( this );
|
|
|
|
return ( pWrapper && pWrapper->GetFloatingWindow() && pWrapper->GetFloatingWindow()->IsInPopupMode() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-08-11 15:53:10 +00:00
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::Lock( sal_Bool bLock )
|
2004-08-11 15:53:10 +00:00
|
|
|
{
|
|
|
|
ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( this );
|
|
|
|
if( !pWrapper )
|
|
|
|
return;
|
|
|
|
if( mpData->mbIsLocked != bLock )
|
|
|
|
{
|
|
|
|
mpData->mbIsLocked = bLock;
|
|
|
|
if( !ImplIsFloatingMode() )
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
mbCalc = sal_True;
|
|
|
|
mbFormat = sal_True;
|
2004-08-11 15:53:10 +00:00
|
|
|
SetSizePixel( CalcWindowSizePixel(1) );
|
|
|
|
Invalidate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2004-09-09 15:22:50 +00:00
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool ToolBox::AlwaysLocked()
|
2005-11-11 10:55:25 +00:00
|
|
|
{
|
|
|
|
// read config item to determine toolbox behaviour, used for subtoolbars
|
|
|
|
|
|
|
|
static int nAlwaysLocked = -1;
|
|
|
|
|
|
|
|
if( nAlwaysLocked == -1 )
|
|
|
|
{
|
|
|
|
nAlwaysLocked = 0; // ask configuration only once
|
|
|
|
|
|
|
|
utl::OConfigurationNode aNode = utl::OConfigurationTreeRoot::tryCreateWithServiceFactory(
|
|
|
|
vcl::unohelper::GetMultiServiceFactory(),
|
2012-06-02 13:13:21 -05:00
|
|
|
OUString("/org.openoffice.Office.UI.GlobalSettings/Toolbars") ); // note: case sensisitive !
|
2005-11-11 10:55:25 +00:00
|
|
|
if ( aNode.isValid() )
|
|
|
|
{
|
|
|
|
// feature enabled ?
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool bStatesEnabled = sal_Bool();
|
2012-06-02 13:13:21 -05:00
|
|
|
::com::sun::star::uno::Any aValue = aNode.getNodeValue( OUString("StatesEnabled") );
|
2005-11-11 10:55:25 +00:00
|
|
|
if( aValue >>= bStatesEnabled )
|
|
|
|
{
|
2010-09-29 15:46:40 +08:00
|
|
|
if( bStatesEnabled == sal_True )
|
2005-11-11 10:55:25 +00:00
|
|
|
{
|
|
|
|
// now read the locking state
|
2006-06-19 18:42:19 +00:00
|
|
|
utl::OConfigurationNode aNode2 = utl::OConfigurationTreeRoot::tryCreateWithServiceFactory(
|
2005-11-11 10:55:25 +00:00
|
|
|
vcl::unohelper::GetMultiServiceFactory(),
|
2012-06-02 13:13:21 -05:00
|
|
|
OUString("/org.openoffice.Office.UI.GlobalSettings/Toolbars/States") ); // note: case sensisitive !
|
2005-11-11 10:55:25 +00:00
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool bLocked = sal_Bool();
|
2012-06-02 13:13:21 -05:00
|
|
|
::com::sun::star::uno::Any aValue2 = aNode2.getNodeValue( OUString("Locked") );
|
2006-06-19 18:42:19 +00:00
|
|
|
if( aValue2 >>= bLocked )
|
2010-09-29 15:46:40 +08:00
|
|
|
nAlwaysLocked = (bLocked == sal_True) ? 1 : 0;
|
2005-11-11 10:55:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
return nAlwaysLocked == 1 ? sal_True : sal_False;
|
2005-11-11 10:55:25 +00:00
|
|
|
}
|
2005-11-11 16:20:53 +00:00
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
sal_Bool ToolBox::WillUsePopupMode() const
|
2005-11-11 16:20:53 +00:00
|
|
|
{
|
|
|
|
return mpData->mbWillUsePopupMode;
|
|
|
|
}
|
|
|
|
|
2010-09-29 15:46:40 +08:00
|
|
|
void ToolBox::WillUsePopupMode( sal_Bool b )
|
2005-11-11 16:20:53 +00:00
|
|
|
{
|
|
|
|
mpData->mbWillUsePopupMode = b;
|
|
|
|
}
|
|
|
|
|
CWS-TOOLING: integrate CWS dba32a
2009-04-16 13:08:19 +0200 oj r270882 : #i14538# set property at control
2009-04-16 13:04:28 +0200 oj r270881 : #i98557# remove binary string for SRB
2009-04-15 13:19:10 +0200 oj r270838 : #i96782# use type set at view
2009-04-14 14:53:20 +0200 oj r270778 : #i96782# set initialize size for custom shape
2009-04-06 14:19:14 +0200 oj r270546 : #i88432# correct pos when < 0 while resizing
2009-04-06 13:36:13 +0200 oj r270541 : #i96782# handle toolbar and menubar differently
2009-04-06 13:33:54 +0200 oj r270540 : #i96782# handle toolbar and menubar differently
2009-04-06 12:28:23 +0200 oj r270534 : #i96782# handle toolbar and menubar differently
2009-04-06 12:27:44 +0200 oj r270533 : #i96782# handle toolbar and menubar differently
2009-04-06 12:24:32 +0200 oj r270532 : #i96782# handle toolbar and menubar differently
2009-04-06 12:15:15 +0200 oj r270531 : do not initialze when field is empty
2009-04-06 10:06:08 +0200 oj r270528 : #i96782# clean up of menubar and remove duplicates
2009-04-06 09:47:49 +0200 oj r270527 : #i96519# adjust help text dynamic
2009-04-03 13:43:20 +0200 oj r270482 : do not need to remove section from observer they are already disposed
2009-04-03 13:27:28 +0200 fs r270479 : #i97356#
2009-04-02 11:30:39 +0200 fs r270386 : UNX line ends
2009-04-02 10:54:51 +0200 fs r270379 : UNX line ends
2009-04-02 10:39:57 +0200 fs r270378 : UNX line ends
2009-04-02 10:37:24 +0200 fs r270377 : why did this survive the rebase? was removed on trunk ...
2009-03-31 13:31:12 +0200 fs r270277 : component_foo should be public
2009-03-28 00:21:01 +0100 fs r270176 : manuallly merged the changes which happened in CWS before resync to m45, where the directory had been moved from reportdesign/registry to reportbuilder/registry
2009-03-27 23:01:20 +0100 fs r270174 : CWS-TOOLING: rebase CWS dba32a to trunk@270033 (milestone: DEV300:m45)
2009-03-11 12:23:35 +0100 fs r269310 : #i99958# ensure the ControlModelLock doesn't release twice
2009-03-06 09:07:32 +0100 fs r268970 : ignore output paths in SVN's status
2009-03-06 09:07:08 +0100 fs r268969 : ignore output paths in SVN's status
2009-03-04 11:28:02 +0100 oj r268800 : copy and paste error, check correct end now
2009-03-03 15:49:11 +0100 fs r268736 : #i10000# those merges were lost during the rebase (m38->m42)
2009-03-03 13:25:27 +0100 lla r268720 : #i99652# fix wrong refactoring
2009-02-27 11:12:56 +0100 fs r268566 : beautified
2009-02-27 10:53:47 +0100 fs r268561 : doFormListening(false) only when actually isFormListening() (found during complex test case XMLFormSettings with assertions)
2009-02-26 20:55:31 +0100 fs r268546 : #i96530# set the Label property of the bound control, if we didn't create a dedicated label control
2009-02-26 11:53:09 +0100 fs r268494 : #i10000#
2009-02-26 11:27:50 +0100 fs r268493 : #i10000#
2009-02-26 11:17:08 +0100 fs r268490 : reportdesign depends on REPORTBUILDER, not REPORTDESIGN
2009-02-25 11:39:48 +0100 fs r268422 : #i10000# post-resync: INFO_ESCAPE_DATETIME got lost during rebase
2009-02-24 23:24:10 +0100 fs r268411 : CWS-TOOLING: rebase CWS dba32a to trunk@268395 (milestone: DEV300:m42)
2009-02-20 15:09:48 +0100 fs r268324 : respect ImplicitCatalog/SchemaRestriction in all necessary places
2009-02-20 13:48:10 +0100 oj r268318 : order of initialize corrected
2009-02-14 15:07:52 +0100 fs r267759 : #i98975# when an image does not have a bitmap, but a text, draw this (as placeholder)
2009-02-14 15:02:40 +0100 fs r267758 : consolidated and removed some duplicate code
2009-02-14 13:52:23 +0100 fs r267756 : #i10000#
2009-02-13 22:08:34 +0100 fs r267750 : #i100000#
2009-02-13 22:07:25 +0100 fs r267749 : #i10000#
2009-02-13 21:55:36 +0100 fs r267747 : #i10000#
2009-02-13 21:54:27 +0100 fs r267746 : use const_cast
2009-02-13 21:29:10 +0100 fs r267745 : #i10000#
2009-02-13 21:27:39 +0100 fs r267744 : #i10000#
2009-02-13 20:59:13 +0100 fs r267742 : #i10000#
2009-02-13 13:21:30 +0100 fs r267717 : better diagnostics
2009-02-13 13:17:24 +0100 fs r267715 : #i58313# support Catalog/SchemaRestriction settings, which are applied in getTables when 'all catalogs/schemas' are to be retrieved
2009-02-13 13:16:14 +0100 fs r267714 : filter out some more known global settings
2009-02-13 12:39:43 +0100 fs r267713 : #i58313# ImplicitCatalog/SchemaRestriction
2009-02-13 12:36:50 +0100 fs r267712 : when exporting data source settings, allow for properties which have a VOID default value, but are currently not VOID
2009-02-13 12:35:57 +0100 fs r267711 : implement XSet, to allow inserting properties which have a default value of VOID
2009-02-13 12:35:03 +0100 fs r267710 : +addVoidProperty
2009-02-13 10:20:08 +0100 fs r267697 : removed unused variable
2009-02-13 09:46:46 +0100 fs r267695 : refactored the table filtering code, to have a better base for introducing additional low level filters
2009-02-10 09:23:07 +0100 lla r267537 : #i10000# wrong line feed, double named variable
2009-02-09 12:13:08 +0100 oj r267508 : #i98605# notify hanlder
2009-02-09 11:50:34 +0100 oj r267507 : #i98926# solve refcount problem
2009-02-09 11:50:05 +0100 oj r267506 : #i98971# fix for simple html
2009-02-09 11:49:24 +0100 oj r267505 : #i98971# fix for simple html
2009-02-09 11:47:27 +0100 oj r267504 : invoke on copy
2009-02-09 09:51:00 +0100 fs r267500 : #i98316#
2009-02-09 09:46:10 +0100 fs r267499 : setCurrentSelection: don't reset the current form when we de-select everything
2009-02-09 09:43:45 +0100 fs r267498 : #i98316#
2009-02-08 21:25:18 +0100 fs r267496 : #i98272# introduce late ctor for cloning
2009-02-07 21:08:39 +0100 fs r267485 : #i98272# when copy-constructing a FmFormPageImpl, use the XCloneable of the forms collection, instead of XPersistObject (which is incompletely implemented)
2009-02-07 21:07:26 +0100 fs r267484 : removed obsolete include guards
2009-02-07 21:05:22 +0100 fs r267483 : #i98272# implement XCloneable
2009-02-06 15:02:48 +0100 lla r267467 : #i96523# add XImageControl
2009-02-06 14:41:38 +0100 oj r267463 : #i98926# late init when connection disposed but only when asked for
2009-02-06 13:49:57 +0100 lla r267457 : #i92860# bigint in forms doesn't allow input of values > 1, fixed
2009-02-06 13:03:55 +0100 oj r267455 : ImageScaleMode
2009-02-05 14:48:19 +0100 lla r267424 : #i89335# dropdown listboxes are 14 instead of 7 lines high
2009-02-05 13:40:00 +0100 oj r267423 : #i96945# insert new prop Opaque
2009-02-05 13:39:19 +0100 oj r267422 : #i96945# insert layer handling for hell and heaven
2009-02-05 13:29:32 +0100 lla r267420 : #i89335# add is null, is not null, is not like filter condition
2009-02-04 12:23:02 +0100 oj r267364 : #i98821# load table font settings
2009-02-04 10:05:27 +0100 oj r267351 : #i98821# load table font settings
2009-02-04 09:23:22 +0100 fs r267350 : checking persistency of UI settings in database documents - for the moment, capture table formattings (which is issue 98821)
2009-02-04 09:22:15 +0100 fs r267349 : moved some methods which are of wider interest from DatabaseDocument to FileHelper resp. TestCase
2009-02-04 08:56:27 +0100 oj r267347 : #i97586# UcbStreamHelper::CreateStream doesn't check all streamModes use different method
2009-02-04 08:23:26 +0100 oj r267346 : #i98701# check key size is >= 3 and some redesign
2009-02-03 23:29:24 +0100 fs r267345 : return the component (controller), not the frame
2009-02-03 23:28:53 +0100 fs r267344 : openExisting returns a controller now, not the frame (this was a bug)
2009-02-03 23:28:25 +0100 fs r267343 : openElement: properly return the component in the table/query case
2009-02-02 12:48:17 +0100 oj r267261 : #i96013# fix for relative path
2009-02-02 10:33:28 +0100 lla r267253 : #i98557# cleanups and consolidation
2009-02-02 09:37:23 +0100 lla r267250 : #i88432# resize will no longer move components to other sections
2009-02-02 09:08:24 +0100 oj r267245 : #i97475# write 0x1A at the end of the file
2009-01-30 19:39:20 +0100 lla r267230 : #i10000# unused parameters
2009-01-30 09:51:09 +0100 fs r267181 : onsolete
2009-01-30 09:49:27 +0100 fs r267180 : onsolete
2009-01-29 14:28:22 +0100 oj r267139 : #i96825# import cell style
2009-01-29 14:23:12 +0100 oj r267137 : #i98601# export imagescalehandler
2009-01-29 14:19:57 +0100 lla r267135 : #i98601# add ImageScaleMode
2009-01-29 13:21:08 +0100 oj r267124 : #i98601# impl ScaleMode
2009-01-29 13:20:56 +0100 oj r267123 : #i98601# impl ScaleMode
2009-01-29 08:46:40 +0100 oj r267095 : new property: ScaleMode
2009-01-29 08:45:23 +0100 oj r267094 : new ScaleMode from UnControlImageModel
2009-01-29 08:28:12 +0100 oj r267093 : #i87930# close all sub forms/reports when the desktop is going to be terminated and no db frame exists
2009-01-28 19:54:34 +0100 lla r267082 : #i98557# pictures in report wizard
2009-01-28 15:06:25 +0100 oj r267060 : #i87930# close all sub forms/reports when the desktop is going to be terminated and no db frame exists
2009-01-28 11:38:41 +0100 lla r267046 : #i76783# handle binary fields in forms
2009-01-28 09:24:43 +0100 lla r267025 : #i10000#
2009-01-28 08:40:04 +0100 fs r267024 : #i10000#
2009-01-28 08:04:43 +0100 oj r267023 : #i93456# use resource strings for function names
2009-01-27 13:26:05 +0100 oj r266988 : check data field is type field or expression
2009-01-27 13:07:17 +0100 oj r266985 : check data field length
2009-01-27 11:48:19 +0100 oj r266974 : #i96823# return dll string as column name when no alias exists
2009-01-27 09:53:11 +0100 fs r266958 : display the message of a caught exception
2009-01-27 09:44:13 +0100 fs r266957 : #i58313# when retrieving all tables, just set an empty table type filter - the connection will care for translating this, by respecting the TableTypeFilterMode setting
2009-01-27 09:36:09 +0100 fs r266956 : #i58313# getTables: per JDBC spec, is not a valid table type filter. Translate it to 'null'.
2009-01-26 11:24:49 +0100 lla r266912 : #i97865# cleanups (AddField viewable in remote mode)
2009-01-26 07:49:27 +0100 lla r266897 : #i97865# AddField opens in remote case
2009-01-26 07:48:58 +0100 lla r266896 : #i97865# AddField opens in remote case
2009-01-26 07:48:42 +0100 lla r266895 : #i97865# AddField opens in remote case
2009-01-23 15:04:40 +0100 fs r266825 : consolidate the usage of OSQLMessageBox with MessageType==Warning into OSQLWarningBox
2009-01-23 10:47:33 +0100 fs r266787 : +supportsUserAdministration
2009-01-23 10:47:11 +0100 fs r266784 : use DatabaseMetaData.supportsUserAdministration
2009-01-23 07:55:59 +0100 lla r266767 : #i10000# fix gcc compiler failures
2009-01-21 15:08:55 +0100 lla r266673 : #i97265# Labels in HC (IsDark) with other color (viewable)
2009-01-19 14:58:54 +0100 lla r266504 : #i96523# last problems with FormatKey and '0' values fixed
2009-01-19 14:58:00 +0100 lla r266503 : #i96519# AddField help text
2009-01-19 11:59:02 +0100 fs r266485 : #i96523# for formatted field models, init them with TreatAsNumber = false
2009-01-16 10:31:49 +0100 lla r266405 : #i96793# add shrink to popup menu
2009-01-16 09:21:44 +0100 lla r266401 : #i96519# AddField contains a help text
2009-01-15 11:21:49 +0100 lla r266357 : #i96523# problem with XVclWindowPeer not fixed now
2009-01-15 09:19:20 +0100 lla r266335 : #i96523# more crashes fixed.
2009-01-14 13:08:34 +0100 lla r266291 : #i96523# problems with crashes fixed
2009-01-13 10:54:24 +0100 lla r266199 : #i96523# show datasource in formattedfields new files
2009-01-13 10:52:39 +0100 lla r266198 : #i96523# show datasource in formattedfields
2009-01-13 09:41:50 +0100 lla r266197 : #i96526# handling none existance default.otr
2009-01-12 12:55:49 +0100 fs r266151 : don't expect the control model to be a BoundComponent before adding as modify listener
2009-01-12 12:51:33 +0100 fs r266149 : #i88458# let the ImageControl be an XModifyBroadcaster, so the forms runtime can notice when the user changes the control content while it does not have the focus
2009-01-09 13:41:22 +0100 fs r266080 : doc
2009-01-09 13:14:14 +0100 fs r266077 : #i97377# SetModified when order is changed via DnD
2009-01-07 09:55:40 +0100 oj r265951 : merge from master
2009-01-07 09:55:24 +0100 oj r265950 : removed observer
2009-01-07 09:55:06 +0100 oj r265949 : merge from master
2009-01-07 07:29:11 +0100 oj r265945 : shadow var changed
2009-01-06 07:25:57 +0100 oj r265893 : CWS-TOOLING: rebase CWS dba32a to trunk@265758 (milestone: DEV300:m38)
2009-01-05 13:18:22 +0100 oj r265865 : convert to unix le
2009-01-05 09:13:52 +0100 lla r265857 : #i79423# lc_ sc_ permutation fix
2009-01-02 19:40:59 +0100 lla r265847 : #i79423# section shrink icons
2008-12-22 11:37:57 +0100 lla r265749 : #i97484# move component to negative Y-position
2008-12-22 11:37:05 +0100 lla r265748 : #i97484# move component to negative Y-position
2008-12-22 11:35:33 +0100 lla r265747 : #i97484# move component to negative Y-position
2008-12-22 11:25:07 +0100 lla r265745 : #i96757# changes via property browser was not undoable
2008-12-18 15:10:38 +0100 fs r265694 : corrected an condition in doFormListening, which otherwise leads to uncommitable grid columns in documents which are loaded from disc (not in documents which are newly created)
2008-12-18 14:54:39 +0100 fs r265692 : Hide Columns text slightly changed
2008-12-18 13:44:15 +0100 fs r265683 : #i94068# properly display erros happening during a form operation - at least once, and at most once
2008-12-18 11:28:29 +0100 fs r265677 : document the new InputRequired property
2008-12-18 11:04:15 +0100 fs r265676 : #i96530# createControlLabelPair: don't actually create a label for a checkbox
2008-12-18 10:35:53 +0100 fs r265674 : #i95226# when a column is replaced, and it's the selected column, update the selection
2008-12-18 10:34:42 +0100 fs r265673 : #i95226# refactoring of the implReplaced method
2008-12-18 10:34:28 +0100 fs r265672 : #i95226# when replacing a grid column, update the property browser
2008-12-18 10:33:17 +0100 fs r265671 : when an element is removed, remove it from m_aCurrentSelection, too (if necessary)
2008-12-18 10:31:57 +0100 fs r265670 : Hide Columns text slightly changed
2008-12-18 10:15:56 +0100 lla r265669 : #i14538# do not allow to press finish button twice
2008-12-18 08:56:33 +0100 lla r265665 : #i10000# build depend=t problem hacked.
2008-12-17 20:59:10 +0100 fs r265656 : #i89821# don't let a MultiLineEdit select all text when it receives the focus
2008-12-17 12:10:54 +0100 fs r265594 : #i97356#
2008-12-17 12:06:29 +0100 fs r265593 : #i97355# Print -> Printable
2008-12-17 11:59:31 +0100 fs r265591 : #i97350# combo boxes comment on list selection (as list boxes already do)
2008-12-16 09:53:57 +0100 lla r265527 : #i96526# handling none existance default.otr
2008-12-15 14:48:39 +0100 lla r265500 : #i79423# reparing, was wrong implemented
2008-12-12 15:08:33 +0100 lla r265424 : #i10000# remove wrong carridge returns
2008-12-12 15:07:55 +0100 lla r265423 : #i10000# remove wrong carridge returns
2008-12-12 15:06:41 +0100 lla r265422 : #i10000# remove wrong carridge returns
2008-12-12 10:23:13 +0100 lla r265395 : #i95234# reset DragDelta
2008-12-12 10:11:02 +0100 lla r265393 : #i79423# pre versions of shrink buttons
2008-12-11 15:32:13 +0100 fs r265318 : prevent a deadlock during complex.dbaccess.DatabaseDocument test
2008-12-11 15:30:06 +0100 fs r265316 : prevent a deadlock during complex.dbaccess.DatabaseDocument test
2008-12-11 15:07:05 +0100 fs r265307 : removed superfluous text
2008-12-11 12:29:54 +0100 lla r265282 : #i96757# cleanup second try
2008-12-11 12:09:15 +0100 lla r265278 : #i96757# cleanup
2008-12-11 12:07:56 +0100 lla r265277 : #i95234#
2008-12-10 14:04:39 +0100 lla r265183 : #i93472# D&D fixes
2008-12-10 12:29:33 +0100 lla r265168 : #i94067# add (APP|SYS)FONT to XUnitConversion
2008-12-10 12:15:02 +0100 lla r265166 : #i94067# add APPFONT, SYSFONT to MeasureUnit
2008-12-10 11:52:10 +0100 lla r265163 : #i94067# add comments
2008-12-06 20:33:05 +0100 fs r264935 : #i10000# precompiled header
2008-12-05 09:29:26 +0100 fs r264889 : #i10000#
2008-12-05 09:07:31 +0100 fs r264888 : #i10000#
2008-12-04 13:25:46 +0100 fs r264838 : CWS-TOOLING: rebase CWS dba32a to trunk@264807 (milestone: DEV300:m37)
2008-12-03 23:49:13 +0100 fs r264808 : merge changes from trunk, to be able to do a rebase
2008-12-03 17:13:09 +0100 lla r264801 : #i91041# update documentation
2008-12-03 16:57:04 +0100 lla r264799 : #i94067# allow convert(Point|Size)ToLogic as pixel also
2008-12-02 12:36:32 +0100 lla r264687 : #i96782# bring toolbar objects to menu structure
2008-12-02 10:32:44 +0100 lla r264667 : #i86255# make property work
2008-12-02 09:22:47 +0100 lla r264659 : #i79423# add section shrink toolbar
2008-12-02 07:41:22 +0100 lla r264657 : #i86255# add check box for Escape DateTime property
2008-12-02 07:37:17 +0100 lla r264656 : #i79423# new shrink buttons
2008-11-26 11:55:28 +0100 fs r264362 : #i96541#
FillPropertySet: do not only catch UnknownPropertyException when setting the Char/ParaAutoStyleName,
but also care for the other exceptions which can be thrown by XPropertySet::setPropertyValue.
This is actually not the real fix for #i96541#, but only a follow-up. The root cause of the issue
was fixed in CWS dba301b, but this here was another (potential) bug which popped up during investigations.
2008-11-25 09:04:40 +0100 lla r264273 : #i82083# new toolbox in GroupsSorting dialog
2008-11-25 08:56:08 +0100 lla r264272 : #i94729# change token strings into string list, move class out of function
2008-11-24 15:52:22 +0100 fs r264251 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:51:45 +0100 fs r264249 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:45:21 +0100 fs r264244 : #i96532# the API default for ParamNameSubst is false
2008-11-24 15:45:04 +0100 fs r264243 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:44:14 +0100 fs r264241 : #i96532# slight refactoring of exporting properties which have a XML default different from the API default
2008-11-24 10:50:01 +0100 lla r264216 : #i82083# icons for new toolbox
2008-11-24 09:38:45 +0100 lla r264205 : #i82083# new toolbox in GroupsSorting dialog
2008-11-24 09:32:20 +0100 lla r264201 : #i96501# cleanup assertions
2008-11-24 09:12:55 +0100 lla r264198 : #i83082# enhancement for toolboxes, better HC comfort
2008-11-24 08:46:43 +0100 lla r264197 : #i96501# fix problem with negative positions
2008-11-21 11:44:47 +0100 fs r264118 : #i57042# introduce a counter for suspending change notifications of a given property, so recursive calls are possible
2008-11-21 11:02:17 +0100 fs r264116 : #i96388# don't call ExecuteContextMenuAction when no action was chosen by the user
2008-11-21 10:36:53 +0100 fs r264114 : #i47384# assertion was wrong
2008-11-14 12:33:15 +0100 fs r263673 : #i47318# XRowSetChangeBroadcaster/Listener, to be able to listen for changes in an XRowSetSupplier's RowSet
2008-11-14 12:30:29 +0100 fs r263672 : #i47318# more refactoring
- BoundControlModels now listen at the XRowSetSupplier for changes in the supplied
RowSet, to properly revoke/register old/new listeners at the RowSet
- replaced ::osl::Mutex in various places with a ControlModelLock
2008-11-14 12:20:55 +0100 fs r263671 : when BUILD_TYPE includes QADEVOOO, the BUILD_QADEVOOO needs to bet set, too
2008-11-14 12:19:21 +0100 fs r263670 : oops, this was not intended to be committed
2008-11-12 11:08:10 +0100 fs r263579 : #i96096# new ctors taking UNO_QUERY_THROW
2008-11-12 09:15:54 +0100 fs r263576 : no need to load the complete dialog just to get a string which the dialog itself loads from resource
2008-11-10 17:55:45 +0100 fs r263535 : spelling in comment
2008-11-10 15:51:14 +0100 fs r263523 : #i47318# various refactorings
1. don't forward syntetic XLoadListener events from the grid control to
the grid columns. Instead, forward GridColumn::XChild::setParent to
the base class, which then can add itself as load listener
2. removed various occurances of XMultiServiceFactory, instead use the
::comphelper::ComponentContext
3. in O(Bound)ControlModel, have a mechanism to lock the instance (using
ControlModelLock) and fire property changes when the last lock dies.
2008-11-10 12:49:24 +0100 oj r263513 : #i94729# change token strings into string list
2008-11-10 12:13:15 +0100 oj r263512 : #i95222# export chart:title style as well
2008-11-10 08:55:25 +0100 oj r263507 : #i93471# show the correct tabpage when selecting a different object
2008-11-07 23:38:29 +0100 fs r263490 : #i95977# for the event input controls, add a component extending their functionality so they're reset when the users presses DEL
2008-11-07 23:35:39 +0100 fs r263489 : during #i95977#: When a VCL Window is deleted from within VCL code, the respective WindowPeer was never disposed. Corrected this.
2008-11-07 14:57:07 +0100 fs r263420 : #i95963# human-readable display names for event bindings
2008-11-06 10:34:52 +0100 fs r263366 : #i95865# don't use library names containing InvalidZipEntryFileNames - workaround until i95409 is fixed
2008-11-06 10:33:28 +0100 fs r263365 : #i95865#
copied the following change from CWS odfmetadata2 (not yet integrated) into CWS dba31d
- comphelper/inc/comphelper/storagehelper.hxx,
comphelper/source/misc/storagehelper.cxx:
+ add function IsValidZipEntryFileName (moved from module package)
2009-04-22 11:01:27 +00:00
|
|
|
void ToolBox::ImplUpdateImageList()
|
|
|
|
{
|
|
|
|
if (mpData->mpImageListProvider != NULL)
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
2010-11-22 18:57:39 -08:00
|
|
|
ImageListType eType = vcl::HIGHCONTRAST_NO;
|
CWS-TOOLING: integrate CWS dba32a
2009-04-16 13:08:19 +0200 oj r270882 : #i14538# set property at control
2009-04-16 13:04:28 +0200 oj r270881 : #i98557# remove binary string for SRB
2009-04-15 13:19:10 +0200 oj r270838 : #i96782# use type set at view
2009-04-14 14:53:20 +0200 oj r270778 : #i96782# set initialize size for custom shape
2009-04-06 14:19:14 +0200 oj r270546 : #i88432# correct pos when < 0 while resizing
2009-04-06 13:36:13 +0200 oj r270541 : #i96782# handle toolbar and menubar differently
2009-04-06 13:33:54 +0200 oj r270540 : #i96782# handle toolbar and menubar differently
2009-04-06 12:28:23 +0200 oj r270534 : #i96782# handle toolbar and menubar differently
2009-04-06 12:27:44 +0200 oj r270533 : #i96782# handle toolbar and menubar differently
2009-04-06 12:24:32 +0200 oj r270532 : #i96782# handle toolbar and menubar differently
2009-04-06 12:15:15 +0200 oj r270531 : do not initialze when field is empty
2009-04-06 10:06:08 +0200 oj r270528 : #i96782# clean up of menubar and remove duplicates
2009-04-06 09:47:49 +0200 oj r270527 : #i96519# adjust help text dynamic
2009-04-03 13:43:20 +0200 oj r270482 : do not need to remove section from observer they are already disposed
2009-04-03 13:27:28 +0200 fs r270479 : #i97356#
2009-04-02 11:30:39 +0200 fs r270386 : UNX line ends
2009-04-02 10:54:51 +0200 fs r270379 : UNX line ends
2009-04-02 10:39:57 +0200 fs r270378 : UNX line ends
2009-04-02 10:37:24 +0200 fs r270377 : why did this survive the rebase? was removed on trunk ...
2009-03-31 13:31:12 +0200 fs r270277 : component_foo should be public
2009-03-28 00:21:01 +0100 fs r270176 : manuallly merged the changes which happened in CWS before resync to m45, where the directory had been moved from reportdesign/registry to reportbuilder/registry
2009-03-27 23:01:20 +0100 fs r270174 : CWS-TOOLING: rebase CWS dba32a to trunk@270033 (milestone: DEV300:m45)
2009-03-11 12:23:35 +0100 fs r269310 : #i99958# ensure the ControlModelLock doesn't release twice
2009-03-06 09:07:32 +0100 fs r268970 : ignore output paths in SVN's status
2009-03-06 09:07:08 +0100 fs r268969 : ignore output paths in SVN's status
2009-03-04 11:28:02 +0100 oj r268800 : copy and paste error, check correct end now
2009-03-03 15:49:11 +0100 fs r268736 : #i10000# those merges were lost during the rebase (m38->m42)
2009-03-03 13:25:27 +0100 lla r268720 : #i99652# fix wrong refactoring
2009-02-27 11:12:56 +0100 fs r268566 : beautified
2009-02-27 10:53:47 +0100 fs r268561 : doFormListening(false) only when actually isFormListening() (found during complex test case XMLFormSettings with assertions)
2009-02-26 20:55:31 +0100 fs r268546 : #i96530# set the Label property of the bound control, if we didn't create a dedicated label control
2009-02-26 11:53:09 +0100 fs r268494 : #i10000#
2009-02-26 11:27:50 +0100 fs r268493 : #i10000#
2009-02-26 11:17:08 +0100 fs r268490 : reportdesign depends on REPORTBUILDER, not REPORTDESIGN
2009-02-25 11:39:48 +0100 fs r268422 : #i10000# post-resync: INFO_ESCAPE_DATETIME got lost during rebase
2009-02-24 23:24:10 +0100 fs r268411 : CWS-TOOLING: rebase CWS dba32a to trunk@268395 (milestone: DEV300:m42)
2009-02-20 15:09:48 +0100 fs r268324 : respect ImplicitCatalog/SchemaRestriction in all necessary places
2009-02-20 13:48:10 +0100 oj r268318 : order of initialize corrected
2009-02-14 15:07:52 +0100 fs r267759 : #i98975# when an image does not have a bitmap, but a text, draw this (as placeholder)
2009-02-14 15:02:40 +0100 fs r267758 : consolidated and removed some duplicate code
2009-02-14 13:52:23 +0100 fs r267756 : #i10000#
2009-02-13 22:08:34 +0100 fs r267750 : #i100000#
2009-02-13 22:07:25 +0100 fs r267749 : #i10000#
2009-02-13 21:55:36 +0100 fs r267747 : #i10000#
2009-02-13 21:54:27 +0100 fs r267746 : use const_cast
2009-02-13 21:29:10 +0100 fs r267745 : #i10000#
2009-02-13 21:27:39 +0100 fs r267744 : #i10000#
2009-02-13 20:59:13 +0100 fs r267742 : #i10000#
2009-02-13 13:21:30 +0100 fs r267717 : better diagnostics
2009-02-13 13:17:24 +0100 fs r267715 : #i58313# support Catalog/SchemaRestriction settings, which are applied in getTables when 'all catalogs/schemas' are to be retrieved
2009-02-13 13:16:14 +0100 fs r267714 : filter out some more known global settings
2009-02-13 12:39:43 +0100 fs r267713 : #i58313# ImplicitCatalog/SchemaRestriction
2009-02-13 12:36:50 +0100 fs r267712 : when exporting data source settings, allow for properties which have a VOID default value, but are currently not VOID
2009-02-13 12:35:57 +0100 fs r267711 : implement XSet, to allow inserting properties which have a default value of VOID
2009-02-13 12:35:03 +0100 fs r267710 : +addVoidProperty
2009-02-13 10:20:08 +0100 fs r267697 : removed unused variable
2009-02-13 09:46:46 +0100 fs r267695 : refactored the table filtering code, to have a better base for introducing additional low level filters
2009-02-10 09:23:07 +0100 lla r267537 : #i10000# wrong line feed, double named variable
2009-02-09 12:13:08 +0100 oj r267508 : #i98605# notify hanlder
2009-02-09 11:50:34 +0100 oj r267507 : #i98926# solve refcount problem
2009-02-09 11:50:05 +0100 oj r267506 : #i98971# fix for simple html
2009-02-09 11:49:24 +0100 oj r267505 : #i98971# fix for simple html
2009-02-09 11:47:27 +0100 oj r267504 : invoke on copy
2009-02-09 09:51:00 +0100 fs r267500 : #i98316#
2009-02-09 09:46:10 +0100 fs r267499 : setCurrentSelection: don't reset the current form when we de-select everything
2009-02-09 09:43:45 +0100 fs r267498 : #i98316#
2009-02-08 21:25:18 +0100 fs r267496 : #i98272# introduce late ctor for cloning
2009-02-07 21:08:39 +0100 fs r267485 : #i98272# when copy-constructing a FmFormPageImpl, use the XCloneable of the forms collection, instead of XPersistObject (which is incompletely implemented)
2009-02-07 21:07:26 +0100 fs r267484 : removed obsolete include guards
2009-02-07 21:05:22 +0100 fs r267483 : #i98272# implement XCloneable
2009-02-06 15:02:48 +0100 lla r267467 : #i96523# add XImageControl
2009-02-06 14:41:38 +0100 oj r267463 : #i98926# late init when connection disposed but only when asked for
2009-02-06 13:49:57 +0100 lla r267457 : #i92860# bigint in forms doesn't allow input of values > 1, fixed
2009-02-06 13:03:55 +0100 oj r267455 : ImageScaleMode
2009-02-05 14:48:19 +0100 lla r267424 : #i89335# dropdown listboxes are 14 instead of 7 lines high
2009-02-05 13:40:00 +0100 oj r267423 : #i96945# insert new prop Opaque
2009-02-05 13:39:19 +0100 oj r267422 : #i96945# insert layer handling for hell and heaven
2009-02-05 13:29:32 +0100 lla r267420 : #i89335# add is null, is not null, is not like filter condition
2009-02-04 12:23:02 +0100 oj r267364 : #i98821# load table font settings
2009-02-04 10:05:27 +0100 oj r267351 : #i98821# load table font settings
2009-02-04 09:23:22 +0100 fs r267350 : checking persistency of UI settings in database documents - for the moment, capture table formattings (which is issue 98821)
2009-02-04 09:22:15 +0100 fs r267349 : moved some methods which are of wider interest from DatabaseDocument to FileHelper resp. TestCase
2009-02-04 08:56:27 +0100 oj r267347 : #i97586# UcbStreamHelper::CreateStream doesn't check all streamModes use different method
2009-02-04 08:23:26 +0100 oj r267346 : #i98701# check key size is >= 3 and some redesign
2009-02-03 23:29:24 +0100 fs r267345 : return the component (controller), not the frame
2009-02-03 23:28:53 +0100 fs r267344 : openExisting returns a controller now, not the frame (this was a bug)
2009-02-03 23:28:25 +0100 fs r267343 : openElement: properly return the component in the table/query case
2009-02-02 12:48:17 +0100 oj r267261 : #i96013# fix for relative path
2009-02-02 10:33:28 +0100 lla r267253 : #i98557# cleanups and consolidation
2009-02-02 09:37:23 +0100 lla r267250 : #i88432# resize will no longer move components to other sections
2009-02-02 09:08:24 +0100 oj r267245 : #i97475# write 0x1A at the end of the file
2009-01-30 19:39:20 +0100 lla r267230 : #i10000# unused parameters
2009-01-30 09:51:09 +0100 fs r267181 : onsolete
2009-01-30 09:49:27 +0100 fs r267180 : onsolete
2009-01-29 14:28:22 +0100 oj r267139 : #i96825# import cell style
2009-01-29 14:23:12 +0100 oj r267137 : #i98601# export imagescalehandler
2009-01-29 14:19:57 +0100 lla r267135 : #i98601# add ImageScaleMode
2009-01-29 13:21:08 +0100 oj r267124 : #i98601# impl ScaleMode
2009-01-29 13:20:56 +0100 oj r267123 : #i98601# impl ScaleMode
2009-01-29 08:46:40 +0100 oj r267095 : new property: ScaleMode
2009-01-29 08:45:23 +0100 oj r267094 : new ScaleMode from UnControlImageModel
2009-01-29 08:28:12 +0100 oj r267093 : #i87930# close all sub forms/reports when the desktop is going to be terminated and no db frame exists
2009-01-28 19:54:34 +0100 lla r267082 : #i98557# pictures in report wizard
2009-01-28 15:06:25 +0100 oj r267060 : #i87930# close all sub forms/reports when the desktop is going to be terminated and no db frame exists
2009-01-28 11:38:41 +0100 lla r267046 : #i76783# handle binary fields in forms
2009-01-28 09:24:43 +0100 lla r267025 : #i10000#
2009-01-28 08:40:04 +0100 fs r267024 : #i10000#
2009-01-28 08:04:43 +0100 oj r267023 : #i93456# use resource strings for function names
2009-01-27 13:26:05 +0100 oj r266988 : check data field is type field or expression
2009-01-27 13:07:17 +0100 oj r266985 : check data field length
2009-01-27 11:48:19 +0100 oj r266974 : #i96823# return dll string as column name when no alias exists
2009-01-27 09:53:11 +0100 fs r266958 : display the message of a caught exception
2009-01-27 09:44:13 +0100 fs r266957 : #i58313# when retrieving all tables, just set an empty table type filter - the connection will care for translating this, by respecting the TableTypeFilterMode setting
2009-01-27 09:36:09 +0100 fs r266956 : #i58313# getTables: per JDBC spec, is not a valid table type filter. Translate it to 'null'.
2009-01-26 11:24:49 +0100 lla r266912 : #i97865# cleanups (AddField viewable in remote mode)
2009-01-26 07:49:27 +0100 lla r266897 : #i97865# AddField opens in remote case
2009-01-26 07:48:58 +0100 lla r266896 : #i97865# AddField opens in remote case
2009-01-26 07:48:42 +0100 lla r266895 : #i97865# AddField opens in remote case
2009-01-23 15:04:40 +0100 fs r266825 : consolidate the usage of OSQLMessageBox with MessageType==Warning into OSQLWarningBox
2009-01-23 10:47:33 +0100 fs r266787 : +supportsUserAdministration
2009-01-23 10:47:11 +0100 fs r266784 : use DatabaseMetaData.supportsUserAdministration
2009-01-23 07:55:59 +0100 lla r266767 : #i10000# fix gcc compiler failures
2009-01-21 15:08:55 +0100 lla r266673 : #i97265# Labels in HC (IsDark) with other color (viewable)
2009-01-19 14:58:54 +0100 lla r266504 : #i96523# last problems with FormatKey and '0' values fixed
2009-01-19 14:58:00 +0100 lla r266503 : #i96519# AddField help text
2009-01-19 11:59:02 +0100 fs r266485 : #i96523# for formatted field models, init them with TreatAsNumber = false
2009-01-16 10:31:49 +0100 lla r266405 : #i96793# add shrink to popup menu
2009-01-16 09:21:44 +0100 lla r266401 : #i96519# AddField contains a help text
2009-01-15 11:21:49 +0100 lla r266357 : #i96523# problem with XVclWindowPeer not fixed now
2009-01-15 09:19:20 +0100 lla r266335 : #i96523# more crashes fixed.
2009-01-14 13:08:34 +0100 lla r266291 : #i96523# problems with crashes fixed
2009-01-13 10:54:24 +0100 lla r266199 : #i96523# show datasource in formattedfields new files
2009-01-13 10:52:39 +0100 lla r266198 : #i96523# show datasource in formattedfields
2009-01-13 09:41:50 +0100 lla r266197 : #i96526# handling none existance default.otr
2009-01-12 12:55:49 +0100 fs r266151 : don't expect the control model to be a BoundComponent before adding as modify listener
2009-01-12 12:51:33 +0100 fs r266149 : #i88458# let the ImageControl be an XModifyBroadcaster, so the forms runtime can notice when the user changes the control content while it does not have the focus
2009-01-09 13:41:22 +0100 fs r266080 : doc
2009-01-09 13:14:14 +0100 fs r266077 : #i97377# SetModified when order is changed via DnD
2009-01-07 09:55:40 +0100 oj r265951 : merge from master
2009-01-07 09:55:24 +0100 oj r265950 : removed observer
2009-01-07 09:55:06 +0100 oj r265949 : merge from master
2009-01-07 07:29:11 +0100 oj r265945 : shadow var changed
2009-01-06 07:25:57 +0100 oj r265893 : CWS-TOOLING: rebase CWS dba32a to trunk@265758 (milestone: DEV300:m38)
2009-01-05 13:18:22 +0100 oj r265865 : convert to unix le
2009-01-05 09:13:52 +0100 lla r265857 : #i79423# lc_ sc_ permutation fix
2009-01-02 19:40:59 +0100 lla r265847 : #i79423# section shrink icons
2008-12-22 11:37:57 +0100 lla r265749 : #i97484# move component to negative Y-position
2008-12-22 11:37:05 +0100 lla r265748 : #i97484# move component to negative Y-position
2008-12-22 11:35:33 +0100 lla r265747 : #i97484# move component to negative Y-position
2008-12-22 11:25:07 +0100 lla r265745 : #i96757# changes via property browser was not undoable
2008-12-18 15:10:38 +0100 fs r265694 : corrected an condition in doFormListening, which otherwise leads to uncommitable grid columns in documents which are loaded from disc (not in documents which are newly created)
2008-12-18 14:54:39 +0100 fs r265692 : Hide Columns text slightly changed
2008-12-18 13:44:15 +0100 fs r265683 : #i94068# properly display erros happening during a form operation - at least once, and at most once
2008-12-18 11:28:29 +0100 fs r265677 : document the new InputRequired property
2008-12-18 11:04:15 +0100 fs r265676 : #i96530# createControlLabelPair: don't actually create a label for a checkbox
2008-12-18 10:35:53 +0100 fs r265674 : #i95226# when a column is replaced, and it's the selected column, update the selection
2008-12-18 10:34:42 +0100 fs r265673 : #i95226# refactoring of the implReplaced method
2008-12-18 10:34:28 +0100 fs r265672 : #i95226# when replacing a grid column, update the property browser
2008-12-18 10:33:17 +0100 fs r265671 : when an element is removed, remove it from m_aCurrentSelection, too (if necessary)
2008-12-18 10:31:57 +0100 fs r265670 : Hide Columns text slightly changed
2008-12-18 10:15:56 +0100 lla r265669 : #i14538# do not allow to press finish button twice
2008-12-18 08:56:33 +0100 lla r265665 : #i10000# build depend=t problem hacked.
2008-12-17 20:59:10 +0100 fs r265656 : #i89821# don't let a MultiLineEdit select all text when it receives the focus
2008-12-17 12:10:54 +0100 fs r265594 : #i97356#
2008-12-17 12:06:29 +0100 fs r265593 : #i97355# Print -> Printable
2008-12-17 11:59:31 +0100 fs r265591 : #i97350# combo boxes comment on list selection (as list boxes already do)
2008-12-16 09:53:57 +0100 lla r265527 : #i96526# handling none existance default.otr
2008-12-15 14:48:39 +0100 lla r265500 : #i79423# reparing, was wrong implemented
2008-12-12 15:08:33 +0100 lla r265424 : #i10000# remove wrong carridge returns
2008-12-12 15:07:55 +0100 lla r265423 : #i10000# remove wrong carridge returns
2008-12-12 15:06:41 +0100 lla r265422 : #i10000# remove wrong carridge returns
2008-12-12 10:23:13 +0100 lla r265395 : #i95234# reset DragDelta
2008-12-12 10:11:02 +0100 lla r265393 : #i79423# pre versions of shrink buttons
2008-12-11 15:32:13 +0100 fs r265318 : prevent a deadlock during complex.dbaccess.DatabaseDocument test
2008-12-11 15:30:06 +0100 fs r265316 : prevent a deadlock during complex.dbaccess.DatabaseDocument test
2008-12-11 15:07:05 +0100 fs r265307 : removed superfluous text
2008-12-11 12:29:54 +0100 lla r265282 : #i96757# cleanup second try
2008-12-11 12:09:15 +0100 lla r265278 : #i96757# cleanup
2008-12-11 12:07:56 +0100 lla r265277 : #i95234#
2008-12-10 14:04:39 +0100 lla r265183 : #i93472# D&D fixes
2008-12-10 12:29:33 +0100 lla r265168 : #i94067# add (APP|SYS)FONT to XUnitConversion
2008-12-10 12:15:02 +0100 lla r265166 : #i94067# add APPFONT, SYSFONT to MeasureUnit
2008-12-10 11:52:10 +0100 lla r265163 : #i94067# add comments
2008-12-06 20:33:05 +0100 fs r264935 : #i10000# precompiled header
2008-12-05 09:29:26 +0100 fs r264889 : #i10000#
2008-12-05 09:07:31 +0100 fs r264888 : #i10000#
2008-12-04 13:25:46 +0100 fs r264838 : CWS-TOOLING: rebase CWS dba32a to trunk@264807 (milestone: DEV300:m37)
2008-12-03 23:49:13 +0100 fs r264808 : merge changes from trunk, to be able to do a rebase
2008-12-03 17:13:09 +0100 lla r264801 : #i91041# update documentation
2008-12-03 16:57:04 +0100 lla r264799 : #i94067# allow convert(Point|Size)ToLogic as pixel also
2008-12-02 12:36:32 +0100 lla r264687 : #i96782# bring toolbar objects to menu structure
2008-12-02 10:32:44 +0100 lla r264667 : #i86255# make property work
2008-12-02 09:22:47 +0100 lla r264659 : #i79423# add section shrink toolbar
2008-12-02 07:41:22 +0100 lla r264657 : #i86255# add check box for Escape DateTime property
2008-12-02 07:37:17 +0100 lla r264656 : #i79423# new shrink buttons
2008-11-26 11:55:28 +0100 fs r264362 : #i96541#
FillPropertySet: do not only catch UnknownPropertyException when setting the Char/ParaAutoStyleName,
but also care for the other exceptions which can be thrown by XPropertySet::setPropertyValue.
This is actually not the real fix for #i96541#, but only a follow-up. The root cause of the issue
was fixed in CWS dba301b, but this here was another (potential) bug which popped up during investigations.
2008-11-25 09:04:40 +0100 lla r264273 : #i82083# new toolbox in GroupsSorting dialog
2008-11-25 08:56:08 +0100 lla r264272 : #i94729# change token strings into string list, move class out of function
2008-11-24 15:52:22 +0100 fs r264251 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:51:45 +0100 fs r264249 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:45:21 +0100 fs r264244 : #i96532# the API default for ParamNameSubst is false
2008-11-24 15:45:04 +0100 fs r264243 : #i96532# do not set AppendTableAlias, NameLengthLimit, etc., if the OXMLDataSourceInstance is used for elements at which those attributes never appear
2008-11-24 15:44:14 +0100 fs r264241 : #i96532# slight refactoring of exporting properties which have a XML default different from the API default
2008-11-24 10:50:01 +0100 lla r264216 : #i82083# icons for new toolbox
2008-11-24 09:38:45 +0100 lla r264205 : #i82083# new toolbox in GroupsSorting dialog
2008-11-24 09:32:20 +0100 lla r264201 : #i96501# cleanup assertions
2008-11-24 09:12:55 +0100 lla r264198 : #i83082# enhancement for toolboxes, better HC comfort
2008-11-24 08:46:43 +0100 lla r264197 : #i96501# fix problem with negative positions
2008-11-21 11:44:47 +0100 fs r264118 : #i57042# introduce a counter for suspending change notifications of a given property, so recursive calls are possible
2008-11-21 11:02:17 +0100 fs r264116 : #i96388# don't call ExecuteContextMenuAction when no action was chosen by the user
2008-11-21 10:36:53 +0100 fs r264114 : #i47384# assertion was wrong
2008-11-14 12:33:15 +0100 fs r263673 : #i47318# XRowSetChangeBroadcaster/Listener, to be able to listen for changes in an XRowSetSupplier's RowSet
2008-11-14 12:30:29 +0100 fs r263672 : #i47318# more refactoring
- BoundControlModels now listen at the XRowSetSupplier for changes in the supplied
RowSet, to properly revoke/register old/new listeners at the RowSet
- replaced ::osl::Mutex in various places with a ControlModelLock
2008-11-14 12:20:55 +0100 fs r263671 : when BUILD_TYPE includes QADEVOOO, the BUILD_QADEVOOO needs to bet set, too
2008-11-14 12:19:21 +0100 fs r263670 : oops, this was not intended to be committed
2008-11-12 11:08:10 +0100 fs r263579 : #i96096# new ctors taking UNO_QUERY_THROW
2008-11-12 09:15:54 +0100 fs r263576 : no need to load the complete dialog just to get a string which the dialog itself loads from resource
2008-11-10 17:55:45 +0100 fs r263535 : spelling in comment
2008-11-10 15:51:14 +0100 fs r263523 : #i47318# various refactorings
1. don't forward syntetic XLoadListener events from the grid control to
the grid columns. Instead, forward GridColumn::XChild::setParent to
the base class, which then can add itself as load listener
2. removed various occurances of XMultiServiceFactory, instead use the
::comphelper::ComponentContext
3. in O(Bound)ControlModel, have a mechanism to lock the instance (using
ControlModelLock) and fire property changes when the last lock dies.
2008-11-10 12:49:24 +0100 oj r263513 : #i94729# change token strings into string list
2008-11-10 12:13:15 +0100 oj r263512 : #i95222# export chart:title style as well
2008-11-10 08:55:25 +0100 oj r263507 : #i93471# show the correct tabpage when selecting a different object
2008-11-07 23:38:29 +0100 fs r263490 : #i95977# for the event input controls, add a component extending their functionality so they're reset when the users presses DEL
2008-11-07 23:35:39 +0100 fs r263489 : during #i95977#: When a VCL Window is deleted from within VCL code, the respective WindowPeer was never disposed. Corrected this.
2008-11-07 14:57:07 +0100 fs r263420 : #i95963# human-readable display names for event bindings
2008-11-06 10:34:52 +0100 fs r263366 : #i95865# don't use library names containing InvalidZipEntryFileNames - workaround until i95409 is fixed
2008-11-06 10:33:28 +0100 fs r263365 : #i95865#
copied the following change from CWS odfmetadata2 (not yet integrated) into CWS dba31d
- comphelper/inc/comphelper/storagehelper.hxx,
comphelper/source/misc/storagehelper.cxx:
+ add function IsValidZipEntryFileName (moved from module package)
2009-04-22 11:01:27 +00:00
|
|
|
if (eType != mpData->meImageListType)
|
|
|
|
{
|
|
|
|
vcl::IImageListProvider* pImageListProvider = mpData->mpImageListProvider;
|
|
|
|
SetImageList( pImageListProvider->getImageList(eType) );
|
|
|
|
mpData->meImageListType = eType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (com::sun::star::lang::IllegalArgumentException &) {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void ToolBox::SetImageListProvider(vcl::IImageListProvider* _pProvider)
|
|
|
|
{
|
|
|
|
mpData->mpImageListProvider = _pProvider;
|
|
|
|
ImplUpdateImageList();
|
|
|
|
}
|
2005-11-11 16:20:53 +00:00
|
|
|
// -----------------------------------------------------------------------
|
2010-10-14 08:27:31 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|