Commit graph

10577 commits

Author SHA1 Message Date
Frank Schoenheit [fs]
1999b46d09 autorecovery: oops, this variable needs to be available in a pro-build, too ... 2010-02-18 11:38:26 +01:00
Frank Schoenheit [fs]
c7e9a65998 autorecovery: unary_function needs <functional>-inlude on Mac 2010-02-18 11:35:32 +01:00
Frank Schoenheit [fs]
ed2d07f023 Automated merge with ssh://hg@hg.services.openoffice.org/cws/autorecovery 2010-02-16 15:54:36 +01:00
Frank Schoenheit [fs]
b7caadff93 autorecovery: do not show errors when we're recovering the query designer 2010-02-16 15:50:45 +01:00
Frank Schoenheit [fs]
c6b2dff376 autorecovery: recover non-document sub compontns hidden, too 2010-02-16 15:43:53 +01:00
Frank Schoenheit [fs]
110b7db42f autorecovery: do the recovery in setCurrentController, not in connectController - this ensures all knittings, in particular between controller and frame, already happened 2010-02-16 15:31:07 +01:00
Frank Schoenheit [fs]
155487cc3f autorecovery: recover query designer settings
not yet finished:
- query designer needs to be loaded hidden, and shown when the main window is shown
- recovering table windows is not correct, yet (windows which have been added to the UI,
  but do not yet add to the "latest known" statement, are not restored (probably)
- closing the recovered, and modified, query designer somehow does not ask for saving
2010-02-16 15:21:07 +01:00
Frank Schoenheit [fs]
44ce7ccd50 autorecovery: import query design settings (but do not recover the query designer) 2010-02-16 12:29:05 +01:00
Frank Schoenheit [fs]
cda5b4e389 autorecovery: remove unused local static method 2010-02-16 12:04:36 +01:00
Frank Schoenheit [fs]
eb79829c17 autorecovery: outsourced the SubComponentRecovery class into a dedicated file, in preparation of recovering query designs 2010-02-16 09:43:10 +01:00
Frank Schoenheit [fs]
a1c40ed088 autorecovery: fixed member initialization order 2010-02-16 08:55:52 +01:00
Frank Schoenheit [fs]
2cf0840f4c autorecovery: clarified the role of a doc's URL/Location
as per agreement with MAV, XModel::getURL and XStorable::getLocation both need to return the logical document
URL, even when the document has been recoved from another location.
So, the DocFileLocation of the ModelImpl now is for internal purpose only. Consequently, ModelImpl's API has
been reworked to better differ between the logical and the "loaded-from" URL of the document.
2010-02-15 16:05:58 +01:00
Frank Schoenheit [fs]
9f3c1db59a Automated merge with ssh://hg@hg.services.openoffice.org/cws/autorecovery 2010-02-15 14:49:12 +01:00
Frank Schoenheit [fs]
009ab0e803 autorecovery: when saving recovery information for a DB doc, export query designers, too 2010-02-15 14:34:48 +01:00
Frank Schoenheit [fs]
e2f368bccc Automated merge with ssh://hg@hg.services.openoffice.org/cws/autorecovery 2010-02-10 15:11:19 +01:00
Frank Schoenheit [fs]
d0e69d3280 merge 2010-02-10 14:17:11 +01:00
Frank Schoenheit [fs]
f4ba6a7591 autorecovery: let the SingleDocController, and derived classes, support XModifiable 2010-02-10 14:05:19 +01:00
Ocke Janssen [oj]
66a73b89df Automated merge with http://hg.services.openoffice.org/cws/dba33e 2010-02-10 13:13:37 +01:00
Ocke Janssen [oj]
0c2bd96304 dba33e: #i107717# some renaming and wording changed 2010-02-10 13:09:56 +01:00
Ocke Janssen [oj]
02df552c45 dba33e: #i107717# some renaming and wording changed 2010-02-10 13:08:22 +01:00
Frank Schoenheit [fs]
4f8f578855 autorecovery: when saving to a new location, dispose the forms/reports container after disposing the storages they're based on 2010-02-10 11:29:34 +01:00
Ocke Janssen [oj]
c7f5a15eb8 dba33f: #i102366# parse function as predicate 2010-02-10 10:50:53 +01:00
Ocke Janssen [oj]
72285cf677 dba33e: fix not operator 2010-02-10 09:44:20 +01:00
Frank Schoenheit [fs]
876b084e80 autorecovery: corrected assertion 2010-02-09 23:46:32 +01:00
Frank Schoenheit [fs]
ce04ad4d2a autorecovery: disposing; be prepared for disposal of a not-yet-fully-constructed instance (happens e.g. when throwing during initialization) 2010-02-09 23:13:41 +01:00
Frank Schoenheit [fs]
5f0d3499f0 autorecovery: GetDocumentServiceFromMediaType: try alternative, seemingly equivalent approach 2010-02-09 23:12:40 +01:00
Frank Schoenheit [fs]
d8352bc6e0 autorecovery: make m_pView a private member of the GenericController, with defined access methods 2010-02-09 17:26:40 +01:00
Frank Schoenheit [fs]
05e2a9183c autorecovery: do not hold another member pointing to m_pView, this is crash-prone in case of the base class deleting it (e.g. when initialization throws an exception) 2010-02-09 15:35:48 +01:00
Frank Schoenheit [fs]
56cc145c6e autorecovery: allow for a human-readable DocumentServiceName instead of this strange class ID when creating a document definition 2010-02-05 22:03:01 +01:00
Frank Schoenheit [fs]
e35642d963 autorecovery: merge 2010-02-05 14:11:11 +01:00
Frank Schoenheit [fs]
bc49437f5f autorecovery: post-rebase conflicts solved (namespace tools is ambiguous now) 2010-02-05 14:07:26 +01:00
Frank Schoenheit [fs]
2ebfb85c07 autorecovery: merge 2010-02-05 12:21:39 +01:00
Frank Schoenheit [fs]
00684a716b autorecovery: merge 2010-02-05 11:15:42 +01:00
Frank Schoenheit [fs]
e00e609de1 autorecovery: merge after pulling CWS dba33e 2010-02-05 11:15:32 +01:00
Frank Schoenheit [fs]
abb51ede00 autorecovery: derive XReportDefinition from XModifiable2, extending XModifiable 2010-02-04 22:49:44 +01:00
Frank Schoenheit [fs]
538e41ebb4 autorecovery: form and report wizzard now also using XDatabaseDocumentUI, instead of manipulating document definitions
All database object wizards by now employ XDatabaseDocumentUI. This way, it is ensured that the controller
has the full control over the opened sub components.

Still, other third-party code could use direct access to the document definitions, and open sub documents this way.
This would go unnoticed by the application controller at the moment. I would be possible to fix this, by introducing
broadcasts from the document definitions, listened to by the controller. But as this sounds like a rare case, and
XDatabaseDocumentUI is the preferred way for third-party components, too, such an implementation is deferred to Later ...
2010-02-04 16:04:06 +01:00
Frank Schoenheit [fs]
4831a67ec5 autorecovery: need to lock the SolarMutex when disposing, some of the dependent components might need this when they die 2010-02-04 16:03:51 +01:00
Frank Schoenheit [fs]
500131391f autorecovery: post-rebase build problems solved 2010-02-04 14:13:58 +01:00
Frank Schoenheit [fs]
1265c7385c autorecovery: commit resolved merge (after rebase to m71) 2010-02-04 10:38:39 +01:00
Ocke Janssen [oj]
d07526bb47 Merge from DEv300:m71 2010-02-04 09:18:33 +01:00
Frank Schoenheit [fs]
ed853a88ff autorecovery: re-work the table wizard so that it does not open the table itself, but uses XDatabaseDocumentUI
Consequently, it does not need to return the created model/controller anymore. This way, the application controller
has full control over its sub components, which didn't work reliably before.

Other wizards (query/form/report) are to follow. For this purpose, they're also to be based on the newly introduced
DatabaseObjectWizard class.
2010-02-03 11:52:40 +01:00
Frank Schoenheit [fs]
28b38d73e5 autorecovery: when calling a pilot to create a database object, pass the XDatabaseDocumentUI, too 2010-02-03 11:46:23 +01:00
Frank Schoenheit [fs]
aefb13e5d8 autorecovery: when creating a new form/report by wizard, ensure that our sub component manager knows it by its proper name 2010-02-02 23:05:43 +01:00
Frank Schoenheit [fs]
7de2856ae1 autorecovery: let definition contents support the XHierarchicalName property, so clients can easily retrieve the hierarchical name of a content 2010-02-02 23:05:16 +01:00
Frank Schoenheit [fs]
7af941376a autorecovery: allow the sub component manager to hold multiple objects of the same type, which are new and yet-unsaved (i.e. do not have a name, yet) 2010-02-02 13:57:03 +01:00
Frank Schoenheit [fs]
25d5251771 autorecovery: execute(open*): do not call getComponent just for checking whether it is a report definition, this implicitly changes the state of the embedded object, which can have side effects 2010-02-02 13:53:13 +01:00
Frank Schoenheit [fs]
2d3fb08873 autorecovery: (caught by complex test) store: when we do not (yet) have an URL, store to storage, not to URL 2010-02-02 10:49:34 +01:00
Frank Schoenheit [fs]
51d6afeb37 autorecovery: this slipped through my previous attempt to replace all instantiations of the deprecated sdb.InteractionHandler with task.InteractionHandler 2010-02-02 10:12:38 +01:00
Frank Schoenheit [fs]
13e8f2a69b autorecovery: more sophisticated configuration data for interaction handlers
The generic css.task.InteractionHandler implementation in module uui is now able to instantiate "sub handlers", i.e.
components to delegate a request to, based on the type of the request, and some configuration data.

The "old" (and now deprecated) configuration scheme at org.openoffice.ucb.InteractionHandler did not contain type
information, so any handlers registered there were always called when no default implementation for a given request
was available.

The "new" configuration scheme at org.openoffice.Interaction contains UNO type information. That is, a given handler
implementation can declare itself responsible for an arbitrary set of UNO types, and for each of those types, whether
it is also responsible for sub types.
The generic interaction handler implementation uses this configuration data, when it encounteres an interaction
request it cannot fullfill itself, to instantiate a component to delegate the request to.

As with the "old" data, such a component is required to support the css.task.XInteractionHandler2 interface. Also,
if it supports css.lang.XInitialization, then it will be initialized with a name-value pair, the name being
"Parent", the value being the XWindow interface of the parent window for any message boxes.

As an examplary implementation for this feature, the css.sdb.InteractionHandler has been deprecated. Now the
css.sdb.DatabaseInteractionHandler is reponsible for database-related interactions, and the new configuration scheme
is pre-filled with data assigning this responsibility.

Consequently, a lot of places previously creating an css.sdb.InteractionHandler have been modified to create the
default css.task.InteractionHandler.
2010-02-01 21:32:33 +01:00
Frank Schoenheit [fs]
02c9c9960f autorecovery: recoverSubDocuments: propagate exceptions to the caller, this way aborting the complete recovery process 2010-02-01 11:43:40 +01:00