summaryrefslogtreecommitdiff
path: root/sd
AgeCommit message (Collapse)Author
2014-01-21Change EnableNoYieldMode(bool) to better namesChris Sherlock
It makes no sense to disable something via an Enable function. I have split the function into Enable and Disable functions, and update the code accordingly. Conflicts: include/vcl/svapp.hxx Change-Id: Ic05d69796f43e802a4a2a16aaca44433b6eaa018 Reviewed-on: https://gerrit.libreoffice.org/7525 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-21boradcast->broadcastCaolán McNamara
Change-Id: I96720843f815bf6d499eb424c3e4ff579c2bbe23
2014-01-21Use SAL_WARN instead of printing to stderrTor Lillqvist
Change-Id: I83f2b1d7fbe940917ef2c0b7be225c722fe9df05
2014-01-21Use SAL_INFO consistently, bin a random printfTor Lillqvist
Change-Id: I2c7a0d4c3c2714bd1e2773c0749edd20ee38628f
2014-01-20require icu_headers hereCaolán McNamara
Change-Id: I56e161d42f7a58a7931191ab3d0af79f2af9ee5c
2014-01-20Related: #i56998# use locale rules to format percentageCaolán McNamara
Change-Id: I4b744cf10165383153d2a71c05df0c0ed327c641
2014-01-18ooxml: Preserve shape theme attribute for solid fillJacobo Aragunde Pérez
Users can select the fill color for a shape among the theme-defined colors. This results in the following XML: <wps:spPr> ... <a:solidFill> <a:schemeClr val="accent2"/> </a:solidFill> ... </wps:spPr> Now we store both the original fill color and the name of the theme-defined color, if it exists, on the import phase. They are put into the InteropGrabBag of the shape with the names OriginalSolidFillClr and SpPrSolidFillSchemeClr. Additionally, we needed to to store the decoded theme color inside StyleFillRef. On the export phase we have to take into account several combinations of factors: * If the final color for the shape fill is different from the original color, we must ignore any theme attributes and write the new color. * If the fill color is unchanged and some theme color exists, we must write the theme color. * If the fill color is unchanged and no theme color exists, we must check if the original color matches the style-defined color. If it does, we must not write any <a:solidFill> tag. * Otherwise we must write the <a:solidFill> tag with the RGB color. The method putPropertiesToGrabBag was added to the Shape object for convenience. The data files for some /sd/qa/ unit tests were updated to reflect the new properties inside the Shape InteropGrabBag. Change-Id: If0915c5442872a8acab0a8a081f60c89c97277bd
2014-01-18ooxml: Preserve shape style attribute fillRefJacobo Aragunde Pérez
Shape style attributes contain the default format for the shape in case that no direct format is specified for it. This is an example of the attribute we want to preserve with this patch: <wps:style> ... <a:fillRef idx="1"> <a:schemeClr val="accent1"/> </a:fillRef> ... </wps:style> The relevant values in these tags are stored at the maShapeStyleRefs member in the Shape object. The storage happens at ShapeStyleContext::onCreateContext which is run when the <a:fillRef> tag is opened. The ShapeStyleRef object contains the idx value and a Color object which will contain the inner tag <a:schemeClr>. The Color object has been modified to store the string value of schemeClr. The storage happens at ColorValueContext::onStartElement which is run when the tag <a:schemeClr> is opened. Later, Shape::createAndInsert is called by the ShapeContextHandler to create the actual XShape, this happens when the tag <wps:wsp> is closed. createAndInsert puts idx and schemeClr values into the InteropGrabBag property of the XShape with the name StyleFillRef. On export time, when the shape data is written at ShapeExport::WriteCustomShape, we added a call to DrawingML::WriteShapeStyle. This method will check the existence of the InteropGrabBag property in the shape, read the StyleFillRef prop inside it and output the proper XML to the style definition. DrawingML::WriteShapeStyle also writes some mock tags into the <wps:style> because we found that they are compulsory. We will replace them with the proper data in further patches. The method putPropertyToGrabBag was added to the Shape object for convenience. The data files for some /sd/qa/ unit tests were updated to reflect the new property StyleFillRef inside the InteropGrabBag. Change-Id: I5ffa5242852461a1a709a8f169d40f0d7a2c9aa3
2014-01-18Window::PreNotify should return boolStephan Bergmann
Change-Id: Ic9903fd887f2c3fab2630ebeb20df39392177c8d
2014-01-17Window::Notify should return bool, reduxStephan Bergmann
Change-Id: Ib41ed9ace428081e1948cf109de095ea9e7c45c2
2014-01-17bool improvementsStephan Bergmann
Change-Id: I19b429741a2ba972bef8863008657823b9bb7f91
2014-01-17Be explicit when using bool as integral value (as Link return value)Stephan Bergmann
Change-Id: I3b345be909ed2cb93cd0d478af4b26c9909d2726
2014-01-17Window::Notify should return boolStephan Bergmann
Change-Id: I72081b1022582c8b6f95a611e21d9c78f7581efe
2014-01-16place some elements side by side to regain a lineCaolán McNamara
Change-Id: I9b838b6c00bc6e456adcf5d63c9936c08bf0d1aa
2014-01-16convert SvStream::operator<< overloads to more explicit methodsNoel Grandin
This is in preparation for more conversion of SvStream::operator<< calls to use more explicit method names. This converts the subclasses that have their own convenience overloads of operator<< to use normal methods. Change-Id: I5efd5d9a24c264cb86d2471303dd5849bf91ba80
2014-01-15StartPresentationMode nFlags takes PRESENTATION_* valuesStephan Bergmann
Change-Id: Ib922ebf1e547ff4d02c4fbaac6e6a81313a036ec
2014-01-15Assume nPageNum shall be compared against 0 or 1 hereStephan Bergmann
...depending on DOCUMENT_TYPE_IMPRESS, similar to how the nPgNum argument to the SdDrawDocument::GetMasterSdPage call a few lines up is computed. Change-Id: I8a13ac72868d96d486c071a4a705268dd888c1eb
2014-01-15Apparent typo when adding bracesStephan Bergmann
...in 4707f7bb54d143e642ad5df5eedf56d5d2b08385 "CWS-TOOLING: integrate CWS cmcfixes51" Change-Id: Icc8b2ed48d73f3f03c2820f554f896f6edb15e23
2014-01-14Remove unused bForBrowsing parameterStephan Bergmann
Change-Id: I32b458390130e9ed83af0831069329ac8f672d67
2014-01-14Dead codeStephan Bergmann
...since a5a5e61fd9a32b3d881f42c39d789ed4bc5d4122 "INTEGRATION: CWS presentationengine01" in 2004. Change-Id: Iad72fa7af037d97583621afb114243ac6a45b8ce
2014-01-14PrepareClose should probably return boolStephan Bergmann
Change-Id: Ie62a6c1197594102bc68e246ae6059a9442ce314
2014-01-13drop unnecessary tools/string.hxx includesCaolán McNamara
Change-Id: I2439ed19b554381f80e882aacbac05167622df92
2014-01-13fdo#73436 Let SdXImpressDocument handle css.drawing.* requests directlyStephan Bergmann
...instead of handing off to base class, so that potential wrapping in SdXShape (in create) is not skipped. Change-Id: I57fb10ef478688a5a0c1c3c736efbd55a7172423
2014-01-10swap entries to optional checkbox is on last rowCaolán McNamara
so there isn't a hole if the remote control option is hidden Change-Id: I514b76d35ef831f4c74ea43f18b2fa812059cfd2
2014-01-10SfxPoolItem::operator ==, != should return boolStephan Bergmann
...and SfxEnumItemInterface::HasBoolValue, too. Change-Id: Ia032e3d35a4c3b4c1efdc515ca36e466be03fc0a
2014-01-10re-write SvStream operator<< to non-overloaded methodsNoel Grandin
This is the actual re-write. Use a clang rewriter to rewrite SvStream::operator<< to methods like WriteuInt32. Note that the rewriter is not perfect, and I hand-tweaked the output. In particular, I had to adjust places doing things like (*this) << 1; Change-Id: I5923eda3f4ebaa8b452b6ef109e726e116235a2a Reviewed-on: https://gerrit.libreoffice.org/7342 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-01-09remove unnecessary casts when calling Combobox::SetEntryDataNoel Grandin
An OUString* is type compatibile with void*. Change-Id: I6f01fe02c75f4db0bda09c7e288cb88d1fbf3c37
2014-01-08designate which elements should shrink when limited widthCaolán McNamara
draw/impress print options page (de) Change-Id: Ie4cf8902d3db68a156d10bd4d1b2c7db33539f9c
2014-01-08Do not use SvxShapeCollection directly.Matúš Kukan
Change-Id: I1dd51df0e78a3cc89cdfcaec91ffd9a753393e2e
2014-01-07remove unnecessary sal_Unicode casts in OUStringBuffer::append callsNoel Grandin
Convert code like: buf.append( static_cast<sal_Unicode>('!') ); to: buf.append( '!' ); Change-Id: Iacb03a61de65a895540940953b49620677b3d051
2014-01-06Resolves: #i123817# prepare codebase for updating to boost 1.55Herbert Dürr
(cherry picked from commit c31988351c10e9f3fd783730d95da34efd52c153) Conflicts: basic/source/comp/parser.cxx basic/source/comp/token.cxx dbaccess/source/ui/dlg/generalpage.cxx sc/source/ui/unoobj/chart2uno.cxx vcl/quartz/salbmp.cxx Change-Id: Ic9580f2d4a44959cb3e38906eb4153b2c2a54899
2014-01-04hidpi: Sidebar, fontwork, autoformat and other improvements.Keith Curtis
This is a second batch of HiDPI changes. It fixes the following areas: Sidebar * Impress Master pages preview * deck title height * tab (icon) bar * valueset dropdown control * wider maximum width * Draw and other misc. buttons which didn't get fixed by earlier change to Toolbar.SetItemImage There are several more sidebar issues, but it is much improved. Other changes * Writer and Calc auto-format dialog text * file-properties document image * fontwork gallery preview size * Calc table border control Change-Id: I95a0169a3b011836b1c75b3dcacb2733c9567ef3
2014-01-02hidpi: Really use BMP_SCALE_FAST when scaling the images.Keith Curtis
It is not a problem of performance, but of the look - the images get too blurry in the case of icons; and the blurry look is worse than than the artifacts of the fast scaling. Revert "hidpi: Use the default scaling algorithm." This reverts commit e07097cce36f1220f5574a80dc22eeabb3005261. Change-Id: I8af2827758e02ec3c8b7dade1559c45bd9f0ef35
2013-12-30fdo#72998: Add unit test case.Muthu Subramanian
2013-12-27convert unlink image querybox to .uiManal Alhassoun
Change-Id: I46458d497757162be283effb624a7c769aeb5354 Reviewed-on: https://gerrit.libreoffice.org/7200 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-27fdo#72998: Custom shapes have improper size.Muthu Subramanian
2013-12-27Some make file fixingZolnai Tamás
Related to d1c74734c8d9026b0f0c03f7382ca60165cec8c6 Change-Id: Ic3a6147f0615e79640ec9f567168f93219d34020
2013-12-27Transex3: NO_LOCALIZE_EXPORTZolnai Tamás
In the past, NO_LOCALIZE_EXPORT macro must be used to skip uneeded parsing of src files which has no localizable content. It is unsued by now and it is more effective to handle this files on gmake level: gb_SrsTarget_add_nonlocalizable_files gb_SrsTarget_add_nonlocalizable_templates Plus remove some empty src file. Change-Id: I8fc9b2db0b5fd7a3379d3c5be970c4fc691f4c53
2013-12-20Resolves: #i123783# apply patch to correct type of ActiveLayer propertyJürgen Schmidt
Patch By: hanya Review By: jsc (cherry picked from commit 1831b6c95e6137432f64729a270e53fc39e46217) Change-Id: Iad149ff5350ac63270ea0ae84343f7ef5fdde1a2
2013-12-20typo fixesAndras Timar
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20hidpi: Use the default scaling algorithm.Jan Holesovsky
We are not on _that_ time critical path when setting up images for the UI, so let's have at least some quality there :-) Change-Id: I0a82106b0d60ac6a543d5e55c48fc86b6d5f60b1
2013-12-20hidpi: Make many places Hi-DPI aware.Keith Curtis
This also introduces a getter for the mnDPIScaleFactor variable. Change-Id: I02ba6858fb1842f911d62976f4c54afc3bfa337f
2013-12-19n#828390: Unit test for bullet's relative size.Muthu Subramanian
2013-12-19convert OUString** in HtmlExport to std::vector<OUString>Noel Grandin
There is no point in storing pointers to a ref-counted value type like OUString. And while we're there, convert arrays to std::vector Change-Id: I96ceeb13dd3c4fb4f2ebdd017edc92d01dcb47cb Reviewed-on: https://gerrit.libreoffice.org/7044 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-12-18n#828390: Add unit test for font properties export.Muthu Subramanian
2013-12-17No need for implbase1.hxx to include XComponentContext.hppStephan Bergmann
...which it did unlike all the other implbaseN.hxx. Required lots of downstream clean-up, of course. Change-Id: Ib720e7a0a43410dcd7e6338b84a3973dfbb20866
2013-12-17fdo#72598 Remove SunStudio cruft from code baseJelle van der Waa
Change-Id: I6f75d0df0ddafc892fef0ce1bfdcdd6c70151afc Reviewed-on: https://gerrit.libreoffice.org/7104 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-16Clean-up uno/lbnames.hStephan Bergmann
Change-Id: I4bd729499aa8be58f04194656e35c1f79d5d4919
2013-12-16uiconfig is a l10n-relevant targetBjoern Michaelsen
Change-Id: I8a2ca73c02fd6b04ce60e7701c51d2362ef7ec06