Commit graph

28996 commits

Author SHA1 Message Date
Michael Stahl
35933081fd swunolocking1: fix regression:
SwXParagraphEnumeration constructor really needs the start node as a
 parameter because determining it from the cursor cannot work in nested tables.
2010-01-22 19:07:50 +01:00
Michael Stahl
85bd4fb7e1 swunolocking1: #i108489#: fix crash:
XTextRangeToSwPaM(): do not prematurely release newly created text cursor.
 SwXTextViewCursor::gotoRange(): do not throw IllegalArgumentException.
2010-01-20 16:59:56 +01:00
Michael Stahl
c93ddde381 swunolocking1: #i107771#: SwXDocumentIndexMark:
register at SwTOXMark instead of UnoCallBack.
 implement instance caching with a WeakReference in SwTOXMark.
 [the ODF export depends on caching: see XMLIndexMarkExport::GetID()]
2010-01-08 17:14:00 +01:00
Michael Stahl
82aba30102 swunolocking1: #i105557#: remove class SwUnoCallBack.
everything SwUnoCallBack class does has unfixable race conditions.
 in SwDoc, the uno callback is now a plain SwModify.
2010-01-08 17:13:59 +01:00
Michael Stahl
fb0dd0d206 swunolocking1: #i105557#: fix locking for SwXDocumentIndexMark:
add Impl struct, and use UnoImplPtr to lock destructor.
 move all implementation details out of header, into Impl struct.
 disable broken SwClient iteration.
 make constructor private, and add factory function CreateXDocumentIndexMark.
 use new XUnoTunnel helpers.
 clean up the implementation a little.
 remove SwXDocumentIndexMark::GetObject().
2010-01-08 17:13:59 +01:00
Michael Stahl
f3dca2c04f swunolocking1: #i105557#: SwXDocumentIndexes:
use new XServiceInfo helpers.
 clean up the implementation a little.
2010-01-08 17:13:59 +01:00
Michael Stahl
342e7b53a4 swunolocking1: #i105557#: move SwXDocumentIndex helper classes out of header.
use new XUnoTunnel and XServiceInfo helpers.
 clean up the implementation a little.
2010-01-08 17:13:58 +01:00
Michael Stahl
399fb822ef swunolocking1: #i105557#: fix locking for SwXDocumentIndex:
add Impl struct, and use UnoImplPtr to lock destructor.
 move all implementation details out of header, into Impl struct.
 replace broken SwClient iteration with a WeakReference in SwFrmFmt.
 make constructor private, and add factory function CreateXDocumentIndex.
 use new XUnoTunnel helpers.
 clean up the implementation a little.
 remove SwXDocumentIndexes::GetObject().
2010-01-08 17:13:58 +01:00
Michael Stahl
1f70baf3d1 swunolocking1: #i105557#: fix locking for SwXFootnote:
add Impl struct, and use UnoImplPtr to lock destructor.
 move all implementation details out of header, into Impl struct.
 disable broken SwClient iteration.
 make constructor protected, and add factory function CreateXFootnote.
 use new XUnoTunnel and XServiceInfo helpers.
 clean up the implementation a little.
2010-01-08 17:13:58 +01:00
Michael Stahl
069dead98a swunolocking1: #i105557#: fix locking for SwXHeadFootText:
add Impl struct, and use UnoImplPtr to lock destructor.
 move all implementation details out of header, into Impl struct.
 replace broken SwClient iteration with a WeakReference in SwFrmFmt.
 make constructor protected, and add factory function CreateXHeadFootText.
 use new XUnoTunnel and XServiceInfo helpers.
 clean up the implementation a little.
2010-01-08 17:13:57 +01:00
Michael Stahl
3356582b67 swunolocking1: #i105557#: fix locking for SwXBodyText:
use new XServiceInfo helpers.
 clean up the implementation a little.
