Commit Graph

27091 Commits

Author SHA1 Message Date
Michael Stahl
b6828ca162 rhbz#680365: SwRenderData: do not store SwPageFrm*
Currently when printing via SwXTextDocument::getRendererCount()
two STL containers in class SwRenderData are filled with bare pointers
to page frames from the layout.
These pointers are then used by SwXTextDocument::render(), which takes
one page out of the map and prints it via this non-ref-counted pointer.

This bizarre design will not be tolerated; instead, when printing a page,
iterate over SwRootFrm::GetLower() until the requested page is found.
This is slower, i.e. O(n^2), but at least it does not crash.
2011-10-28 17:33:43 +02:00
Michael Stahl
96be522e79 remove pointless SfxBaseModel::setDocumentProperties() 2011-10-28 17:33:42 +02:00
Caolán McNamara
ea95d600de check for invalidated item with IsInvalidItem 2011-10-28 12:29:30 +01:00
Caolán McNamara
bfef1510c1 ditch some ByteStrings 2011-10-28 10:23:00 +01:00
Harri Pitkänen
89b3820c7b Export blinking text attribute to HTML in all HTML export modes
Previously blinking was not exported in IE mode. IE still does not
support blinking (neither does Chrome or Safari) but the extra tag
does not make things any worse and allows importing the HTML back
to LibreOffice without loss of formatting.

Code is also simplified by removing conditionals for options that
no longer need to be disabled.
2011-10-28 10:07:17 +01:00
Philipp Weissenbacher
d1932bfb76 Translate German comments 2011-10-27 20:18:05 -05:00
Caolán McNamara
3852a6f548 ByteString->rtl::OString 2011-10-27 22:02:58 +01:00
Stephan Bergmann
3afa389d61 Added clarifying comment. 2011-10-26 16:21:57 +02:00
Tor Lillqvist
2998604bda Make OSL_ENSURE explanation text match the test 2011-10-26 10:48:33 +03:00
Tor Lillqvist
5669a82f09 WaE: '%' : unrecognized character escape sequence 2011-10-26 10:46:20 +03:00
Tor Lillqvist
aafc761738 WaE: default constructor could not be generated
MSVC warning C4510: 'TokenType' : default constructor could not be
generated and warning C4610: struct 'TokenType' can never be
instantiated - user defined constructor required.

The default constructor could not be generated because of the const
member eTokenType, so unconstipate that. The g_TokenTypes array is
const itself anyway.
2011-10-26 10:35:13 +03:00
Tor Lillqvist
8c1c09dced WaE: reinterpret_cast used between related classes
MSVC warning C4946: reinterpret_cast used between related classes:
'sw::mark::IMark' and 'sw::mark::ICheckboxFieldmark'.

This time changing the reinterpret_cast to static_cast didn't work,
that caused compilation errors:

cannot convert a 'sw::mark::IMark*' to a
'sw::mark::ICheckboxFieldmark*'; conversion from a virtual base class
is implied
'const_cast' : cannot convert from 'const sw::mark::IMark *' to
'sw::mark::ICheckboxFieldmark *'
  Conversion from pointer to base class to pointer to derived class
  requires an explicit cast (other than const_cast)

