summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-09tdf#96317: Add API for copy/paste from/to the widgetPranav Kant
Change-Id: Iac869ddb65cbdd2227f96d047d83159ca7819f11 Reviewed-on: https://gerrit.libreoffice.org/20534 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-12-09guard against missing paragraph storyCaolán McNamara
Change-Id: I217c0aedca4eadc347c103899d96c70cf9606038
2015-12-09loplugin:nullptrStephan Bergmann
Change-Id: Id249baebf047bae083e36ad6e23d5bb8989f9a98
2015-12-09guard against missing indent propertyCaolán McNamara
Change-Id: I2d3369aed4b242acc936a71ee9be573c1ebc7a8f
2015-12-09DOC import: initialize RDF metadata before importing document propertiesMiklos Vajna
With this, it is possible to import part of the document as RDF statements later when SwFltControlStack::SetAttrInDoc() gets an SwFltRDFMark. Previously SfxBaseModel member functions like getMetadataGraphsWithType() and addMetadataFile() failed, as they tried to find the already imported document in UCB, which failed, as the import was still in progress. To prevent that, do the same as the ODT import in XMLReader::Read(), part "RDF metadata". One trick here is the call to comphelper::OStorageHelper::GetTemporaryStorage(), which gives an empty storage. Ideally a wrapper class would be needed that works on a SotStorage, but implements embed::XStorage, but that would be only used to find that the real storage doesn't provide a manifest.rdf stream, which is always the case. So instead of writing such a wrapper, just give loadMetadataFromStorage() an empty storage, which will have the same result without writing lots of dead code. Change-Id: Id1897838b1477eee0489b706d51cb6f59898877b
2015-12-09sw: implement addition of statements in SwRDFHelperMiklos Vajna
With this, the only thing that blocks the DOC import to handle smart tags is the lack of RDF metadata initialization in the filter. Change-Id: I33ab74c7d6ceaac42cc94fdf0b1dfcb0eaf61ab4
2015-12-09guard against styles based on themselvesCaolán McNamara
which leads to stack exhaustion when queries, make m_BasedOnStyle private and replace it with a call to GetBasedOnStyle which checks that the base style is not itself Change-Id: I093546793755f8a3a6e8a3c23fb8565ad27b75da
2015-12-09guard against no default text styleCaolán McNamara
Change-Id: I7416d709de79ae88cf4a9546d8adfecec9935238
2015-12-09set both min and desired size at the same timeCaolán McNamara
otherwise under at least gtk2 the "missing file" dialog from ./soffice no-thing-at-all will be oversized Change-Id: I3c0c9a0a8ec0fcd37fb8830940a9d4909e6b5a1b
2015-12-09tdf#95755: Don't discard table properties in endOfRowAction()Mike Kaganski
In the beginning of endOfRowAction(), the current value of m_aTmpTableProperties.back( ) is stored in a temporary variable. Then, the width of table may be put into m_aTmpTableProperties.back( ). In the end, this temp variable is assigned to TableManager::mState.mTableProps and the m_aTmpTableProperties.back( ) is reset. In the middle, the m_aTmpTableProperties.back( ) may be replaced in endLevel()/startLevel() sequence (if new table is started). In that case, the width calculations go to a different object than stored in temp var. Consequently, that value will be discarded and replaced with initial stored in temp var. Fixed that by directly operating with temp var instead of m_aTmpTableProperties.back( ). Also, the value of m_nCell was not kept over endLevel()/startLevel() sequence and that prevented from calculating width. Fixed that. Also, removed leftovers from commit cbd0fbc287051f918e4adb32b3e9b58dfbf8059d. Change-Id: If85dbb715e7c60f60043f9d60d6a3c3d02277add Reviewed-on: https://gerrit.libreoffice.org/20052 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-12-09guard against missing paragraph StoryCaolán McNamara
Change-Id: Iae617e9731dbdcedf8aa6bf02977911dce60bdd0
2015-12-09guard against missing BaseStyleCaolán McNamara
Change-Id: I173b12f0a28f917f24d1923e531da1b798beb1f6
2015-12-09Related: rhbz#1289398 UP and LEFT are positiveCaolán McNamara
Change-Id: I310d5ae60471c03c13cd2f3cf752362c4e562dac
2015-12-09sw: handle RDF mark in SwFltControlStack::SetAttrInDoc()Miklos Vajna
Change-Id: I13e510e305c4aa24c37b1c25b4c3116ef3f06a8a
2015-12-09SwWW8ImplReader::GetSmartTagInfo: read from SmartTagDataMiklos Vajna
With this, SwWW8ImplReader::Read_FactoidBook() gets exactly the matching key/value strings for the smart-tag bookmark, so now only SwFltControlStack has to store the item and process it. Change-Id: If799d7d0bd1d69ddf8325d05f2b7c6e55112bba2
2015-12-09sw: initial SwFltRDFMarkMiklos Vajna
So that SwWW8ImplReader::Read_FactoidBook() can put this as an attribute on the import stack instead of CntUInt16Item. Change-Id: I1753bc4a94f49332a945a4c6de7f58768d35ff16
2015-12-09guard against missing SectionCaolán McNamara
Change-Id: Id5295d294b56d6504d962ee1941a350a595031e7
2015-12-09Breeze Icons add toolbar icon size for displaymode_* iconsandreas kainz
Change-Id: Id59855c8a89472cf61d6d857546dd74c205998e0 Reviewed-on: https://gerrit.libreoffice.org/20481 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-12-09Breeze Icon change calc type icon for gl 3dandreas kainz
Change-Id: I63fa25c4c9333cb4a3a51543a5bbb4fda08ebd63 Reviewed-on: https://gerrit.libreoffice.org/20352 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-12-09Breeze Icon: add new setoutline icon for writer in 5.1andreas kainz
Change-Id: I7840dbceda0fa43b146e610f2dc7c90743646b9d Reviewed-on: https://gerrit.libreoffice.org/20353 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-12-09guard against missing RootDocumentCaolán McNamara
Change-Id: I1c6b58b58ab489a17419dbf7cd4ecec63359b7f3
2015-12-09Breeze Icon: writer table toolbar new icons for 5.1andreas kainz
Change-Id: If13e03f8c59aac8fe0e29a03eecddab3e8193008 Reviewed-on: https://gerrit.libreoffice.org/20359 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-12-09protect against missing ModifiersCaolán McNamara
Change-Id: I226f67c6c49bfcbc1fa0ef40fc9f7d5548fa043b
2015-12-09starmath: Pass by const referenceTakeshi Abe
Change-Id: I703bedf5bcf2f2ea3b54eb0fc3a641ff246f4568 Reviewed-on: https://gerrit.libreoffice.org/20486 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2015-12-09protect against missing SuperTableCaolán McNamara
Change-Id: I788ec28424bb638f727901b7d25e48a284ab67d0
2015-12-09tdf#96353 make spell options dialog resizableAndras Timar
Change-Id: I2e9ef88d471f8fa379a03f7b6b95bf14ce172acb Reviewed-on: https://gerrit.libreoffice.org/20498 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-09guard against corrupt SilverBulletCaolán McNamara
Change-Id: I3af47ab3af5e28a865a77a592f6a92edb46e4f2b
2015-12-09guard against corrupt ObjIndexDataCaolán McNamara
Change-Id: I214991e5d34c8e335cdd8ea482f8fa4913ba637b
2015-12-09guard against corrupt RootDataCaolán McNamara
Change-Id: Iad2788a7e5e7ee3b3107eab37cde2d3d38eae005
2015-12-09unnecessary nResId argumentCaolán McNamara
Change-Id: Id7d3df1af42cbe7b4f951c335063d26b59e7bc10
2015-12-09sort SalFrameStyleFlagsCaolán McNamara
Change-Id: I2caeda4e0a0b98ad09389d08fd6ccc6bb1e7aec2
2015-12-09tdf#96318: Add searching APIPranav Kant
Clients should now use these APIs to search for text in the widget, rather than executing UNO commands directly on the widget. This allows searching for text in the widget in view-only mode too. Change-Id: I013b6f96e69a634ec33367394d39c0f645a4994d Reviewed-on: https://gerrit.libreoffice.org/20488 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2015-12-09tdf#96316: Decouple view-only/editable modesPranav Kant
- Move text selection and graphic selection tasks into functions - Merge GDK_BUTTON_PRESS, GDK_BUTTON_RELEASE conditional code - Do not change to 'move' cursor in view-only mode - Ignore LOK_POST_COMMAND, LOK_SET_GRAPHIC_SELECTION in view-only As a consequence this commit also allows dragging handles during text selection in view-only mode which was earlier not possible. Change-Id: Iffb668d5447dd646a1e40237dee8d8d3fa3314b6 Reviewed-on: https://gerrit.libreoffice.org/20487 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-12-09No need for GtkSalPrinter to be VCL_DLLPUBLICTor Lillqvist
Change-Id: I97747cb36aa08846538067735387d2f1f79f4cb7
2015-12-09No need for FontSubsetInfo to be VCL_DLLPUBLICTor Lillqvist
Change-Id: If46e04de8380ee0d9a2896d85bdd431d299b19bc
2015-12-09lokdocview: Set a 'default' path for LOK initPranav Kant
When passed NULL to lok_doc_view_new, use the default path : $libdir/libreoffice/program as LOK install path Change-Id: I1e033c407184b29b1509cfb8c416b514591d67ce Reviewed-on: https://gerrit.libreoffice.org/20476 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2015-12-09tdf#94377 RTF export: support comment formattingMiklos Vajna
The core of this change is that RtfAttributeOutput::PostitField() now uses WriteOutliner() to handle comment text, instead of trying to output the plain text as-is. To have working roundtrip of the comment text, a few more changes are needed: 1) When emptying the Styles buffer, also empty the StylesEnd one. 2) Annotations don't want a trailing \par, so don't write one for the last paragraph. 3) Inform the MSWord_SdrAttrIter about where the editeng content will end up, and make WriteOutliner() accessible outside RtfSdrExport. Change-Id: I9cbcf4ce5dc3a099d310c6f321ea8e52f8644f9b
2015-12-09Use unique_ptr out-arg to in SfxBindings::QueryState to avoid mem leaksStephan Bergmann
Change-Id: I35df02de675068478a36ef05266ffc2d3054b07f Reviewed-on: https://gerrit.libreoffice.org/20477 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-12-09Missing new fileStephan Bergmann
Change-Id: Ie47ffb36f17882da8a78036f7797b2e2bac78eb6
2015-12-08More loplugin::TypeCheck useStephan Bergmann
Change-Id: I2f4a26a918134568f541cd45bdcf5a12b1f1d2ee
2015-12-08sw: redundant condition, was checked previouslyMichael Stahl
Change-Id: I7934bc993e049169a08b835f922da8ef50ea05ee
2015-12-08consolidate MSO format ClassID magic numbers in msfilter/classids.hxxMichael Stahl
Change-Id: I673eeaa4168f769cb002995c43d986ee5f2030b2
2015-12-08sw: un-break DOCX formula exportMichael Stahl
(regression from 1dac99e7ea45f90bf39eb95eb7bc01f7d79093ef) Change-Id: Iffe3ec6c28f62b78a2b223144bfaad383d272802
2015-12-08lotuswordpro: GCC 4.6 seems to need stdexcept includedMichael Stahl
Change-Id: I30bbf7bab8cb37422fd20a25741e564500faa31c
2015-12-08valgrind: jump or move depends on uninitialised valueCaolán McNamara
Change-Id: I02e507f4b7d78efacc5b735ca24adb83633749b9
2015-12-08Resolve Linker Warning LNK4104Mike Kaganski
See https://msdn.microsoft.com/en-us/library/e821azx1.aspx Some export symbols should be PRIVATE Also, don't export DLLMain. It is internal function used by CRT, and not intended to be exported. Change-Id: I48139b985aa2ee499c2005d8b0d966a2cc6dcd0c Reviewed-on: https://gerrit.libreoffice.org/20419 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Matúš Kukan <matus@libreoffice.org>
2015-12-08merge some Palm text format filtersDavid Tardon
Change-Id: I796ce84325549178d3eac572c363a8cbc9ae542f
2015-12-08merge libmwaw format specs (writer)David Tardon
Change-Id: Icf1e5e976e0c98b2ce8e2dd7a3b9c89a6be7d7c6
2015-12-08add generic presentation filter for libmwawDavid Tardon
Change-Id: I3b96671b7a0f278329a686ba9082b3e4e4989e87
2015-12-08merge libmwaw format specs (draw)David Tardon
Change-Id: Ia0dfe1e1ce1ab2b1ef266d1aa0950fd6670b0c50