2010-01-08 17:13:56 +01:00
Michael Stahl
150d65d311 swunolocking1: #i105557#: clean up implementation of SwXText::convertToTable(). 2010-01-08 17:13:56 +01:00
Michael Stahl
817e682f25 swunolocking1: #i105557#: fix locking for SwXText:
add Impl struct, and use UnoImplPtr to lock destructor.
 move all implementation details out of header, into Impl struct.
 use new XUnoTunnel and XServiceInfo helpers.
 clean up the implementation a little.
2010-01-08 17:13:56 +01:00
Michael Stahl
456e9d587f swunolocking1: #i105557#: SwXTextCursor:
add Impl struct, and use UnoImplPtr to lock destructor.
 move all implementation details out of header, into Impl struct.
 remove ugly destruction of SwUnoCrsr via Application::PostUserEvent.
 use new XUnoTunnel and XServiceInfo helpers.
 clean up the implementation a little.
2010-01-08 17:13:55 +01:00
Michael Stahl
8b1fb77c76 swunolocking1: #i105557#: SwXBodyText:
make SwXBodyText::CreateTextCursor() return a pointer, not a UNO reference.
2010-01-08 17:13:55 +01:00
Michael Stahl
2db8914dbe swunolocking1: #i105557#: SwXParagraph: move static methods to namespace sw. 2010-01-08 17:13:55 +01:00
Michael Stahl
aa16ebadc7 swunolocking1: #i105557#: SwXTextCursor:
move enum SwGetPropertyStatesCaller to unocrsrhelper.hxx.
 move static methods of SwXTextCursor to namespace SwUnoCursorHelper.
 move various not-actually-local functions with declarations in multiple
    cxx files to namespace SwUnoCursorHelper.
 clean up the implementation a little.
2010-01-08 17:13:54 +01:00
Michael Stahl
2245100b4a swunolocking1: #i105557#: SwXTextCursor:
move implementation of all non-static methods into unoobj.cxx.
2010-01-08 17:13:54 +01:00
Michael Stahl
0a3b5f8b3e swunolocking1: #i105557#: fix locking for SwXParaFrameEnumeration:
add Impl struct, and use UnoImplPtr to lock destructor.
 move all implementation details out of header, into Impl struct.
 replace PARAFRAME_PORTION_ macros with an enum.
 use new XServiceInfo helpers.
 clean up the implementation a little.
2010-01-08 17:13:54 +01:00
Michael Stahl
5d6da5c1f7 swunolocking1: #i105557#: SwXTextRange:
move static methods to namespace sw.
 clean up the implementation a little.
2010-01-08 17:13:53 +01:00
Michael Stahl
1f8d8b1e17 swunolocking1: #i105557#: fix locking for SwXTextRange:
add Impl struct, and use UnoImplPtr to lock destructor.
 move all implementation details out of header, into Impl struct.
 use new XUnoTunnel and XServiceInfo helpers.
 clean up the implementation a little.
2010-01-08 17:13:52 +01:00
Michael Stahl
220dc1e003 swunolocking1: #i105557#: SwXTextRange:
try to hide the implementation detail that SwXTextRange registers at a
 bookmark from its clients by using SwXTextRange::GetPositions().
2010-01-08 17:13:52 +01:00
Michael Stahl
30bfe9b171 swunolocking1: #i105557#: fix locking for SwXTextRanges:
add Impl struct, and use UnoImplPtr to lock destructor.
 move all implementation details out of header, into Impl struct.
 use new XServiceInfo helpers.
 replace SvWeirdArray with STL vector.
 clean up the implementation a little.
2010-01-08 17:13:51 +01:00
Michael Stahl
2fee7963e9 swunolocking1: #i105557#: fix locking for SwXTextSection:
replace SwXTextSectionClient with Impl struct, use UnoImplPtr to lock dtor.
 move all implementation details out of header, into Impl struct.
 remove ugly destruction of SwUnoCrsr via Application::PostUserEvent.
 replace broken SwClient iteration with a WeakReference in SwSectionFmt.
 add factory function CreateXTextSection.
 use new XUnoTunnel and XServiceInfo helpers.
 clean up the implementation a little.