dynamic_cast is what we want here. Also added an OSL_ASSERT sanity
check. Thanks to sberg and hub for discussing this on IRC.
2011-10-26 10:10:42 +03:00
Thorsten Behrens
c0913d78c2 Fix fdo#41995 fallout - recognize .svg in odf containers
More code paths that needed fixing - Writer sports its own Graphic
loading implementation, so that had the need for the stream name
fwd-ing, too. The svg deep type detection was necessary for e.g. the
flat odf - which has inline svg without any filename.
2011-10-25 23:23:40 +02:00
Tor Lillqvist
457af8039a WaE: truncation of constant value 2011-10-25 17:21:43 +03:00
Tor Lillqvist
6047d5952d WaE: unsafe mix of type 'bool' and type 'sal_Bool' in operation 2011-10-25 17:21:38 +03:00
Tor Lillqvist
ec1531b327 WaE: unsafe mix of type 'bool' and type 'sal_Bool' in operation 2011-10-25 17:21:36 +03:00
Tor Lillqvist
ab2cc86cf5 WaE: unreachable code 2011-10-25 17:21:33 +03:00
Olivier Hallot
a5d6dca3e9 Fix for fdo41997 continuation of VCL cleanup 2011-10-25 13:42:00 +01:00
Ivan Timofeev
a47a5ed0a5 always explicitly handle empty string of ranges 2011-10-24 00:16:18 +04:00
Olivier Hallot
b0224f8050 Fix for bug fdo#41997, cleanup vcl enumeration 2011-10-21 20:48:03 +01:00
Rob Snelders
638804f7e2 Added a scanbutton to the scan-dialog 2011-10-20 23:04:13 +02:00
Daniel Di Marco
593e4c36d2 SvUShorts -> std::vector 2011-10-20 22:20:09 +04:00
Cédric Bosdonnat
21352f88ca Sw styles cleanup: removed now unused methods 2011-10-20 16:53:51 +02:00
Caolán McNamara
625a032f82 Resolves: fdo#41556 restore original CTL font after forcing font 2011-10-20 10:32:28 +01:00
Tor Lillqvist
b2250f4d98 WaE: NULL used in arithmetic 2011-10-20 08:41:37 +03:00
Tor Lillqvist
62f4128d74 char can be unsigned, use sal_Int8 2011-10-20 08:41:36 +03:00
Ivan Timofeev
5ad4d151da migrate to StringRangeEnumerator in pdfexport 2011-10-19 23:13:05 +04:00
Cédric Bosdonnat
a12a2b63e2 Removed some -Weffc++ warnings from the Header/Footer work 2011-10-18 13:00:38 +02:00
Cédric Bosdonnat
6a15a2898b Styles cleanup: forgot to remove some bits 2011-10-17 12:44:07 +02:00
Cédric Bosdonnat
359d0fbd03 Removed list and numbering paragraph styles and related option page 2011-10-17 11:35:57 +02:00
Fridrich Štrba
64e3c3223e Fix build problem with the 'attribute' namespace. 2011-10-13 12:46:12 +02:00
Cédric Bosdonnat
f7ffa5f147 Header/Footer: Implemented fade in/out 2011-10-12 02:04:57 +02:00
Cédric Bosdonnat
01e704121a Page Break: Make the line control thicker to ease fade in/out 2011-10-12 02:04:57 +02:00
Cédric Bosdonnat
8398373c62 Header/Footer: using the drawinglayer to paint the indicator
First step before implementing Fade In/Out
2011-10-12 02:04:56 +02:00
Michael Stahl
8666469d7b #i108468#: clean up xmluconv code duplication, measured approach:
modify sax::Converter::convertMeasure to use sal_Int64 instead of BigInt:
  should be sufficient, since the largest number is SAL_INT32_MAX * 10^7.
 remove duplicate methods from SvXMLUnitConverter:
  convertMeasurePx, convertMeasure (static variants)
 remove entirely duplicative class SvXMLExportHelper:
  GetConversionFactor, GetUnitFromString, AddLength
 change SvXMLUnitConverter interface from MapUnit to css::util::MeasureUnit.
 change SvXMLExport constructor params from MapUnit to css::util::MeasureUnit.
 rename some methods to turn compiler into merge conflict detector :)
2011-10-11 17:57:01 +02:00
Michael Stahl
ae3e2f1700 #i108468#: clean up xmluconv code duplication, DateTime edition:
remove duplicate methods from SvXMLUnitConverter:
  convertTime (all variants), convertDateTime (DateTime variants),
  convertTimeDuration.
 move convertAny from SvXMLUnitConverter to sax::converter.
2011-10-11 17:57:00 +02:00
Michael Stahl
3ca2bef768 #i108468#: clean up xmluconv code duplication, part 1:
move convertNumber64 from SvXMLUnitConverter to sax::converter.
 remove duplicate methods from SvXMLUnitConverter:
  convertBool, convertPercent, convertColor, convertNumber, convertDouble,
  indexOfComma, encodeBase64, decodeBase64, decodeBase64SomeChars,
  clearUndefinedChars
2011-10-11 17:57:00 +02:00
Cédric Bosdonnat
6604fee625 Page Break: fade in / fade out the button when mouse if over the line 2011-10-10 23:07:29 +02:00
Cédric Bosdonnat
4c03a2497c Page Break: Fix page break deletion when changing page style 2011-10-10 12:53:47 +02:00
Cédric Bosdonnat
61ae8caa02 Page Break: show the button on the right for book mode view 2011-10-10 12:53:46 +02:00
Tor Lillqvist
a62e320503 WaE: unsafe mix of type 'bool' and type 'sal_Bool' in operation 2011-10-10 12:53:25 +03:00
Caolán McNamara
e8bbb76827 ensure correct export size type in stream operation 2011-10-10 08:51:15 +01:00
Caolán McNamara
625d5639cb aEmptyByteStr unnecessary 2011-10-10 08:51:13 +01:00
Caolán McNamara
460ed871fa ByteString->rtl::OString 2011-10-10 08:51:13 +01:00
Cédric Bosdonnat
8647c6fbf7 Page Break: don't let the indicator being hidden due to the zoom level 2011-10-09 23:08:06 +02:00
Cédric Bosdonnat
eb0e2fcf15 Page Break: Fixed part of the Edit menu action cursors handling
Added an optional SwPaM argument to SID_PARA_DLG action to avoid
changing the current cursor before showing the dialog.

Set the focus to SwEditWin after the action to continue editing the
document.
2011-10-07 16:59:11 +02:00
Michael Meeks
9142f9a1a1 WaE: win32 cleanup 2011-10-07 16:30:52 +02:00
Pierre-André Jacquod
03d21764bc this counter is not needed in sw/.. view.cxx, thanks cppcheck 2011-10-07 15:57:35 +02:00
Pierre-André Jacquod
3150a33996 cppcheck scope reduction in sw/..docredln.cxx 2011-10-07 15:57:33 +02:00
Pierre-André Jacquod
7056600878 cppcheck scope reduction in sw/.. trvlfrm.cxx 2011-10-07 15:57:32 +02:00