diff --git a/include/vcl/metaact.hxx b/include/vcl/metaact.hxx index 9fac991ac19e..930261b5866f 100644 --- a/include/vcl/metaact.hxx +++ b/include/vcl/metaact.hxx @@ -36,7 +36,6 @@ #include #include #include -#include class SvStream; enum class DrawTextFlags; diff --git a/include/vcl/outdevstate.hxx b/include/vcl/outdevstate.hxx index d58faac00c52..d1f1ff6726b9 100644 --- a/include/vcl/outdevstate.hxx +++ b/include/vcl/outdevstate.hxx @@ -30,6 +30,7 @@ #include #include #include +#include class Color; @@ -80,17 +81,17 @@ public: OutDevState(); ~OutDevState(); - std::unique_ptr mpMapMode; + boost::optional mpMapMode; bool mbMapActive; std::unique_ptr mpClipRegion; - std::unique_ptr mpLineColor; - std::unique_ptr mpFillColor; + boost::optional mpLineColor; + boost::optional mpFillColor; std::unique_ptr mpFont; - std::unique_ptr mpTextColor; - std::unique_ptr mpTextFillColor; - std::unique_ptr mpTextLineColor; - std::unique_ptr mpOverlineColor; - std::unique_ptr mpRefPoint; + boost::optional mpTextColor; + boost::optional mpTextFillColor; + boost::optional mpTextLineColor; + boost::optional mpOverlineColor; + boost::optional mpRefPoint; TextAlign meTextAlign; RasterOp meRasterOp; ComplexTextLayoutFlags mnTextLayoutMode; diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index 758acdb1f08d..1e38a9f67cb8 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -29,7 +29,6 @@ #include #include #include -#include #include #include diff --git a/sfx2/CppunitTest_sfx2_misc.mk b/sfx2/CppunitTest_sfx2_misc.mk index 0919d525d3d5..c97d97ca469b 100644 --- a/sfx2/CppunitTest_sfx2_misc.mk +++ b/sfx2/CppunitTest_sfx2_misc.mk @@ -27,7 +27,10 @@ $(eval $(call gb_CppunitTest_use_libraries,sfx2_misc, \ utl \ )) -$(eval $(call gb_CppunitTest_use_external,sfx2_misc,libxml2)) +$(eval $(call gb_CppunitTest_use_externals,sfx2_misc,\ + libxml2 \ + boost_headers \ +)) $(eval $(call gb_CppunitTest_use_sdk_api,sfx2_misc)) diff --git a/vcl/source/outdev/outdevstate.cxx b/vcl/source/outdev/outdevstate.cxx index 38698b210330..d2226add6f1b 100644 --- a/vcl/source/outdev/outdevstate.cxx +++ b/vcl/source/outdev/outdevstate.cxx @@ -31,17 +31,9 @@ #include OutDevState::OutDevState() - : mpMapMode(nullptr) - , mbMapActive(false) + : mbMapActive(false) , mpClipRegion(nullptr) - , mpLineColor(nullptr) - , mpFillColor(nullptr) , mpFont(nullptr) - , mpTextColor(nullptr) - , mpTextFillColor(nullptr) - , mpTextLineColor(nullptr) - , mpOverlineColor(nullptr) - , mpRefPoint(nullptr) , meTextAlign(ALIGN_TOP) , meRasterOp(RasterOp::OverPaint) , mnTextLayoutMode(ComplexTextLayoutFlags::Default) @@ -76,27 +68,27 @@ void OutputDevice::Push( PushFlags nFlags ) if (nFlags & PushFlags::LINECOLOR && mbLineColor) { - pState->mpLineColor.reset( new Color( maLineColor ) ); + pState->mpLineColor = maLineColor; } if (nFlags & PushFlags::FILLCOLOR && mbFillColor) { - pState->mpFillColor.reset( new Color( maFillColor ) ); + pState->mpFillColor = maFillColor; } if ( nFlags & PushFlags::FONT ) pState->mpFont.reset( new vcl::Font( maFont ) ); if ( nFlags & PushFlags::TEXTCOLOR ) - pState->mpTextColor.reset( new Color( GetTextColor() ) ); + pState->mpTextColor = GetTextColor(); if (nFlags & PushFlags::TEXTFILLCOLOR && IsTextFillColor()) { - pState->mpTextFillColor.reset( new Color( GetTextFillColor() ) ); + pState->mpTextFillColor = GetTextFillColor(); } if (nFlags & PushFlags::TEXTLINECOLOR && IsTextLineColor()) { - pState->mpTextLineColor.reset( new Color( GetTextLineColor() ) ); + pState->mpTextLineColor = GetTextLineColor(); } if (nFlags & PushFlags::OVERLINECOLOR && IsOverlineColor()) { - pState->mpOverlineColor.reset( new Color( GetOverlineColor() ) ); + pState->mpOverlineColor = GetOverlineColor(); } if ( nFlags & PushFlags::TEXTALIGN ) pState->meTextAlign = GetTextAlign(); @@ -108,7 +100,7 @@ void OutputDevice::Push( PushFlags nFlags ) pState->meRasterOp = GetRasterOp(); if ( nFlags & PushFlags::MAPMODE ) { - pState->mpMapMode.reset( new MapMode( maMapMode ) ); + pState->mpMapMode = maMapMode; pState->mbMapActive = mbMap; } if (nFlags & PushFlags::CLIPREGION && mbClipRegion) @@ -117,7 +109,7 @@ void OutputDevice::Push( PushFlags nFlags ) } if (nFlags & PushFlags::REFPOINT && mbRefPoint) { - pState->mpRefPoint.reset( new Point( maRefPoint ) ); + pState->mpRefPoint = maRefPoint; } mpOutDevStateStack->push_back( pState ); diff --git a/writerperfect/Library_writerperfect.mk b/writerperfect/Library_writerperfect.mk index fd7e344822f3..64df2cba94c2 100644 --- a/writerperfect/Library_writerperfect.mk +++ b/writerperfect/Library_writerperfect.mk @@ -29,6 +29,7 @@ $(eval $(call gb_Library_set_include,writerperfect, \ )) $(eval $(call gb_Library_use_externals,writerperfect,\ + boost_headers \ odfgen \ revenge \ )) diff --git a/xmlsecurity/Executable_pdfverify.mk b/xmlsecurity/Executable_pdfverify.mk index 11c22d1d7ea6..ed8e9559fc18 100644 --- a/xmlsecurity/Executable_pdfverify.mk +++ b/xmlsecurity/Executable_pdfverify.mk @@ -11,6 +11,8 @@ $(eval $(call gb_Executable_Executable,pdfverify)) $(eval $(call gb_Executable_use_sdk_api,pdfverify)) +$(eval $(call gb_Executable_use_external,pdfverify,boost_headers)) + $(eval $(call gb_Executable_set_include,pdfverify,\ $$(INCLUDE) \ -I$(SRCDIR)/xmlsecurity/inc \