2010-01-08 17:13:51 +01:00
Michael Stahl
77ca8486db swunolocking1: #i105557#: fix locking for SwXParagraphEnumeration:
add Impl struct, and use UnoImplPtr to lock destructor.
 move all implementation details out of header, into Impl struct.
 use new XServiceInfo helpers.
 clean up the implementation a little.
2010-01-08 17:13:51 +01:00
Michael Stahl
ee9d6d3095 swunolocking1: #i105557#: fix locking for SwXParagraph:
add Impl struct, and use UnoImplPtr to lock destructor.
 move all implementation details out of header, into Impl struct.
 make SwXParagraph instances reusable with a WeakReference in SwTxtNode.
 make constructor private, and add factory function CreateXParagraph.
 use new XUnoTunnel and XServiceInfo helpers.
 clean up the implementation a little.
2010-01-08 17:13:50 +01:00
Michael Stahl
440e521dad swunolocking1: #i105557#: fix locking for SwXBookmark:
add Impl struct, and use UnoImplPtr to lock destructor.
 move all implementation details out of header, into Impl struct.
 replace broken SwClient iteration with a WeakReference in sw::mark::MarkBase.
 make constructor protected, and add factory function CreateXBookmark.
 use new XUnoTunnel and XServiceInfo helpers.
 clean up the implementation a little.
 remove SwXBookmarks::GetObject().
2010-01-08 17:13:50 +01:00
Michael Stahl
faf50e31a9 swunolocking1: #i105557#: fix locking for SwXReferenceMark:
add Impl struct, and use UnoImplPtr to lock destructor.
 move all implementation details out of header, into Impl struct.
 disable broken SwClient iteration.
 add factory function CreateXReferenceMark.
 use new XUnoTunnel and XServiceInfo helpers.
 clean up the implementation a little.
2010-01-08 17:13:49 +01:00
Michael Stahl
dd567990b4 swunolocking1: #i105557#: fix locking for SwXMeta:
move SwClient base to pImpl struct, and use UnoImplPtr to lock destructor.
 replace broken SwClient iteration with a WeakReference in sw::Meta.
 make constructor protected, and add factory function CreateXMeta.
 use new XUnoTunnel and XServiceInfo helpers.
2010-01-08 17:13:49 +01:00
Michael Stahl
e9ca667fa6 swunolocking1: refactor Meta registration at its text node.
Meta will now be registered via SwTxtMeta::ChgTxtNode(), with additional
 workarounds necessary in SwFmtMeta::DoCopy().
2010-01-08 17:13:49 +01:00
Michael Stahl
6e3f9b6a9a swunolocking1: #i105557#: unobaseclass.hxx: add XServiceInfo helpers:
new functions GetSupportedServiceNamesImpl and SupportsServiceImpl.
2010-01-08 17:13:48 +01:00
Michael Stahl
a22723dc62 swunolocking1: #i105557#: unobaseclass.hxx: add UnoTunnel helpers:
new template UnoTunnelImpl to implement XUnoTunnel::getSomething().
 new template UnoTunnelGetImplementation to use XUnoTunnel::getSomething().
2010-01-08 17:13:48 +01:00
Michael Stahl
5e8eac4449 swunolocking1: #i105557#: unobaseclass.hxx: add UnoImplPtr:
new smart pointer template UnoImplPtr: calls dtor with SolarMutex locked.
2010-01-08 17:13:47 +01:00
Michael Stahl
4f555e6d54 swunolocking1: #i105557#: remove unoobj.hxx 2010-01-05 16:37:49 +01:00
Michael Stahl
7e156d00e9 swunolocking1: #i105557#: unoobj.hxx: move misc stuff:
move GetPageDescByName_Impl from unoobj.hxx to pagedesc.hxx.
 move UnoActionContext, UnoActionRemoveContext, ClientModify,
  CreateUnoTunnelId from unoobj.hxx to unobaseclass.hxx.
 move UnoActionContext, UnoActionRemoveContext from unoobj.cxx to unoobj2.cxx.
