Commit Graph

176 Commits

Author SHA1 Message Date
Michael Stahl
50c0114c66 undoapi: UndoCore.hxx: split out UndoInsert.hxx 2010-12-15 09:14:17 +01:00
Michael Stahl
b16214b411 undoapi: UndoCore.hxx: split out UndoTable.hxx 2010-12-15 09:14:15 +01:00
Michael Stahl
5ba8f48555 undoapi: move most of inc/undobj.hxx to source/core/inc/UndoCore.hxx 2010-12-15 09:14:14 +01:00
Michael Stahl
1ba0c18781 undoapi: #i115383#: derive sw::UndoManager from SfxUndoManager:
derive SwUndo from SfxUndoAction.
 throw away most of docundo.cxx.
 throw away SwUndoStart and SwUndoEnd.
 replace SwUndoIter with sw::UndoRedoContext and sw::RepeatContext.
 SwUndo::GetId() no longer public to prevent abuse.
 add SwEditShell::HandleUndoRedoContext().
2010-12-15 09:14:11 +01:00
Michael Stahl
8e7d7f0e14 undoapi: #i115383#: change return type of GetLastUndoInfo() to bool:
unfortunately several places need the ID, so add the ID as an out parameter.
 a bool return is necessary in case the Undo action is not a writer action,
  but created via the undo API.
2010-12-15 09:14:08 +01:00
Michael Stahl
d97bce1d29 undoapi: #i115383#: replace SwUndo->GetId() + static_cast with dynamic_cast:
the static_cast would become dangerous with SfxUndoManager.
 also fix bogus cast in SwUndoTblCpyTbl::Undo(): happened to work by accident.
2010-12-15 09:14:07 +01:00
Michael Stahl
44b1216c8f undoapi: #i115383#: split up IDocumentUndoRedo::Get{Undo,Redo}Ids():
remove class SwUndoIdAndName and associated pointer abuse.
 split up IDocumentUndoRedo::Get{Undo,Redo}Ids():
  Get{LastUndo,FirstRedo,Repeat}Info() return string and ID for current action.
  Get{Undo,Redo}Comments() return all Undo/Redo comments.
 adapt SwEditShell interface as well.
2010-12-15 09:14:02 +01:00
Michael Stahl
1abef5bf64 undoapi: SwNodes: remove obsolete operator[](SwNodeIndex&) 2010-12-15 09:13:59 +01:00
Michael Stahl
6279f8cb40 unodapi: #i115383#: move RemoveInvisibleContent() from UndoManager to SwDoc. 2010-11-25 14:31:11 +01:00
Michael Stahl
d074d7b7a9 unodapi: #i115383#: IDocumentUndoRedo: clean up unmodified position:
replace {get,set}UndoNoModifiedPosition with {,Un}LockUndoNoModifiedPosition()
 for preserving it across SaveAs, and SetUndoNoModifiedPosition() for use
 by SwDoc::SetModified().
2010-11-25 14:31:10 +01:00
Michael Stahl
56d8fb7501 unodapi: #i114888#: sw: clean up some more, using sw::UndoGuard.
note: some of this relies on ClearRedo() not checking DoesUndo().
2010-11-25 14:31:10 +01:00
Michael Stahl
c8c50a05e2 unodapi: #i115383#: clean up ClearRedo() usage:
ClearRedo() is already called by AppendUndo():
     remove superfluous calls of ClearRedo.
 implementation of ClearRedo() should not check DoesUndo();
     that seems kinda pointless, and creates difficulties for refactoring.
2010-11-25 14:31:09 +01:00
Michael Stahl
3145216b7e unodapi: #i115383#: SwDoc:
remove the forwarding implementation of IDocumentUndoRedo from SwDoc.
 instead call the UndoManager directly, via SwDoc::GetIDocumentUndoRedo().
2010-11-25 14:31:08 +01:00
Michael Stahl
89071dd67b unodapi: #i115383#: new sw::UndoManager:
new header UndoManager.hxx, new class sw::UndoManager.
 UndoManager implements the IDocumentUndoRedo interface.
 SwDoc has UndoManager member, and forwards IDocumentUndoRedo calls.
2010-11-25 14:31:07 +01:00
Vladimir Glazunov
f1dc19695c CWS-TOOLING: integrate CWS tlmath01 2010-11-16 13:49:31 +01:00
Vladimir Glazunov
cc64c92439 #i10000# changes from OOO330 m14 2010-11-09 14:49:47 +01:00
Vladimir Glazunov
55046b9ead CWS-TOOLING: integrate CWS os143 2010-11-08 17:39:47 +01:00
Thomas Lange [tl]
8c772e386c cws tlmath01: merge with DEV300_m92 2010-11-05 09:37:44 +01:00
Thomas Lange [tl]
efc013d327 cws tlmath01: #i972# Math baseline alignment 2010-11-03 15:50:00 +01:00
Thomas Lange [tl]
db9a72630b cws tl88: #i115354# crash when opening File/Print dialog fixed 2010-11-03 14:59:06 +01:00
os
481d76f6ba unused variables removed 2010-11-03 08:22:33 +01:00
Vladimir Glazunov
de31797d64 CWS-TOOLING: integrate CWS sw34refactor1 2010-11-01 17:05:03 +01:00
Vladimir Glazunov
7c398ce064 CWS-TOOLING: integrate CWS sw34bf01 2010-11-01 16:49:08 +01:00
os
78025b3f49 rebase to m91 2010-11-01 10:25:54 +01:00
Michael Stahl
8485708f30 sw34bf01: #i85766# #i112425#: prevent expansion of fields in actual documents:
because various fields only expand to correct values with "special handling"
 that is only done in text formatting, use the clipboard value cache even in
 _real_ documents.
2010-10-22 17:53:18 +02:00
Bartosz Kosiorek
19101671ab svarray: merge with DEV300 m90 2010-10-20 22:48:22 +02:00
Bartosz Kosiorek
09bc02adba svarray: #i112395# #i84159# increase max number of pools to 2^32 2010-10-18 22:00:21 +02:00
os
3d5ad5eea7 m89 merged 2010-10-05 14:50:49 +02:00
os
c7ecdf195b new: HasInvisibleContent; fixed: EmbedAllLinks 2010-10-05 09:39:37 +02:00
Michael Stahl
e5c582e991 merge DEV300_m89 2010-10-04 18:09:56 +02:00
Michael Stahl
f7c044dd30 sw34bf01: #i85766# #i112425#: prevent expansion of fields in temp documents:
SwField subclasses: make Expand()/Copy() methods private, like in SwField.
 SwField+subclasses: replace method GetCntnt(BOOL) with GetFieldName().
 SwTblField: refactor Expand() and GetCntnt(BOOL): create new private method.
2010-10-04 17:14:34 +02:00
Michael Stahl
23e016cb1b merge DEV300_m89 2010-10-04 16:47:00 +02:00
Michael Stahl
5104cfc4b3 sw34refactor1: remove obsolete (due to printer refactoring) class SwPrtOptions:
remove SwPrtOptions instances with SwPrintData.
 replace SwPrtOptions::MakeOptions() with sw::InitPrintOptionsFromApplication().
 move some constants from swprtopt.hxx to printdata.hxx.
 remove swprtopt.hxx.
2010-09-30 16:03:07 +02:00
Vladimir Glazunov
44639c847a #i10000# changes from OOO330 m9 2010-09-28 16:59:46 +02:00
Oliver-Rainer Wittmann
2093818a3e sw33bf09: #i114210# method <SwXTextDocument::getRenderer(..)> - correct determination of page number from renderer index 2010-09-07 15:23:10 +02:00
Vladimir Glazunov
3d341c8efb CWS-TOOLING: integrate CWS codecleanup02 2010-08-25 17:21:42 +02:00
Vladimir Glazunov
84ba099989 DEV300: merge 000330 till r. b727f1beb700 2010-08-25 15:47:38 +02:00
Daniel Rentz
f2562cf302 mib17: #i112634# API changes 2010-07-12 11:17:00 +02:00
Daniel Rentz
fc135411fa mib17: #i112634# add VBA sheet event handling, based on a patch from Noel Power 2010-07-06 19:34:53 +02:00
Malte Timmermann
f62a5373f0 codecleanup02: #i112685# Removed ifdefs and code for WIN,W30,W31 2010-06-25 13:15:03 +02:00
Ivo Hinkelmann
3bd3fc177e CWS-TOOLING: integrate CWS dba33f 2010-06-04 14:23:34 +02:00
Michael Stahl
ec28d2f4aa merge DEV300_m77 2010-04-28 17:52:28 +02:00
Jens-Heiner Rechtien
b812217fb9 DEV300 masterfix: #i10000#: fix include because SvxPaperBinItem has been moved to editeng 2010-04-20 15:45:53 +02:00
Frank Schoenheit [fs]
a0d0dd7ae3 dba33f: merge with m76-branch 2010-04-16 13:55:24 +02:00
Michael Stahl
99a588660b odfmetadata4: #i109599#: remove SwSection::operator=():
move most SwSection members to new class SwSectionData.
 replace evil SwSection::operator=() with SwSection::SetSectionData().
 various method signatures changed to take SwSectionData parameter.
 rename SwDoc::ChgSection() to UpdateSection().
 SwUnodo{Ins,Chg,Del}Section: adapt to store SwSectionData/SwTOXBase.
 regionsw.hxx: SectRepr: change SwSection member to SwSectionData.
2010-03-16 11:28:30 +01:00
Jens-Heiner Rechtien
ab03b13fb4 CWS-TOOLING: integrate CWS ppp02 2010-04-12 18:21:12 +02:00
Philipp Lohmann [pl]
c912bb3103 fix a warning 2010-02-26 14:17:40 +01:00
Frank Schoenheit [fs]
ce44f513aa dba33f: #i108712# setPrinter: always set MAP_TWIP 2010-02-26 12:10:25 +01:00
Thomas Lange [tl]
25c6bec2ac cws ppp02: merge 2010-02-23 16:15:38 +01:00
Thomas Lange [tl]
2f5d3df4f2 #i103700# empty pages and 'print selection' 2010-02-23 15:57:52 +01:00