summaryrefslogtreecommitdiff
path: root/sw/source/ui
AgeCommit message (Collapse)Author
2012-08-25use dynamic_cast, prevent crash when opening Options-Writer-AutoCaptionIvan Timofeev
SwCaptionOptPage can be added either to SwCaptionOptDlg or OfaTreeOptionsDialog Change-Id: I0cedfc27f8d1f1bbf5e19dce2f438fc782cd5832
2012-08-25Revert "cast to wrong type, can cause crash when opening Options-Writer-AutoCaIvan Timofeev
Wrong fix: GetParent can return pointer to SwCaptionOptDlg which is derived from SfxSingleTabDialog. This reverts commit a5546942ec70fca551401ae61eee00b66a92f81d.
2012-08-25cast to wrong type, can cause crash when opening Options-Writer-AutoCaptionIvan Timofeev
it turns out that GetParent() returns pointer to OfaTreeOptionsDialog, not SfxSingleTabDialog. Disabling OK button in the options dialog does not make any sense, so the patch removes that code. Change-Id: I76618d89f904a6eac80fc08072dcde007b2d9c34
2012-08-25fdo#49901: SwView::ExecSearch: fix Replace All cursor:Michael Stahl
Because the "fix" for i#8288 only set the point of the cursor and not the mark, it can happen that after a Replace All weird things are selected; fix that (and i#8288 properly) by using the SwCrsrShell stack, and don't do it when searching in the selection. This cannot be done in SwCrsrShell itself because ExecSearch sets the cursor to the beginning/end of the document already. (regression from cda75d6f358d438f7ed36ed7fa296ac23e3c4a04) Change-Id: Ie9f8d7da2fa26000a0237c24f8742e47ffa29213
2012-08-24SwPageBreakWin: memory leakIvan Timofeev
Change-Id: Ibb543b8da8c89c7fa3799fada03c787dabe2b3cb
2012-08-23SwHeaderFooterWin: memory leakIvan Timofeev
Change-Id: Ie8322b93745c48970766c2033a23cca2c710a516
2012-08-23sw: remove #undef SW_DLLIMPLEMENTATION nonsenseMichael Stahl
obsolete remnant of obsolete dmake build system Change-Id: Ief3f6bde9bbaeac5fe9b25d025b9b076b9a6ef3e
2012-08-23n#775899 sw: add FloattableNomargins compat flagMiklos Vajna
The DOCX filter imports floating tables as frames containing a table. Word ignores the margins of paragraphs next to such a table, Writer does not. Add a compatibility flag the import filter can set that triggers this weird behaviour. Change-Id: Iaaa1d2a2e2f9d0eaea17832b2e418f9a845efffd
2012-08-23fdo#46141: Don't use a timer to show header/footer separatorsCédric Bosdonnat
Clicking on the header/footer area will show the separator. Clicking on an empty header/footer area will add a temporary one that we try hard to remove when clicking outside Change-Id: I8f29f8fd80b2d808257636bf94ec4e2e46f6028e
2012-08-22SwTokenWindow::InsertAtSelection: fix STL assertion:Michael Stahl
error: attempt to copy-construct an iterator from a singular iterator. (regression from 39b8a5f87f55abe53488c9c3c35b65fb0df84cde) Change-Id: Iab29f4c356ea1cb5ca0f687bcfc5e54f185fbba3
2012-08-22Some cleanup for better localizationZolnai Tamás
First: localization tool can not recognize id because of empty line between id and its definition Second: same problem because of comment between type and id Change-Id: If42af406fab252ccae0a6bbc478bab8130210b21
2012-08-20fdo#53175: Don't load the default values of the styles in writerfilterCédric Bosdonnat
...or we may have some additional properties set on some styles. Change-Id: I5a5d307931a2a6c1f25bd2da93381d8de65c2480
2012-08-18remove some useless commentsThomas Arnhold
Change-Id: Ied223890539a3407abbed7c7135dfc3de2f2fe48 Reviewed-on: https://gerrit.libreoffice.org/429 Reviewed-by: Philipp Riemer <ruderphilipp@gmail.com> Tested-by: Philipp Riemer <ruderphilipp@gmail.com>
2012-08-16idxexample.odt and html.stw cleanup (fdo#49101, fdo#49098)Istvan Turi
idxexample.odt will be localized through the standard l10n framework, i.e. with use of .po files, because now strings are read from resources. html.stw is language independent now, defaults for different scripts are handled in the code. Change-Id: Ie20cafc6191721a959b33e2559b9866e3762a146
2012-08-14fdo#50941: "Characters per line" will not change when changing "Max base ↵Takeshi Abe
text size" max characters per line follows max base text size in the squared mode of text grid Change-Id: I47f8cd0db1ece5c940f31aada7d51d40058c7513
2012-08-13Default ascii import dialog to fixed text font the the detected languageCaolán McNamara
For the Ascii import dialog detect the language first and base the default fonts off that as the default fixed width font for that language Change-Id: I6e81c7c38900a441076dc591c070b99a2184e081
2012-08-10Page Break: set position only when button is invisibleIvan Timofeev
and don't let the moribund fading-out button pursue the mouse Change-Id: I6f821f7e8144e9448c1cb65f8ce96102419cd6f0
2012-08-10Page Break: don't show if mouse is gone and button is still invisibleIvan Timofeev
it seems when the mouse leaves the dashed line, it immediately appears inside a button (if the mouse motion is not super-fast). Change-Id: I43c792fdba59feafd761bde8529a8683c07bf3d3
2012-08-08remove include comments and boxesThomas Arnhold
Change-Id: I9ccf664e8f75a68b1b87c2b29ae617a90d0741a7
2012-08-07fdo#51832: SwRedlineAcceptDlg: fix STL conversion:Michael Stahl
62b7606fddfef9e1a7645a2d3d605f1fa3aee263 wrongly converted the call to aRedlineParents.DeleteAndDestroy() in SwRedlineAcceptDlg::RemoveParents() and erases one element less than the old code, which results in access to deleted SvListEntry and crash. Change-Id: Ie2749cb3f17b36649adff46c166642fccde31329
2012-08-07remove empty ascii boxes and stuff IIThomas Arnhold
Change-Id: I7fc113f8d59f7c82bae6acace7bf4230b4c2bbea
2012-08-07remove empty ascii boxes and stuffThomas Arnhold
Change-Id: Ied91b5b298f0cfad0d3408c3cbb87c7bd1b83247
2012-08-07drop bogus eof linesThomas Arnhold
Change-Id: Idda2852c3e96ce15fde75d5a95369ec50a012410
2012-08-07Remove non-existing forward declarationsThomas Arnhold
Those classes don't exist. So remove friend class operators too. Change-Id: I8e3b32db933dea7cbab86015f0c926df967511f6
2012-08-07fdo#46193 MessBox was made copyableZolnai Tamás
Part of MultiLineEdit was moved down from stvools to vcl with name VCLMultiLineEdit. MessBox uses it to display the message in read-only mode. Some of svtools' classes - which are necessary to implement VCLMultiLineEdit - were moved to vcl as a whole, and their includes are rewrite. Note: ExtTextView and ExtTextEngine classes would be leaved in svtools if VCLMultiLineEdit is a template class, but two macros: IMPL_LINK end IMPL_LINK_NOARG make it impossible to use template syntax. Change-Id: I26543868d8081c225c7125404d23369de3c3afcd
2012-08-06There is not need to allocate memory just for getting the 'indexOf'Christophe JAILLET
a literal within a OUString. Change-Id: Icc8e22c43f6ddca25cb284a3d45ab39680ad6d1f
2012-08-04kill va_args abuse for SfxItemSetBjoern Michaelsen
Change-Id: I200addfdf551f1b8437b704c481d397c53440dcd
2012-08-02Revert "Revert "sorted_vector: turn Find parameter into template""Michael Stahl
This reverts commit 8291d41667b1a63d35bf818aaf9d75529e1f12f0. Un-revert that, with a tweak: with the bizarre name lookup semantics in C++, the proper way to refer to a template (as opposed to a template instance) is by prefixing the name with its namespace, which does seem to work with MSVC2008 & GCC 4.7; thanks to Stephan Bergmann for the hint. Change-Id: Id9cccbe68fb3ce2dd070c4b3dbd21782c92170ca
2012-08-02strange header guardCaolán McNamara
Change-Id: I981e2e9f18b6ebde4d129746fdc30f360956848b
2012-08-02strip down UniString some moreCaolán McNamara
Change-Id: Ibd749a70a7bbe8c1023edf7bd144aa6547147a12
2012-08-01Revert "sorted_vector: turn Find parameter into template"Michael Stahl
This reverts commit 3e3acee762fac71f7356ed1305a64e0278278081. It was a nice idea, but C++ is not yet ready for it; with the travesty of parametric polymorphism in C++ the find_unique inside the definition of find_unique actually refers to find_unique<Value, Compare>, so there is no way to actually refer to template<Value, Compare> find_unique inside its definition. Thanks to Luboš Luňák for explaining the problem to me. Somehow this does work in GCC 4.7 even with -std=c++98, likely by accident.
2012-08-01sorted_vector: turn Find parameter into templateMichael Stahl
Enforces same type parameters for sorted_vector and Find, and makes it easier to use. Change-Id: Ide456a48f015cb0a9dea7a0bf2bcf2ccad527fd1
2012-07-31SwContentArr: fix STL conversion:Michael Stahl
It appears that the operator== for SwContent always returns false, so 81181891c93faee024799991317ac2c451f4c0c4 changed the semantics; use o3tl::find_partialorder_ptrequals to fix it. Change-Id: Ib4f040f03a9eaeec9a2973f5a93a22a387232017
2012-07-30First step to change sorted vector with LookupTree for word autocompletion.Tomaž Vajngerl
With this commit autocompletion words are inserted into a LookupTree instance and used when autocompleting words. Previouslly used sorted vector is still used for the GUI. Change-Id: Ib5aed38d575fbef7221afbebe824a440d4ffbc7e
2012-07-30remove unnecessary includes of svl/svarray.hxxCaolán McNamara
Change-Id: Ifec201efc4e97baf2d36d66c4ae6967eadd6134c
2012-07-30Typo ressource -> resourceStephan Bergmann
Change-Id: Id13e7acfbe34eca5e124c9032d36d6f158bfb831
2012-07-30Bug 48549 - System::Beep() removalMathieu Vonlanthen
Change-Id: I011048912af051a762a78af8646513a1fc624073
2012-07-29Convert InsCaptionOptArr to boost::ptr_vectorCaolán McNamara
I can't see any reason to keep these sorted, there are only two operations used, Insert and Find, and neither makes any use of the sort order. Change-Id: Iac3c327084dfdb83c0065a4a1786ac1f6b6b387e
2012-07-29Partially revert "Remove unused defines"Thomas Arnhold
This partially reverts 00240d049790d11c4ef35de7a294819107197efd http://lists.freedesktop.org/archives/libreoffice/2012-July/035331.html Change-Id: Ib682cd258cca12e742be5fb1715b2aecfe0a761e
2012-07-28Use memcmp insteadof rtl_compareMemory in swArnaud Versini
Change-Id: Ie3a95f628387756d2fa941707bd5e224b41b5720
2012-07-27sw: fix some warningsMichael Stahl
2012-07-26Convert SV_DECL_PTRARR_SORT_DEL(_SwRedlineTbl) to o3tl::sorted_vectorNoel Grandin
Change-Id: Ie7edc6b32b373619d4c0ac154da93650743049cf
2012-07-25Referer was set to SfxMedium but was never used. Removing it.Kohei Yoshida
Change-Id: I88ab874d4efc60d58722f0bb175d14a4d443398b
2012-07-25sal_Bool to bool, String to OUString, in SfxMedium.Kohei Yoshida
Change-Id: I1bc8486b3fbbcdd45407eeda52a7e239646cd204
2012-07-25delete svl/svstdarr.hxxMichael Stahl
Change-Id: Ia3d1d8dbe100443410b80c3881f10ab51b2d0419
2012-07-25autocomplete: replace horrible use of SvStringsISortDtor...Michael Stahl
... to store not Strings but derived SwAutoCompleteStrings with something far saner: an abstract base class with virtual dtor. Change-Id: I7d966f385dd41154ee1c4cdb43b56ff1aace9b5e
2012-07-25Convert SV_DECL_PTRARR_DEL(_SwSeqFldList) to std::vectorNoel Grandin
Change-Id: I40802ba1e7b2e2f6f57c59c4d66b544604d01ce5
2012-07-25Convert SV_DECL_PTRARR_SORT(SwOutlineNodes) to o3tl::sorted_vectorNoel Grandin
Change-Id: I17c40bda4ab401bde42b64d090fd7e3259e79026
2012-07-25Convert SvStringsISortDtor from an SV_DECL_PTRARR to a o3tl::sorted_vectorNoel Grandin
Change-Id: Ie1fa9b3cc2aef83ae9a82fbc110a08b2f298daef
2012-07-25cppcheck: move this pView test to where it makes senseCaolán McNamara
Change-Id: I5e6109e0a844808e612c84e49c7c82dc9720badf