2010-01-05 16:37:49 +01:00
Michael Stahl
80c54710e6 swunolocking1: #i105557#: unoobj.hxx: split out unoparaframeenum.hxx:
move SwXParaFrameEnumeration from unoobj.hxx to new unoparaframeenum.hxx.
 move FrameDependSortList_t, CollectFrameAtNode to unoparaframeenum.hxx.
2010-01-05 16:37:47 +01:00
Michael Stahl
a6b34b60ba swunolocking1: #i105557#: unoobj.hxx: split out unotext.hxx etc.:
move SwXText from unoobj.hxx to new unotext.hxx.
 move SwXBodyText, SwXHeadFootText from unoobj.hxx to new unotextbodyhf.hxx.
 move SwXFootnote from unoobj.hxx to new unofootnote.hxx.
2010-01-05 16:37:47 +01:00
Michael Stahl
e23c9ccd3e swunolocking1: #i105557#: unoobj.hxx: split out unotextrange.hxx:
move SwXTextRange, SwXTextRanges from unoobj.hxx to new unotextrange.hxx.
 move SwUnoInternalPaM to unotextrange.hxx.
2010-01-05 16:37:46 +01:00
Michael Stahl
3d404991d5 swunolocking1: #i105557#: unoobj.hxx: split out unotextcursor.hxx:
move SwXTextCursor from unoobj.hxx to new unotextcursor.hxx.
 move enum SwGetPropertyStatesCaller to unotextcursor.hxx.
2010-01-05 16:37:45 +01:00
Michael Stahl
a04b8cd2ad swunolocking1: #i105557#: unoobj.hxx: split out unosection.hxx:
move SwXTextSection from unoobj.hxx to new unosection.hxx.
2010-01-05 16:37:44 +01:00
Michael Stahl
af7ef16cd1 swunolocking1: #i105557#: unoobj.hxx: split out unoparagraph.hxx:
move SwXParagraph{,Enumeration} from unoobj.hxx to new unoparagraph.hxx.
 move enum CursorType to unobaseclass.hxx.
2010-01-05 16:37:44 +01:00
Michael Stahl
a36e10b374 swunolocking1: #i105557#: unoobj.hxx: split out unobookmark.hxx:
move SwXBookmark, SwXFieldmark from unoobj.hxx to new unobookmark.hxx.
2010-01-05 16:37:43 +01:00
Michael Stahl
37dee57c4d swunolocking1: #i105557#: unoobj.hxx: split out unorefmark.hxx:
move SwXReferenceMark from unoobj.hxx to new unorefmark.hxx.
2010-01-05 16:37:43 +01:00
Michael Stahl
92bbc112a2 swunolocking1: #i105557#: remove unnecessary includes of unoobj.hxx 2010-01-05 16:37:42 +01:00
Michael Stahl
c00fbf426f swunolocking1: swtable.hxx: SwTable::FindTable() takes a const parameter 2010-01-05 16:37:42 +01:00
Michael Stahl
eb13385340 swunolocking1: calbck.hxx: SwClientIter constructor takes a const& parameter 2010-01-05 16:37:42 +01:00
Michael Stahl
733b831970 swunolocking1: swtypes.hxx: rename frame anchor types
enum RndStdIds: rename frame anchor types (FLY_*) to be more intuitive.
 [note the completely ridiculous number of files that care about anchor types]
2010-01-05 16:37:41 +01:00
Michael Stahl
c941bb6a75 swunolocking1: #i106930#: thints.cxx: tweak isNestedAny() a bit
with the fix for i106930, inserting a nesting hint without extent never
 overrides an existing hint; but overriding is actually desirable in the
 corner case where the existing hint is _also_ empty.
 [the unoapi test sw.SwXTextTableCursor relies on this]
2010-01-05 16:37:36 +01:00
Michael Stahl
4bbfefa5fd swunolocking1: #i107171#: fix crash caused by SwXParagraph::attachToText():
register at the text node, not at an uno cursor.
2010-01-05 16:37:36 +01:00
Kurt Zenker
b4c4d7ac0a CWS-TOOLING: integrate CWS sw32bf08_DEV300 2009-12-04 18:58:15 +01:00