summaryrefslogtreecommitdiff
path: root/sw/source
AgeCommit message (Collapse)Author
2012-06-21re-base on ALv2 code.Michael Meeks
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21Remove commented out codeSebastian Spaeth
Remove old, already commented out code and useless code documentation (basically restating the function names). Also translate the few Germany comments in that file. This file still lacks a good doxygen code documentation or a brief description of what it actually does. Change-Id: I339a01dbd4ea894be13293133b8dedbc55c2bbac Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2012-06-21re-base on ALv2 code.Michael Meeks
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-21hrc cleanup: Remove unused definesThomas Arnhold
All of those defines (should) not be used at any point in the code. False positives may exist, because some macro names are getting generated by some template/macro foo. This is the version which compiled fine for me. Also there are many commented out lines removed. Change-Id: I6394024682e4ab3691eb72707a9363d41ba31df8
2012-06-21fdo#34093: fix error in calculation of page number of SwRectIvan Timofeev
StringRangeEnumerator (i.e. user's input) contains page numbers in a different page range (it excludes empty pages). So: - first map page numbers to a common range, then compare - user's input can't contain empty pages, remove this check Change-Id: I4fce5215272fc90f39c9e05d3f3604734a8aebe3
2012-06-21fix problems in 1015cd4ff73ee25e55b4da8c8bc55a41e652da87:Michael Stahl
- inverted check in SwDoc::RemoveInvisibleContent - various too short end positions in DeleteAndDestroy calls in SwDoc::~SwDoc and SwDoc::ClearDoc - std::copy to begin() of empty vector in SwReader::Read replaced with std::back_inserter; the vector is used as a set here so the end position should work just as well Change-Id: Ib2ddd788fade4ee1a8beb702d5321c503985fba4
2012-06-20adapt DBG_UTIL code to previous commitMichael Stahl
Change-Id: I021b4d70a02de7a66e0af82a859ae89e1a7d1231
2012-06-20Convert SV_DECL_PTRARR_DEL(SwTableLines) to std::vectorNoel Grandin
Along the way, simplify a lot of the ForEach callback methods. Change-Id: I54bc87c1060f1d73470ca8b7fd645ffa23059606
2012-06-20Convert SV_DECL_PTRARR(SwTOXMarks) to std::vectorNoel Grandin
Change-Id: Idffc8a90fcd4ada856339fc0be3e4a11478db6cc
2012-06-20Convert SV_DECL_PTRARR(SwSttNdPtrs) to std::vectorNoel Grandin
Change-Id: If85e2bc65a99e4854d92454b3bfd40e436df2aa1
2012-06-20Adapt DBG_UTIL code to 1015cd4ff73ee25e55b4da8c8bc55a41e652da87Stephan Bergmann
Change-Id: I196f7a6211a3c11d976a95d592af4205476fe81f
2012-06-20Convert SV_DECL_PTRARR_DEL of Sw*Fmts to std::vectorNoel Grandin
- I had to convert SwFrmFmts, SwSpzFrmFmts, SwCharFmts, SwSectionsFmts, SwTextFormatColl, SwGrfFmtColl all together because of the code that wants to work with any of them. - Introduce a pure virtual base class SwFmtsBase, since there are a handful of methods that want to work with any of the std::vector<Sw*Fmt> types. - the class SwSpzFrmFmts was dropped, and the code changed to use SwFrmFmts instead, since the 2 types are identical. Change-Id: I8c4056b5aedd574a33666e2d649a8b849958441c Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2012-06-20Translate German comments, fix some wsPhilipp Weissenbacher
Change-Id: Ic8f3885965a46cc7cea891472f7d902254004543
2012-06-20SwDoc::SetFlyFrmAnchor: fix crash when SwTxtNode has no hintsMiklos Vajna
Change-Id: I5178ff1bbf1a3e8eebec10f44e74d9d0806d3168
2012-06-20Fix some sloppinessPhilipp Weissenbacher
Change-Id: Ie91b4fb5c3b1916701199f3f787b11dfe2881b6c
2012-06-20ditch last (?) uses of UniString::UniString(sal_Unicode, ...)Caolán McNamara
Change-Id: Ie04a3465100d2f013f34168aaf136a20cd2f7e0d
2012-06-20Translate German comments, fix some whitespace and spellingPhilipp Weissenbacher
Change-Id: Icbb75b707532ed81ee720c753dbee81f6be67d18
2012-06-20Clean up previous translationPhilipp Weissenbacher
Change-Id: Ie1400dc5a835dd97e22f72f89b42b0538adffe68
2012-06-19merge together hand-crafted traditional/simplified chinese testsCaolán McNamara
merge together a gadzillion hand-crafted isSimpleChinese/isTraditionalChinese/isKoreanVariants/isCJK implementations which should fix a goodly amount of them add a MsLangId::isFamilyNameFirst for locales where family name appears first while I'm at it. Change-Id: I65377793be037d16fe7250cd7450b28aec689e83
2012-06-19remove some UniString ctorsCaolán McNamara
Change-Id: Ic2e712f4447b733b79d980e178d9d6d9d8bf0e40
2012-06-18convert LocaleDataWrapper to OUStringCaolán McNamara
Change-Id: Icb5f5adf9139d1c0f0e86d8128ea6742ce20b138
2012-06-18callcatcher: drop unused macro-generated GetChildWindowId methodsCaolán McNamara
add _WITHID variants for the cases where we (apparently?) still need them. Change-Id: I3b8290869368487f04ecd93a5f3a717de7fd10b4
2012-06-18removed unused forward declarations of classTakeshi Abe
Change-Id: I32894b853912741e935e2409d2857fe384f67665
2012-06-18Remove unnecessary temp variableBrad Sowden
The only impact aTmpQHD.Move() has on pQuickHlpData is clearing m_aHelpStrings but this is done anyway in the pQuickHlpData->Stop() Change-Id: Ie730ddb1860461c81558275d54e32846c1495abe
2012-06-18Remove redundant IF clauseBrad Sowden
ClearCntnt() already sets m_bIsTip and m_bIsAutoText to true. Change-Id: Ic3ad53a7659dbfe4f28f7995976e659f5bd14afb
2012-06-18Clearer function namesBrad Sowden
Change-Id: I7434842fe8392eeb6e3c5fd8e605ee444f66b017
2012-06-18Member variables can be made localBrad Sowden
Change-Id: I571eaa936f8d1afb421da3137aa090e916e633ba
2012-06-18sal_Bool (bit field) to bool and variable renamesBrad Sowden
bIsAutoText -> m_bIsAutoText bIsTip -> m_bIsTip bChkInsBlank -> m_bAppendSpace bClear -> m_bIsDisplayed Change-Id: I7aa047b7e14ed6bd05528c8650ba4c4b7fcb07d2
2012-06-18Some doxygen comments for QuickHelpDataBrad Sowden
Change-Id: Id6e91985f6dbdd8244df9bef0f7a938ac8ecbf3a
2012-06-18missing intializationDavid Tardon
Change-Id: I2350adf98e12b9c9cda4c18a6ba9f935016ac299
2012-06-17writer: crash(i119959) paste of multi-line draw-text into bullet listNorbert Thiebaud
Change-Id: I82da331b478cd258e5f9803dfac4cb203d2dc9f6
2012-06-17writer:crash(i118878) when adding columns and chang. properties in a frameNorbert Thiebaud
when adding columns, GetNumCols() reflect the new number of columns before the actual columns available are updated. Due to the way and order in which properties are updated the code that adjust the columns can be run before the new columns are avialable.. and was using GetNumCols(). This patch avoid using that api and rely on the column iterator to determine the acutal number of column available. Change-Id: I52e75ec82c1ace65b05b8df9e54f4689f2aec8d3
2012-06-15move DTTM2DateTime and DateTimeToOString to msfilter to avoid copy&pasteMiklos Vajna
2012-06-15fdo#46757 Word/character count incorrect with record changes enabledMuhammad Haggag
We were ignoring redlined (deleted) text when counting characters, but not when counting words or characters without spaces. We now mask all redlined/hidden content from the expanded node text before operating on it. Change-Id: If882a6dde883a2ba0ca99909ca7ac2b9abd4a1fb
2012-06-15Remove some PCH leftoversThomas Arnhold
There are still some pch headers in use. Simply: find . -name *_pch* Change-Id: Idafcd4f1451877ad9b08c8bbea526266d7414553
2012-06-15move zoomitem from svx to sfx2Tim Hardeck
To allow using SvxZoomItem in sfx2 zoomitem is moved from svx to sfx2. This patch does base on Caolán McNamara's patch he sent to the mailing list. Change-Id: I4d245f938d92ad3a20b692f5f76d8e0d00b1a648
2012-06-15n#325936 fix ww8 export of fly frames with transparent background in headersMiklos Vajna
Regression from commit ed8b5f2d -- to be safe, reverted only for fly frames in headers. Change-Id: Ia538b69bb913567c7d087d40afc7f0a141b7a0ed
2012-06-15hrc cleanup: Remove completely unused RIDsThomas Arnhold
These RID definitions aren't used at any other point. So remove them. Unused START and END definitions were commented out for documentation purpose. All definitions in basctl/source/basicide/tbxctl.hrc were unused, so I removed this file. Change-Id: I4713188a12b9da912b2a91b85ea4e54ca1aeb994
2012-06-14n#325936 fix ww8 export of not-in-background anchored images in headerMiklos Vajna
Regression from commit 2ad707b3, which only updated the import, but forgot to remove the fake "in background" property on export. Change-Id: I2b42c5fa7873d946b10d311800049586bc214071
2012-06-13Fix last line whitespace problemPhilipp Riemer
Change-Id: I9df71fd2db17cda15a19b41b0ff389bc2e49eecc
2012-06-13translate German comments in (and minor clean up of) ↵Philipp Riemer
sw/source/core/inc/{flowfrm,flyfrm}.hxx
2012-06-13delete useless code in sw/source/code/incPhilipp Riemer
- frame.hxx: git grep shows that variable is not used anywhere - dflyobj.hxx, frmtool.hxx: redundant visibility declaration - layouter.hxx: redundant include (once with "" and once with <>)
2012-06-13minor code cleanups in sw/source/core/incPhilipp Riemer
2012-06-13reduce use of UniString ctor from null-terminated unicodearrayCaolán McNamara
Change-Id: I98361309ada084d8f78517ce88f210d785f59cc0
2012-06-12Convert SV_DECL_PTRARR_DEL(SvxRTFItemStackList) to boost::ptr_vectorNoel Grandin
I had to make the destructor of SvxRTFItemStackType public. The combination of friend class, boost, and a private destructor does not make OSX's gcc happy. Change-Id: I2d9a3bff3c5edaf5435fb543389a9a2822c6b2ad
2012-06-12Convert SV_DECL_PTRARR(SvBaseLinks) to std::vectorNoel Grandin
Change-Id: I9197dc4fd7ed32f030de8121913265ec78c83585
2012-06-12Convert SV_DECL_PTRARR_DEL(SvxMSDffShapeOrders) to std::vectorNoel Grandin
I could not use boost::ptr_vector because some of the code copies the pointers into other data-structures temporarily, which ptr_vector does not like. Change-Id: Ie9c8aeb4e741bfd138694929ccda451a1c0984bb
2012-06-12FT_CHARFMT and LB_CHARFMT shared the same resource id (cherry picked from ↵Caolán McNamara
commit 125cecd8fa6036986f1d442bc7d902b547c11e75)
2012-06-12Get rid of GRADIENT_* defines, they conflict with Windows GDI types.Jan Holesovsky
Change-Id: Ia0bc37f81b7213b20fc5093beb46d7a05b1ac931
2012-06-12fdo#43249: WW8: fix double border import:Michael Stahl
The border widths are tripled on import, because that is effectively what SetWidth does for DOUBLE borders; set a divisor of 3 similar to e2ffb71305c5f085eec6d396651c76d6daee3406 70a6a4d425558340bb49507975343a3e0a1bdde8 Change-Id: I40b175bedc1ed2d564be126bf9e6870b43474aba