Re: How to call function getTextProperties() declared under class TextBody
Hi, On Tue, Nov 28, 2017 at 09:50:26AM +0100, David Tardon wrote: > Hi, > > On Tue, Nov 28, 2017 at 01:47:52AM +0200, serdar tunc wrote: > > I need to call getTextProperties() function. It returns > > > > maTextProperties which its type of > > > > TextBodyProperties struct . In that struct i need to change moRotation > > value. > > > > I want to make changes on sc/source/filter/oox/drawingfragment.cxx and > > i tried this line > > > > mxShape->getTextBody()->getTextProperties().moRotation = 0; > > > > > > I can call getTextBody() function but i couldnt reach > > getTextProperties() funcion it says :"invalid use of incomplete type > > ‘class oox::drawingml::TextBody’". > > > > Can somebody tell me how can i call function in drawingfragment.cxx file. > > Add > > #include > > to make the declaration of TextBody visible to the compiler (not just its > forward declaration). ... But, as Miklos noticed, you cannot do that because the header is local to a different module (my fault, I didn't check). D. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: How to call function getTextProperties() declared under class TextBody
Hi, On Tue, Nov 28, 2017 at 01:47:52AM +0200, serdar tunc wrote: > I need to call getTextProperties() function. It returns > > maTextProperties which its type of > > TextBodyProperties struct . In that struct i need to change moRotation value. > > I want to make changes on sc/source/filter/oox/drawingfragment.cxx and > i tried this line > > mxShape->getTextBody()->getTextProperties().moRotation = 0; > > > I can call getTextBody() function but i couldnt reach > getTextProperties() funcion it says :"invalid use of incomplete type > ‘class oox::drawingml::TextBody’". > > Can somebody tell me how can i call function in drawingfragment.cxx file. Add #include to make the declaration of TextBody visible to the compiler (not just its forward declaration). D. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: How to call function getTextProperties() declared under class TextBody
Hi, On Tue, Nov 28, 2017 at 01:47:52AM +0200, serdar tuncwrote: > I need to call getTextProperties() function. It returns > > maTextProperties which its type of > > TextBodyProperties struct . In that struct i need to change moRotation value. > > I want to make changes on sc/source/filter/oox/drawingfragment.cxx and > i tried this line > > mxShape->getTextBody()->getTextProperties().moRotation = 0; > > > I can call getTextBody() function but i couldnt reach > getTextProperties() funcion it says :"invalid use of incomplete type > ‘class oox::drawingml::TextBody’". It's in oox/inc/drawingml/textbody.hxx, you can't really include that in sc/. We miss the wider context what you're trying to do. Do you have a TDF bug reported that made you look at the oox/ code? Regards, Miklos signature.asc Description: Digital signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice